@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
14 lines • 810 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomerLookupResponseSchema = exports.CustomerLookupSchema = exports.CustomerLookupParamsSchema = void 0;
const zod_1 = require("zod");
const schemas_1 = require("../../../core/schemas");
exports.CustomerLookupParamsSchema = schemas_1.BaseGetParamsSchema.extend({
q: zod_1.z.string(),
limit: zod_1.z.coerce.number().optional(),
offset: zod_1.z.coerce.number().optional(),
});
/** Customer lookup - key field only, passthrough for API flexibility */
exports.CustomerLookupSchema = zod_1.z.object({ customerId: zod_1.z.coerce.number() }).passthrough();
exports.CustomerLookupResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.CustomerLookupSchema));
//# sourceMappingURL=customerLookup.js.map