games_app/backend/dist/repositories/userAdminStatsRepository.d.ts
2026-06-29 15:01:23 +02:00

16 lines
795 B
TypeScript

/**
* Recomputes and upserts admin stats for a single user.
*/
export declare function refreshUserStats(userId: string): Promise<void>;
/**
* Backfills or refreshes admin stats for a batch of users (ordered by created_at, id).
* @returns Number of rows upserted.
*/
export declare function backfillStatsBatch(limit: number, offset: number): Promise<number>;
/** Recomputes stats for an explicit set of users (batch upsert). */
export declare function refreshUserStatsForIds(userIds: string[]): Promise<number>;
/** Total users (for backfill progress). */
export declare function countUsers(): Promise<number>;
/** Users missing a stats row (needs initial backfill). */
export declare function countUsersMissingStats(): Promise<number>;
//# sourceMappingURL=userAdminStatsRepository.d.ts.map