UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

28 lines 2.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InventoryMasterExtensionListResponseSchema = exports.InventoryMasterExtensionResponseSchema = exports.InventoryMasterExtensionUpdateParamsSchema = exports.InventoryMasterExtensionCreateParamsSchema = exports.InventoryMasterExtensionListParamsSchema = exports.InventoryMasterExtensionSchema = exports.InvMastExtListResponseSchema = exports.InvMastExtResponseSchema = exports.InvMastExtUpdateParamsSchema = exports.InvMastExtCreateParamsSchema = exports.InvMastExtListParamsSchema = exports.InvMastExtSchema = void 0; const zod_1 = require("zod"); const schemas_1 = require("../../../core/schemas"); /** InvMastExt entity - key field only, passthrough for API flexibility */ exports.InvMastExtSchema = zod_1.z.object({ invMastExtUid: zod_1.z.number() }).passthrough(); /** Parameter Schemas */ exports.InvMastExtListParamsSchema = schemas_1.BaseGetParamsSchema.extend({ limit: zod_1.z.number().int().min(1).max(1000).optional(), offset: zod_1.z.number().int().min(0).optional(), }); exports.InvMastExtCreateParamsSchema = zod_1.z.object({ invMastUid: zod_1.z.number().min(1), }); /** InvMastExt update params - passthrough for flexible input */ exports.InvMastExtUpdateParamsSchema = zod_1.z.object({}).passthrough(); /** Response Schemas */ exports.InvMastExtResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.InvMastExtSchema); exports.InvMastExtListResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.InvMastExtSchema)); // Legacy exports for backward compatibility exports.InventoryMasterExtensionSchema = exports.InvMastExtSchema; exports.InventoryMasterExtensionListParamsSchema = exports.InvMastExtListParamsSchema; exports.InventoryMasterExtensionCreateParamsSchema = exports.InvMastExtCreateParamsSchema; exports.InventoryMasterExtensionUpdateParamsSchema = exports.InvMastExtUpdateParamsSchema; exports.InventoryMasterExtensionResponseSchema = exports.InvMastExtResponseSchema; exports.InventoryMasterExtensionListResponseSchema = exports.InvMastExtListResponseSchema; //# sourceMappingURL=inventory.js.map