@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
29 lines • 2.68 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ItemCategoryResponseSchema = exports.InvMastWebDescResponseSchema = exports.InvMastWebDescListResponseSchema = exports.InvMastTagResponseSchema = exports.InvMastTagListResponseSchema = exports.AlsoBoughtListResponseSchema = exports.ItemCategorySchema = exports.UpdateInvMastWebDescRequestSchema = exports.CreateInvMastWebDescRequestSchema = exports.InvMastWebDescSchema = exports.UpdateInvMastTagRequestSchema = exports.CreateInvMastTagRequestSchema = exports.InvMastTagSchema = exports.AlsoBoughtProductSchema = void 0;
const zod_1 = require("zod");
const schemas_1 = require("../../../core/schemas");
/** Also bought product - key field only, passthrough for API flexibility */
exports.AlsoBoughtProductSchema = zod_1.z.object({ invMastUid: zod_1.z.number() }).passthrough();
/** Inventory master tag - key field only, passthrough for API flexibility */
exports.InvMastTagSchema = zod_1.z.object({ invMastTagsUid: zod_1.z.number() }).passthrough();
/** Create inv mast tag request - passthrough for flexible input */
exports.CreateInvMastTagRequestSchema = zod_1.z.object({}).passthrough();
/** Update inv mast tag request - passthrough for flexible input */
exports.UpdateInvMastTagRequestSchema = zod_1.z.object({}).passthrough();
/** Inventory master web description - key field only */
exports.InvMastWebDescSchema = zod_1.z.object({ invMastWebDescUid: zod_1.z.number() }).passthrough();
/** Create inv mast web desc request - passthrough for flexible input */
exports.CreateInvMastWebDescRequestSchema = zod_1.z.object({}).passthrough();
/** Update inv mast web desc request - passthrough for flexible input */
exports.UpdateInvMastWebDescRequestSchema = zod_1.z.object({}).passthrough();
/** Item category - key field only */
exports.ItemCategorySchema = zod_1.z.object({ itemCategoryUid: zod_1.z.number() }).passthrough();
// Response schemas using BaseResponseSchema (8-field format)
exports.AlsoBoughtListResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.AlsoBoughtProductSchema));
exports.InvMastTagListResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.InvMastTagSchema));
exports.InvMastTagResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.InvMastTagSchema);
exports.InvMastWebDescListResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.InvMastWebDescSchema));
exports.InvMastWebDescResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.InvMastWebDescSchema);
exports.ItemCategoryResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.ItemCategorySchema);
//# sourceMappingURL=inventory.js.map