@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
16 lines • 864 B
JavaScript
import { z } from 'zod';
import { BaseResponseSchema, BaseGetParamsSchema } from '../../../core/schemas';
/** Also-bought params */
export const AlsoBoughtParamsSchema = BaseGetParamsSchema.extend({
limit: z.coerce.number().optional().default(10),
offset: z.coerce.number().optional().default(0),
});
/** Item UOM - passthrough for API flexibility */
export const ItemUomSchema = z.object({}).passthrough();
/** Inventory master text - passthrough for API flexibility */
export const InvMastTextSchema = z.object({}).passthrough();
/** Also-bought item - key field only, passthrough for API flexibility */
export const AlsoBoughtItemSchema = z.object({ invMastUid: z.number() }).passthrough();
/** Also-bought response */
export const AlsoBoughtResponseSchema = BaseResponseSchema(z.array(AlsoBoughtItemSchema));
//# sourceMappingURL=recommendations.js.map