UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

437 lines 16.9 kB
import { z } from 'zod'; /** Distributor - key field only, passthrough for API flexibility */ export declare const DistributorSchema: z.ZodObject<{ distributorsUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ distributorsUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ distributorsUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; export declare const DistributorListParamsSchema: 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.ZodOptional<z.ZodNumber>; statusCd: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { limit?: number | undefined; offset?: number | undefined; edgeCache?: 3 | 2 | 1 | 4 | 5 | 8 | undefined; customerId?: number | undefined; statusCd?: number | undefined; }, { limit?: number | undefined; offset?: number | undefined; edgeCache?: 3 | 2 | 1 | 4 | "1" | 5 | 8 | "2" | "3" | "4" | "5" | "8" | undefined; customerId?: number | undefined; statusCd?: number | undefined; }>; /** Create distributor request - passthrough for flexible input */ export declare const CreateDistributorRequestSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; /** Update distributor request - passthrough for flexible input */ export declare const UpdateDistributorRequestSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; /** Enable distributor request - passthrough for flexible input */ export declare const EnableDistributorRequestSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; export declare const DistributorListResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodArray<z.ZodObject<{ distributorsUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ distributorsUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ distributorsUid: 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<{ distributorsUid: 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<{ distributorsUid: 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<{ distributorsUid: 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<{ distributorsUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; export declare const DistributorResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodObject<{ distributorsUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ distributorsUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ distributorsUid: 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: { distributorsUid: 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: { distributorsUid: 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: { distributorsUid: 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: { distributorsUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; /** Product - key field only, passthrough for API flexibility */ export declare const ProductSchema: z.ZodObject<{ productsUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ productsUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ productsUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; /** Product find item - key field only, passthrough for API flexibility */ export declare const ProductFindItemSchema: z.ZodObject<{ invMastUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>; export declare const ProductListParamsSchema: 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">>; } & { customerId: z.ZodOptional<z.ZodNumber>; distributorsUid: z.ZodOptional<z.ZodNumber>; limit: z.ZodOptional<z.ZodNumber>; offset: z.ZodOptional<z.ZodNumber>; prefix: z.ZodOptional<z.ZodString>; q: z.ZodOptional<z.ZodString>; statusCd: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { limit?: number | undefined; offset?: number | undefined; edgeCache?: 3 | 2 | 1 | 4 | 5 | 8 | undefined; q?: string | undefined; customerId?: number | undefined; statusCd?: number | undefined; distributorsUid?: number | undefined; prefix?: string | undefined; }, { limit?: number | undefined; offset?: number | undefined; edgeCache?: 3 | 2 | 1 | 4 | "1" | 5 | 8 | "2" | "3" | "4" | "5" | "8" | undefined; q?: string | undefined; customerId?: number | undefined; statusCd?: number | undefined; distributorsUid?: number | undefined; prefix?: string | undefined; }>; export declare const ProductFindParamsSchema: 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.ZodOptional<z.ZodNumber>; prefix: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { limit?: number | undefined; offset?: number | undefined; edgeCache?: 3 | 2 | 1 | 4 | 5 | 8 | undefined; customerId?: number | undefined; prefix?: string | undefined; }, { limit?: number | undefined; offset?: number | undefined; edgeCache?: 3 | 2 | 1 | 4 | "1" | 5 | 8 | "2" | "3" | "4" | "5" | "8" | undefined; customerId?: number | undefined; prefix?: string | undefined; }>; /** Create product request - passthrough for flexible input */ export declare const CreateProductRequestSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; /** Update product request - passthrough for flexible input */ export declare const UpdateProductRequestSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; /** Enable product request - passthrough for flexible input */ export declare const EnableProductRequestSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; export declare const ProductListResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodArray<z.ZodObject<{ productsUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ productsUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ productsUid: 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<{ productsUid: 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<{ productsUid: 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<{ productsUid: 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<{ productsUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; export declare const ProductResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodObject<{ productsUid: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ productsUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ productsUid: 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: { productsUid: 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: { productsUid: 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: { productsUid: 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: { productsUid: number; } & { [k: string]: unknown; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; export declare const ProductFindResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: 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">; 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<{ invMastUid: 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<{ invMastUid: 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<{ invMastUid: 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<{ invMastUid: z.ZodNumber; }, z.ZodTypeAny, "passthrough">[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; export type Distributor = z.infer<typeof DistributorSchema>; export type DistributorListParams = z.infer<typeof DistributorListParamsSchema>; export type CreateDistributorRequest = z.infer<typeof CreateDistributorRequestSchema>; export type UpdateDistributorRequest = z.infer<typeof UpdateDistributorRequestSchema>; export type EnableDistributorRequest = z.infer<typeof EnableDistributorRequestSchema>; export type Product = z.infer<typeof ProductSchema>; export type ProductFindItem = z.infer<typeof ProductFindItemSchema>; export type ProductListParams = z.infer<typeof ProductListParamsSchema>; export type ProductFindParams = z.infer<typeof ProductFindParamsSchema>; export type CreateProductRequest = z.infer<typeof CreateProductRequestSchema>; export type UpdateProductRequest = z.infer<typeof UpdateProductRequestSchema>; export type EnableProductRequest = z.infer<typeof EnableProductRequestSchema>; //# sourceMappingURL=products.d.ts.map