@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
15 lines • 890 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomerCustomerIdInvoicesResponseSchema = exports.InvoiceSchema = exports.CustomerCustomerIdInvoicesParamsSchema = void 0;
const zod_1 = require("zod");
const schemas_1 = require("../../../core/schemas");
exports.CustomerCustomerIdInvoicesParamsSchema = schemas_1.BaseGetParamsSchema.extend({
limit: zod_1.z.coerce.number().optional(),
offset: zod_1.z.coerce.number().optional(),
q: zod_1.z.string(),
shipToId: zod_1.z.coerce.number().optional(),
});
/** Invoice - key field only, passthrough for API flexibility */
exports.InvoiceSchema = zod_1.z.object({ invoiceNo: zod_1.z.coerce.number() }).passthrough();
exports.CustomerCustomerIdInvoicesResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.InvoiceSchema));
//# sourceMappingURL=customerCustomerIdInvoices.js.map