Application Load
IBlogPostsResponse
The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.
IBlogPostsResponseThe response has a paginated posts block and a separate category tree. Full-only fields are conditional.
interfaces/orionplace/blog/IBlogApi.tsexport interface IBlogPostsResponse {
// Field or general errors.
form_errors: Record<string, ApiFormError[]> | null;
// Success message, or null.
success_message: string | null;
// Post list, writer options and category tree.
page_data: {
// Value of posts.
posts: {
// Value of data.
data: IBlogPost[];
// Value of rpag.
rpag: IApiPagination;
// Value of keys.
keys: {
// Value of writers.
writers: {
// Value of key.
key: string;
// Value of value.
value: number;
}[];
};
};
// Post categories with subcategories up to depth 3. `c_posts` counts
// visible posts assigned directly to the category, before filtering.
categories: IBlogCategory[];
} | null;
}