@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
18 lines • 1.09 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LocationsBinsItemResponseSchema = exports.LocationsBinsResponseSchema = exports.LocationsBinsParamsSchema = exports.LocationsBinsSchema = void 0;
const zod_1 = require("zod");
const schemas_1 = require("../../../core/schemas");
// OpenAPI spec defines only "type": "object" with no specific properties (line 7512)
exports.LocationsBinsSchema = zod_1.z.object({}).passthrough();
// Parameters for locations bins endpoints
exports.LocationsBinsParamsSchema = schemas_1.BaseGetParamsSchema.extend({
excludeZero: zod_1.z.string().optional(), // Y|N defaults to Y
bin: zod_1.z.string().optional(), // Filter by specific bin
hasStock: zod_1.z.boolean().optional(),
orderBy: zod_1.z.string().optional(),
});
// Response Schemas
exports.LocationsBinsResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.LocationsBinsSchema));
exports.LocationsBinsItemResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.LocationsBinsSchema);
//# sourceMappingURL=locationsBins.js.map