@blizzard-api/classic-wow 2.1.1 → 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 CHANGED
@@ -1,4 +1,12 @@
1
- import { BlizzardNamespaces, Resource, Locales, BaseSearchParameters, SearchResponse } from '@blizzard-api/core';
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
- a: number;
11
- b: number;
12
- g: number;
13
- r: number;
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
- female: string;
20
- male: string;
27
+ female: string;
28
+ male: string;
21
29
  }
22
30
  interface Href {
23
- href: string;
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
- key: Href;
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
- file_data_id: number;
36
- key: string;
37
- value: string;
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
- id: number;
44
- name: string;
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
- _links: {
56
- self: Href;
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
- readonly FEMALE: "FEMALE";
64
- readonly MALE: "MALE";
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
- name: Capitalize<Lowercase<keyof typeof Genders>>;
71
- type: keyof typeof Genders;
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
- readonly ALLIANCE: "ALLIANCE";
78
- readonly HORDE: "HORDE";
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
- realm: Realm$1;
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
- name: Capitalize<Lowercase<keyof typeof Factions>>;
91
- type: keyof typeof Factions;
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
- slug: string;
98
- }
99
-
104
+ slug: string;
105
+ } //#endregion
106
+ //#region src/auction-house/types.d.ts
100
107
  interface AuctionHouseIndexResponse extends ResponseBase {
101
- auctions: Array<NameIdKey>;
108
+ auctions: Array<NameIdKey>;
102
109
  }
103
110
  interface AuctionsResponse extends NameId, ResponseBase {
104
- auctions: Array<Auction>;
105
- connected_realm: {
106
- href: string;
107
- };
111
+ auctions: Array<Auction>;
112
+ connected_realm: {
113
+ href: string;
114
+ };
108
115
  }
