import * as z from "zod/v3"; import { OpenEnum } from "../../types/enums.js"; export declare const JournalEntriesFilterStatus: { readonly Draft: "draft"; readonly PendingApproval: "pending_approval"; readonly Approved: "approved"; readonly Posted: "posted"; readonly Voided: "voided"; readonly Rejected: "rejected"; readonly Deleted: "deleted"; readonly Other: "other"; }; export type JournalEntriesFilterStatus = OpenEnum; /** * Connector-specific scope hint that controls which downstream source backs the read. On Xero, `manual` reads from `ManualJournals` (free in every tier), while `system` reads from `Journals` (the full general ledger view including manual journal postings, paid post 2026-03-02). Omitting the filter is equivalent to `system` and preserves the legacy default. Only honored on connectors where the distinction is exposed; ignored elsewhere. */ export declare const JournalEntriesFilterScope: { readonly Manual: "manual"; readonly System: "system"; }; /** * Connector-specific scope hint that controls which downstream source backs the read. On Xero, `manual` reads from `ManualJournals` (free in every tier), while `system` reads from `Journals` (the full general ledger view including manual journal postings, paid post 2026-03-02). Omitting the filter is equivalent to `system` and preserves the legacy default. Only honored on connectors where the distinction is exposed; ignored elsewhere. */ export type JournalEntriesFilterScope = OpenEnum; export type JournalEntriesFilter = { updatedSince?: Date | undefined; /** * Journal entry number to search for */ number?: string | undefined; /** * Return only journal entries whose source_id equals the given value (the caller-supplied reference, where the connector stores one). Connectors without support reject this filter with UnsupportedFiltersError. */ sourceId?: string | undefined; /** * Return journal entries posted on or after this date (posting date, inclusive). Connectors without date-range support reject this filter with UnsupportedFiltersError. */ startDate?: Date | undefined; /** * Return journal entries posted on or before this date (posting date, inclusive). Connectors without date-range support reject this filter with UnsupportedFiltersError. */ endDate?: Date | undefined; status?: JournalEntriesFilterStatus | undefined; /** * Connector-specific scope hint that controls which downstream source backs the read. On Xero, `manual` reads from `ManualJournals` (free in every tier), while `system` reads from `Journals` (the full general ledger view including manual journal postings, paid post 2026-03-02). Omitting the filter is equivalent to `system` and preserves the legacy default. Only honored on connectors where the distinction is exposed; ignored elsewhere. */ scope?: JournalEntriesFilterScope | undefined; /** * Filter by the subsidiary (legal entity) the record belongs to. Only honored on connectors that support multi-entity scoping (e.g. NetSuite OneWorld); ignored elsewhere. */ subsidiaryId?: string | undefined; }; /** @internal */ export declare const JournalEntriesFilterStatus$outboundSchema: z.ZodType; /** @internal */ export declare const JournalEntriesFilterScope$outboundSchema: z.ZodType; /** @internal */ export type JournalEntriesFilter$Outbound = { updated_since?: string | undefined; number?: string | undefined; source_id?: string | undefined; start_date?: string | undefined; end_date?: string | undefined; status?: string | undefined; scope?: string | undefined; subsidiary_id?: string | undefined; }; /** @internal */ export declare const JournalEntriesFilter$outboundSchema: z.ZodType; export declare function journalEntriesFilterToJSON(journalEntriesFilter: JournalEntriesFilter): string; //# sourceMappingURL=journalentriesfilter.d.ts.map