@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
24 lines • 1.63 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AttributeGroupAttributeListResponseSchema = exports.AttributeGroupAttributeResponseSchema = exports.AttributeGroupAttributeSchema = exports.UpdateAttributeGroupAttributeRequestSchema = exports.CreateAttributeGroupAttributeRequestSchema = exports.AttributeGroupAttributesListParamsSchema = void 0;
const zod_1 = require("zod");
const schemas_1 = require("../../../core/schemas");
/** Attribute group attributes list params */
exports.AttributeGroupAttributesListParamsSchema = zod_1.z.object({
limit: zod_1.z.number().int().positive().optional(),
offset: zod_1.z.number().int().min(0).optional(),
orderBy: zod_1.z.string().optional(),
q: zod_1.z.string().optional(),
statusCd: zod_1.z.number().optional(),
});
/** Create request - passthrough for flexible input */
exports.CreateAttributeGroupAttributeRequestSchema = zod_1.z.object({}).passthrough();
/** Update request - passthrough for flexible input */
exports.UpdateAttributeGroupAttributeRequestSchema = zod_1.z.object({}).passthrough();
/** Attribute group attribute - key field only, passthrough for API flexibility */
exports.AttributeGroupAttributeSchema = zod_1.z
.object({ attributeXAttributeGroupUid: zod_1.z.number() })
.passthrough();
exports.AttributeGroupAttributeResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.AttributeGroupAttributeSchema);
exports.AttributeGroupAttributeListResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.AttributeGroupAttributeSchema));
//# sourceMappingURL=attributeGroupsAttributes.js.map