@blizzard-api/wow 0.2.2 → 0.2.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.js CHANGED
@@ -7,30 +7,53 @@ var searchBase = `${base}/search`;
7
7
  var achievementBase = `${base}/achievement`;
8
8
  var achievementCategoryBase = `${base}/achievement-category`;
9
9
  var achievementApi = {
10
+ /**
11
+ * Get an achievement category by ID.
12
+ * @param achievementCategoryId The achievement category ID.
13
+ * @returns The achievement category. See {@link AchievementCategoryResponse}.
14
+ */
10
15
  achievementCategory: (achievementCategoryId) => {
11
16
  return {
12
17
  path: `${achievementCategoryBase}/${achievementCategoryId}`,
13
18
  namespace: "static"
14
19
  };
15
20
  },
21
+ /**
22
+ * Get an achievement category index.
23
+ * @returns The achievement category index. See {@link AchievementCategoryIndexResponse}.
24
+ */
16
25
  achievementCategoryIndex: () => {
17
26
  return {
18
27
  path: `${achievementCategoryBase}/index`,
19
28
  namespace: "static"
20
29
  };
21
30
  },
31
+ /**
32
+ * Get an achievement by ID.
33
+ * @param achievementId The achievement ID.
34
+ * @returns The achievement. See {@link AchievementResponse}.
35
+ */
22
36
  achievement: (achievementId) => {
23
37
  return {
24
38
  path: `${achievementBase}/${achievementId}`,
25
39
  namespace: "static"
26
40
  };
27
41
  },
42
+ /**
43
+ * Get an achievement index.
44
+ * @returns The achievement index. See {@link AchievementIndexResponse}.
45
+ */
28
46
  achievementIndex: () => {
29
47
  return {
30
48
  path: `${achievementBase}/index`,
31
49
  namespace: "static"
32
50
  };
33
51
  },
52
+ /**
53
+ * Get achievement media by ID.
54
+ * @param achievementId The achievement ID.
55
+ * @returns The achievement media. See {@link AchievementMediaResponse}.
56
+ */
34
57
  achievementMedia: (achievementId) => {
35
58
  return { path: `${mediaBase}/achievement/${achievementId}`, namespace: "static" };
36
59
  }
@@ -38,12 +61,21 @@ var achievementApi = {
38
61
 
39
62
  // src/auction-house/auction-house.ts
40
63
  var auctionHouseApi = {
64
+ /**
65
+ * Get auction house data for a connected realm.
66
+ * @param connectedRealmId The ID of the connected realm.
67
+ * @returns The auction house data. See {@link AuctionHouseResponse}.
68
+ */
41
69
  auctions: (connectedRealmId) => {
42
70
  return {
43
71
  path: `${base}/connected-realm/${connectedRealmId}/auctions`,
44
72
  namespace: "dynamic"
45
73
  };
46
74
  },
75
+ /**
76
+ * Get auction house data for all connected realms.
77
+ * @returns The auction house data. See {@link AuctionHouseResponse}.
78
+ */
47
79
  commodities: () => {
48
80
  return {
49
81
  path: `${base}/auctions/commodities`,
@@ -54,21 +86,40 @@ var auctionHouseApi = {
54
86
 
55
87
  // src/azerite-essence/azerite-essence.ts
56
88
  var azeriteEssenceApi = {
89
+ /**
90
+ * Get an azerite essence by ID.
91
+ * @param azeriteEssenceId The azerite essence ID.
92
+ * @returns The azerite essence. See {@link AzeriteEssenceResponse}.
93
+ */
57
94
  azeriteEssence: (azeriteEssenceId) => {
58
95
  return {
59
96
  path: `${base}/azerite-essence/${azeriteEssenceId}`,
60
97
  namespace: "static"
61
98
  };
62
99
  },
100
+ /**
101
+ * Get an azerite essence index.
102
+ * @returns The azerite essence index. See {@link AzeriteEssenceIndexResponse}.
103
+ */
63
104
  azeriteEssenceIndex: () => {
64
105
  return {
65
106
  path: `${base}/azerite-essence/index`,
66
107
  namespace: "static"
67
108
  };
68
109
  },
110
+ /**
111
+ * Get azerite essence media by ID.
112
+ * @param azeriteEssenceId The azerite essence ID.
113
+ * @returns The azerite essence media. See {@link AzeriteEssenceMediaResponse}.
114
+ */
69
115
  azeriteEssenceMedia: (azeriteEssenceId) => {
70
116
  return { path: `${mediaBase}/azerite-essence/${azeriteEssenceId}`, namespace: "static" };
71
117
  },
118
+ /**
119
+ * Search for azerite essences.
120
+ * @param options The search parameters. See {@link AzeriteEssenceSearchParameters}.
121
+ * @returns The search results. See {@link SearchResponse}.
122
+ */
72
123
  azeriteEssenceSearch: (options) => {
73
124
  return {
74
125
  path: `${searchBase}/azerite-essence`,
@@ -84,18 +135,32 @@ var azeriteEssenceApi = {
84
135
 
85
136
  // src/connected-realm/connected-realm.ts
86
137
  var connectedRealmApi = {
138
+ /**
139
+ * Get a connected realm index.
140
+ * @returns The connected realm index. See {@link ConnectedRealmIndexResponse}.
141
+ */
87
142
  connectedRealmIndex: () => {
88
143
  return {
89
144
  path: `${base}/connected-realm/index`,
90
145
  namespace: "dynamic"
91
146
  };
92
147
  },
148
+ /**
149
+ * Get a connected realm by ID.
150
+ * @param connectedRealmId The connected realm ID.
151
+ * @returns The connected realm. See {@link ConnectedRealmResponse}.
152
+ */
93
153
  connectedRealm: (connectedRealmId) => {
94
154
  return {
95
155
  path: `${base}/connected-realm/${connectedRealmId}`,
96
156
  namespace: "dynamic"
97
157
  };
98
158
  },
159
+ /**
160
+ * Search for connected realms.
161
+ * @param options The search parameters. See {@link ConnectedRealmSearchParameters}.
162
+ * @returns The search results. See {@link SearchResponse} & {@link ConnectedRealmSearchResponseItem}.
163
+ */
99
164
  connectedRealmSearch: (options) => {
100
165
  return {
101
166
  namespace: "dynamic",
@@ -112,42 +177,74 @@ var connectedRealmApi = {
112
177
 
113
178
  // src/covenant/covenant.ts
114
179
  var covenantApi = {
180
+ /**
181
+ * Get a conduit by ID.
182
+ * @param conduitId The conduit ID.
183
+ * @returns The conduit. See {@link ConduitResponse}.
184
+ */
115
185
  conduit: (conduitId) => {
116
186
  return {
117
187
  path: `${base}/covenant/conduit/${conduitId}`,
118
188
  namespace: "static"
119
189
  };
120
190
  },
191
+ /**
192
+ * Get a conduit index.
193
+ * @returns The conduit index. See {@link ConduitIndexResponse}.
194
+ */
121
195
  conduitIndex: () => {
122
196
  return {
123
197
  path: `${base}/covenant/conduit/index`,
124
198
  namespace: "static"
125
199
  };
126
200
  },
201
+ /**
202
+ * Get a covenant by ID.
203
+ * @param covenantId The covenant ID.
204
+ * @returns The covenant. See {@link CovenantResponse}.
205
+ */
127
206
  covenant: (covenantId) => {
128
207
  return {
129
208
  path: `${base}/covenant/${covenantId}`,
130
209
  namespace: "static"
131
210
  };
132
211
  },
212
+ /**
213
+ * Get a covenant index.
214
+ * @returns The covenant index. See {@link CovenantIndexResponse}.
215
+ */
133
216
  covenantIndex: () => {
134
217
  return {
135
218
  path: `${base}/covenant/index`,
136
219
  namespace: "static"
137
220
  };
138
221
  },
222
+ /**
223
+ * Get covenant media by ID.
224
+ * @param covenantId The covenant ID.
225
+ * @returns The covenant media. See {@link CovenantMediaResponse}.
226
+ */
139
227
  covenantMedia: (covenantId) => {
140
228
  return {
141
229
  path: `${mediaBase}/covenant/${covenantId}`,
142
230
  namespace: "static"
143
231
  };
144
232
  },
233
+ /**
234
+ * Get a soulbind by ID.
235
+ * @param soulbindId The soulbind ID.
236
+ * @returns The soulbind. See {@link SoulbindResponse}.
237
+ */
145
238
  soulbind: (soulbindId) => {
146
239
  return {
147
240
  path: `${base}/covenant/soulbind/${soulbindId}`,
148
241
  namespace: "static"
149
242
  };
150
243
  },
244
+ /**
245
+ * Get a soulbind index.
246
+ * @returns The soulbind index. See {@link SoulbindIndexResponse}.
247
+ */
151
248
  soulbindIndex: () => {
152
249
  return {
153
250
  path: `${base}/covenant/soulbind/index`,
@@ -158,48 +255,86 @@ var covenantApi = {
158
255
 
159
256
  // src/creature/creature.ts
160
257
  var creatureApi = {
258
+ /**
259
+ * Get a creature by ID.
260
+ * @param creatureId The creature ID.
261
+ * @returns The creature. See {@link CreatureResponse}.
262
+ */
161
263
  creature: (creatureId) => {
162
264
  return {
163
265
  path: `${base}/creature/${creatureId}`,
164
266
  namespace: "static"
165
267
  };
166
268
  },
269
+ /**
270
+ * Get creature display media by ID.
271
+ * @param creatureDisplayId The creature display ID.
272
+ * @returns The creature display media. See {@link CreatureDisplayMediaResponse}.
273
+ */
167
274
  creatureDisplayMedia: (creatureDisplayId) => {
168
275
  return {
169
276
  path: `${mediaBase}/creature-display/${creatureDisplayId}`,
170
277
  namespace: "static"
171
278
  };
172
279
  },
280
+ /**
281
+ * Get a creature family by ID.
282
+ * @param creatureFamilyId The creature family ID.
283
+ * @returns The creature family. See {@link CreatureFamilyResponse}.
284
+ */
173
285
  creatureFamily: (creatureFamilyId) => {
174
286
  return {
175
287
  path: `${base}/creature-family/${creatureFamilyId}`,
176
288
  namespace: "static"
177
289
  };
178
290
  },
291
+ /**
292
+ * Get a creature family index.
293
+ * @returns The creature family index. See {@link CreatureFamilyIndexResponse}.
294
+ */
179
295
  creatureFamilyIndex: () => {
180
296
  return {
181
297
  path: `${base}/creature-family/index`,
182
298
  namespace: "static"
183
299
  };
184
300
  },
301
+ /**
302
+ * Get creature family media by ID.
303
+ * @param creatureFamilyId The creature family ID.
304
+ * @returns The creature family media. See {@link CreatureFamilyMediaResponse}.
305
+ */
185
306
  creatureFamilyMedia: (creatureFamilyId) => {
186
307
  return {
187
308
  path: `${mediaBase}/creature-family/${creatureFamilyId}`,
188
309
  namespace: "static"
189
310
  };
190
311
  },
312
+ /**
313
+ * Get a creature type by ID.
314
+ * @param creatureTypeId The creature type ID.
315
+ * @returns The creature type. See {@link CreatureTypeResponse}.
316
+ */
191
317
  creatureType: (creatureTypeId) => {
192
318
  return {
193
319
  path: `${base}/creature-type/${creatureTypeId}`,
194
320
  namespace: "static"
195
321
  };
196
322
  },
323
+ /**
324
+ * Get a creature type index.
325
+ * @returns The creature type index. See {@link CreatureTypeIndexResponse}.
326
+ */
197
327
  creatureTypeIndex: () => {
198
328
  return {
199
329
  path: `${base}/creature-type/index`,
200
330
  namespace: "static"
201
331
  };
202
332
  },
333
+ /**
334
+ * Search for creatures.
335
+ * @param options The creature search parameters. See {@link CreatureSearchParameters}.
336
+ * @returns The creature search results. See {@link SearchResponse}.
337
+ */
203
338
  creatureSearch: (options) => {
204
339
  return {
205
340
  namespace: "static",
@@ -215,18 +350,32 @@ var creatureApi = {
215
350
 
216
351
  // src/guild-crest/guild-crest.ts
217
352
  var guildCrestApi = {
353
+ /**
354
+ * Get the guild crest components index.
355
+ * @returns The guild crest components index. See {@link GuildCrestComponentsIndexResponse}.
356
+ */
218
357
  guildCrestComponentsIndex: () => {
219
358
  return {
220
359
  path: `${base}/guild-crest/index`,
221
360
  namespace: "static"
222
361
  };
223
362
  },
363
+ /**
364
+ * Get a guild crest border by ID.
365
+ * @param borderId The guild crest border ID.
366
+ * @returns The guild crest border. See {@link GuildCrestBorderEmblemResponse}.
367
+ */
224
368
  guildCrestBorder: (borderId) => {
225
369
  return {
226
370
  path: `${mediaBase}/guild-crest/border/${borderId}`,
227
371
  namespace: "static"
228
372
  };
229
373
  },
374
+ /**
375
+ * Get a guild crest emblem by ID.
376
+ * @param emblemId The guild crest emblem ID.
377
+ * @returns The guild crest emblem. See {@link GuildCrestBorderEmblemResponse}.
378
+ */
230
379
  guildCrestEmblem: (emblemId) => {
231
380
  return {
232
381
  path: `${mediaBase}/guild-crest/emblem/${emblemId}`,
@@ -237,12 +386,21 @@ var guildCrestApi = {
237
386
 
238
387
  // src/heirloom/heirloom.ts
239
388
  var heirloomApi = {
389
+ /**
390
+ * Get a heirloom by ID.
391
+ * @param heirloomId The heirloom ID.
392
+ * @returns The heirloom. See {@link HeirloomResponse}.
393
+ */
240
394
  heirloom: (heirloomId) => {
241
395
  return {
242
396
  path: `${base}/heirloom/${heirloomId}`,
243
397
  namespace: "static"
244
398
  };
245
399
  },
400
+ /**
401
+ * Get the heirloom index.
402
+ * @returns The heirloom index. See {@link HeirloomIndexResponse}.
403
+ */
246
404
  heirloomIndex: () => {
247
405
  return {
248
406
  path: `${base}/heirloom/index`,
@@ -253,48 +411,87 @@ var heirloomApi = {
253
411
 
254
412
  // src/item/item.ts
255
413
  var itemApi = {
414
+ /**
415
+ * Get an item by ID.
416
+ * @param itemId The item ID.
417
+ * @returns The item. See {@link ItemResponse}.
418
+ */
256
419
  item: (itemId) => {
257
420
  return {
258
421
  path: `${base}/item/${itemId}`,
259
422
  namespace: "static"
260
423
  };
261
424
  },
425
+ /**
426
+ * Get an item class by ID.
427
+ * @param itemClassId The item class ID.
428
+ * @returns The item class. See {@link ItemClassResponse}.
429
+ */
262
430
  itemClass: (itemClassId) => {
263
431
  return {
264
432
  path: `${base}/item-class/${itemClassId}`,
265
433
  namespace: "static"
266
434
  };
267
435
  },
436
+ /**
437
+ * Get an item subclass by ID.
438
+ * @param itemClassId The item class ID.
439
+ * @param itemSubclassId The item subclass ID.
440
+ * @returns The item subclass. See {@link ItemSubClassResponse}.
441
+ */
268
442
  itemSubClass: (itemClassId, itemSubclassId) => {
269
443
  return {
270
444
  path: `${base}/item-class/${itemClassId}/item-subclass/${itemSubclassId}`,
271
445
  namespace: "static"
272
446
  };
273
447
  },
448
+ /**
449
+ * Get an item class index.
450
+ * @returns The item class index. See {@link ItemClassIndexResponse}.
451
+ */
274
452
  itemClassIndex: () => {
275
453
  return {
276
454
  path: `${base}/item-class/index`,
277
455
  namespace: "static"
278
456
  };
279
457
  },
458
+ /**
459
+ * Get item media by ID.
460
+ * @param itemId The item ID.
461
+ * @returns The item media. See {@link ItemMediaResponse}.
462
+ */
280
463
  itemMedia: (itemId) => {
281
464
  return {
282
465
  path: `${mediaBase}/item/${itemId}`,
283
466
  namespace: "static"
284
467
  };
285
468
  },
469
+ /**
470
+ * Get an item set by ID.
471
+ * @param itemSetId The item set ID.
472
+ * @returns The item set. See {@link ItemSetResponse}.
473
+ */
286
474
  itemSet: (itemSetId) => {
287
475
  return {
288
476
  path: `${base}/item-set/${itemSetId}`,
289
477
  namespace: "static"
290
478
  };
291
479
  },
480
+ /**
481
+ * Get an item set index.
482
+ * @returns The item set index. See {@link ItemSetIndexResponse}.
483
+ */
292
484
  itemSetIndex: () => {
293
485
  return {
294
486
  path: `${base}/item-set/index`,
295
487
  namespace: "static"
296
488
  };
297
489
  },
490
+ /**
491
+ * Search for items.
492
+ * @param options The search parameters. See {@link ItemSearchParameters}.
493
+ * @returns The search results. See {@link SearchResponse}.
494
+ */
298
495
  itemSearch: (options) => {
299
496
  return {
300
497
  namespace: "static",
@@ -310,18 +507,32 @@ var itemApi = {
310
507
 
311
508
  // src/journal/journal.ts
312
509
  var journalApi = {
510
+ /**
511
+ * Get a journal encounter by ID.
512
+ * @param journalEncounterId The journal encounter ID.
513
+ * @returns The journal encounter. See {@link JournalEncounterResponse}.
514
+ */
313
515
  journalEncounter: (journalEncounterId) => {
314
516
  return {
315
517
  path: `${base}/journal-encounter/${journalEncounterId}`,
316
518
  namespace: "static"
317
519
  };
318
520
  },
521
+ /**
522
+ * Get the journal encounter index.
523
+ * @returns The journal encounter index. See {@link JournalEncounterIndexResponse}.
524
+ */
319
525
  journalEncounterIndex: () => {
320
526
  return {
321
527
  path: `${base}/journal-encounter/index`,
322
528
  namespace: "static"
323
529
  };
324
530
  },
531
+ /**
532
+ * Search for journal encounters.
533
+ * @param options The search parameters. See {@link JournalEncounterSearchParameters}.
534
+ * @returns The search results. See {@link SearchResponse}.
535
+ */
325
536
  journalEncounterSearch: (options) => {
326
537
  return {
327
538
  namespace: "static",
@@ -333,30 +544,53 @@ var journalApi = {
333
544
  path: `${searchBase}/journal-encounter`
334
545
  };
335
546
  },
547
+ /**
548
+ * Get a journal expansion by ID.
549
+ * @param journalExpansionId The journal expansion ID.
550
+ * @returns The journal expansion. See {@link JournalExpansionResponse}.
551
+ */
336
552
  journalExpansion: (journalExpansionId) => {
337
553
  return {
338
554
  path: `${base}/journal-expansion/${journalExpansionId}`,
339
555
  namespace: "static"
340
556
  };
341
557
  },
558
+ /**
559
+ * Get the journal expansion index.
560
+ * @returns The journal expansion index. See {@link JournalExpansionIndexResponse}.
561
+ */
342
562
  journalExpansionIndex: () => {
343
563
  return {
344
564
  path: `${base}/journal-expansion/index`,
345
565
  namespace: "static"
346
566
  };
347
567
  },
568
+ /**
569
+ * Get a journal instance by ID.
570
+ * @param journalInstanceId The journal instance ID.
571
+ * @returns The journal instance. See {@link JournalInstanceResponse}.
572
+ */
348
573
  journalInstance: (journalInstanceId) => {
349
574
  return {
350
575
  path: `${base}/journal-instance/${journalInstanceId}`,
351
576
  namespace: "static"
352
577
  };
353
578
  },
579
+ /**
580
+ * Get the journal instance index.
581
+ * @returns The journal instance index. See {@link JournalInstanceIndexResponse}.
582
+ */
354
583
  journalInstanceIndex: () => {
355
584
  return {
356
585
  path: `${base}/journal-instance/index`,
357
586
  namespace: "static"
358
587
  };
359
588
  },
589
+ /**
590
+ * Get journal instance media by ID.
591
+ * @param journalInstanceId The journal instance ID.
592
+ * @returns The journal instance media. See {@link JournalInstanceMediaResponse}.
593
+ */
360
594
  journalInstanceMedia: (journalInstanceId) => {
361
595
  return {
362
596
  path: `${mediaBase}/journal-instance/${journalInstanceId}`,
@@ -367,6 +601,11 @@ var journalApi = {
367
601
 
368
602
  // src/media-search/media-search.ts
369
603
  var mediaSearchApi = {
604
+ /**
605
+ * Search for media.
606
+ * @param options The search parameters. See {@link MediaSearchParameters}.
607
+ * @returns The search results. See {@link SearchResponse}.
608
+ */
370
609
  mediaSearch: (options) => {
371
610
  return {
372
611
  namespace: "static",
@@ -382,30 +621,52 @@ var mediaSearchApi = {
382
621
 
383
622
  // src/modified-crafting/modified-crafting.ts
384
623
  var modifiedCraftingApi = {
624
+ /**
625
+ * Get a modified crafting category by ID.
626
+ * @param modifiedCraftingCategoryId The modified crafting category ID.
627
+ * @returns The modified crafting category. See {@link ModifiedCraftingCategoryResponse}.
628
+ */
385
629
  modifiedCraftingCategory: (modifiedCraftingCategoryId) => {
386
630
  return {
387
631
  path: `${base}/modified-crafting/category/${modifiedCraftingCategoryId}`,
388
632
  namespace: "static"
389
633
  };
390
634
  },
635
+ /**
636
+ * Get a modified crafting category index.
637
+ * @returns The modified crafting category index. See {@link ModifiedCraftingCategoryIndexResponse}.
638
+ */
391
639
  modifiedCraftingCategoryIndex: () => {
392
640
  return {
393
641
  path: `${base}/modified-crafting/category/index`,
394
642
  namespace: "static"
395
643
  };
396
644
  },
645
+ /**
646
+ * Get a modified crafting index.
647
+ * @returns The modified crafting index. See {@link ModifiedCraftingIndexResponse}.
648
+ */
397
649
  modifiedCraftingIndex: () => {
398
650
  return {
399
651
  path: `${base}/modified-crafting/index`,
400
652
  namespace: "static"
401
653
  };
402
654
  },
655
+ /**
656
+ * Get a modified crafting reagent slot type by ID.
657
+ * @param modifiedCraftingReagentSlotTypeId The modified crafting reagent slot type ID.
658
+ * @returns The modified crafting reagent slot type. See {@link ModifiedCraftingReagentSlotTypeResponse}.
659
+ */
403
660
  modifiedCraftingReagentSlotType: (modifiedCraftingReagentSlotTypeId) => {
404
661
  return {
405
662
  path: `${base}/modified-crafting/reagent-slot-type/${modifiedCraftingReagentSlotTypeId}`,
406
663
  namespace: "static"
407
664
  };
408
665
  },
666
+ /**
667
+ * Get a modified crafting reagent slot type index.
668
+ * @returns The modified crafting reagent slot type index. See {@link ModifiedCraftingReagentSlotTypeIndexResponse}.
669
+ */
409
670
  modifiedCraftingReagentSlotTypeIndex: () => {
410
671
  return {
411
672
  path: `${base}/modified-crafting/reagent-slot-type/index`,
@@ -416,18 +677,32 @@ var modifiedCraftingApi = {
416
677
 
417
678
  // src/mount/mount.ts
418
679
  var mountApi = {
680
+ /**
681
+ * Get a mount by ID.
682
+ * @param mountId The mount ID.
683
+ * @returns The mount. See {@link MountResponse}.
684
+ */
419
685
  mount: (mountId) => {
420
686
  return {
421
687
  path: `${base}/mount/${mountId}`,
422
688
  namespace: "static"
423
689
  };
424
690
  },
691
+ /**
692
+ * Get a mount index.
693
+ * @returns The mount index. See {@link MountIndexResponse}.
694
+ */
425
695
  mountIndex: () => {
426
696
  return {
427
697
  path: `${base}/mount/index`,
428
698
  namespace: "static"
429
699
  };
430
700
  },
701
+ /**
702
+ * Get a mount search.
703
+ * @param options The search parameters. See {@link MountSearchParameters}.
704
+ * @returns The search results. See {@link SearchResponse}.
705
+ */
431
706
  mountSearch: (options) => {
432
707
  return {
433
708
  namespace: "static",
@@ -443,18 +718,30 @@ var mountApi = {
443
718
 
444
719
  // src/mythic-keystone-affix/mythic-keystone-affix.ts
445
720
  var mythicKeystoneAffixApi = {
721
+ /**
722
+ * Get a list of all Mythic Keystone affixes.
723
+ * @returns A list of all Mythic Keystone affixes. See {@link MythicKeystoneAffixIndexResponse}
724
+ */
446
725
  mythicKeystoneAffix: (mythicKeystoneAffixId) => {
447
726
  return {
448
727
  path: `${base}/keystone-affix/${mythicKeystoneAffixId}`,
449
728
  namespace: "static"
450
729
  };
451
730
  },
731
+ /**
732
+ * Get a list of all Mythic Keystone affixes.
733
+ * @returns A list of all Mythic Keystone affixes. See {@link MythicKeystoneAffixIndexResponse}
734
+ */
452
735
  mythicKeystoneAffixIndex: () => {
453
736
  return {
454
737
  path: `${base}/keystone-affix/index`,
455
738
  namespace: "static"
456
739
  };
457
740
  },
741
+ /**
742
+ * Get a list of all Mythic Keystone affix media.
743
+ * @returns A list of all Mythic Keystone affix media. See {@link MythicKeystoneAffixMediaResponse}
744
+ */
458
745
  mythicKeystoneAffixMedia: (mythicKeystoneAffixId) => {
459
746
  return {
460
747
  path: `${mediaBase}/keystone-affix/${mythicKeystoneAffixId}`,
@@ -465,42 +752,73 @@ var mythicKeystoneAffixApi = {
465
752
 
466
753
  // src/mythic-keystone-dungeon/mythic-keystone-dungeon.ts
467
754
  var mythicKeystoneDungeonApi = {
755
+ /**
756
+ * Get a Mythic Keystone dungeon by ID.
757
+ * @param mythicKeystoneDungeonId The Mythic Keystone dungeon ID.
758
+ * @returns The Mythic Keystone dungeon. See {@link MythicKeystoneDungeonResponse}.
759
+ */
468
760
  mythicKeystoneDungeon: (mythicKeystoneDungeonId) => {
469
761
  return {
470
762
  path: `${base}/mythic-keystone/dungeon/${mythicKeystoneDungeonId}`,
471
763
  namespace: "dynamic"
472
764
  };
473
765
  },
766
+ /**
767
+ * Get a Mythic Keystone dungeon index.
768
+ * @returns The Mythic Keystone dungeon index. See {@link MythicKeystoneDungeonIndexResponse}.
769
+ */
474
770
  mythicKeystoneDungeonIndex: () => {
475
771
  return {
476
772
  path: `${base}/mythic-keystone/dungeon/index`,
477
773
  namespace: "dynamic"
478
774
  };
479
775
  },
776
+ /**
777
+ * Get a Mythic Keystone index.
778
+ * @returns The Mythic Keystone index. See {@link MythicKeystoneIndexResponse}.
779
+ */
480
780
  mythicKeystoneIndex: () => {
481
781
  return {
482
782
  path: `${base}/mythic-keystone/index`,
483
783
  namespace: "dynamic"
484
784
  };
485
785
  },
786
+ /**
787
+ * Get a Mythic Keystone period by ID.
788
+ * @param mythicKeystonePeriodId The Mythic Keystone period ID.
789
+ * @returns The Mythic Keystone period. See {@link MythicKeystonePeriodResponse}.
790
+ */
486
791
  mythicKeystonePeriod: (mythicKeystonePeriodId) => {
487
792
  return {
488
793
  path: `${base}/mythic-keystone/period/${mythicKeystonePeriodId}`,
489
794
  namespace: "dynamic"
490
795
  };
491
796
  },
797
+ /**
798
+ * Get a Mythic Keystone period index.
799
+ * @returns The Mythic Keystone period index. See {@link MythicKeystonePeriodIndexResponse}.
800
+ */
492
801
  mythicKeystonePeriodIndex: () => {
493
802
  return {
494
803
  path: `${base}/mythic-keystone/period/index`,
495
804
  namespace: "dynamic"
496
805
  };
497
806
  },
807
+ /**
808
+ * Get a Mythic Keystone season by ID.
809
+ * @param mythicKeystoneSeasonId The Mythic Keystone season ID.
810
+ * @returns The Mythic Keystone season. See {@link MythicKeystoneSeasonResponse}.
811
+ */
498
812
  mythicKeystoneSeason: (mythicKeystoneSeasonId) => {
499
813
  return {
500
814
  path: `${base}/mythic-keystone/season/${mythicKeystoneSeasonId}`,
501
815
  namespace: "dynamic"
502
816
  };
503
817
  },
818
+ /**
819
+ * Get a Mythic Keystone season index.
820
+ * @returns The Mythic Keystone season index. See {@link MythicKeystoneSeasonIndexResponse}.
821
+ */
504
822
  mythicKeystoneSeasonIndex: () => {
505
823
  return {
506
824
  path: `${base}/mythic-keystone/season/index`,
@@ -511,12 +829,24 @@ var mythicKeystoneDungeonApi = {
511
829
 
512
830
  // src/mythic-keystone-leaderboard/mythic-keystone-leaderboard.ts
513
831
  var mythicKeystoneLeaderboardApi = {
832
+ /**
833
+ * Get a Mythic Keystone leaderboard by connected realm ID, dungeon ID, and period.
834
+ * @param connectedRealmId The connected realm ID.
835
+ * @param dungeonId The dungeon ID.
836
+ * @param period The period ID.
837
+ * @returns The Mythic Keystone leaderboard. See {@link MythicKeystoneLeaderboardResponse}.
838
+ */
514
839
  mythicKeystoneLeaderboard: (connectedRealmId, dungeonId, period) => {
515
840
  return {
516
841
  path: `${base}/connected-realm/${connectedRealmId}/mythic-leaderboard/${dungeonId}/period/${period}`,
517
842
  namespace: "dynamic"
518
843
  };
519
844
  },
845
+ /**
846
+ * Get a Mythic Keystone leaderboard index by connected realm ID.
847
+ * @param connectedRealmId The connected realm ID.
848
+ * @returns The Mythic Keystone leaderboard index. See {@link MythicKeystoneLeaderboardIndexResponse}.
849
+ */
520
850
  mythicKeystoneLeaderboardIndex: (connectedRealmId) => {
521
851
  return {
522
852
  path: `${base}/connected-realm/${connectedRealmId}/mythic-leaderboard/index`,
@@ -527,6 +857,12 @@ var mythicKeystoneLeaderboardApi = {
527
857
 
528
858
  // src/mythic-raid-leaderboard/mythic-raid-leaderboard.ts
529
859
  var mythicRaidLeaderboardApi = {
860
+ /**
861
+ * Get a Mythic Raid leaderboard by raid and faction.
862
+ * @param raid The slug of the raid.
863
+ * @param faction The faction. Either 'alliance' or 'horde'.
864
+ * @returns The Mythic Raid leaderboard. See {@link MythicRaidLeaderboardResponse}.
865
+ */
530
866
  mythicRaidLeaderboard: (raid, faction) => {
531
867
  return {
532
868
  path: `${base}/leaderboard/hall-of-fame/${raid}/${faction}`,
@@ -537,36 +873,64 @@ var mythicRaidLeaderboardApi = {
537
873
 
538
874
  // src/pet/pet.ts
539
875
  var petApi = {
876
+ /**
877
+ * Get a pet by ID.
878
+ * @param petId The pet ID.
879
+ * @returns The pet. See {@link PetResponse}.
880
+ */
540
881
  pet: (petId) => {
541
882
  return {
542
883
  path: `${base}/pet/${petId}`,
543
884
  namespace: "static"
544
885
  };
545
886
  },
887
+ /**
888
+ * Get a pet index.
889
+ * @returns The pet index. See {@link PetIndexResponse}.
890
+ */
546
891
  petIndex: () => {
547
892
  return {
548
893
  path: `${base}/pet/index`,
549
894
  namespace: "static"
550
895
  };
551
896
  },
897
+ /**
898
+ * Get a pet media by ID.
899
+ * @param petId The pet ID.
900
+ * @returns The pet media. See {@link PetMediaResponse}.
901
+ */
552
902
  petMedia: (petId) => {
553
903
  return {
554
904
  path: `${mediaBase}/pet/${petId}`,
555
905
  namespace: "static"
556
906
  };
557
907
  },
908
+ /**
909
+ * Get a pet ability by ID.
910
+ * @param petAbilityId The pet ability ID.
911
+ * @returns The pet ability. See {@link PetAbilityResponse}.
912
+ */
558
913
  petAbility: (petAbilityId) => {
559
914
  return {
560
915
  path: `${base}/pet-ability/${petAbilityId}`,
561
916
  namespace: "static"
562
917
  };
563
918
  },
919
+ /**
920
+ * Get a pet ability index.
921
+ * @returns The pet ability index. See {@link PetAbilityIndexResponse}.
922
+ */
564
923
  petAbilityIndex: () => {
565
924
  return {
566
925
  path: `${base}/pet-ability/index`,
567
926
  namespace: "static"
568
927
  };
569
928
  },
929
+ /**
930
+ * Get a pet ability media by ID.
931
+ * @param petAbilityId The pet ability ID.
932
+ * @returns The pet ability media. See {@link PetAbilityMediaResponse}.
933
+ */
570
934
  petAbilityMedia: (petAbilityId) => {
571
935
  return {
572
936
  path: `${mediaBase}/pet-ability/${petAbilityId}`,
@@ -577,24 +941,43 @@ var petApi = {
577
941
 
578
942
  // src/playable-class/playable-class.ts
579
943
  var playableClassApi = {
944
+ /**
945
+ * Get a playable class by ID.
946
+ * @param playableClassId The playable class ID.
947
+ * @returns The playable class. See {@link PlayableClassResponse}.
948
+ */
580
949
  playableClass: (playableClassId) => {
581
950
  return {
582
951
  path: `${base}/playable-class/${playableClassId}`,
583
952
  namespace: "static"
584
953
  };
585
954
  },
955
+ /**
956
+ * Get a playable class index.
957
+ * @returns The playable class index. See {@link PlayableClassIndexResponse}.
958
+ */
586
959
  playableClassIndex: () => {
587
960
  return {
588
961
  path: `${base}/playable-class/index`,
589
962
  namespace: "static"
590
963
  };
591
964
  },
965
+ /**
966
+ * Get playable class media by ID.
967
+ * @param playableClassId The playable class ID.
968
+ * @returns The playable class media. See {@link PlayableClassMediaResponse}.
969
+ */
592
970
  playableClassMedia: (playableClassId) => {
593
971
  return {
594
972
  path: `${mediaBase}/playable-class/${playableClassId}`,
595
973
  namespace: "static"
596
974
  };
597
975
  },
976
+ /**
977
+ * Get a playable class's PvP talent slots by ID.
978
+ * @param playableClassId The playable class ID.
979
+ * @returns The playable class's PvP talent slots. See {@link PvpTalentSlotsResponse}.
980
+ */
598
981
  pvpTalentSlots: (playableClassId) => {
599
982
  return {
600
983
  path: `${base}/playable-class/${playableClassId}/pvp-talent-slots`,
@@ -605,12 +988,21 @@ var playableClassApi = {
605
988
 
606
989
  // src/playable-race/playable-race.ts
607
990
  var playableRaceApi = {
991
+ /**
992
+ * Get a playable race by ID.
993
+ * @param playableRaceId The playable race ID.
994
+ * @returns The playable race. See {@link PlayableRaceResponse}.
995
+ */
608
996
  playableRace: (playableRaceId) => {
609
997
  return {
610
998
  path: `${base}/playable-race/${playableRaceId}`,
611
999
  namespace: "static"
612
1000
  };
613
1001
  },
1002
+ /**
1003
+ * Get a playable race index.
1004
+ * @returns The playable race index. See {@link PlayableRaceIndexResponse}.
1005
+ */
614
1006
  playableRaceIndex: () => {
615
1007
  return {
616
1008
  path: `${base}/playable-race/index`,
@@ -621,18 +1013,32 @@ var playableRaceApi = {
621
1013
 
622
1014
  // src/playable-specialization/playable-specialization.ts
623
1015
  var playableSpecializationApi = {
1016
+ /**
1017
+ * Get a playable specialization by ID.
1018
+ * @param specializationId The playable specialization ID.
1019
+ * @returns The playable specialization. See {@link PlayableSpecializationResponse}.
1020
+ */
624
1021
  playableSpecialization: (specializationId) => {
625
1022
  return {
626
1023
  path: `${base}/playable-specialization/${specializationId}`,
627
1024
  namespace: "static"
628
1025
  };
629
1026
  },
1027
+ /**
1028
+ * Get a playable specialization index.
1029
+ * @returns The playable specialization index. See {@link PlayableSpecializationIndexResponse}.
1030
+ */
630
1031
  playableSpecializationIndex: () => {
631
1032
  return {
632
1033
  path: `${base}/playable-specialization/index`,
633
1034
  namespace: "static"
634
1035
  };
635
1036
  },
1037
+ /**
1038
+ * Get a playable specialization media by ID.
1039
+ * @param specializationId The playable specialization ID.
1040
+ * @returns The playable specialization media. See {@link PlayableSpecializationMediaResponse}.
1041
+ */
636
1042
  playableSpecializationMedia: (specializationId) => {
637
1043
  return {
638
1044
  path: `${mediaBase}/playable-specialization/${specializationId}`,
@@ -643,12 +1049,21 @@ var playableSpecializationApi = {
643
1049
 
644
1050
  // src/power-type/power-type.ts
645
1051
  var powerTypeApi = {
1052
+ /**
1053
+ * Get a power type by ID.
1054
+ * @param powerTypeId The power type ID.
1055
+ * @returns The power type. See {@link PowerTypeResponse}.
1056
+ */
646
1057
  powerType: (powerTypeId) => {
647
1058
  return {
648
1059
  path: `${base}/power-type/${powerTypeId}`,
649
1060
  namespace: "static"
650
1061
  };
651
1062
  },
1063
+ /**
1064
+ * Get a power type index.
1065
+ * @returns The power type index. See {@link PowerTypeIndexResponse}.
1066
+ */
652
1067
  powerTypeIndex: () => {
653
1068
  return {
654
1069
  path: `${base}/power-type/index`,
@@ -659,36 +1074,66 @@ var powerTypeApi = {
659
1074
 
660
1075
  // src/profession/profession.ts
661
1076
  var professionApi = {
1077
+ /**
1078
+ * Get a profession by ID.
1079
+ * @param professionId The profession ID.
1080
+ * @returns The profession. See {@link ProfessionResponse}.
1081
+ */
662
1082
  profession: (professionId) => {
663
1083
  return {
664
1084
  path: `${base}/profession/${professionId}`,
665
1085
  namespace: "static"
666
1086
  };
667
1087
  },
1088
+ /**
1089
+ * Get a profession index.
1090
+ * @returns The profession index. See {@link ProfessionIndexResponse}.
1091
+ */
668
1092
  professionIndex: () => {
669
1093
  return {
670
1094
  path: `${base}/profession/index`,
671
1095
  namespace: "static"
672
1096
  };
673
1097
  },
1098
+ /**
1099
+ * Get profession media by ID.
1100
+ * @param professionId The profession ID.
1101
+ * @returns The profession media. See {@link ProfessionMediaResponse}.
1102
+ */
674
1103
  professionMedia: (professionId) => {
675
1104
  return {
676
1105
  path: `${mediaBase}/profession/${professionId}`,
677
1106
  namespace: "static"
678
1107
  };
679
1108
  },
1109
+ /**
1110
+ * Get a profession's skill tier by ID.
1111
+ * @param professionId The profession ID.
1112
+ * @param skillTierId The skill tier ID.
1113
+ * @returns The profession's skill tier. See {@link ProfessionSkillTierResponse}.
1114
+ */
680
1115
  professionSkillTier: (professionId, skillTierId) => {
681
1116
  return {
682
1117
  path: `${base}/profession/${professionId}/skill-tier/${skillTierId}`,
683
1118
  namespace: "static"
684
1119
  };
685
1120
  },
1121
+ /**
1122
+ * Get a recipe by ID.
1123
+ * @param recipeId The recipe ID.
1124
+ * @returns The recipe. See {@link RecipeResponse}.
1125
+ */
686
1126
  recipe: (recipeId) => {
687
1127
  return {
688
1128
  path: `${base}/recipe/${recipeId}`,
689
1129
  namespace: "static"
690
1130
  };
691
1131
  },
1132
+ /**
1133
+ * Get recipe media by ID.
1134
+ * @param recipeId The recipe ID.
1135
+ * @returns The recipe media. See {@link RecipeMediaResponse}.
1136
+ */
692
1137
  recipeMedia: (recipeId) => {
693
1138
  return {
694
1139
  path: `${mediaBase}/recipe/${recipeId}`,
@@ -699,30 +1144,55 @@ var professionApi = {
699
1144
 
700
1145
  // src/pvp-season/pvp-season.ts
701
1146
  var pvpSeasonApi = {
1147
+ /**
1148
+ * Get a PvP leaderboard by PvP season ID and bracket.
1149
+ * @param pvpSeasonId The PvP season ID.
1150
+ * @param bracket The PvP bracket.
1151
+ * @returns The PvP leaderboard. See {@link PvpLeaderboardResponse}.
1152
+ */
702
1153
  pvpLeaderboard: (pvpSeasonId, bracket) => {
703
1154
  return {
704
1155
  path: `${base}/pvp-season/${pvpSeasonId}/pvp-leaderboard/${bracket}`,
705
1156
  namespace: "dynamic"
706
1157
  };
707
1158
  },
1159
+ /**
1160
+ * Get a PvP leaderboard index by PvP season ID.
1161
+ * @param pvpSeasonId The PvP season ID.
1162
+ * @returns The PvP leaderboard index. See {@link PvpLeaderboardIndexResponse}.
1163
+ */
708
1164
  pvpLeaderboardIndex: (pvpSeasonId) => {
709
1165
  return {
710
1166
  path: `${base}/pvp-season/${pvpSeasonId}/pvp-leaderboard/index`,
711
1167
  namespace: "dynamic"
712
1168
  };
713
1169
  },
1170
+ /**
1171
+ * Get a PvP reward index by PvP season ID.
1172
+ * @param pvpSeasonId The PvP season ID.
1173
+ * @returns The PvP reward index. See {@link PvpRewardsIndexResponse}.
1174
+ */
714
1175
  pvpRewardsIndex: (pvpSeasonId) => {
715
1176
  return {
716
1177
  path: `${base}/pvp-season/${pvpSeasonId}/pvp-reward/index`,
717
1178
  namespace: "dynamic"
718
1179
  };
719
1180
  },
1181
+ /**
1182
+ * Get a PvP season by ID.
1183
+ * @param pvpSeasonId The PvP season ID.
1184
+ * @returns The PvP season. See {@link PvpSeasonResponse}.
1185
+ */
720
1186
  pvpSeason: (pvpSeasonId) => {
721
1187
  return {
722
1188
  path: `${base}/pvp-season/${pvpSeasonId}`,
723
1189
  namespace: "dynamic"
724
1190
  };
725
1191
  },
1192
+ /**
1193
+ * Get a PvP season index.
1194
+ * @returns The PvP season index. See {@link PvpSeasonIndexResponse}.
1195
+ */
726
1196
  pvpSeasonIndex: () => {
727
1197
  return {
728
1198
  path: `${base}/pvp-season/index`,
@@ -733,18 +1203,32 @@ var pvpSeasonApi = {
733
1203
 
734
1204
  // src/pvp-tier/pvp-tier.ts
735
1205
  var pvpTierApi = {
1206
+ /**
1207
+ * Get a PvP tier by ID.
1208
+ * @param pvpTierId The PvP tier ID.
1209
+ * @returns The PvP tier. See {@link PvpTierResponse}.
1210
+ */
736
1211
  pvpTier: (pvpTierId) => {
737
1212
  return {
738
1213
  path: `${base}/pvp-tier/${pvpTierId}`,
739
1214
  namespace: "static"
740
1215
  };
741
1216
  },
1217
+ /**
1218
+ * Get a PvP tier index.
1219
+ * @returns The PvP tier index. See {@link PvpTierIndexResponse}.
1220
+ */
742
1221
  pvpTierIndex: () => {
743
1222
  return {
744
1223
  path: `${base}/pvp-tier/index`,
745
1224
  namespace: "static"
746
1225
  };
747
1226
  },
1227
+ /**
1228
+ * Get PvP tier media by ID.
1229
+ * @param pvpTierId The PvP tier ID.
1230
+ * @returns The PvP tier media. See {@link PvpTierMediaResponse}.
1231
+ */
748
1232
  pvpTierMedia: (pvpTierId) => {
749
1233
  return {
750
1234
  path: `${mediaBase}/pvp-tier/${pvpTierId}`,
@@ -755,48 +1239,84 @@ var pvpTierApi = {
755
1239
 
756
1240
  // src/quest/quest.ts
757
1241
  var questApi = {
1242
+ /**
1243
+ * Get a quest by ID.
1244
+ * @param questId The quest ID.
1245
+ * @returns The quest. See {@link QuestResponse}.
1246
+ */
758
1247
  quest: (questId) => {
759
1248
  return {
760
1249
  path: `${base}/quest/${questId}`,
761
1250
  namespace: "static"
762
1251
  };
763
1252
  },
1253
+ /**
1254
+ * Get a quest index.
1255
+ * @returns The quest index. See {@link QuestIndexResponse}.
1256
+ */
764
1257
  questIndex: () => {
765
1258
  return {
766
1259
  path: `${base}/quest/index`,
767
1260
  namespace: "static"
768
1261
  };
769
1262
  },
1263
+ /**
1264
+ * Get a quest area by ID.
1265
+ * @param questAreaId The quest area ID.
1266
+ * @returns The quest area. See {@link QuestAreaResponse}.
1267
+ */
770
1268
  questArea: (questAreaId) => {
771
1269
  return {
772
1270
  path: `${base}/quest/area/${questAreaId}`,
773
1271
  namespace: "static"
774
1272
  };
775
1273
  },
1274
+ /**
1275
+ * Get a quest area index.
1276
+ * @returns The quest area index. See {@link QuestAreaIndexResponse}.
1277
+ */
776
1278
  questAreaIndex: () => {
777
1279
  return {
778
1280
  path: `${base}/quest/area/index`,
779
1281
  namespace: "static"
780
1282
  };
781
1283
  },
1284
+ /**
1285
+ * Get a quest category by ID.
1286
+ * @param questCategoryId The quest category ID.
1287
+ * @returns The quest category. See {@link QuestCategoryResponse}.
1288
+ */
782
1289
  questCategory: (questCategoryId) => {
783
1290
  return {
784
1291
  path: `${base}/quest/category/${questCategoryId}`,
785
1292
  namespace: "static"
786
1293
  };
787
1294
  },
1295
+ /**
1296
+ * Get a quest category index.
1297
+ * @returns The quest category index. See {@link QuestCategoryIndexResponse}.
1298
+ */
788
1299
  questCategoryIndex: () => {
789
1300
  return {
790
1301
  path: `${base}/quest/category/index`,
791
1302
  namespace: "static"
792
1303
  };
793
1304
  },
1305
+ /**
1306
+ * Get a quest type by ID.
1307
+ * @param questTypeId The quest type ID.
1308
+ * @returns The quest type. See {@link QuestTypeResponse}.
1309
+ */
794
1310
  questType: (questTypeId) => {
795
1311
  return {
796
1312
  path: `${base}/quest/type/${questTypeId}`,
797
1313
  namespace: "static"
798
1314
  };
799
1315
  },
1316
+ /**
1317
+ * Get a quest type index.
1318
+ * @returns The quest type index. See {@link QuestTypeIndexResponse}.
1319
+ */
800
1320
  questTypeIndex: () => {
801
1321
  return {
802
1322
  path: `${base}/quest/type/index`,
@@ -807,18 +1327,32 @@ var questApi = {
807
1327
 
808
1328
  // src/realm/realm.ts
809
1329
  var realmApi = {
1330
+ /**
1331
+ * Get a realm by slug.
1332
+ * @param realmSlug The realm slug.
1333
+ * @returns The realm. See {@link RealmResponse}.
1334
+ */
810
1335
  realm: (realmSlug) => {
811
1336
  return {
812
1337
  path: `${base}/realm/${realmSlug}`,
813
1338
  namespace: "dynamic"
814
1339
  };
815
1340
  },
1341
+ /**
1342
+ * Get a realm index.
1343
+ * @returns The realm index. See {@link RealmIndexResponse}.
1344
+ */
816
1345
  realmIndex: () => {
817
1346
  return {
818
1347
  path: `${base}/realm/index`,
819
1348
  namespace: "dynamic"
820
1349
  };
821
1350
  },
1351
+ /**
1352
+ * Search for realms.
1353
+ * @param options The search parameters. See {@link RealmSearchParameters}.
1354
+ * @returns The search results. See {@link SearchResponse}.
1355
+ */
822
1356
  realmSearch: (options) => {
823
1357
  return {
824
1358
  namespace: "dynamic",
@@ -834,12 +1368,21 @@ var realmApi = {
834
1368
 
835
1369
  // src/region/region.ts
836
1370
  var regionApi = {
1371
+ /**
1372
+ * Get a region by ID.
1373
+ * @param regionId The region ID.
1374
+ * @returns The region. See {@link RegionResponse}.
1375
+ */
837
1376
  region: (regionId) => {
838
1377
  return {
839
1378
  path: `${base}/region/${regionId}`,
840
1379
  namespace: "dynamic"
841
1380
  };
842
1381
  },
1382
+ /**
1383
+ * Get a region index.
1384
+ * @returns The region index. See {@link RegionIndexResponse}.
1385
+ */
843
1386
  regionIndex: () => {
844
1387
  return {
845
1388
  path: `${base}/region/index`,
@@ -850,24 +1393,42 @@ var regionApi = {
850
1393
 
851
1394
  // src/reputations/reputations.ts
852
1395
  var reputationApi = {
1396
+ /**
1397
+ * Get a reputation faction by ID.
1398
+ * @param reputationFactionId The reputation faction ID.
1399
+ * @returns The reputation faction. See {@link ReputationFactionResponse}.
1400
+ */
853
1401
  reputationFaction: (reputationFactionId) => {
854
1402
  return {
855
1403
  path: `${base}/reputation-faction/${reputationFactionId}`,
856
1404
  namespace: "static"
857
1405
  };
858
1406
  },
1407
+ /**
1408
+ * Get a reputation faction index.
1409
+ * @returns The reputation faction index. See {@link ReputationFactionIndexResponse}.
1410
+ */
859
1411
  reputationFactionIndex: () => {
860
1412
  return {
861
1413
  path: `${base}/reputation-faction/index`,
862
1414
  namespace: "static"
863
1415
  };
864
1416
  },
1417
+ /**
1418
+ * Get a reputation tier by ID.
1419
+ * @param reputationTiersId The reputation tier ID.
1420
+ * @returns The reputation tier. See {@link ReputationTiersResponse}.
1421
+ */
865
1422
  reputationTiers: (reputationTiersId) => {
866
1423
  return {
867
1424
  path: `${base}/reputation-tiers/${reputationTiersId}`,
868
1425
  namespace: "static"
869
1426
  };
870
1427
  },
1428
+ /**
1429
+ * Get a reputation tier index.
1430
+ * @returns The reputation tier index. See {@link ReputationTiersIndexResponse}.
1431
+ */
871
1432
  reputationTiersIndex: () => {
872
1433
  return {
873
1434
  path: `${base}/reputation-tiers/index`,
@@ -878,18 +1439,33 @@ var reputationApi = {
878
1439
 
879
1440
  // src/spell/spell.ts
880
1441
  var spellApi = {
1442
+ /**
1443
+ * Get a spell by ID.
1444
+ * @param spellId The spell ID.
1445
+ * @returns The spell. See {@link SpellResponse}.
1446
+ */
881
1447
  spell: (spellId) => {
882
1448
  return {
883
1449
  path: `${base}/spell/${spellId}`,
884
1450
  namespace: "static"
885
1451
  };
886
1452
  },
1453
+ /**
1454
+ * Get spell media by ID.
1455
+ * @param spellId The spell ID.
1456
+ * @returns The spell media. See {@link SpellMediaResponse}.
1457
+ */
887
1458
  spellMedia: (spellId) => {
888
1459
  return {
889
1460
  path: `${mediaBase}/spell/${spellId}`,
890
1461
  namespace: "static"
891
1462
  };
892
1463
  },
1464
+ /**
1465
+ * Get a spell search.
1466
+ * @param options The spell search options. See {@link SpellSearchParameters}.
1467
+ * @returns The spell search. See {@link SearchResponse}.
1468
+ */
893
1469
  spellSearch: (options) => {
894
1470
  return {
895
1471
  namespace: "static",
@@ -905,42 +1481,75 @@ var spellApi = {
905
1481
 
906
1482
  // src/talent/talent.ts
907
1483
  var talentApi = {
1484
+ /**
1485
+ * Get a PvP talent by ID.
1486
+ * @param pvpTalentId The PvP talent ID.
1487
+ * @returns The PvP talent. See {@link PvpTalentResponse}.
1488
+ */
908
1489
  pvpTalent: (pvpTalentId) => {
909
1490
  return {
910
1491
  path: `${base}/pvp-talent/${pvpTalentId}`,
911
1492
  namespace: "static"
912
1493
  };
913
1494
  },
1495
+ /**
1496
+ * Get a PvP talent index.
1497
+ * @returns The PvP talent index. See {@link PvpTalentIndexResponse}.
1498
+ */
914
1499
  pvpTalentIndex: () => {
915
1500
  return {
916
1501
  path: `${base}/pvp-talent/index`,
917
1502
  namespace: "static"
918
1503
  };
919
1504
  },
1505
+ /**
1506
+ * Get a talent by ID.
1507
+ * @param talentId The talent ID.
1508
+ * @returns The talent. See {@link TalentResponse}.
1509
+ */
920
1510
  talent: (talentId) => {
921
1511
  return {
922
1512
  path: `${base}/talent/${talentId}`,
923
1513
  namespace: "static"
924
1514
  };
925
1515
  },
1516
+ /**
1517
+ * Get a talent index.
1518
+ * @returns The talent index. See {@link TalentIndexResponse}.
1519
+ */
926
1520
  talentIndex: () => {
927
1521
  return {
928
1522
  path: `${base}/talent/index`,
929
1523
  namespace: "static"
930
1524
  };
931
1525
  },
1526
+ /**
1527
+ * Get a talent tree by ID.
1528
+ * @param talentTreeId The talent tree ID.
1529
+ * @param specId The playable specialization ID.
1530
+ * @returns The talent tree. See {@link TalentTreeResponse}.
1531
+ */
932
1532
  talentTree: (talentTreeId, specId) => {
933
1533
  return {
934
1534
  path: `${base}/talent-tree/${talentTreeId}/playable-specialization/${specId}`,
935
1535
  namespace: "static"
936
1536
  };
937
1537
  },
1538
+ /**
1539
+ * Get a talent tree index.
1540
+ * @returns The talent tree index. See {@link TalentTreeIndexResponse}.
1541
+ */
938
1542
  talentTreeIndex: () => {
939
1543
  return {
940
1544
  path: `${base}/talent-tree/index`,
941
1545
  namespace: "static"
942
1546
  };
943
1547
  },
1548
+ /**
1549
+ * Get talent tree nodes by talent tree ID.
1550
+ * @param talentTreeId The talent tree ID.
1551
+ * @returns The talent tree nodes. See {@link TalentTreeNodesResponse}.
1552
+ */
944
1553
  talentTreeNodes: (talentTreeId) => {
945
1554
  return {
946
1555
  path: `${base}/talent-tree/${talentTreeId}`,
@@ -951,30 +1560,53 @@ var talentApi = {
951
1560
 
952
1561
  // src/tech-talent/tech-talent.ts
953
1562
  var techTalentApi = {
1563
+ /**
1564
+ * Get a tech talent by ID.
1565
+ * @param techTalentId The tech talent ID.
1566
+ * @returns The tech talent. See {@link TechTalentResponse}.
1567
+ */
954
1568
  techTalent: (techTalentId) => {
955
1569
  return {
956
1570
  path: `${base}/tech-talent/${techTalentId}`,
957
1571
  namespace: "static"
958
1572
  };
959
1573
  },
1574
+ /**
1575
+ * Get a tech talent index.
1576
+ * @returns The tech talent index. See {@link TechTalentIndexResponse}.
1577
+ */
960
1578
  techTalentIndex: () => {
961
1579
  return {
962
1580
  path: `${base}/tech-talent/index`,
963
1581
  namespace: "static"
964
1582
  };
965
1583
  },
1584
+ /**
1585
+ * Get tech talent media by ID.
1586
+ * @param techTalentId The tech talent ID.
1587
+ * @returns The tech talent media. See {@link TechTalentMediaResponse}.
1588
+ */
966
1589
  techTalentMedia: (techTalentId) => {
967
1590
  return {
968
1591
  path: `${mediaBase}/tech-talent/${techTalentId}`,
969
1592
  namespace: "static"
970
1593
  };
971
1594
  },
1595
+ /**
1596
+ * Get a tech talent tree by ID.
1597
+ * @param techTalentTreeId The tech talent tree ID.
1598
+ * @returns The tech talent tree. See {@link TechTalentTreeResponse}.
1599
+ */
972
1600
  techTalentTree: (techTalentTreeId) => {
973
1601
  return {
974
1602
  path: `${base}/tech-talent-tree/${techTalentTreeId}`,
975
1603
  namespace: "static"
976
1604
  };
977
1605
  },
1606
+ /**
1607
+ * Get a tech talent tree index.
1608
+ * @returns The tech talent tree index. See {@link TechTalentTreeIndexResponse}.
1609
+ */
978
1610
  techTalentTreeIndex: () => {
979
1611
  return {
980
1612
  path: `${base}/tech-talent-tree/index`,
@@ -985,12 +1617,21 @@ var techTalentApi = {
985
1617
 
986
1618
  // src/title/title.ts
987
1619
  var titleApi = {
1620
+ /**
1621
+ * Get a title by ID.
1622
+ * @param titleId The title ID.
1623
+ * @returns The title. See {@link TitleResponse}.
1624
+ */
988
1625
  title: (titleId) => {
989
1626
  return {
990
1627
  path: `${base}/title/${titleId}`,
991
1628
  namespace: "static"
992
1629
  };
993
1630
  },
1631
+ /**
1632
+ * Get a title index.
1633
+ * @returns The title index. See {@link TitleIndexResponse}.
1634
+ */
994
1635
  titleIndex: () => {
995
1636
  return {
996
1637
  path: `${base}/title/index`,
@@ -1001,12 +1642,21 @@ var titleApi = {
1001
1642
 
1002
1643
  // src/toy/toy.ts
1003
1644
  var toyApi = {
1645
+ /**
1646
+ * Get a toy by ID.
1647
+ * @param toyId The toy ID.
1648
+ * @returns The toy. See {@link ToyResponse}.
1649
+ */
1004
1650
  toy: (toyId) => {
1005
1651
  return {
1006
1652
  path: `${base}/toy/${toyId}`,
1007
1653
  namespace: "static"
1008
1654
  };
1009
1655
  },
1656
+ /**
1657
+ * Get a toy index.
1658
+ * @returns The toy index. See {@link ToyIndexResponse}.
1659
+ */
1010
1660
  toyIndex: () => {
1011
1661
  return {
1012
1662
  path: `${base}/toy/index`,
@@ -1017,6 +1667,10 @@ var toyApi = {
1017
1667
 
1018
1668
  // src/wow-token/wow-token.ts
1019
1669
  var wowTokenApi = {
1670
+ /**
1671
+ * Get the current WoW token price.
1672
+ * @returns The WoW token price. See {@link WowTokenResponse}.
1673
+ */
1020
1674
  wowToken: () => {
1021
1675
  return {
1022
1676
  path: `${base}/token/index`,