import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type AccountingInvoicesAddGlobals = { /** * ID of the consumer which you want to get or push data from */ consumerId?: string | undefined; /** * The ID of your Unify application */ appId?: string | undefined; }; export type AccountingInvoicesAddRequest = { /** * Include raw response. Mostly used for debugging purposes */ raw?: boolean | undefined; /** * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. */ serviceId?: string | undefined; invoice: components.InvoiceInput; }; export type AccountingInvoicesAddResponse = { httpMeta: components.HTTPMetadata; /** * Invoice created */ createInvoiceResponse?: components.CreateInvoiceResponse | undefined; /** * Unexpected error */ unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; /** @internal */ export declare const AccountingInvoicesAddGlobals$inboundSchema: z.ZodType; /** @internal */ export type AccountingInvoicesAddGlobals$Outbound = { consumerId?: string | undefined; appId?: string | undefined; }; /** @internal */ export declare const AccountingInvoicesAddGlobals$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AccountingInvoicesAddGlobals$ { /** @deprecated use `AccountingInvoicesAddGlobals$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AccountingInvoicesAddGlobals$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AccountingInvoicesAddGlobals$Outbound` instead. */ type Outbound = AccountingInvoicesAddGlobals$Outbound; } export declare function accountingInvoicesAddGlobalsToJSON(accountingInvoicesAddGlobals: AccountingInvoicesAddGlobals): string; export declare function accountingInvoicesAddGlobalsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AccountingInvoicesAddRequest$inboundSchema: z.ZodType; /** @internal */ export type AccountingInvoicesAddRequest$Outbound = { raw: boolean; serviceId?: string | undefined; Invoice: components.InvoiceInput$Outbound; }; /** @internal */ export declare const AccountingInvoicesAddRequest$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AccountingInvoicesAddRequest$ { /** @deprecated use `AccountingInvoicesAddRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AccountingInvoicesAddRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AccountingInvoicesAddRequest$Outbound` instead. */ type Outbound = AccountingInvoicesAddRequest$Outbound; } export declare function accountingInvoicesAddRequestToJSON(accountingInvoicesAddRequest: AccountingInvoicesAddRequest): string; export declare function accountingInvoicesAddRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AccountingInvoicesAddResponse$inboundSchema: z.ZodType; /** @internal */ export type AccountingInvoicesAddResponse$Outbound = { HttpMeta: components.HTTPMetadata$Outbound; CreateInvoiceResponse?: components.CreateInvoiceResponse$Outbound | undefined; UnexpectedErrorResponse?: components.UnexpectedErrorResponse$Outbound | undefined; }; /** @internal */ export declare const AccountingInvoicesAddResponse$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AccountingInvoicesAddResponse$ { /** @deprecated use `AccountingInvoicesAddResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AccountingInvoicesAddResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AccountingInvoicesAddResponse$Outbound` instead. */ type Outbound = AccountingInvoicesAddResponse$Outbound; } export declare function accountingInvoicesAddResponseToJSON(accountingInvoicesAddResponse: AccountingInvoicesAddResponse): string; export declare function accountingInvoicesAddResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=accountinginvoicesadd.d.ts.map