@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
14 lines • 888 B
JavaScript
import { z } from 'zod';
import { BaseResponseSchema, BaseGetParamsSchema } from '../../../core/schemas';
export const CustomerCustomerIdShipToListParamsSchema = BaseGetParamsSchema.extend({
limit: z.coerce.number().optional(),
offset: z.coerce.number().optional(),
orderBy: z.string().optional(),
});
/** Create ship-to params - passthrough for flexible input */
export const CustomerCustomerIdShipToCreateParamsSchema = z.object({}).passthrough();
/** Ship-to address - key field only, passthrough for API flexibility */
export const ShipToAddressSchema = z.object({ shipToId: z.coerce.number() }).passthrough();
export const CustomerCustomerIdShipToListResponseSchema = BaseResponseSchema(z.array(ShipToAddressSchema));
export const CustomerCustomerIdShipToCreateResponseSchema = BaseResponseSchema(ShipToAddressSchema);
//# sourceMappingURL=customerCustomerIdShipTo.js.map