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