@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
24 lines • 1.09 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ContentResponseSchema = exports.ContentItemSchema = exports.ContentParamsSchema = void 0;
const zod_1 = require("zod");
const schemas_1 = require("../../../core/schemas");
/**
* Schema for /content GET endpoint
* Returns paginated list of content items with filtering and search capabilities
*/
exports.ContentParamsSchema = zod_1.z
.object({
categoryIdList: zod_1.z.string().optional(),
limit: zod_1.z.number().int().min(1).max(100).optional(),
offset: zod_1.z.number().int().min(0).optional(),
orderBy: zod_1.z.string().optional(),
q: zod_1.z.string().optional(),
tagsList: zod_1.z.string().optional(),
})
.passthrough();
// OpenAPI spec uses generic object type without specific field definitions
// Using z.object({}).passthrough() to accept any object shape
exports.ContentItemSchema = zod_1.z.object({}).passthrough();
exports.ContentResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.ContentItemSchema));
//# sourceMappingURL=content.js.map