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 AccountingPurchaseOrdersAddGlobals = { /** * 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 AccountingPurchaseOrdersAddRequest = { /** * 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; purchaseOrder: components.PurchaseOrderInput; }; export type AccountingPurchaseOrdersAddResponse = { httpMeta: components.HTTPMetadata; /** * PurchaseOrders */ createPurchaseOrderResponse?: components.CreatePurchaseOrderResponse | undefined; /** * Unexpected error */ unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; /** @internal */ export declare const AccountingPurchaseOrdersAddGlobals$inboundSchema: z.ZodType; /** @internal */ export type AccountingPurchaseOrdersAddGlobals$Outbound = { consumerId?: string | undefined; appId?: string | undefined; }; /** @internal */ export declare const AccountingPurchaseOrdersAddGlobals$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 AccountingPurchaseOrdersAddGlobals$ { /** @deprecated use `AccountingPurchaseOrdersAddGlobals$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AccountingPurchaseOrdersAddGlobals$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AccountingPurchaseOrdersAddGlobals$Outbound` instead. */ type Outbound = AccountingPurchaseOrdersAddGlobals$Outbound; } export declare function accountingPurchaseOrdersAddGlobalsToJSON(accountingPurchaseOrdersAddGlobals: AccountingPurchaseOrdersAddGlobals): string; export declare function accountingPurchaseOrdersAddGlobalsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AccountingPurchaseOrdersAddRequest$inboundSchema: z.ZodType; /** @internal */ export type AccountingPurchaseOrdersAddRequest$Outbound = { raw: boolean; serviceId?: string | undefined; PurchaseOrder: components.PurchaseOrderInput$Outbound; }; /** @internal */ export declare const AccountingPurchaseOrdersAddRequest$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 AccountingPurchaseOrdersAddRequest$ { /** @deprecated use `AccountingPurchaseOrdersAddRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AccountingPurchaseOrdersAddRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AccountingPurchaseOrdersAddRequest$Outbound` instead. */ type Outbound = AccountingPurchaseOrdersAddRequest$Outbound; } export declare function accountingPurchaseOrdersAddRequestToJSON(accountingPurchaseOrdersAddRequest: AccountingPurchaseOrdersAddRequest): string; export declare function accountingPurchaseOrdersAddRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AccountingPurchaseOrdersAddResponse$inboundSchema: z.ZodType; /** @internal */ export type AccountingPurchaseOrdersAddResponse$Outbound = { HttpMeta: components.HTTPMetadata$Outbound; CreatePurchaseOrderResponse?: components.CreatePurchaseOrderResponse$Outbound | undefined; UnexpectedErrorResponse?: components.UnexpectedErrorResponse$Outbound | undefined; }; /** @internal */ export declare const AccountingPurchaseOrdersAddResponse$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 AccountingPurchaseOrdersAddResponse$ { /** @deprecated use `AccountingPurchaseOrdersAddResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AccountingPurchaseOrdersAddResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AccountingPurchaseOrdersAddResponse$Outbound` instead. */ type Outbound = AccountingPurchaseOrdersAddResponse$Outbound; } export declare function accountingPurchaseOrdersAddResponseToJSON(accountingPurchaseOrdersAddResponse: AccountingPurchaseOrdersAddResponse): string; export declare function accountingPurchaseOrdersAddResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=accountingpurchaseordersadd.d.ts.map