@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
31 lines • 1.43 kB
JavaScript
import { z } from 'zod';
import { BaseResponseSchema } from '../../../core/schemas';
/**
* Parameter schema for inventory master location bins list endpoint
* OpenAPI: /inv-mast/{invMastUid}/locations/{locationId}/bins GET
*/
export const InvMastLocationsBinsParamsSchema = z.object({
limit: z.coerce.number().min(1).max(1000).optional().default(10),
offset: z.coerce.number().min(0).optional().default(0),
excludeZero: 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.
*/
export const InvMastLocationBinSchema = z.record(z.unknown());
/**
* Response schemas for inv-mast locations bins endpoints
*/
export const InvMastLocationBinResponseSchema = BaseResponseSchema(InvMastLocationBinSchema);
export const InvMastLocationBinListResponseSchema = BaseResponseSchema(z.array(InvMastLocationBinSchema));
//# sourceMappingURL=invMastLocationsBins.js.map