mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-25 22:01:12 +00:00
Add active aggregates (#3)
* Adding some more active aggregates fields. * v0.9.1-rc.2 * v0.9.1-rc.3
This commit is contained in:
parent
7b26039441
commit
32b783b407
3 changed files with 12 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "lemmy-js-client",
|
"name": "lemmy-js-client",
|
||||||
"description": "A javascript / typescript client for Lemmy",
|
"description": "A javascript / typescript client for Lemmy",
|
||||||
"version": "0.9.1-rc.1",
|
"version": "0.9.1-rc.3",
|
||||||
"author": "Dessalines <tyhou13@gmx.com>",
|
"author": "Dessalines <tyhou13@gmx.com>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|
|
@ -14,6 +14,10 @@ export interface SiteAggregates {
|
||||||
posts: number;
|
posts: number;
|
||||||
comments: number;
|
comments: number;
|
||||||
communities: number;
|
communities: number;
|
||||||
|
users_active_day: number;
|
||||||
|
users_active_week: number;
|
||||||
|
users_active_month: number;
|
||||||
|
users_active_half_year: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PostAggregates {
|
export interface PostAggregates {
|
||||||
|
@ -32,6 +36,10 @@ export interface CommunityAggregates {
|
||||||
subscribers: number;
|
subscribers: number;
|
||||||
posts: number;
|
posts: number;
|
||||||
comments: number;
|
comments: number;
|
||||||
|
users_active_day: number;
|
||||||
|
users_active_week: number;
|
||||||
|
users_active_month: number;
|
||||||
|
users_active_half_year: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CommentAggregates {
|
export interface CommentAggregates {
|
||||||
|
|
|
@ -40,17 +40,17 @@ export interface CaptchaResponse {
|
||||||
|
|
||||||
export interface SaveUserSettings {
|
export interface SaveUserSettings {
|
||||||
show_nsfw: boolean;
|
show_nsfw: boolean;
|
||||||
theme: string; // Default 'default'
|
theme: string; // Default 'browser'
|
||||||
default_sort_type: number; // The Sort types from above, zero indexed as a number
|
default_sort_type: number; // The Sort types from above, zero indexed as a number
|
||||||
default_listing_type: number; // Post listing types are `All, Subscribed, Community`
|
default_listing_type: number; // Post listing types are `All, Subscribed, Community`
|
||||||
lang: string;
|
lang: string;
|
||||||
avatar?: string;
|
avatar?: string;
|
||||||
banner?: string;
|
banner?: string;
|
||||||
preferred_username?: string;
|
preferred_username?: string; // The display name
|
||||||
email?: string;
|
email?: string;
|
||||||
bio?: string;
|
bio?: string;
|
||||||
matrix_user_id?: string;
|
matrix_user_id?: string;
|
||||||
new_password?: string;
|
new_password?: string; // If setting a new password, you need all 3 password fields
|
||||||
new_password_verify?: string;
|
new_password_verify?: string;
|
||||||
old_password?: string;
|
old_password?: string;
|
||||||
show_avatars: boolean;
|
show_avatars: boolean;
|
||||||
|
|
Loading…
Reference in a new issue