@blizzard-api/classic-wow 2.1.3 → 3.0.0

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.js CHANGED
@@ -1,86 +1,36 @@
1
- //#region ../wow/src/base.ts
2
- /**
3
-
4
- * @file base.ts
5
-
6
- * @module base
7
-
8
- * @description Contains base constants and interfaces for the Blizzard API.
9
-
10
- */
11
- /**
12
-
13
- * The base request path for the Blizzard API for world of warcraft.
14
-
15
- */
16
- const base = "/data/wow";
17
- /**
18
-
19
- * The base request path for media in the Blizzard API for world of warcraft.
20
-
21
- */
22
- const mediaBase = `${base}/media`;
23
- /**
1
+ import { wowBasePath, wowCharacterBasePath, wowMediaBasePath, wowSearchBasePath } from "@blizzard-api/core";
24
2
 
25
- * The base request path for search in the Blizzard API for world of warcraft.
26
-
27
- */
28
- const searchBase = `${base}/search`;
29
-
30
- //#endregion
31
3
  //#region src/auction-house/auction-house.ts
32
4
  /**
33
-
34
5
  * Returns an index of auction houses for a connected realm.
35
-
36
6
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
37
-
38
7
  * @param connectedRealmId The ID of the connected realm.
39
-
40
8
  * @returns The auction house index. See {@link AuctionHouseIndexResponse}.
41
-
42
9
  */
43
10
  function auctionHouseIndex(namespace, connectedRealmId) {
44
11
  return {
45
12
  namespace,
46
- path: `${base}/connected-realm/${connectedRealmId}/auctions/index`
13
+ path: `${wowBasePath}/connected-realm/${connectedRealmId}/auctions/index`
47
14
  };
48
15
  }
49
16
  /**
50
-
51
17
  * Returns all active auctions for a specific auction house on a connected realm.
52
-
53
18
  *
54
-
55
19
  * Auction house data updates at a set interval. The value was initially set at 1 hour; however, it might change over time without notice.
56
-
57
20
  *
58
-
59
21
  * Depending on the number of active auctions on the specified connected realm, the response from this endpoint may be rather large, sometimes exceeding 10 MB.
60
-
61
22
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
62
-
63
23
  * @param connectedRealmId The ID of the connected realm.
64
-
65
24
  * @param auctionHouseId The ID of the auction house.
66
-
67
25
  * @returns The auction house data. See {@link AuctionsResponse}.
68
-
69
26
  */
70
27
  function auctions(namespace, connectedRealmId, auctionHouseId) {
71
28
  return {
72
29
  namespace,
73
- path: `${base}/connected-realm/${connectedRealmId}/auctions/${auctionHouseId}`
30
+ path: `${wowBasePath}/connected-realm/${connectedRealmId}/auctions/${auctionHouseId}`
74
31
  };
75
32
  }
76
33
 
77
- //#endregion
78
- //#region src/base.ts
79
- /**
80
- * The base request path for the character API for Classic World of Warcraft.
81
- */
82
- const characterBase = "profile/wow/character";
83
-
84
34
  //#endregion
85
35
  //#region src/character-achievements/character-achievements.ts
