feat: core chunk 2

This commit is contained in:
TrèsAbhi committed 2023-10-14 10:52:05 -05:00
1 parent e96538bae0
commit 862445259e
17 files changed
+33 -71

No files matched your search

-10
View File
@@ -1,10 +0,0 @@
import { Region } from '../../constants/regions';
import { WARGAMING_APPLICATION_ID } from '../../constants/wargamingApplicationID';
import { PlayerClanInfo } from '../../types/playerClanData';
import getWargamingResponse from './getWargamingResponse';
export function getPlayerClanInfo(region: Region, id: number) {
return getWargamingResponse<PlayerClanInfo>(
`https://api.wotblitz.${region}/wotb/clans/accountinfo/?application_id=${WARGAMING_APPLICATION_ID}&account_id=${id}&extra=clan`,
);
}
+1 -1
View File
@@ -1,4 +1,4 @@
import { AllStats } from '../../types/accountInfo';
import { AllStats } from '../../_core/blitz/getAccountInfo';
import { emptyAllStats } from '../blitzstars/getDiffedTankStats';
export default function sumStats(allStatsCollection: AllStats[]) {