@blizzard-api/classic-wow 2.1.2 → 2.1.3
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/index.d.ts +849 -744
- package/dist/index.js +956 -364
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseSearchParameters, BlizzardNamespaces, Locales, Resource, SearchResponse } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region ../wow/src/base.d.ts
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* A record containing the RGBA values of a color.
|
|
9
|
+
*/
|
|
2
10
|
|
|
3
11
|
/**
|
|
4
12
|
*
|
|
@@ -7,118 +15,119 @@ import { BlizzardNamespaces, Resource, Locales, BaseSearchParameters, SearchResp
|
|
|
7
15
|
* A record containing the RGBA values of a color.
|
|
8
16
|
*/
|
|
9
17
|
interface Color {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
18
|
+
a: number;
|
|
19
|
+
b: number;
|
|
20
|
+
g: number;
|
|
21
|
+
r: number;
|
|
14
22
|
}
|
|
15
23
|
/**
|
|
16
24
|
* The playable gender names/descriptions in World of Warcraft.
|
|
17
25
|
*/
|
|
18
26
|
interface GenderName {
|
|
19
|
-
|
|
20
|
-
|
|
27
|
+
female: string;
|
|
28
|
+
male: string;
|
|
21
29
|
}
|
|
22
30
|
interface Href {
|
|
23
|
-
|
|
31
|
+
href: string;
|
|
24
32
|
}
|
|
25
33
|
/**
|
|
26
34
|
* Base record interface containing key.href property that often appear in Blizzard API responses.
|
|
27
35
|
*/
|
|
28
36
|
interface KeyBase {
|
|
29
|
-
|
|
37
|
+
key: Href;
|
|
30
38
|
}
|
|
31
39
|
/**
|
|
32
40
|
* The media asset associated with a character or entity in World of Warcraft.
|
|
33
41
|
*/
|
|
34
42
|
interface MediaAsset$1 {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
43
|
+
file_data_id: number;
|
|
44
|
+
key: string;
|
|
45
|
+
value: string;
|
|
38
46
|
}
|
|
39
47
|
/**
|
|
40
48
|
* Base record interface containing name and id properties that often appear together in Blizzard API responses.
|
|
41
49
|
*/
|
|
42
50
|
interface NameId {
|
|
43
|
-
|
|
44
|
-
|
|
51
|
+
id: number;
|
|
52
|
+
name: string;
|
|
45
53
|
}
|
|
46
54
|
/**
|
|
47
55
|
* Base record containing both {@link KeyBase} and {@link NameId} interfaces.
|
|
48
56
|
*/
|
|
49
|
-
interface NameIdKey extends KeyBase, NameId {
|
|
50
|
-
}
|
|
57
|
+
interface NameIdKey extends KeyBase, NameId {}
|
|
51
58
|
/**
|
|
52
59
|
* Base interface for Blizzard API responses.
|
|
53
60
|
*/
|
|
54
61
|
interface ResponseBase {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
62
|
+
_links: {
|
|
63
|
+
self: Href;
|
|
64
|
+
};
|
|
58
65
|
}
|
|
59
66
|
/**
|
|
60
67
|
* The playable genders in World of Warcraft.
|
|
61
68
|
*/
|
|
62
69
|
declare const Genders: {
|
|
63
|
-
|
|
64
|
-
|
|
70
|
+
readonly FEMALE: "FEMALE";
|
|
71
|
+
readonly MALE: "MALE";
|
|
65
72
|
};
|
|
66
73
|
/**
|
|
67
74
|
* The gender associated with a character or entity in World of Warcraft.
|
|
68
75
|
*/
|
|
69
76
|
interface Gender {
|
|
70
|
-
|
|
71
|
-
|
|
77
|
+
name: Capitalize<Lowercase<keyof typeof Genders>>;
|
|
78
|
+
type: keyof typeof Genders;
|
|
72
79
|
}
|
|
73
80
|
/**
|
|
74
81
|
* The playable factions in World of Warcraft.
|
|
75
82
|
*/
|
|
76
83
|
declare const Factions: {
|
|
77
|
-
|
|
78
|
-
|
|
84
|
+
readonly ALLIANCE: "ALLIANCE";
|
|
85
|
+
readonly HORDE: "HORDE";
|
|
79
86
|
};
|
|
80
87
|
/**
|
|
81
88
|
* The standard structure to represent a World of Warcraft Character.
|
|
82
89
|
*/
|
|
83
90
|
interface Character extends NameIdKey {
|
|
84
|
-
|
|
91
|
+
realm: Realm$1;
|
|
85
92
|
}
|
|
86
93
|
/**
|
|
87
94
|
* The faction associated with a character or entity in World of Warcraft.
|
|
88
95
|
*/
|
|
89
96
|
interface Faction {
|
|
90
|
-
|
|
91
|
-
|
|
97
|
+
name: Capitalize<Lowercase<keyof typeof Factions>>;
|
|
98
|
+
type: keyof typeof Factions;
|
|
92
99
|
}
|
|
93
100
|
/**
|
|
94
101
|
* The standard structure to represent a World of Warcraft Realm.
|
|
95
102
|
*/
|
|
96
103
|
interface Realm$1 extends NameIdKey {
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
104
|
+
slug: string;
|
|
105
|
+
} //#endregion
|
|
106
|
+
//#region src/auction-house/types.d.ts
|
|
100
107
|
interface AuctionHouseIndexResponse extends ResponseBase {
|
|
101
|
-
|
|
108
|
+
auctions: Array<NameIdKey>;
|
|
102
109
|
}
|
|
103
110
|
interface AuctionsResponse extends NameId, ResponseBase {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
111
|
+
auctions: Array<Auction>;
|
|
112
|
+
connected_realm: {
|
|
113
|
+
href: string;
|
|
114
|
+
};
|
|
108
115
|
}
|
|
109
116
|
interface Auction {
|
|
110
|
-
|
|
111
|
-
|
|
117
|
+
bid: number;
|
|
118
|
+
buyout: number;
|
|
119
|
+
id: number;
|
|
120
|
+
item: {
|
|
112
121
|
id: number;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
quantity: number;
|
|
119
|
-
time_left: 'LONG' | 'MEDIUM' | 'SHORT' | 'VERY_LONG';
|
|
122
|
+
rand?: number;
|
|
123
|
+
seed?: number;
|
|
124
|
+
};
|
|
125
|
+
quantity: number;
|
|
126
|
+
time_left: 'LONG' | 'MEDIUM' | 'SHORT' | 'VERY_LONG';
|
|
120
127
|
}
|
|
121
128
|
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/auction-house/auction-house.d.ts
|
|
122
131
|
/**
|
|
123
132
|
* Returns an index of auction houses for a connected realm.
|
|
124
133
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
@@ -139,61 +148,67 @@ declare function auctionHouseIndex(namespace: Extract<BlizzardNamespaces, 'dynam
|
|
|
139
148
|
*/
|
|
140
149
|
declare function auctions(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>, connectedRealmId: number, auctionHouseId: number): Resource<AuctionsResponse>;
|
|
141
150
|
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region ../wow/src/character-achievements/types.d.ts
|
|
142
153
|
interface CharacterAchievementsSummaryResponse$1 extends ResponseBase {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
154
|
+
achievements: Array<Achievement$1>;
|
|
155
|
+
category_progress: Array<CategoryProgress$1>;
|
|
156
|
+
character: Character;
|
|
157
|
+
recent_events: Array<RecentEvent$1>;
|
|
158
|
+
statistics: Href;
|
|
159
|
+
total_points: number;
|
|
160
|
+
total_quantity: number;
|
|
150
161
|
}
|
|
151
162
|
interface CharacterAchievementStatisticsResponse extends ResponseBase {
|
|
152
|
-
|
|
153
|
-
|
|
163
|
+
categories: Array<Category>;
|
|
164
|
+
character: Character;
|
|
154
165
|
}
|
|
155
166
|
interface Achievement$1 {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
167
|
+
achievement: NameIdKey;
|
|
168
|
+
completed_timestamp?: number;
|
|
169
|
+
criteria?: Criteria$1;
|
|
170
|
+
id: number;
|
|
160
171
|
}
|
|
161
172
|
interface Category {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
173
|
+
id: number;
|
|
174
|
+
name: string;
|
|
175
|
+
statistics: Array<Statistic>;
|
|
176
|
+
sub_categories: Array<SubCategory>;
|
|
166
177
|
}
|
|
167
178
|
interface CategoryProgress$1 {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
179
|
+
category: NameIdKey;
|
|
180
|
+
points: number;
|
|
181
|
+
quantity: number;
|
|
171
182
|
}
|
|
172
183
|
interface Criteria$1 {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
184
|
+
amount?: number;
|
|
185
|
+
child_criteria?: Array<Criteria$1>;
|
|
186
|
+
id: number;
|
|
187
|
+
is_completed: boolean;
|
|
177
188
|
}
|
|
178
189
|
interface RecentEvent$1 {
|
|
179
|
-
|
|
180
|
-
|
|
190
|
+
achievement: NameIdKey;
|
|
191
|
+
timestamp: number;
|
|
181
192
|
}
|
|
182
193
|
interface Statistic {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
194
|
+
description?: null | string;
|
|
195
|
+
id: number;
|
|
196
|
+
last_updated_timestamp: number;
|
|
197
|
+
name: string;
|
|
198
|
+
quantity: number;
|
|
188
199
|
}
|
|
189
200
|
interface SubCategory {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
201
|
+
id: number;
|
|
202
|
+
name: string;
|
|
203
|
+
statistics: Array<Statistic>;
|
|
193
204
|
}
|
|
194
205
|
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region src/character-achievements/types.d.ts
|
|
195
208
|
type CharacterAchievementsSummaryResponse = Omit<CharacterAchievementsSummaryResponse$1, 'statistics'>;
|
|
196
209
|
|
|
210
|
+
//#endregion
|
|
211
|
+
//#region src/character-achievements/character-achievements.d.ts
|
|
197
212
|
/**
|
|
198
213
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}. Note: This API is not supported for classic era realms.
|
|
199
214
|
* @param realmSlug The slug of the realm.
|
|
@@ -209,147 +224,151 @@ declare function characterAchievementsSummary(namespace: Extract<BlizzardNamespa
|
|
|
209
224
|
*/
|
|
210
225
|
declare function characterAchievementStatistics(namespace: Extract<BlizzardNamespaces, 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterAchievementStatisticsResponse>;
|
|
211
226
|
|
|
227
|
+
//#endregion
|
|
228
|
+
//#region ../wow/src/character-equipment/types.d.ts
|
|
212
229
|
interface CharacterEquipmentSummaryResponse extends ResponseBase {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
230
|
+
character: Character;
|
|
231
|
+
equipped_item_sets: Array<Set>;
|
|
232
|
+
equipped_items: Array<EquippedItem>;
|
|
216
233
|
}
|
|
217
234
|
interface Armor$1 {
|
|
218
|
-
|
|
219
|
-
|
|
235
|
+
display: NameDescription;
|
|
236
|
+
value: number;
|
|
220
237
|
}
|
|
221
238
|
interface Damage$1 {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
239
|
+
damage_class: NameType;
|
|
240
|
+
display_string: string;
|
|
241
|
+
max_value: number;
|
|
242
|
+
min_value: number;
|
|
226
243
|
}
|
|
227
244
|
interface DisplayStrings {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
245
|
+
copper: string;
|
|
246
|
+
gold: string;
|
|
247
|
+
header: string;
|
|
248
|
+
silver: string;
|
|
232
249
|
}
|
|
233
250
|
interface DisplayStringValue {
|
|
234
|
-
|
|
235
|
-
|
|
251
|
+
display_string: string;
|
|
252
|
+
value: number;
|
|
236
253
|
}
|
|
237
254
|
interface Effect {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
255
|
+
display_string: string;
|
|
256
|
+
is_active: boolean;
|
|
257
|
+
required_count: number;
|
|
241
258
|
}
|
|
242
259
|
interface Enchantment {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
260
|
+
display_string: string;
|
|
261
|
+
enchantment_id: number;
|
|
262
|
+
enchantment_slot: EnchantmentSlot;
|
|
263
|
+
source_item?: NameIdKey;
|
|
247
264
|
}
|
|
248
265
|
interface EnchantmentSlot {
|
|
249
|
-
|
|
250
|
-
|
|
266
|
+
id: number;
|
|
267
|
+
type: string;
|
|
251
268
|
}
|
|
252
269
|
interface EquippedItem {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
270
|
+
armor?: Armor$1;
|
|
271
|
+
binding: NameType;
|
|
272
|
+
bonus_list?: Array<number>;
|
|
273
|
+
context: number;
|
|
274
|
+
description?: string;
|
|
275
|
+
durability?: DisplayStringValue;
|
|
276
|
+
enchantments?: Array<Enchantment>;
|
|
277
|
+
inventory_type: NameType;
|
|
278
|
+
is_subclass_hidden?: boolean;
|
|
279
|
+
item: KeyBase & {
|
|
280
|
+
id: number;
|
|
281
|
+
};
|
|
282
|
+
item_class: NameIdKey;
|
|
283
|
+
item_subclass: NameIdKey;
|
|
284
|
+
level: DisplayStringValue;
|
|
285
|
+
limit_category?: string;
|
|
286
|
+
media: KeyBase & {
|
|
287
|
+
id: number;
|
|
288
|
+
};
|
|
289
|
+
modified_appearance_id?: number;
|
|
290
|
+
modified_crafting_stat?: Array<ModifiedCraftingStat>;
|
|
291
|
+
name: string;
|
|
292
|
+
name_description: NameDescription;
|
|
293
|
+
quality: NameType;
|
|
294
|
+
quantity: number;
|
|
295
|
+
requirements?: Requirements$1;
|
|
296
|
+
sell_price?: SellPrice;
|
|
297
|
+
set?: Set;
|
|
298
|
+
slot: NameType;
|
|
299
|
+
sockets?: Array<Socket>;
|
|
300
|
+
spells?: Array<Spell$1>;
|
|
301
|
+
stats?: Array<Stat$1>;
|
|
302
|
+
transmog?: Transmog;
|
|
303
|
+
unique_equipped?: string;
|
|
304
|
+
weapon?: Weapon$1;
|
|
288
305
|
}
|
|
289
306
|
interface ItemElement extends NameIdKey {
|
|
290
|
-
|
|
307
|
+
is_equipped?: boolean;
|
|
291
308
|
}
|
|
292
309
|
interface ModifiedCraftingStat {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
310
|
+
id: number;
|
|
311
|
+
name: string;
|
|
312
|
+
type: string;
|
|
296
313
|
}
|
|
297
314
|
interface NameDescription {
|
|
298
|
-
|
|
299
|
-
|
|
315
|
+
color: Color;
|
|
316
|
+
display_string: string;
|
|
300
317
|
}
|
|
301
318
|
interface NameType {
|
|
302
|
-
|
|
303
|
-
|
|
319
|
+
name: string;
|
|
320
|
+
type: string;
|
|
304
321
|
}
|
|
305
322
|
interface PlayableClasses {
|
|
306
|
-
|
|
307
|
-
|
|
323
|
+
display_string: string;
|
|
324
|
+
links: Array<NameIdKey>;
|
|
308
325
|
}
|
|
309
326
|
interface Requirements$1 {
|
|
310
|
-
|
|
311
|
-
|
|
327
|
+
level: DisplayStringValue;
|
|
328
|
+
playable_classes?: PlayableClasses;
|
|
312
329
|
}
|
|
313
330
|
interface SellPrice {
|
|
314
|
-
|
|
315
|
-
|
|
331
|
+
display_strings: DisplayStrings;
|
|
332
|
+
value: number;
|
|
316
333
|
}
|
|
317
334
|
interface Set {
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
335
|
+
display_string: string;
|
|
336
|
+
effects: Array<Effect>;
|
|
337
|
+
item_set: NameIdKey;
|
|
338
|
+
items: Array<ItemElement>;
|
|
322
339
|
}
|
|
323
340
|
interface Socket {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
341
|
+
display_string: string;
|
|
342
|
+
item: NameIdKey;
|
|
343
|
+
media: KeyBase & {
|
|
344
|
+
id: number;
|
|
345
|
+
};
|
|
346
|
+
socket_type: NameType;
|
|
330
347
|
}
|
|
331
348
|
interface Spell$1 {
|
|
332
|
-
|
|
333
|
-
|
|
349
|
+
description: string;
|
|
350
|
+
spell: NameIdKey;
|
|
334
351
|
}
|
|
335
352
|
interface Stat$1 {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
353
|
+
display: NameDescription;
|
|
354
|
+
is_equip_bonus?: boolean;
|
|
355
|
+
is_negated?: boolean;
|
|
356
|
+
type: NameType;
|
|
357
|
+
value: number;
|
|
341
358
|
}
|
|
342
359
|
interface Transmog {
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
360
|
+
display_string: string;
|
|
361
|
+
item: NameIdKey;
|
|
362
|
+
item_modified_appearance_id: number;
|
|
346
363
|
}
|
|
347
364
|
interface Weapon$1 {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
365
|
+
attack_speed: DisplayStringValue;
|
|
366
|
+
damage: Damage$1;
|
|
367
|
+
dps: DisplayStringValue;
|
|
351
368
|
}
|
|
352
369
|
|
|
370
|
+
//#endregion
|
|
371
|
+
//#region src/character-equipment/character-equipment.d.ts
|
|
353
372
|
/**
|
|
354
373
|
* Returns a summary of the items equipped by a character.
|
|
355
374
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
@@ -359,22 +378,26 @@ interface Weapon$1 {
|
|
|
359
378
|
*/
|
|
360
379
|
declare function characterEquipmentSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterEquipmentSummaryResponse>;
|
|
361
380
|
|
|
381
|
+
//#endregion
|
|
382
|
+
//#region ../wow/src/character-hunter-pets/types.d.ts
|
|
362
383
|
interface CharacterHunterPetsSummaryResponse extends ResponseBase {
|
|
363
|
-
|
|
364
|
-
|
|
384
|
+
character: Character;
|
|
385
|
+
hunter_pets: Array<HunterPet>;
|
|
365
386
|
}
|
|
366
387
|
interface HunterPet {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
388
|
+
creature: NameIdKey;
|
|
389
|
+
creature_display: KeyBase & {
|
|
390
|
+
id: number;
|
|
391
|
+
};
|
|
392
|
+
is_active?: boolean;
|
|
393
|
+
is_summoned?: boolean;
|
|
394
|
+
level: number;
|
|
395
|
+
name: string;
|
|
396
|
+
slot: number;
|
|
376
397
|
}
|
|
377
398
|
|
|
399
|
+
//#endregion
|
|
400
|
+
//#region src/character-hunter-pets/character-hunter-pets.d.ts
|
|
378
401
|
/**
|
|
379
402
|
* If the character is a hunter, returns a summary of the character's hunter pets. Otherwise, returns an HTTP 404 Not Found error.
|
|
380
403
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
@@ -384,15 +407,19 @@ interface HunterPet {
|
|
|
384
407
|
*/
|
|
385
408
|
declare function characterHunterPetsSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterHunterPetsSummaryResponse>;
|
|
386
409
|
|
|
410
|
+
//#endregion
|
|
411
|
+
//#region ../wow/src/character-media/types.d.ts
|
|
387
412
|
interface CharacterMediaSummaryResponse extends ResponseBase {
|
|
388
|
-
|
|
389
|
-
|
|
413
|
+
assets: Array<Asset>;
|
|
414
|
+
character: Character;
|
|
390
415
|
}
|
|
391
416
|
interface Asset {
|
|
392
|
-
|
|
393
|
-
|
|
417
|
+
key: string;
|
|
418
|
+
value: string;
|
|
394
419
|
}
|
|
395
420
|
|
|
421
|
+
//#endregion
|
|
422
|
+
//#region src/character-media/character-media.d.ts
|
|
396
423
|
/**
|
|
397
424
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
398
425
|
* @param realmSlug The slug of the realm.
|
|
@@ -401,46 +428,52 @@ interface Asset {
|
|
|
401
428
|
*/
|
|
402
429
|
declare function characterMediaSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterMediaSummaryResponse>;
|
|
403
430
|
|
|
431
|
+
//#endregion
|
|
432
|
+
//#region ../wow/src/character-profile/types.d.ts
|
|
404
433
|
interface CharacterProfileStatusResponse extends ResponseBase {
|
|
405
|
-
|
|
406
|
-
|
|
434
|
+
id: number;
|
|
435
|
+
is_valid: boolean;
|
|
407
436
|
}
|
|
408
437
|
|
|
438
|
+
//#endregion
|
|
439
|
+
//#region src/character-profile/types.d.ts
|
|
409
440
|
interface CharacterProfileSummaryResponse extends ResponseBase {
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
name: string;
|
|
415
|
-
};
|
|
416
|
-
appearance: Href;
|
|
417
|
-
average_item_level: number;
|
|
418
|
-
character_class: NameIdKey;
|
|
419
|
-
equipment: Href;
|
|
420
|
-
equipped_item_level: number;
|
|
421
|
-
experience: number;
|
|
422
|
-
faction: Faction;
|
|
423
|
-
gender: Gender;
|
|
424
|
-
guild: Guild$2;
|
|
425
|
-
id: number;
|
|
426
|
-
is_ghost?: boolean;
|
|
427
|
-
is_self_found?: boolean;
|
|
428
|
-
last_login_timestamp: number;
|
|
429
|
-
level: number;
|
|
430
|
-
media: Href;
|
|
441
|
+
achievement_points?: number;
|
|
442
|
+
achievements?: Href;
|
|
443
|
+
active_spec: NameIdKey;
|
|
444
|
+
active_title?: {
|
|
431
445
|
name: string;
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
446
|
+
};
|
|
447
|
+
appearance: Href;
|
|
448
|
+
average_item_level: number;
|
|
449
|
+
character_class: NameIdKey;
|
|
450
|
+
equipment: Href;
|
|
451
|
+
equipped_item_level: number;
|
|
452
|
+
experience: number;
|
|
453
|
+
faction: Faction;
|
|
454
|
+
gender: Gender;
|
|
455
|
+
guild: Guild$2;
|
|
456
|
+
id: number;
|
|
457
|
+
is_ghost?: boolean;
|
|
458
|
+
is_self_found?: boolean;
|
|
459
|
+
last_login_timestamp: number;
|
|
460
|
+
level: number;
|
|
461
|
+
media: Href;
|
|
462
|
+
name: string;
|
|
463
|
+
pvp_summary: Href;
|
|
464
|
+
race: NameIdKey;
|
|
465
|
+
realm: Realm$1;
|
|
466
|
+
specializations: Href;
|
|
467
|
+
statistics: Href;
|
|
468
|
+
titles: Href;
|
|
438
469
|
}
|
|
439
470
|
interface Guild$2 extends NameIdKey {
|
|
440
|
-
|
|
441
|
-
|
|
471
|
+
faction: Faction;
|
|
472
|
+
realm: Realm$1;
|
|
442
473
|
}
|
|
443
474
|
|
|
475
|
+
//#endregion
|
|
476
|
+
//#region src/character-profile/character-profile.d.ts
|
|
444
477
|
/**
|
|
445
478
|
* Returns the status and a unique ID for a character. A client should delete information about a character from their application if any of the following conditions occur:
|
|
446
479
|
* - an HTTP 404 Not Found error is returned
|
|
@@ -468,36 +501,40 @@ declare function characterProfileStatus(namespace: Extract<BlizzardNamespaces, '
|
|
|
468
501
|
*/
|
|
469
502
|
declare function characterProfileSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterProfileSummaryResponse>;
|
|
470
503
|
|
|
504
|
+
//#endregion
|
|
505
|
+
//#region src/character-specialization/types.d.ts
|
|
471
506
|
interface CharacterSpecializationsSummaryResponse extends ResponseBase {
|
|
472
|
-
|
|
473
|
-
|
|
507
|
+
character: Character;
|
|
508
|
+
specialization_groups: Array<SpecializationGroup>;
|
|
474
509
|
}
|
|
475
510
|
interface Specialization {
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
511
|
+
specialization_name: string;
|
|
512
|
+
spent_points: number;
|
|
513
|
+
talents: Array<TalentElement>;
|
|
479
514
|
}
|
|
480
515
|
interface SpecializationGroup {
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
516
|
+
glyphs?: Array<NameId>;
|
|
517
|
+
is_active: boolean;
|
|
518
|
+
specializations?: Array<Specialization>;
|
|
484
519
|
}
|
|
485
520
|
interface SpellTooltip {
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
521
|
+
cast_time: 'Channeled' | 'Instant' | 'Instant cast' | 'Passive';
|
|
522
|
+
cooldown?: string;
|
|
523
|
+
description: string;
|
|
524
|
+
power_cost?: null | string;
|
|
525
|
+
range?: string;
|
|
526
|
+
spell: NameId;
|
|
492
527
|
}
|
|
493
528
|
interface TalentElement {
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
529
|
+
spell_tooltip: SpellTooltip;
|
|
530
|
+
talent: {
|
|
531
|
+
id: number;
|
|
532
|
+
};
|
|
533
|
+
talent_rank: number;
|
|
499
534
|
}
|
|
500
535
|
|
|
536
|
+
//#endregion
|
|
537
|
+
//#region src/character-specialization/character-specialization.d.ts
|
|
501
538
|
/**
|
|
502
539
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
503
540
|
* @param realmSlug The slug of the realm.
|
|
@@ -506,58 +543,62 @@ interface TalentElement {
|
|
|
506
543
|
*/
|
|
507
544
|
declare function characterSpecializationsSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterSpecializationsSummaryResponse>;
|
|
508
545
|
|
|
546
|
+
//#endregion
|
|
547
|
+
//#region src/character-statistics/types.d.ts
|
|
509
548
|
interface CharacterStatisticsSummaryResponse extends ResponseBase {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
549
|
+
agility: BaseEffectiveStat;
|
|
550
|
+
arcane_resistance: BaseEffectiveStat;
|
|
551
|
+
armor: BaseEffectiveStat;
|
|
552
|
+
attack_power: number;
|
|
553
|
+
block: RatingWithValue;
|
|
554
|
+
bonus_armor?: number;
|
|
555
|
+
character: Character;
|
|
556
|
+
defense?: BaseEffectiveStat;
|
|
557
|
+
dodge: RatingWithValue;
|
|
558
|
+
fire_resistance: BaseEffectiveStat;
|
|
559
|
+
health: number;
|
|
560
|
+
holy_resistance: BaseEffectiveStat;
|
|
561
|
+
intellect: BaseEffectiveStat;
|
|
562
|
+
main_hand_damage_max: number;
|
|
563
|
+
main_hand_damage_min: number;
|
|
564
|
+
main_hand_dps: number;
|
|
565
|
+
main_hand_speed: number;
|
|
566
|
+
mana_regen: number;
|
|
567
|
+
mana_regen_combat: number;
|
|
568
|
+
mastery?: RatingWithValue;
|
|
569
|
+
melee_crit: RatingWithValue;
|
|
570
|
+
melee_haste?: RatingWithValue;
|
|
571
|
+
nature_resistance: BaseEffectiveStat;
|
|
572
|
+
off_hand_damage_max: number;
|
|
573
|
+
off_hand_damage_min: number;
|
|
574
|
+
off_hand_dps: number;
|
|
575
|
+
off_hand_speed: number;
|
|
576
|
+
parry: RatingWithValue;
|
|
577
|
+
power: number;
|
|
578
|
+
power_type: Character;
|
|
579
|
+
ranged_crit: RatingWithValue;
|
|
580
|
+
ranged_haste?: RatingWithValue;
|
|
581
|
+
shadow_resistance: BaseEffectiveStat;
|
|
582
|
+
spell_crit: RatingWithValue;
|
|
583
|
+
spell_haste?: RatingWithValue;
|
|
584
|
+
spell_penetration: number;
|
|
585
|
+
spell_power: number;
|
|
586
|
+
spirit: BaseEffectiveStat;
|
|
587
|
+
stamina: BaseEffectiveStat;
|
|
588
|
+
strength: BaseEffectiveStat;
|
|
550
589
|
}
|
|
551
590
|
interface BaseEffectiveStat {
|
|
552
|
-
|
|
553
|
-
|
|
591
|
+
base: number;
|
|
592
|
+
effective: number;
|
|
554
593
|
}
|
|
555
594
|
interface RatingWithValue {
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
595
|
+
rating: number;
|
|
596
|
+
rating_bonus: number;
|
|
597
|
+
value: number;
|
|
559
598
|
}
|
|
560
599
|
|
|
600
|
+
//#endregion
|
|
601
|
+
//#region src/character-statistics/character-statistics.d.ts
|
|
561
602
|
/**
|
|
562
603
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
563
604
|
* @param realmSlug The slug of the realm.
|
|
@@ -566,6 +607,8 @@ interface RatingWithValue {
|
|
|
566
607
|
*/
|
|
567
608
|
declare function characterStatisticsSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterStatisticsSummaryResponse>;
|
|
568
609
|
|
|
610
|
+
//#endregion
|
|
611
|
+
//#region ../wow/src/realm/types.d.ts
|
|
569
612
|
/**
|
|
570
613
|
* The category of a realm.
|
|
571
614
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
@@ -576,26 +619,26 @@ type RealmCategory = 'Brazil' | 'English' | 'French' | 'German' | 'Italian' | 'L
|
|
|
576
619
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
577
620
|
*/
|
|
578
621
|
interface RealmIndexResponse extends ResponseBase {
|
|
579
|
-
|
|
622
|
+
realms: Array<Realm$1>;
|
|
580
623
|
}
|
|
581
624
|
/**
|
|
582
625
|
* The response for a realm.
|
|
583
626
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
584
627
|
*/
|
|
585
628
|
interface RealmResponse extends NameId, ResponseBase {
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
629
|
+
category: RealmCategory;
|
|
630
|
+
connected_realm: {
|
|
631
|
+
href: string;
|
|
632
|
+
};
|
|
633
|
+
is_tournament: boolean;
|
|
634
|
+
locale: WithoutUnderscore<Locales>;
|
|
635
|
+
region: NameIdKey;
|
|
636
|
+
slug: string;
|
|
637
|
+
timezone: RealmTimezone;
|
|
638
|
+
type: {
|
|
639
|
+
name: RealmType;
|
|
640
|
+
type: RealmTypeCapitalized;
|
|
641
|
+
};
|
|
599
642
|
}
|
|
600
643
|
/**
|
|
601
644
|
* The search parameters for realms.
|
|
@@ -603,7 +646,7 @@ interface RealmResponse extends NameId, ResponseBase {
|
|
|
603
646
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
|
|
604
647
|
*/
|
|
605
648
|
interface RealmSearchParameters extends BaseSearchParameters {
|
|
606
|
-
|
|
649
|
+
timezone?: RealmTimezone;
|
|
607
650
|
}
|
|
608
651
|
/**
|
|
609
652
|
* The response for a realm search.
|
|
@@ -611,23 +654,23 @@ interface RealmSearchParameters extends BaseSearchParameters {
|
|
|
611
654
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
|
|
612
655
|
*/
|
|
613
656
|
interface RealmSearchResponseItem extends KeyBase {
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
};
|
|
624
|
-
slug: string;
|
|
625
|
-
timezone: RealmTimezone;
|
|
626
|
-
type: {
|
|
627
|
-
name: Record<Locales, string | undefined>;
|
|
628
|
-
type: RealmTypeCapitalized;
|
|
629
|
-
};
|
|
657
|
+
data: {
|
|
658
|
+
category: Record<Locales, string | undefined>;
|
|
659
|
+
id: number;
|
|
660
|
+
is_tournament: boolean;
|
|
661
|
+
locale: WithoutUnderscore<Locales>;
|
|
662
|
+
name: Record<Locales, string | undefined>;
|
|
663
|
+
region: {
|
|
664
|
+
id: number;
|
|
665
|
+
name: Record<Locales, string | undefined>;
|
|
630
666
|
};
|
|
667
|
+
slug: string;
|
|
668
|
+
timezone: RealmTimezone;
|
|
669
|
+
type: {
|
|
670
|
+
name: Record<Locales, string | undefined>;
|
|
671
|
+
type: RealmTypeCapitalized;
|
|
672
|
+
};
|
|
673
|
+
};
|
|
631
674
|
}
|
|
632
675
|
/**
|
|
633
676
|
* The timezone of a realm.
|
|
@@ -643,38 +686,40 @@ type RealmType = 'Normal' | 'Roleplaying';
|
|
|
643
686
|
type RealmTypeCapitalized = 'NORMAL' | 'RP';
|
|
644
687
|
type WithoutUnderscore<T extends string> = T extends `${infer Prefix}_${infer Suffix}` ? `${Prefix}${Suffix}` : never;
|
|
645
688
|
|
|
689
|
+
//#endregion
|
|
690
|
+
//#region ../wow/src/connected-realm/types.d.ts
|
|
646
691
|
/**
|
|
647
692
|
* Connected Realm Index API response.
|
|
648
693
|
* @see https://develop.battle.net/documentation/world-of-warcraft/game-data-apis
|
|
649
694
|
*/
|
|
650
695
|
interface ConnectedRealmIndexResponse extends ResponseBase {
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
696
|
+
connected_realms: Array<{
|
|
697
|
+
href: string;
|
|
698
|
+
}>;
|
|
654
699
|
}
|
|
655
700
|
/**
|
|
656
701
|
* Connected Realm API response.
|
|
657
702
|
* @see https://develop.battle.net/documentation/world-of-warcraft/game-data-apis
|
|
658
703
|
*/
|
|
659
704
|
interface ConnectedRealmResponse extends ResponseBase {
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
705
|
+
auctions: {
|
|
706
|
+
href: string;
|
|
707
|
+
};
|
|
708
|
+
has_queue: boolean;
|
|
709
|
+
id: number;
|
|
710
|
+
mythic_leaderboards: {
|
|
711
|
+
href: string;
|
|
712
|
+
};
|
|
713
|
+
population: {
|
|
714
|
+
name: RealmPopulation;
|
|
715
|
+
type: RealmPopulationCapitalized;
|
|
716
|
+
};
|
|
717
|
+
realm_locked_status?: RealmLockedStatus;
|
|
718
|
+
realms: Array<Realm>;
|
|
719
|
+
status: {
|
|
720
|
+
name: RealmStatus;
|
|
721
|
+
type: Uppercase<RealmStatus>;
|
|
722
|
+
};
|
|
678
723
|
}
|
|
679
724
|
/**
|
|
680
725
|
* Connected Realm Search API parameters.
|
|
@@ -682,8 +727,8 @@ interface ConnectedRealmResponse extends ResponseBase {
|
|
|
682
727
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
|
|
683
728
|
*/
|
|
684
729
|
interface ConnectedRealmSearchParameters extends BaseSearchParameters {
|
|
685
|
-
|
|
686
|
-
|
|
730
|
+
'realms.timezone'?: RealmTimezone;
|
|
731
|
+
'status.type'?: Uppercase<RealmStatus>;
|
|
687
732
|
}
|
|
688
733
|
/**
|
|
689
734
|
* Connected Realm Search API response item.
|
|
@@ -691,64 +736,66 @@ interface ConnectedRealmSearchParameters extends BaseSearchParameters {
|
|
|
691
736
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
|
|
692
737
|
*/
|
|
693
738
|
interface ConnectedRealmSearchResponseItem extends KeyBase {
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
739
|
+
data: {
|
|
740
|
+
has_queue: boolean;
|
|
741
|
+
id: number;
|
|
742
|
+
population: SearchRealmPopulation;
|
|
743
|
+
realms: Array<SearchRealm>;
|
|
744
|
+
status: SearchRealmStatus;
|
|
745
|
+
};
|
|
701
746
|
}
|
|
702
747
|
interface Realm {
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
748
|
+
category: RealmCategory;
|
|
749
|
+
connected_realm: {
|
|
750
|
+
href: string;
|
|
751
|
+
};
|
|
752
|
+
id: number;
|
|
753
|
+
is_tournament: boolean;
|
|
754
|
+
locale: WithoutUnderscore<Locales>;
|
|
755
|
+
name: string;
|
|
756
|
+
region: NameIdKey;
|
|
757
|
+
slug: string;
|
|
758
|
+
timezone: RealmTimezone;
|
|
759
|
+
type: {
|
|
760
|
+
name: RealmType;
|
|
761
|
+
type: RealmTypeCapitalized;
|
|
762
|
+
};
|
|
718
763
|
}
|
|
719
764
|
interface RealmLockedStatus {
|
|
720
|
-
|
|
721
|
-
|
|
765
|
+
is_locked_for_new_characters: boolean;
|
|
766
|
+
is_locked_for_pct: boolean;
|
|
722
767
|
}
|
|
723
768
|
type RealmPopulation = 'Full' | 'High' | 'Low' | 'Medium' | 'New Players';
|
|
724
769
|
type RealmPopulationCapitalized = 'FULL' | 'HIGH' | 'LOW' | 'MEDIUM' | 'RECOMMENDED';
|
|
725
770
|
type RealmStatus = 'Down' | 'Up';
|
|
726
771
|
interface SearchRealm {
|
|
727
|
-
|
|
772
|
+
category: Record<Locales, string | undefined>;
|
|
773
|
+
id: number;
|
|
774
|
+
is_tournament: boolean;
|
|
775
|
+
locale: WithoutUnderscore<Locales>;
|
|
776
|
+
name: Record<Locales, string | undefined>;
|
|
777
|
+
region: {
|
|
728
778
|
id: number;
|
|
729
|
-
is_tournament: boolean;
|
|
730
|
-
locale: WithoutUnderscore<Locales>;
|
|
731
779
|
name: Record<Locales, string | undefined>;
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
name: Record<Locales, string | undefined>;
|
|
740
|
-
type: RealmTypeCapitalized;
|
|
741
|
-
};
|
|
780
|
+
};
|
|
781
|
+
slug: string;
|
|
782
|
+
timezone: RealmTimezone;
|
|
783
|
+
type: {
|
|
784
|
+
name: Record<Locales, string | undefined>;
|
|
785
|
+
type: RealmTypeCapitalized;
|
|
786
|
+
};
|
|
742
787
|
}
|
|
743
788
|
interface SearchRealmPopulation {
|
|
744
|
-
|
|
745
|
-
|
|
789
|
+
name: Record<Locales, string>;
|
|
790
|
+
type: RealmPopulationCapitalized;
|
|
746
791
|
}
|
|
747
792
|
interface SearchRealmStatus {
|
|
748
|
-
|
|
749
|
-
|
|
793
|
+
name: Record<Locales, string>;
|
|
794
|
+
type: Uppercase<RealmStatus>;
|
|
750
795
|
}
|
|
751
796
|
|
|
797
|
+
//#endregion
|
|
798
|
+
//#region src/connected-realm/connected-realm.d.ts
|
|
752
799
|
/**
|
|
753
800
|
* Returns a connected realm by ID.
|
|
754
801
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
@@ -770,50 +817,52 @@ declare function connectedRealmIndex(namespace: Extract<BlizzardNamespaces, 'dyn
|
|
|
770
817
|
*/
|
|
771
818
|
declare function connectedRealmSearch(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>, options: ConnectedRealmSearchParameters): Resource<SearchResponse<ConnectedRealmSearchResponseItem>, ConnectedRealmSearchParameters>;
|
|
772
819
|
|
|
820
|
+
//#endregion
|
|
821
|
+
//#region ../wow/src/creature/types.d.ts
|
|
773
822
|
/**
|
|
774
823
|
* The response for creature display media.
|
|
775
824
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
776
825
|
*/
|
|
777
826
|
interface CreatureDisplayMediaResponse extends ResponseBase {
|
|
778
|
-
|
|
779
|
-
|
|
827
|
+
assets: Array<DisplayMediaAsset>;
|
|
828
|
+
id: number;
|
|
780
829
|
}
|
|
781
830
|
/**
|
|
782
831
|
* The response for a creature family index.
|
|
783
832
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
784
833
|
*/
|
|
785
834
|
interface CreatureFamilyIndexResponse extends ResponseBase {
|
|
786
|
-
|
|
835
|
+
creature_families: Array<NameIdKey>;
|
|
787
836
|
}
|
|
788
837
|
/**
|
|
789
838
|
* The response for creature family media.
|
|
790
839
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
791
840
|
*/
|
|
792
841
|
interface CreatureFamilyMediaResponse extends ResponseBase {
|
|
793
|
-
|
|
794
|
-
|
|
842
|
+
assets: Array<MediaAsset$1>;
|
|
843
|
+
id: number;
|
|
795
844
|
}
|
|
796
845
|
/**
|
|
797
846
|
* The response for a creature family.
|
|
798
847
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
799
848
|
*/
|
|
800
849
|
interface CreatureFamilyResponse extends ResponseBase {
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
850
|
+
id: number;
|
|
851
|
+
media: Media$3;
|
|
852
|
+
name: string;
|
|
853
|
+
specialization: NameIdKey;
|
|
805
854
|
}
|
|
806
855
|
/**
|
|
807
856
|
* The response for a creature.
|
|
808
857
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
809
858
|
*/
|
|
810
859
|
interface CreatureResponse extends ResponseBase {
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
860
|
+
creature_displays: Array<CreatureDisplay>;
|
|
861
|
+
family: NameIdKey;
|
|
862
|
+
id: number;
|
|
863
|
+
is_tameable: boolean;
|
|
864
|
+
name: string;
|
|
865
|
+
type: NameIdKey;
|
|
817
866
|
}
|
|
818
867
|
/**
|
|
819
868
|
* The search parameters for a creature.
|
|
@@ -821,8 +870,8 @@ interface CreatureResponse extends ResponseBase {
|
|
|
821
870
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
|
|
822
871
|
*/
|
|
823
872
|
interface CreatureSearchParameters extends BaseSearchParameters {
|
|
824
|
-
|
|
825
|
-
|
|
873
|
+
locale: Locales;
|
|
874
|
+
name: string;
|
|
826
875
|
}
|
|
827
876
|
/**
|
|
828
877
|
* The response for a creature search.
|
|
@@ -830,49 +879,51 @@ interface CreatureSearchParameters extends BaseSearchParameters {
|
|
|
830
879
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
|
|
831
880
|
*/
|
|
832
881
|
interface CreatureSearchResponseItem extends KeyBase {
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
};
|
|
882
|
+
data: {
|
|
883
|
+
creature_displays: Array<{
|
|
884
|
+
id: number;
|
|
885
|
+
}>;
|
|
886
|
+
family?: {
|
|
887
|
+
id: number;
|
|
888
|
+
name: Record<Locales, string | undefined>;
|
|
889
|
+
};
|
|
890
|
+
id: number;
|
|
891
|
+
is_tameable: boolean;
|
|
892
|
+
name: Record<Locales, string | undefined>;
|
|
893
|
+
type: {
|
|
894
|
+
id: number;
|
|
895
|
+
name: Record<Locales, string | undefined>;
|
|
848
896
|
};
|
|
897
|
+
};
|
|
849
898
|
}
|
|
850
899
|
/**
|
|
851
900
|
* The response for a creature type index.
|
|
852
901
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
853
902
|
*/
|
|
854
903
|
interface CreatureTypeIndexResponse extends ResponseBase {
|
|
855
|
-
|
|
904
|
+
creature_types: Array<NameIdKey>;
|
|
856
905
|
}
|
|
857
906
|
/**
|
|
858
907
|
* The response for a creature type.
|
|
859
908
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
860
909
|
*/
|
|
861
910
|
interface CreatureTypeResponse extends ResponseBase {
|
|
862
|
-
|
|
863
|
-
|
|
911
|
+
id: number;
|
|
912
|
+
name: string;
|
|
864
913
|
}
|
|
865
914
|
interface CreatureDisplay extends KeyBase {
|
|
866
|
-
|
|
915
|
+
id: number;
|
|
867
916
|
}
|
|
868
917
|
interface DisplayMediaAsset {
|
|
869
|
-
|
|
870
|
-
|
|
918
|
+
key: string;
|
|
919
|
+
value: string;
|
|
871
920
|
}
|
|
872
921
|
interface Media$3 extends KeyBase {
|
|
873
|
-
|
|
922
|
+
id: number;
|
|
874
923
|
}
|
|
875
924
|
|
|
925
|
+
//#endregion
|
|
926
|
+
//#region src/creature/creature.d.ts
|
|
876
927
|
/**
|
|
877
928
|
* Returns a creature by ID.
|
|
878
929
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
@@ -928,50 +979,54 @@ declare function creatureType(namespace: Extract<BlizzardNamespaces, 'static-cla
|
|
|
928
979
|
*/
|
|
929
980
|
declare function creatureTypeIndex(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>): Resource<CreatureTypeIndexResponse>;
|
|
930
981
|
|
|
982
|
+
//#endregion
|
|
983
|
+
//#region ../wow/src/guild-crest/types.d.ts
|
|
931
984
|
/**
|
|
932
985
|
* The response for a guild crest border or emblem.
|
|
933
986
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
934
987
|
*/
|
|
935
988
|
interface GuildCrestBorderEmblemResponse extends ResponseBase {
|
|
936
|
-
|
|
937
|
-
|
|
989
|
+
assets: Array<GuildCrestAsset>;
|
|
990
|
+
id: number;
|
|
938
991
|
}
|
|
939
992
|
/**
|
|
940
993
|
* The response for the guild crest components index.
|
|
941
994
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
942
995
|
*/
|
|
943
996
|
interface GuildCrestComponentsIndexResponse extends ResponseBase {
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
997
|
+
borders: Array<Border$1>;
|
|
998
|
+
colors: Colors;
|
|
999
|
+
emblems: Array<Border$1>;
|
|
947
1000
|
}
|
|
948
1001
|
interface Background {
|
|
949
|
-
|
|
950
|
-
|
|
1002
|
+
id: number;
|
|
1003
|
+
rgba: RGBA;
|
|
951
1004
|
}
|
|
952
1005
|
interface Border$1 {
|
|
953
|
-
|
|
954
|
-
|
|
1006
|
+
id: number;
|
|
1007
|
+
media: Media$2;
|
|
955
1008
|
}
|
|
956
1009
|
interface Colors {
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
1010
|
+
backgrounds: Array<Background>;
|
|
1011
|
+
borders: Array<Background>;
|
|
1012
|
+
emblems: Array<Background>;
|
|
960
1013
|
}
|
|
961
1014
|
interface GuildCrestAsset {
|
|
962
|
-
|
|
963
|
-
|
|
1015
|
+
key: string;
|
|
1016
|
+
value: string;
|
|
964
1017
|
}
|
|
965
1018
|
interface Media$2 extends KeyBase {
|
|
966
|
-
|
|
1019
|
+
id: number;
|
|
967
1020
|
}
|
|
968
1021
|
interface RGBA {
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
1022
|
+
a: number;
|
|
1023
|
+
b: number;
|
|
1024
|
+
g: number;
|
|
1025
|
+
r: number;
|
|
973
1026
|
}
|
|
974
1027
|
|
|
1028
|
+
//#endregion
|
|
1029
|
+
//#region src/guild-crest/guild-crest.d.ts
|
|
975
1030
|
/**
|
|
976
1031
|
* Returns media for a guild crest border by ID.
|
|
977
1032
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
@@ -993,114 +1048,120 @@ declare function guildCrestComponentsIndex(namespace: Extract<BlizzardNamespaces
|
|
|
993
1048
|
*/
|
|
994
1049
|
declare function guildCrestEmblem(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, emblemId: number): Resource<GuildCrestBorderEmblemResponse>;
|
|
995
1050
|
|
|
1051
|
+
//#endregion
|
|
1052
|
+
//#region ../wow/src/guild/types.d.ts
|
|
996
1053
|
interface GuildAchievementsResponse extends ResponseBase {
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1054
|
+
achievements: Array<Achievement>;
|
|
1055
|
+
category_progress: Array<CategoryProgress>;
|
|
1056
|
+
guild: Guild$1;
|
|
1057
|
+
recent_events: Array<RecentEvent>;
|
|
1058
|
+
total_points: number;
|
|
1059
|
+
total_quantity: number;
|
|
1003
1060
|
}
|
|
1004
1061
|
interface GuildResponse$1 extends ResponseBase {
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1062
|
+
achievement_points: number;
|
|
1063
|
+
achievements: Href;
|
|
1064
|
+
activity: Href;
|
|
1065
|
+
created_timestamp: number;
|
|
1066
|
+
crest: Crest;
|
|
1067
|
+
faction: Faction;
|
|
1068
|
+
id: number;
|
|
1069
|
+
member_count: number;
|
|
1070
|
+
name: string;
|
|
1071
|
+
name_search: string;
|
|
1072
|
+
realm: Realm$1;
|
|
1073
|
+
roster: Href;
|
|
1017
1074
|
}
|
|
1018
1075
|
interface Achievement {
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1076
|
+
achievement: NameIdKey;
|
|
1077
|
+
completed_timestamp?: number;
|
|
1078
|
+
criteria?: Criteria;
|
|
1079
|
+
id: number;
|
|
1023
1080
|
}
|
|
1024
1081
|
interface Border {
|
|
1025
|
-
|
|
1082
|
+
color: RgbWithId;
|
|
1083
|
+
id: number;
|
|
1084
|
+
media: KeyBase & {
|
|
1026
1085
|
id: number;
|
|
1027
|
-
|
|
1028
|
-
id: number;
|
|
1029
|
-
};
|
|
1086
|
+
};
|
|
1030
1087
|
}
|
|
1031
1088
|
interface CategoryProgress {
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1089
|
+
category: NameIdKey;
|
|
1090
|
+
points: number;
|
|
1091
|
+
quantity: number;
|
|
1035
1092
|
}
|
|
1036
1093
|
interface Crest {
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1094
|
+
background: {
|
|
1095
|
+
color: RgbWithId;
|
|
1096
|
+
};
|
|
1097
|
+
border: Border;
|
|
1098
|
+
emblem: Border;
|
|
1042
1099
|
}
|
|
1043
1100
|
interface Criteria {
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1101
|
+
amount?: number;
|
|
1102
|
+
child_criteria?: Array<Criteria>;
|
|
1103
|
+
id: number;
|
|
1104
|
+
is_completed: boolean;
|
|
1048
1105
|
}
|
|
1049
1106
|
interface Guild$1 extends NameIdKey {
|
|
1050
|
-
|
|
1051
|
-
|
|
1107
|
+
faction: Faction;
|
|
1108
|
+
realm: Realm$1;
|
|
1052
1109
|
}
|
|
1053
1110
|
interface RecentEvent {
|
|
1054
|
-
|
|
1055
|
-
|
|
1111
|
+
achievement: NameIdKey;
|
|
1112
|
+
timestamp: number;
|
|
1056
1113
|
}
|
|
1057
1114
|
interface RgbWithId {
|
|
1058
|
-
|
|
1059
|
-
|
|
1115
|
+
id: number;
|
|
1116
|
+
rgba: Color;
|
|
1060
1117
|
}
|
|
1061
1118
|
|
|
1119
|
+
//#endregion
|
|
1120
|
+
//#region src/guild/types.d.ts
|
|
1062
1121
|
interface GuildAchievementsClassicEraResponse extends ResponseBase {
|
|
1063
|
-
|
|
1122
|
+
guild: Guild;
|
|
1064
1123
|
}
|
|
1065
1124
|
interface GuildActivityResponse extends ResponseBase {
|
|
1066
|
-
|
|
1067
|
-
|
|
1125
|
+
activities?: Array<ActivityElement>;
|
|
1126
|
+
guild: Guild;
|
|
1068
1127
|
}
|
|
1069
1128
|
type GuildResponse = Omit<GuildResponse$1, 'crest'> & {
|
|
1070
|
-
|
|
1129
|
+
crest?: GuildResponse$1['crest'];
|
|
1071
1130
|
};
|
|
1072
1131
|
interface GuildRosterResponse extends ResponseBase {
|
|
1073
|
-
|
|
1074
|
-
|
|
1132
|
+
guild: Guild;
|
|
1133
|
+
members: Array<Member>;
|
|
1075
1134
|
}
|
|
1076
1135
|
interface ActivityElement {
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1136
|
+
activity: {
|
|
1137
|
+
type: string;
|
|
1138
|
+
};
|
|
1139
|
+
character_achievement: CharacterAchievement;
|
|
1140
|
+
timestamp: number;
|
|
1082
1141
|
}
|
|
1083
1142
|
interface CharacterAchievement {
|
|
1084
|
-
|
|
1085
|
-
|
|
1143
|
+
achievement: NameIdKey;
|
|
1144
|
+
character: Character;
|
|
1086
1145
|
}
|
|
1087
1146
|
interface Guild extends NameIdKey {
|
|
1088
|
-
|
|
1089
|
-
|
|
1147
|
+
faction: Faction;
|
|
1148
|
+
realm: Realm$1;
|
|
1090
1149
|
}
|
|
1091
1150
|
interface Member {
|
|
1092
|
-
|
|
1093
|
-
|
|
1151
|
+
character: RosterMemberCharacter;
|
|
1152
|
+
rank: number;
|
|
1094
1153
|
}
|
|
1095
1154
|
interface Playable extends KeyBase {
|
|
1096
|
-
|
|
1155
|
+
id: number;
|
|
1097
1156
|
}
|
|
1098
1157
|
interface RosterMemberCharacter extends Character {
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1158
|
+
level: number;
|
|
1159
|
+
playable_class: Playable;
|
|
1160
|
+
playable_race: Playable;
|
|
1102
1161
|
}
|
|
1103
1162
|
|
|
1163
|
+
//#endregion
|
|
1164
|
+
//#region src/guild/guild.d.ts
|
|
1104
1165
|
/**
|
|
1105
1166
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
1106
1167
|
* @param realmSlug The slug of the realm.
|
|
@@ -1130,50 +1191,52 @@ declare function guildActivity(namespace: Extract<BlizzardNamespaces, 'profile-c
|
|
|
1130
1191
|
*/
|
|
1131
1192
|
declare function guildRoster(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, nameSlug: string): Resource<GuildRosterResponse>;
|
|
1132
1193
|
|
|
1194
|
+
//#endregion
|
|
1195
|
+
//#region ../wow/src/item/types.d.ts
|
|
1133
1196
|
/**
|
|
1134
1197
|
* The response for an item class index.
|
|
1135
1198
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1136
1199
|
*/
|
|
1137
1200
|
interface ItemClassIndexResponse extends ResponseBase {
|
|
1138
|
-
|
|
1201
|
+
item_classes: Array<NameIdKey>;
|
|
1139
1202
|
}
|
|
1140
1203
|
/**
|
|
1141
1204
|
* The response for an item class.
|
|
1142
1205
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1143
1206
|
*/
|
|
1144
1207
|
interface ItemClassResponse extends ResponseBase {
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1208
|
+
class_id: number;
|
|
1209
|
+
item_subclasses: Array<NameIdKey>;
|
|
1210
|
+
name: string;
|
|
1148
1211
|
}
|
|
1149
1212
|
/**
|
|
1150
1213
|
* The response for an item media.
|
|
1151
1214
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1152
1215
|
*/
|
|
1153
1216
|
interface ItemMediaResponse extends ResponseBase {
|
|
1154
|
-
|
|
1155
|
-
|
|
1217
|
+
assets: Array<MediaAsset$1>;
|
|
1218
|
+
id: number;
|
|
1156
1219
|
}
|
|
1157
1220
|
/**
|
|
1158
1221
|
* The response for an item.
|
|
1159
1222
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1160
1223
|
*/
|
|
1161
1224
|
interface ItemResponse extends NameId, ResponseBase {
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1225
|
+
description?: string;
|
|
1226
|
+
inventory_type: InventoryType;
|
|
1227
|
+
is_equippable: boolean;
|
|
1228
|
+
is_stackable: boolean;
|
|
1229
|
+
item_class: NameIdKey;
|
|
1230
|
+
item_subclass: NameIdKey;
|
|
1231
|
+
level: number;
|
|
1232
|
+
max_count: number;
|
|
1233
|
+
media: Media$1;
|
|
1234
|
+
preview_item: PreviewItem;
|
|
1235
|
+
purchase_price: number;
|
|
1236
|
+
purchase_quantity: number;
|
|
1237
|
+
quality: ItemQuality;
|
|
1238
|
+
required_level: number;
|
|
1239
|
+
sell_price: number;
|
|
1177
1240
|
}
|
|
1178
1241
|
/**
|
|
1179
1242
|
* The parameters for an item search.
|
|
@@ -1181,8 +1244,8 @@ interface ItemResponse extends NameId, ResponseBase {
|
|
|
1181
1244
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
|
|
1182
1245
|
*/
|
|
1183
1246
|
interface ItemSearchParameters extends BaseSearchParameters {
|
|
1184
|
-
|
|
1185
|
-
|
|
1247
|
+
locale: Locales;
|
|
1248
|
+
name: string;
|
|
1186
1249
|
}
|
|
1187
1250
|
/**
|
|
1188
1251
|
* The response for an item search.
|
|
@@ -1190,165 +1253,172 @@ interface ItemSearchParameters extends BaseSearchParameters {
|
|
|
1190
1253
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
|
|
1191
1254
|
*/
|
|
1192
1255
|
interface ItemSearchResponseItem extends KeyBase {
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
};
|
|
1206
|
-
level: number;
|
|
1207
|
-
max_count: number;
|
|
1208
|
-
media: {
|
|
1209
|
-
id: number;
|
|
1210
|
-
};
|
|
1211
|
-
name: Record<Locales, string | undefined>;
|
|
1212
|
-
purchase_price: number;
|
|
1213
|
-
purchase_quantity: number;
|
|
1214
|
-
quality: ItemQuality;
|
|
1215
|
-
required_level: number;
|
|
1216
|
-
sell_price: number;
|
|
1256
|
+
data: {
|
|
1257
|
+
id: number;
|
|
1258
|
+
inventory_type: InventoryType;
|
|
1259
|
+
is_equippable: boolean;
|
|
1260
|
+
is_stackable: boolean;
|
|
1261
|
+
item_class: {
|
|
1262
|
+
id: number;
|
|
1263
|
+
name: Record<Locales, string | undefined>;
|
|
1264
|
+
};
|
|
1265
|
+
item_subclass: {
|
|
1266
|
+
id: number;
|
|
1267
|
+
name: Record<Locales, string | undefined>;
|
|
1217
1268
|
};
|
|
1269
|
+
level: number;
|
|
1270
|
+
max_count: number;
|
|
1271
|
+
media: {
|
|
1272
|
+
id: number;
|
|
1273
|
+
};
|
|
1274
|
+
name: Record<Locales, string | undefined>;
|
|
1275
|
+
purchase_price: number;
|
|
1276
|
+
purchase_quantity: number;
|
|
1277
|
+
quality: ItemQuality;
|
|
1278
|
+
required_level: number;
|
|
1279
|
+
sell_price: number;
|
|
1280
|
+
};
|
|
1218
1281
|
}
|
|
1282
|
+
/**
|
|
1283
|
+
* The response for an item set index.
|
|
1284
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1285
|
+
*/
|
|
1286
|
+
|
|
1219
1287
|
/**
|
|
1220
1288
|
* The response for an item subclass.
|
|
1221
1289
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1222
1290
|
*/
|
|
1223
1291
|
interface ItemSubClassResponse extends ResponseBase {
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1292
|
+
class_id: number;
|
|
1293
|
+
display_name: string;
|
|
1294
|
+
hide_subclass_in_tooltips: boolean;
|
|
1295
|
+
subclass_id: number;
|
|
1296
|
+
verbose_name: string;
|
|
1229
1297
|
}
|
|
1230
1298
|
interface Armor {
|
|
1231
|
-
|
|
1232
|
-
|
|
1299
|
+
display: Display;
|
|
1300
|
+
value: number;
|
|
1233
1301
|
}
|
|
1234
1302
|
interface Damage {
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1303
|
+
damage_class: {
|
|
1304
|
+
name: string;
|
|
1305
|
+
type: string;
|
|
1306
|
+
};
|
|
1307
|
+
display_string: string;
|
|
1308
|
+
max_value: number;
|
|
1309
|
+
min_value: number;
|
|
1242
1310
|
}
|
|
1243
1311
|
interface Display {
|
|
1244
|
-
|
|
1245
|
-
|
|
1312
|
+
color: Color;
|
|
1313
|
+
display_string: string;
|
|
1246
1314
|
}
|
|
1247
1315
|
interface Durability {
|
|
1248
|
-
|
|
1249
|
-
|
|
1316
|
+
display_string: string;
|
|
1317
|
+
value: number;
|
|
1250
1318
|
}
|
|
1251
1319
|
interface InventoryType {
|
|
1252
|
-
|
|
1253
|
-
|
|
1320
|
+
name: Record<Locales, string | undefined>;
|
|
1321
|
+
type: 'BACK' | 'BAG' | 'CHEST' | 'FEET' | 'FINGER' | 'HANDS' | 'HEAD' | 'LEGS' | 'NECK' | 'NON_EQUIP' | 'SHIRT' | 'SHOULDER' | 'TABARD' | 'TRINKET' | 'TWOHWEAPON' | 'WAIST' | 'WRIST';
|
|
1254
1322
|
}
|
|
1255
1323
|
interface ItemQuality {
|
|
1256
|
-
|
|
1257
|
-
|
|
1324
|
+
name: Record<Locales, string | undefined>;
|
|
1325
|
+
type: 'ARTIFACT' | 'COMMON' | 'EPIC' | 'HEIRLOOM' | 'LEGENDARY' | 'POOR' | 'RARE' | 'UNCOMMON';
|
|
1258
1326
|
}
|
|
1259
1327
|
interface Media$1 extends KeyBase {
|
|
1260
|
-
|
|
1328
|
+
id: number;
|
|
1261
1329
|
}
|
|
1262
1330
|
interface PreviewItem {
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
name: string;
|
|
1266
|
-
type: string;
|
|
1267
|
-
};
|
|
1268
|
-
bonus_list?: Array<number>;
|
|
1269
|
-
container_slots?: Durability;
|
|
1270
|
-
context?: number;
|
|
1271
|
-
crafting_reagent?: string;
|
|
1272
|
-
description?: string;
|
|
1273
|
-
durability?: Durability;
|
|
1274
|
-
inventory_type: InventoryType;
|
|
1275
|
-
is_subclass_hidden?: boolean;
|
|
1276
|
-
item: Media$1;
|
|
1277
|
-
item_class: NameIdKey;
|
|
1278
|
-
item_subclass: NameIdKey;
|
|
1279
|
-
level?: Durability;
|
|
1280
|
-
media: Media$1;
|
|
1331
|
+
armor?: Armor;
|
|
1332
|
+
binding?: {
|
|
1281
1333
|
name: string;
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1334
|
+
type: string;
|
|
1335
|
+
};
|
|
1336
|
+
bonus_list?: Array<number>;
|
|
1337
|
+
container_slots?: Durability;
|
|
1338
|
+
context?: number;
|
|
1339
|
+
crafting_reagent?: string;
|
|
1340
|
+
description?: string;
|
|
1341
|
+
durability?: Durability;
|
|
1342
|
+
inventory_type: InventoryType;
|
|
1343
|
+
is_subclass_hidden?: boolean;
|
|
1344
|
+
item: Media$1;
|
|
1345
|
+
item_class: NameIdKey;
|
|
1346
|
+
item_subclass: NameIdKey;
|
|
1347
|
+
level?: Durability;
|
|
1348
|
+
media: Media$1;
|
|
1349
|
+
name: string;
|
|
1350
|
+
quality: ItemQuality;
|
|
1351
|
+
recipe?: Recipe;
|
|
1352
|
+
requirements?: Requirements;
|
|
1353
|
+
sell_price?: number;
|
|
1354
|
+
shield_block?: Armor;
|
|
1355
|
+
spells?: Array<Spell>;
|
|
1356
|
+
stats?: Array<Stat>;
|
|
1357
|
+
unique_equipped?: 'Unique';
|
|
1358
|
+
weapon?: Weapon;
|
|
1291
1359
|
}
|
|
1292
1360
|
interface Recipe {
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1361
|
+
item: RecipeItem;
|
|
1362
|
+
reagents: Array<NameIdKey & {
|
|
1363
|
+
quantity: number;
|
|
1364
|
+
}>;
|
|
1365
|
+
reagents_display_string: string;
|
|
1298
1366
|
}
|
|
1299
1367
|
interface RecipeItem {
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
name: string;
|
|
1303
|
-
type: string;
|
|
1304
|
-
};
|
|
1305
|
-
durability: Durability;
|
|
1306
|
-
inventory_type: InventoryType;
|
|
1307
|
-
item: Media$1;
|
|
1308
|
-
item_class: NameIdKey;
|
|
1309
|
-
item_subclass: NameIdKey;
|
|
1310
|
-
level: Durability;
|
|
1311
|
-
media: Media$1;
|
|
1368
|
+
armor?: Armor;
|
|
1369
|
+
binding: {
|
|
1312
1370
|
name: string;
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1371
|
+
type: string;
|
|
1372
|
+
};
|
|
1373
|
+
durability: Durability;
|
|
1374
|
+
inventory_type: InventoryType;
|
|
1375
|
+
item: Media$1;
|
|
1376
|
+
item_class: NameIdKey;
|
|
1377
|
+
item_subclass: NameIdKey;
|
|
1378
|
+
level: Durability;
|
|
1379
|
+
media: Media$1;
|
|
1380
|
+
name: string;
|
|
1381
|
+
quality: ItemQuality;
|
|
1382
|
+
requirements: Requirements;
|
|
1383
|
+
sell_price: {
|
|
1384
|
+
display_strings: RecipeItemDisplayStrings;
|
|
1385
|
+
value: number;
|
|
1386
|
+
};
|
|
1387
|
+
stats: Array<Stat>;
|
|
1388
|
+
weapon?: Weapon;
|
|
1321
1389
|
}
|
|
1322
1390
|
interface RecipeItemDisplayStrings {
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1391
|
+
copper: string;
|
|
1392
|
+
gold: string;
|
|
1393
|
+
header: string;
|
|
1394
|
+
silver: string;
|
|
1327
1395
|
}
|
|
1328
1396
|
interface Requirements {
|
|
1329
|
-
|
|
1397
|
+
level: Durability;
|
|
1330
1398
|
}
|
|
1331
1399
|
interface Spell {
|
|
1332
|
-
|
|
1333
|
-
|
|
1400
|
+
description: string;
|
|
1401
|
+
spell: NameIdKey;
|
|
1334
1402
|
}
|
|
1335
1403
|
interface Stat {
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1404
|
+
display: Display;
|
|
1405
|
+
is_negated?: boolean;
|
|
1406
|
+
type: {
|
|
1407
|
+
name: StatType;
|
|
1408
|
+
type: StatTypeCapitalized;
|
|
1409
|
+
};
|
|
1410
|
+
value: number;
|
|
1343
1411
|
}
|
|
1344
1412
|
type StatType = 'Agility' | 'Critical Strike' | 'Haste' | 'Intellect' | 'Mastery' | 'Stamina' | 'Strength' | 'Versatility';
|
|
1345
1413
|
type StatTypeCapitalized = 'AGILITY' | 'CRIT_RATING' | 'HASTE_RATING' | 'INTELLECT' | 'MASTERY' | 'STAMINA' | 'STRENGTH' | 'VERSATILITY';
|
|
1346
1414
|
interface Weapon {
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1415
|
+
attack_speed: Durability;
|
|
1416
|
+
damage: Damage;
|
|
1417
|
+
dps: Durability;
|
|
1350
1418
|
}
|
|
1351
1419
|
|
|
1420
|
+
//#endregion
|
|
1421
|
+
//#region src/item/item.d.ts
|
|
1352
1422
|
/**
|
|
1353
1423
|
* Get an item by ID.
|
|
1354
1424
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
@@ -1392,13 +1462,15 @@ declare function itemSearch(namespace: Extract<BlizzardNamespaces, 'static-class
|
|
|
1392
1462
|
*/
|
|
1393
1463
|
declare function itemSubClass(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, itemClassId: number, itemSubclassId: number): Resource<ItemSubClassResponse>;
|
|
1394
1464
|
|
|
1465
|
+
//#endregion
|
|
1466
|
+
//#region ../wow/src/media-search/types.d.ts
|
|
1395
1467
|
/**
|
|
1396
1468
|
* The search parameters for media.
|
|
1397
1469
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1398
1470
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
|
|
1399
1471
|
*/
|
|
1400
1472
|
interface MediaSearchParameters extends BaseSearchParameters {
|
|
1401
|
-
|
|
1473
|
+
tags?: string;
|
|
1402
1474
|
}
|
|
1403
1475
|
/**
|
|
1404
1476
|
* The response for a media search.
|
|
@@ -1406,17 +1478,19 @@ interface MediaSearchParameters extends BaseSearchParameters {
|
|
|
1406
1478
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
|
|
1407
1479
|
*/
|
|
1408
1480
|
interface MediaSearchResponseItem extends KeyBase {
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1481
|
+
data: {
|
|
1482
|
+
assets: Array<MediaAsset>;
|
|
1483
|
+
id: number;
|
|
1484
|
+
};
|
|
1413
1485
|
}
|
|
1414
1486
|
interface MediaAsset {
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1487
|
+
file_data_id: number;
|
|
1488
|
+
key: string;
|
|
1489
|
+
value: string;
|
|
1418
1490
|
}
|
|
1419
1491
|
|
|
1492
|
+
//#endregion
|
|
1493
|
+
//#region src/media-search/media-search.d.ts
|
|
1420
1494
|
/**
|
|
1421
1495
|
* Search for media.
|
|
1422
1496
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
@@ -1425,39 +1499,49 @@ interface MediaAsset {
|
|
|
1425
1499
|
*/
|
|
1426
1500
|
declare function mediaSearch(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, options: MediaSearchParameters): Resource<SearchResponse<MediaSearchResponseItem>, MediaSearchParameters>;
|
|
1427
1501
|
|
|
1502
|
+
//#endregion
|
|
1503
|
+
//#region ../wow/src/playable-class/types.d.ts
|
|
1428
1504
|
/**
|
|
1429
1505
|
* The response for a playable class index.
|
|
1430
1506
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1431
1507
|
*/
|
|
1432
1508
|
interface PlayableClassIndexResponse extends ResponseBase {
|
|
1433
|
-
|
|
1509
|
+
classes: Array<NameIdKey>;
|
|
1434
1510
|
}
|
|
1435
1511
|
/**
|
|
1436
1512
|
* The response for playable class media.
|
|
1437
1513
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1438
1514
|
*/
|
|
1439
1515
|
interface PlayableClassMediaResponse extends ResponseBase {
|
|
1440
|
-
|
|
1441
|
-
|
|
1516
|
+
assets: Array<MediaAsset$1>;
|
|
1517
|
+
id: number;
|
|
1442
1518
|
}
|
|
1443
1519
|
|
|
1520
|
+
//#endregion
|
|
1521
|
+
//#region src/playable-class/types.d.ts
|
|
1522
|
+
/**
|
|
1523
|
+
* The response for a playable class.
|
|
1524
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1525
|
+
*/
|
|
1444
1526
|
/**
|
|
1445
1527
|
* The response for a playable class.
|
|
1446
1528
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft-classic/game-data-apis}
|
|
1447
1529
|
*/
|
|
1448
1530
|
interface PlayableClassResponse extends NameId, ResponseBase {
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1531
|
+
gender_name: GenderName;
|
|
1532
|
+
media: Media;
|
|
1533
|
+
playable_races: Array<NameIdKey>;
|
|
1534
|
+
power_type: NameIdKey;
|
|
1535
|
+
pvp_talent_slots: {
|
|
1536
|
+
href: string;
|
|
1537
|
+
};
|
|
1456
1538
|
}
|
|
1457
1539
|
interface Media extends KeyBase {
|
|
1458
|
-
|
|
1540
|
+
id: number;
|
|
1459
1541
|
}
|
|
1460
1542
|
|
|
1543
|
+
//#endregion
|
|
1544
|
+
//#region src/playable-class/playable-class.d.ts
|
|
1461
1545
|
/**
|
|
1462
1546
|
* Get a playable class by ID.
|
|
1463
1547
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
@@ -1479,25 +1563,29 @@ declare function playableClassIndex(namespace: Extract<BlizzardNamespaces, 'stat
|
|
|
1479
1563
|
*/
|
|
1480
1564
|
declare function playableClassMedia(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, playableClassId: number): Resource<PlayableClassMediaResponse>;
|
|
1481
1565
|
|
|
1566
|
+
//#endregion
|
|
1567
|
+
//#region ../wow/src/playable-race/types.d.ts
|
|
1482
1568
|
/**
|
|
1483
1569
|
* The playable race index response.
|
|
1484
1570
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1485
1571
|
*/
|
|
1486
1572
|
interface PlayableRaceIndexResponse extends ResponseBase {
|
|
1487
|
-
|
|
1573
|
+
races: Array<NameIdKey>;
|
|
1488
1574
|
}
|
|
1489
1575
|
/**
|
|
1490
1576
|
* The playable race response.
|
|
1491
1577
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1492
1578
|
*/
|
|
1493
1579
|
interface PlayableRaceResponse extends NameId, ResponseBase {
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1580
|
+
faction: Faction;
|
|
1581
|
+
gender_name: GenderName;
|
|
1582
|
+
is_allied_race: boolean;
|
|
1583
|
+
is_selectable: boolean;
|
|
1584
|
+
playable_classes: Array<NameIdKey>;
|
|
1499
1585
|
}
|
|
1500
1586
|
|
|
1587
|
+
//#endregion
|
|
1588
|
+
//#region src/playable-race/playable-race.d.ts
|
|
1501
1589
|
/**
|
|
1502
1590
|
* Get a playable race by ID.
|
|
1503
1591
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
@@ -1512,20 +1600,23 @@ declare function playableRace(namespace: Extract<BlizzardNamespaces, 'static-cla
|
|
|
1512
1600
|
*/
|
|
1513
1601
|
declare function playableRaceIndex(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>): Resource<PlayableRaceIndexResponse>;
|
|
1514
1602
|
|
|
1603
|
+
//#endregion
|
|
1604
|
+
//#region ../wow/src/power-type/types.d.ts
|
|
1515
1605
|
/**
|
|
1516
1606
|
* The response for a power type index.
|
|
1517
1607
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1518
1608
|
*/
|
|
1519
1609
|
interface PowerTypeIndexResponse extends ResponseBase {
|
|
1520
|
-
|
|
1610
|
+
power_types: Array<NameIdKey>;
|
|
1521
1611
|
}
|
|
1522
1612
|
/**
|
|
1523
1613
|
* The response for a power type.
|
|
1524
1614
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1525
1615
|
*/
|
|
1526
|
-
interface PowerTypeResponse extends NameId, ResponseBase {
|
|
1527
|
-
}
|
|
1616
|
+
interface PowerTypeResponse extends NameId, ResponseBase {}
|
|
1528
1617
|
|
|
1618
|
+
//#endregion
|
|
1619
|
+
//#region src/power-type/power-type.d.ts
|
|
1529
1620
|
/**
|
|
1530
1621
|
* Get a power type by ID.
|
|
1531
1622
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
@@ -1540,33 +1631,37 @@ declare function powerType(namespace: Extract<BlizzardNamespaces, 'static-classi
|
|
|
1540
1631
|
*/
|
|
1541
1632
|
declare function powerTypeIndex(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>): Resource<PowerTypeIndexResponse>;
|
|
1542
1633
|
|
|
1634
|
+
//#endregion
|
|
1635
|
+
//#region ../wow/src/pvp-season/types.d.ts
|
|
1543
1636
|
/**
|
|
1544
1637
|
* The response for a PvP season index.
|
|
1545
1638
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1546
1639
|
*/
|
|
1547
1640
|
interface PvpSeasonIndexResponse extends ResponseBase {
|
|
1548
|
-
|
|
1549
|
-
|
|
1641
|
+
current_season: Season;
|
|
1642
|
+
seasons: Array<Season>;
|
|
1550
1643
|
}
|
|
1551
1644
|
/**
|
|
1552
1645
|
* The response for a PvP season.
|
|
1553
1646
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1554
1647
|
*/
|
|
1555
1648
|
interface PvpSeasonResponse extends ResponseBase {
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1649
|
+
id: number;
|
|
1650
|
+
leaderboards: {
|
|
1651
|
+
href: string;
|
|
1652
|
+
};
|
|
1653
|
+
rewards: {
|
|
1654
|
+
href: string;
|
|
1655
|
+
};
|
|
1656
|
+
season_name?: string;
|
|
1657
|
+
season_start_timestamp: number;
|
|
1565
1658
|
}
|
|
1566
1659
|
interface Season extends KeyBase {
|
|
1567
|
-
|
|
1660
|
+
id: number;
|
|
1568
1661
|
}
|
|
1569
1662
|
|
|
1663
|
+
//#endregion
|
|
1664
|
+
//#region src/pvp-season/pvp-season.d.ts
|
|
1570
1665
|
/**
|
|
1571
1666
|
* Get a PvP leaderboard by PvP season ID and bracket.
|
|
1572
1667
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
@@ -1627,6 +1722,8 @@ declare function pvpSeason(namespace: Extract<BlizzardNamespaces, 'dynamic-class
|
|
|
1627
1722
|
*/
|
|
1628
1723
|
declare function pvpSeasonIndex(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>): Resource<PvpSeasonIndexResponse>;
|
|
1629
1724
|
|
|
1725
|
+
//#endregion
|
|
1726
|
+
//#region src/realm/realm.d.ts
|
|
1630
1727
|
/**
|
|
1631
1728
|
* Get a realm by slug.
|
|
1632
1729
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
@@ -1648,24 +1745,28 @@ declare function realmIndex(namespace: Extract<BlizzardNamespaces, 'dynamic-clas
|
|
|
1648
1745
|
*/
|
|
1649
1746
|
declare function realmSearch(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>, options: RealmSearchParameters): Resource<SearchResponse<RealmSearchResponseItem>, RealmSearchParameters>;
|
|
1650
1747
|
|
|
1748
|
+
//#endregion
|
|
1749
|
+
//#region ../wow/src/region/types.d.ts
|
|
1651
1750
|
/**
|
|
1652
1751
|
* The response for a region index.
|
|
1653
1752
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1654
1753
|
*/
|
|
1655
1754
|
interface RegionIndexResponse extends ResponseBase {
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1755
|
+
regions: Array<{
|
|
1756
|
+
href: string;
|
|
1757
|
+
}>;
|
|
1659
1758
|
}
|
|
1660
1759
|
/**
|
|
1661
1760
|
* The response for a region.
|
|
1662
1761
|
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
1663
1762
|
*/
|
|
1664
1763
|
interface RegionResponse extends NameId, ResponseBase {
|
|
1665
|
-
|
|
1666
|
-
|
|
1764
|
+
patch_string: string;
|
|
1765
|
+
tag: string;
|
|
1667
1766
|
}
|
|
1668
1767
|
|
|
1768
|
+
//#endregion
|
|
1769
|
+
//#region src/region/region.d.ts
|
|
1669
1770
|
/**
|
|
1670
1771
|
* Get a region by ID.
|
|
1671
1772
|
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
@@ -1680,63 +1781,67 @@ declare function region(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1
|
|
|
1680
1781
|
*/
|
|
1681
1782
|
declare function regionIndex(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>): Resource<RegionIndexResponse>;
|
|
1682
1783
|
|
|
1784
|
+
//#endregion
|
|
1785
|
+
//#region src/index.d.ts
|
|
1683
1786
|
declare const classicWow: {
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1787
|
+
auctionHouseIndex: typeof auctionHouseIndex;
|
|
1788
|
+
auctions: typeof auctions;
|
|
1789
|
+
characterAchievementsSummary: typeof characterAchievementsSummary;
|
|
1790
|
+
characterAchievementStatistics: typeof characterAchievementStatistics;
|
|
1791
|
+
characterEquipmentSummary: typeof characterEquipmentSummary;
|
|
1792
|
+
characterHunterPetsSummary: typeof characterHunterPetsSummary;
|
|
1793
|
+
characterMediaSummary: typeof characterMediaSummary;
|
|
1794
|
+
characterProfileStatus: typeof characterProfileStatus;
|
|
1795
|
+
characterProfileSummary: typeof characterProfileSummary;
|
|
1796
|
+
characterSpecializationsSummary: typeof characterSpecializationsSummary;
|
|
1797
|
+
characterStatisticsSummary: typeof characterStatisticsSummary;
|
|
1798
|
+
connectedRealm: typeof connectedRealm;
|
|
1799
|
+
connectedRealmIndex: typeof connectedRealmIndex;
|
|
1800
|
+
connectedRealmSearch: typeof connectedRealmSearch;
|
|
1801
|
+
creature: typeof creature;
|
|
1802
|
+
creatureDisplayMedia: typeof creatureDisplayMedia;
|
|
1803
|
+
creatureFamily: typeof creatureFamily;
|
|
1804
|
+
creatureFamilyIndex: typeof creatureFamilyIndex;
|
|
1805
|
+
creatureFamilyMedia: typeof creatureFamilyMedia;
|
|
1806
|
+
creatureSearch: typeof creatureSearch;
|
|
1807
|
+
creatureType: typeof creatureType;
|
|
1808
|
+
creatureTypeIndex: typeof creatureTypeIndex;
|
|
1809
|
+
guild: typeof guild;
|
|
1810
|
+
guildAchievements: typeof guildAchievements;
|
|
1811
|
+
guildActivity: typeof guildActivity;
|
|
1812
|
+
guildRoster: typeof guildRoster;
|
|
1813
|
+
guildCrestBorder: typeof guildCrestBorder;
|
|
1814
|
+
guildCrestComponentsIndex: typeof guildCrestComponentsIndex;
|
|
1815
|
+
guildCrestEmblem: typeof guildCrestEmblem;
|
|
1816
|
+
item: typeof item;
|
|
1817
|
+
itemClass: typeof itemClass;
|
|
1818
|
+
itemClassIndex: typeof itemClassIndex;
|
|
1819
|
+
itemMedia: typeof itemMedia;
|
|
1820
|
+
itemSearch: typeof itemSearch;
|
|
1821
|
+
itemSubClass: typeof itemSubClass;
|
|
1822
|
+
mediaSearch: typeof mediaSearch;
|
|
1823
|
+
playableClass: typeof playableClass;
|
|
1824
|
+
playableClassIndex: typeof playableClassIndex;
|
|
1825
|
+
playableClassMedia: typeof playableClassMedia;
|
|
1826
|
+
playableRace: typeof playableRace;
|
|
1827
|
+
playableRaceIndex: typeof playableRaceIndex;
|
|
1828
|
+
powerType: typeof powerType;
|
|
1829
|
+
powerTypeIndex: typeof powerTypeIndex;
|
|
1830
|
+
pvpLeaderboard: typeof pvpLeaderboard;
|
|
1831
|
+
pvpLeaderboardIndex: typeof pvpLeaderboardIndex;
|
|
1832
|
+
pvpRegionalSeason: typeof pvpRegionalSeason;
|
|
1833
|
+
pvpRegionalSeasonIndex: typeof pvpRegionalSeasonIndex;
|
|
1834
|
+
pvpRegionIndex: typeof pvpRegionIndex;
|
|
1835
|
+
pvpRewardsIndex: typeof pvpRewardsIndex;
|
|
1836
|
+
pvpSeason: typeof pvpSeason;
|
|
1837
|
+
pvpSeasonIndex: typeof pvpSeasonIndex;
|
|
1838
|
+
realm: typeof realm;
|
|
1839
|
+
realmIndex: typeof realmIndex;
|
|
1840
|
+
realmSearch: typeof realmSearch;
|
|
1841
|
+
region: typeof region;
|
|
1842
|
+
regionIndex: typeof regionIndex;
|
|
1740
1843
|
};
|
|
1741
1844
|
|
|
1742
|
-
|
|
1845
|
+
//#endregion
|
|
1846
|
+
export { AuctionHouseIndexResponse, AuctionsResponse, CharacterAchievementStatisticsResponse, CharacterAchievementsSummaryResponse, CharacterEquipmentSummaryResponse, CharacterHunterPetsSummaryResponse, CharacterMediaSummaryResponse, CharacterProfileStatusResponse, CharacterProfileSummaryResponse, CharacterSpecializationsSummaryResponse, CharacterStatisticsSummaryResponse, ConnectedRealmIndexResponse, ConnectedRealmResponse, ConnectedRealmSearchParameters, ConnectedRealmSearchResponseItem, CreatureDisplayMediaResponse, CreatureFamilyIndexResponse, CreatureFamilyMediaResponse, CreatureFamilyResponse, CreatureResponse, CreatureSearchParameters, CreatureSearchResponseItem, CreatureTypeIndexResponse, CreatureTypeResponse, GuildAchievementsClassicEraResponse, GuildAchievementsResponse, GuildActivityResponse, GuildCrestBorderEmblemResponse, GuildCrestComponentsIndexResponse, GuildResponse, GuildRosterResponse, ItemClassIndexResponse, ItemClassResponse, ItemMediaResponse, ItemResponse, ItemSearchParameters, ItemSearchResponseItem, ItemSubClassResponse, MediaSearchParameters, MediaSearchResponseItem, PlayableClassIndexResponse, PlayableClassMediaResponse, PlayableClassResponse, PlayableRaceIndexResponse, PlayableRaceResponse, PowerTypeIndexResponse, PowerTypeResponse, PvpSeasonIndexResponse, PvpSeasonResponse, RealmCategory, RealmIndexResponse, RealmResponse, RealmSearchParameters, RealmSearchResponseItem, RealmTimezone, RealmType, RealmTypeCapitalized, RegionIndexResponse, RegionResponse, WithoutUnderscore, auctionHouseIndex, auctions, characterAchievementStatistics, characterAchievementsSummary, characterEquipmentSummary, characterHunterPetsSummary, characterMediaSummary, characterProfileStatus, characterProfileSummary, characterSpecializationsSummary, characterStatisticsSummary, classicWow, connectedRealm, connectedRealmIndex, connectedRealmSearch, creature, creatureDisplayMedia, creatureFamily, creatureFamilyIndex, creatureFamilyMedia, creatureSearch, creatureType, creatureTypeIndex, classicWow as default, guild, guildAchievements, guildActivity, guildCrestBorder, guildCrestComponentsIndex, guildCrestEmblem, guildRoster, item, itemClass, itemClassIndex, itemMedia, itemSearch, itemSubClass, mediaSearch, playableClass, playableClassIndex, playableClassMedia, playableRace, playableRaceIndex, powerType, powerTypeIndex, pvpLeaderboard, pvpLeaderboardIndex, pvpRegionIndex, pvpRegionalSeason, pvpRegionalSeasonIndex, pvpRewardsIndex, pvpSeason, pvpSeasonIndex, realm, realmIndex, realmSearch, region, regionIndex };
|
|
1847
|
+
//# sourceMappingURL=index.d.ts.map
|