@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
34 lines • 1.75 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvMastLocationBinListResponseSchema = exports.InvMastLocationBinResponseSchema = exports.InvMastLocationBinSchema = exports.InvMastLocationsBinsParamsSchema = void 0;
const zod_1 = require("zod");
const schemas_1 = require("../../../core/schemas");
/**
* Parameter schema for inventory master location bins list endpoint
* OpenAPI: /inv-mast/{invMastUid}/locations/{locationId}/bins GET
*/
exports.InvMastLocationsBinsParamsSchema = zod_1.z.object({
limit: zod_1.z.coerce.number().min(1).max(1000).optional().default(10),
offset: zod_1.z.coerce.number().min(0).optional().default(0),
excludeZero: zod_1.z.string().optional(), // "Exclude bins with zero quantity [Y|N], defaults to Y"
});
/**
* Inventory location bin schema for nested path structure
* OpenAPI: /inv-mast/{invMastUid}/locations/{locationId}/bins
*
* Per OpenAPI specification, the response data is defined as:
* - "type": "array"
* - "items": { "type": "object" }
* - "description": "Array of objects (often DTOs)"
*
* The OpenAPI spec does NOT define specific object properties, only that
* data contains an array of generic objects. Following the OpenAPI spec exactly,
* we use z.record() to accept any object structure as the spec allows.
*/
exports.InvMastLocationBinSchema = zod_1.z.record(zod_1.z.unknown());
/**
* Response schemas for inv-mast locations bins endpoints
*/
exports.InvMastLocationBinResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.InvMastLocationBinSchema);
exports.InvMastLocationBinListResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.InvMastLocationBinSchema));
//# sourceMappingURL=invMastLocationsBins.js.map