lemmy-js-client/src/interfaces/aggregates.ts
Dessalines 32b783b407
Add active aggregates (#3)
* Adding some more active aggregates fields.

* v0.9.1-rc.2

* v0.9.1-rc.3
2021-01-29 10:11:11 -05:00

51 lines
1,003 B
TypeScript

export interface UserAggregates {
id: number;
user_id: number;
post_count: number;
post_score: number;
comment_count: number;
comment_score: number;
}
export interface SiteAggregates {
id: number;
site_id: number;
users: number;
posts: number;
comments: number;
communities: number;
users_active_day: number;
users_active_week: number;
users_active_month: number;
users_active_half_year: number;
}
export interface PostAggregates {
id: number;
post_id: number;
comments: number;
score: number;
upvotes: number;
downvotes: number;
newest_comment_time: string;
}
export interface CommunityAggregates {
id: number;
community_id: number;
subscribers: number;
posts: number;
comments: number;
users_active_day: number;
users_active_week: number;
users_active_month: number;
users_active_half_year: number;
}
export interface CommentAggregates {
id: number;
comment_id: number;
score: number;
upvotes: number;
downvotes: number;
}