@pinta365/blizzard_api 0.3.6 → 0.3.9

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.
Files changed (278) hide show
  1. package/README.md +1 -0
  2. package/esm/mod.d.ts +4 -2
  3. package/esm/mod.js +4 -2
  4. package/package.json +1 -1
  5. package/script/mod.d.ts +4 -2
  6. package/script/mod.js +8 -1
  7. package/esm/src/hearthstone/game_data/card_backs.d.ts +0 -22
  8. package/esm/src/hearthstone/game_data/card_backs.js +0 -23
  9. package/esm/src/hearthstone/game_data/cards.d.ts +0 -37
  10. package/esm/src/hearthstone/game_data/cards.js +0 -27
  11. package/esm/src/hearthstone/game_data/decks.d.ts +0 -88
  12. package/esm/src/hearthstone/game_data/decks.js +0 -14
  13. package/esm/src/hearthstone/game_data/metadata.d.ts +0 -95
  14. package/esm/src/hearthstone/game_data/metadata.js +0 -12
  15. package/esm/src/hearthstone/index.d.ts +0 -4
  16. package/esm/src/hearthstone/index.js +0 -4
  17. package/esm/src/hearthstone/search.d.ts +0 -20
  18. package/esm/src/hearthstone/search.js +0 -29
  19. package/esm/src/shared/auth.d.ts +0 -24
  20. package/esm/src/shared/auth.js +0 -58
  21. package/esm/src/shared/config.d.ts +0 -40
  22. package/esm/src/shared/config.js +0 -48
  23. package/esm/src/shared/errors.d.ts +0 -44
  24. package/esm/src/shared/errors.js +0 -83
  25. package/esm/src/shared/index.d.ts +0 -4
  26. package/esm/src/shared/index.js +0 -3
  27. package/esm/src/shared/request.d.ts +0 -13
  28. package/esm/src/shared/request.js +0 -43
  29. package/esm/src/shared/types.d.ts +0 -120
  30. package/esm/src/shared/types.js +0 -2
  31. package/esm/src/starcraft2/game_data/league.d.ts +0 -32
  32. package/esm/src/starcraft2/game_data/league.js +0 -21
  33. package/esm/src/starcraft2/index.d.ts +0 -1
  34. package/esm/src/starcraft2/index.js +0 -1
  35. package/esm/src/wow/game_data/achievement.d.ts +0 -84
  36. package/esm/src/wow/game_data/achievement.js +0 -69
  37. package/esm/src/wow/game_data/auction_house.d.ts +0 -64
  38. package/esm/src/wow/game_data/auction_house.js +0 -34
  39. package/esm/src/wow/game_data/azerite_essence.d.ts +0 -49
  40. package/esm/src/wow/game_data/azerite_essence.js +0 -49
  41. package/esm/src/wow/game_data/connected_realm.d.ts +0 -54
  42. package/esm/src/wow/game_data/connected_realm.js +0 -36
  43. package/esm/src/wow/game_data/covenant.d.ts +0 -108
  44. package/esm/src/wow/game_data/covenant.js +0 -89
  45. package/esm/src/wow/game_data/creature.d.ts +0 -97
  46. package/esm/src/wow/game_data/creature.js +0 -100
  47. package/esm/src/wow/game_data/guild_crest.d.ts +0 -55
  48. package/esm/src/wow/game_data/guild_crest.js +0 -39
  49. package/esm/src/wow/game_data/heirloom.d.ts +0 -79
  50. package/esm/src/wow/game_data/heirloom.js +0 -26
  51. package/esm/src/wow/game_data/item.d.ts +0 -166
  52. package/esm/src/wow/game_data/item.js +0 -101
  53. package/esm/src/wow/game_data/journal.d.ts +0 -121
  54. package/esm/src/wow/game_data/journal.js +0 -99
  55. package/esm/src/wow/game_data/keystone_affix.d.ts +0 -34
  56. package/esm/src/wow/game_data/keystone_affix.js +0 -39
  57. package/esm/src/wow/game_data/media_search.d.ts +0 -8
  58. package/esm/src/wow/game_data/media_search.js +0 -10
  59. package/esm/src/wow/game_data/modified_crafting.d.ts +0 -56
  60. package/esm/src/wow/game_data/modified_crafting.js +0 -63
  61. package/esm/src/wow/game_data/mount.d.ts +0 -30
  62. package/esm/src/wow/game_data/mount.js +0 -30
  63. package/esm/src/wow/game_data/mythic_keystone_dungeon.d.ts +0 -91
  64. package/esm/src/wow/game_data/mythic_keystone_dungeon.js +0 -88
  65. package/esm/src/wow/game_data/mythic_keystone_leaderboard.d.ts +0 -58
  66. package/esm/src/wow/game_data/mythic_keystone_leaderboard.js +0 -29
  67. package/esm/src/wow/game_data/mythic_raid_leaderboard.d.ts +0 -31
  68. package/esm/src/wow/game_data/mythic_raid_leaderboard.js +0 -15
  69. package/esm/src/wow/game_data/pet.d.ts +0 -91
  70. package/esm/src/wow/game_data/pet.js +0 -77
  71. package/esm/src/wow/game_data/playable_class.d.ts +0 -57
  72. package/esm/src/wow/game_data/playable_class.js +0 -52
  73. package/esm/src/wow/game_data/playable_race.d.ts +0 -29
  74. package/esm/src/wow/game_data/playable_race.js +0 -26
  75. package/esm/src/wow/game_data/power_type.d.ts +0 -21
  76. package/esm/src/wow/game_data/power_type.js +0 -26
  77. package/esm/src/wow/game_data/profession.d.ts +0 -85
  78. package/esm/src/wow/game_data/profession.js +0 -79
  79. package/esm/src/wow/game_data/pvp_season.d.ts +0 -99
  80. package/esm/src/wow/game_data/pvp_season.js +0 -66
  81. package/esm/src/wow/game_data/pvp_tier.d.ts +0 -40
  82. package/esm/src/wow/game_data/pvp_tier.js +0 -39
  83. package/esm/src/wow/game_data/quest.d.ts +0 -114
  84. package/esm/src/wow/game_data/quest.js +0 -101
  85. package/esm/src/wow/game_data/realm.d.ts +0 -42
  86. package/esm/src/wow/game_data/realm.js +0 -36
  87. package/esm/src/wow/game_data/region.d.ts +0 -24
  88. package/esm/src/wow/game_data/region.js +0 -26
  89. package/esm/src/wow/game_data/reputations.d.ts +0 -50
  90. package/esm/src/wow/game_data/reputations.js +0 -51
  91. package/esm/src/wow/game_data/spell.d.ts +0 -33
  92. package/esm/src/wow/game_data/spell.js +0 -37
  93. package/esm/src/wow/game_data/talent.d.ts +0 -129
  94. package/esm/src/wow/game_data/talent.js +0 -90
  95. package/esm/src/wow/game_data/tech_talent.d.ts +0 -70
  96. package/esm/src/wow/game_data/tech_talent.js +0 -64
  97. package/esm/src/wow/game_data/title.d.ts +0 -25
  98. package/esm/src/wow/game_data/title.js +0 -26
  99. package/esm/src/wow/game_data/token.d.ts +0 -16
  100. package/esm/src/wow/game_data/token.js +0 -19
  101. package/esm/src/wow/game_data/toy.d.ts +0 -24
  102. package/esm/src/wow/game_data/toy.js +0 -26
  103. package/esm/src/wow/index.d.ts +0 -53
  104. package/esm/src/wow/index.js +0 -55
  105. package/esm/src/wow/profile/character_achievements.d.ts +0 -87
  106. package/esm/src/wow/profile/character_achievements.js +0 -29
  107. package/esm/src/wow/profile/character_appearance.d.ts +0 -75
  108. package/esm/src/wow/profile/character_appearance.js +0 -15
  109. package/esm/src/wow/profile/character_collections.d.ts +0 -92
  110. package/esm/src/wow/profile/character_collections.js +0 -71
  111. package/esm/src/wow/profile/character_encounters.d.ts +0 -77
  112. package/esm/src/wow/profile/character_encounters.js +0 -43
  113. package/esm/src/wow/profile/character_equipment.d.ts +0 -132
  114. package/esm/src/wow/profile/character_equipment.js +0 -15
  115. package/esm/src/wow/profile/character_hunter_pets.d.ts +0 -21
  116. package/esm/src/wow/profile/character_hunter_pets.js +0 -15
  117. package/esm/src/wow/profile/character_media.d.ts +0 -13
  118. package/esm/src/wow/profile/character_media.js +0 -15
  119. package/esm/src/wow/profile/character_mythic_keystone_profile.d.ts +0 -58
  120. package/esm/src/wow/profile/character_mythic_keystone_profile.js +0 -32
  121. package/esm/src/wow/profile/character_professions.d.ts +0 -26
  122. package/esm/src/wow/profile/character_professions.js +0 -15
  123. package/esm/src/wow/profile/character_profile.d.ts +0 -82
  124. package/esm/src/wow/profile/character_profile.js +0 -40
  125. package/esm/src/wow/profile/character_pvp.d.ts +0 -51
  126. package/esm/src/wow/profile/character_pvp.js +0 -30
  127. package/esm/src/wow/profile/character_quests.d.ts +0 -28
  128. package/esm/src/wow/profile/character_quests.js +0 -29
  129. package/esm/src/wow/profile/character_reputations.d.ts +0 -22
  130. package/esm/src/wow/profile/character_reputations.js +0 -15
  131. package/esm/src/wow/profile/character_soulbinds.d.ts +0 -30
  132. package/esm/src/wow/profile/character_soulbinds.js +0 -15
  133. package/esm/src/wow/profile/character_specializations.d.ts +0 -44
  134. package/esm/src/wow/profile/character_specializations.js +0 -15
  135. package/esm/src/wow/profile/character_statistics.d.ts +0 -116
  136. package/esm/src/wow/profile/character_statistics.js +0 -15
  137. package/esm/src/wow/profile/character_titles.d.ts +0 -13
  138. package/esm/src/wow/profile/character_titles.js +0 -15
  139. package/esm/src/wow/profile/guild.d.ts +0 -117
  140. package/esm/src/wow/profile/guild.js +0 -57
  141. package/esm/src/wow/search.d.ts +0 -21
  142. package/esm/src/wow/search.js +0 -30
  143. package/script/src/hearthstone/game_data/card_backs.d.ts +0 -22
  144. package/script/src/hearthstone/game_data/card_backs.js +0 -28
  145. package/script/src/hearthstone/game_data/cards.d.ts +0 -37
  146. package/script/src/hearthstone/game_data/cards.js +0 -32
  147. package/script/src/hearthstone/game_data/decks.d.ts +0 -88
  148. package/script/src/hearthstone/game_data/decks.js +0 -18
  149. package/script/src/hearthstone/game_data/metadata.d.ts +0 -95
  150. package/script/src/hearthstone/game_data/metadata.js +0 -16
  151. package/script/src/hearthstone/index.d.ts +0 -4
  152. package/script/src/hearthstone/index.js +0 -13
  153. package/script/src/hearthstone/search.d.ts +0 -20
  154. package/script/src/hearthstone/search.js +0 -33
  155. package/script/src/shared/auth.d.ts +0 -24
  156. package/script/src/shared/auth.js +0 -63
  157. package/script/src/shared/config.d.ts +0 -40
  158. package/script/src/shared/config.js +0 -55
  159. package/script/src/shared/errors.d.ts +0 -44
  160. package/script/src/shared/errors.js +0 -91
  161. package/script/src/shared/index.d.ts +0 -4
  162. package/script/src/shared/index.js +0 -9
  163. package/script/src/shared/request.d.ts +0 -13
  164. package/script/src/shared/request.js +0 -47
  165. package/script/src/shared/types.d.ts +0 -120
  166. package/script/src/shared/types.js +0 -3
  167. package/script/src/starcraft2/game_data/league.d.ts +0 -32
  168. package/script/src/starcraft2/game_data/league.js +0 -25
  169. package/script/src/starcraft2/index.d.ts +0 -1
  170. package/script/src/starcraft2/index.js +0 -5
  171. package/script/src/wow/game_data/achievement.d.ts +0 -84
  172. package/script/src/wow/game_data/achievement.js +0 -77
  173. package/script/src/wow/game_data/auction_house.d.ts +0 -64
  174. package/script/src/wow/game_data/auction_house.js +0 -39
  175. package/script/src/wow/game_data/azerite_essence.d.ts +0 -49
  176. package/script/src/wow/game_data/azerite_essence.js +0 -56
  177. package/script/src/wow/game_data/connected_realm.d.ts +0 -54
  178. package/script/src/wow/game_data/connected_realm.js +0 -42
  179. package/script/src/wow/game_data/covenant.d.ts +0 -108
  180. package/script/src/wow/game_data/covenant.js +0 -99
  181. package/script/src/wow/game_data/creature.d.ts +0 -97
  182. package/script/src/wow/game_data/creature.js +0 -111
  183. package/script/src/wow/game_data/guild_crest.d.ts +0 -55
  184. package/script/src/wow/game_data/guild_crest.js +0 -45
  185. package/script/src/wow/game_data/heirloom.d.ts +0 -79
  186. package/script/src/wow/game_data/heirloom.js +0 -31
  187. package/script/src/wow/game_data/item.d.ts +0 -166
  188. package/script/src/wow/game_data/item.js +0 -112
  189. package/script/src/wow/game_data/journal.d.ts +0 -121
  190. package/script/src/wow/game_data/journal.js +0 -110
  191. package/script/src/wow/game_data/keystone_affix.d.ts +0 -34
  192. package/script/src/wow/game_data/keystone_affix.js +0 -45
  193. package/script/src/wow/game_data/media_search.d.ts +0 -8
  194. package/script/src/wow/game_data/media_search.js +0 -14
  195. package/script/src/wow/game_data/modified_crafting.d.ts +0 -56
  196. package/script/src/wow/game_data/modified_crafting.js +0 -71
  197. package/script/src/wow/game_data/mount.d.ts +0 -30
  198. package/script/src/wow/game_data/mount.js +0 -36
  199. package/script/src/wow/game_data/mythic_keystone_dungeon.d.ts +0 -91
  200. package/script/src/wow/game_data/mythic_keystone_dungeon.js +0 -98
  201. package/script/src/wow/game_data/mythic_keystone_leaderboard.d.ts +0 -58
  202. package/script/src/wow/game_data/mythic_keystone_leaderboard.js +0 -34
  203. package/script/src/wow/game_data/mythic_raid_leaderboard.d.ts +0 -31
  204. package/script/src/wow/game_data/mythic_raid_leaderboard.js +0 -19
  205. package/script/src/wow/game_data/pet.d.ts +0 -91
  206. package/script/src/wow/game_data/pet.js +0 -86
  207. package/script/src/wow/game_data/playable_class.d.ts +0 -57
  208. package/script/src/wow/game_data/playable_class.js +0 -59
  209. package/script/src/wow/game_data/playable_race.d.ts +0 -29
  210. package/script/src/wow/game_data/playable_race.js +0 -31
  211. package/script/src/wow/game_data/power_type.d.ts +0 -21
  212. package/script/src/wow/game_data/power_type.js +0 -31
  213. package/script/src/wow/game_data/profession.d.ts +0 -85
  214. package/script/src/wow/game_data/profession.js +0 -88
  215. package/script/src/wow/game_data/pvp_season.d.ts +0 -99
  216. package/script/src/wow/game_data/pvp_season.js +0 -74
  217. package/script/src/wow/game_data/pvp_tier.d.ts +0 -40
  218. package/script/src/wow/game_data/pvp_tier.js +0 -45
  219. package/script/src/wow/game_data/quest.d.ts +0 -114
  220. package/script/src/wow/game_data/quest.js +0 -112
  221. package/script/src/wow/game_data/realm.d.ts +0 -42
  222. package/script/src/wow/game_data/realm.js +0 -42
  223. package/script/src/wow/game_data/region.d.ts +0 -24
  224. package/script/src/wow/game_data/region.js +0 -31
  225. package/script/src/wow/game_data/reputations.d.ts +0 -50
  226. package/script/src/wow/game_data/reputations.js +0 -58
  227. package/script/src/wow/game_data/spell.d.ts +0 -33
  228. package/script/src/wow/game_data/spell.js +0 -43
  229. package/script/src/wow/game_data/talent.d.ts +0 -129
  230. package/script/src/wow/game_data/talent.js +0 -100
  231. package/script/src/wow/game_data/tech_talent.d.ts +0 -70
  232. package/script/src/wow/game_data/tech_talent.js +0 -72
  233. package/script/src/wow/game_data/title.d.ts +0 -25
  234. package/script/src/wow/game_data/title.js +0 -31
  235. package/script/src/wow/game_data/token.d.ts +0 -16
  236. package/script/src/wow/game_data/token.js +0 -23
  237. package/script/src/wow/game_data/toy.d.ts +0 -24
  238. package/script/src/wow/game_data/toy.js +0 -31
  239. package/script/src/wow/index.d.ts +0 -53
  240. package/script/src/wow/index.js +0 -228
  241. package/script/src/wow/profile/character_achievements.d.ts +0 -87
  242. package/script/src/wow/profile/character_achievements.js +0 -34
  243. package/script/src/wow/profile/character_appearance.d.ts +0 -75
  244. package/script/src/wow/profile/character_appearance.js +0 -19
  245. package/script/src/wow/profile/character_collections.d.ts +0 -92
  246. package/script/src/wow/profile/character_collections.js +0 -79
  247. package/script/src/wow/profile/character_encounters.d.ts +0 -77
  248. package/script/src/wow/profile/character_encounters.js +0 -49
  249. package/script/src/wow/profile/character_equipment.d.ts +0 -132
  250. package/script/src/wow/profile/character_equipment.js +0 -19
  251. package/script/src/wow/profile/character_hunter_pets.d.ts +0 -21
  252. package/script/src/wow/profile/character_hunter_pets.js +0 -19
  253. package/script/src/wow/profile/character_media.d.ts +0 -13
  254. package/script/src/wow/profile/character_media.js +0 -19
  255. package/script/src/wow/profile/character_mythic_keystone_profile.d.ts +0 -58
  256. package/script/src/wow/profile/character_mythic_keystone_profile.js +0 -37
  257. package/script/src/wow/profile/character_professions.d.ts +0 -26
  258. package/script/src/wow/profile/character_professions.js +0 -19
  259. package/script/src/wow/profile/character_profile.d.ts +0 -82
  260. package/script/src/wow/profile/character_profile.js +0 -45
  261. package/script/src/wow/profile/character_pvp.d.ts +0 -51
  262. package/script/src/wow/profile/character_pvp.js +0 -35
  263. package/script/src/wow/profile/character_quests.d.ts +0 -28
  264. package/script/src/wow/profile/character_quests.js +0 -34
  265. package/script/src/wow/profile/character_reputations.d.ts +0 -22
  266. package/script/src/wow/profile/character_reputations.js +0 -19
  267. package/script/src/wow/profile/character_soulbinds.d.ts +0 -30
  268. package/script/src/wow/profile/character_soulbinds.js +0 -19
  269. package/script/src/wow/profile/character_specializations.d.ts +0 -44
  270. package/script/src/wow/profile/character_specializations.js +0 -19
  271. package/script/src/wow/profile/character_statistics.d.ts +0 -116
  272. package/script/src/wow/profile/character_statistics.js +0 -19
  273. package/script/src/wow/profile/character_titles.d.ts +0 -13
  274. package/script/src/wow/profile/character_titles.js +0 -19
  275. package/script/src/wow/profile/guild.d.ts +0 -117
  276. package/script/src/wow/profile/guild.js +0 -64
  277. package/script/src/wow/search.d.ts +0 -21
  278. package/script/src/wow/search.js +0 -34
