UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

34 lines 1.84 kB
import { z } from 'zod'; import { BaseResponseSchema, BaseGetParamsSchema } from '../../../core/schemas'; /** Replenishment item - key field only, passthrough for API flexibility */ export const ReplenishmentItemSchema = z.object({ invMastUid: z.number() }).passthrough(); /** Replenishment info - passthrough for API flexibility */ export const ReplenishmentInfoSchema = z .object({ warehouseUid: z.number(), replenishmentItems: z.array(ReplenishmentItemSchema).optional(), }) .passthrough(); export const ReplenishmentParamsSchema = z.object({ distributorsUid: z.number().optional(), }); /** Restock item - passthrough for flexible input */ export const RestockItemSchema = z.object({}).passthrough(); /** Replenish request - passthrough for flexible input */ export const ReplenishRequestSchema = z.object({}).passthrough(); export const ReplenishmentInfoResponseSchema = BaseResponseSchema(ReplenishmentInfoSchema); /** Restock header - key field only, passthrough for API flexibility */ export const RestockHdrSchema = z.object({ restockHdrUid: z.number() }).passthrough(); export const RestockHdrListParamsSchema = BaseGetParamsSchema.extend({ warehouseUid: z.number().optional(), distributorsUid: z.number().optional(), limit: z.number().optional().default(10), offset: z.number().optional().default(0), }); /** Create restock header request - passthrough for flexible input */ export const CreateRestockHdrRequestSchema = z.object({}).passthrough(); /** Update restock header request - passthrough for flexible input */ export const UpdateRestockHdrRequestSchema = z.object({}).passthrough(); export const RestockHdrListResponseSchema = BaseResponseSchema(z.array(RestockHdrSchema)); export const RestockHdrResponseSchema = BaseResponseSchema(RestockHdrSchema); //# sourceMappingURL=restock.js.map