UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

26 lines 1.92 kB
import { z } from 'zod'; import { BaseResponseSchema } from '../../../core/schemas'; /** Also bought product - key field only, passthrough for API flexibility */ export const AlsoBoughtProductSchema = z.object({ invMastUid: z.number() }).passthrough(); /** Inventory master tag - key field only, passthrough for API flexibility */ export const InvMastTagSchema = z.object({ invMastTagsUid: z.number() }).passthrough(); /** Create inv mast tag request - passthrough for flexible input */ export const CreateInvMastTagRequestSchema = z.object({}).passthrough(); /** Update inv mast tag request - passthrough for flexible input */ export const UpdateInvMastTagRequestSchema = z.object({}).passthrough(); /** Inventory master web description - key field only */ export const InvMastWebDescSchema = z.object({ invMastWebDescUid: z.number() }).passthrough(); /** Create inv mast web desc request - passthrough for flexible input */ export const CreateInvMastWebDescRequestSchema = z.object({}).passthrough(); /** Update inv mast web desc request - passthrough for flexible input */ export const UpdateInvMastWebDescRequestSchema = z.object({}).passthrough(); /** Item category - key field only */ export const ItemCategorySchema = z.object({ itemCategoryUid: z.number() }).passthrough(); // Response schemas using BaseResponseSchema (8-field format) export const AlsoBoughtListResponseSchema = BaseResponseSchema(z.array(AlsoBoughtProductSchema)); export const InvMastTagListResponseSchema = BaseResponseSchema(z.array(InvMastTagSchema)); export const InvMastTagResponseSchema = BaseResponseSchema(InvMastTagSchema); export const InvMastWebDescListResponseSchema = BaseResponseSchema(z.array(InvMastWebDescSchema)); export const InvMastWebDescResponseSchema = BaseResponseSchema(InvMastWebDescSchema); export const ItemCategoryResponseSchema = BaseResponseSchema(ItemCategorySchema); //# sourceMappingURL=inventory.js.map