@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
17 lines • 1.26 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomerCustomerIdShipToCreateResponseSchema = exports.CustomerCustomerIdShipToListResponseSchema = exports.ShipToAddressSchema = exports.CustomerCustomerIdShipToCreateParamsSchema = exports.CustomerCustomerIdShipToListParamsSchema = void 0;
const zod_1 = require("zod");
const schemas_1 = require("../../../core/schemas");
exports.CustomerCustomerIdShipToListParamsSchema = schemas_1.BaseGetParamsSchema.extend({
limit: zod_1.z.coerce.number().optional(),
offset: zod_1.z.coerce.number().optional(),
orderBy: zod_1.z.string().optional(),
});
/** Create ship-to params - passthrough for flexible input */
exports.CustomerCustomerIdShipToCreateParamsSchema = zod_1.z.object({}).passthrough();
/** Ship-to address - key field only, passthrough for API flexibility */
exports.ShipToAddressSchema = zod_1.z.object({ shipToId: zod_1.z.coerce.number() }).passthrough();
exports.CustomerCustomerIdShipToListResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.ShipToAddressSchema));
exports.CustomerCustomerIdShipToCreateResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.ShipToAddressSchema);
//# sourceMappingURL=customerCustomerIdShipTo.js.map