109
116
  interface Auction {
110
- bid: number;
111
- buyout: number;
117
+ bid: number;
118
+ buyout: number;
119
+ id: number;
120
+ item: {
112
121
  id: number;
113
- item: {
114
- id: number;
115
- rand?: number;
116
- seed?: number;
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
- achievements: Array<Achievement$1>;
144
- category_progress: Array<CategoryProgress$1>;
145
- character: Character;
146
- recent_events: Array<RecentEvent$1>;
147
- statistics: Href;
148
- total_points: number;
149
- total_quantity: number;
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
- categories: Array<Category>;
153
- character: Character;
163
+ categories: Array<Category>;
164
+ character: Character;
154
165
  }
155
166
  interface Achievement$1 {
156
- achievement: NameIdKey;
157
- completed_timestamp?: number;
158
- criteria?: Criteria$1;
159
- id: number;
167
+ achievement: NameIdKey;
168
+ completed_timestamp?: number;
169
+ criteria?: Criteria$1;
170
+ id: number;
160
171
  }
161
172
  interface Category {
162
- id: number;
163
- name: string;
164
- statistics: Array<Statistic>;
165
- sub_categories: Array<SubCategory>;
173
+ id: number;
174
+ name: string;
175
+ statistics: Array<Statistic>;
176
+ sub_categories: Array<SubCategory>;
166
177
  }
167
178
  interface CategoryProgress$1 {
168
- category: NameIdKey;
169
- points: number;
170
- quantity: number;
179
+ category: NameIdKey;
180
+ points: number;
181
+ quantity: number;
171
182
  }
172
183
  interface Criteria$1 {
173
- amount?: number;
174
- child_criteria?: Array<Criteria$1>;
175
- id: number;
176
- is_completed: boolean;
184
+ amount?: number;
185
+ child_criteria?: Array<Criteria$1>;
186
+ id: number;
187
+ is_completed: boolean;
177
188
  }
178
189
  interface RecentEvent$1 {
179
- achievement: NameIdKey;
180
- timestamp: number;
190
+ achievement: NameIdKey;
191
+ timestamp: number;
181
192
  }
182
193
  interface Statistic {
183
- description?: null | string;
184
- id: number;
185
- last_updated_timestamp: number;
186
- name: string;
187
- quantity: number;
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
- id: number;
191
- name: string;
192
- statistics: Array<Statistic>;
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
- character: Character;
214
- equipped_item_sets: Array<Set>;
215
- equipped_items: Array<EquippedItem>;
230
+ character: Character;
231
+ equipped_item_sets: Array<Set>;
232
+ equipped_items: Array<EquippedItem>;
216
233
  }
217
234
  interface Armor$1 {
218
- display: NameDescription;
219
- value: number;
235
+ display: NameDescription;
236
+ value: number;
220
237
  }
221
238
  interface Damage$1 {
222
- damage_class: NameType;
223
- display_string: string;
224
- max_value: number;
225
- min_value: number;
239
+ damage_class: NameType;
240
+ display_string: string;
241
+ max_value: number;
242
+ min_value: number;
226
243
  }
227
244
  interface DisplayStrings {
228
- copper: string;
229
- gold: string;
230
- header: string;
231
- silver: string;
245
+ copper: string;
246
+ gold: string;
247
+ header: string;
248
+ silver: string;
232
249
  }
233
250
  interface DisplayStringValue {
234
- display_string: string;
235
- value: number;
251
+ display_string: string;
252
+ value: number;
236
253
  }
237
254
  interface Effect {
238
- display_string: string;
239
- is_active: boolean;
240
- required_count: number;
255
+ display_string: string;
256
+ is_active: boolean;
257
+ required_count: number;
241
258
  }
242
259
  interface Enchantment {
243
- display_string: string;
244
- enchantment_id: number;
245
- enchantment_slot: EnchantmentSlot;
246
- source_item?: NameIdKey;
260
+ display_string: string;
261
+ enchantment_id: number;
262
+ enchantment_slot: EnchantmentSlot;
263
+ source_item?: NameIdKey;
247
264
  }
248
265
  interface EnchantmentSlot {
249
- id: number;
250
- type: string;
266
+ id: number;
267
+ type: string;
251
268
  }
252
269
  interface EquippedItem {
253
- armor?: Armor$1;
254
- binding: NameType;
255
- bonus_list?: Array<number>;
256
- context: number;
257
- description?: string;
258
- durability?: DisplayStringValue;
259
- enchantments?: Array<Enchantment>;
260
- inventory_type: NameType;
261
- is_subclass_hidden?: boolean;
262
- item: KeyBase & {
263
- id: number;
264
- };
265
- item_class: NameIdKey;
266
- item_subclass: NameIdKey;
267
- level: DisplayStringValue;
268
- limit_category?: string;
269
- media: KeyBase & {
270
- id: number;
271
- };
272
- modified_appearance_id?: number;
273
- modified_crafting_stat?: Array<ModifiedCraftingStat>;
274
- name: string;
275
- name_description: NameDescription;
276
- quality: NameType;
277
- quantity: number;
278
- requirements?: Requirements$1;
279
- sell_price?: SellPrice;
280
- set?: Set;
281
- slot: NameType;
282
- sockets?: Array<Socket>;
283
- spells?: Array<Spell$1>;
284
- stats?: Array<Stat$1>;
285
- transmog?: Transmog;
286
- unique_equipped?: string;
287
- weapon?: Weapon$1;
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
- is_equipped?: boolean;
307
+ is_equipped?: boolean;
291
308
  }
292
309
  interface ModifiedCraftingStat {
293
- id: number;
294
- name: string;
295
- type: string;
310
+ id: number;
311
+ name: string;
312
+ type: string;
296
313
  }
297
314
  interface NameDescription {
298
- color: Color;
299
- display_string: string;
315
+ color: Color;
316
+ display_string: string;
300
317
  }
301
318
  interface NameType {
302
- name: string;
303
- type: string;
319
+ name: string;
320
+ type: string;
304
321
  }
305
322
  interface PlayableClasses {
306
- display_string: string;
307
- links: Array<NameIdKey>;
323
+ display_string: string;
324
+ links: Array<NameIdKey>;
308
325
  }
309
326
  interface Requirements$1 {
310
- level: DisplayStringValue;
311
- playable_classes?: PlayableClasses;
327
+ level: DisplayStringValue;
328
+ playable_classes?: PlayableClasses;
312
329
  }
313
330
  interface SellPrice {
314
- display_strings: DisplayStrings;
315
- value: number;
331
+ display_strings: DisplayStrings;
332
+ value: number;
316
333
  }
317
334
  interface Set {
318
- display_string: string;
319
- effects: Array<Effect>;
320
- item_set: NameIdKey;
321
- items: Array<ItemElement>;
335
+ display_string: string;
336
+ effects: Array<Effect>;
337
+ item_set: NameIdKey;
338
+ items: Array<ItemElement>;
322
339
  }
323
340
  interface Socket {
324
- display_string: string;
325
- item: NameIdKey;
326
- media: KeyBase & {
327
- id: number;
328
- };
329
- socket_type: NameType;
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
- description: string;
333
- spell: NameIdKey;
349
+ description: string;
350
+ spell: NameIdKey;
334
351
  }
335
352
  interface Stat$1 {
336
- display: NameDescription;
337
- is_equip_bonus?: boolean;
338
- is_negated?: boolean;
339
- type: NameType;
340
- value: number;
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
- display_string: string;
344
- item: NameIdKey;
345
- item_modified_appearance_id: number;
360
+ display_string: string;
361
+ item: NameIdKey;
362
+ item_modified_appearance_id: number;
346
363
  }
347
364
  interface Weapon$1 {
348
- attack_speed: DisplayStringValue;
349
- damage: Damage$1;
350
- dps: DisplayStringValue;
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
- character: Character;
364
- hunter_pets: Array<HunterPet>;
384
+ character: Character;
385
+ hunter_pets: Array<HunterPet>;
365
386
  }
366
387
  interface HunterPet {
367
- creature: NameIdKey;
368
- creature_display: KeyBase & {
369
- id: number;
370
- };
371
- is_active?: boolean;
372
- is_summoned?: boolean;
373
- level: number;
374
- name: string;
375
- slot: number;
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
- assets: Array<Asset>;
389
- character: Character;
413
+ assets: Array<Asset>;
414
+ character: Character;
390
415
  }
391
416
  interface Asset {
392
- key: string;
393
- value: string;
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
- id: number;
406
- is_valid: boolean;
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
- achievement_points?: number;
411
- achievements?: Href;
412
- active_spec: NameIdKey;
413
- active_title?: {
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
- pvp_summary: Href;
433
- race: NameIdKey;
434
- realm: Realm$1;
435
- specializations: Href;
436
- statistics: Href;
437
- titles: Href;
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
- faction: Faction;
441
- realm: Realm$1;
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
- character: Character;
473
- specialization_groups: Array<SpecializationGroup>;
507
+ character: Character;
508
+ specialization_groups: Array<SpecializationGroup>;
474
509
  }
475
510
  interface Specialization {
476
- specialization_name: string;
477
- spent_points: number;
478
- talents: Array<TalentElement>;
511
+ specialization_name: string;
512
+ spent_points: number;
513
+ talents: Array<TalentElement>;
479
514
  }
480
515
  interface SpecializationGroup {
481
- glyphs?: Array<NameId>;
482
- is_active: boolean;
483
- specializations?: Array<Specialization>;
516
+ glyphs?: Array<NameId>;
517
+ is_active: boolean;
518
+ specializations?: Array<Specialization>;
484
519
  }
485
520
  interface SpellTooltip {
486
- cast_time: 'Channeled' | 'Instant' | 'Instant cast' | 'Passive';
487
- cooldown?: string;
488
- description: string;
489
- power_cost?: null | string;
490
- range?: string;
491
- spell: NameId;
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
- spell_tooltip: SpellTooltip;
495
- talent: {
496
- id: number;
497
- };
498
- talent_rank: number;
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
- agility: BaseEffectiveStat;
511
- arcane_resistance: BaseEffectiveStat;
512
- armor: BaseEffectiveStat;
513
- attack_power: number;
514
- block: RatingWithValue;
515
- bonus_armor?: number;
516
- character: Character;
517
- defense?: BaseEffectiveStat;
518
- dodge: RatingWithValue;
519
- fire_resistance: BaseEffectiveStat;
520
- health: number;
521
- holy_resistance: BaseEffectiveStat;
522
- intellect: BaseEffectiveStat;
523
- main_hand_damage_max: number;
524
- main_hand_damage_min: number;
525
- main_hand_dps: number;
526
- main_hand_speed: number;
527
- mana_regen: number;
528
- mana_regen_combat: number;
529
- mastery?: RatingWithValue;
530
- melee_crit: RatingWithValue;
531
- melee_haste?: RatingWithValue;
532
- nature_resistance: BaseEffectiveStat;
533
- off_hand_damage_max: number;
534
- off_hand_damage_min: number;
535
- off_hand_dps: number;
536
- off_hand_speed: number;
537
- parry: RatingWithValue;
538
- power: number;
539
- power_type: Character;
540
- ranged_crit: RatingWithValue;
541
- ranged_haste?: RatingWithValue;
542
- shadow_resistance: BaseEffectiveStat;
543
- spell_crit: RatingWithValue;
544
- spell_haste?: RatingWithValue;
545
- spell_penetration: number;
546
- spell_power: number;
547
- spirit: BaseEffectiveStat;
548
- stamina: BaseEffectiveStat;
549
- strength: BaseEffectiveStat;
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
- base: number;
553
- effective: number;
591
+ base: number;
592
+ effective: number;
554
593
  }
555
594
  interface RatingWithValue {
556
- rating: number;
557
- rating_bonus: number;
558
- value: number;
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
- realms: Array<Realm$1>;
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
- category: RealmCategory;
587
- connected_realm: {
588
- href: string;
589
- };
590
- is_tournament: boolean;
591
- locale: WithoutUnderscore<Locales>;
592
- region: NameIdKey;
593
- slug: string;
594
- timezone: RealmTimezone;
595
- type: {
596
- name: RealmType;
597
- type: RealmTypeCapitalized;
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
- timezone?: RealmTimezone;
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
- data: {
615
- category: Record<Locales, string | undefined>;
616
- id: number;
617
- is_tournament: boolean;
618
- locale: WithoutUnderscore<Locales>;
619
- name: Record<Locales, string | undefined>;
620
- region: {
621
- id: number;
622
- name: Record<Locales, string | undefined>;
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
- connected_realms: Array<{
652
- href: string;
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
- auctions: {
661
- href: string;
662
- };
663
- has_queue: boolean;
664
- id: number;
665
- mythic_leaderboards: {
666
- href: string;
667
- };
668
- population: {
669
- name: RealmPopulation;
670
- type: RealmPopulationCapitalized;
671
- };
672
- realm_locked_status?: RealmLockedStatus;
673
- realms: Array<Realm>;
674
- status: {
675
- name: RealmStatus;
676
- type: Uppercase<RealmStatus>;
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
- 'realms.timezone'?: RealmTimezone;
686
- 'status.type'?: Uppercase<RealmStatus>;
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
- data: {
695
- has_queue: boolean;
696
- id: number;
697
- population: SearchRealmPopulation;
698
- realms: Array<SearchRealm>;
699
- status: SearchRealmStatus;
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
- category: RealmCategory;
704
- connected_realm: {
705
- href: string;
706
- };
707
- id: number;
708
- is_tournament: boolean;
709
- locale: WithoutUnderscore<Locales>;
710
- name: string;
711
- region: NameIdKey;
712
- slug: string;
713
- timezone: RealmTimezone;
714
- type: {
715
- name: RealmType;
716
- type: RealmTypeCapitalized;
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
- is_locked_for_new_characters: boolean;
721
- is_locked_for_pct: boolean;
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
- category: Record<Locales, string | undefined>;
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
- region: {
733
- id: number;
734
- name: Record<Locales, string | undefined>;
735
- };
736
- slug: string;
737
- timezone: RealmTimezone;
738
- type: {
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
- name: Record<Locales, string>;
745
- type: RealmPopulationCapitalized;
789
+ name: Record<Locales, string>;
790
+ type: RealmPopulationCapitalized;
746
791
  }
747
792
  interface SearchRealmStatus {
748
- name: Record<Locales, string>;
749
- type: Uppercase<RealmStatus>;
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
- assets: Array<DisplayMediaAsset>;
779
- id: number;
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
- creature_families: Array<NameIdKey>;
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
- assets: Array<MediaAsset$1>;
794
- id: number;
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
- id: number;
802
- media: Media$3;
803
- name: string;
804
- specialization: NameIdKey;
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
- creature_displays: Array<CreatureDisplay>;
812
- family: NameIdKey;
813
- id: number;
814
- is_tameable: boolean;
815
- name: string;
816
- type: NameIdKey;
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
- locale: Locales;
825
- name: string;
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
- data: {
834
- creature_displays: Array<{
835
- id: number;
836
- }>;
837
- family?: {
838
- id: number;
839
- name: Record<Locales, string | undefined>;
840
- };
841
- id: number;
842
- is_tameable: boolean;
843
- name: Record<Locales, string | undefined>;
844
- type: {
845
- id: number;
846
- name: Record<Locales, string | undefined>;
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
- creature_types: Array<NameIdKey>;
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
- id: number;
863
- name: string;
911
+ id: number;
912
+ name: string;
864
913
  }
865
914
  interface CreatureDisplay extends KeyBase {
866
- id: number;
915
+ id: number;
867
916
  }
868
917
  interface DisplayMediaAsset {
869
- key: string;
870
- value: string;
918
+ key: string;
919
+ value: string;
871
920
  }
872
921
  interface Media$3 extends KeyBase {
873
- id: number;
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
- assets: Array<GuildCrestAsset>;
937
- id: number;
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
- borders: Array<Border$1>;
945
- colors: Colors;
946
- emblems: Array<Border$1>;
997
+ borders: Array<Border$1>;
998
+ colors: Colors;
999
+ emblems: Array<Border$1>;
947
1000
  }
948
1001
  interface Background {
949
- id: number;
950
- rgba: RGBA;
1002
+ id: number;
1003
+ rgba: RGBA;
951
1004
  }
952
1005
  interface Border$1 {
953
- id: number;
954
- media: Media$2;
1006
+ id: number;
1007
+ media: Media$2;
955
1008
  }
956
1009
  interface Colors {
957
- backgrounds: Array<Background>;
958
- borders: Array<Background>;
959
- emblems: Array<Background>;
1010
+ backgrounds: Array<Background>;
1011
+ borders: Array<Background>;
1012
+ emblems: Array<Background>;
960
1013
  }
961
1014
  interface GuildCrestAsset {
962
- key: string;
963
- value: string;
1015
+ key: string;
1016
+ value: string;
964
1017
  }
965
1018
  interface Media$2 extends KeyBase {
966
- id: number;
1019
+ id: number;
967
1020
  }
968
1021
  interface RGBA {
969
- a: number;
970
- b: number;
971
- g: number;
972
- r: number;
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
- achievements: Array<Achievement>;
998
- category_progress: Array<CategoryProgress>;
999
- guild: Guild$1;
1000
- recent_events: Array<RecentEvent>;
1001
- total_points: number;
1002
- total_quantity: number;
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
- achievement_points: number;
1006
- achievements: Href;
1007
- activity: Href;
1008
- created_timestamp: number;
1009
- crest: Crest;
1010
- faction: Faction;
1011
- id: number;
1012
- member_count: number;
1013
- name: string;
1014
- name_search: string;
1015
- realm: Realm$1;
1016
- roster: Href;
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
- achievement: NameIdKey;
1020
- completed_timestamp?: number;
1021
- criteria?: Criteria;
1022
- id: number;
1076
+ achievement: NameIdKey;
1077
+ completed_timestamp?: number;
1078
+ criteria?: Criteria;
1079
+ id: number;
1023
1080
  }
1024
1081
  interface Border {
1025
- color: RgbWithId;
1082
+ color: RgbWithId;
1083
+ id: number;
1084
+ media: KeyBase & {
1026
1085
  id: number;
1027
- media: KeyBase & {
1028
- id: number;
1029
- };
1086
+ };
1030
1087
  }
1031
1088
  interface CategoryProgress {
1032
- category: NameIdKey;
1033
- points: number;
1034
- quantity: number;
1089
+ category: NameIdKey;
1090
+ points: number;
1091
+ quantity: number;
1035
1092
  }
1036
1093
  interface Crest {
1037
- background: {
1038
- color: RgbWithId;
1039
- };
1040
- border: Border;
1041
- emblem: Border;
1094
+ background: {
1095
+ color: RgbWithId;
1096
+ };
1097
+ border: Border;
1098
+ emblem: Border;
1042
1099
  }
1043
1100
  interface Criteria {
1044
- amount?: number;
1045
- child_criteria?: Array<Criteria>;
1046
- id: number;
1047
- is_completed: boolean;
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
- faction: Faction;
1051
- realm: Realm$1;
1107
+ faction: Faction;
1108
+ realm: Realm$1;
1052
1109
  }
1053
1110
  interface RecentEvent {
1054
- achievement: NameIdKey;
1055
- timestamp: number;
1111
+ achievement: NameIdKey;
1112
+ timestamp: number;
1056
1113
  }
1057
1114
  interface RgbWithId {
1058
- id: number;
1059
- rgba: Color;
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
- guild: Guild;
1122
+ guild: Guild;
1064
1123
  }
1065
1124
  interface GuildActivityResponse extends ResponseBase {
1066
- activities?: Array<ActivityElement>;
1067
- guild: Guild;
1125
+ activities?: Array<ActivityElement>;
1126
+ guild: Guild;
1068
1127
  }
1069
1128
  type GuildResponse = Omit<GuildResponse$1, 'crest'> & {
1070
- crest?: GuildResponse$1['crest'];
1129
+ crest?: GuildResponse$1['crest'];
1071
1130
  };
1072
1131
  interface GuildRosterResponse extends ResponseBase {
1073
- guild: Guild;
1074
- members: Array<Member>;
1132
+ guild: Guild;
1133
+ members: Array<Member>;
1075
1134
  }
1076
1135
  interface ActivityElement {
1077
- activity: {
1078
- type: string;
1079
- };
1080
- character_achievement: CharacterAchievement;
1081
- timestamp: number;
1136
+ activity: {
1137
+ type: string;
1138
+ };
1139
+ character_achievement: CharacterAchievement;
1140
+ timestamp: number;
1082
1141
  }
1083
1142
  interface CharacterAchievement {
1084
- achievement: NameIdKey;
1085
- character: Character;
1143
+ achievement: NameIdKey;
1144
+ character: Character;
1086
1145
  }
1087
1146
  interface Guild extends NameIdKey {
1088
- faction: Faction;
1089
- realm: Realm$1;
1147
+ faction: Faction;
1148
+ realm: Realm$1;
1090
1149
  }
1091
1150
  interface Member {
1092
- character: RosterMemberCharacter;
1093
- rank: number;
1151
+ character: RosterMemberCharacter;
1152
+ rank: number;
1094
1153
  }
1095
1154
  interface Playable extends KeyBase {
1096
- id: number;
1155
+ id: number;
1097
1156
  }
1098
1157
  interface RosterMemberCharacter extends Character {
1099
- level: number;
1100
- playable_class: Playable;
1101
- playable_race: Playable;
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
- item_classes: Array<NameIdKey>;
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
- class_id: number;
1146
- item_subclasses: Array<NameIdKey>;
1147
- name: string;
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
- assets: Array<MediaAsset$1>;
1155
- id: number;
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
- description?: string;
1163
- inventory_type: InventoryType;
1164
- is_equippable: boolean;
1165
- is_stackable: boolean;
1166
- item_class: NameIdKey;
1167
- item_subclass: NameIdKey;
1168
- level: number;
1169
- max_count: number;
1170
- media: Media$1;
1171
- preview_item: PreviewItem;
1172
- purchase_price: number;
1173
- purchase_quantity: number;
1174
- quality: ItemQuality;
1175
- required_level: number;
1176
- sell_price: number;
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
- locale: Locales;
1185
- name: string;
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
- data: {
1194
- id: number;
1195
- inventory_type: InventoryType;
1196
- is_equippable: boolean;
1197
- is_stackable: boolean;
1198
- item_class: {
1199
- id: number;
1200
- name: Record<Locales, string | undefined>;
1201
- };
1202
- item_subclass: {
1203
- id: number;
1204
- name: Record<Locales, string | undefined>;
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
- class_id: number;
1225
- display_name: string;
1226
- hide_subclass_in_tooltips: boolean;
1227
- subclass_id: number;
1228
- verbose_name: string;
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
- display: Display;
1232
- value: number;
1299
+ display: Display;
1300
+ value: number;
1233
1301
  }
1234
1302
  interface Damage {
1235
- damage_class: {
1236
- name: string;
1237
- type: string;
1238
- };
1239
- display_string: string;
1240
- max_value: number;
1241
- min_value: number;
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
- color: Color;
1245
- display_string: string;
1312
+ color: Color;
1313
+ display_string: string;
1246
1314
  }
1247
1315
  interface Durability {
1248
- display_string: string;
1249
- value: number;
1316
+ display_string: string;
1317
+ value: number;
1250
1318
  }
1251
1319
  interface InventoryType {
1252
- name: Record<Locales, string | undefined>;
1253
- type: 'BACK' | 'BAG' | 'CHEST' | 'FEET' | 'FINGER' | 'HANDS' | 'HEAD' | 'LEGS' | 'NECK' | 'NON_EQUIP' | 'SHIRT' | 'SHOULDER' | 'TABARD' | 'TRINKET' | 'TWOHWEAPON' | 'WAIST' | 'WRIST';
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
- name: Record<Locales, string | undefined>;
1257
- type: 'ARTIFACT' | 'COMMON' | 'EPIC' | 'HEIRLOOM' | 'LEGENDARY' | 'POOR' | 'RARE' | 'UNCOMMON';
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
- id: number;
1328
+ id: number;
1261
1329
  }
1262
1330
  interface PreviewItem {
1263
- armor?: Armor;
1264
- binding?: {
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
- quality: ItemQuality;
1283
- recipe?: Recipe;
1284
- requirements?: Requirements;
1285
- sell_price?: number;
1286
- shield_block?: Armor;
1287
- spells?: Array<Spell>;
1288
- stats?: Array<Stat>;
1289
- unique_equipped?: 'Unique';
1290
- weapon?: Weapon;
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
- item: RecipeItem;
1294
- reagents: Array<NameIdKey & {
1295
- quantity: number;
1296
- }>;
1297
- reagents_display_string: string;
1361
+ item: RecipeItem;
1362
+ reagents: Array<NameIdKey & {
1363
+ quantity: number;
1364
+ }>;
1365
+ reagents_display_string: string;
1298
1366
  }
1299
1367
  interface RecipeItem {
1300
- armor?: Armor;
1301
- binding: {
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
- quality: ItemQuality;
1314
- requirements: Requirements;
1315
- sell_price: {
1316
- display_strings: RecipeItemDisplayStrings;
1317
- value: number;
1318
- };
1319
- stats: Array<Stat>;
1320
- weapon?: Weapon;
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
- copper: string;
1324
- gold: string;
1325
- header: string;
1326
- silver: string;
1391
+ copper: string;
1392
+ gold: string;
1393
+ header: string;
1394
+ silver: string;
1327
1395
  }
1328
1396
  interface Requirements {
1329
- level: Durability;
1397
+ level: Durability;
1330
1398
  }
1331
1399
  interface Spell {
1332
- description: string;
1333
- spell: NameIdKey;
1400
+ description: string;
1401
+ spell: NameIdKey;
1334
1402
  }
1335
1403
  interface Stat {
1336
- display: Display;
1337
- is_negated?: boolean;
1338
- type: {
1339
- name: StatType;
1340
- type: StatTypeCapitalized;
1341
- };
1342
- value: number;
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
- attack_speed: Durability;
1348
- damage: Damage;
1349
- dps: Durability;
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
- tags?: string;
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
- data: {
1410
- assets: Array<MediaAsset>;
1411
- id: number;
1412
- };
1481
+ data: {
1482
+ assets: Array<MediaAsset>;
1483
+ id: number;
1484
+ };
1413
1485
  }
1414
1486
  interface MediaAsset {
1415
- file_data_id: number;
1416
- key: string;
1417
- value: string;
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
- classes: Array<NameIdKey>;
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
- assets: Array<MediaAsset$1>;
1441
- id: number;
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
- gender_name: GenderName;
1450
- media: Media;
1451
- playable_races: Array<NameIdKey>;
1452
- power_type: NameIdKey;
1453
- pvp_talent_slots: {
1454
- href: string;
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
- id: number;
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
- races: Array<NameIdKey>;
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
- faction: Faction;
1495
- gender_name: GenderName;
1496
- is_allied_race: boolean;
1497
- is_selectable: boolean;
1498
- playable_classes: Array<NameIdKey>;
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
- power_types: Array<NameIdKey>;
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
- current_season: Season;
1549
- seasons: Array<Season>;
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
- id: number;
1557
- leaderboards: {
1558
- href: string;
1559
- };
1560
- rewards: {
1561
- href: string;
1562
- };
1563
- season_name?: string;
1564
- season_start_timestamp: number;
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
- id: number;
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
- regions: Array<{
1657
- href: string;
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
- patch_string: string;
1666
- tag: string;
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
- auctionHouseIndex: typeof auctionHouseIndex;
1685
- auctions: typeof auctions;
1686
- characterAchievementsSummary: typeof characterAchievementsSummary;
1687
- characterAchievementStatistics: typeof characterAchievementStatistics;
1688
- characterEquipmentSummary: typeof characterEquipmentSummary;
1689
- characterHunterPetsSummary: typeof characterHunterPetsSummary;
1690
- characterMediaSummary: typeof characterMediaSummary;
1691
- characterProfileStatus: typeof characterProfileStatus;
1692
- characterProfileSummary: typeof characterProfileSummary;
1693
- characterSpecializationsSummary: typeof characterSpecializationsSummary;
1694
- characterStatisticsSummary: typeof characterStatisticsSummary;
1695
- connectedRealm: typeof connectedRealm;
1696
- connectedRealmIndex: typeof connectedRealmIndex;
1697
- connectedRealmSearch: typeof connectedRealmSearch;
1698
- creature: typeof creature;
1699
- creatureDisplayMedia: typeof creatureDisplayMedia;
1700
- creatureFamily: typeof creatureFamily;
1701
- creatureFamilyIndex: typeof creatureFamilyIndex;
1702
- creatureFamilyMedia: typeof creatureFamilyMedia;
1703
- creatureSearch: typeof creatureSearch;
1704
- creatureType: typeof creatureType;
1705
- creatureTypeIndex: typeof creatureTypeIndex;
1706
- guild: typeof guild;
1707
- guildAchievements: typeof guildAchievements;
1708
- guildActivity: typeof guildActivity;
1709
- guildRoster: typeof guildRoster;
1710
- guildCrestBorder: typeof guildCrestBorder;
1711
- guildCrestComponentsIndex: typeof guildCrestComponentsIndex;
1712
- guildCrestEmblem: typeof guildCrestEmblem;
1713
- item: typeof item;
1714
- itemClass: typeof itemClass;
1715
- itemClassIndex: typeof itemClassIndex;
1716
- itemMedia: typeof itemMedia;
1717
- itemSearch: typeof itemSearch;
1718
- itemSubClass: typeof itemSubClass;
1719
- mediaSearch: typeof mediaSearch;
1720
- playableClass: typeof playableClass;
1721
- playableClassIndex: typeof playableClassIndex;
1722
- playableClassMedia: typeof playableClassMedia;
1723
- playableRace: typeof playableRace;
1724
- playableRaceIndex: typeof playableRaceIndex;
1725
- powerType: typeof powerType;
1726
- powerTypeIndex: typeof powerTypeIndex;
1727
- pvpLeaderboard: typeof pvpLeaderboard;
1728
- pvpLeaderboardIndex: typeof pvpLeaderboardIndex;
1729
- pvpRegionalSeason: typeof pvpRegionalSeason;
1730
- pvpRegionalSeasonIndex: typeof pvpRegionalSeasonIndex;
1731
- pvpRegionIndex: typeof pvpRegionIndex;
1732
- pvpRewardsIndex: typeof pvpRewardsIndex;
1733
- pvpSeason: typeof pvpSeason;
1734
- pvpSeasonIndex: typeof pvpSeasonIndex;
1735
- realm: typeof realm;
1736
- realmIndex: typeof realmIndex;
1737
- realmSearch: typeof realmSearch;
1738
- region: typeof region;
1739
- regionIndex: typeof regionIndex;
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
- export { type AuctionHouseIndexResponse, type AuctionsResponse, type CharacterAchievementStatisticsResponse, type CharacterAchievementsSummaryResponse, type CharacterEquipmentSummaryResponse, type CharacterHunterPetsSummaryResponse, type CharacterMediaSummaryResponse, type CharacterProfileStatusResponse, type CharacterProfileSummaryResponse, type CharacterSpecializationsSummaryResponse, type CharacterStatisticsSummaryResponse, type ConnectedRealmIndexResponse, type ConnectedRealmResponse, type ConnectedRealmSearchParameters, type ConnectedRealmSearchResponseItem, type CreatureDisplayMediaResponse, type CreatureFamilyIndexResponse, type CreatureFamilyMediaResponse, type CreatureFamilyResponse, type CreatureResponse, type CreatureSearchParameters, type CreatureSearchResponseItem, type CreatureTypeIndexResponse, type CreatureTypeResponse, type GuildAchievementsClassicEraResponse, type GuildAchievementsResponse, type GuildActivityResponse, type GuildCrestBorderEmblemResponse, type GuildCrestComponentsIndexResponse, type GuildResponse, type GuildRosterResponse, type ItemClassIndexResponse, type ItemClassResponse, type ItemMediaResponse, type ItemResponse, type ItemSearchParameters, type ItemSearchResponseItem, type ItemSubClassResponse, type MediaSearchParameters, type MediaSearchResponseItem, type PlayableClassIndexResponse, type PlayableClassMediaResponse, type PlayableClassResponse, type PlayableRaceIndexResponse, type PlayableRaceResponse, type PowerTypeIndexResponse, type PowerTypeResponse, type PvpSeasonIndexResponse, type PvpSeasonResponse, type RealmCategory, type RealmIndexResponse, type RealmResponse, type RealmSearchParameters, type RealmSearchResponseItem, type RealmTimezone, type RealmType, type RealmTypeCapitalized, type RegionIndexResponse, type RegionResponse, type 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 };
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