86
36
  /**
@@ -92,7 +42,7 @@ const characterBase = "profile/wow/character";
92
42
  function characterAchievementsSummary(namespace, realmSlug, characterName) {
93
43
  return {
94
44
  namespace,
95
- path: `${characterBase}/${realmSlug}/${characterName.toLowerCase()}/achievements`
45
+ path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/achievements`
96
46
  };
97
47
  }
98
48
  /**
@@ -104,7 +54,7 @@ function characterAchievementsSummary(namespace, realmSlug, characterName) {
104
54
  function characterAchievementStatistics(namespace, realmSlug, characterName) {
105
55
  return {
106
56
  namespace,
107
- path: `${characterBase}/${realmSlug}/${characterName.toLowerCase()}/achievements/statistics`
57
+ path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/achievements/statistics`
108
58
  };
109
59
  }
110
60
 
@@ -120,7 +70,7 @@ function characterAchievementStatistics(namespace, realmSlug, characterName) {
120
70
  function characterEquipmentSummary(namespace, realmSlug, characterName) {
121
71
  return {
122
72
  namespace,
123
- path: `${characterBase}/${realmSlug}/${characterName}/equipment`
73
+ path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/equipment`
124
74
  };
125
75
  }
126
76
 
@@ -136,7 +86,7 @@ function characterEquipmentSummary(namespace, realmSlug, characterName) {
136
86
  function characterHunterPetsSummary(namespace, realmSlug, characterName) {
137
87
  return {
138
88
  namespace,
139
- path: `${characterBase}/${realmSlug}/${characterName}/hunter-pets`
89
+ path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/hunter-pets`
140
90
  };
141
91
  }
142
92
 
@@ -151,7 +101,7 @@ function characterHunterPetsSummary(namespace, realmSlug, characterName) {
151
101
  function characterMediaSummary(namespace, realmSlug, characterName) {
152
102
  return {
153
103
  namespace,
154
- path: `${characterBase}/${realmSlug}/${characterName}/character-media`
104
+ path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/character-media`
155
105
  };
156
106
  }
157
107
 
@@ -177,7 +127,7 @@ function characterMediaSummary(namespace, realmSlug, characterName) {
177
127
  function characterProfileStatus(namespace, realmSlug, characterName) {
178
128
  return {
179
129
  namespace,
180
- path: `${characterBase}/${realmSlug}/${characterName.toLowerCase()}/status`
130
+ path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}/status`
181
131
  };
182
132
  }
183
133
  /**
@@ -190,7 +140,7 @@ function characterProfileStatus(namespace, realmSlug, characterName) {
190
140
  function characterProfileSummary(namespace, realmSlug, characterName) {
191
141
  return {
192
142
  namespace,
193
- path: `${characterBase}/${realmSlug}/${characterName.toLowerCase()}`
143
+ path: `${wowCharacterBasePath}/${realmSlug}/${characterName.toLowerCase()}`
194
144
  };
195
145
  }
196
146
 
@@ -205,7 +155,7 @@ function characterProfileSummary(namespace, realmSlug, characterName) {
205
155
  function characterSpecializationsSummary(namespace, realmSlug, characterName) {
206
156
  return {
207
157
  namespace,
208
- path: `${characterBase}/${realmSlug}/${characterName}/specializations`
158
+ path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/specializations`
209
159
  };
210
160
  }
211
161
 
@@ -220,54 +170,40 @@ function characterSpecializationsSummary(namespace, realmSlug, characterName) {
220
170
  function characterStatisticsSummary(namespace, realmSlug, characterName) {
221
171
  return {
222
172
  namespace,
223
- path: `${characterBase}/${realmSlug}/${characterName}/statistics`
173
+ path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/statistics`
224
174
  };
225
175
  }
226
176
 
227
177
  //#endregion
228
178
  //#region src/connected-realm/connected-realm.ts
229
179
  /**
230
-
231
180
  * Returns a connected realm by ID.
232
-
233
181
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
234
-
235
182
  * @param connectedRealmId The connected realm ID.
236
-
237
183
  * @returns The connected realm. See {@link ConnectedRealmResponse}.
238
-
239
184
  */
240
185
  function connectedRealm(namespace, connectedRealmId) {
241
186
  return {
242
187
  namespace,
243
- path: `${base}/connected-realm/${connectedRealmId}`
188
+ path: `${wowBasePath}/connected-realm/${connectedRealmId}`
244
189
  };
245
190
  }
246
191
  /**
247
-
248
192
  * Returns an index of connected realms.
249
-
250
193
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
251
-
252
194
  * @returns The connected realm index. See {@link ConnectedRealmIndexResponse}.
253
-
254
195
  */
255
196
  function connectedRealmIndex(namespace) {
256
197
  return {
257
198
  namespace,
258
- path: `${base}/connected-realm/index`
199
+ path: `${wowBasePath}/connected-realm/index`
259
200
  };
260
201
  }
261
202
  /**
262
-
263
203
  * Performs a search of connected realms.
264
-
265
204
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
266
-
267
205
  * @param options The search parameters. See {@link ConnectedRealmSearchParameters}.
268
-
269
- * @returns The search results. See {@link SearchResponse} & {@link ConnectedRealmSearchResponseItem}.
270
-
206
+ * @returns The search results. See {@link ConnectedRealmSearchResponse}.
271
207
  */
