Skip to content

Commit 32b783b

Browse files
authored
Add active aggregates (LemmyNet#3)
* Adding some more active aggregates fields. * v0.9.1-rc.2 * v0.9.1-rc.3
1 parent 7b26039 commit 32b783b

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "lemmy-js-client",
33
"description": "A javascript / typescript client for Lemmy",
4-
"version": "0.9.1-rc.1",
4+
"version": "0.9.1-rc.3",
55
"author": "Dessalines <[email protected]>",
66
"license": "AGPL-3.0",
77
"main": "./dist/index.js",

src/interfaces/aggregates.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ export interface SiteAggregates {
1414
posts: number;
1515
comments: number;
1616
communities: number;
17+
users_active_day: number;
18+
users_active_week: number;
19+
users_active_month: number;
20+
users_active_half_year: number;
1721
}
1822

1923
export interface PostAggregates {
@@ -32,6 +36,10 @@ export interface CommunityAggregates {
3236
subscribers: number;
3337
posts: number;
3438
comments: number;
39+
users_active_day: number;
40+
users_active_week: number;
41+
users_active_month: number;
42+
users_active_half_year: number;
3543
}
3644

3745
export interface CommentAggregates {

src/interfaces/api/user.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ export interface CaptchaResponse {
4040

4141
export interface SaveUserSettings {
4242
show_nsfw: boolean;
43-
theme: string; // Default 'default'
43+
theme: string; // Default 'browser'
4444
default_sort_type: number; // The Sort types from above, zero indexed as a number
4545
default_listing_type: number; // Post listing types are `All, Subscribed, Community`
4646
lang: string;
4747
avatar?: string;
4848
banner?: string;
49-
preferred_username?: string;
49+
preferred_username?: string; // The display name
5050
email?: string;
5151
bio?: string;
5252
matrix_user_id?: string;
53-
new_password?: string;
53+
new_password?: string; // If setting a new password, you need all 3 password fields
5454
new_password_verify?: string;
5555
old_password?: string;
5656
show_avatars: boolean;

0 commit comments

Comments
 (0)