UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

29 lines 1.86 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AttributeGroupListResponseSchema = exports.AttributeGroupResponseSchema = exports.AttributeGroupDetailParamsSchema = exports.AttributeGroupListParamsSchema = exports.UpdateAttributeGroupRequestSchema = exports.CreateAttributeGroupRequestSchema = exports.AttributeGroupSummarySchema = exports.AttributeGroupSchema = void 0; const zod_1 = require("zod"); const schemas_1 = require("../../../core/schemas"); /** Attribute group - key field only, passthrough for API flexibility */ exports.AttributeGroupSchema = zod_1.z.object({ attributeGroupUid: zod_1.z.number() }).passthrough(); /** Attribute group summary - key field only, passthrough for API flexibility */ exports.AttributeGroupSummarySchema = zod_1.z .object({ attributeGroupUid: zod_1.z.number() }) .passthrough(); /** Create attribute group request - passthrough for flexible input */ exports.CreateAttributeGroupRequestSchema = zod_1.z.object({}).passthrough(); /** Update attribute group request - passthrough for flexible input */ exports.UpdateAttributeGroupRequestSchema = zod_1.z.object({}).passthrough(); exports.AttributeGroupListParamsSchema = zod_1.z.object({ limit: zod_1.z.number().int().positive().optional(), offset: zod_1.z.number().int().min(0).optional(), q: zod_1.z.string().optional(), statusCd: zod_1.z.number().optional(), orderBy: zod_1.z.string().optional(), }); exports.AttributeGroupDetailParamsSchema = zod_1.z.object({ attributeGroupUid: zod_1.z.number(), }); // Response schemas exports.AttributeGroupResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.AttributeGroupSchema); exports.AttributeGroupListResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.AttributeGroupSummarySchema)); //# sourceMappingURL=attributeGroups.js.map