@blizzard-api/wow 0.0.5 → 0.0.7
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 +818 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +648 -0
- package/dist/index.d.ts +648 -0
- package/dist/index.js +818 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -204,6 +204,794 @@ var creatureApi = {
|
|
|
204
204
|
},*/
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
+
// src/guild-crest/guild-crest.ts
|
|
208
|
+
var guildCrestApi = {
|
|
209
|
+
guildCrestComponentsIndex: () => {
|
|
210
|
+
return {
|
|
211
|
+
path: `${base}/guild-crest/index`,
|
|
212
|
+
namespace: "static"
|
|
213
|
+
};
|
|
214
|
+
},
|
|
215
|
+
guildCrestBorder: (borderId) => {
|
|
216
|
+
return {
|
|
217
|
+
path: `${mediaBase}/guild-crest/border/${borderId}`,
|
|
218
|
+
namespace: "static"
|
|
219
|
+
};
|
|
220
|
+
},
|
|
221
|
+
guildCrestEmblem: (emblemId) => {
|
|
222
|
+
return {
|
|
223
|
+
path: `${mediaBase}/guild-crest/emblem/${emblemId}`,
|
|
224
|
+
namespace: "static"
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
// src/heirloom/heirloom.ts
|
|
230
|
+
var heirloomApi = {
|
|
231
|
+
heirloom: (heirloomId) => {
|
|
232
|
+
return {
|
|
233
|
+
path: `${base}/heirloom/${heirloomId}`,
|
|
234
|
+
namespace: "static"
|
|
235
|
+
};
|
|
236
|
+
},
|
|
237
|
+
heirloomIndex: () => {
|
|
238
|
+
return {
|
|
239
|
+
path: `${base}/heirloom/index`,
|
|
240
|
+
namespace: "static"
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
// src/item/item.ts
|
|
246
|
+
var itemApi = {
|
|
247
|
+
item: (itemId) => {
|
|
248
|
+
return {
|
|
249
|
+
path: `${base}/item/${itemId}`,
|
|
250
|
+
namespace: "static"
|
|
251
|
+
};
|
|
252
|
+
},
|
|
253
|
+
itemIndex: () => {
|
|
254
|
+
return {
|
|
255
|
+
path: `${base}/item/index`,
|
|
256
|
+
namespace: "static"
|
|
257
|
+
};
|
|
258
|
+
},
|
|
259
|
+
itemClass: (itemClassId) => {
|
|
260
|
+
return {
|
|
261
|
+
path: `${base}/item-class/${itemClassId}`,
|
|
262
|
+
namespace: "static"
|
|
263
|
+
};
|
|
264
|
+
},
|
|
265
|
+
itemClassIndex: () => {
|
|
266
|
+
return {
|
|
267
|
+
path: `${base}/item-class/index`,
|
|
268
|
+
namespace: "static"
|
|
269
|
+
};
|
|
270
|
+
},
|
|
271
|
+
itemMedia: (itemId) => {
|
|
272
|
+
return {
|
|
273
|
+
path: `${mediaBase}/item/${itemId}`,
|
|
274
|
+
namespace: "static"
|
|
275
|
+
};
|
|
276
|
+
},
|
|
277
|
+
itemSet: (itemSetId) => {
|
|
278
|
+
return {
|
|
279
|
+
path: `${base}/item-set/${itemSetId}`,
|
|
280
|
+
namespace: "static"
|
|
281
|
+
};
|
|
282
|
+
},
|
|
283
|
+
itemSetIndex: () => {
|
|
284
|
+
return {
|
|
285
|
+
path: `${base}/item-set/index`,
|
|
286
|
+
namespace: "static"
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
// TODO Improve search endpoints
|
|
290
|
+
//itemSearch: (): Resource<void> => {
|
|
291
|
+
// return {
|
|
292
|
+
// path: `${base}/search/item`,
|
|
293
|
+
// namespace: 'static',
|
|
294
|
+
// };
|
|
295
|
+
//},
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
// src/journal/journal.ts
|
|
299
|
+
var journalApi = {
|
|
300
|
+
journalEncounter: (journalEncounterId) => {
|
|
301
|
+
return {
|
|
302
|
+
path: `${base}/journal-encounter/${journalEncounterId}`,
|
|
303
|
+
namespace: "static"
|
|
304
|
+
};
|
|
305
|
+
},
|
|
306
|
+
journalEncounterIndex: () => {
|
|
307
|
+
return {
|
|
308
|
+
path: `${base}/journal-encounter/index`,
|
|
309
|
+
namespace: "static"
|
|
310
|
+
};
|
|
311
|
+
},
|
|
312
|
+
//TODO Improve search endpoints
|
|
313
|
+
//journalEncounterSearch: (): Resource<void> => {
|
|
314
|
+
// return {
|
|
315
|
+
// path: `${base}/journal-encounter/search`,
|
|
316
|
+
// namespace: 'static',
|
|
317
|
+
// };
|
|
318
|
+
//},
|
|
319
|
+
journalExpansion: (journalExpansionId) => {
|
|
320
|
+
return {
|
|
321
|
+
path: `${base}/journal-expansion/${journalExpansionId}`,
|
|
322
|
+
namespace: "static"
|
|
323
|
+
};
|
|
324
|
+
},
|
|
325
|
+
journalExpansionIndex: () => {
|
|
326
|
+
return {
|
|
327
|
+
path: `${base}/journal-expansion/index`,
|
|
328
|
+
namespace: "static"
|
|
329
|
+
};
|
|
330
|
+
},
|
|
331
|
+
journalInstance: (journalInstanceId) => {
|
|
332
|
+
return {
|
|
333
|
+
path: `${base}/journal-instance/${journalInstanceId}`,
|
|
334
|
+
namespace: "static"
|
|
335
|
+
};
|
|
336
|
+
},
|
|
337
|
+
journalInstanceIndex: () => {
|
|
338
|
+
return {
|
|
339
|
+
path: `${base}/journal-instance/index`,
|
|
340
|
+
namespace: "static"
|
|
341
|
+
};
|
|
342
|
+
},
|
|
343
|
+
journalInstanceMedia: (journalInstanceId) => {
|
|
344
|
+
return {
|
|
345
|
+
path: `${mediaBase}/journal-instance/${journalInstanceId}`,
|
|
346
|
+
namespace: "static"
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
// src/media-search/media-search.ts
|
|
352
|
+
var mediaSearchApi = {
|
|
353
|
+
mediaSearch: () => {
|
|
354
|
+
return {
|
|
355
|
+
path: `${base}/search/media`,
|
|
356
|
+
namespace: "static"
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
// src/modified-crafting/modified-crafting.ts
|
|
362
|
+
var modifiedCraftingApi = {
|
|
363
|
+
modifiedCraftingCategory: (modifiedCraftingCategoryId) => {
|
|
364
|
+
return {
|
|
365
|
+
path: `${base}/modified-crafting/category/${modifiedCraftingCategoryId}`,
|
|
366
|
+
namespace: "static"
|
|
367
|
+
};
|
|
368
|
+
},
|
|
369
|
+
modifiedCraftingCategoryIndex: () => {
|
|
370
|
+
return {
|
|
371
|
+
path: `${base}/modified-crafting/category/index`,
|
|
372
|
+
namespace: "static"
|
|
373
|
+
};
|
|
374
|
+
},
|
|
375
|
+
modifiedCraftingIndex: () => {
|
|
376
|
+
return {
|
|
377
|
+
path: `${base}/modified-crafting/index`,
|
|
378
|
+
namespace: "static"
|
|
379
|
+
};
|
|
380
|
+
},
|
|
381
|
+
modifiedCraftingReagentSlotType: (modifiedCraftingReagentSlotTypeId) => {
|
|
382
|
+
return {
|
|
383
|
+
path: `${base}/modified-crafting/reagent-slot-type/${modifiedCraftingReagentSlotTypeId}`,
|
|
384
|
+
namespace: "static"
|
|
385
|
+
};
|
|
386
|
+
},
|
|
387
|
+
modifiedCraftingReagentSlotTypeIndex: () => {
|
|
388
|
+
return {
|
|
389
|
+
path: `${base}/modified-crafting/reagent-slot-type/index`,
|
|
390
|
+
namespace: "static"
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
// src/mount/mount.ts
|
|
396
|
+
var mountApi = {
|
|
397
|
+
mount: (mountId) => {
|
|
398
|
+
return {
|
|
399
|
+
path: `${base}/mount/${mountId}`,
|
|
400
|
+
namespace: "static"
|
|
401
|
+
};
|
|
402
|
+
},
|
|
403
|
+
mountIndex: () => {
|
|
404
|
+
return {
|
|
405
|
+
path: `${base}/mount/index`,
|
|
406
|
+
namespace: "static"
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
//TODO Improve search endpoints
|
|
410
|
+
//mountSearch: (): Resource<void> => {
|
|
411
|
+
// return {
|
|
412
|
+
// path: `${base}/mount/search`,
|
|
413
|
+
// namespace: 'static',
|
|
414
|
+
// };
|
|
415
|
+
//},
|
|
416
|
+
};
|
|
417
|
+
|
|
418
|
+
// src/mythic-keystone-affix/mythic-keystone-affix.ts
|
|
419
|
+
var mythicKeystoneAffixApi = {
|
|
420
|
+
mythicKeystoneAffix: (mythicKeystoneAffixId) => {
|
|
421
|
+
return {
|
|
422
|
+
path: `${base}/mythic-keystone-affix/${mythicKeystoneAffixId}`,
|
|
423
|
+
namespace: "static"
|
|
424
|
+
};
|
|
425
|
+
},
|
|
426
|
+
mythicKeystoneAffixIndex: () => {
|
|
427
|
+
return {
|
|
428
|
+
path: `${base}/mythic-keystone-affix/index`,
|
|
429
|
+
namespace: "static"
|
|
430
|
+
};
|
|
431
|
+
},
|
|
432
|
+
mythicKeystoneAffixMedia: (mythicKeystoneAffixId) => {
|
|
433
|
+
return {
|
|
434
|
+
path: `${mediaBase}/mythic-keystone-affix/${mythicKeystoneAffixId}`,
|
|
435
|
+
namespace: "static"
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
// src/mythic-keystone-dungeon/mythic-keystone-dungeon.ts
|
|
441
|
+
var mythicKeystoneDungeonApi = {
|
|
442
|
+
mythicKeystoneDungeon: (mythicKeystoneDungeonId) => {
|
|
443
|
+
return {
|
|
444
|
+
path: `${base}/mythic-keystone/dungeon/${mythicKeystoneDungeonId}`,
|
|
445
|
+
namespace: "dynamic"
|
|
446
|
+
};
|
|
447
|
+
},
|
|
448
|
+
mythicKeystoneDungeonIndex: () => {
|
|
449
|
+
return {
|
|
450
|
+
path: `${base}/mythic-keystone/dungeon/index`,
|
|
451
|
+
namespace: "dynamic"
|
|
452
|
+
};
|
|
453
|
+
},
|
|
454
|
+
mythicKeystoneIndex: () => {
|
|
455
|
+
return {
|
|
456
|
+
path: `${base}/mythic-keystone/index`,
|
|
457
|
+
namespace: "dynamic"
|
|
458
|
+
};
|
|
459
|
+
},
|
|
460
|
+
mythicKeystonePeriod: (mythicKeystonePeriodId) => {
|
|
461
|
+
return {
|
|
462
|
+
path: `${base}/mythic-keystone/period/${mythicKeystonePeriodId}`,
|
|
463
|
+
namespace: "dynamic"
|
|
464
|
+
};
|
|
465
|
+
},
|
|
466
|
+
mythicKeystonePeriodIndex: () => {
|
|
467
|
+
return {
|
|
468
|
+
path: `${base}/mythic-keystone/period/index`,
|
|
469
|
+
namespace: "dynamic"
|
|
470
|
+
};
|
|
471
|
+
},
|
|
472
|
+
mythicKeystoneSeason: (mythicKeystoneSeasonId) => {
|
|
473
|
+
return {
|
|
474
|
+
path: `${base}/mythic-keystone/season/${mythicKeystoneSeasonId}`,
|
|
475
|
+
namespace: "dynamic"
|
|
476
|
+
};
|
|
477
|
+
},
|
|
478
|
+
mythicKeystoneSeasonIndex: () => {
|
|
479
|
+
return {
|
|
480
|
+
path: `${base}/mythic-keystone/season/index`,
|
|
481
|
+
namespace: "dynamic"
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
// src/mythic-keystone-leaderboard/mythic-keystone-leaderboard.ts
|
|
487
|
+
var mythicKeystoneLeaderboardApi = {
|
|
488
|
+
mythicKeystoneLeaderboard: (connectedRealmId, dungeonId, period) => {
|
|
489
|
+
return {
|
|
490
|
+
path: `${base}/connected-realm/${connectedRealmId}/mythic-leaderboard/${dungeonId}/period/${period}`,
|
|
491
|
+
namespace: "dynamic"
|
|
492
|
+
};
|
|
493
|
+
},
|
|
494
|
+
mythicKeystoneLeaderboardIndex: (connectedRealmId) => {
|
|
495
|
+
return {
|
|
496
|
+
path: `${base}/connected-realm/${connectedRealmId}/mythic-leaderboard/index`,
|
|
497
|
+
namespace: "dynamic"
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
// src/mythic-raid-leaderboard/mythic-raid-leaderboard.ts
|
|
503
|
+
var mythicRaidLeaderboardApi = {
|
|
504
|
+
//TODO Implement a better type than string for raid
|
|
505
|
+
mythicRaidLeaderboard: (raid, faction) => {
|
|
506
|
+
return {
|
|
507
|
+
path: `${base}/leaderboard/hall-of-fame/${raid}/${faction}`,
|
|
508
|
+
namespace: "dynamic"
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
// src/pet/pet.ts
|
|
514
|
+
var petApi = {
|
|
515
|
+
pet: (petId) => {
|
|
516
|
+
return {
|
|
517
|
+
path: `${base}/pet/${petId}`,
|
|
518
|
+
namespace: "static"
|
|
519
|
+
};
|
|
520
|
+
},
|
|
521
|
+
petIndex: () => {
|
|
522
|
+
return {
|
|
523
|
+
path: `${base}/pet/index`,
|
|
524
|
+
namespace: "static"
|
|
525
|
+
};
|
|
526
|
+
},
|
|
527
|
+
petMedia: (petId) => {
|
|
528
|
+
return {
|
|
529
|
+
path: `${mediaBase}/pet/${petId}`,
|
|
530
|
+
namespace: "static"
|
|
531
|
+
};
|
|
532
|
+
},
|
|
533
|
+
petAbility: (petAbilityId) => {
|
|
534
|
+
return {
|
|
535
|
+
path: `${base}/pet-ability/${petAbilityId}`,
|
|
536
|
+
namespace: "static"
|
|
537
|
+
};
|
|
538
|
+
},
|
|
539
|
+
petAbilityIndex: () => {
|
|
540
|
+
return {
|
|
541
|
+
path: `${base}/pet-ability/index`,
|
|
542
|
+
namespace: "static"
|
|
543
|
+
};
|
|
544
|
+
},
|
|
545
|
+
petAbilityMedia: (petAbilityId) => {
|
|
546
|
+
return {
|
|
547
|
+
path: `${mediaBase}/pet-ability/${petAbilityId}`,
|
|
548
|
+
namespace: "static"
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
// src/playable-class/playable-class.ts
|
|
554
|
+
var playableClassApi = {
|
|
555
|
+
playableClass: (playableClassId) => {
|
|
556
|
+
return {
|
|
557
|
+
path: `${base}/playable-class/${playableClassId}`,
|
|
558
|
+
namespace: "static"
|
|
559
|
+
};
|
|
560
|
+
},
|
|
561
|
+
playableClassIndex: () => {
|
|
562
|
+
return {
|
|
563
|
+
path: `${base}/playable-class/index`,
|
|
564
|
+
namespace: "static"
|
|
565
|
+
};
|
|
566
|
+
},
|
|
567
|
+
playableClassMedia: (playableClassId) => {
|
|
568
|
+
return {
|
|
569
|
+
path: `${mediaBase}/playable-class/${playableClassId}`,
|
|
570
|
+
namespace: "static"
|
|
571
|
+
};
|
|
572
|
+
},
|
|
573
|
+
pvpTalentSlots: (playableClassId) => {
|
|
574
|
+
return {
|
|
575
|
+
path: `${base}/playable-class/${playableClassId}/pvp-talent-slots`,
|
|
576
|
+
namespace: "static"
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
};
|
|
580
|
+
|
|
581
|
+
// src/playable-race/playable-race.ts
|
|
582
|
+
var playableRaceApi = {
|
|
583
|
+
playableRace: (playableRaceId) => {
|
|
584
|
+
return {
|
|
585
|
+
path: `${base}/playable-race/${playableRaceId}`,
|
|
586
|
+
namespace: "static"
|
|
587
|
+
};
|
|
588
|
+
},
|
|
589
|
+
playableRaceIndex: () => {
|
|
590
|
+
return {
|
|
591
|
+
path: `${base}/playable-race/index`,
|
|
592
|
+
namespace: "static"
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
// src/playable-specialization/playable-specialization.ts
|
|
598
|
+
var playableSpecializationApi = {
|
|
599
|
+
playableSpecialization: (specializationId) => {
|
|
600
|
+
return {
|
|
601
|
+
path: `${base}/playable-specialization/${specializationId}`,
|
|
602
|
+
namespace: "static"
|
|
603
|
+
};
|
|
604
|
+
},
|
|
605
|
+
playableSpecializationIndex: () => {
|
|
606
|
+
return {
|
|
607
|
+
path: `${base}/playable-specialization/index`,
|
|
608
|
+
namespace: "static"
|
|
609
|
+
};
|
|
610
|
+
},
|
|
611
|
+
playableSpecializationMedia: (specializationId) => {
|
|
612
|
+
return {
|
|
613
|
+
path: `${mediaBase}/playable-specialization/${specializationId}`,
|
|
614
|
+
namespace: "static"
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
};
|
|
618
|
+
|
|
619
|
+
// src/power-type/power-type.ts
|
|
620
|
+
var powerTypeApi = {
|
|
621
|
+
powerType: (powerTypeId) => {
|
|
622
|
+
return {
|
|
623
|
+
path: `${base}/power-type/${powerTypeId}`,
|
|
624
|
+
namespace: "static"
|
|
625
|
+
};
|
|
626
|
+
},
|
|
627
|
+
powerTypeIndex: () => {
|
|
628
|
+
return {
|
|
629
|
+
path: `${base}/power-type/index`,
|
|
630
|
+
namespace: "static"
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
};
|
|
634
|
+
|
|
635
|
+
// src/profession/profession.ts
|
|
636
|
+
var professionApi = {
|
|
637
|
+
profession: (professionId) => {
|
|
638
|
+
return {
|
|
639
|
+
path: `${base}/profession/${professionId}`,
|
|
640
|
+
namespace: "static"
|
|
641
|
+
};
|
|
642
|
+
},
|
|
643
|
+
professionIndex: () => {
|
|
644
|
+
return {
|
|
645
|
+
path: `${base}/profession/index`,
|
|
646
|
+
namespace: "static"
|
|
647
|
+
};
|
|
648
|
+
},
|
|
649
|
+
professionMedia: (professionId) => {
|
|
650
|
+
return {
|
|
651
|
+
path: `${mediaBase}/profession/${professionId}`,
|
|
652
|
+
namespace: "static"
|
|
653
|
+
};
|
|
654
|
+
},
|
|
655
|
+
professionSkillTier: (professionId, skillTierId) => {
|
|
656
|
+
return {
|
|
657
|
+
path: `${base}/profession/${professionId}/skill-tier/${skillTierId}`,
|
|
658
|
+
namespace: "static"
|
|
659
|
+
};
|
|
660
|
+
},
|
|
661
|
+
recipe: (recipeId) => {
|
|
662
|
+
return {
|
|
663
|
+
path: `${base}/recipe/${recipeId}`,
|
|
664
|
+
namespace: "static"
|
|
665
|
+
};
|
|
666
|
+
},
|
|
667
|
+
recipeMedia: (recipeId) => {
|
|
668
|
+
return {
|
|
669
|
+
path: `${mediaBase}/recipe/${recipeId}`,
|
|
670
|
+
namespace: "static"
|
|
671
|
+
};
|
|
672
|
+
}
|
|
673
|
+
};
|
|
674
|
+
|
|
675
|
+
// src/pvp-season/pvp-season.ts
|
|
676
|
+
var pvpSeasonApi = {
|
|
677
|
+
pvpLeaderboard: (pvpSeasonId, bracket) => {
|
|
678
|
+
return {
|
|
679
|
+
path: `${base}/pvp-season/${pvpSeasonId}/pvp-leaderboard/${bracket}`,
|
|
680
|
+
namespace: "dynamic"
|
|
681
|
+
};
|
|
682
|
+
},
|
|
683
|
+
pvpLeaderboardIndex: (pvpSeasonId) => {
|
|
684
|
+
return {
|
|
685
|
+
path: `${base}/pvp-season/${pvpSeasonId}/pvp-leaderboard/index`,
|
|
686
|
+
namespace: "dynamic"
|
|
687
|
+
};
|
|
688
|
+
},
|
|
689
|
+
pvpRewardsIndex: (pvpSeasonId) => {
|
|
690
|
+
return {
|
|
691
|
+
path: `${base}/pvp-season/${pvpSeasonId}/pvp-reward/index`,
|
|
692
|
+
namespace: "dynamic"
|
|
693
|
+
};
|
|
694
|
+
},
|
|
695
|
+
pvpSeason: (pvpSeasonId) => {
|
|
696
|
+
return {
|
|
697
|
+
path: `${base}/pvp-season/${pvpSeasonId}`,
|
|
698
|
+
namespace: "dynamic"
|
|
699
|
+
};
|
|
700
|
+
},
|
|
701
|
+
pvpSeasonIndex: () => {
|
|
702
|
+
return {
|
|
703
|
+
path: `${base}/pvp-season/index`,
|
|
704
|
+
namespace: "dynamic"
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
};
|
|
708
|
+
|
|
709
|
+
// src/pvp-tier/pvp-tier.ts
|
|
710
|
+
var pvpTierApi = {
|
|
711
|
+
pvpTier: (pvpTierId) => {
|
|
712
|
+
return {
|
|
713
|
+
path: `${base}/pvp-tier/${pvpTierId}`,
|
|
714
|
+
namespace: "static"
|
|
715
|
+
};
|
|
716
|
+
},
|
|
717
|
+
pvpTierIndex: () => {
|
|
718
|
+
return {
|
|
719
|
+
path: `${base}/pvp-tier/index`,
|
|
720
|
+
namespace: "static"
|
|
721
|
+
};
|
|
722
|
+
},
|
|
723
|
+
pvpTierMedia: (pvpTierId) => {
|
|
724
|
+
return {
|
|
725
|
+
path: `${mediaBase}/pvp-tier/${pvpTierId}`,
|
|
726
|
+
namespace: "static"
|
|
727
|
+
};
|
|
728
|
+
}
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
// src/quest/quest.ts
|
|
732
|
+
var questApi = {
|
|
733
|
+
quest: (questId) => {
|
|
734
|
+
return {
|
|
735
|
+
path: `${base}/quest/${questId}`,
|
|
736
|
+
namespace: "static"
|
|
737
|
+
};
|
|
738
|
+
},
|
|
739
|
+
questIndex: () => {
|
|
740
|
+
return {
|
|
741
|
+
path: `${base}/quest/index`,
|
|
742
|
+
namespace: "static"
|
|
743
|
+
};
|
|
744
|
+
},
|
|
745
|
+
questArea: (questAreaId) => {
|
|
746
|
+
return {
|
|
747
|
+
path: `${base}/quest/area/${questAreaId}`,
|
|
748
|
+
namespace: "static"
|
|
749
|
+
};
|
|
750
|
+
},
|
|
751
|
+
questAreaIndex: () => {
|
|
752
|
+
return {
|
|
753
|
+
path: `${base}/quest/area/index`,
|
|
754
|
+
namespace: "static"
|
|
755
|
+
};
|
|
756
|
+
},
|
|
757
|
+
questCategory: (questCategoryId) => {
|
|
758
|
+
return {
|
|
759
|
+
path: `${base}/quest/category/${questCategoryId}`,
|
|
760
|
+
namespace: "static"
|
|
761
|
+
};
|
|
762
|
+
},
|
|
763
|
+
questCategoryIndex: () => {
|
|
764
|
+
return {
|
|
765
|
+
path: `${base}/quest/category/index`,
|
|
766
|
+
namespace: "static"
|
|
767
|
+
};
|
|
768
|
+
},
|
|
769
|
+
questType: (questTypeId) => {
|
|
770
|
+
return {
|
|
771
|
+
path: `${base}/quest/type/${questTypeId}`,
|
|
772
|
+
namespace: "static"
|
|
773
|
+
};
|
|
774
|
+
},
|
|
775
|
+
questTypeIndex: () => {
|
|
776
|
+
return {
|
|
777
|
+
path: `${base}/quest/type/index`,
|
|
778
|
+
namespace: "static"
|
|
779
|
+
};
|
|
780
|
+
}
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
// src/realm/realm.ts
|
|
784
|
+
var realmApi = {
|
|
785
|
+
realm: (realmSlug) => {
|
|
786
|
+
return {
|
|
787
|
+
path: `${base}/realm/${realmSlug}`,
|
|
788
|
+
namespace: "dynamic"
|
|
789
|
+
};
|
|
790
|
+
},
|
|
791
|
+
realmIndex: () => {
|
|
792
|
+
return {
|
|
793
|
+
path: `${base}/realm/index`,
|
|
794
|
+
namespace: "dynamic"
|
|
795
|
+
};
|
|
796
|
+
}
|
|
797
|
+
//TODO Improve search endpoints
|
|
798
|
+
//realmSearch: (): Resource<void> => {
|
|
799
|
+
// return {
|
|
800
|
+
// path: `${base}/realm/search`,
|
|
801
|
+
// namespace: 'dynamic',
|
|
802
|
+
// };
|
|
803
|
+
//},
|
|
804
|
+
};
|
|
805
|
+
|
|
806
|
+
// src/region/region.ts
|
|
807
|
+
var regionApi = {
|
|
808
|
+
region: (regionId) => {
|
|
809
|
+
return {
|
|
810
|
+
path: `${base}/region/${regionId}`,
|
|
811
|
+
namespace: "static"
|
|
812
|
+
};
|
|
813
|
+
},
|
|
814
|
+
regionIndex: () => {
|
|
815
|
+
return {
|
|
816
|
+
path: `${base}/region/index`,
|
|
817
|
+
namespace: "static"
|
|
818
|
+
};
|
|
819
|
+
}
|
|
820
|
+
};
|
|
821
|
+
|
|
822
|
+
// src/reputations/reputations.ts
|
|
823
|
+
var reputationApi = {
|
|
824
|
+
reputationFaction: (reputationFactionId) => {
|
|
825
|
+
return {
|
|
826
|
+
path: `${base}/reputation-faction/${reputationFactionId}`,
|
|
827
|
+
namespace: "static"
|
|
828
|
+
};
|
|
829
|
+
},
|
|
830
|
+
reputationFactionIndex: () => {
|
|
831
|
+
return {
|
|
832
|
+
path: `${base}/reputation-faction/index`,
|
|
833
|
+
namespace: "static"
|
|
834
|
+
};
|
|
835
|
+
},
|
|
836
|
+
reputationTiers: (reputationTiersId) => {
|
|
837
|
+
return {
|
|
838
|
+
path: `${base}/reputation-tiers/${reputationTiersId}`,
|
|
839
|
+
namespace: "static"
|
|
840
|
+
};
|
|
841
|
+
},
|
|
842
|
+
reputationTiersIndex: () => {
|
|
843
|
+
return {
|
|
844
|
+
path: `${base}/reputation-tiers/index`,
|
|
845
|
+
namespace: "static"
|
|
846
|
+
};
|
|
847
|
+
}
|
|
848
|
+
};
|
|
849
|
+
|
|
850
|
+
// src/spell/spell.ts
|
|
851
|
+
var spellApi = {
|
|
852
|
+
spell: (spellId) => {
|
|
853
|
+
return {
|
|
854
|
+
path: `${base}/spell/${spellId}`,
|
|
855
|
+
namespace: "static"
|
|
856
|
+
};
|
|
857
|
+
},
|
|
858
|
+
spellMedia: (spellId) => {
|
|
859
|
+
return {
|
|
860
|
+
path: `${mediaBase}/spell/${spellId}`,
|
|
861
|
+
namespace: "static"
|
|
862
|
+
};
|
|
863
|
+
}
|
|
864
|
+
//TODO Improve search endpoints
|
|
865
|
+
//spellSearch: (): Resource<void> => {
|
|
866
|
+
// return {
|
|
867
|
+
// path: `${base}/spell/search`,
|
|
868
|
+
// namespace: 'static',
|
|
869
|
+
// };
|
|
870
|
+
//},
|
|
871
|
+
};
|
|
872
|
+
|
|
873
|
+
// src/talent/talent.ts
|
|
874
|
+
var talentApi = {
|
|
875
|
+
pvpTalent: (pvpTalentId) => {
|
|
876
|
+
return {
|
|
877
|
+
path: `${base}/pvp-talent/${pvpTalentId}`,
|
|
878
|
+
namespace: "static"
|
|
879
|
+
};
|
|
880
|
+
},
|
|
881
|
+
pvpTalentIndex: () => {
|
|
882
|
+
return {
|
|
883
|
+
path: `${base}/pvp-talent/index`,
|
|
884
|
+
namespace: "static"
|
|
885
|
+
};
|
|
886
|
+
},
|
|
887
|
+
talent: (talentId) => {
|
|
888
|
+
return {
|
|
889
|
+
path: `${base}/talent/${talentId}`,
|
|
890
|
+
namespace: "static"
|
|
891
|
+
};
|
|
892
|
+
},
|
|
893
|
+
talentIndex: () => {
|
|
894
|
+
return {
|
|
895
|
+
path: `${base}/talent/index`,
|
|
896
|
+
namespace: "static"
|
|
897
|
+
};
|
|
898
|
+
},
|
|
899
|
+
talentTree: (talentTreeId, specId) => {
|
|
900
|
+
return {
|
|
901
|
+
path: `${base}/talent-tree/${talentTreeId}/playable-specialization/${specId}`,
|
|
902
|
+
namespace: "static"
|
|
903
|
+
};
|
|
904
|
+
},
|
|
905
|
+
talentTreeIndex: () => {
|
|
906
|
+
return {
|
|
907
|
+
path: `${base}/talent-tree/index`,
|
|
908
|
+
namespace: "static"
|
|
909
|
+
};
|
|
910
|
+
},
|
|
911
|
+
talentTreeNodes: (talentTreeId) => {
|
|
912
|
+
return {
|
|
913
|
+
path: `${base}/talent-tree/${talentTreeId}`,
|
|
914
|
+
namespace: "static"
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
};
|
|
918
|
+
|
|
919
|
+
// src/tech-talent/tech-talent.ts
|
|
920
|
+
var techTalentApi = {
|
|
921
|
+
techTalent: (techTalentId) => {
|
|
922
|
+
return {
|
|
923
|
+
path: `${base}/tech-talent/${techTalentId}`,
|
|
924
|
+
namespace: "static"
|
|
925
|
+
};
|
|
926
|
+
},
|
|
927
|
+
techTalentIndex: () => {
|
|
928
|
+
return {
|
|
929
|
+
path: `${base}/tech-talent/index`,
|
|
930
|
+
namespace: "static"
|
|
931
|
+
};
|
|
932
|
+
},
|
|
933
|
+
techTalentMedia: (techTalentId) => {
|
|
934
|
+
return {
|
|
935
|
+
path: `${mediaBase}/tech-talent/${techTalentId}`,
|
|
936
|
+
namespace: "static"
|
|
937
|
+
};
|
|
938
|
+
},
|
|
939
|
+
techTalentTree: (techTalentTreeId) => {
|
|
940
|
+
return {
|
|
941
|
+
path: `${base}/tech-talent-tree/${techTalentTreeId}`,
|
|
942
|
+
namespace: "static"
|
|
943
|
+
};
|
|
944
|
+
},
|
|
945
|
+
techTalentTreeIndex: () => {
|
|
946
|
+
return {
|
|
947
|
+
path: `${base}/tech-talent-tree/index`,
|
|
948
|
+
namespace: "static"
|
|
949
|
+
};
|
|
950
|
+
}
|
|
951
|
+
};
|
|
952
|
+
|
|
953
|
+
// src/title/title.ts
|
|
954
|
+
var titleApi = {
|
|
955
|
+
title: (titleId) => {
|
|
956
|
+
return {
|
|
957
|
+
path: `${base}/title/${titleId}`,
|
|
958
|
+
namespace: "static"
|
|
959
|
+
};
|
|
960
|
+
},
|
|
961
|
+
titleIndex: () => {
|
|
962
|
+
return {
|
|
963
|
+
path: `${base}/title/index`,
|
|
964
|
+
namespace: "static"
|
|
965
|
+
};
|
|
966
|
+
}
|
|
967
|
+
};
|
|
968
|
+
|
|
969
|
+
// src/toy/toy.ts
|
|
970
|
+
var toyApi = {
|
|
971
|
+
toy: (toyId) => {
|
|
972
|
+
return {
|
|
973
|
+
path: `${base}/toy/${toyId}`,
|
|
974
|
+
namespace: "static"
|
|
975
|
+
};
|
|
976
|
+
},
|
|
977
|
+
toyIndex: () => {
|
|
978
|
+
return {
|
|
979
|
+
path: `${base}/toy/index`,
|
|
980
|
+
namespace: "static"
|
|
981
|
+
};
|
|
982
|
+
}
|
|
983
|
+
};
|
|
984
|
+
|
|
985
|
+
// src/wow-token/wow-token.ts
|
|
986
|
+
var wowTokenApi = {
|
|
987
|
+
wowToken: () => {
|
|
988
|
+
return {
|
|
989
|
+
path: `${base}/token/index`,
|
|
990
|
+
namespace: "dynamic"
|
|
991
|
+
};
|
|
992
|
+
}
|
|
993
|
+
};
|
|
994
|
+
|
|
207
995
|
// src/index.ts
|
|
208
996
|
var wow = {
|
|
209
997
|
...achievementApi,
|
|
@@ -211,7 +999,36 @@ var wow = {
|
|
|
211
999
|
...azeriteEssenceApi,
|
|
212
1000
|
...connectedRealmApi,
|
|
213
1001
|
...covenantApi,
|
|
214
|
-
...creatureApi
|
|
1002
|
+
...creatureApi,
|
|
1003
|
+
...guildCrestApi,
|
|
1004
|
+
...heirloomApi,
|
|
1005
|
+
...itemApi,
|
|
1006
|
+
...journalApi,
|
|
1007
|
+
...mediaSearchApi,
|
|
1008
|
+
...modifiedCraftingApi,
|
|
1009
|
+
...mountApi,
|
|
1010
|
+
...mythicKeystoneAffixApi,
|
|
1011
|
+
...mythicKeystoneDungeonApi,
|
|
1012
|
+
...mythicKeystoneLeaderboardApi,
|
|
1013
|
+
...mythicRaidLeaderboardApi,
|
|
1014
|
+
...petApi,
|
|
1015
|
+
...playableClassApi,
|
|
1016
|
+
...playableRaceApi,
|
|
1017
|
+
...playableSpecializationApi,
|
|
1018
|
+
...powerTypeApi,
|
|
1019
|
+
...professionApi,
|
|
1020
|
+
...pvpSeasonApi,
|
|
1021
|
+
...pvpTierApi,
|
|
1022
|
+
...questApi,
|
|
1023
|
+
...realmApi,
|
|
1024
|
+
...regionApi,
|
|
1025
|
+
...reputationApi,
|
|
1026
|
+
...spellApi,
|
|
1027
|
+
...talentApi,
|
|
1028
|
+
...techTalentApi,
|
|
1029
|
+
...titleApi,
|
|
1030
|
+
...toyApi,
|
|
1031
|
+
...wowTokenApi
|
|
215
1032
|
};
|
|
216
1033
|
export {
|
|
217
1034
|
wow
|