Files
blitzkit/src/core/blitz/encyclopediaInfo.ts
T

15 lines
570 B
TypeScript
Raw Normal View History

2023-10-29 11:54:23 -05:00
import { WARGAMING_APPLICATION_ID } from '../../constants/wargamingApplicationID';
import fetchBlitz from './fetchBlitz';
2023-12-05 17:36:18 -06:00
export interface EncyclopediaInfo {
2023-10-29 11:54:23 -05:00
achievement_sections: Record<string, { name: string; order: number }>;
tanks_updated_at: number;
languages: Record<string, string>;
vehicle_types: Record<string, string>;
vehicle_nations: Record<string, string>;
game_version: string;
}
2023-12-05 17:36:18 -06:00
export const encyclopediaInfo = fetchBlitz<EncyclopediaInfo>(
2023-10-29 11:54:23 -05:00
`https://api.wotblitz.com/wotb/encyclopedia/info/?application_id=${WARGAMING_APPLICATION_ID}`,
);