feat: session persistance

This commit is contained in:
TresAbhi committed 2023-09-19 15:52:39 +00:00
1 parent 57f6e928b7
commit 018783bb47
12 files changed
+121 -29

No files matched your search

+11 -13
View File
@@ -46,18 +46,16 @@ export interface ClanStats {
dropped_capture_points: number;
}
export type AccountInfo = {
export interface AccountInfo {
[accountId: number]: {
statistics: {
clan: ClanStats;
all: AllStats;
frags: null;
};
account_id: number;
created_at: number;
updated_at: number;
private: null;
last_battle_time: number;
nickname: string;
clan: ClanStats;
all: AllStats;
frags: null;
};
};
account_id: number;
created_at: number;
updated_at: number;
private: null;
last_battle_time: number;
nickname: string;
}
+6 -2
View File
@@ -14,6 +14,10 @@ export interface IndividualTankStats {
tank_id: number;
}
export type TanksStats = {
export interface TankStats {
[accountId: number]: IndividualTankStats[];
};
}
export interface NormalizedTankStats {
[tankId: number]: IndividualTankStats;
}