From 2e9206201110949a244a86ac75f94e927c20c92b Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 28 Jan 2021 10:54:24 -0500 Subject: [PATCH] Adding some more active aggregates fields. --- src/interfaces/aggregates.ts | 8 ++++++++ src/interfaces/api/user.ts | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/interfaces/aggregates.ts b/src/interfaces/aggregates.ts index 5be8ca6..2d4f393 100644 --- a/src/interfaces/aggregates.ts +++ b/src/interfaces/aggregates.ts @@ -14,6 +14,10 @@ export interface SiteAggregates { 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 { @@ -32,6 +36,10 @@ export interface CommunityAggregates { 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 { diff --git a/src/interfaces/api/user.ts b/src/interfaces/api/user.ts index 2f7c8d0..c3c96c3 100644 --- a/src/interfaces/api/user.ts +++ b/src/interfaces/api/user.ts @@ -40,17 +40,17 @@ export interface CaptchaResponse { export interface SaveUserSettings { 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_listing_type: number; // Post listing types are `All, Subscribed, Community` lang: string; avatar?: string; banner?: string; - preferred_username?: string; + preferred_username?: string; // The display name email?: string; bio?: 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; old_password?: string; show_avatars: boolean;