@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
27 lines • 1.64 kB
JavaScript
import { z } from 'zod';
import { BaseResponseSchema } from '../../../core/schemas';
/** Inventory availability - key field only, passthrough for API flexibility */
export const InventoryAvailabilitySchema = z.object({ invMastUid: z.number() }).passthrough();
export const InventoryAvailabilityParamsSchema = z.object({
q: z.string().min(1, 'Search query is required'),
});
/** Inventory adjustment - passthrough for flexible input */
export const InventoryAdjustmentSchema = z.object({}).passthrough();
/** Inventory adjust request - passthrough for flexible input */
export const InventoryAdjustRequestSchema = z.object({}).passthrough();
/** Inventory receipt - passthrough for flexible input */
export const InventoryReceiptSchema = z.object({}).passthrough();
/** Inventory receive request - passthrough for flexible input */
export const InventoryReceiveRequestSchema = z.object({}).passthrough();
/** Transfer item - passthrough for flexible input */
export const TransferItemSchema = z.object({}).passthrough();
/** Transfer request - passthrough for flexible input */
export const TransferRequestSchema = z.object({}).passthrough();
/** Warranty info - passthrough for API flexibility */
export const WarrantyInfoSchema = z.object({}).passthrough();
/** Usage item - passthrough for flexible input */
export const UsageItemSchema = z.object({}).passthrough();
/** Usage request - passthrough for flexible input */
export const UsageRequestSchema = z.object({}).passthrough();
export const InventoryAvailabilityResponseSchema = BaseResponseSchema(z.array(InventoryAvailabilitySchema));
//# sourceMappingURL=inventory.js.map