mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: descrete wargaming response
This commit is contained in:
1 parent
fd1dc40918
commit
d4f676091d
14 files changed
+211
-297
No files matched your search
@@ -1,7 +1,5 @@
|
||||
import { WargamingResponse } from './wargamingResponse.js';
|
||||
|
||||
export interface ClanDetailsData {
|
||||
recruiting_options: {
|
||||
export interface ClanInfo {
|
||||
[clanId:number]:{recruiting_options: {
|
||||
vehicles_level: number;
|
||||
wins_ratio: number;
|
||||
average_battles_per_day: number;
|
||||
@@ -26,9 +24,5 @@ export interface ClanDetailsData {
|
||||
renamed_at: number;
|
||||
old_tag: null;
|
||||
leader_id: number;
|
||||
description: string;
|
||||
description: string;}
|
||||
}
|
||||
|
||||
export type ClanDetails = WargamingResponse<{
|
||||
[accountId: number]: ClanDetailsData;
|
||||
}>;
|
||||
@@ -1,5 +1,3 @@
|
||||
import { WargamingResponse } from './wargamingResponse.js';
|
||||
|
||||
export interface Clan {
|
||||
members_count: number;
|
||||
created_at: number;
|
||||
@@ -8,4 +6,4 @@ export interface Clan {
|
||||
name: string;
|
||||
}
|
||||
|
||||
export type ClanList = WargamingResponse<Clan[]>;
|
||||
export type ClanList = Clan[];
|
||||
@@ -1,6 +1,4 @@
|
||||
import { WargamingResponse } from './wargamingResponse.js';
|
||||
|
||||
export type PlayerClanData = WargamingResponse<{
|
||||
export type PlayerClanData = {
|
||||
[accountId: number]: {
|
||||
account_id: number;
|
||||
joined_at: number;
|
||||
@@ -17,4 +15,4 @@ export type PlayerClanData = WargamingResponse<{
|
||||
emblem_set_id: number;
|
||||
};
|
||||
};
|
||||
}>;
|
||||
};
|
||||
@@ -1,6 +1,4 @@
|
||||
import { WargamingResponse } from './wargamingResponse.js';
|
||||
|
||||
export type PlayerPersonalData = WargamingResponse<{
|
||||
export type PlayerPersonalData = {
|
||||
[accountId: number]: {
|
||||
statistics: {
|
||||
clan: {
|
||||
@@ -54,4 +52,4 @@ export type PlayerPersonalData = WargamingResponse<{
|
||||
last_battle_time: number;
|
||||
nickname: string;
|
||||
};
|
||||
}>;
|
||||
};
|
||||
@@ -1,6 +1,4 @@
|
||||
import { WargamingResponse } from './wargamingResponse.js';
|
||||
|
||||
export type TanksStats = WargamingResponse<{
|
||||
export type TanksStats = {
|
||||
[accountId: number]: {
|
||||
all: {
|
||||
spotted: number;
|
||||
@@ -32,4 +30,4 @@ export type TanksStats = WargamingResponse<{
|
||||
in_garage: number | null;
|
||||
tank_id: number;
|
||||
}[];
|
||||
}>;
|
||||
};
|
||||
Reference in new issue
Block a user