feat: expand IM admin controls

This commit is contained in:
richjohnrambo
2026-08-21 15:09:39 +08:00
parent c3676f9744
commit 543c7b624e
29 changed files with 1308 additions and 39 deletions
+19
View File
@@ -34,6 +34,25 @@ export class State {
}
}
export class UsageState {
public id = 0;
public code = '';
public name = '';
public dbName = '';
public dbDsnConfigured = false;
public dbReachable = false;
public dbCheckError = '';
public schemaVersion = '';
public userCount = 0;
public activeUserCount = 0;
public groupCount = 0;
public deviceCount = 0;
public pushTokenCount = 0;
public inviteUseCount = 0;
public outboxPendingCount = 0;
public warnings: string[] = [];
}
export function newState(state: State | Record<string, any> | null): State {
if (state !== null) {
if (state instanceof State) {