feat: cleaner /stats

This commit is contained in:
TresAbhi committed 2023-05-13 01:27:12 +00:00
1 parent ae650eeb38
commit 75fab881fd
18 files changed
+169 -151

No files matched your search

+2 -7
View File
@@ -1,4 +1,4 @@
import { AllStats } from './accountInfo.js';
import { BlitzStartsComputedPeriodicStatistics } from './statistics.js';
export type PlayerStats = {
clan: {
@@ -6,12 +6,7 @@ export type PlayerStats = {
name: string;
tag: string;
};
statistics: {
all: AllStats;
wn8: number;
wn7: number;
average_tier: number;
};
statistics: BlitzStartsComputedPeriodicStatistics;
_id: string;
last_battle_time: number;
nickname: string;
+7 -3
View File
@@ -1,16 +1,20 @@
import { AllStats, SpecialStats } from './accountInfo.js';
export interface PeriodStatistics {
export interface BlitzStartsComputedPeriodicStatistics {
all: AllStats;
special: SpecialStats;
wn7: number;
wn8: number;
avg_tier: number;
}
export interface PeriodStatistics
extends BlitzStartsComputedPeriodicStatistics {
special: SpecialStats;
pwp: number;
}
export interface PlayerStatistics {
export interface PlayerPeriodicStatsCollection {
statistics: PeriodStatistics;
period30d: PeriodStatistics;
period90d: PeriodStatistics;