20 lines
702 B
TypeScript
20 lines
702 B
TypeScript
/**
|
|
* Repository for admin dashboard aggregate statistics.
|
|
* Runs read-only SQL over the `users` table.
|
|
*/
|
|
/** Raw count columns returned by the overview stats query. */
|
|
export interface UserOverviewStatsRow {
|
|
total_users: string;
|
|
disabled_users: string;
|
|
locked_users: string;
|
|
expired_users: string;
|
|
creds_expired_users: string;
|
|
totp_enabled_users: string;
|
|
email_verified_users: string;
|
|
}
|
|
/**
|
|
* Aggregates user account counts for the admin overview dashboard.
|
|
* @returns Single row of string-encoded counts (PostgreSQL aggregate output).
|
|
*/
|
|
export declare function getUserOverviewStats(): Promise<UserOverviewStatsRow>;
|
|
//# sourceMappingURL=overviewRepository.d.ts.map
|