@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
74 lines • 3.57 kB
TypeScript
import { z } from 'zod';
/**
* Query parameters schema for inventory master document endpoint
* OpenAPI: GET /inv-mast/{invMastUid}/doc
*/
export declare const InvMastDocParamsSchema: z.ZodObject<{
includePricing: z.ZodOptional<z.ZodString>;
itemId: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
itemId?: string | undefined;
includePricing?: string | undefined;
}, {
itemId?: string | undefined;
includePricing?: string | undefined;
}>;
/**
* Inventory Master documentation data schema
* Based on OpenAPI spec - data can be object, array of objects, string, or null
*/
export declare const InvMastDocDataSchema: z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">, z.ZodString, z.ZodNull]>;
export type InvMastDocParams = z.infer<typeof InvMastDocParamsSchema>;
export type InvMastDocData = z.infer<typeof InvMastDocDataSchema>;
/**
* Response schema for inventory master documentation
* Uses the corrected data schema that matches OpenAPI specification
*/
export declare const InvMastDocResponseSchema: z.ZodEffects<z.ZodObject<{
count: z.ZodNumber;
data: z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">, z.ZodString, z.ZodNull]>;
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: string | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null;
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}, {
params: Record<string, unknown> | unknown[];
data: string | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null;
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>, {
params: Record<string, unknown> | unknown[];
data: string | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null;
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}, {
params: Record<string, unknown> | unknown[];
data: string | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null;
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>;
export type InvMastDocResponse = z.infer<typeof InvMastDocResponseSchema>;
//# sourceMappingURL=invMastDoc.d.ts.map