@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
19 lines • 1.13 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AlsoBoughtResponseSchema = exports.AlsoBoughtItemSchema = exports.InvMastTextSchema = exports.ItemUomSchema = exports.AlsoBoughtParamsSchema = void 0;
const zod_1 = require("zod");
const schemas_1 = require("../../../core/schemas");
/** Also-bought params */
exports.AlsoBoughtParamsSchema = schemas_1.BaseGetParamsSchema.extend({
limit: zod_1.z.coerce.number().optional().default(10),
offset: zod_1.z.coerce.number().optional().default(0),
});
/** Item UOM - passthrough for API flexibility */
exports.ItemUomSchema = zod_1.z.object({}).passthrough();
/** Inventory master text - passthrough for API flexibility */
exports.InvMastTextSchema = zod_1.z.object({}).passthrough();
/** Also-bought item - key field only, passthrough for API flexibility */
exports.AlsoBoughtItemSchema = zod_1.z.object({ invMastUid: zod_1.z.number() }).passthrough();
/** Also-bought response */
exports.AlsoBoughtResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.AlsoBoughtItemSchema));
//# sourceMappingURL=recommendations.js.map