UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

627 lines 22.3 kB
import { z } from 'zod'; /** Order header - passthrough for multi-format field names */ export declare const OrderHeaderSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; /** Checkout customer - key field only */ export declare const CheckoutCustomerSchema: z.ZodObject<{ customerId: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ customerId: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ customerId: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; /** Order line - key field only */ export declare const OrderLineSchema: z.ZodObject<{ lineNo: z.ZodOptional<z.ZodNumber>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ lineNo: z.ZodOptional<z.ZodNumber>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ lineNo: z.ZodOptional<z.ZodNumber>; }, z.ZodTypeAny, "passthrough">>; /** Payment - passthrough for multi-format field names */ export declare const PaymentSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; /** Notes - passthrough */ export declare const NotesSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; /** Web info - passthrough */ export declare const WebInfoSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; /** Legacy payment - passthrough */ export declare const CheckoutPaymentSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; /** Legacy shipping - passthrough */ export declare const CheckoutShippingSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; /** Line item - key field only */ export declare const CheckoutLineItemSchema: z.ZodObject<{ invMastUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; /** Checkout create request - passthrough for flexible input */ export declare const CheckoutCreateRequestSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; export declare const CheckoutCreateParamsSchema: z.ZodObject<{ cartHdrUid: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { cartHdrUid?: number | undefined; }, { cartHdrUid?: number | undefined; }>; /** Checkout - key field only */ export declare const CheckoutSchema: z.ZodObject<{ checkoutUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; /** Checkout create data - key field only */ export declare const CheckoutCreateDataSchema: z.ZodObject<{ checkoutUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; export declare const CheckoutCreateResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodObject<{ checkoutUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; message: z.ZodString; options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; status: z.ZodNumber; total: z.ZodNumber; totalResults: z.ZodNumber; }, "strip", z.ZodTypeAny, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; export declare const CheckoutGetResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodObject<{ checkoutUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; message: z.ZodString; options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; status: z.ZodNumber; total: z.ZodNumber; totalResults: z.ZodNumber; }, "strip", z.ZodTypeAny, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; export declare const CheckoutDocParamsSchema: z.ZodObject<{ limit: z.ZodOptional<z.ZodNumber>; offset: z.ZodOptional<z.ZodNumber>; } & { edgeCache: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<8>, z.ZodLiteral<"1">, z.ZodLiteral<"2">, z.ZodLiteral<"3">, z.ZodLiteral<"4">, z.ZodLiteral<"5">, z.ZodLiteral<"8">]>, 3 | 2 | 1 | 4 | 5 | 8, 3 | 2 | 1 | 4 | "1" | 5 | 8 | "2" | "3" | "4" | "5" | "8">>; } & { cartHdrUid: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { limit?: number | undefined; offset?: number | undefined; edgeCache?: 3 | 2 | 1 | 4 | 5 | 8 | undefined; cartHdrUid?: number | undefined; }, { limit?: number | undefined; offset?: number | undefined; edgeCache?: 3 | 2 | 1 | 4 | "1" | 5 | 8 | "2" | "3" | "4" | "5" | "8" | undefined; cartHdrUid?: number | undefined; }>; /** Checkout validate data - key field only */ export declare const CheckoutValidateDataSchema: z.ZodObject<{ checkoutUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; export declare const CheckoutValidateResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodObject<{ checkoutUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; message: z.ZodString; options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; status: z.ZodNumber; total: z.ZodNumber; totalResults: z.ZodNumber; }, "strip", z.ZodTypeAny, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; /** Checkout activate data - key field only */ export declare const CheckoutActivateDataSchema: z.ZodObject<{ checkoutUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; export declare const CheckoutActivateResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodObject<{ checkoutUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; message: z.ZodString; options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; status: z.ZodNumber; total: z.ZodNumber; totalResults: z.ZodNumber; }, "strip", z.ZodTypeAny, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; /** Checkout doc data - key field only */ export declare const CheckoutDocDataSchema: z.ZodObject<{ checkoutUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; export declare const CheckoutDocResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodObject<{ checkoutUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; message: z.ZodString; options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; status: z.ZodNumber; total: z.ZodNumber; totalResults: z.ZodNumber; }, "strip", z.ZodTypeAny, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; /** P21 header create request - passthrough */ export declare const CheckoutProphet21HdrCreateRequestSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; /** P21 header data - key field only */ export declare const CheckoutProphet21HdrDataSchema: z.ZodObject<{ checkoutUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; export declare const CheckoutProphet21HdrResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodObject<{ checkoutUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ checkoutUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; message: z.ZodString; options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; status: z.ZodNumber; total: z.ZodNumber; totalResults: z.ZodNumber; }, "strip", z.ZodTypeAny, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { checkoutUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; /** P21 line add request - minimal validation for required fields */ export declare const CheckoutProphet21LineAddRequestSchema: z.ZodArray<z.ZodObject<{ invMastUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>, "many">; /** P21 line item - key field only */ export declare const CheckoutProphet21LineItemSchema: z.ZodObject<{ lineNo: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ lineNo: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ lineNo: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; export declare const CheckoutProphet21LineResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodArray<z.ZodObject<{ lineNo: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ lineNo: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ lineNo: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>, "many">; message: z.ZodString; options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; status: z.ZodNumber; total: z.ZodNumber; totalResults: z.ZodNumber; }, "strip", z.ZodTypeAny, { params: Record<string, unknown> | unknown[]; data: z.objectOutputType<{ lineNo: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: z.objectInputType<{ lineNo: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>, { params: Record<string, unknown> | unknown[]; data: z.objectOutputType<{ lineNo: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: z.objectInputType<{ lineNo: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; export type OrderHeader = z.infer<typeof OrderHeaderSchema>; export type OrderLine = z.infer<typeof OrderLineSchema>; export type Payment = z.infer<typeof PaymentSchema>; export type Notes = z.infer<typeof NotesSchema>; export type WebInfo = z.infer<typeof WebInfoSchema>; export type CheckoutCustomer = z.infer<typeof CheckoutCustomerSchema>; export type CheckoutPayment = z.infer<typeof CheckoutPaymentSchema>; export type CheckoutShipping = z.infer<typeof CheckoutShippingSchema>; export type CheckoutLineItem = z.infer<typeof CheckoutLineItemSchema>; export type CheckoutCreateRequest = z.infer<typeof CheckoutCreateRequestSchema>; export type CheckoutCreateParams = z.infer<typeof CheckoutCreateParamsSchema>; export type CheckoutCreateData = z.infer<typeof CheckoutCreateDataSchema>; export type Checkout = z.infer<typeof CheckoutSchema>; export type CheckoutCreateResponse = z.infer<typeof CheckoutCreateResponseSchema>; export type CheckoutGetResponse = z.infer<typeof CheckoutGetResponseSchema>; export type CheckoutDocParams = z.infer<typeof CheckoutDocParamsSchema>; export type CheckoutDocData = z.infer<typeof CheckoutDocDataSchema>; export type CheckoutDocResponse = z.infer<typeof CheckoutDocResponseSchema>; export type CheckoutValidateData = z.infer<typeof CheckoutValidateDataSchema>; export type CheckoutValidateResponse = z.infer<typeof CheckoutValidateResponseSchema>; export type CheckoutActivateData = z.infer<typeof CheckoutActivateDataSchema>; export type CheckoutActivateResponse = z.infer<typeof CheckoutActivateResponseSchema>; export type CheckoutProphet21HdrCreateRequest = z.infer<typeof CheckoutProphet21HdrCreateRequestSchema>; export type CheckoutProphet21HdrData = z.infer<typeof CheckoutProphet21HdrDataSchema>; export type CheckoutProphet21HdrResponse = z.infer<typeof CheckoutProphet21HdrResponseSchema>; export type CheckoutProphet21LineAddRequest = z.infer<typeof CheckoutProphet21LineAddRequestSchema>; export type CheckoutProphet21LineItem = z.infer<typeof CheckoutProphet21LineItemSchema>; export type CheckoutProphet21LineResponse = z.infer<typeof CheckoutProphet21LineResponseSchema>; //# sourceMappingURL=checkout.d.ts.map