@blizzard-api/wow 1.1.0 → 1.1.2
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/README.md +2 -2
- package/dist/index.cjs +425 -590
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +388 -388
- package/dist/index.d.ts +388 -388
- package/dist/index.js +284 -424
- package/dist/index.js.map +1 -1
- package/package.json +6 -4
package/dist/index.d.cts
CHANGED
|
@@ -22,8 +22,8 @@ interface KeyBase {
|
|
|
22
22
|
* Base record interface containing name and id properties that often appear together in Blizzard API responses.
|
|
23
23
|
*/
|
|
24
24
|
interface NameId {
|
|
25
|
-
name: string;
|
|
26
25
|
id: number;
|
|
26
|
+
name: string;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* Base record containing both {@link KeyBase} and {@link NameId} interfaces.
|
|
@@ -34,25 +34,25 @@ interface NameIdKey extends KeyBase, NameId {
|
|
|
34
34
|
* A record containing the RGBA values of a color.
|
|
35
35
|
*/
|
|
36
36
|
interface Color {
|
|
37
|
-
r: number;
|
|
38
|
-
g: number;
|
|
39
|
-
b: number;
|
|
40
37
|
a: number;
|
|
38
|
+
b: number;
|
|
39
|
+
g: number;
|
|
40
|
+
r: number;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* The media asset associated with a character or entity in World of Warcraft.
|
|
44
44
|
*/
|
|
45
45
|
interface MediaAsset$1 {
|
|
46
|
+
file_data_id: number;
|
|
46
47
|
key: string;
|
|
47
48
|
value: string;
|
|
48
|
-
file_data_id: number;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* The playable genders in World of Warcraft.
|
|
52
52
|
*/
|
|
53
53
|
interface Gender {
|
|
54
|
-
male: string;
|
|
55
54
|
female: string;
|
|
55
|
+
male: string;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
58
|
* The playable factions in World of Warcraft.
|
|
@@ -65,8 +65,8 @@ declare const Factions: {
|
|
|
65
65
|
* The faction associated with a character or entity in World of Warcraft.
|
|
66
66
|
*/
|
|
67
67
|
interface Faction {
|
|
68
|
-
type: keyof typeof Factions;
|
|
69
68
|
name: Capitalize<Lowercase<keyof typeof Factions>>;
|
|
69
|
+
type: keyof typeof Factions;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
/**
|
|
@@ -75,19 +75,19 @@ interface Faction {
|
|
|
75
75
|
*/
|
|
76
76
|
interface AchievementCategoryResponse extends ResponseBase, NameId {
|
|
77
77
|
achievements: Array<NameIdKey>;
|
|
78
|
-
parent_category: NameIdKey;
|
|
79
|
-
isGuildCategory: boolean;
|
|
80
78
|
aggregates_by_faction: {
|
|
81
79
|
alliance: {
|
|
82
|
-
quantity: number;
|
|
83
80
|
points: number;
|
|
81
|
+
quantity: number;
|
|
84
82
|
};
|
|
85
83
|
horde: {
|
|
86
|
-
quantity: number;
|
|
87
84
|
points: number;
|
|
85
|
+
quantity: number;
|
|
88
86
|
};
|
|
89
87
|
};
|
|
90
88
|
display_order: number;
|
|
89
|
+
isGuildCategory: boolean;
|
|
90
|
+
parent_category: NameIdKey;
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
93
|
* Interface for a response from the achievement category index endpoint.
|
|
@@ -95,8 +95,8 @@ interface AchievementCategoryResponse extends ResponseBase, NameId {
|
|
|
95
95
|
*/
|
|
96
96
|
interface AchievementCategoryIndexResponse extends ResponseBase {
|
|
97
97
|
categories: Array<NameIdKey>;
|
|
98
|
-
root_categories: Array<NameIdKey>;
|
|
99
98
|
guild_categories: Array<NameIdKey>;
|
|
99
|
+
root_categories: Array<NameIdKey>;
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
102
|
* Interface for a response from the achievement endpoint.
|
|
@@ -104,16 +104,16 @@ interface AchievementCategoryIndexResponse extends ResponseBase {
|
|
|
104
104
|
*/
|
|
105
105
|
interface AchievementResponse extends ResponseBase, NameId {
|
|
106
106
|
category: NameIdKey;
|
|
107
|
-
description: string;
|
|
108
|
-
points: number;
|
|
109
|
-
is_account_wide: boolean;
|
|
110
107
|
criteria: {
|
|
111
|
-
id: number;
|
|
112
|
-
description: string;
|
|
113
108
|
amount: number;
|
|
109
|
+
description: string;
|
|
110
|
+
id: number;
|
|
114
111
|
};
|
|
115
|
-
|
|
112
|
+
description: string;
|
|
116
113
|
display_order: number;
|
|
114
|
+
is_account_wide: boolean;
|
|
115
|
+
media: KeyBase;
|
|
116
|
+
points: number;
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
119
|
* Interface for a response from the achievement index endpoint.
|
|
@@ -123,17 +123,17 @@ interface AchievementIndexResponse extends ResponseBase {
|
|
|
123
123
|
achievements: Array<NameIdKey>;
|
|
124
124
|
}
|
|
125
125
|
interface AchievementMediaItem {
|
|
126
|
+
file_data_id: number;
|
|
126
127
|
key: string;
|
|
127
128
|
value: string;
|
|
128
|
-
file_data_id: number;
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
131
131
|
* Interface for a response from the achievement media endpoint.
|
|
132
132
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
133
133
|
*/
|
|
134
134
|
interface AchievementMediaResponse extends ResponseBase {
|
|
135
|
-
id: number;
|
|
136
135
|
assets: Array<AchievementMediaItem>;
|
|
136
|
+
id: number;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
/**
|
|
@@ -165,20 +165,20 @@ declare function achievementIndex(): Resource<AchievementIndexResponse>;
|
|
|
165
165
|
*/
|
|
166
166
|
declare function achievementMedia(achievementId: number): Resource<AchievementMediaResponse>;
|
|
167
167
|
|
|
168
|
-
type AuctionHouseTimeLeft = '
|
|
168
|
+
type AuctionHouseTimeLeft = 'LONG' | 'MEDIUM' | 'SHORT' | 'VERY_LONG';
|
|
169
169
|
interface AuctionHousePosting {
|
|
170
|
+
bid: number;
|
|
171
|
+
buyout: number;
|
|
170
172
|
id: number;
|
|
171
173
|
item: {
|
|
172
|
-
id: number;
|
|
173
|
-
context: number;
|
|
174
174
|
bonus_lists: Array<number>;
|
|
175
|
+
context: number;
|
|
176
|
+
id: number;
|
|
175
177
|
modifiers: Array<{
|
|
176
178
|
type: number;
|
|
177
179
|
value: number;
|
|
178
180
|
}>;
|
|
179
181
|
};
|
|
180
|
-
bid: number;
|
|
181
|
-
buyout: number;
|
|
182
182
|
quantity: number;
|
|
183
183
|
time_left: AuctionHouseTimeLeft;
|
|
184
184
|
}
|
|
@@ -187,13 +187,13 @@ interface AuctionHousePosting {
|
|
|
187
187
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
188
188
|
*/
|
|
189
189
|
interface AuctionHouseResponse extends ResponseBase {
|
|
190
|
-
|
|
190
|
+
auctions: Array<AuctionHousePosting>;
|
|
191
|
+
commodities: {
|
|
191
192
|
href: string;
|
|
192
193
|
};
|
|
193
|
-
|
|
194
|
+
connected_realm: {
|
|
194
195
|
href: string;
|
|
195
196
|
};
|
|
196
|
-
auctions: Array<AuctionHousePosting>;
|
|
197
197
|
}
|
|
198
198
|
interface AuctionHouseCommodity {
|
|
199
199
|
id: number;
|
|
@@ -201,8 +201,8 @@ interface AuctionHouseCommodity {
|
|
|
201
201
|
id: number;
|
|
202
202
|
};
|
|
203
203
|
quantity: number;
|
|
204
|
-
unit_price: number;
|
|
205
204
|
time_left: AuctionHouseTimeLeft;
|
|
205
|
+
unit_price: number;
|
|
206
206
|
}
|
|
207
207
|
/**
|
|
208
208
|
* Interface for a response from the auction house commodities endpoint.
|
|
@@ -237,17 +237,17 @@ interface AzeriteEssenceIndexResponse extends ResponseBase {
|
|
|
237
237
|
*/
|
|
238
238
|
interface AzeriteEssenceResponse extends ResponseBase, NameId {
|
|
239
239
|
allowed_specializations: Array<NameIdKey>;
|
|
240
|
-
powers: Array<Power>;
|
|
241
240
|
media: Media$f;
|
|
241
|
+
powers: Array<Power>;
|
|
242
242
|
}
|
|
243
243
|
interface Media$f extends KeyBase {
|
|
244
244
|
id: number;
|
|
245
245
|
}
|
|
246
246
|
interface Power {
|
|
247
247
|
id: number;
|
|
248
|
-
rank: number;
|
|
249
248
|
main_power_spell: NameIdKey;
|
|
250
249
|
passive_power_spell: NameIdKey;
|
|
250
|
+
rank: number;
|
|
251
251
|
}
|
|
252
252
|
/**
|
|
253
253
|
* Interface for a response from the azerite essence media endpoint.
|
|
@@ -306,7 +306,7 @@ type WithoutUnderscore<T extends string> = T extends `${infer Prefix}_${infer Su
|
|
|
306
306
|
* The category of a realm.
|
|
307
307
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
308
308
|
*/
|
|
309
|
-
type RealmCategory = 'English' | 'French' | 'German' | 'Italian' | '
|
|
309
|
+
type RealmCategory = 'Brazil' | 'English' | 'French' | 'German' | 'Italian' | 'Latin America' | 'Oceanic' | 'PS' | 'Russian' | 'Spanish' | 'United States' | '한국';
|
|
310
310
|
/**
|
|
311
311
|
* The timezone of a realm.
|
|
312
312
|
*/
|
|
@@ -334,19 +334,19 @@ interface Realm$4 extends NameIdKey {
|
|
|
334
334
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
335
335
|
*/
|
|
336
336
|
interface RealmResponse extends ResponseBase, NameId {
|
|
337
|
-
|
|
337
|
+
category: RealmCategory;
|
|
338
338
|
connected_realm: {
|
|
339
339
|
href: string;
|
|
340
340
|
};
|
|
341
|
-
|
|
341
|
+
is_tournament: boolean;
|
|
342
342
|
locale: WithoutUnderscore<Locales>;
|
|
343
|
+
region: NameIdKey;
|
|
344
|
+
slug: string;
|
|
343
345
|
timezone: RealmTimezone;
|
|
344
346
|
type: {
|
|
345
|
-
type: RealmTypeCapitalized;
|
|
346
347
|
name: RealmType;
|
|
348
|
+
type: RealmTypeCapitalized;
|
|
347
349
|
};
|
|
348
|
-
is_tournament: boolean;
|
|
349
|
-
slug: string;
|
|
350
350
|
}
|
|
351
351
|
/**
|
|
352
352
|
* The search parameters for realms.
|
|
@@ -363,27 +363,27 @@ interface RealmSearchParameters extends BaseSearchParameters {
|
|
|
363
363
|
*/
|
|
364
364
|
interface RealmSearchResponseItem extends KeyBase {
|
|
365
365
|
data: {
|
|
366
|
+
category: Record<Locales, string | undefined>;
|
|
367
|
+
id: number;
|
|
366
368
|
is_tournament: boolean;
|
|
367
|
-
|
|
369
|
+
locale: WithoutUnderscore<Locales>;
|
|
368
370
|
name: Record<Locales, string | undefined>;
|
|
369
|
-
id: number;
|
|
370
371
|
region: {
|
|
371
|
-
name: Record<Locales, string | undefined>;
|
|
372
372
|
id: number;
|
|
373
|
+
name: Record<Locales, string | undefined>;
|
|
373
374
|
};
|
|
374
|
-
|
|
375
|
-
|
|
375
|
+
slug: string;
|
|
376
|
+
timezone: RealmTimezone;
|
|
376
377
|
type: {
|
|
377
|
-
type: RealmTypeCapitalized;
|
|
378
378
|
name: Record<Locales, string | undefined>;
|
|
379
|
+
type: RealmTypeCapitalized;
|
|
379
380
|
};
|
|
380
|
-
slug: string;
|
|
381
381
|
};
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
type RealmPopulation = '
|
|
385
|
-
type RealmPopulationCapitalized = '
|
|
386
|
-
type RealmStatus = '
|
|
384
|
+
type RealmPopulation = 'Full' | 'High' | 'Low' | 'Medium' | 'New Players';
|
|
385
|
+
type RealmPopulationCapitalized = 'FULL' | 'HIGH' | 'LOW' | 'MEDIUM' | 'RECOMMENDED';
|
|
386
|
+
type RealmStatus = 'Down' | 'Up';
|
|
387
387
|
/**
|
|
388
388
|
* Connected Realm Index API response.
|
|
389
389
|
* @see https://develop.battle.net/documentation/world-of-warcraft/game-data-apis
|
|
@@ -394,49 +394,49 @@ interface ConnectedRealmIndexResponse extends ResponseBase {
|
|
|
394
394
|
}>;
|
|
395
395
|
}
|
|
396
396
|
interface Realm$3 {
|
|
397
|
-
|
|
398
|
-
region: NameIdKey;
|
|
397
|
+
category: RealmCategory;
|
|
399
398
|
connected_realm: {
|
|
400
399
|
href: string;
|
|
401
400
|
};
|
|
402
|
-
|
|
403
|
-
|
|
401
|
+
id: number;
|
|
402
|
+
is_tournament: boolean;
|
|
404
403
|
locale: WithoutUnderscore<Locales>;
|
|
404
|
+
name: string;
|
|
405
|
+
region: NameIdKey;
|
|
406
|
+
slug: string;
|
|
405
407
|
timezone: RealmTimezone;
|
|
406
408
|
type: {
|
|
407
|
-
type: RealmTypeCapitalized;
|
|
408
409
|
name: RealmType;
|
|
410
|
+
type: RealmTypeCapitalized;
|
|
409
411
|
};
|
|
410
|
-
is_tournament: boolean;
|
|
411
|
-
slug: string;
|
|
412
412
|
}
|
|
413
413
|
interface RealmLockedStatus {
|
|
414
|
-
is_locked_for_pct: boolean;
|
|
415
414
|
is_locked_for_new_characters: boolean;
|
|
415
|
+
is_locked_for_pct: boolean;
|
|
416
416
|
}
|
|
417
417
|
/**
|
|
418
418
|
* Connected Realm API response.
|
|
419
419
|
* @see https://develop.battle.net/documentation/world-of-warcraft/game-data-apis
|
|
420
420
|
*/
|
|
421
421
|
interface ConnectedRealmResponse extends ResponseBase {
|
|
422
|
-
|
|
422
|
+
auctions: {
|
|
423
|
+
href: string;
|
|
424
|
+
};
|
|
423
425
|
has_queue: boolean;
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
426
|
+
id: number;
|
|
427
|
+
mythic_leaderboards: {
|
|
428
|
+
href: string;
|
|
427
429
|
};
|
|
428
430
|
population: {
|
|
429
|
-
type: RealmPopulationCapitalized;
|
|
430
431
|
name: RealmPopulation;
|
|
432
|
+
type: RealmPopulationCapitalized;
|
|
431
433
|
};
|
|
434
|
+
realm_locked_status?: RealmLockedStatus;
|
|
432
435
|
realms: Array<Realm$3>;
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
auctions: {
|
|
437
|
-
href: string;
|
|
436
|
+
status: {
|
|
437
|
+
name: RealmStatus;
|
|
438
|
+
type: Uppercase<RealmStatus>;
|
|
438
439
|
};
|
|
439
|
-
realm_locked_status?: RealmLockedStatus;
|
|
440
440
|
}
|
|
441
441
|
/**
|
|
442
442
|
* Connected Realm Search API parameters.
|
|
@@ -448,29 +448,29 @@ interface ConnectedRealmSearchParameters extends BaseSearchParameters {
|
|
|
448
448
|
'status.type'?: Uppercase<RealmStatus>;
|
|
449
449
|
}
|
|
450
450
|
interface SearchRealm {
|
|
451
|
+
category: Record<Locales, string | undefined>;
|
|
452
|
+
id: number;
|
|
451
453
|
is_tournament: boolean;
|
|
452
|
-
|
|
454
|
+
locale: WithoutUnderscore<Locales>;
|
|
453
455
|
name: Record<Locales, string | undefined>;
|
|
454
|
-
id: number;
|
|
455
|
-
category: Record<Locales, string | undefined>;
|
|
456
456
|
region: {
|
|
457
|
-
name: Record<Locales, string | undefined>;
|
|
458
457
|
id: number;
|
|
458
|
+
name: Record<Locales, string | undefined>;
|
|
459
459
|
};
|
|
460
|
-
|
|
460
|
+
slug: string;
|
|
461
|
+
timezone: RealmTimezone;
|
|
461
462
|
type: {
|
|
462
|
-
type: RealmTypeCapitalized;
|
|
463
463
|
name: Record<Locales, string | undefined>;
|
|
464
|
+
type: RealmTypeCapitalized;
|
|
464
465
|
};
|
|
465
|
-
slug: string;
|
|
466
466
|
}
|
|
467
467
|
interface SearchRealmStatus {
|
|
468
|
-
type: Uppercase<RealmStatus>;
|
|
469
468
|
name: Record<Locales, string>;
|
|
469
|
+
type: Uppercase<RealmStatus>;
|
|
470
470
|
}
|
|
471
471
|
interface SearchRealmPopulation {
|
|
472
|
-
type: RealmPopulationCapitalized;
|
|
473
472
|
name: Record<Locales, string>;
|
|
473
|
+
type: RealmPopulationCapitalized;
|
|
474
474
|
}
|
|
475
475
|
/**
|
|
476
476
|
* Connected Realm Search API response item.
|
|
@@ -479,11 +479,11 @@ interface SearchRealmPopulation {
|
|
|
479
479
|
*/
|
|
480
480
|
interface ConnectedRealmSearchResponseItem extends KeyBase {
|
|
481
481
|
data: {
|
|
482
|
-
id: number;
|
|
483
482
|
has_queue: boolean;
|
|
483
|
+
id: number;
|
|
484
|
+
population: SearchRealmPopulation;
|
|
484
485
|
realms: Array<SearchRealm>;
|
|
485
486
|
status: SearchRealmStatus;
|
|
486
|
-
population: SearchRealmPopulation;
|
|
487
487
|
};
|
|
488
488
|
}
|
|
489
489
|
|
|
@@ -518,27 +518,27 @@ interface ConduitIndexResponse extends ResponseBase {
|
|
|
518
518
|
*/
|
|
519
519
|
interface ConduitResponse extends ResponseBase {
|
|
520
520
|
id: number;
|
|
521
|
-
name: string;
|
|
522
521
|
item: Item$1;
|
|
523
|
-
|
|
522
|
+
name: string;
|
|
524
523
|
ranks: Array<Rank$1>;
|
|
524
|
+
socket_type: SocketType;
|
|
525
525
|
}
|
|
526
526
|
interface Item$1 extends KeyBase {
|
|
527
527
|
id: number;
|
|
528
528
|
}
|
|
529
529
|
interface Rank$1 {
|
|
530
530
|
id: number;
|
|
531
|
-
tier: number;
|
|
532
531
|
spell_tooltip: SpellTooltip$1;
|
|
532
|
+
tier: number;
|
|
533
533
|
}
|
|
534
534
|
interface SpellTooltip$1 {
|
|
535
|
-
spell: Item$1;
|
|
536
|
-
description: string;
|
|
537
535
|
cast_time: string;
|
|
536
|
+
description: string;
|
|
537
|
+
spell: Item$1;
|
|
538
538
|
}
|
|
539
539
|
interface SocketType {
|
|
540
|
-
type: string;
|
|
541
540
|
name: string;
|
|
541
|
+
type: string;
|
|
542
542
|
}
|
|
543
543
|
/**
|
|
544
544
|
* Interface for a response from the covenant index endpoint.
|
|
@@ -552,9 +552,9 @@ interface CovenantIndexResponse extends ResponseBase {
|
|
|
552
552
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
553
553
|
*/
|
|
554
554
|
interface CovenantResponse extends ResponseBase {
|
|
555
|
+
description: string;
|
|
555
556
|
id: number;
|
|
556
557
|
name: string;
|
|
557
|
-
description: string;
|
|
558
558
|
renown_rewards: Array<RenownReward>;
|
|
559
559
|
}
|
|
560
560
|
interface RenownReward {
|
|
@@ -566,14 +566,14 @@ interface RenownReward {
|
|
|
566
566
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
567
567
|
*/
|
|
568
568
|
interface CovenantMediaResponse extends ResponseBase {
|
|
569
|
+
class_abilities: Array<ClassAbility>;
|
|
570
|
+
description: string;
|
|
569
571
|
id: number;
|
|
572
|
+
media: Media$e;
|
|
570
573
|
name: string;
|
|
571
|
-
|
|
574
|
+
renown_rewards: Array<RenownReward>;
|
|
572
575
|
signature_ability: SignatureAbility;
|
|
573
|
-
class_abilities: Array<ClassAbility>;
|
|
574
576
|
soulbinds: Array<NameIdKey>;
|
|
575
|
-
renown_rewards: Array<RenownReward>;
|
|
576
|
-
media: Media$e;
|
|
577
577
|
}
|
|
578
578
|
interface ClassAbility {
|
|
579
579
|
id: number;
|
|
@@ -581,12 +581,12 @@ interface ClassAbility {
|
|
|
581
581
|
spell_tooltip: ClassAbilitySpellTooltip;
|
|
582
582
|
}
|
|
583
583
|
interface ClassAbilitySpellTooltip {
|
|
584
|
-
spell: NameIdKey;
|
|
585
|
-
description: string;
|
|
586
584
|
cast_time: string;
|
|
587
|
-
range?: string;
|
|
588
585
|
cooldown?: string;
|
|
586
|
+
description: string;
|
|
589
587
|
power_cost?: null | string;
|
|
588
|
+
range?: string;
|
|
589
|
+
spell: NameIdKey;
|
|
590
590
|
}
|
|
591
591
|
interface Media$e extends KeyBase {
|
|
592
592
|
id: number;
|
|
@@ -596,21 +596,21 @@ interface SignatureAbility {
|
|
|
596
596
|
spell_tooltip: SignatureAbilitySpellTooltip;
|
|
597
597
|
}
|
|
598
598
|
interface SignatureAbilitySpellTooltip {
|
|
599
|
-
spell: NameIdKey;
|
|
600
|
-
description: string;
|
|
601
599
|
cast_time: string;
|
|
602
600
|
cooldown: string;
|
|
601
|
+
description: string;
|
|
602
|
+
spell: NameIdKey;
|
|
603
603
|
}
|
|
604
604
|
/**
|
|
605
605
|
* Interface for a response from the soulbind endpoint.
|
|
606
606
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
607
607
|
*/
|
|
608
608
|
interface SoulbindResponse extends ResponseBase {
|
|
609
|
-
id: number;
|
|
610
|
-
name: string;
|
|
611
609
|
covenant: NameIdKey;
|
|
612
610
|
creature: NameIdKey;
|
|
613
611
|
follower: NameIdKey;
|
|
612
|
+
id: number;
|
|
613
|
+
name: string;
|
|
614
614
|
talent_tree: NameIdKey;
|
|
615
615
|
}
|
|
616
616
|
/**
|
|
@@ -666,12 +666,12 @@ declare function soulbindIndex(): Resource<SoulbindIndexResponse>;
|
|
|
666
666
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
667
667
|
*/
|
|
668
668
|
interface CreatureResponse extends ResponseBase {
|
|
669
|
+
creature_displays: Array<CreatureDisplay$2>;
|
|
670
|
+
family: NameIdKey;
|
|
669
671
|
id: number;
|
|
672
|
+
is_tameable: boolean;
|
|
670
673
|
name: string;
|
|
671
674
|
type: NameIdKey;
|
|
672
|
-
family: NameIdKey;
|
|
673
|
-
creature_displays: Array<CreatureDisplay$2>;
|
|
674
|
-
is_tameable: boolean;
|
|
675
675
|
}
|
|
676
676
|
interface CreatureDisplay$2 extends KeyBase {
|
|
677
677
|
id: number;
|
|
@@ -701,9 +701,9 @@ interface CreatureFamilyIndexResponse extends ResponseBase {
|
|
|
701
701
|
*/
|
|
702
702
|
interface CreatureFamilyResponse extends ResponseBase {
|
|
703
703
|
id: number;
|
|
704
|
+
media: Media$d;
|
|
704
705
|
name: string;
|
|
705
706
|
specialization: NameIdKey;
|
|
706
|
-
media: Media$d;
|
|
707
707
|
}
|
|
708
708
|
interface Media$d extends KeyBase {
|
|
709
709
|
id: number;
|
|
@@ -737,8 +737,8 @@ interface CreatureTypeResponse extends ResponseBase {
|
|
|
737
737
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
|
|
738
738
|
*/
|
|
739
739
|
interface CreatureSearchParameters extends BaseSearchParameters {
|
|
740
|
-
name: string;
|
|
741
740
|
locale: Locales;
|
|
741
|
+
name: string;
|
|
742
742
|
}
|
|
743
743
|
/**
|
|
744
744
|
* The response for a creature search.
|
|
@@ -750,14 +750,14 @@ interface CreatureSearchResponseItem extends KeyBase {
|
|
|
750
750
|
creature_displays: Array<{
|
|
751
751
|
id: number;
|
|
752
752
|
}>;
|
|
753
|
-
|
|
754
|
-
name: Record<Locales, string | undefined>;
|
|
755
|
-
id: number;
|
|
756
|
-
type: {
|
|
753
|
+
family?: {
|
|
757
754
|
id: number;
|
|
758
755
|
name: Record<Locales, string | undefined>;
|
|
759
756
|
};
|
|
760
|
-
|
|
757
|
+
id: number;
|
|
758
|
+
is_tameable: boolean;
|
|
759
|
+
name: Record<Locales, string | undefined>;
|
|
760
|
+
type: {
|
|
761
761
|
id: number;
|
|
762
762
|
name: Record<Locales, string | undefined>;
|
|
763
763
|
};
|
|
@@ -809,16 +809,16 @@ declare function creatureTypeIndex(): Resource<CreatureTypeIndexResponse>;
|
|
|
809
809
|
* @param options The creature search parameters. See {@link CreatureSearchParameters}.
|
|
810
810
|
* @returns The creature search results. See {@link SearchResponse} & {@link CreatureSearchResponseItem}.
|
|
811
811
|
*/
|
|
812
|
-
declare function creatureSearch(options: CreatureSearchParameters): Resource<SearchResponse<CreatureSearchResponseItem>, Omit<CreatureSearchParameters, '
|
|
812
|
+
declare function creatureSearch(options: CreatureSearchParameters): Resource<SearchResponse<CreatureSearchResponseItem>, Omit<CreatureSearchParameters, 'locale' | 'name'>>;
|
|
813
813
|
|
|
814
814
|
/**
|
|
815
815
|
* The response for the guild crest components index.
|
|
816
816
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
817
817
|
*/
|
|
818
818
|
interface GuildCrestComponentsIndexResponse extends ResponseBase {
|
|
819
|
-
emblems: Array<Border>;
|
|
820
819
|
borders: Array<Border>;
|
|
821
820
|
colors: Colors;
|
|
821
|
+
emblems: Array<Border>;
|
|
822
822
|
}
|
|
823
823
|
interface Border {
|
|
824
824
|
id: number;
|
|
@@ -828,19 +828,19 @@ interface Media$c extends KeyBase {
|
|
|
828
828
|
id: number;
|
|
829
829
|
}
|
|
830
830
|
interface Colors {
|
|
831
|
-
emblems: Array<Background>;
|
|
832
|
-
borders: Array<Background>;
|
|
833
831
|
backgrounds: Array<Background>;
|
|
832
|
+
borders: Array<Background>;
|
|
833
|
+
emblems: Array<Background>;
|
|
834
834
|
}
|
|
835
835
|
interface Background {
|
|
836
836
|
id: number;
|
|
837
837
|
rgba: RGBA;
|
|
838
838
|
}
|
|
839
839
|
interface RGBA {
|
|
840
|
-
r: number;
|
|
841
|
-
g: number;
|
|
842
|
-
b: number;
|
|
843
840
|
a: number;
|
|
841
|
+
b: number;
|
|
842
|
+
g: number;
|
|
843
|
+
r: number;
|
|
844
844
|
}
|
|
845
845
|
/**
|
|
846
846
|
* The response for a guild crest border or emblem.
|
|
@@ -887,42 +887,42 @@ interface HeirloomIndexResponse extends ResponseBase {
|
|
|
887
887
|
interface HeirloomResponse extends ResponseBase {
|
|
888
888
|
id: number;
|
|
889
889
|
item: NameIdKey;
|
|
890
|
+
media: Media$b;
|
|
890
891
|
source: Source$3;
|
|
891
892
|
source_description: string;
|
|
892
893
|
upgrades: Array<Upgrade>;
|
|
893
|
-
media: Media$b;
|
|
894
894
|
}
|
|
895
895
|
interface Media$b extends KeyBase {
|
|
896
896
|
id: number;
|
|
897
897
|
}
|
|
898
898
|
interface Source$3 {
|
|
899
|
-
type: string;
|
|
900
899
|
name: string;
|
|
900
|
+
type: string;
|
|
901
901
|
}
|
|
902
902
|
interface Upgrade {
|
|
903
903
|
item: UpgradeItem;
|
|
904
904
|
level: number;
|
|
905
905
|
}
|
|
906
906
|
interface UpgradeItem {
|
|
907
|
-
|
|
908
|
-
context: number;
|
|
907
|
+
binding: Source$3;
|
|
909
908
|
bonus_list: Array<number>;
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
909
|
+
context: number;
|
|
910
|
+
inventory_type: Source$3;
|
|
911
|
+
item: Media$b;
|
|
913
912
|
item_class: NameIdKey;
|
|
914
913
|
item_subclass: NameIdKey;
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
914
|
+
level: AttackSpeedClass;
|
|
915
|
+
media: Media$b;
|
|
916
|
+
name: string;
|
|
917
|
+
quality: Source$3;
|
|
918
|
+
requirements: Requirements$2;
|
|
918
919
|
stats: Array<Stat$1>;
|
|
919
920
|
upgrades: Upgrades;
|
|
920
|
-
|
|
921
|
-
level: AttackSpeedClass;
|
|
921
|
+
weapon: Weapon$1;
|
|
922
922
|
}
|
|
923
923
|
interface AttackSpeedClass {
|
|
924
|
-
value: number;
|
|
925
924
|
display_string: string;
|
|
925
|
+
value: number;
|
|
926
926
|
}
|
|
927
927
|
interface Requirements$2 {
|
|
928
928
|
level: RequirementsLevel;
|
|
@@ -931,30 +931,30 @@ interface RequirementsLevel {
|
|
|
931
931
|
display_string: string;
|
|
932
932
|
}
|
|
933
933
|
interface Stat$1 {
|
|
934
|
-
type: Source$3;
|
|
935
|
-
value: number;
|
|
936
934
|
display: Display$1;
|
|
937
935
|
is_equip_bonus?: boolean;
|
|
936
|
+
type: Source$3;
|
|
937
|
+
value: number;
|
|
938
938
|
}
|
|
939
939
|
interface Display$1 {
|
|
940
|
-
display_string: string;
|
|
941
940
|
color: Color;
|
|
941
|
+
display_string: string;
|
|
942
942
|
}
|
|
943
943
|
interface Upgrades {
|
|
944
|
-
value: number;
|
|
945
|
-
max_value: number;
|
|
946
944
|
display_string: string;
|
|
945
|
+
max_value: number;
|
|
946
|
+
value: number;
|
|
947
947
|
}
|
|
948
948
|
interface Weapon$1 {
|
|
949
|
-
damage: Damage$1;
|
|
950
949
|
attack_speed: AttackSpeedClass;
|
|
950
|
+
damage: Damage$1;
|
|
951
951
|
dps: AttackSpeedClass;
|
|
952
952
|
}
|
|
953
953
|
interface Damage$1 {
|
|
954
|
-
min_value: number;
|
|
955
|
-
max_value: number;
|
|
956
|
-
display_string: string;
|
|
957
954
|
damage_class: Source$3;
|
|
955
|
+
display_string: string;
|
|
956
|
+
max_value: number;
|
|
957
|
+
min_value: number;
|
|
958
958
|
}
|
|
959
959
|
|
|
960
960
|
/**
|
|
@@ -971,109 +971,109 @@ declare function heirloomIndex(): Resource<HeirloomIndexResponse>;
|
|
|
971
971
|
|
|
972
972
|
interface ItemQuality {
|
|
973
973
|
name: Record<Locales, string | undefined>;
|
|
974
|
-
type: '
|
|
974
|
+
type: 'ARTIFACT' | 'COMMON' | 'EPIC' | 'HEIRLOOM' | 'LEGENDARY' | 'POOR' | 'RARE' | 'UNCOMMON';
|
|
975
975
|
}
|
|
976
976
|
interface InventoryType {
|
|
977
977
|
name: Record<Locales, string | undefined>;
|
|
978
|
-
type: '
|
|
978
|
+
type: 'BACK' | 'BAG' | 'CHEST' | 'FEET' | 'FINGER' | 'HANDS' | 'HEAD' | 'LEGS' | 'NECK' | 'NON_EQUIP' | 'SHIRT' | 'SHOULDER' | 'TABARD' | 'TRINKET' | 'TWOHWEAPON' | 'WAIST' | 'WRIST';
|
|
979
979
|
}
|
|
980
|
-
type StatTypeCapitalized = '
|
|
981
|
-
type StatType = '
|
|
980
|
+
type StatTypeCapitalized = 'AGILITY' | 'CRIT_RATING' | 'HASTE_RATING' | 'INTELLECT' | 'MASTERY' | 'STAMINA' | 'STRENGTH' | 'VERSATILITY';
|
|
981
|
+
type StatType = 'Agility' | 'Critical Strike' | 'Haste' | 'Intellect' | 'Mastery' | 'Stamina' | 'Strength' | 'Versatility';
|
|
982
982
|
/**
|
|
983
983
|
* The response for an item.
|
|
984
984
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
985
985
|
*/
|
|
986
986
|
interface ItemResponse extends ResponseBase, NameId {
|
|
987
|
-
|
|
988
|
-
level: number;
|
|
989
|
-
required_level: number;
|
|
990
|
-
media: Media$a;
|
|
991
|
-
item_class: NameIdKey;
|
|
992
|
-
item_subclass: NameIdKey;
|
|
987
|
+
description?: string;
|
|
993
988
|
inventory_type: InventoryType;
|
|
994
|
-
purchase_price: number;
|
|
995
|
-
sell_price: number;
|
|
996
|
-
max_count: number;
|
|
997
989
|
is_equippable: boolean;
|
|
998
990
|
is_stackable: boolean;
|
|
991
|
+
item_class: NameIdKey;
|
|
992
|
+
item_subclass: NameIdKey;
|
|
993
|
+
level: number;
|
|
994
|
+
max_count: number;
|
|
995
|
+
media: Media$a;
|
|
999
996
|
preview_item: PreviewItem;
|
|
997
|
+
purchase_price: number;
|
|
1000
998
|
purchase_quantity: number;
|
|
1001
|
-
|
|
999
|
+
quality: ItemQuality;
|
|
1000
|
+
required_level: number;
|
|
1001
|
+
sell_price: number;
|
|
1002
1002
|
}
|
|
1003
1003
|
interface Media$a extends KeyBase {
|
|
1004
1004
|
id: number;
|
|
1005
1005
|
}
|
|
1006
1006
|
interface PreviewItem {
|
|
1007
|
-
|
|
1008
|
-
quality: ItemQuality;
|
|
1009
|
-
name: string;
|
|
1010
|
-
media: Media$a;
|
|
1011
|
-
item_class: NameIdKey;
|
|
1012
|
-
item_subclass: NameIdKey;
|
|
1013
|
-
inventory_type: InventoryType;
|
|
1007
|
+
armor?: Armor;
|
|
1014
1008
|
binding?: {
|
|
1015
|
-
type: string;
|
|
1016
1009
|
name: string;
|
|
1010
|
+
type: string;
|
|
1017
1011
|
};
|
|
1018
|
-
armor?: Armor;
|
|
1019
|
-
sell_price?: number;
|
|
1020
|
-
requirements?: Requirements$1;
|
|
1021
|
-
level?: Durability;
|
|
1022
|
-
is_subclass_hidden?: boolean;
|
|
1023
|
-
spells?: Array<Spell>;
|
|
1024
|
-
context?: number;
|
|
1025
1012
|
bonus_list?: Array<number>;
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1013
|
+
container_slots?: Durability;
|
|
1014
|
+
context?: number;
|
|
1015
|
+
crafting_reagent?: string;
|
|
1029
1016
|
description?: string;
|
|
1017
|
+
durability?: Durability;
|
|
1018
|
+
inventory_type: InventoryType;
|
|
1019
|
+
is_subclass_hidden?: boolean;
|
|
1020
|
+
item: Media$a;
|
|
1021
|
+
item_class: NameIdKey;
|
|
1022
|
+
item_subclass: NameIdKey;
|
|
1023
|
+
level?: Durability;
|
|
1024
|
+
media: Media$a;
|
|
1025
|
+
name: string;
|
|
1026
|
+
quality: ItemQuality;
|
|
1030
1027
|
recipe?: Recipe;
|
|
1028
|
+
requirements?: Requirements$1;
|
|
1029
|
+
sell_price?: number;
|
|
1031
1030
|
shield_block?: Armor;
|
|
1031
|
+
spells?: Array<Spell>;
|
|
1032
|
+
stats?: Array<Stat>;
|
|
1032
1033
|
unique_equipped?: 'Unique';
|
|
1033
|
-
|
|
1034
|
-
container_slots?: Durability;
|
|
1034
|
+
weapon?: Weapon;
|
|
1035
1035
|
}
|
|
1036
1036
|
interface Armor {
|
|
1037
|
-
value: number;
|
|
1038
1037
|
display: Display;
|
|
1038
|
+
value: number;
|
|
1039
1039
|
}
|
|
1040
1040
|
interface Durability {
|
|
1041
|
-
value: number;
|
|
1042
1041
|
display_string: string;
|
|
1042
|
+
value: number;
|
|
1043
1043
|
}
|
|
1044
1044
|
interface Requirements$1 {
|
|
1045
1045
|
level: Durability;
|
|
1046
1046
|
}
|
|
1047
1047
|
interface Spell {
|
|
1048
|
-
spell: NameIdKey;
|
|
1049
1048
|
description: string;
|
|
1049
|
+
spell: NameIdKey;
|
|
1050
1050
|
}
|
|
1051
1051
|
interface Stat {
|
|
1052
|
+
display: Display;
|
|
1053
|
+
is_negated?: boolean;
|
|
1052
1054
|
type: {
|
|
1053
|
-
type: StatTypeCapitalized;
|
|
1054
1055
|
name: StatType;
|
|
1056
|
+
type: StatTypeCapitalized;
|
|
1055
1057
|
};
|
|
1056
1058
|
value: number;
|
|
1057
|
-
is_negated?: boolean;
|
|
1058
|
-
display: Display;
|
|
1059
1059
|
}
|
|
1060
1060
|
interface Display {
|
|
1061
|
-
display_string: string;
|
|
1062
1061
|
color: Color;
|
|
1062
|
+
display_string: string;
|
|
1063
1063
|
}
|
|
1064
1064
|
interface Weapon {
|
|
1065
|
-
damage: Damage;
|
|
1066
1065
|
attack_speed: Durability;
|
|
1066
|
+
damage: Damage;
|
|
1067
1067
|
dps: Durability;
|
|
1068
1068
|
}
|
|
1069
1069
|
interface Damage {
|
|
1070
|
-
min_value: number;
|
|
1071
|
-
max_value: number;
|
|
1072
|
-
display_string: string;
|
|
1073
1070
|
damage_class: {
|
|
1074
|
-
type: string;
|
|
1075
1071
|
name: string;
|
|
1072
|
+
type: string;
|
|
1076
1073
|
};
|
|
1074
|
+
display_string: string;
|
|
1075
|
+
max_value: number;
|
|
1076
|
+
min_value: number;
|
|
1077
1077
|
}
|
|
1078
1078
|
interface Recipe {
|
|
1079
1079
|
item: RecipeItem;
|
|
@@ -1083,33 +1083,33 @@ interface Recipe {
|
|
|
1083
1083
|
reagents_display_string: string;
|
|
1084
1084
|
}
|
|
1085
1085
|
interface RecipeItem {
|
|
1086
|
-
|
|
1087
|
-
quality: ItemQuality;
|
|
1088
|
-
name: string;
|
|
1089
|
-
media: Media$a;
|
|
1090
|
-
item_class: NameIdKey;
|
|
1091
|
-
item_subclass: NameIdKey;
|
|
1092
|
-
inventory_type: InventoryType;
|
|
1086
|
+
armor?: Armor;
|
|
1093
1087
|
binding: {
|
|
1094
|
-
type: string;
|
|
1095
1088
|
name: string;
|
|
1089
|
+
type: string;
|
|
1096
1090
|
};
|
|
1097
|
-
|
|
1098
|
-
|
|
1091
|
+
durability: Durability;
|
|
1092
|
+
inventory_type: InventoryType;
|
|
1093
|
+
item: Media$a;
|
|
1094
|
+
item_class: NameIdKey;
|
|
1095
|
+
item_subclass: NameIdKey;
|
|
1096
|
+
level: Durability;
|
|
1097
|
+
media: Media$a;
|
|
1098
|
+
name: string;
|
|
1099
|
+
quality: ItemQuality;
|
|
1100
|
+
requirements: Requirements$1;
|
|
1099
1101
|
sell_price: {
|
|
1100
|
-
value: number;
|
|
1101
1102
|
display_strings: RecipeItemDisplayStrings;
|
|
1103
|
+
value: number;
|
|
1102
1104
|
};
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
durability: Durability;
|
|
1106
|
-
armor?: Armor;
|
|
1105
|
+
stats: Array<Stat>;
|
|
1106
|
+
weapon?: Weapon;
|
|
1107
1107
|
}
|
|
1108
1108
|
interface RecipeItemDisplayStrings {
|
|
1109
|
-
|
|
1109
|
+
copper: string;
|
|
1110
1110
|
gold: string;
|
|
1111
|
+
header: string;
|
|
1111
1112
|
silver: string;
|
|
1112
|
-
copper: string;
|
|
1113
1113
|
}
|
|
1114
1114
|
/**
|
|
1115
1115
|
* The response for an item class index.
|
|
@@ -1124,8 +1124,8 @@ interface ItemClassIndexResponse extends ResponseBase {
|
|
|
1124
1124
|
*/
|
|
1125
1125
|
interface ItemClassResponse extends ResponseBase {
|
|
1126
1126
|
class_id: number;
|
|
1127
|
-
name: string;
|
|
1128
1127
|
item_subclasses: Array<NameIdKey>;
|
|
1128
|
+
name: string;
|
|
1129
1129
|
}
|
|
1130
1130
|
/**
|
|
1131
1131
|
* The response for an item media.
|
|
@@ -1141,10 +1141,10 @@ interface ItemMediaResponse extends ResponseBase {
|
|
|
1141
1141
|
*/
|
|
1142
1142
|
interface ItemSubClassResponse extends ResponseBase {
|
|
1143
1143
|
class_id: number;
|
|
1144
|
-
subclass_id: number;
|
|
1145
1144
|
display_name: string;
|
|
1146
|
-
verbose_name: string;
|
|
1147
1145
|
hide_subclass_in_tooltips: boolean;
|
|
1146
|
+
subclass_id: number;
|
|
1147
|
+
verbose_name: string;
|
|
1148
1148
|
}
|
|
1149
1149
|
/**
|
|
1150
1150
|
* The response for an item set index.
|
|
@@ -1158,10 +1158,10 @@ interface ItemSetIndexResponse extends ResponseBase {
|
|
|
1158
1158
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1159
1159
|
*/
|
|
1160
1160
|
interface ItemSetResponse extends ResponseBase {
|
|
1161
|
+
effects: Array<Effect>;
|
|
1161
1162
|
id: number;
|
|
1162
|
-
name: string;
|
|
1163
1163
|
items: Array<NameIdKey>;
|
|
1164
|
-
|
|
1164
|
+
name: string;
|
|
1165
1165
|
}
|
|
1166
1166
|
interface Effect {
|
|
1167
1167
|
display_string: string;
|
|
@@ -1173,8 +1173,8 @@ interface Effect {
|
|
|
1173
1173
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
|
|
1174
1174
|
*/
|
|
1175
1175
|
interface ItemSearchParameters extends BaseSearchParameters {
|
|
1176
|
-
name: string;
|
|
1177
1176
|
locale: Locales;
|
|
1177
|
+
name: string;
|
|
1178
1178
|
}
|
|
1179
1179
|
/**
|
|
1180
1180
|
* The response for an item search.
|
|
@@ -1183,29 +1183,29 @@ interface ItemSearchParameters extends BaseSearchParameters {
|
|
|
1183
1183
|
*/
|
|
1184
1184
|
interface ItemSearchResponseItem extends KeyBase {
|
|
1185
1185
|
data: {
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
sell_price: number;
|
|
1189
|
-
item_subclass: {
|
|
1190
|
-
name: Record<Locales, string | undefined>;
|
|
1191
|
-
id: number;
|
|
1192
|
-
};
|
|
1186
|
+
id: number;
|
|
1187
|
+
inventory_type: InventoryType;
|
|
1193
1188
|
is_equippable: boolean;
|
|
1194
|
-
|
|
1195
|
-
media: {
|
|
1196
|
-
id: number;
|
|
1197
|
-
};
|
|
1189
|
+
is_stackable: boolean;
|
|
1198
1190
|
item_class: {
|
|
1191
|
+
id: number;
|
|
1199
1192
|
name: Record<Locales, string | undefined>;
|
|
1193
|
+
};
|
|
1194
|
+
item_subclass: {
|
|
1200
1195
|
id: number;
|
|
1196
|
+
name: Record<Locales, string | undefined>;
|
|
1201
1197
|
};
|
|
1202
|
-
|
|
1198
|
+
level: number;
|
|
1203
1199
|
max_count: number;
|
|
1204
|
-
|
|
1200
|
+
media: {
|
|
1201
|
+
id: number;
|
|
1202
|
+
};
|
|
1205
1203
|
name: Record<Locales, string | undefined>;
|
|
1206
1204
|
purchase_price: number;
|
|
1207
|
-
|
|
1208
|
-
|
|
1205
|
+
purchase_quantity: number;
|
|
1206
|
+
quality: ItemQuality;
|
|
1207
|
+
required_level: number;
|
|
1208
|
+
sell_price: number;
|
|
1209
1209
|
};
|
|
1210
1210
|
}
|
|
1211
1211
|
|
|
@@ -1255,12 +1255,12 @@ declare function itemSetIndex(): Resource<ItemSetIndexResponse>;
|
|
|
1255
1255
|
* @param options The search parameters. See {@link ItemSearchParameters}.
|
|
1256
1256
|
* @returns The search results. See {@link SearchResponse}.
|
|
1257
1257
|
*/
|
|
1258
|
-
declare function itemSearch(options: ItemSearchParameters): Resource<SearchResponse<ItemSearchResponseItem>, Omit<ItemSearchParameters, '
|
|
1258
|
+
declare function itemSearch(options: ItemSearchParameters): Resource<SearchResponse<ItemSearchResponseItem>, Omit<ItemSearchParameters, 'locale' | 'name'>>;
|
|
1259
1259
|
|
|
1260
|
-
type EncounterCategory = '
|
|
1261
|
-
type EncounterMode = '
|
|
1262
|
-
type ModeName = '
|
|
1263
|
-
type ModeType = '
|
|
1260
|
+
type EncounterCategory = 'DUNGEON' | 'RAID' | 'WORLD_BOSS';
|
|
1261
|
+
type EncounterMode = 'HEROIC' | 'LFR' | 'MYTHIC' | 'NORMAL';
|
|
1262
|
+
type ModeName = '10 Player (Heroic)' | '10 Player' | '25 Player (Heroic)' | '25 Player' | 'Heroic' | 'Mythic' | 'Mythic+ Dungeons' | 'Normal' | 'Raid Finder';
|
|
1263
|
+
type ModeType = 'HEROIC' | 'LEGACY_10_MAN_HEROIC' | 'LEGACY_10_MAN' | 'LEGACY_25_MAN_HEROIC' | 'LEGACY_25_MAN' | 'LFR' | 'MYTHIC_KEYSTONE' | 'MYTHIC' | 'NORMAL';
|
|
1264
1264
|
/**
|
|
1265
1265
|
* The response for a journal encounter index.
|
|
1266
1266
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
@@ -1273,14 +1273,14 @@ interface JournalEncounterIndexResponse extends ResponseBase {
|
|
|
1273
1273
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1274
1274
|
*/
|
|
1275
1275
|
interface JournalEncounterResponse extends ResponseBase, NameId {
|
|
1276
|
-
|
|
1276
|
+
category: Category$1;
|
|
1277
1277
|
creatures: Array<Creature>;
|
|
1278
|
-
|
|
1279
|
-
|
|
1278
|
+
description: string;
|
|
1279
|
+
faction?: Faction;
|
|
1280
1280
|
instance: NameIdKey;
|
|
1281
|
-
|
|
1281
|
+
items: Array<Item>;
|
|
1282
1282
|
modes?: Array<Mode>;
|
|
1283
|
-
|
|
1283
|
+
sections: Array<JournalSection>;
|
|
1284
1284
|
}
|
|
1285
1285
|
interface Category$1 {
|
|
1286
1286
|
type: EncounterCategory;
|
|
@@ -1301,12 +1301,12 @@ interface Mode {
|
|
|
1301
1301
|
type: ModeType;
|
|
1302
1302
|
}
|
|
1303
1303
|
interface JournalSection {
|
|
1304
|
-
id: number;
|
|
1305
|
-
title: string;
|
|
1306
1304
|
body_text?: string;
|
|
1307
|
-
sections?: Array<JournalSection>;
|
|
1308
1305
|
creature_display?: CreatureDisplay$1;
|
|
1306
|
+
id: number;
|
|
1307
|
+
sections?: Array<JournalSection>;
|
|
1309
1308
|
spell?: NameIdKey;
|
|
1309
|
+
title: string;
|
|
1310
1310
|
}
|
|
1311
1311
|
/**
|
|
1312
1312
|
* The response for a journal expansion index.
|
|
@@ -1335,25 +1335,25 @@ interface JournalInstanceIndexResponse extends ResponseBase {
|
|
|
1335
1335
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1336
1336
|
*/
|
|
1337
1337
|
interface JournalInstanceResponse extends ResponseBase, NameId {
|
|
1338
|
-
map: NameId;
|
|
1339
1338
|
area: NameId;
|
|
1339
|
+
category: Category$1;
|
|
1340
1340
|
description: string;
|
|
1341
1341
|
encounters: Array<NameIdKey>;
|
|
1342
1342
|
expansion: NameIdKey;
|
|
1343
1343
|
location: NameId;
|
|
1344
|
-
|
|
1344
|
+
map: NameId;
|
|
1345
1345
|
media: Media$9;
|
|
1346
1346
|
minimum_level: number;
|
|
1347
|
-
|
|
1347
|
+
modes: Array<ModeElement>;
|
|
1348
1348
|
order_index: number;
|
|
1349
1349
|
}
|
|
1350
1350
|
interface Media$9 extends KeyBase {
|
|
1351
1351
|
id: number;
|
|
1352
1352
|
}
|
|
1353
1353
|
interface ModeElement {
|
|
1354
|
+
is_tracked: boolean;
|
|
1354
1355
|
mode: Mode;
|
|
1355
1356
|
players: number;
|
|
1356
|
-
is_tracked: boolean;
|
|
1357
1357
|
}
|
|
1358
1358
|
/**
|
|
1359
1359
|
* The response for journal instance media.
|
|
@@ -1382,19 +1382,19 @@ interface JournalEncounterSearchParameters extends BaseSearchParameters {
|
|
|
1382
1382
|
*/
|
|
1383
1383
|
interface JournalEncounterSearchResponseItem extends KeyBase {
|
|
1384
1384
|
data: {
|
|
1385
|
+
category: Category$1;
|
|
1386
|
+
creatures: Array<JournalEncounterSearchCreature>;
|
|
1387
|
+
id: number;
|
|
1385
1388
|
instance: {
|
|
1386
|
-
name: Record<Locales, string>;
|
|
1387
1389
|
id: number;
|
|
1390
|
+
name: Record<Locales, string>;
|
|
1388
1391
|
};
|
|
1392
|
+
items: Array<JournalEncounterSearchItem>;
|
|
1389
1393
|
modes?: Array<{
|
|
1390
1394
|
name: Record<Locales, string>;
|
|
1391
1395
|
type: EncounterMode;
|
|
1392
1396
|
}>;
|
|
1393
|
-
creatures: Array<JournalEncounterSearchCreature>;
|
|
1394
1397
|
name: Record<Locales, string>;
|
|
1395
|
-
id: number;
|
|
1396
|
-
category: Category$1;
|
|
1397
|
-
items: Array<JournalEncounterSearchItem>;
|
|
1398
1398
|
sections: Array<JournalSection>;
|
|
1399
1399
|
};
|
|
1400
1400
|
}
|
|
@@ -1402,14 +1402,14 @@ interface JournalEncounterSearchCreature {
|
|
|
1402
1402
|
creature_display: {
|
|
1403
1403
|
id: number;
|
|
1404
1404
|
};
|
|
1405
|
-
name: Record<Locales, string>;
|
|
1406
1405
|
id: number;
|
|
1406
|
+
name: Record<Locales, string>;
|
|
1407
1407
|
}
|
|
1408
1408
|
interface JournalEncounterSearchItem {
|
|
1409
1409
|
id: number;
|
|
1410
1410
|
item: {
|
|
1411
|
-
name: Record<Locales, string>;
|
|
1412
1411
|
id: number;
|
|
1412
|
+
name: Record<Locales, string>;
|
|
1413
1413
|
};
|
|
1414
1414
|
}
|
|
1415
1415
|
|
|
@@ -1474,8 +1474,8 @@ interface MediaSearchParameters extends BaseSearchParameters {
|
|
|
1474
1474
|
*/
|
|
1475
1475
|
interface MediaSearchResponseItem extends KeyBase {
|
|
1476
1476
|
data: {
|
|
1477
|
-
id: number;
|
|
1478
1477
|
assets: Array<MediaAsset>;
|
|
1478
|
+
id: number;
|
|
1479
1479
|
};
|
|
1480
1480
|
}
|
|
1481
1481
|
interface MediaAsset {
|
|
@@ -1524,17 +1524,17 @@ interface ModifiedCraftingReagentSlotTypeIndexResponse extends ResponseBase {
|
|
|
1524
1524
|
slot_types: Array<SlotType>;
|
|
1525
1525
|
}
|
|
1526
1526
|
interface SlotType extends KeyBase {
|
|
1527
|
-
name?: string;
|
|
1528
1527
|
id: number;
|
|
1528
|
+
name?: string;
|
|
1529
1529
|
}
|
|
1530
1530
|
/**
|
|
1531
1531
|
* The response for a modified crafting reagent slot type.
|
|
1532
1532
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1533
1533
|
*/
|
|
1534
1534
|
interface ModifiedCraftingReagentSlotTypeResponse extends ResponseBase {
|
|
1535
|
-
id: number;
|
|
1536
|
-
description: string;
|
|
1537
1535
|
compatible_categories: Array<NameIdKey>;
|
|
1536
|
+
description: string;
|
|
1537
|
+
id: number;
|
|
1538
1538
|
}
|
|
1539
1539
|
|
|
1540
1540
|
/**
|
|
@@ -1577,19 +1577,19 @@ interface MountIndexResponse extends ResponseBase {
|
|
|
1577
1577
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1578
1578
|
*/
|
|
1579
1579
|
interface MountResponse extends ResponseBase {
|
|
1580
|
-
id: number;
|
|
1581
|
-
name: string;
|
|
1582
1580
|
creature_displays: Array<CreatureDisplay>;
|
|
1583
1581
|
description: string;
|
|
1584
|
-
|
|
1582
|
+
id: number;
|
|
1583
|
+
name: string;
|
|
1585
1584
|
should_exclude_if_uncollected: boolean;
|
|
1585
|
+
source: Source$2;
|
|
1586
1586
|
}
|
|
1587
1587
|
interface CreatureDisplay extends KeyBase {
|
|
1588
1588
|
id: number;
|
|
1589
1589
|
}
|
|
1590
1590
|
interface Source$2 {
|
|
1591
|
-
type: string;
|
|
1592
1591
|
name: string;
|
|
1592
|
+
type: string;
|
|
1593
1593
|
}
|
|
1594
1594
|
/**
|
|
1595
1595
|
* The search parameters for mounts.
|
|
@@ -1597,8 +1597,8 @@ interface Source$2 {
|
|
|
1597
1597
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
|
|
1598
1598
|
*/
|
|
1599
1599
|
interface MountSearchParameters extends BaseSearchParameters {
|
|
1600
|
-
name: string;
|
|
1601
1600
|
locale: Locales;
|
|
1601
|
+
name: string;
|
|
1602
1602
|
}
|
|
1603
1603
|
/**
|
|
1604
1604
|
* The response for a mount search.
|
|
@@ -1610,16 +1610,16 @@ interface MountSearchResponseItem extends KeyBase {
|
|
|
1610
1610
|
creature_displays: Array<{
|
|
1611
1611
|
id: number;
|
|
1612
1612
|
}>;
|
|
1613
|
-
|
|
1613
|
+
faction?: {
|
|
1614
|
+
name: Record<Locales, string>;
|
|
1615
|
+
type: keyof typeof Factions;
|
|
1616
|
+
};
|
|
1614
1617
|
id: number;
|
|
1618
|
+
name: Record<Locales, string>;
|
|
1615
1619
|
source: {
|
|
1616
1620
|
name: Record<Locales, string>;
|
|
1617
1621
|
type: string;
|
|
1618
1622
|
};
|
|
1619
|
-
faction?: {
|
|
1620
|
-
name: Record<Locales, string>;
|
|
1621
|
-
type: keyof typeof Factions;
|
|
1622
|
-
};
|
|
1623
1623
|
};
|
|
1624
1624
|
}
|
|
1625
1625
|
|
|
@@ -1639,7 +1639,7 @@ declare function mountIndex(): Resource<MountIndexResponse>;
|
|
|
1639
1639
|
* @param options The search parameters. See {@link MountSearchParameters}.
|
|
1640
1640
|
* @returns The search results. See {@link SearchResponse}.
|
|
1641
1641
|
*/
|
|
1642
|
-
declare function mountSearch(options: MountSearchParameters): Resource<SearchResponse<MountSearchResponseItem>, Omit<MountSearchParameters, '
|
|
1642
|
+
declare function mountSearch(options: MountSearchParameters): Resource<SearchResponse<MountSearchResponseItem>, Omit<MountSearchParameters, 'locale' | 'name'>>;
|
|
1643
1643
|
|
|
1644
1644
|
/**
|
|
1645
1645
|
* The response for a Mythic Keystone affix index.
|
|
@@ -1696,15 +1696,15 @@ interface MythicKeystoneDungeonIndexResponse extends ResponseBase {
|
|
|
1696
1696
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1697
1697
|
*/
|
|
1698
1698
|
interface MythicKeystoneDungeonResponse extends ResponseBase, NameId {
|
|
1699
|
-
map: NameId;
|
|
1700
|
-
zone: Zone;
|
|
1701
1699
|
dungeon: NameIdKey;
|
|
1702
|
-
keystone_upgrades: Array<KeystoneUpgrade>;
|
|
1703
1700
|
is_tracked: boolean;
|
|
1701
|
+
keystone_upgrades: Array<KeystoneUpgrade>;
|
|
1702
|
+
map: NameId;
|
|
1703
|
+
zone: Zone;
|
|
1704
1704
|
}
|
|
1705
1705
|
interface KeystoneUpgrade {
|
|
1706
|
-
upgrade_level: number;
|
|
1707
1706
|
qualifying_duration: number;
|
|
1707
|
+
upgrade_level: number;
|
|
1708
1708
|
}
|
|
1709
1709
|
interface Zone {
|
|
1710
1710
|
slug: string;
|
|
@@ -1714,10 +1714,10 @@ interface Zone {
|
|
|
1714
1714
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1715
1715
|
*/
|
|
1716
1716
|
interface MythicKeystoneIndexResponse extends ResponseBase {
|
|
1717
|
-
|
|
1717
|
+
dungeons: {
|
|
1718
1718
|
href: string;
|
|
1719
1719
|
};
|
|
1720
|
-
|
|
1720
|
+
seasons: {
|
|
1721
1721
|
href: string;
|
|
1722
1722
|
};
|
|
1723
1723
|
}
|
|
@@ -1726,8 +1726,8 @@ interface MythicKeystoneIndexResponse extends ResponseBase {
|
|
|
1726
1726
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1727
1727
|
*/
|
|
1728
1728
|
interface MythicKeystonePeriodIndexResponse extends ResponseBase {
|
|
1729
|
-
periods: Array<Period>;
|
|
1730
1729
|
current_period: Period;
|
|
1730
|
+
periods: Array<Period>;
|
|
1731
1731
|
}
|
|
1732
1732
|
interface Period extends KeyBase {
|
|
1733
1733
|
id: number;
|
|
@@ -1737,28 +1737,28 @@ interface Period extends KeyBase {
|
|
|
1737
1737
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1738
1738
|
*/
|
|
1739
1739
|
interface MythicKeystonePeriodResponse extends ResponseBase {
|
|
1740
|
+
end_timestamp: number;
|
|
1740
1741
|
id: number;
|
|
1741
1742
|
start_timestamp: number;
|
|
1742
|
-
end_timestamp: number;
|
|
1743
1743
|
}
|
|
1744
1744
|
/**
|
|
1745
1745
|
* The response for a Mythic Keystone season index.
|
|
1746
1746
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1747
1747
|
*/
|
|
1748
1748
|
interface MythicKeystoneSeasonIndexResponse extends ResponseBase {
|
|
1749
|
-
seasons: Array<Period>;
|
|
1750
1749
|
current_season: Period;
|
|
1750
|
+
seasons: Array<Period>;
|
|
1751
1751
|
}
|
|
1752
1752
|
/**
|
|
1753
1753
|
* The response for a Mythic Keystone season.
|
|
1754
1754
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1755
1755
|
*/
|
|
1756
1756
|
interface MythicKeystoneSeasonResponse extends ResponseBase {
|
|
1757
|
-
id: number;
|
|
1758
|
-
start_timestamp: number;
|
|
1759
1757
|
end_timestamp: number;
|
|
1758
|
+
id: number;
|
|
1760
1759
|
periods: Array<Period>;
|
|
1761
|
-
season_name:
|
|
1760
|
+
season_name: null | string;
|
|
1761
|
+
start_timestamp: number;
|
|
1762
1762
|
}
|
|
1763
1763
|
|
|
1764
1764
|
/**
|
|
@@ -1812,35 +1812,35 @@ interface MythicKeystoneLeaderboardIndexResponse extends ResponseBase {
|
|
|
1812
1812
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1813
1813
|
*/
|
|
1814
1814
|
interface MythicKeystoneLeaderboardResponse extends ResponseBase {
|
|
1815
|
-
map: NameId;
|
|
1816
|
-
period: number;
|
|
1817
|
-
period_start_timestamp: number;
|
|
1818
|
-
period_end_timestamp: number;
|
|
1819
1815
|
connected_realm: {
|
|
1820
1816
|
href: string;
|
|
1821
1817
|
};
|
|
1822
|
-
leading_groups: Array<LeadingGroup>;
|
|
1823
1818
|
keystone_affixes: Array<KeystoneAffixElement>;
|
|
1819
|
+
leading_groups: Array<LeadingGroup>;
|
|
1820
|
+
map: NameId;
|
|
1824
1821
|
map_challenge_mode_id: number;
|
|
1825
1822
|
name: string;
|
|
1823
|
+
period: number;
|
|
1824
|
+
period_end_timestamp: number;
|
|
1825
|
+
period_start_timestamp: number;
|
|
1826
1826
|
}
|
|
1827
1827
|
interface KeystoneAffixElement {
|
|
1828
1828
|
keystone_affix: NameIdKey;
|
|
1829
1829
|
starting_level: number;
|
|
1830
1830
|
}
|
|
1831
1831
|
interface LeadingGroup {
|
|
1832
|
-
ranking: number;
|
|
1833
|
-
duration: number;
|
|
1834
1832
|
completed_timestamp: number;
|
|
1833
|
+
duration: number;
|
|
1835
1834
|
keystone_level: number;
|
|
1836
1835
|
members: Array<Member>;
|
|
1837
1836
|
mythic_rating: MythicRating;
|
|
1837
|
+
ranking: number;
|
|
1838
1838
|
}
|
|
1839
1839
|
interface Member {
|
|
1840
|
-
profile: Profile;
|
|
1841
1840
|
faction: {
|
|
1842
1841
|
type: keyof typeof Factions;
|
|
1843
1842
|
};
|
|
1843
|
+
profile: Profile;
|
|
1844
1844
|
specialization: Specialization;
|
|
1845
1845
|
}
|
|
1846
1846
|
interface Profile extends NameId {
|
|
@@ -1878,31 +1878,31 @@ declare function mythicKeystoneLeaderboardIndex(connectedRealmId: number): Resou
|
|
|
1878
1878
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1879
1879
|
*/
|
|
1880
1880
|
interface MythicRaidLeaderboardResponse extends ResponseBase {
|
|
1881
|
-
slug: string;
|
|
1882
1881
|
criteria_type: string;
|
|
1883
1882
|
entries: Array<Entry$1>;
|
|
1884
1883
|
journal_instance: JournalInstance;
|
|
1884
|
+
slug: string;
|
|
1885
1885
|
}
|
|
1886
1886
|
interface Entry$1 {
|
|
1887
|
-
guild: Guild;
|
|
1888
1887
|
faction: {
|
|
1889
1888
|
type: keyof typeof Factions;
|
|
1890
1889
|
};
|
|
1891
|
-
|
|
1892
|
-
region: Origins | 'cn';
|
|
1890
|
+
guild: Guild;
|
|
1893
1891
|
rank: number;
|
|
1892
|
+
region: 'cn' | Origins;
|
|
1893
|
+
timestamp: number;
|
|
1894
1894
|
}
|
|
1895
1895
|
interface Guild extends NameId {
|
|
1896
1896
|
realm: Realm$1;
|
|
1897
1897
|
}
|
|
1898
1898
|
interface Realm$1 {
|
|
1899
|
-
name: null;
|
|
1900
1899
|
id: number;
|
|
1900
|
+
name: null;
|
|
1901
1901
|
slug: string;
|
|
1902
1902
|
}
|
|
1903
1903
|
interface JournalInstance extends KeyBase {
|
|
1904
|
-
name: null;
|
|
1905
1904
|
id: number;
|
|
1905
|
+
name: null;
|
|
1906
1906
|
}
|
|
1907
1907
|
|
|
1908
1908
|
/**
|
|
@@ -1925,25 +1925,25 @@ interface PetIndexResponse extends ResponseBase {
|
|
|
1925
1925
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1926
1926
|
*/
|
|
1927
1927
|
interface PetResponse extends ResponseBase, NameId {
|
|
1928
|
+
abilities: Array<Ability>;
|
|
1928
1929
|
battle_pet_type: BattlePetType;
|
|
1930
|
+
creature: NameIdKey;
|
|
1929
1931
|
description: string;
|
|
1930
|
-
|
|
1931
|
-
is_tradable: boolean;
|
|
1932
|
-
is_battlepet: boolean;
|
|
1932
|
+
icon: string;
|
|
1933
1933
|
is_alliance_only: boolean;
|
|
1934
|
+
is_battlepet: boolean;
|
|
1935
|
+
is_capturable: boolean;
|
|
1934
1936
|
is_horde_only: boolean;
|
|
1935
|
-
abilities: Array<Ability>;
|
|
1936
|
-
source: Source$1;
|
|
1937
|
-
icon: string;
|
|
1938
|
-
creature: NameIdKey;
|
|
1939
1937
|
is_random_creature_display: boolean;
|
|
1938
|
+
is_tradable: boolean;
|
|
1940
1939
|
media: Media$7;
|
|
1941
1940
|
should_exclude_if_uncollected: boolean;
|
|
1941
|
+
source: Source$1;
|
|
1942
1942
|
}
|
|
1943
1943
|
interface Ability {
|
|
1944
1944
|
ability: NameIdKey;
|
|
1945
|
-
slot: number;
|
|
1946
1945
|
required_level: number;
|
|
1946
|
+
slot: number;
|
|
1947
1947
|
}
|
|
1948
1948
|
interface BattlePetType extends NameId {
|
|
1949
1949
|
type: string;
|
|
@@ -1952,8 +1952,8 @@ interface Media$7 extends KeyBase {
|
|
|
1952
1952
|
id: number;
|
|
1953
1953
|
}
|
|
1954
1954
|
interface Source$1 {
|
|
1955
|
-
type: string;
|
|
1956
1955
|
name: string;
|
|
1956
|
+
type: string;
|
|
1957
1957
|
}
|
|
1958
1958
|
/**
|
|
1959
1959
|
* The response for a pet search.
|
|
@@ -1976,8 +1976,8 @@ interface PetAbilityIndexResponse extends ResponseBase {
|
|
|
1976
1976
|
*/
|
|
1977
1977
|
interface PetAbilityResponse extends ResponseBase, NameId {
|
|
1978
1978
|
battle_pet_type: BattlePetType;
|
|
1979
|
-
rounds: number;
|
|
1980
1979
|
media: Media$7;
|
|
1980
|
+
rounds: number;
|
|
1981
1981
|
}
|
|
1982
1982
|
/**
|
|
1983
1983
|
* The response for a pet ability media.
|
|
@@ -2036,13 +2036,13 @@ interface PlayableClassIndexResponse extends ResponseBase {
|
|
|
2036
2036
|
*/
|
|
2037
2037
|
interface PlayableClassResponse extends ResponseBase, NameId {
|
|
2038
2038
|
gender_name: Gender;
|
|
2039
|
-
power_type: NameIdKey;
|
|
2040
|
-
specializations: Array<NameIdKey>;
|
|
2041
2039
|
media: Media$6;
|
|
2040
|
+
playable_races: Array<NameIdKey>;
|
|
2041
|
+
power_type: NameIdKey;
|
|
2042
2042
|
pvp_talent_slots: {
|
|
2043
2043
|
href: string;
|
|
2044
2044
|
};
|
|
2045
|
-
|
|
2045
|
+
specializations: Array<NameIdKey>;
|
|
2046
2046
|
}
|
|
2047
2047
|
interface Media$6 extends KeyBase {
|
|
2048
2048
|
id: number;
|
|
@@ -2103,10 +2103,10 @@ interface PlayableRaceIndexResponse extends ResponseBase {
|
|
|
2103
2103
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2104
2104
|
*/
|
|
2105
2105
|
interface PlayableRaceResponse extends ResponseBase, NameId {
|
|
2106
|
-
gender_name: Gender;
|
|
2107
2106
|
faction: Faction;
|
|
2108
|
-
|
|
2107
|
+
gender_name: Gender;
|
|
2109
2108
|
is_allied_race: boolean;
|
|
2109
|
+
is_selectable: boolean;
|
|
2110
2110
|
playable_classes: Array<NameIdKey>;
|
|
2111
2111
|
}
|
|
2112
2112
|
|
|
@@ -2135,31 +2135,31 @@ interface PlayableSpecializationIndexResponse extends ResponseBase {
|
|
|
2135
2135
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2136
2136
|
*/
|
|
2137
2137
|
interface PlayableSpecializationResponse extends ResponseBase, NameId {
|
|
2138
|
-
playable_class: NameIdKey;
|
|
2139
2138
|
gender_description: Gender;
|
|
2140
2139
|
media: Media$5;
|
|
2141
|
-
|
|
2142
|
-
pvp_talents: Array<PvpTalent>;
|
|
2143
|
-
spec_talent_tree: SpecTalentTree$1;
|
|
2140
|
+
playable_class: NameIdKey;
|
|
2144
2141
|
power_type: NameIdKey;
|
|
2145
2142
|
primary_stat_type: PrimaryStatType;
|
|
2143
|
+
pvp_talents: Array<PvpTalent>;
|
|
2144
|
+
role: PrimaryStatType;
|
|
2145
|
+
spec_talent_tree: SpecTalentTree$1;
|
|
2146
2146
|
}
|
|
2147
2147
|
interface Media$5 extends KeyBase {
|
|
2148
2148
|
id: number;
|
|
2149
2149
|
}
|
|
2150
2150
|
interface PrimaryStatType {
|
|
2151
|
-
type: string;
|
|
2152
2151
|
name: string;
|
|
2152
|
+
type: string;
|
|
2153
2153
|
}
|
|
2154
2154
|
interface PvpTalent {
|
|
2155
|
-
talent: NameIdKey;
|
|
2156
2155
|
spell_tooltip: SpellTooltip;
|
|
2156
|
+
talent: NameIdKey;
|
|
2157
2157
|
}
|
|
2158
2158
|
interface SpellTooltip {
|
|
2159
|
-
description: string;
|
|
2160
2159
|
cast_time: string;
|
|
2161
|
-
power_cost?: string;
|
|
2162
2160
|
cooldown?: string;
|
|
2161
|
+
description: string;
|
|
2162
|
+
power_cost?: string;
|
|
2163
2163
|
range?: string;
|
|
2164
2164
|
}
|
|
2165
2165
|
interface SpecTalentTree$1 extends KeyBase {
|
|
@@ -2231,25 +2231,25 @@ interface ProfessionIndexResponse extends ResponseBase {
|
|
|
2231
2231
|
*/
|
|
2232
2232
|
interface ProfessionResponse extends ResponseBase, NameId {
|
|
2233
2233
|
description: string;
|
|
2234
|
-
type: Type;
|
|
2235
2234
|
media: Media$4;
|
|
2236
2235
|
skill_tiers: Array<NameIdKey>;
|
|
2236
|
+
type: Type;
|
|
2237
2237
|
}
|
|
2238
2238
|
interface Media$4 extends KeyBase {
|
|
2239
2239
|
id: number;
|
|
2240
2240
|
}
|
|
2241
2241
|
interface Type {
|
|
2242
|
-
type: string;
|
|
2243
2242
|
name: string;
|
|
2243
|
+
type: string;
|
|
2244
2244
|
}
|
|
2245
2245
|
/**
|
|
2246
2246
|
* The response for a profession skill tier.
|
|
2247
2247
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2248
2248
|
*/
|
|
2249
2249
|
interface ProfessionSkillTierResponse extends ResponseBase, NameId {
|
|
2250
|
-
minimum_skill_level: number;
|
|
2251
|
-
maximum_skill_level: number;
|
|
2252
2250
|
categories: Array<Category>;
|
|
2251
|
+
maximum_skill_level: number;
|
|
2252
|
+
minimum_skill_level: number;
|
|
2253
2253
|
}
|
|
2254
2254
|
interface Category {
|
|
2255
2255
|
name: string;
|
|
@@ -2268,17 +2268,17 @@ interface ProfessionMediaResponse extends ResponseBase {
|
|
|
2268
2268
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2269
2269
|
*/
|
|
2270
2270
|
interface RecipeResponse extends ResponseBase, NameId {
|
|
2271
|
-
media: Media$4;
|
|
2272
2271
|
crafted_item: NameIdKey;
|
|
2273
|
-
reagents: Array<Reagent>;
|
|
2274
2272
|
crafted_quantity: CraftedQuantity;
|
|
2273
|
+
media: Media$4;
|
|
2274
|
+
reagents: Array<Reagent>;
|
|
2275
2275
|
}
|
|
2276
2276
|
interface CraftedQuantity {
|
|
2277
2277
|
value: number;
|
|
2278
2278
|
}
|
|
2279
2279
|
interface Reagent {
|
|
2280
|
-
reagent: NameIdKey;
|
|
2281
2280
|
quantity: number;
|
|
2281
|
+
reagent: NameIdKey;
|
|
2282
2282
|
}
|
|
2283
2283
|
/**
|
|
2284
2284
|
* The response for a recipe media.
|
|
@@ -2331,10 +2331,10 @@ declare function recipeMedia(recipeId: number): Resource<RecipeMediaResponse>;
|
|
|
2331
2331
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2332
2332
|
*/
|
|
2333
2333
|
interface PvpLeaderboardResponse extends ResponseBase {
|
|
2334
|
-
season: Season;
|
|
2335
|
-
name: string;
|
|
2336
2334
|
bracket: Bracket$1;
|
|
2337
2335
|
entries: Array<Entry>;
|
|
2336
|
+
name: string;
|
|
2337
|
+
season: Season;
|
|
2338
2338
|
}
|
|
2339
2339
|
interface Entry {
|
|
2340
2340
|
character: Character;
|
|
@@ -2354,31 +2354,31 @@ interface Realm extends KeyBase {
|
|
|
2354
2354
|
slug: string;
|
|
2355
2355
|
}
|
|
2356
2356
|
interface SeasonMatchStatistics {
|
|
2357
|
+
lost: number;
|
|
2357
2358
|
played: number;
|
|
2358
2359
|
won: number;
|
|
2359
|
-
lost: number;
|
|
2360
2360
|
}
|
|
2361
2361
|
/**
|
|
2362
2362
|
* The response for a PvP leaderboard index.
|
|
2363
2363
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2364
2364
|
*/
|
|
2365
2365
|
interface PvpLeaderboardIndexResponse extends ResponseBase {
|
|
2366
|
-
season: Season;
|
|
2367
2366
|
leaderboards: Array<NameIdKey>;
|
|
2367
|
+
season: Season;
|
|
2368
2368
|
}
|
|
2369
2369
|
/**
|
|
2370
2370
|
* The response for PvP rewards index.
|
|
2371
2371
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2372
2372
|
*/
|
|
2373
2373
|
interface PvpRewardsIndexResponse extends ResponseBase {
|
|
2374
|
-
season: Season;
|
|
2375
2374
|
rewards: Array<Reward>;
|
|
2375
|
+
season: Season;
|
|
2376
2376
|
}
|
|
2377
2377
|
interface Reward {
|
|
2378
|
-
bracket: Bracket$1;
|
|
2379
2378
|
achievement: NameIdKey;
|
|
2380
|
-
|
|
2379
|
+
bracket: Bracket$1;
|
|
2381
2380
|
faction?: Faction;
|
|
2381
|
+
rating_cutoff: number;
|
|
2382
2382
|
specialization?: NameIdKey;
|
|
2383
2383
|
}
|
|
2384
2384
|
interface Bracket$1 {
|
|
@@ -2390,8 +2390,8 @@ interface Bracket$1 {
|
|
|
2390
2390
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2391
2391
|
*/
|
|
2392
2392
|
interface PvpSeasonIndexResponse extends ResponseBase {
|
|
2393
|
-
seasons: Array<Season>;
|
|
2394
2393
|
current_season: Season;
|
|
2394
|
+
seasons: Array<Season>;
|
|
2395
2395
|
}
|
|
2396
2396
|
interface Season extends KeyBase {
|
|
2397
2397
|
id: number;
|
|
@@ -2408,8 +2408,8 @@ interface PvpSeasonResponse extends ResponseBase {
|
|
|
2408
2408
|
rewards: {
|
|
2409
2409
|
href: string;
|
|
2410
2410
|
};
|
|
2411
|
-
season_start_timestamp: number;
|
|
2412
2411
|
season_name?: string;
|
|
2412
|
+
season_start_timestamp: number;
|
|
2413
2413
|
}
|
|
2414
2414
|
|
|
2415
2415
|
/**
|
|
@@ -2455,10 +2455,10 @@ interface PvpTierIndexResponse extends ResponseBase {
|
|
|
2455
2455
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2456
2456
|
*/
|
|
2457
2457
|
interface PvpTierResponse extends ResponseBase, NameId {
|
|
2458
|
-
|
|
2458
|
+
bracket: Bracket;
|
|
2459
2459
|
max_rating: number;
|
|
2460
2460
|
media: Media$3;
|
|
2461
|
-
|
|
2461
|
+
min_rating: number;
|
|
2462
2462
|
rating_type: number;
|
|
2463
2463
|
}
|
|
2464
2464
|
interface Bracket {
|
|
@@ -2500,10 +2500,10 @@ declare function pvpTierMedia(pvpTierId: number): Resource<PvpTierMediaResponse>
|
|
|
2500
2500
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2501
2501
|
*/
|
|
2502
2502
|
interface QuestIndexResponse extends ResponseBase {
|
|
2503
|
-
|
|
2503
|
+
areas: {
|
|
2504
2504
|
href: string;
|
|
2505
2505
|
};
|
|
2506
|
-
|
|
2506
|
+
categories: {
|
|
2507
2507
|
href: string;
|
|
2508
2508
|
};
|
|
2509
2509
|
types: {
|
|
@@ -2515,31 +2515,31 @@ interface QuestIndexResponse extends ResponseBase {
|
|
|
2515
2515
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2516
2516
|
*/
|
|
2517
2517
|
interface QuestResponse extends ResponseBase {
|
|
2518
|
-
id: number;
|
|
2519
|
-
title: string;
|
|
2520
2518
|
area: NameIdKey;
|
|
2521
2519
|
description: string;
|
|
2520
|
+
id: number;
|
|
2522
2521
|
requirements: Requirements;
|
|
2523
2522
|
rewards: Rewards;
|
|
2523
|
+
title: string;
|
|
2524
2524
|
}
|
|
2525
2525
|
interface Requirements {
|
|
2526
|
-
min_character_level: number;
|
|
2527
|
-
max_character_level: number;
|
|
2528
2526
|
faction: Faction;
|
|
2527
|
+
max_character_level: number;
|
|
2528
|
+
min_character_level: number;
|
|
2529
2529
|
}
|
|
2530
2530
|
interface Rewards {
|
|
2531
2531
|
experience: number;
|
|
2532
|
-
reputations: Array<Reputation>;
|
|
2533
2532
|
money: Money;
|
|
2533
|
+
reputations: Array<Reputation>;
|
|
2534
2534
|
}
|
|
2535
2535
|
interface Money {
|
|
2536
|
-
value: number;
|
|
2537
2536
|
units: Units;
|
|
2537
|
+
value: number;
|
|
2538
2538
|
}
|
|
2539
2539
|
interface Units {
|
|
2540
|
+
copper: number;
|
|
2540
2541
|
gold: number;
|
|
2541
2542
|
silver: number;
|
|
2542
|
-
copper: number;
|
|
2543
2543
|
}
|
|
2544
2544
|
interface Reputation {
|
|
2545
2545
|
reward: NameIdKey;
|
|
@@ -2557,8 +2557,8 @@ interface QuestAreaIndexResponse extends ResponseBase {
|
|
|
2557
2557
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2558
2558
|
*/
|
|
2559
2559
|
interface QuestAreaResponse extends ResponseBase {
|
|
2560
|
-
id: number;
|
|
2561
2560
|
area: string;
|
|
2561
|
+
id: number;
|
|
2562
2562
|
quests: Array<NameIdKey>;
|
|
2563
2563
|
}
|
|
2564
2564
|
/**
|
|
@@ -2573,8 +2573,8 @@ interface QuestCategoryIndexResponse extends ResponseBase {
|
|
|
2573
2573
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2574
2574
|
*/
|
|
2575
2575
|
interface QuestCategoryResponse extends ResponseBase {
|
|
2576
|
-
id: number;
|
|
2577
2576
|
category: string;
|
|
2577
|
+
id: number;
|
|
2578
2578
|
quests: Array<NameIdKey>;
|
|
2579
2579
|
}
|
|
2580
2580
|
/**
|
|
@@ -2590,8 +2590,8 @@ interface QuestTypeIndexResponse extends ResponseBase {
|
|
|
2590
2590
|
*/
|
|
2591
2591
|
interface QuestTypeResponse extends ResponseBase {
|
|
2592
2592
|
id: number;
|
|
2593
|
-
type: string;
|
|
2594
2593
|
quests: Array<NameIdKey>;
|
|
2594
|
+
type: string;
|
|
2595
2595
|
}
|
|
2596
2596
|
|
|
2597
2597
|
/**
|
|
@@ -2671,8 +2671,8 @@ interface RegionIndexResponse extends ResponseBase {
|
|
|
2671
2671
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2672
2672
|
*/
|
|
2673
2673
|
interface RegionResponse extends ResponseBase, NameId {
|
|
2674
|
-
tag: string;
|
|
2675
2674
|
patch_string: string;
|
|
2675
|
+
tag: string;
|
|
2676
2676
|
}
|
|
2677
2677
|
|
|
2678
2678
|
/**
|
|
@@ -2700,9 +2700,9 @@ interface ReputationFactionIndexResponse extends ResponseBase {
|
|
|
2700
2700
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2701
2701
|
*/
|
|
2702
2702
|
interface ReputationFactionResponse extends ResponseBase {
|
|
2703
|
+
description: string;
|
|
2703
2704
|
id: number;
|
|
2704
2705
|
name: string;
|
|
2705
|
-
description: string;
|
|
2706
2706
|
reputation_tiers: ReputationTiers;
|
|
2707
2707
|
}
|
|
2708
2708
|
interface ReputationTiers extends KeyBase {
|
|
@@ -2724,15 +2724,15 @@ interface ReputationTier extends KeyBase {
|
|
|
2724
2724
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2725
2725
|
*/
|
|
2726
2726
|
interface ReputationTiersResponse extends ResponseBase {
|
|
2727
|
+
faction?: NameIdKey;
|
|
2727
2728
|
id: number;
|
|
2728
2729
|
tiers: Array<Tier>;
|
|
2729
|
-
faction?: NameIdKey;
|
|
2730
2730
|
}
|
|
2731
2731
|
interface Tier {
|
|
2732
|
-
name: string;
|
|
2733
|
-
min_value: number;
|
|
2734
|
-
max_value: number;
|
|
2735
2732
|
id: number;
|
|
2733
|
+
max_value: number;
|
|
2734
|
+
min_value: number;
|
|
2735
|
+
name: string;
|
|
2736
2736
|
}
|
|
2737
2737
|
|
|
2738
2738
|
/**
|
|
@@ -2783,8 +2783,8 @@ interface SpellMediaResponse extends ResponseBase {
|
|
|
2783
2783
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
|
|
2784
2784
|
*/
|
|
2785
2785
|
interface SpellSearchParameters extends BaseSearchParameters {
|
|
2786
|
-
name: string;
|
|
2787
2786
|
locale: Locales;
|
|
2787
|
+
name: string;
|
|
2788
2788
|
}
|
|
2789
2789
|
/**
|
|
2790
2790
|
* The response for a spell search.
|
|
@@ -2793,11 +2793,11 @@ interface SpellSearchParameters extends BaseSearchParameters {
|
|
|
2793
2793
|
*/
|
|
2794
2794
|
interface SpellSearchResponseItem extends KeyBase {
|
|
2795
2795
|
data: {
|
|
2796
|
-
name: Record<Locales, string | undefined>;
|
|
2797
2796
|
id: number;
|
|
2798
2797
|
media: {
|
|
2799
2798
|
id: number;
|
|
2800
2799
|
};
|
|
2800
|
+
name: Record<Locales, string | undefined>;
|
|
2801
2801
|
};
|
|
2802
2802
|
}
|
|
2803
2803
|
|
|
@@ -2818,7 +2818,7 @@ declare function spellMedia(spellId: number): Resource<SpellMediaResponse>;
|
|
|
2818
2818
|
* @param options The spell search options. See {@link SpellSearchParameters}.
|
|
2819
2819
|
* @returns The spell search. See {@link SearchResponse}.
|
|
2820
2820
|
*/
|
|
2821
|
-
declare function spellSearch(options: SpellSearchParameters): Resource<SearchResponse<SpellSearchResponseItem>, Omit<SpellSearchParameters, '
|
|
2821
|
+
declare function spellSearch(options: SpellSearchParameters): Resource<SearchResponse<SpellSearchResponseItem>, Omit<SpellSearchParameters, 'locale' | 'name'>>;
|
|
2822
2822
|
|
|
2823
2823
|
/**
|
|
2824
2824
|
* The response for a pvp talent index.
|
|
@@ -2832,12 +2832,12 @@ interface PvpTalentIndexResponse extends ResponseBase {
|
|
|
2832
2832
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2833
2833
|
*/
|
|
2834
2834
|
interface PvpTalentResponse extends ResponseBase {
|
|
2835
|
+
compatible_slots: Array<number>;
|
|
2836
|
+
description: string;
|
|
2835
2837
|
id: number;
|
|
2836
|
-
spell: NameIdKey;
|
|
2837
2838
|
playable_specialization: NameIdKey;
|
|
2838
|
-
|
|
2839
|
+
spell: NameIdKey;
|
|
2839
2840
|
unlock_player_level: number;
|
|
2840
|
-
compatible_slots: Array<number>;
|
|
2841
2841
|
}
|
|
2842
2842
|
/**
|
|
2843
2843
|
* The response for a talent index.
|
|
@@ -2852,24 +2852,24 @@ interface TalentIndexResponse extends ResponseBase {
|
|
|
2852
2852
|
*/
|
|
2853
2853
|
interface TalentResponse extends ResponseBase {
|
|
2854
2854
|
id: number;
|
|
2855
|
+
playable_class: PlayableClass;
|
|
2855
2856
|
rank_descriptions: Array<RankDescription>;
|
|
2856
2857
|
spell: NameIdKey;
|
|
2857
|
-
playable_class: PlayableClass;
|
|
2858
2858
|
}
|
|
2859
2859
|
interface PlayableClass extends KeyBase {
|
|
2860
2860
|
id: number;
|
|
2861
2861
|
}
|
|
2862
2862
|
interface RankDescription {
|
|
2863
|
-
rank: number;
|
|
2864
2863
|
description: null;
|
|
2864
|
+
rank: number;
|
|
2865
2865
|
}
|
|
2866
2866
|
/**
|
|
2867
2867
|
* The response for a talent tree index.
|
|
2868
2868
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2869
2869
|
*/
|
|
2870
2870
|
interface TalentTreeIndexResponse extends ResponseBase {
|
|
2871
|
-
spec_talent_trees: Array<TalentTree$1>;
|
|
2872
2871
|
class_talent_trees: Array<TalentTree$1>;
|
|
2872
|
+
spec_talent_trees: Array<TalentTree$1>;
|
|
2873
2873
|
}
|
|
2874
2874
|
interface TalentTree$1 extends KeyBase {
|
|
2875
2875
|
name: string;
|
|
@@ -2879,77 +2879,77 @@ interface TalentTree$1 extends KeyBase {
|
|
|
2879
2879
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
2880
2880
|
*/
|
|
2881
2881
|
interface TalentTreeResponse extends ResponseBase, NameId {
|
|
2882
|
-
|
|
2883
|
-
playable_specialization: NameIdKey;
|
|
2882
|
+
class_talent_nodes: Array<ClassTalentNode>;
|
|
2884
2883
|
media: {
|
|
2885
2884
|
href: string;
|
|
2886
2885
|
};
|
|
2886
|
+
playable_class: NameIdKey;
|
|
2887
|
+
playable_specialization: NameIdKey;
|
|
2887
2888
|
restriction_lines: Array<RestrictionLine>;
|
|
2888
|
-
class_talent_nodes: Array<ClassTalentNode>;
|
|
2889
2889
|
spec_talent_nodes: Array<SpecTalentNode>;
|
|
2890
2890
|
}
|
|
2891
2891
|
interface ClassTalentNode {
|
|
2892
|
+
display_col: number;
|
|
2893
|
+
display_row: number;
|
|
2892
2894
|
id: number;
|
|
2893
|
-
|
|
2895
|
+
locked_by?: Array<number>;
|
|
2894
2896
|
node_type: NodeType;
|
|
2895
2897
|
ranks: Array<ClassTalentNodeRank>;
|
|
2896
|
-
display_row: number;
|
|
2897
|
-
display_col: number;
|
|
2898
2898
|
raw_position_x: number;
|
|
2899
2899
|
raw_position_y: number;
|
|
2900
|
-
|
|
2900
|
+
unlocks?: Array<number>;
|
|
2901
2901
|
}
|
|
2902
2902
|
interface NodeType {
|
|
2903
2903
|
id: number;
|
|
2904
2904
|
type: 'ACTIVE' | 'CHOICE' | 'PASSIVE';
|
|
2905
2905
|
}
|
|
2906
2906
|
interface ClassTalentNodeRank {
|
|
2907
|
+
choice_of_tooltips?: Array<Tooltip>;
|
|
2908
|
+
default_points?: number;
|
|
2907
2909
|
rank: number;
|
|
2908
2910
|
tooltip?: Tooltip;
|
|
2909
|
-
default_points?: number;
|
|
2910
|
-
choice_of_tooltips?: Array<Tooltip>;
|
|
2911
2911
|
}
|
|
2912
2912
|
interface Tooltip {
|
|
2913
|
-
talent: NameIdKey;
|
|
2914
2913
|
spell_tooltip: TooltipSpellTooltip;
|
|
2914
|
+
talent: NameIdKey;
|
|
2915
2915
|
}
|
|
2916
2916
|
interface TooltipSpellTooltip {
|
|
2917
|
-
spell: NameIdKey;
|
|
2918
|
-
description: string;
|
|
2919
2917
|
cast_time: string;
|
|
2920
2918
|
cooldown?: string;
|
|
2921
|
-
|
|
2919
|
+
description: string;
|
|
2922
2920
|
power_cost?: string;
|
|
2921
|
+
range?: string;
|
|
2922
|
+
spell: NameIdKey;
|
|
2923
2923
|
}
|
|
2924
2924
|
interface RestrictionLine {
|
|
2925
|
+
is_for_class: boolean;
|
|
2925
2926
|
required_points: number;
|
|
2926
2927
|
restricted_row: number;
|
|
2927
|
-
is_for_class: boolean;
|
|
2928
2928
|
}
|
|
2929
2929
|
interface SpecTalentNode {
|
|
2930
|
+
display_col: number;
|
|
2931
|
+
display_row: number;
|
|
2930
2932
|
id: number;
|
|
2931
|
-
|
|
2933
|
+
locked_by?: Array<number>;
|
|
2932
2934
|
node_type: NodeType;
|
|
2933
2935
|
ranks: Array<SpecTalentNodeRank>;
|
|
2934
|
-
display_row: number;
|
|
2935
|
-
display_col: number;
|
|
2936
2936
|
raw_position_x: number;
|
|
2937
2937
|
raw_position_y: number;
|
|
2938
|
-
|
|
2938
|
+
unlocks?: Array<number>;
|
|
2939
2939
|
}
|
|
2940
2940
|
interface SpecTalentNodeRank {
|
|
2941
|
+
choice_of_tooltips?: Array<ChoiceOfTooltip>;
|
|
2941
2942
|
rank: number;
|
|
2942
2943
|
tooltip?: Tooltip;
|
|
2943
|
-
choice_of_tooltips?: Array<ChoiceOfTooltip>;
|
|
2944
2944
|
}
|
|
2945
2945
|
interface ChoiceOfTooltip {
|
|
2946
|
-
talent: NameIdKey;
|
|
2947
2946
|
spell_tooltip: PurpleSpellTooltip;
|
|
2947
|
+
talent: NameIdKey;
|
|
2948
2948
|
}
|
|
2949
2949
|
interface PurpleSpellTooltip {
|
|
2950
|
-
spell: NameIdKey;
|
|
2951
|
-
description: string;
|
|
2952
2950
|
cast_time: string;
|
|
2951
|
+
description: string;
|
|
2952
|
+
spell: NameIdKey;
|
|
2953
2953
|
}
|
|
2954
2954
|
/**
|
|
2955
2955
|
* The response for a talent tree nodes.
|
|
@@ -2964,17 +2964,17 @@ interface SpecTalentTree extends KeyBase {
|
|
|
2964
2964
|
name: string;
|
|
2965
2965
|
}
|
|
2966
2966
|
interface TalentNode {
|
|
2967
|
+
display_col: number;
|
|
2968
|
+
display_row: number;
|
|
2967
2969
|
id: number;
|
|
2968
2970
|
node_type: NodeType;
|
|
2969
2971
|
ranks: Array<Rank>;
|
|
2970
|
-
display_row: number;
|
|
2971
|
-
display_col: number;
|
|
2972
2972
|
raw_position_x: number;
|
|
2973
2973
|
raw_position_y: number;
|
|
2974
2974
|
}
|
|
2975
2975
|
interface Rank {
|
|
2976
|
-
rank: number;
|
|
2977
2976
|
choice_of_tooltips?: Array<Tooltip>;
|
|
2977
|
+
rank: number;
|
|
2978
2978
|
tooltip?: Tooltip;
|
|
2979
2979
|
}
|
|
2980
2980
|
|
|
@@ -3031,10 +3031,10 @@ interface TechTalentIndexResponse extends ResponseBase {
|
|
|
3031
3031
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
3032
3032
|
*/
|
|
3033
3033
|
interface TechTalentResponse extends ResponseBase, NameId {
|
|
3034
|
-
talent_tree: Media$1;
|
|
3035
|
-
tier: number;
|
|
3036
3034
|
display_order: number;
|
|
3037
3035
|
media: Media$1;
|
|
3036
|
+
talent_tree: Media$1;
|
|
3037
|
+
tier: number;
|
|
3038
3038
|
}
|
|
3039
3039
|
interface Media$1 extends KeyBase {
|
|
3040
3040
|
id: number;
|
|
@@ -3063,8 +3063,8 @@ interface TalentTree extends KeyBase {
|
|
|
3063
3063
|
*/
|
|
3064
3064
|
interface TechTalentTreeResponse extends ResponseBase {
|
|
3065
3065
|
id: number;
|
|
3066
|
-
playable_class: NameIdKey;
|
|
3067
3066
|
max_tiers: number;
|
|
3067
|
+
playable_class: NameIdKey;
|
|
3068
3068
|
talents: Array<NameIdKey>;
|
|
3069
3069
|
}
|
|
3070
3070
|
|
|
@@ -3138,16 +3138,16 @@ interface ToyIndexResponse extends ResponseBase {
|
|
|
3138
3138
|
interface ToyResponse extends ResponseBase {
|
|
3139
3139
|
id: number;
|
|
3140
3140
|
item: NameIdKey;
|
|
3141
|
+
media: Media;
|
|
3141
3142
|
source: Source;
|
|
3142
3143
|
source_description: string;
|
|
3143
|
-
media: Media;
|
|
3144
3144
|
}
|
|
3145
3145
|
interface Media extends KeyBase {
|
|
3146
3146
|
id: number;
|
|
3147
3147
|
}
|
|
3148
3148
|
interface Source {
|
|
3149
|
-
type: string;
|
|
3150
3149
|
name: string;
|
|
3150
|
+
type: string;
|
|
3151
3151
|
}
|
|
3152
3152
|
|
|
3153
3153
|
/**
|
|
@@ -3208,22 +3208,22 @@ declare const wow: {
|
|
|
3208
3208
|
creatureFamily: typeof creatureFamily;
|
|
3209
3209
|
creatureFamilyIndex: typeof creatureFamilyIndex;
|
|
3210
3210
|
creatureFamilyMedia: typeof creatureFamilyMedia;
|
|
3211
|
+
creatureSearch: typeof creatureSearch;
|
|
3211
3212
|
creatureType: typeof creatureType;
|
|
3212
3213
|
creatureTypeIndex: typeof creatureTypeIndex;
|
|
3213
|
-
creatureSearch: typeof creatureSearch;
|
|
3214
|
-
guildCrestComponentsIndex: typeof guildCrestComponentsIndex;
|
|
3215
3214
|
guildCrestBorder: typeof guildCrestBorder;
|
|
3215
|
+
guildCrestComponentsIndex: typeof guildCrestComponentsIndex;
|
|
3216
3216
|
guildCrestEmblem: typeof guildCrestEmblem;
|
|
3217
3217
|
heirloom: typeof heirloom;
|
|
3218
3218
|
heirloomIndex: typeof heirloomIndex;
|
|
3219
3219
|
item: typeof item;
|
|
3220
3220
|
itemClass: typeof itemClass;
|
|
3221
|
-
itemSubClass: typeof itemSubClass;
|
|
3222
3221
|
itemClassIndex: typeof itemClassIndex;
|
|
3223
3222
|
itemMedia: typeof itemMedia;
|
|
3223
|
+
itemSearch: typeof itemSearch;
|
|
3224
3224
|
itemSet: typeof itemSet;
|
|
3225
3225
|
itemSetIndex: typeof itemSetIndex;
|
|
3226
|
-
|
|
3226
|
+
itemSubClass: typeof itemSubClass;
|
|
3227
3227
|
journalEncounter: typeof journalEncounter;
|
|
3228
3228
|
journalEncounterIndex: typeof journalEncounterIndex;
|
|
3229
3229
|
journalEncounterSearch: typeof journalEncounterSearch;
|
|
@@ -3255,11 +3255,11 @@ declare const wow: {
|
|
|
3255
3255
|
mythicKeystoneLeaderboardIndex: typeof mythicKeystoneLeaderboardIndex;
|
|
3256
3256
|
mythicRaidLeaderboard: typeof mythicRaidLeaderboard;
|
|
3257
3257
|
pet: typeof pet;
|
|
3258
|
-
petIndex: typeof petIndex;
|
|
3259
|
-
petMedia: typeof petMedia;
|
|
3260
3258
|
petAbility: typeof petAbility;
|
|
3261
3259
|
petAbilityIndex: typeof petAbilityIndex;
|
|
3262
3260
|
petAbilityMedia: typeof petAbilityMedia;
|
|
3261
|
+
petIndex: typeof petIndex;
|
|
3262
|
+
petMedia: typeof petMedia;
|
|
3263
3263
|
playableClass: typeof playableClass;
|
|
3264
3264
|
playableClassIndex: typeof playableClassIndex;
|
|
3265
3265
|
playableClassMedia: typeof playableClassMedia;
|
|
@@ -3286,11 +3286,11 @@ declare const wow: {
|
|
|
3286
3286
|
pvpTierIndex: typeof pvpTierIndex;
|
|
3287
3287
|
pvpTierMedia: typeof pvpTierMedia;
|
|
3288
3288
|
quest: typeof quest;
|
|
3289
|
-
questIndex: typeof questIndex;
|
|
3290
3289
|
questArea: typeof questArea;
|
|
3291
3290
|
questAreaIndex: typeof questAreaIndex;
|
|
3292
3291
|
questCategory: typeof questCategory;
|
|
3293
3292
|
questCategoryIndex: typeof questCategoryIndex;
|
|
3293
|
+
questIndex: typeof questIndex;
|
|
3294
3294
|
questType: typeof questType;
|
|
3295
3295
|
questTypeIndex: typeof questTypeIndex;
|
|
3296
3296
|
realm: typeof realm;
|