272
208
  function connectedRealmSearch(namespace, options) {
273
209
  return {
@@ -278,105 +214,76 @@ function connectedRealmSearch(namespace, options) {
278
214
  "realms.timezone": options["realms.timezone"],
279
215
  "status.type": options["status.type"]
280
216
  },
281
- path: `${base}/search/connected-realm`
217
+ path: `${wowBasePath}/search/connected-realm`
282
218
  };
283
219
  }
284
220
 
285
221
  //#endregion
286
222
  //#region src/creature/creature.ts
287
223
  /**
288
-
289
224
  * Returns a creature by ID.
290
-
291
225
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
292
-
293
226
  * @param creatureId The creature ID.
294
-
295
227
  * @returns The creature. See {@link CreatureResponse}.
296
-
297
228
  */
298
229
  function creature(namespace, creatureId) {
299
230
  return {
300
231
  namespace,
301
- path: `${base}/creature/${creatureId}`
232
+ path: `${wowBasePath}/creature/${creatureId}`
302
233
  };
303
234
  }
304
235
  /**
305
-
306
236
  * Returns media for a creature display by ID.
307
-
308
237
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
309
-
310
238
  * @param creatureDisplayId The creature display ID.
311
-
312
239
  * @returns The creature display media. See {@link CreatureDisplayMediaResponse}.
313
-
314
240
  */
315
241
  function creatureDisplayMedia(namespace, creatureDisplayId) {
316
242
  return {
317
243
  namespace,
318
- path: `${mediaBase}/creature-display/${creatureDisplayId}`
244
+ path: `${wowMediaBasePath}/creature-display/${creatureDisplayId}`
319
245
  };
320
246
  }
321
247
  /**
322
-
323
248
  * Returns a creature family by ID.
324
-
325
249
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
326
-
327
250
  * @param creatureFamilyId The creature family ID.
328
-
329
251
  * @returns The creature family. See {@link CreatureFamilyResponse}.
330
-
331
252
  */
332
253
  function creatureFamily(namespace, creatureFamilyId) {
333
254
  return {
334
255
  namespace,
335
- path: `${base}/creature-family/${creatureFamilyId}`
256
+ path: `${wowBasePath}/creature-family/${creatureFamilyId}`
336
257
  };
337
258
  }
338
259
  /**
339
-
340
260
  * Returns an index of creature families.
341
-
342
261
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
343
-
344
262
  * @returns The creature family index. See {@link CreatureFamilyIndexResponse}.
345
-
346
263
  */
347
264
  function creatureFamilyIndex(namespace) {
348
265
  return {
349
266
  namespace,
350
- path: `${base}/creature-family/index`
267
+ path: `${wowBasePath}/creature-family/index`
351
268
  };
352
269
  }
353
270
  /**
354
-
355
271
  * Returns media for a creature family by ID.
356
-
357
272
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
358
-
359
273
  * @param creatureFamilyId The creature family ID.
360
-
361
274
  * @returns The creature family media. See {@link CreatureFamilyMediaResponse}.
362
-
363
275
  */
364
276
  function creatureFamilyMedia(namespace, creatureFamilyId) {
365
277
  return {
366
278
  namespace,
367
- path: `${mediaBase}/creature-family/${creatureFamilyId}`
279
+ path: `${wowMediaBasePath}/creature-family/${creatureFamilyId}`
368
280
  };
369
281
  }
370
282
  /**
371
-
372
283
  * Performs a search of creatures.
373
-
374
284
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
375
-
376
285
  * @param options The creature search parameters. See {@link CreatureSearchParameters}.
377
-
378
- * @returns The creature search results. See {@link SearchResponse} & {@link CreatureSearchResponseItem}.
379
-
286
+ * @returns The creature search results. See {@link CreatureSearchResponse}.
380
287
  */
