UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

796 lines 26.3 kB
import { z } from 'zod'; export declare const DistributorSchema: z.ZodObject<{ distributors_uid: z.ZodNumber; distributor_name: z.ZodString; distributor_desc: z.ZodOptional<z.ZodString>; customer_id: z.ZodNumber; contact_email: z.ZodOptional<z.ZodString>; contact_phone: z.ZodOptional<z.ZodString>; status_cd: z.ZodNumber; create_cd: z.ZodString; update_cd: z.ZodString; }, "strip", z.ZodTypeAny, { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; distributor_name: string; distributor_desc?: string | undefined; contact_email?: string | undefined; contact_phone?: string | undefined; }, { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; distributor_name: string; distributor_desc?: string | undefined; contact_email?: string | undefined; contact_phone?: string | undefined; }>; 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 | 4 | 1 | 5 | 8, 3 | 2 | 4 | 1 | "1" | 5 | 8 | "2" | "3" | "4" | "5" | "8">>; } & { customerId: z.ZodOptional<z.ZodNumber>; statusCd: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { statusCd: number; edgeCache?: 3 | 2 | 4 | 1 | 5 | 8 | undefined; limit?: number | undefined; offset?: number | undefined; customerId?: number | undefined; }, { edgeCache?: 3 | 2 | 4 | 1 | "1" | 5 | 8 | "2" | "3" | "4" | "5" | "8" | undefined; limit?: number | undefined; offset?: number | undefined; customerId?: number | undefined; statusCd?: number | undefined; }>; export declare const CreateDistributorRequestSchema: z.ZodObject<{ distributor_name: z.ZodString; distributor_desc: z.ZodOptional<z.ZodString>; customer_id: z.ZodNumber; contact_email: z.ZodOptional<z.ZodString>; contact_phone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { customer_id: number; distributor_name: string; distributor_desc?: string | undefined; contact_email?: string | undefined; contact_phone?: string | undefined; }, { customer_id: number; distributor_name: string; distributor_desc?: string | undefined; contact_email?: string | undefined; contact_phone?: string | undefined; }>; export declare const UpdateDistributorRequestSchema: z.ZodObject<{ distributor_name: z.ZodOptional<z.ZodString>; distributor_desc: z.ZodOptional<z.ZodString>; contact_email: z.ZodOptional<z.ZodString>; contact_phone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { distributor_name?: string | undefined; distributor_desc?: string | undefined; contact_email?: string | undefined; contact_phone?: string | undefined; }, { distributor_name?: string | undefined; distributor_desc?: string | undefined; contact_email?: string | undefined; contact_phone?: string | undefined; }>; export declare const EnableDistributorRequestSchema: z.ZodObject<{ status_cd: z.ZodUnion<[z.ZodLiteral<700>, z.ZodLiteral<704>, z.ZodLiteral<705>]>; }, "strip", z.ZodTypeAny, { status_cd: 704 | 700 | 705; }, { status_cd: 704 | 700 | 705; }>; export declare const DistributorListResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodArray<z.ZodObject<{ distributors_uid: z.ZodNumber; distributor_name: z.ZodString; distributor_desc: z.ZodOptional<z.ZodString>; customer_id: z.ZodNumber; contact_email: z.ZodOptional<z.ZodString>; contact_phone: z.ZodOptional<z.ZodString>; status_cd: z.ZodNumber; create_cd: z.ZodString; update_cd: z.ZodString; }, "strip", z.ZodTypeAny, { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; distributor_name: string; distributor_desc?: string | undefined; contact_email?: string | undefined; contact_phone?: string | undefined; }, { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; distributor_name: string; distributor_desc?: string | undefined; contact_email?: string | undefined; contact_phone?: string | undefined; }>, "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: { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; distributor_name: string; distributor_desc?: string | undefined; contact_email?: string | undefined; contact_phone?: string | undefined; }[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; distributor_name: string; distributor_desc?: string | undefined; contact_email?: string | undefined; contact_phone?: string | undefined; }[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>, { params: Record<string, unknown> | unknown[]; data: { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; distributor_name: string; distributor_desc?: string | undefined; contact_email?: string | undefined; contact_phone?: string | undefined; }[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; distributor_name: string; distributor_desc?: string | undefined; contact_email?: string | undefined; contact_phone?: string | undefined; }[]; 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<{ distributors_uid: z.ZodNumber; distributor_name: z.ZodString; distributor_desc: z.ZodOptional<z.ZodString>; customer_id: z.ZodNumber; contact_email: z.ZodOptional<z.ZodString>; contact_phone: z.ZodOptional<z.ZodString>; status_cd: z.ZodNumber; create_cd: z.ZodString; update_cd: z.ZodString; }, "strip", z.ZodTypeAny, { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; distributor_name: string; distributor_desc?: string | undefined; contact_email?: string | undefined; contact_phone?: string | undefined; }, { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; distributor_name: string; distributor_desc?: string | undefined; contact_email?: string | undefined; contact_phone?: string | undefined; }>; 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: { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; distributor_name: string; distributor_desc?: string | undefined; contact_email?: string | undefined; contact_phone?: string | undefined; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; distributor_name: string; distributor_desc?: string | undefined; contact_email?: string | undefined; contact_phone?: string | undefined; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>, { params: Record<string, unknown> | unknown[]; data: { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; distributor_name: string; distributor_desc?: string | undefined; contact_email?: string | undefined; contact_phone?: string | undefined; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; distributor_name: string; distributor_desc?: string | undefined; contact_email?: string | undefined; contact_phone?: string | undefined; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; export declare const ProductSchema: z.ZodObject<{ products_uid: z.ZodNumber; product_id: z.ZodString; product_name: z.ZodString; product_desc: z.ZodOptional<z.ZodString>; distributors_uid: z.ZodNumber; customer_id: z.ZodNumber; status_cd: z.ZodNumber; create_cd: z.ZodString; update_cd: z.ZodString; }, "strip", z.ZodTypeAny, { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; products_uid: number; product_id: string; product_name: string; product_desc?: string | undefined; }, { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; products_uid: number; product_id: string; product_name: string; product_desc?: string | undefined; }>; export declare const ProductFindItemSchema: z.ZodObject<{ inv_mast_uid: z.ZodNumber; item_id: z.ZodString; description: z.ZodString; default_selling_unit: z.ZodString; type: z.ZodUnion<[z.ZodLiteral<"prophet21">, z.ZodLiteral<"products">]>; }, "strip", z.ZodTypeAny, { type: "prophet21" | "products"; description: string; inv_mast_uid: number; item_id: string; default_selling_unit: string; }, { type: "prophet21" | "products"; description: string; inv_mast_uid: number; item_id: string; default_selling_unit: string; }>; 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 | 4 | 1 | 5 | 8, 3 | 2 | 4 | 1 | "1" | 5 | 8 | "2" | "3" | "4" | "5" | "8">>; } & { customerId: z.ZodOptional<z.ZodNumber>; distributorsUid: z.ZodOptional<z.ZodNumber>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; prefix: z.ZodOptional<z.ZodString>; q: z.ZodOptional<z.ZodString>; statusCd: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { limit: number; offset: number; statusCd: number; edgeCache?: 3 | 2 | 4 | 1 | 5 | 8 | undefined; q?: string | undefined; customerId?: number | undefined; distributorsUid?: number | undefined; prefix?: string | undefined; }, { edgeCache?: 3 | 2 | 4 | 1 | "1" | 5 | 8 | "2" | "3" | "4" | "5" | "8" | undefined; limit?: number | undefined; offset?: number | 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 | 4 | 1 | 5 | 8, 3 | 2 | 4 | 1 | "1" | 5 | 8 | "2" | "3" | "4" | "5" | "8">>; } & { customerId: z.ZodOptional<z.ZodNumber>; prefix: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { edgeCache?: 3 | 2 | 4 | 1 | 5 | 8 | undefined; limit?: number | undefined; offset?: number | undefined; customerId?: number | undefined; prefix?: string | undefined; }, { edgeCache?: 3 | 2 | 4 | 1 | "1" | 5 | 8 | "2" | "3" | "4" | "5" | "8" | undefined; limit?: number | undefined; offset?: number | undefined; customerId?: number | undefined; prefix?: string | undefined; }>; export declare const CreateProductRequestSchema: z.ZodObject<{ product_id: z.ZodString; product_name: z.ZodString; product_desc: z.ZodOptional<z.ZodString>; distributors_uid: z.ZodNumber; customer_id: z.ZodNumber; }, "strip", z.ZodTypeAny, { customer_id: number; distributors_uid: number; product_id: string; product_name: string; product_desc?: string | undefined; }, { customer_id: number; distributors_uid: number; product_id: string; product_name: string; product_desc?: string | undefined; }>; export declare const UpdateProductRequestSchema: z.ZodObject<{ product_name: z.ZodOptional<z.ZodString>; product_desc: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { product_name?: string | undefined; product_desc?: string | undefined; }, { product_name?: string | undefined; product_desc?: string | undefined; }>; export declare const EnableProductRequestSchema: z.ZodObject<{ status_cd: z.ZodUnion<[z.ZodLiteral<700>, z.ZodLiteral<704>, z.ZodLiteral<705>]>; }, "strip", z.ZodTypeAny, { status_cd: 704 | 700 | 705; }, { status_cd: 704 | 700 | 705; }>; export declare const ProductListResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodArray<z.ZodObject<{ products_uid: z.ZodNumber; product_id: z.ZodString; product_name: z.ZodString; product_desc: z.ZodOptional<z.ZodString>; distributors_uid: z.ZodNumber; customer_id: z.ZodNumber; status_cd: z.ZodNumber; create_cd: z.ZodString; update_cd: z.ZodString; }, "strip", z.ZodTypeAny, { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; products_uid: number; product_id: string; product_name: string; product_desc?: string | undefined; }, { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; products_uid: number; product_id: string; product_name: string; product_desc?: string | undefined; }>, "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: { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; products_uid: number; product_id: string; product_name: string; product_desc?: string | undefined; }[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; products_uid: number; product_id: string; product_name: string; product_desc?: string | undefined; }[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>, { params: Record<string, unknown> | unknown[]; data: { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; products_uid: number; product_id: string; product_name: string; product_desc?: string | undefined; }[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; products_uid: number; product_id: string; product_name: string; product_desc?: string | undefined; }[]; 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<{ products_uid: z.ZodNumber; product_id: z.ZodString; product_name: z.ZodString; product_desc: z.ZodOptional<z.ZodString>; distributors_uid: z.ZodNumber; customer_id: z.ZodNumber; status_cd: z.ZodNumber; create_cd: z.ZodString; update_cd: z.ZodString; }, "strip", z.ZodTypeAny, { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; products_uid: number; product_id: string; product_name: string; product_desc?: string | undefined; }, { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; products_uid: number; product_id: string; product_name: string; product_desc?: string | undefined; }>; 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: { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; products_uid: number; product_id: string; product_name: string; product_desc?: string | undefined; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; products_uid: number; product_id: string; product_name: string; product_desc?: string | undefined; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>, { params: Record<string, unknown> | unknown[]; data: { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; products_uid: number; product_id: string; product_name: string; product_desc?: string | undefined; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { customer_id: number; status_cd: number; create_cd: string; update_cd: string; distributors_uid: number; products_uid: number; product_id: string; product_name: string; product_desc?: string | undefined; }; 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<{ inv_mast_uid: z.ZodNumber; item_id: z.ZodString; description: z.ZodString; default_selling_unit: z.ZodString; type: z.ZodUnion<[z.ZodLiteral<"prophet21">, z.ZodLiteral<"products">]>; }, "strip", z.ZodTypeAny, { type: "prophet21" | "products"; description: string; inv_mast_uid: number; item_id: string; default_selling_unit: string; }, { type: "prophet21" | "products"; description: string; inv_mast_uid: number; item_id: string; default_selling_unit: string; }>, "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: { type: "prophet21" | "products"; description: string; inv_mast_uid: number; item_id: string; default_selling_unit: string; }[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { type: "prophet21" | "products"; description: string; inv_mast_uid: number; item_id: string; default_selling_unit: string; }[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>, { params: Record<string, unknown> | unknown[]; data: { type: "prophet21" | "products"; description: string; inv_mast_uid: number; item_id: string; default_selling_unit: string; }[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { type: "prophet21" | "products"; description: string; inv_mast_uid: number; item_id: string; default_selling_unit: string; }[]; 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