@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
25 lines • 1.47 kB
JavaScript
import { z } from 'zod';
import { BaseResponseSchema, BaseGetParamsSchema } from '../../../core/schemas';
/** InvMastExt entity - key field only, passthrough for API flexibility */
export const InvMastExtSchema = z.object({ invMastExtUid: z.number() }).passthrough();
/** Parameter Schemas */
export const InvMastExtListParamsSchema = BaseGetParamsSchema.extend({
limit: z.number().int().min(1).max(1000).optional(),
offset: z.number().int().min(0).optional(),
});
export const InvMastExtCreateParamsSchema = z.object({
invMastUid: z.number().min(1),
});
/** InvMastExt update params - passthrough for flexible input */
export const InvMastExtUpdateParamsSchema = z.object({}).passthrough();
/** Response Schemas */
export const InvMastExtResponseSchema = BaseResponseSchema(InvMastExtSchema);
export const InvMastExtListResponseSchema = BaseResponseSchema(z.array(InvMastExtSchema));
// Legacy exports for backward compatibility
export const InventoryMasterExtensionSchema = InvMastExtSchema;
export const InventoryMasterExtensionListParamsSchema = InvMastExtListParamsSchema;
export const InventoryMasterExtensionCreateParamsSchema = InvMastExtCreateParamsSchema;
export const InventoryMasterExtensionUpdateParamsSchema = InvMastExtUpdateParamsSchema;
export const InventoryMasterExtensionResponseSchema = InvMastExtResponseSchema;
export const InventoryMasterExtensionListResponseSchema = InvMastExtListResponseSchema;
//# sourceMappingURL=inventory.js.map