import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Represents the status of a managed bank feed sync. */ export type SyncStatusResult = { /** * The unique identifier for the sync. */ syncId: string; /** * The ID of the client associated with the company that owns the source bank account. */ clientId: string; /** * The ID of the company that owns the source bank account. */ companyId: string; /** * The name of the company that owns the source bank account. */ companyName: string; /** * The ID of the target accounting data connection. */ dataConnectionId: string; /** * The ID of the source bank account from which transactions are fetched. */ sourceAccountId: string; /** * The start of the sync period. */ periodStartUtc: Date; /** * The end of the sync period. */ periodEndUtc: Date; /** * The UTC timestamp when the sync started executing. */ executionStartUtc: Date; /** * The current status of the sync. Known values are `Started`, `Failed`, `SuccessDataPushed`, `SuccessNoDataPushed`, `PartialSuccessDataPushed`. */ status: string; /** * The UTC timestamp when the sync execution ended, if completed (i.e. `status` is any value other than `Started`). */ executionEndUtc?: Date | null | undefined; /** * Error message if the sync failed. */ errorMessage?: string | null | undefined; /** * Error code if the sync failed. */ errorCode?: string | null | undefined; /** * List of write operation keys associated with the sync, if the sync resulted in write attempts. */ pushOperationKeys?: Array | null | undefined; }; /** @internal */ export declare const SyncStatusResult$inboundSchema: z.ZodType; export declare function syncStatusResultFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=syncstatusresult.d.ts.map