Initial release for SPT 3.9

This commit is contained in:
2024-07-20 18:08:38 +02:00
parent 7df25ba694
commit c83da69a3e
713 changed files with 34110 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
export declare class ProfileActivityService {
protected profileActivityTimestamps: Record<string, number>;
/**
* Was the requested profile active in the last requested minutes
* @param sessionId Profile to check
* @param minutes Minutes to check for activity in
* @returns True when profile was active within past x minutes
*/
activeWithinLastMinutes(sessionId: string, minutes: number): boolean;
/**
* Get an array of profile ids that were active in the last x minutes
* @param minutes How many minutes from now to search for profiles
* @returns String array of profile ids
*/
getActiveProfileIdsWithinMinutes(minutes: number): string[];
/**
* Update the timestamp a profile was last observed active
* @param sessionId Profile to update
*/
setActivityTimestamp(sessionId: string): void;
}