@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
26 lines • 1.17 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvLocListResponseSchema = exports.InvLocDataSchema = exports.InvLocListParamsSchema = void 0;
const zod_1 = require("zod");
const schemas_1 = require("../../../core/schemas");
// Params schema for /inv-loc endpoint
exports.InvLocListParamsSchema = schemas_1.BaseGetParamsSchema.extend({
invMastUid: zod_1.z.coerce.number().optional(),
limit: zod_1.z.coerce.number().optional(),
offset: zod_1.z.coerce.number().optional(),
});
// Data schema for InvLoc records - key fields with passthrough
exports.InvLocDataSchema = zod_1.z
.object({
companyId: zod_1.z.string().optional(),
locationId: zod_1.z.number().optional(),
invMastUid: zod_1.z.number().optional(),
qtyOnHand: zod_1.z.number().nullable().optional(),
qtyInProcess: zod_1.z.number().nullable().optional(),
dateCreated: zod_1.z.string().optional(),
dateLastModified: zod_1.z.string().optional(),
})
.passthrough();
// Response schemas
exports.InvLocListResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.InvLocDataSchema));
//# sourceMappingURL=invLocList.js.map