clashofclans.js 3.4.0-dev.c71cfc8 → 3.4.1-dev.2517a97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/api.d.ts +17 -0
- package/package.json +1 -1
package/dist/types/api.d.ts
CHANGED
|
@@ -12,6 +12,10 @@ export interface APIIcon {
|
|
|
12
12
|
/** Medium Icon is not available for Unranked Icon. */
|
|
13
13
|
medium?: string;
|
|
14
14
|
}
|
|
15
|
+
export interface APILeagueTierIcon {
|
|
16
|
+
small: string;
|
|
17
|
+
large: string;
|
|
18
|
+
}
|
|
15
19
|
export interface APIBadge {
|
|
16
20
|
small: string;
|
|
17
21
|
large: string;
|
|
@@ -69,6 +73,7 @@ export interface APIClanMember {
|
|
|
69
73
|
expLevel: number;
|
|
70
74
|
townHallLevel: number;
|
|
71
75
|
league: APILeague;
|
|
76
|
+
leagueTier?: APILeagueTier;
|
|
72
77
|
builderBaseLeague?: Omit<APILeague, 'iconUrls'>;
|
|
73
78
|
trophies: number;
|
|
74
79
|
builderBaseTrophies?: number;
|
|
@@ -263,6 +268,7 @@ export interface APIPlayer {
|
|
|
263
268
|
warPreference?: 'in' | 'out';
|
|
264
269
|
clan?: APIPlayerClan;
|
|
265
270
|
league?: APILeague;
|
|
271
|
+
leagueTier?: APILeagueTier;
|
|
266
272
|
builderBaseLeague?: {
|
|
267
273
|
id: number;
|
|
268
274
|
name: string;
|
|
@@ -358,6 +364,7 @@ export interface APIPlayerRanking {
|
|
|
358
364
|
previousRank: number;
|
|
359
365
|
clan?: Omit<APIPlayerClan, 'clanLevel'>;
|
|
360
366
|
league: APILeague;
|
|
367
|
+
leagueTier?: APILeagueTier;
|
|
361
368
|
}
|
|
362
369
|
/** /locations/{locationId}/rankings/clans-builder-base */
|
|
363
370
|
export interface APIClanBuilderBaseRankingList {
|
|
@@ -414,6 +421,11 @@ export interface APILeagueList {
|
|
|
414
421
|
items: APILeague[];
|
|
415
422
|
paging: APIPaging;
|
|
416
423
|
}
|
|
424
|
+
/** /leaguetiers */
|
|
425
|
+
export interface APILeagueTierList {
|
|
426
|
+
items: APILeagueTier[];
|
|
427
|
+
paging: APIPaging;
|
|
428
|
+
}
|
|
417
429
|
export interface APIBuilderBaseLeagueList {
|
|
418
430
|
items: APIBuilderBaseLeague[];
|
|
419
431
|
paging: APIPaging;
|
|
@@ -428,6 +440,11 @@ export interface APILeague {
|
|
|
428
440
|
name: string;
|
|
429
441
|
iconUrls: APIIcon;
|
|
430
442
|
}
|
|
443
|
+
export interface APILeagueTier {
|
|
444
|
+
id: number;
|
|
445
|
+
name: string;
|
|
446
|
+
iconUrls: APILeagueTierIcon;
|
|
447
|
+
}
|
|
431
448
|
/** /leagues/{leagueId}/seasons/{seasonId} */
|
|
432
449
|
export interface APIPlayerSeasonRankingList {
|
|
433
450
|
items: Omit<APIPlayerRanking, 'league'>[];
|
package/package.json
CHANGED