feat: expand IM admin controls
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user