UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

320 lines 12.6 kB
import { z } from 'zod'; /** Replenishment item - key field only, passthrough for API flexibility */ export declare const ReplenishmentItemSchema: z.ZodObject<{ invMastUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; /** Replenishment info - passthrough for API flexibility */ export declare const ReplenishmentInfoSchema: z.ZodObject<{ warehouseUid: z.ZodNumber; replenishmentItems: z.ZodOptional<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">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ warehouseUid: z.ZodNumber; replenishmentItems: z.ZodOptional<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">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ warehouseUid: z.ZodNumber; replenishmentItems: z.ZodOptional<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">>; }, z.ZodTypeAny, "passthrough">>; export declare const ReplenishmentParamsSchema: z.ZodObject<{ distributorsUid: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { distributorsUid?: number | undefined; }, { distributorsUid?: number | undefined; }>; /** Restock item - passthrough for flexible input */ export declare const RestockItemSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; /** Replenish request - passthrough for flexible input */ export declare const ReplenishRequestSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; export declare const ReplenishmentInfoResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodObject<{ warehouseUid: z.ZodNumber; replenishmentItems: z.ZodOptional<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">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ warehouseUid: z.ZodNumber; replenishmentItems: z.ZodOptional<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">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ warehouseUid: z.ZodNumber; replenishmentItems: z.ZodOptional<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">>; }, 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: { warehouseUid: number; replenishmentItems?: z.objectOutputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { warehouseUid: number; replenishmentItems?: z.objectInputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>, { params: Record<string, unknown> | unknown[]; data: { warehouseUid: number; replenishmentItems?: z.objectOutputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { warehouseUid: number; replenishmentItems?: z.objectInputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[] | undefined; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; /** Restock header - key field only, passthrough for API flexibility */ export declare const RestockHdrSchema: z.ZodObject<{ restockHdrUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ restockHdrUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ restockHdrUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; export declare const RestockHdrListParamsSchema: z.ZodObject<{ 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">>; } & { warehouseUid: z.ZodOptional<z.ZodNumber>; distributorsUid: z.ZodOptional<z.ZodNumber>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { limit: number; offset: number; edgeCache?: 3 | 2 | 1 | 4 | 5 | 8 | undefined; warehouseUid?: number | undefined; distributorsUid?: number | undefined; }, { limit?: number | undefined; offset?: number | undefined; edgeCache?: 3 | 2 | 1 | 4 | "1" | 5 | 8 | "2" | "3" | "4" | "5" | "8" | undefined; warehouseUid?: number | undefined; distributorsUid?: number | undefined; }>; /** Create restock header request - passthrough for flexible input */ export declare const CreateRestockHdrRequestSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; /** Update restock header request - passthrough for flexible input */ export declare const UpdateRestockHdrRequestSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; export declare const RestockHdrListResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodArray<z.ZodObject<{ restockHdrUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ restockHdrUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ restockHdrUid: 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<{ restockHdrUid: 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<{ restockHdrUid: 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<{ restockHdrUid: 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<{ restockHdrUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; export declare const RestockHdrResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodObject<{ restockHdrUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ restockHdrUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ restockHdrUid: 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: { restockHdrUid: 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: { restockHdrUid: 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: { restockHdrUid: 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: { restockHdrUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; export type ReplenishmentItem = z.infer<typeof ReplenishmentItemSchema>; export type ReplenishmentInfo = z.infer<typeof ReplenishmentInfoSchema>; export type ReplenishmentParams = z.infer<typeof ReplenishmentParamsSchema>; export type RestockItem = z.infer<typeof RestockItemSchema>; export type ReplenishRequest = z.infer<typeof ReplenishRequestSchema>; export type RestockHdr = z.infer<typeof RestockHdrSchema>; export type RestockHdrListParams = z.infer<typeof RestockHdrListParamsSchema>; export type CreateRestockHdrRequest = z.infer<typeof CreateRestockHdrRequestSchema>; export type UpdateRestockHdrRequest = z.infer<typeof UpdateRestockHdrRequestSchema>; //# sourceMappingURL=restock.d.ts.map