381
288
  function creatureSearch(namespace, options) {
382
289
  return {
@@ -386,91 +293,68 @@ function creatureSearch(namespace, options) {
386
293
  [`name.${options.locale}`]: options.name,
387
294
  orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby
388
295
  },
389
- path: `${searchBase}/creature`
296
+ path: `${wowSearchBasePath}/creature`
390
297
  };
391
298
  }
392
299
  /**
393
-
394
300
  * Returns a creature type by ID.
395
-
396
301
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
397
-
398
302
  * @param creatureTypeId The creature type ID.
399
-
400
303
  * @returns The creature type. See {@link CreatureTypeResponse}.
401
-
402
304
  */
403
305
  function creatureType(namespace, creatureTypeId) {
404
306
  return {
405
307
  namespace,
406
- path: `${base}/creature-type/${creatureTypeId}`
308
+ path: `${wowBasePath}/creature-type/${creatureTypeId}`
407
309
  };
408
310
  }
409
311
  /**
410
-
411
312
  * Returns an index of creature types.
412
-
413
313
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
414
-
415
314
  * @returns The creature type index. See {@link CreatureTypeIndexResponse}.
416
-
417
315
  */
418
316
  function creatureTypeIndex(namespace) {
419
317
  return {
420
318
  namespace,
421
- path: `${base}/creature-type/index`
319
+ path: `${wowBasePath}/creature-type/index`
422
320
  };
423
321
  }
424
322
 
425
323
  //#endregion
426
324
  //#region src/guild-crest/guild-crest.ts
427
325
  /**
428
-
429
326
  * Returns media for a guild crest border by ID.
430
-
431
327
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
432
-
433
328
  * @param borderId The guild crest border ID.
434
-
435
329
  * @returns The guild crest border. See {@link GuildCrestBorderEmblemResponse}.
436
-
437
330
  */
438
331
  function guildCrestBorder(namespace, borderId) {
439
332
  return {
440
333
  namespace,
441
- path: `${mediaBase}/guild-crest/border/${borderId}`
334
+ path: `${wowMediaBasePath}/guild-crest/border/${borderId}`
442
335
  };
443
336
  }
444
337
  /**
445
-
446
338
  * Returns an index of guild crest media.
447
-
448
339
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
449
-
450
340
  * @returns The guild crest components index. See {@link GuildCrestComponentsIndexResponse}.
451
-
452
341
  */
453
342
  function guildCrestComponentsIndex(namespace) {
454
343
  return {
455
344
  namespace,
456
- path: `${base}/guild-crest/index`
345
+ path: `${wowBasePath}/guild-crest/index`
457
346
  };
458
347
  }
459
348
  /**
460
-
461
349
  * Returns media for a guild crest emblem by ID.
462
-
463
350
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
464
-
465
351
  * @param emblemId The guild crest emblem ID.
466
-
467
352
  * @returns The guild crest emblem. See {@link GuildCrestBorderEmblemResponse}.
468
-
469
353
  */
470
354
  function guildCrestEmblem(namespace, emblemId) {
471
355
  return {
472
356
  namespace,
473
- path: `${mediaBase}/guild-crest/emblem/${emblemId}`
357
+ path: `${wowMediaBasePath}/guild-crest/emblem/${emblemId}`
474
358
  };
475
359
  }
476
360
 
