feat: wm8 and average tier calculation

This commit is contained in:
TresAbhi committed 2023-06-01 18:36:39 +00:00
1 parent c2fca42a86
commit a12f969251
15 files changed
+315 -328

No files matched your search

+3 -10
View File
@@ -18,16 +18,9 @@ export interface AllStats {
dropped_capture_points: number;
}
export interface SpecialStats {
winrate: number;
damageRatio: number;
kdr: number;
dpb: number;
kpb: number;
hpb: number;
spb: number;
hitRate: number;
survivalRate: number;
export interface SupplementaryStats {
wn8: number;
tier: number;
}
export interface ClanStats {
-23
View File
@@ -1,23 +0,0 @@
import { BlitzStartsComputedPeriodicStatistics } from './statistics.js';
export type PlayerStats = {
clan: {
clan_id: number;
name: string;
tag: string;
};
statistics: BlitzStartsComputedPeriodicStatistics;
_id: string;
last_battle_time: number;
nickname: string;
account_id: number;
achievements: {
account_id: string;
medalLafayettePool: number;
medalRadleyWalters: number;
warrior: number;
jointVictoryCount: number;
};
region: string;
__v: number;
}[];
-30
View File
@@ -1,30 +0,0 @@
import { AllStats, SpecialStats } from './accountInfo.js';
export interface BlitzStartsComputedPeriodicStatistics {
all: AllStats;
wn7: number;
wn8: number;
avg_tier: number;
}
export interface PeriodStatistics
extends BlitzStartsComputedPeriodicStatistics {
special: SpecialStats;
pwp: number;
}
export interface PlayerPeriodicStatsCollection {
statistics: PeriodStatistics;
period30d: PeriodStatistics;
period90d: PeriodStatistics;
_id: string;
nickname: string;
nickname_lowercase: string;
region: string;
last_battle_time: number;
__v: number;
updatedAt: string;
createdAt: string;
}