UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

26 lines 1.23 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PurchasedItemListResponseSchema = exports.PurchasedItemListParamsSchema = exports.PurchasedItemSchema = void 0; const zod_1 = require("zod"); const schemas_1 = require("../../../core/schemas"); // Purchased item schema - based on PurchasedItems.json exports.PurchasedItemSchema = zod_1.z.object({ customerId: zod_1.z.number(), invMastUid: zod_1.z.number(), count: zod_1.z.number(), invoices: zod_1.z.number(), lastOrderNo: zod_1.z.string().max(8).nullable(), dateLastPurchased: zod_1.z.string().nullable(), // Y-m-d format itemId: zod_1.z.string(), itemDesc: zod_1.z.string().nullable(), displayDesc: zod_1.z.string().nullable(), }); // Purchased item list parameters schema exports.PurchasedItemListParamsSchema = schemas_1.BaseGetParamsSchema.extend({ limit: zod_1.z.number().optional(), offset: zod_1.z.number().optional(), orderBy: zod_1.z.string().optional(), }); // Response schemas using BaseResponseSchema (8-field format) exports.PurchasedItemListResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.PurchasedItemSchema)); //# sourceMappingURL=purchased-items.js.map