@@ -529,81 +413,57 @@ function guildRoster(namespace, realmSlug, nameSlug) {
529
413
  //#endregion
530
414
  //#region src/item/item.ts
531
415
  /**
532
-
533
416
  * Get an item by ID.
534
-
535
417
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
536
-
537
418
  * @param itemId The item ID.
538
-
539
419
  * @returns The item. See {@link ItemResponse}.
540
-
541
420
  */
542
421
  function item(namespace, itemId) {
543
422
  return {
544
423
  namespace,
545
- path: `${base}/item/${itemId}`
424
+ path: `${wowBasePath}/item/${itemId}`
546
425
  };
547
426
  }
548
427
  /**
549
-
550
428
  * Get an item class by ID.
551
-
552
429
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
553
-
554
430
  * @param itemClassId The item class ID.
555
-
556
431
  * @returns The item class. See {@link ItemClassResponse}.
557
-
558
432
  */
559
433
  function itemClass(namespace, itemClassId) {
560
434
  return {
561
435
  namespace,
562
- path: `${base}/item-class/${itemClassId}`
436
+ path: `${wowBasePath}/item-class/${itemClassId}`
563
437
  };
564
438
  }
565
439
  /**
566
-
567
440
  * Get an item class index.
568
-
569
441
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
570
-
571
442
  * @returns The item class index. See {@link ItemClassIndexResponse}.
572
-
573
443
  */
574
444
  function itemClassIndex(namespace) {
575
445
  return {
576
446
  namespace,
577
- path: `${base}/item-class/index`
447
+ path: `${wowBasePath}/item-class/index`
578
448
  };
579
449
  }
580
450
  /**
581
-
582
451
  * Get item media by ID.
583
-
584
452
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
585
-
586
453
  * @param itemId The item ID.
587
-
588
454
  * @returns The item media. See {@link ItemMediaResponse}.
589
-
590
455
  */
591
456
  function itemMedia(namespace, itemId) {
592
457
  return {
593
458
  namespace,
594
- path: `${mediaBase}/item/${itemId}`
459
+ path: `${wowMediaBasePath}/item/${itemId}`
595
460
  };
596
461
  }
597
462
  /**
598
-
599
463
  * Search for items.
600
-
601
464
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
602
-
603
465
  * @param options The search parameters. See {@link ItemSearchParameters}.
604
-
605
- * @returns The search results. See {@link SearchResponse}.
606
-
466
+ * @returns The search results. See {@link ItemSearchResponse}.
607
467
  */
608
468
  function itemSearch(namespace, options) {
609
469
  return {
@@ -613,41 +473,30 @@ function itemSearch(namespace, options) {
613
473
  [`name.${options.locale}`]: options.name,
614
474
  orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby
615
475
  },
616
- path: `${searchBase}/item`
476
+ path: `${wowSearchBasePath}/item`
617
477
  };
618
478
  }
619
479
  /**
620
-
621
480
  * Get an item subclass by ID.
622
-
623
481
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
624
-
625
482
  * @param itemClassId The item class ID.
626
-
627
483
  * @param itemSubclassId The item subclass ID.
628
-
629
484
  * @returns The item subclass. See {@link ItemSubClassResponse}.
630
-
631
485
  */
632
486
  function itemSubClass(namespace, itemClassId, itemSubclassId) {
633
487
  return {
634
488
  namespace,
635
- path: `${base}/item-class/${itemClassId}/item-subclass/${itemSubclassId}`
489
+ path: `${wowBasePath}/item-class/${itemClassId}/item-subclass/${itemSubclassId}`
636
490
  };
637
491
  }
638
492
 
639
493
  //#endregion
640
494
  //#region src/media-search/media-search.ts
641
495
  /**
642
-
643
496
  * Search for media.
644
-
645
497
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
646
-
647
498
  * @param options The search parameters. See {@link MediaSearchParameters}.
648
-
649
- * @returns The search results. See {@link SearchResponse}.
650
-
499
+ * @returns The search results. See {@link MediaSearchResponse}.
651
500
  */
652
501
  function mediaSearch(namespace, options) {
653
502
  return {
@@ -657,321 +506,232 @@ function mediaSearch(namespace, options) {
657
506
  orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
658
507
  tags: options.tags
659
508
  },
660
- path: `${searchBase}/media`
509
+ path: `${wowSearchBasePath}/media`
661
510
  };
662
511
  }
663
512
 
664
513
  //#endregion
665
514
  //#region src/playable-class/playable-class.ts
666
515
  /**
667
-
668
516
  * Get a playable class by ID.
669
-
670
517
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
671
-
672
518
  * @param playableClassId The playable class ID.
673
-
674
519
  * @returns The playable class. See {@link PlayableClassResponse}.
675
-
676
520
  */
677
521
  function playableClass(namespace, playableClassId) {
678
522
  return {
679
523
  namespace,
680
- path: `${base}/playable-class/${playableClassId}`
524
+ path: `${wowBasePath}/playable-class/${playableClassId}`
681
525
  };
682
526
  }
683
527
  /**
684
-
685
528
  * Get a playable class index.
686
-
687
529
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
688
-
689
530
  * @returns The playable class index. See {@link PlayableClassIndexResponse}.
690
-
691
531
  */
692
532
  function playableClassIndex(namespace) {
693
533
  return {
694
534
  namespace,
695
- path: `${base}/playable-class/index`
535
+ path: `${wowBasePath}/playable-class/index`
696
536
  };
697
537
  }
698
538
  /**
699
-
700
539
  * Get playable class media by ID.
701
-
702
540
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
703
-
704
541
  * @param playableClassId The playable class ID.
705
-
706
542
  * @returns The playable class media. See {@link PlayableClassMediaResponse}.
707
-
708
543
  */
709
544
  function playableClassMedia(namespace, playableClassId) {
710
545
  return {
711
546
  namespace,
712
- path: `${mediaBase}/playable-class/${playableClassId}`
547
+ path: `${wowMediaBasePath}/playable-class/${playableClassId}`
713
548
  };
714
549
  }
715
550
 
716
551
  //#endregion
717
552
  //#region src/playable-race/playable-race.ts
718
553
  /**
719
-
720
554
  * Get a playable race by ID.
721
-
722
555
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
723
-
724
556
  * @param playableRaceId The playable race ID.
725
-
726
557
  * @returns The playable race. See {@link PlayableRaceResponse}.
727
-
728
558
  */
729
559
  function playableRace(namespace, playableRaceId) {
730
560
  return {
731
561
  namespace,
732
- path: `${base}/playable-race/${playableRaceId}`
562
+ path: `${wowBasePath}/playable-race/${playableRaceId}`
733
563
  };
734
564
  }
735
565
  /**
736
-
737
566
  * Get a playable race index.
738
-
739
567
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
740
-
741
568
  * @returns The playable race index. See {@link PlayableRaceIndexResponse}.
742
-
743
569
  */
744
570
  function playableRaceIndex(namespace) {
745
571
  return {
746
572
  namespace,
747
- path: `${base}/playable-race/index`
573
+ path: `${wowBasePath}/playable-race/index`
748
574
  };
749
575
  }
750
576
 
751
577
  //#endregion
752
578
  //#region src/power-type/power-type.ts
753
579
  /**
754
-
755
580
  * Get a power type by ID.
756
-
757
581
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
758
-
759
582
  * @param powerTypeId The power type ID.
760
-
761
583
  * @returns The power type. See {@link PowerTypeResponse}.
762
-
763
584
  */
764
585
  function powerType(namespace, powerTypeId) {
765
586
  return {
766
587
  namespace,
767
- path: `${base}/power-type/${powerTypeId}`
588
+ path: `${wowBasePath}/power-type/${powerTypeId}`
768
589
  };
769
590
  }
770
591
  /**
771
-
772
592
  * Get a power type index.
773
-
774
593
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
775
-
776
594
  * @returns The power type index. See {@link PowerTypeIndexResponse}.
777
-
778
595
  */
779
596
  function powerTypeIndex(namespace) {
780
597
  return {
781
598
  namespace,
782
- path: `${base}/power-type/index`
599
+ path: `${wowBasePath}/power-type/index`
783
600
  };
784
601
  }
785
602
 
786
603
  //#endregion
787
604
  //#region src/pvp-season/pvp-season.ts
788
605
  /**
789
-
790
606
  * Get a PvP leaderboard by PvP season ID and bracket.
791
-
792
607
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
793
-
794
608
  * @param pvpRegionId The PvP region ID.
795
-
796
609
  * @param pvpSeasonId The PvP season ID.
797
-
798
610
  * @param pvpBracket The PvP bracket.
799
-
800
611
  * @returns The PvP leaderboard.
801
-
802
612
  */
803
613
  function pvpLeaderboard(namespace, pvpRegionId, pvpSeasonId, pvpBracket) {
804
614
  return {
805
615
  namespace,
806
- path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-leaderboard/${pvpBracket}`
616
+ path: `${wowBasePath}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-leaderboard/${pvpBracket}`
807
617
  };
808
618
  }
809
619
  /**
810
-
811
620
  * Returns an index of PvP leaderboards for a PvP season in a given PvP region.
812
-
813
621
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
814
-
815
622
  * @param pvpRegionId The PvP region ID.
816
-
817
623
  * @param pvpSeasonId The PvP season ID.
818
-
819
624
  * @returns The PvP leaderboard index.
820
-
821
625
  */
822
626
  function pvpLeaderboardIndex(namespace, pvpRegionId, pvpSeasonId) {
823
627
  return {
824
628
  namespace,
825
- path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-leaderboard/index`
629
+ path: `${wowBasePath}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-leaderboard/index`
826
630
  };
827
631
  }
828
632
  /**
829
-
830
633
  * Returns a PvP season by region ID and season ID.
831
-
832
634
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
833
-
834
635
  * @param pvpRegionId The PvP region ID.
835
-
836
636
  * @param pvpSeasonId The PvP season ID.
837
-
838
637
  * @returns The PvP season.
839
-
840
638
  */
841
639
  function pvpRegionalSeason(namespace, pvpRegionId, pvpSeasonId) {
842
640
  return {
843
641
  namespace,
844
- path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}`
642
+ path: `${wowBasePath}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}`
845
643
  };
846
644
  }
847
645
  /**
848
-
849
646
  * Returns an index of PvP Seasons in a PvP region.
850
-
851
647
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
852
-
853
648
  * @param pvpRegionId The PvP region ID.
854
-
855
649
  * @returns The PvP season index. See {@link PvpSeasonIndexResponse}.
856
-
857
650
  */
858
651
  function pvpRegionalSeasonIndex(namespace, pvpRegionId) {
859
652
  return {
860
653
  namespace,
861
- path: `${base}/pvp-region/${pvpRegionId}/pvp-season/index`
654
+ path: `${wowBasePath}/pvp-region/${pvpRegionId}/pvp-season/index`
862
655
  };
863
656
  }
864
657
  /**
865
-
866
658
  * Returns an index of PvP Regions.
867
-
868
659
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
869
-
870
660
  * @returns The PvP region index.
871
-
872
661
  */
873
662
  function pvpRegionIndex(namespace) {
874
663
  return {
875
664
  namespace,
876
- path: `${base}/pvp-region/index`
665
+ path: `${wowBasePath}/pvp-region/index`
877
666
  };
878
667
  }
879
668
  /**
880
-
881
669
  * Returns an index of PvP rewards for a PvP season in a given PvP region.
882
-
883
670
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
884
-
885
671
  * @param pvpRegionId The PvP region ID.
886
-
887
672
  * @param pvpSeasonId The PvP season ID.
888
-
889
673
  * @returns The PvP reward index.
890
-
891
674
  */
892
675
  function pvpRewardsIndex(namespace, pvpRegionId, pvpSeasonId) {
893
676
  return {
894
677
  namespace,
895
- path: `${base}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-reward/index`
678
+ path: `${wowBasePath}/pvp-region/${pvpRegionId}/pvp-season/${pvpSeasonId}/pvp-reward/index`
896
679
  };
897
680
  }
898
681
  /**
899
-
900
682
  * Get a PvP season by ID.
901
-
902
683
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
903
-
904
684
  * @param pvpSeasonId The PvP season ID.
905
-
906
685
  * @returns The PvP season. See {@link PvpSeasonResponse}.
907
-
908
686
  */
909
687
  function pvpSeason(namespace, pvpSeasonId) {
910
688
  return {
911
689
  namespace,
912
- path: `${base}/pvp-season/${pvpSeasonId}`
690
+ path: `${wowBasePath}/pvp-season/${pvpSeasonId}`
913
691
  };
914
692
  }
915
693
  /**
916
-
917
694
  * Get a PvP season index.
918
-
919
695
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
920
-
921
696
  * @returns The PvP season index. See {@link PvpSeasonIndexResponse}.
922
-
923
697
  */
924
698
  function pvpSeasonIndex(namespace) {
925
699
  return {
926
700
  namespace,
927
- path: `${base}/pvp-season/index`
701
+ path: `${wowBasePath}/pvp-season/index`
928
702
  };
929
703
  }
930
704
 
931
705
  //#endregion
932
706
  //#region src/realm/realm.ts
933
707
  /**
934
-
935
708
  * Get a realm by slug.
936
-
937
709
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
938
-
939
710
  * @param realmSlug The realm slug.
940
-
941
711
  * @returns The realm. See {@link RealmResponse}.
942
-
943
712
  */
944
713
  function realm(namespace, realmSlug) {
945
714
  return {
946
715
  namespace,
947
- path: `${base}/realm/${realmSlug}`
716
+ path: `${wowBasePath}/realm/${realmSlug}`
948
717
  };
949
718
  }
950
719
  /**
951
-
952
720
  * Get a realm index.
953
-
954
721
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
955
-
956
722
  * @returns The realm index. See {@link RealmIndexResponse}.
957
-
958
723
  */
959
724
  function realmIndex(namespace) {
960
725
  return {
961
726
  namespace,
962
- path: `${base}/realm/index`
727
+ path: `${wowBasePath}/realm/index`
963
728
  };
964
729
  }
965
730
  /**
966
-
967
731
  * Search for realms.
968
-
969
732
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
970
-
971
733
  * @param options The search parameters. See {@link RealmSearchParameters}.
972
-
973
- * @returns The search results. See {@link SearchResponse}.
974
-
734
+ * @returns The search results. See {@link RealmSearchResponse}.
975
735
  */
976
736
  function realmSearch(namespace, options) {
977
737
  return {
@@ -981,42 +741,33 @@ function realmSearch(namespace, options) {
981
741
  orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby,
982
742
  timezone: options.timezone
983
743
  },
984
- path: `${searchBase}/realm`
744
+ path: `${wowSearchBasePath}/realm`
985
745
  };
986
746
  }
987
747
 
988
748
  //#endregion
989
749
  //#region src/region/region.ts
990
750
  /**
991
-
992
751
  * Get a region by ID.
993
-
994
752
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
995
-
996
753
  * @param regionId The region ID.
997
-
998
754
  * @returns The region. See {@link RegionResponse}.
999
-
1000
755
  */
1001
756
  function region(namespace, regionId) {
1002
757
  return {
1003
758
  namespace,
1004
- path: `${base}/region/${regionId}`
759
+ path: `${wowBasePath}/region/${regionId}`
1005
760
  };
1006
761
  }
1007
762
  /**
1008
-
1009
763
  * Get a region index.
1010
-
1011
764
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
1012
-
1013
765
  * @returns The region index. See {@link RegionIndexResponse}.
1014
-
1015
766
  */
1016
767
  function regionIndex(namespace) {
1017
768
  return {
1018
769
  namespace,
1019
- path: `${base}/region/index`
770
+ path: `${wowBasePath}/region/index`
1020
771
  };
1021
772
  }
1022
773
 
@@ -1080,8 +831,7 @@ const classicWow = {
1080
831
  region,
1081
832
  regionIndex
1082
833
  };
1083
- var src_default = classicWow;
1084
834
 
1085
835
  //#endregion
1086
- export { auctionHouseIndex, auctions, characterAchievementStatistics, characterAchievementsSummary, characterEquipmentSummary, characterHunterPetsSummary, characterMediaSummary, characterProfileStatus, characterProfileSummary, characterSpecializationsSummary, characterStatisticsSummary, classicWow, connectedRealm, connectedRealmIndex, connectedRealmSearch, creature, creatureDisplayMedia, creatureFamily, creatureFamilyIndex, creatureFamilyMedia, creatureSearch, creatureType, creatureTypeIndex, src_default 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 };
836
+ export { auctionHouseIndex, auctions, characterAchievementStatistics, characterAchievementsSummary, characterEquipmentSummary, characterHunterPetsSummary, characterMediaSummary, characterProfileStatus, characterProfileSummary, characterSpecializationsSummary, characterStatisticsSummary, classicWow, classicWow as default, connectedRealm, connectedRealmIndex, connectedRealmSearch, creature, creatureDisplayMedia, creatureFamily, creatureFamilyIndex, creatureFamilyMedia, creatureSearch, creatureType, creatureTypeIndex, 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 };
1087
837
  //# sourceMappingURL=index.js.map