@@ -1,98 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.mythicKeystoneSeason = exports.mythicKeystoneSeasons = exports.mythicKeystonePeriod = exports.mythicKeystonePeriods = exports.mythicKeystoneIndex = exports.mythicKeystoneDungeon = exports.mythicKeystoneDungeons = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- /**
6
- * Returns an index of Mythic Keystone dungeons.
7
- *
8
- * @returns A promise that resolves to an object representing a list of the Mythic Keystone dungeons.
9
- */
10
- async function mythicKeystoneDungeons() {
11
- return await (0, index_js_1.request)({
12
- method: "GET",
13
- url: "/data/wow/mythic-keystone/dungeon/index",
14
- namespace: "dynamic",
15
- });
16
- }
17
- exports.mythicKeystoneDungeons = mythicKeystoneDungeons;
18
- /**
19
- * Returns a Mythic Keystone dungeon by ID.
20
- *
21
- * @param dungeonId - The unique identifier for the Mythic Keystone dungeon
22
- * @returns A promise that resolves to an object representing details about a Mythic Keystone dungeon by ID.
23
- */
24
- async function mythicKeystoneDungeon(dungeonId) {
25
- return await (0, index_js_1.request)({
26
- method: "GET",
27
- url: `/data/wow/mythic-keystone/dungeon/${dungeonId}`,
28
- namespace: "dynamic",
29
- });
30
- }
31
- exports.mythicKeystoneDungeon = mythicKeystoneDungeon;
32
- /**
33
- * Returns an index of links to other documents related to Mythic Keystone dungeons.
34
- *
35
- * @returns A promise that resolves to an object representing a index of links to other documents related to Mythic Keystone dungeons.
36
- */
37
- async function mythicKeystoneIndex() {
38
- return await (0, index_js_1.request)({
39
- method: "GET",
40
- url: "/data/wow/mythic-keystone/index",
41
- namespace: "dynamic",
42
- });
43
- }
44
- exports.mythicKeystoneIndex = mythicKeystoneIndex;
45
- /**
46
- * Returns an index of Mythic Keystone periods.
47
- *
48
- * @returns A promise that resolves to an object representing a index of Mythic Keystone periods.
49
- */
50
- async function mythicKeystonePeriods() {
51
- return await (0, index_js_1.request)({
52
- method: "GET",
53
- url: "/data/wow/mythic-keystone/period/index",
54
- namespace: "dynamic",
55
- });
56
- }
57
- exports.mythicKeystonePeriods = mythicKeystonePeriods;
58
- /**
59
- * Returns a Mythic Keystone period by ID.
60
- *
61
- * @param periodId - The unique identifier for the Mythic Keystone period
62
- * @returns A promise that resolves to an object representing details about a Mythic Keystone period by ID.
63
- */
64
- async function mythicKeystonePeriod(periodId) {
65
- return await (0, index_js_1.request)({
66
- method: "GET",
67
- url: `/data/wow/mythic-keystone/period/${periodId}`,
68
- namespace: "dynamic",
69
- });
70
- }
71
- exports.mythicKeystonePeriod = mythicKeystonePeriod;
72
- /**
73
- * Returns an index of Mythic Keystone seasons.
74
- *
75
- * @returns A promise that resolves to an object representing a index of Mythic Keystone seasons
76
- */
77
- async function mythicKeystoneSeasons() {
78
- return await (0, index_js_1.request)({
79
- method: "GET",
80
- url: "/data/wow/mythic-keystone/season/index",
81
- namespace: "dynamic",
82
- });
83
- }
84
- exports.mythicKeystoneSeasons = mythicKeystoneSeasons;
85
- /**
86
- * Returns a Mythic Keystone season by ID.
87
- *
88
- * @param seasonId - The unique identifier for the Mythic Keystone season
89
- * @returns A promise that resolves to an object representing details about a Mythic Keystone season by ID.
90
- */
91
- async function mythicKeystoneSeason(seasonId) {
92
- return await (0, index_js_1.request)({
93
- method: "GET",
94
- url: `/data/wow/mythic-keystone/season/${seasonId}`,
95
- namespace: "dynamic",
96
- });
97
- }
98
- exports.mythicKeystoneSeason = mythicKeystoneSeason;
@@ -1,58 +0,0 @@
1
- import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString, NameId } from "../../shared/index.js";
2
- export interface MythicKeystoneLeaderboards extends LinkSelfHref {
3
- current_leaderboards: KeyNameId[];
4
- }
5
- export interface MythicKeystoneLeaderboard extends LinkSelfHref {
6
- map: NameId;
7
- period: number;
8
- period_start_timestamp: number;
9
- period_end_timestamp: number;
10
- connected_realm: {
11
- href: string;
12
- };
13
- leading_groups: {
14
- ranking: number;
15
- duration: number;
16
- completed_timestamp: number;
17
- keystone_level: number;
18
- members: {
19
- profile: {
20
- name: string;
21
- id: number;
22
- realm: {
23
- key: {
24
- href: string;
25
- };
26
- id: number;
27
- slug: string;
28
- };
29
- };
30
- faction: {
31
- type: string;
32
- };
33
- specialization: KeyId;
34
- }[];
35
- }[];
36
- keystone_affixes: {
37
- keystone_affix: KeyNameId;
38
- starting_level: number;
39
- }[];
40
- map_challenge_mode_id: number;
41
- name: LocalizedString;
42
- }
43
- /**
44
- * Returns an index of Mythic Keystone Leaderboard dungeon instances for a connected realm.
45
- *
46
- * @param connectedRealmId - The unique identifier for the connected realm
47
- * @returns A promise that resolves to an object representing an index of Mythic Keystone Leaderboard dungeon instances for a connected realm.
48
- */
49
- export declare function mythicKeystoneLeaderboards(connectedRealmId: number): Promise<MythicKeystoneLeaderboards>;
50
- /**
51
- * Returns a weekly Mythic Keystone Leaderboard by period.
52
- *
53
- * @param connectedRealmId - The unique identifier for the connected realm
54
- * @param dungeonId - The unique identifier for the dungeon
55
- * @param period - The unique identifier for the period
56
- * @returns A promise that resolves to an object representing details about a weekly Mythic Keystone Leaderboard by period.
57
- */
58
- export declare function mythicKeystoneLeaderboard(connectedRealmId: number, dungeonId: number, period: number): Promise<MythicKeystoneLeaderboard>;
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.mythicKeystoneLeaderboard = exports.mythicKeystoneLeaderboards = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- /**
6
- * Returns an index of Mythic Keystone Leaderboard dungeon instances for a connected realm.
7
- *
8
- * @param connectedRealmId - The unique identifier for the connected realm
9
- * @returns A promise that resolves to an object representing an index of Mythic Keystone Leaderboard dungeon instances for a connected realm.
10
- */
11
- async function mythicKeystoneLeaderboards(connectedRealmId) {
12
- return await (0, index_js_1.request)({
13
- method: "GET",
14
- url: `/data/wow/connected-realm/${connectedRealmId}/mythic-leaderboard/index`,
15
- namespace: "dynamic",
16
- });
17
- }
18
- exports.mythicKeystoneLeaderboards = mythicKeystoneLeaderboards;
19
- /**
20
- * Returns a weekly Mythic Keystone Leaderboard by period.
21
- *
22
- * @param connectedRealmId - The unique identifier for the connected realm
23
- * @param dungeonId - The unique identifier for the dungeon
24
- * @param period - The unique identifier for the period
25
- * @returns A promise that resolves to an object representing details about a weekly Mythic Keystone Leaderboard by period.
26
- */
27
- async function mythicKeystoneLeaderboard(connectedRealmId, dungeonId, period) {
28
- return await (0, index_js_1.request)({
29
- method: "GET",
30
- url: `/data/wow/connected-realm/${connectedRealmId}/mythic-leaderboard/${dungeonId}/period/${period}`,
31
- namespace: "dynamic",
32
- });
33
- }
34
- exports.mythicKeystoneLeaderboard = mythicKeystoneLeaderboard;
@@ -1,31 +0,0 @@
1
- import type { KeyNameId, LinkSelfHref } from "../../shared/index.js";
2
- export interface MythicRaidLeaderboard extends LinkSelfHref {
3
- slug: string;
4
- criteria_type: string;
5
- entries: {
6
- guild: {
7
- name: string;
8
- id: number;
9
- realm: {
10
- name: null;
11
- id: number;
12
- slug: string;
13
- };
14
- };
15
- faction: {
16
- type: string;
17
- };
18
- timestamp: number;
19
- region: string;
20
- rank: number;
21
- }[];
22
- journal_instance: KeyNameId;
23
- }
24
- /**
25
- * Returns the leaderboard for a given raid and faction.
26
- *
27
- * @param raid - The unique identifier for the raid
28
- * @param faction - The unique identifier for the faction
29
- * @returns A promise that resolves to an object representing the leaderboard for a given raid and faction.
30
- */
31
- export declare function mythicRaidLeaderboard(raid: number, faction: number): Promise<MythicRaidLeaderboard>;
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.mythicRaidLeaderboard = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- /**
6
- * Returns the leaderboard for a given raid and faction.
7
- *
8
- * @param raid - The unique identifier for the raid
9
- * @param faction - The unique identifier for the faction
10
- * @returns A promise that resolves to an object representing the leaderboard for a given raid and faction.
11
- */
12
- async function mythicRaidLeaderboard(raid, faction) {
13
- return await (0, index_js_1.request)({
14
- method: "GET",
15
- url: `/data/wow/leaderboard/hall-of-fame/${raid}/${faction}`,
16
- namespace: "dynamic",
17
- });
18
- }
19
- exports.mythicRaidLeaderboard = mythicRaidLeaderboard;
@@ -1,91 +0,0 @@
1
- import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
2
- export interface Pets extends LinkSelfHref {
3
- pets: KeyNameId[];
4
- }
5
- export interface Pet extends LinkSelfHref {
6
- id: number;
7
- name: LocalizedString;
8
- battle_pet_type: {
9
- id: number;
10
- type: string;
11
- name: LocalizedString;
12
- };
13
- description: LocalizedString;
14
- is_capturable: boolean;
15
- is_tradable: boolean;
16
- is_battlepet: boolean;
17
- is_alliance_only: boolean;
18
- is_horde_only: boolean;
19
- abilities: {
20
- ability: KeyNameId;
21
- slot: number;
22
- required_level: number;
23
- }[];
24
- source: TypeName;
25
- icon: string;
26
- creature: KeyNameId;
27
- is_random_creature_display: boolean;
28
- media: KeyId;
29
- }
30
- export interface PetMedia extends LinkSelfHref {
31
- assets: Asset[];
32
- id: number;
33
- }
34
- export interface PetAbilities extends LinkSelfHref {
35
- abilities: KeyNameId[];
36
- }
37
- export interface PetAbility extends LinkSelfHref {
38
- id: number;
39
- name: LocalizedString;
40
- battle_pet_type: {
41
- id: number;
42
- type: string;
43
- name: LocalizedString;
44
- };
45
- rounds: number;
46
- media: KeyId;
47
- }
48
- export interface PetAbilityMedia extends LinkSelfHref {
49
- assets: Asset[];
50
- id: number;
51
- }
52
- /**
53
- * Returns an index of battle pets.
54
- *
55
- * @returns A promise that resolves to an object representing a list of the index of battle pets.
56
- */
57
- export declare function pets(): Promise<Pets>;
58
- /**
59
- * Returns a battle pet by ID.
60
- *
61
- * @param petId - The unique identifier for the battle pet
62
- * @returns A promise that resolves to an object representing details about a battle pet.
63
- */
64
- export declare function pet(petId: number): Promise<Pet>;
65
- /**
66
- * Returns media for a battle pet by ID.
67
- *
68
- * @param petId - The unique identifier for the battle pet
69
- * @returns A promise that resolves to an object representing media details about a battle pet.
70
- */
71
- export declare function petMedia(petId: number): Promise<PetMedia>;
72
- /**
73
- * Returns an index of pet abilities.
74
- *
75
- * @returns A promise that resolves to an object representing a list of the index of pet abilities.
76
- */
77
- export declare function petAbilities(): Promise<PetAbilities>;
78
- /**
79
- * Returns a pet ability by ID.
80
- *
81
- * @param petAbilityId - The unique identifier for the battle pet ability
82
- * @returns A promise that resolves to an object representing details about a battle pet ability.
83
- */
84
- export declare function petAbility(petAbilityId: number): Promise<PetAbility>;
85
- /**
86
- * Returns media for a battle pet by ID.
87
- *
88
- * @param petAbilityId - The unique identifier for the battle pet
89
- * @returns A promise that resolves to an object representing media details about a battle pet.
90
- */
91
- export declare function petAbilityMedia(petAbilityId: number): Promise<PetAbilityMedia>;
@@ -1,86 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.petAbilityMedia = exports.petAbility = exports.petAbilities = exports.petMedia = exports.pet = exports.pets = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- /**
6
- * Returns an index of battle pets.
7
- *
8
- * @returns A promise that resolves to an object representing a list of the index of battle pets.
9
- */
10
- async function pets() {
11
- return await (0, index_js_1.request)({
12
- method: "GET",
13
- url: "/data/wow/pet/index",
14
- namespace: "static",
15
- });
16
- }
17
- exports.pets = pets;
18
- /**
19
- * Returns a battle pet by ID.
20
- *
21
- * @param petId - The unique identifier for the battle pet
22
- * @returns A promise that resolves to an object representing details about a battle pet.
23
- */
24
- async function pet(petId) {
25
- return await (0, index_js_1.request)({
26
- method: "GET",
27
- url: `/data/wow/pet/${petId}`,
28
- namespace: "static",
29
- });
30
- }
31
- exports.pet = pet;
32
- /**
33
- * Returns media for a battle pet by ID.
34
- *
35
- * @param petId - The unique identifier for the battle pet
36
- * @returns A promise that resolves to an object representing media details about a battle pet.
37
- */
38
- async function petMedia(petId) {
39
- return await (0, index_js_1.request)({
40
- method: "GET",
41
- url: `/data/wow/media/pet/${petId}`,
42
- namespace: "static",
43
- });
44
- }
45
- exports.petMedia = petMedia;
46
- /**
47
- * Returns an index of pet abilities.
48
- *
49
- * @returns A promise that resolves to an object representing a list of the index of pet abilities.
50
- */
51
- async function petAbilities() {
52
- return await (0, index_js_1.request)({
53
- method: "GET",
54
- url: "/data/wow/pet-ability/index",
55
- namespace: "static",
56
- });
57
- }
58
- exports.petAbilities = petAbilities;
59
- /**
60
- * Returns a pet ability by ID.
61
- *
62
- * @param petAbilityId - The unique identifier for the battle pet ability
63
- * @returns A promise that resolves to an object representing details about a battle pet ability.
64
- */
65
- async function petAbility(petAbilityId) {
66
- return await (0, index_js_1.request)({
67
- method: "GET",
68
- url: `/data/wow/pet-ability/${petAbilityId}`,
69
- namespace: "static",
70
- });
71
- }
72
- exports.petAbility = petAbility;
73
- /**
74
- * Returns media for a battle pet by ID.
75
- *
76
- * @param petAbilityId - The unique identifier for the battle pet
77
- * @returns A promise that resolves to an object representing media details about a battle pet.
78
- */
79
- async function petAbilityMedia(petAbilityId) {
80
- return await (0, index_js_1.request)({
81
- method: "GET",
82
- url: `/data/wow/media/pet-ability${petAbilityId}`,
83
- namespace: "static",
84
- });
85
- }
86
- exports.petAbilityMedia = petAbilityMedia;
@@ -1,57 +0,0 @@
1
- import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- export interface PlayableClasses extends LinkSelfHref {
3
- classes: KeyNameId[];
4
- }
5
- export interface PlayableClass extends LinkSelfHref {
6
- id: number;
7
- name: LocalizedString;
8
- gender_name: {
9
- male: LocalizedString;
10
- female: LocalizedString;
11
- };
12
- power_type: KeyNameId;
13
- specializations: KeyNameId[];
14
- media: KeyId;
15
- pvp_talent_slots: {
16
- href: string;
17
- };
18
- playable_races: KeyNameId[];
19
- additional_power_types: KeyNameId[];
20
- }
21
- export interface PlayableClassMedia extends LinkSelfHref {
22
- assets: Asset[];
23
- id: number;
24
- }
25
- export interface PlayableClassPvpTalentSlots extends LinkSelfHref {
26
- talent_slots: {
27
- slot_number: number;
28
- unlock_player_level: number;
29
- }[];
30
- }
31
- /**
32
- * Returns an index of playable classes.
33
- *
34
- * @returns A promise that resolves to an object representing a list of the index of playable classes.
35
- */
36
- export declare function playableClasses(): Promise<PlayableClasses>;
37
- /**
38
- * Returns a playable class by ID.
39
- *
40
- * @param classId - The unique identifier for the playable class
41
- * @returns A promise that resolves to an object representing details about a playable class.
42
- */
43
- export declare function playableClass(classId: number): Promise<PlayableClass>;
44
- /**
45
- * Returns media for a playable class by ID.
46
- *
47
- * @param playableClassId - The unique identifier for the playable class
48
- * @returns A promise that resolves to an object representing media details about a playable class.
49
- */
50
- export declare function playableClassMedia(playableClassId: number): Promise<PlayableClassMedia>;
51
- /**
52
- * Returns the PvP talent slots for a playable class by ID.
53
- *
54
- * @param classId - The unique identifier for the playable class
55
- * @returns A promise that resolves to an object representing PvP talent slots for a playable class.
56
- */
57
- export declare function playableClassPvpTalentSlots(classId: number): Promise<PlayableClassPvpTalentSlots>;
@@ -1,59 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.playableClassPvpTalentSlots = exports.playableClassMedia = exports.playableClass = exports.playableClasses = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- /**
6
- * Returns an index of playable classes.
7
- *
8
- * @returns A promise that resolves to an object representing a list of the index of playable classes.
9
- */
10
- async function playableClasses() {
11
- return await (0, index_js_1.request)({
12
- method: "GET",
13
- url: "/data/wow/playable-class/index",
14
- namespace: "static",
15
- });
16
- }
17
- exports.playableClasses = playableClasses;
18
- /**
19
- * Returns a playable class by ID.
20
- *
21
- * @param classId - The unique identifier for the playable class
22
- * @returns A promise that resolves to an object representing details about a playable class.
23
- */
24
- async function playableClass(classId) {
25
- return await (0, index_js_1.request)({
26
- method: "GET",
27
- url: `/data/wow/playable-class/${classId}`,
28
- namespace: "static",
29
- });
30
- }
31
- exports.playableClass = playableClass;
32
- /**
33
- * Returns media for a playable class by ID.
34
- *
35
- * @param playableClassId - The unique identifier for the playable class
36
- * @returns A promise that resolves to an object representing media details about a playable class.
37
- */
38
- async function playableClassMedia(playableClassId) {
39
- return await (0, index_js_1.request)({
40
- method: "GET",
41
- url: `/data/wow/media/playable-class/${playableClassId}`,
42
- namespace: "static",
43
- });
44
- }
45
- exports.playableClassMedia = playableClassMedia;
46
- /**
47
- * Returns the PvP talent slots for a playable class by ID.
48
- *
49
- * @param classId - The unique identifier for the playable class
50
- * @returns A promise that resolves to an object representing PvP talent slots for a playable class.
51
- */
52
- async function playableClassPvpTalentSlots(classId) {
53
- return await (0, index_js_1.request)({
54
- method: "GET",
55
- url: `/data/wow/playable-class/${classId}/pvp-talent-slots`,
56
- namespace: "static",
57
- });
58
- }
59
- exports.playableClassPvpTalentSlots = playableClassPvpTalentSlots;
@@ -1,29 +0,0 @@
1
- import type { KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
2
- export interface PlayableRaces extends LinkSelfHref {
3
- races: KeyNameId[];
4
- }
5
- export interface PlayableRace extends LinkSelfHref {
6
- id: number;
7
- name: LocalizedString;
8
- gender_name: {
9
- male: LocalizedString;
10
- female: LocalizedString;
11
- };
12
- faction: TypeName;
13
- is_selectable: boolean;
14
- is_allied_race: boolean;
15
- playable_classes: KeyNameId[];
16
- }
17
- /**
18
- * Returns an index of playable races.
19
- *
20
- * @returns A promise that resolves to an object representing a list of the index of playable races.
21
- */
22
- export declare function playableRaces(): Promise<PlayableRaces>;
23
- /**
24
- * Returns a playable race by ID.
25
- *
26
- * @param playableRaceId - The unique identifier for the playable race
27
- * @returns A promise that resolves to an object representing details about a playable race.
28
- */
29
- export declare function playableRace(playableRaceId: number): Promise<PlayableRace>;
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.playableRace = exports.playableRaces = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- /**
6
- * Returns an index of playable races.
7
- *
8
- * @returns A promise that resolves to an object representing a list of the index of playable races.
9
- */
10
- async function playableRaces() {
11
- return await (0, index_js_1.request)({
12
- method: "GET",
13
- url: "/data/wow/playable-race/index",
14
- namespace: "static",
15
- });
16
- }
17
- exports.playableRaces = playableRaces;
18
- /**
19
- * Returns a playable race by ID.
20
- *
21
- * @param playableRaceId - The unique identifier for the playable race
22
- * @returns A promise that resolves to an object representing details about a playable race.
23
- */
24
- async function playableRace(playableRaceId) {
25
- return await (0, index_js_1.request)({
26
- method: "GET",
27
- url: `/data/wow/playable-race/${playableRaceId}`,
28
- namespace: "static",
29
- });
30
- }
31
- exports.playableRace = playableRace;
@@ -1,21 +0,0 @@
1
- import type { KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- export interface PowerTypes extends LinkSelfHref {
3
- power_types: KeyNameId[];
4
- }
5
- export interface PowerType extends LinkSelfHref {
6
- id: number;
7
- name: LocalizedString;
8
- }
9
- /**
10
- * Returns an index of power types.
11
- *
12
- * @returns A promise that resolves to an object representing a list of power types.
13
- */
14
- export declare function powerTypes(): Promise<PowerTypes>;
15
- /**
16
- * Returns a power type by ID.
17
- *
18
- * @param powerTypeId - The unique identifier for the power type.
19
- * @returns A promise that resolves to an object representing details about a power type.
20
- */
21
- export declare function powerType(powerTypeId: number): Promise<PowerType>;
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.powerType = exports.powerTypes = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- /**
6
- * Returns an index of power types.
7
- *
8
- * @returns A promise that resolves to an object representing a list of power types.
9
- */
10
- async function powerTypes() {
11
- return await (0, index_js_1.request)({
12
- method: "GET",
13
- url: "/data/wow/power-type/index",
14
- namespace: "static",
15
- });
16
- }
17
- exports.powerTypes = powerTypes;
18
- /**
19
- * Returns a power type by ID.
20
- *
21
- * @param powerTypeId - The unique identifier for the power type.
22
- * @returns A promise that resolves to an object representing details about a power type.
23
- */
24
- async function powerType(powerTypeId) {
25
- return await (0, index_js_1.request)({
26
- method: "GET",
27
- url: `/data/wow/power-type/${powerTypeId}`,
28
- namespace: "static",
29
- });
30
- }
31
- exports.powerType = powerType;