@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
26 lines • 1.36 kB
JavaScript
import { z } from 'zod';
import { BaseResponseSchema } from '../../../core/schemas';
/** Attribute group - key field only, passthrough for API flexibility */
export const AttributeGroupSchema = z.object({ attributeGroupUid: z.number() }).passthrough();
/** Attribute group summary - key field only, passthrough for API flexibility */
export const AttributeGroupSummarySchema = z
.object({ attributeGroupUid: z.number() })
.passthrough();
/** Create attribute group request - passthrough for flexible input */
export const CreateAttributeGroupRequestSchema = z.object({}).passthrough();
/** Update attribute group request - passthrough for flexible input */
export const UpdateAttributeGroupRequestSchema = z.object({}).passthrough();
export const AttributeGroupListParamsSchema = z.object({
limit: z.number().int().positive().optional(),
offset: z.number().int().min(0).optional(),
q: z.string().optional(),
statusCd: z.number().optional(),
orderBy: z.string().optional(),
});
export const AttributeGroupDetailParamsSchema = z.object({
attributeGroupUid: z.number(),
});
// Response schemas
export const AttributeGroupResponseSchema = BaseResponseSchema(AttributeGroupSchema);
export const AttributeGroupListResponseSchema = BaseResponseSchema(z.array(AttributeGroupSummarySchema));
//# sourceMappingURL=attributeGroups.js.map