UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

29 lines 1.19 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InvMastDocResponseSchema = exports.InvMastDocDataSchema = exports.InvMastDocParamsSchema = void 0; const zod_1 = require("zod"); const schemas_1 = require("../../../core/schemas"); /** * Query parameters schema for inventory master document endpoint * OpenAPI: GET /inv-mast/{invMastUid}/doc */ exports.InvMastDocParamsSchema = zod_1.z.object({ includePricing: zod_1.z.string().optional(), itemId: zod_1.z.string().optional(), }); /** * Inventory Master documentation data schema * Based on OpenAPI spec - data can be object, array of objects, string, or null */ exports.InvMastDocDataSchema = zod_1.z.union([ zod_1.z.object({}).passthrough(), // Generic object (often DTO) zod_1.z.array(zod_1.z.object({}).passthrough()), // Array of objects zod_1.z.string(), // String value zod_1.z.null(), // No data ]); /** * Response schema for inventory master documentation * Uses the corrected data schema that matches OpenAPI specification */ exports.InvMastDocResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.InvMastDocDataSchema); //# sourceMappingURL=invMastDoc.js.map