@blizzard-api/wow 0.2.2 → 0.2.4

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