@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
17 lines • 1.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomerCustomerIdResponseSchema = exports.CustomerListResponseSchema = exports.CustomerSchema = exports.CustomerListParamsSchema = void 0;
const zod_1 = require("zod");
const schemas_1 = require("../../../core/schemas");
exports.CustomerListParamsSchema = schemas_1.BaseGetParamsSchema.extend({
class5Id: zod_1.z.string().optional(),
limit: zod_1.z.coerce.number().optional(),
offset: zod_1.z.coerce.number().optional(),
orderBy: zod_1.z.string().optional(),
q: zod_1.z.string().optional(),
});
/** Customer - key field only, passthrough for API flexibility */
exports.CustomerSchema = zod_1.z.object({ customerId: zod_1.z.coerce.number() }).passthrough();
exports.CustomerListResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.CustomerSchema));
exports.CustomerCustomerIdResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.CustomerSchema);
//# sourceMappingURL=customer.js.map