UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

116 lines 3.99 kB
import { z } from 'zod'; export declare const PriceEngineParamsSchema: 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">>; } & { customerId: z.ZodNumber; itemId: z.ZodString; quantity: z.ZodOptional<z.ZodNumber>; shipToId: z.ZodOptional<z.ZodNumber>; unitOfMeasure: z.ZodOptional<z.ZodString>; companyId: z.ZodOptional<z.ZodString>; cacheTtl: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { customerId: number; itemId: string; cacheTtl: number; limit?: number | undefined; offset?: number | undefined; edgeCache?: 3 | 2 | 1 | 4 | 5 | 8 | undefined; quantity?: number | undefined; shipToId?: number | undefined; unitOfMeasure?: string | undefined; companyId?: string | undefined; }, { customerId: number; itemId: string; limit?: number | undefined; offset?: number | undefined; edgeCache?: 3 | 2 | 1 | 4 | "1" | 5 | 8 | "2" | "3" | "4" | "5" | "8" | undefined; quantity?: number | undefined; shipToId?: number | undefined; unitOfMeasure?: string | undefined; companyId?: string | undefined; cacheTtl?: number | undefined; }>; export declare const PriceEngineDataSchema: z.ZodObject<{ unitPrice: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ unitPrice: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ unitPrice: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; export declare const PriceEngineResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodObject<{ unitPrice: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ unitPrice: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ unitPrice: 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: { unitPrice: 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: { unitPrice: 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: { unitPrice: 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: { unitPrice: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; export type PriceEngineParams = z.infer<typeof PriceEngineParamsSchema>; export type PriceEngineData = z.infer<typeof PriceEngineDataSchema>; export type PriceEngineResponse = z.infer<typeof PriceEngineResponseSchema>; //# sourceMappingURL=priceEngine.d.ts.map