@pinta365/blizzard_api 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (423) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +145 -37
  3. package/esm/mod.d.ts +43 -6
  4. package/esm/mod.js +69 -6
  5. package/esm/src/client.d.ts +95 -0
  6. package/esm/src/client.js +52 -0
  7. package/esm/src/diablo3/community/act.d.ts +29 -0
  8. package/esm/src/diablo3/community/act.js +23 -0
  9. package/esm/src/diablo3/community/artisan.d.ts +50 -0
  10. package/esm/src/diablo3/community/artisan.js +25 -0
  11. package/esm/src/diablo3/community/follower.d.ts +25 -0
  12. package/esm/src/diablo3/community/follower.js +12 -0
  13. package/esm/src/diablo3/community/hero.d.ts +57 -0
  14. package/esm/src/diablo3/community/hero.js +25 -0
  15. package/esm/src/diablo3/community/item.d.ts +48 -0
  16. package/esm/src/diablo3/community/item.js +12 -0
  17. package/esm/src/diablo3/community/item_type.d.ts +26 -0
  18. package/esm/src/diablo3/community/item_type.js +23 -0
  19. package/esm/src/diablo3/community/profile.d.ts +352 -0
  20. package/esm/src/diablo3/community/profile.js +61 -0
  21. package/esm/src/diablo3/game_data/d3.d.ts +127 -0
  22. package/esm/src/diablo3/game_data/d3.js +72 -0
  23. package/esm/src/diablo3/index.d.ts +8 -0
  24. package/esm/src/diablo3/index.js +8 -0
  25. package/esm/src/diablo3/types.d.ts +8 -0
  26. package/esm/src/diablo3/types.js +1 -0
  27. package/esm/src/generated/diablo3_api.d.ts +156 -0
  28. package/esm/src/generated/diablo3_api.js +2 -0
  29. package/esm/src/generated/hearthstone_api.d.ts +51 -0
  30. package/esm/src/generated/hearthstone_api.js +2 -0
  31. package/esm/src/generated/sc2_api.d.ts +139 -0
  32. package/esm/src/generated/sc2_api.js +2 -0
  33. package/esm/src/generated/wow_api.d.ts +1482 -0
  34. package/esm/src/generated/wow_api.js +2 -0
  35. package/esm/src/generated/wow_classic_api.d.ts +555 -0
  36. package/esm/src/generated/wow_classic_api.js +2 -0
  37. package/esm/src/generated/wow_classic_era_api.d.ts +418 -0
  38. package/esm/src/generated/wow_classic_era_api.js +2 -0
  39. package/esm/src/hearthstone/game_data/card_backs.d.ts +31 -0
  40. package/esm/src/hearthstone/game_data/card_backs.js +22 -0
  41. package/esm/src/hearthstone/game_data/cards.d.ts +55 -0
  42. package/esm/src/hearthstone/game_data/cards.js +26 -0
  43. package/esm/src/hearthstone/game_data/decks.d.ts +29 -0
  44. package/esm/src/hearthstone/game_data/decks.js +13 -0
  45. package/esm/src/hearthstone/game_data/metadata.d.ts +82 -0
  46. package/esm/src/hearthstone/game_data/metadata.js +11 -0
  47. package/esm/src/hearthstone/index.d.ts +4 -0
  48. package/esm/src/hearthstone/index.js +4 -0
  49. package/esm/src/hearthstone/search.d.ts +21 -0
  50. package/esm/src/hearthstone/search.js +28 -0
  51. package/esm/src/hearthstone/types.d.ts +5 -0
  52. package/esm/src/hearthstone/types.js +1 -0
  53. package/esm/src/shared/bind.d.ts +14 -0
  54. package/esm/src/shared/bind.js +15 -0
  55. package/esm/src/shared/context.d.ts +163 -0
  56. package/esm/src/shared/context.js +304 -0
  57. package/esm/src/shared/errors.d.ts +53 -0
  58. package/esm/src/shared/errors.js +95 -0
  59. package/esm/src/shared/index.d.ts +4 -0
  60. package/esm/src/shared/index.js +2 -0
  61. package/esm/src/shared/types.d.ts +133 -0
  62. package/esm/src/shared/types.js +2 -0
  63. package/esm/src/starcraft2/community/account.d.ts +19 -0
  64. package/esm/src/starcraft2/community/account.js +15 -0
  65. package/esm/src/starcraft2/community/ladder.d.ts +29 -0
  66. package/esm/src/starcraft2/community/ladder.js +27 -0
  67. package/esm/src/starcraft2/community/legacy.d.ts +206 -0
  68. package/esm/src/starcraft2/community/legacy.js +83 -0
  69. package/esm/src/starcraft2/community/profile.d.ts +255 -0
  70. package/esm/src/starcraft2/community/profile.js +73 -0
  71. package/esm/src/starcraft2/game_data/league.d.ts +35 -0
  72. package/esm/src/starcraft2/game_data/league.js +20 -0
  73. package/esm/src/starcraft2/index.d.ts +5 -0
  74. package/esm/src/starcraft2/index.js +5 -0
  75. package/esm/src/starcraft2/types.d.ts +5 -0
  76. package/esm/src/starcraft2/types.js +1 -0
  77. package/esm/src/wow/game_data/achievement.d.ts +87 -0
  78. package/esm/src/wow/game_data/achievement.js +68 -0
  79. package/esm/src/wow/game_data/auction_house.d.ts +65 -0
  80. package/esm/src/wow/game_data/auction_house.js +33 -0
  81. package/esm/src/wow/game_data/azerite_essence.d.ts +50 -0
  82. package/esm/src/wow/game_data/azerite_essence.js +48 -0
  83. package/esm/src/wow/game_data/connected_realm.d.ts +62 -0
  84. package/esm/src/wow/game_data/connected_realm.js +35 -0
  85. package/esm/src/wow/game_data/covenant.d.ts +115 -0
  86. package/esm/src/wow/game_data/covenant.js +88 -0
  87. package/esm/src/wow/game_data/creature.d.ts +98 -0
  88. package/esm/src/wow/game_data/creature.js +99 -0
  89. package/esm/src/wow/game_data/guild_crest.d.ts +56 -0
  90. package/esm/src/wow/game_data/guild_crest.js +38 -0
  91. package/esm/src/wow/game_data/heirloom.d.ts +82 -0
  92. package/esm/src/wow/game_data/heirloom.js +25 -0
  93. package/esm/src/wow/game_data/housing.d.ts +111 -0
  94. package/esm/src/wow/game_data/housing.js +124 -0
  95. package/esm/src/wow/game_data/item.d.ts +183 -0
  96. package/esm/src/wow/game_data/item.js +100 -0
  97. package/esm/src/wow/game_data/item_appearance.d.ts +102 -0
  98. package/esm/src/wow/game_data/item_appearance.js +73 -0
  99. package/esm/src/wow/game_data/journal.d.ts +124 -0
  100. package/esm/src/wow/game_data/journal.js +98 -0
  101. package/esm/src/wow/game_data/keystone_affix.d.ts +39 -0
  102. package/esm/src/wow/game_data/keystone_affix.js +38 -0
  103. package/esm/src/wow/game_data/media_search.d.ts +9 -0
  104. package/esm/src/wow/game_data/media_search.js +10 -0
  105. package/esm/src/wow/game_data/modified_crafting.d.ts +65 -0
  106. package/esm/src/wow/game_data/modified_crafting.js +62 -0
  107. package/esm/src/wow/game_data/mount.d.ts +38 -0
  108. package/esm/src/wow/game_data/mount.js +35 -0
  109. package/esm/src/wow/game_data/mythic_keystone_dungeon.d.ts +92 -0
  110. package/esm/src/wow/game_data/mythic_keystone_dungeon.js +87 -0
  111. package/esm/src/wow/game_data/mythic_keystone_leaderboard.d.ts +70 -0
  112. package/esm/src/wow/game_data/mythic_keystone_leaderboard.js +28 -0
  113. package/esm/src/wow/game_data/mythic_raid_leaderboard.d.ts +36 -0
  114. package/esm/src/wow/game_data/mythic_raid_leaderboard.js +14 -0
  115. package/esm/src/wow/game_data/neighborhood.d.ts +36 -0
  116. package/esm/src/wow/game_data/neighborhood.js +38 -0
  117. package/esm/src/wow/game_data/pet.d.ts +93 -0
  118. package/esm/src/wow/game_data/pet.js +76 -0
  119. package/esm/src/wow/game_data/playable_class.d.ts +58 -0
  120. package/esm/src/wow/game_data/playable_class.js +51 -0
  121. package/esm/src/wow/game_data/playable_race.d.ts +31 -0
  122. package/esm/src/wow/game_data/playable_race.js +25 -0
  123. package/esm/src/wow/game_data/playable_specialization.d.ts +63 -0
  124. package/esm/src/wow/game_data/playable_specialization.js +38 -0
  125. package/esm/src/wow/game_data/power_type.d.ts +22 -0
  126. package/esm/src/wow/game_data/power_type.js +25 -0
  127. package/esm/src/wow/game_data/profession.d.ts +88 -0
  128. package/esm/src/wow/game_data/profession.js +78 -0
  129. package/esm/src/wow/game_data/pvp_season.d.ts +108 -0
  130. package/esm/src/wow/game_data/pvp_season.js +66 -0
  131. package/esm/src/wow/game_data/pvp_tier.d.ts +41 -0
  132. package/esm/src/wow/game_data/pvp_tier.js +38 -0
  133. package/esm/src/wow/game_data/quest.d.ts +116 -0
  134. package/esm/src/wow/game_data/quest.js +100 -0
  135. package/esm/src/wow/game_data/realm.d.ts +43 -0
  136. package/esm/src/wow/game_data/realm.js +35 -0
  137. package/esm/src/wow/game_data/region.d.ts +26 -0
  138. package/esm/src/wow/game_data/region.js +25 -0
  139. package/esm/src/wow/game_data/reputations.d.ts +57 -0
  140. package/esm/src/wow/game_data/reputations.js +50 -0
  141. package/esm/src/wow/game_data/spell.d.ts +34 -0
  142. package/esm/src/wow/game_data/spell.js +36 -0
  143. package/esm/src/wow/game_data/talent.d.ts +143 -0
  144. package/esm/src/wow/game_data/talent.js +89 -0
  145. package/esm/src/wow/game_data/tech_talent.d.ts +72 -0
  146. package/esm/src/wow/game_data/tech_talent.js +63 -0
  147. package/esm/src/wow/game_data/title.d.ts +33 -0
  148. package/esm/src/wow/game_data/title.js +25 -0
  149. package/esm/src/wow/game_data/token.d.ts +17 -0
  150. package/esm/src/wow/game_data/token.js +18 -0
  151. package/esm/src/wow/game_data/toy.d.ts +25 -0
  152. package/esm/src/wow/game_data/toy.js +25 -0
  153. package/esm/src/wow/index.d.ts +59 -0
  154. package/esm/src/wow/index.js +61 -0
  155. package/esm/src/wow/profile/account_profile.d.ts +185 -0
  156. package/esm/src/wow/profile/account_profile.js +132 -0
  157. package/esm/src/wow/profile/character_achievements.d.ts +88 -0
  158. package/esm/src/wow/profile/character_achievements.js +28 -0
  159. package/esm/src/wow/profile/character_appearance.d.ts +79 -0
  160. package/esm/src/wow/profile/character_appearance.js +14 -0
  161. package/esm/src/wow/profile/character_collections.d.ts +132 -0
  162. package/esm/src/wow/profile/character_collections.js +98 -0
  163. package/esm/src/wow/profile/character_encounters.d.ts +78 -0
  164. package/esm/src/wow/profile/character_encounters.js +42 -0
  165. package/esm/src/wow/profile/character_equipment.d.ts +177 -0
  166. package/esm/src/wow/profile/character_equipment.js +14 -0
  167. package/esm/src/wow/profile/character_house.d.ts +16 -0
  168. package/esm/src/wow/profile/character_house.js +17 -0
  169. package/esm/src/wow/profile/character_hunter_pets.d.ts +22 -0
  170. package/esm/src/wow/profile/character_hunter_pets.js +14 -0
  171. package/esm/src/wow/profile/character_media.d.ts +14 -0
  172. package/esm/src/wow/profile/character_media.js +14 -0
  173. package/esm/src/wow/profile/character_mythic_keystone_profile.d.ts +70 -0
  174. package/esm/src/wow/profile/character_mythic_keystone_profile.js +31 -0
  175. package/esm/src/wow/profile/character_professions.d.ts +29 -0
  176. package/esm/src/wow/profile/character_professions.js +14 -0
  177. package/esm/src/wow/profile/character_profile.d.ts +83 -0
  178. package/esm/src/wow/profile/character_profile.js +39 -0
  179. package/esm/src/wow/profile/character_pvp.d.ts +53 -0
  180. package/esm/src/wow/profile/character_pvp.js +29 -0
  181. package/esm/src/wow/profile/character_quests.d.ts +29 -0
  182. package/esm/src/wow/profile/character_quests.js +28 -0
  183. package/esm/src/wow/profile/character_reputations.d.ts +30 -0
  184. package/esm/src/wow/profile/character_reputations.js +14 -0
  185. package/esm/src/wow/profile/character_soulbinds.d.ts +31 -0
  186. package/esm/src/wow/profile/character_soulbinds.js +14 -0
  187. package/esm/src/wow/profile/character_specializations.d.ts +82 -0
  188. package/esm/src/wow/profile/character_specializations.js +14 -0
  189. package/esm/src/wow/profile/character_statistics.d.ts +104 -0
  190. package/esm/src/wow/profile/character_statistics.js +14 -0
  191. package/esm/src/wow/profile/character_titles.d.ts +14 -0
  192. package/esm/src/wow/profile/character_titles.js +14 -0
  193. package/esm/src/wow/profile/guild.d.ts +150 -0
  194. package/esm/src/wow/profile/guild.js +56 -0
  195. package/esm/src/wow/search.d.ts +23 -0
  196. package/esm/src/wow/search.js +29 -0
  197. package/esm/src/wow/types.d.ts +58 -0
  198. package/esm/src/wow/types.js +1 -0
  199. package/esm/src/wow_classic/auction_house.d.ts +41 -0
  200. package/esm/src/wow_classic/auction_house.js +31 -0
  201. package/esm/src/wow_classic/character_specializations.d.ts +45 -0
  202. package/esm/src/wow_classic/character_specializations.js +18 -0
  203. package/esm/src/wow_classic/era.d.ts +8 -0
  204. package/esm/src/wow_classic/era.js +10 -0
  205. package/esm/src/wow_classic/index.d.ts +15 -0
  206. package/esm/src/wow_classic/index.js +17 -0
  207. package/esm/src/wow_classic/profile_overrides.d.ts +125 -0
  208. package/esm/src/wow_classic/profile_overrides.js +111 -0
  209. package/esm/src/wow_classic/shared.d.ts +23 -0
  210. package/esm/src/wow_classic/shared.js +26 -0
  211. package/esm/src/wow_classic/types.d.ts +3 -0
  212. package/esm/src/wow_classic/types.js +1 -0
  213. package/package.json +23 -2
  214. package/script/mod.d.ts +43 -6
  215. package/script/mod.js +91 -21
  216. package/script/src/client.d.ts +95 -0
  217. package/script/src/client.js +89 -0
  218. package/script/src/diablo3/community/act.d.ts +29 -0
  219. package/script/src/diablo3/community/act.js +27 -0
  220. package/script/src/diablo3/community/artisan.d.ts +50 -0
  221. package/script/src/diablo3/community/artisan.js +29 -0
  222. package/script/src/diablo3/community/follower.d.ts +25 -0
  223. package/script/src/diablo3/community/follower.js +15 -0
  224. package/script/src/diablo3/community/hero.d.ts +57 -0
  225. package/script/src/diablo3/community/hero.js +29 -0
  226. package/script/src/diablo3/community/item.d.ts +48 -0
  227. package/script/src/diablo3/community/item.js +15 -0
  228. package/script/src/diablo3/community/item_type.d.ts +26 -0
  229. package/script/src/diablo3/community/item_type.js +27 -0
  230. package/script/src/diablo3/community/profile.d.ts +352 -0
  231. package/script/src/diablo3/community/profile.js +67 -0
  232. package/script/src/diablo3/game_data/d3.d.ts +127 -0
  233. package/script/src/diablo3/game_data/d3.js +80 -0
  234. package/script/src/diablo3/index.d.ts +8 -0
  235. package/script/src/diablo3/index.js +31 -0
  236. package/script/src/diablo3/types.d.ts +8 -0
  237. package/script/src/diablo3/types.js +2 -0
  238. package/script/src/generated/diablo3_api.d.ts +156 -0
  239. package/script/src/generated/diablo3_api.js +3 -0
  240. package/script/src/generated/hearthstone_api.d.ts +51 -0
  241. package/script/src/generated/hearthstone_api.js +3 -0
  242. package/script/src/generated/sc2_api.d.ts +139 -0
  243. package/script/src/generated/sc2_api.js +3 -0
  244. package/script/src/generated/wow_api.d.ts +1482 -0
  245. package/script/src/generated/wow_api.js +3 -0
  246. package/script/src/generated/wow_classic_api.d.ts +555 -0
  247. package/script/src/generated/wow_classic_api.js +3 -0
  248. package/script/src/generated/wow_classic_era_api.d.ts +418 -0
  249. package/script/src/generated/wow_classic_era_api.js +3 -0
  250. package/script/src/hearthstone/game_data/card_backs.d.ts +31 -0
  251. package/script/src/hearthstone/game_data/card_backs.js +26 -0
  252. package/script/src/hearthstone/game_data/cards.d.ts +55 -0
  253. package/script/src/hearthstone/game_data/cards.js +30 -0
  254. package/script/src/hearthstone/game_data/decks.d.ts +29 -0
  255. package/script/src/hearthstone/game_data/decks.js +16 -0
  256. package/script/src/hearthstone/game_data/metadata.d.ts +82 -0
  257. package/script/src/hearthstone/game_data/metadata.js +14 -0
  258. package/script/src/hearthstone/index.d.ts +4 -0
  259. package/script/src/hearthstone/index.js +13 -0
  260. package/script/src/hearthstone/search.d.ts +21 -0
  261. package/script/src/hearthstone/search.js +31 -0
  262. package/script/src/hearthstone/types.d.ts +5 -0
  263. package/script/src/hearthstone/types.js +2 -0
  264. package/script/src/shared/bind.d.ts +14 -0
  265. package/script/src/shared/bind.js +18 -0
  266. package/script/src/shared/context.d.ts +163 -0
  267. package/script/src/shared/context.js +312 -0
  268. package/script/src/shared/errors.d.ts +53 -0
  269. package/script/src/shared/errors.js +104 -0
  270. package/script/src/shared/index.d.ts +4 -0
  271. package/script/src/shared/index.js +10 -0
  272. package/script/src/shared/types.d.ts +133 -0
  273. package/script/src/shared/types.js +3 -0
  274. package/script/src/starcraft2/community/account.d.ts +19 -0
  275. package/script/src/starcraft2/community/account.js +18 -0
  276. package/script/src/starcraft2/community/ladder.d.ts +29 -0
  277. package/script/src/starcraft2/community/ladder.js +31 -0
  278. package/script/src/starcraft2/community/legacy.d.ts +206 -0
  279. package/script/src/starcraft2/community/legacy.js +91 -0
  280. package/script/src/starcraft2/community/profile.d.ts +255 -0
  281. package/script/src/starcraft2/community/profile.js +80 -0
  282. package/script/src/starcraft2/game_data/league.d.ts +35 -0
  283. package/script/src/starcraft2/game_data/league.js +23 -0
  284. package/script/src/starcraft2/index.d.ts +5 -0
  285. package/script/src/starcraft2/index.js +23 -0
  286. package/script/src/starcraft2/types.d.ts +5 -0
  287. package/script/src/starcraft2/types.js +2 -0
  288. package/script/src/wow/game_data/achievement.d.ts +87 -0
  289. package/script/src/wow/game_data/achievement.js +75 -0
  290. package/script/src/wow/game_data/auction_house.d.ts +65 -0
  291. package/script/src/wow/game_data/auction_house.js +37 -0
  292. package/script/src/wow/game_data/azerite_essence.d.ts +50 -0
  293. package/script/src/wow/game_data/azerite_essence.js +54 -0
  294. package/script/src/wow/game_data/connected_realm.d.ts +62 -0
  295. package/script/src/wow/game_data/connected_realm.js +40 -0
  296. package/script/src/wow/game_data/covenant.d.ts +115 -0
  297. package/script/src/wow/game_data/covenant.js +97 -0
  298. package/script/src/wow/game_data/creature.d.ts +98 -0
  299. package/script/src/wow/game_data/creature.js +109 -0
  300. package/script/src/wow/game_data/guild_crest.d.ts +56 -0
  301. package/script/src/wow/game_data/guild_crest.js +43 -0
  302. package/script/src/wow/game_data/heirloom.d.ts +82 -0
  303. package/script/src/wow/game_data/heirloom.js +29 -0
  304. package/script/src/wow/game_data/housing.d.ts +111 -0
  305. package/script/src/wow/game_data/housing.js +138 -0
  306. package/script/src/wow/game_data/item.d.ts +183 -0
  307. package/script/src/wow/game_data/item.js +110 -0
  308. package/script/src/wow/game_data/item_appearance.d.ts +102 -0
  309. package/script/src/wow/game_data/item_appearance.js +81 -0
  310. package/script/src/wow/game_data/journal.d.ts +124 -0
  311. package/script/src/wow/game_data/journal.js +108 -0
  312. package/script/src/wow/game_data/keystone_affix.d.ts +39 -0
  313. package/script/src/wow/game_data/keystone_affix.js +43 -0
  314. package/script/src/wow/game_data/media_search.d.ts +9 -0
  315. package/script/src/wow/game_data/media_search.js +13 -0
  316. package/script/src/wow/game_data/modified_crafting.d.ts +65 -0
  317. package/script/src/wow/game_data/modified_crafting.js +69 -0
  318. package/script/src/wow/game_data/mount.d.ts +38 -0
  319. package/script/src/wow/game_data/mount.js +40 -0
  320. package/script/src/wow/game_data/mythic_keystone_dungeon.d.ts +92 -0
  321. package/script/src/wow/game_data/mythic_keystone_dungeon.js +96 -0
  322. package/script/src/wow/game_data/mythic_keystone_leaderboard.d.ts +70 -0
  323. package/script/src/wow/game_data/mythic_keystone_leaderboard.js +32 -0
  324. package/script/src/wow/game_data/mythic_raid_leaderboard.d.ts +36 -0
  325. package/script/src/wow/game_data/mythic_raid_leaderboard.js +17 -0
  326. package/script/src/wow/game_data/neighborhood.d.ts +36 -0
  327. package/script/src/wow/game_data/neighborhood.js +43 -0
  328. package/script/src/wow/game_data/pet.d.ts +93 -0
  329. package/script/src/wow/game_data/pet.js +84 -0
  330. package/script/src/wow/game_data/playable_class.d.ts +58 -0
  331. package/script/src/wow/game_data/playable_class.js +57 -0
  332. package/script/src/wow/game_data/playable_race.d.ts +31 -0
  333. package/script/src/wow/game_data/playable_race.js +29 -0
  334. package/script/src/wow/game_data/playable_specialization.d.ts +63 -0
  335. package/script/src/wow/game_data/playable_specialization.js +43 -0
  336. package/script/src/wow/game_data/power_type.d.ts +22 -0
  337. package/script/src/wow/game_data/power_type.js +29 -0
  338. package/script/src/wow/game_data/profession.d.ts +88 -0
  339. package/script/src/wow/game_data/profession.js +86 -0
  340. package/script/src/wow/game_data/pvp_season.d.ts +108 -0
  341. package/script/src/wow/game_data/pvp_season.js +73 -0
  342. package/script/src/wow/game_data/pvp_tier.d.ts +41 -0
  343. package/script/src/wow/game_data/pvp_tier.js +43 -0
  344. package/script/src/wow/game_data/quest.d.ts +116 -0
  345. package/script/src/wow/game_data/quest.js +110 -0
  346. package/script/src/wow/game_data/realm.d.ts +43 -0
  347. package/script/src/wow/game_data/realm.js +40 -0
  348. package/script/src/wow/game_data/region.d.ts +26 -0
  349. package/script/src/wow/game_data/region.js +29 -0
  350. package/script/src/wow/game_data/reputations.d.ts +57 -0
  351. package/script/src/wow/game_data/reputations.js +56 -0
  352. package/script/src/wow/game_data/spell.d.ts +34 -0
  353. package/script/src/wow/game_data/spell.js +41 -0
  354. package/script/src/wow/game_data/talent.d.ts +143 -0
  355. package/script/src/wow/game_data/talent.js +98 -0
  356. package/script/src/wow/game_data/tech_talent.d.ts +72 -0
  357. package/script/src/wow/game_data/tech_talent.js +70 -0
  358. package/script/src/wow/game_data/title.d.ts +33 -0
  359. package/script/src/wow/game_data/title.js +29 -0
  360. package/script/src/wow/game_data/token.d.ts +17 -0
  361. package/script/src/wow/game_data/token.js +21 -0
  362. package/script/src/wow/game_data/toy.d.ts +25 -0
  363. package/script/src/wow/game_data/toy.js +29 -0
  364. package/script/src/wow/index.d.ts +59 -0
  365. package/script/src/wow/index.js +272 -0
  366. package/script/src/wow/profile/account_profile.d.ts +185 -0
  367. package/script/src/wow/profile/account_profile.js +143 -0
  368. package/script/src/wow/profile/character_achievements.d.ts +88 -0
  369. package/script/src/wow/profile/character_achievements.js +32 -0
  370. package/script/src/wow/profile/character_appearance.d.ts +79 -0
  371. package/script/src/wow/profile/character_appearance.js +17 -0
  372. package/script/src/wow/profile/character_collections.d.ts +132 -0
  373. package/script/src/wow/profile/character_collections.js +107 -0
  374. package/script/src/wow/profile/character_encounters.d.ts +78 -0
  375. package/script/src/wow/profile/character_encounters.js +47 -0
  376. package/script/src/wow/profile/character_equipment.d.ts +177 -0
  377. package/script/src/wow/profile/character_equipment.js +17 -0
  378. package/script/src/wow/profile/character_house.d.ts +16 -0
  379. package/script/src/wow/profile/character_house.js +20 -0
  380. package/script/src/wow/profile/character_hunter_pets.d.ts +22 -0
  381. package/script/src/wow/profile/character_hunter_pets.js +17 -0
  382. package/script/src/wow/profile/character_media.d.ts +14 -0
  383. package/script/src/wow/profile/character_media.js +17 -0
  384. package/script/src/wow/profile/character_mythic_keystone_profile.d.ts +70 -0
  385. package/script/src/wow/profile/character_mythic_keystone_profile.js +35 -0
  386. package/script/src/wow/profile/character_professions.d.ts +29 -0
  387. package/script/src/wow/profile/character_professions.js +17 -0
  388. package/script/src/wow/profile/character_profile.d.ts +83 -0
  389. package/script/src/wow/profile/character_profile.js +43 -0
  390. package/script/src/wow/profile/character_pvp.d.ts +53 -0
  391. package/script/src/wow/profile/character_pvp.js +33 -0
  392. package/script/src/wow/profile/character_quests.d.ts +29 -0
  393. package/script/src/wow/profile/character_quests.js +32 -0
  394. package/script/src/wow/profile/character_reputations.d.ts +30 -0
  395. package/script/src/wow/profile/character_reputations.js +17 -0
  396. package/script/src/wow/profile/character_soulbinds.d.ts +31 -0
  397. package/script/src/wow/profile/character_soulbinds.js +17 -0
  398. package/script/src/wow/profile/character_specializations.d.ts +82 -0
  399. package/script/src/wow/profile/character_specializations.js +17 -0
  400. package/script/src/wow/profile/character_statistics.d.ts +104 -0
  401. package/script/src/wow/profile/character_statistics.js +17 -0
  402. package/script/src/wow/profile/character_titles.d.ts +14 -0
  403. package/script/src/wow/profile/character_titles.js +17 -0
  404. package/script/src/wow/profile/guild.d.ts +150 -0
  405. package/script/src/wow/profile/guild.js +62 -0
  406. package/script/src/wow/search.d.ts +23 -0
  407. package/script/src/wow/search.js +32 -0
  408. package/script/src/wow/types.d.ts +58 -0
  409. package/script/src/wow/types.js +2 -0
  410. package/script/src/wow_classic/auction_house.d.ts +41 -0
  411. package/script/src/wow_classic/auction_house.js +35 -0
  412. package/script/src/wow_classic/character_specializations.d.ts +45 -0
  413. package/script/src/wow_classic/character_specializations.js +21 -0
  414. package/script/src/wow_classic/era.d.ts +8 -0
  415. package/script/src/wow_classic/era.js +30 -0
  416. package/script/src/wow_classic/index.d.ts +15 -0
  417. package/script/src/wow_classic/index.js +55 -0
  418. package/script/src/wow_classic/profile_overrides.d.ts +125 -0
  419. package/script/src/wow_classic/profile_overrides.js +123 -0
  420. package/script/src/wow_classic/shared.d.ts +23 -0
  421. package/script/src/wow_classic/shared.js +81 -0
  422. package/script/src/wow_classic/types.d.ts +3 -0
  423. package/script/src/wow_classic/types.js +2 -0
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pvpTierMedia = pvpTierMedia;
4
+ exports.pvpTiers = pvpTiers;
5
+ exports.pvpTier = pvpTier;
6
+ /**
7
+ * Returns media for a PvP tier by ID.
8
+ *
9
+ * @param pvpTierId - The unique identifier for the PvP tier
10
+ * @returns A promise that resolves to an object representing media details about a PvP tier.
11
+ */
12
+ async function pvpTierMedia(ctx, pvpTierId) {
13
+ return await ctx.request({
14
+ method: "GET",
15
+ url: `/data/wow/media/pvp-tier/${pvpTierId}`,
16
+ namespace: "static",
17
+ });
18
+ }
19
+ /**
20
+ * Returns an index of PvP tiers.
21
+ *
22
+ * @returns A promise that resolves to an object representing a list of PvP tiers.
23
+ */
24
+ async function pvpTiers(ctx) {
25
+ return await ctx.request({
26
+ method: "GET",
27
+ url: "/data/wow/pvp-tier/index",
28
+ namespace: "static",
29
+ });
30
+ }
31
+ /**
32
+ * Returns a PvP tier by ID.
33
+ *
34
+ * @param pvpTierId - The unique identifier for the PvP tier.
35
+ * @returns A promise that resolves to an object representing details about a PvP tier.
36
+ */
37
+ async function pvpTier(ctx, pvpTierId) {
38
+ return await ctx.request({
39
+ method: "GET",
40
+ url: `/data/wow/pvp-tier/${pvpTierId}`,
41
+ namespace: "static",
42
+ });
43
+ }
@@ -0,0 +1,116 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
3
+ export interface Quests extends LinkSelfHref {
4
+ categories: {
5
+ href: string;
6
+ };
7
+ areas: {
8
+ href: string;
9
+ };
10
+ types: {
11
+ href: string;
12
+ };
13
+ }
14
+ export interface Quest extends LinkSelfHref {
15
+ id: number;
16
+ title: LocalizedString;
17
+ category?: KeyNameId;
18
+ area?: KeyNameId;
19
+ description: LocalizedString;
20
+ requirements: {
21
+ min_character_level: number;
22
+ max_character_level: number;
23
+ faction?: TypeName;
24
+ };
25
+ rewards: {
26
+ experience: number;
27
+ reputations: {
28
+ reward: KeyNameId;
29
+ value: number;
30
+ }[];
31
+ money?: {
32
+ value: number;
33
+ units: {
34
+ gold: number;
35
+ silver: number;
36
+ copper: number;
37
+ };
38
+ };
39
+ };
40
+ }
41
+ export interface QuestCategories extends LinkSelfHref {
42
+ categories: KeyNameId[];
43
+ }
44
+ export interface QuestCategory extends LinkSelfHref {
45
+ id: number;
46
+ category: LocalizedString;
47
+ quests: KeyNameId[];
48
+ }
49
+ export interface QuestAreas extends LinkSelfHref {
50
+ areas: KeyNameId[];
51
+ }
52
+ export interface QuestArea extends LinkSelfHref {
53
+ id: number;
54
+ area: LocalizedString;
55
+ quests: KeyNameId[];
56
+ }
57
+ export interface QuestTypes extends LinkSelfHref {
58
+ types: KeyNameId[];
59
+ }
60
+ export interface QuestType extends LinkSelfHref {
61
+ id: number;
62
+ type: LocalizedString;
63
+ quests: KeyNameId[];
64
+ }
65
+ /**
66
+ * Returns the parent index for quests.
67
+ *
68
+ * @returns A promise that resolves to an object representing a list of quests.
69
+ */
70
+ export declare function quests(ctx: ApiContext): Promise<Quests>;
71
+ /**
72
+ * Returns a quest by ID.
73
+ *
74
+ * @param questId - The unique identifier for the quest.
75
+ * @returns A promise that resolves to an object representing details about a quest.
76
+ */
77
+ export declare function quest(ctx: ApiContext, questId: number): Promise<Quest>;
78
+ /**
79
+ * Returns an index of quest categories (such as quests for a specific class, profession, or storyline).
80
+ *
81
+ * @returns A promise that resolves to an object representing a list of quest categories.
82
+ */
83
+ export declare function questCategories(ctx: ApiContext): Promise<QuestCategories>;
84
+ /**
85
+ * Returns a quest category by ID.
86
+ *
87
+ * @param questCategoryId - The unique identifier for the quest category.
88
+ * @returns A promise that resolves to an object representing details about a quest category.
89
+ */
90
+ export declare function questCategory(ctx: ApiContext, questCategoryId: number): Promise<QuestCategory>;
91
+ /**
92
+ * Returns an index of quest areas.
93
+ *
94
+ * @returns A promise that resolves to an object representing a list of quest areas.
95
+ */
96
+ export declare function questAreas(ctx: ApiContext): Promise<QuestAreas>;
97
+ /**
98
+ * Returns a quest area by ID.
99
+ *
100
+ * @param questAreaId - The unique identifier for the quest area.
101
+ * @returns A promise that resolves to an object representing details about a quest area.
102
+ */
103
+ export declare function questArea(ctx: ApiContext, questAreaId: number): Promise<QuestArea>;
104
+ /**
105
+ * Returns an index of quest types (such as PvP quests, raid quests, or account quests).
106
+ *
107
+ * @returns A promise that resolves to an object representing a list of quest types.
108
+ */
109
+ export declare function questTypes(ctx: ApiContext): Promise<QuestTypes>;
110
+ /**
111
+ * Returns a quest type by ID.
112
+ *
113
+ * @param questTypeId - The unique identifier for the quest type.
114
+ * @returns A promise that resolves to an object representing details about a quest type.
115
+ */
116
+ export declare function questType(ctx: ApiContext, questTypeId: number): Promise<QuestType>;
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.quests = quests;
4
+ exports.quest = quest;
5
+ exports.questCategories = questCategories;
6
+ exports.questCategory = questCategory;
7
+ exports.questAreas = questAreas;
8
+ exports.questArea = questArea;
9
+ exports.questTypes = questTypes;
10
+ exports.questType = questType;
11
+ /**
12
+ * Returns the parent index for quests.
13
+ *
14
+ * @returns A promise that resolves to an object representing a list of quests.
15
+ */
16
+ async function quests(ctx) {
17
+ return await ctx.request({
18
+ method: "GET",
19
+ url: "/data/wow/quest/index",
20
+ namespace: "static",
21
+ });
22
+ }
23
+ /**
24
+ * Returns a quest by ID.
25
+ *
26
+ * @param questId - The unique identifier for the quest.
27
+ * @returns A promise that resolves to an object representing details about a quest.
28
+ */
29
+ async function quest(ctx, questId) {
30
+ return await ctx.request({
31
+ method: "GET",
32
+ url: `/data/wow/quest/${questId}`,
33
+ namespace: "static",
34
+ });
35
+ }
36
+ /**
37
+ * Returns an index of quest categories (such as quests for a specific class, profession, or storyline).
38
+ *
39
+ * @returns A promise that resolves to an object representing a list of quest categories.
40
+ */
41
+ async function questCategories(ctx) {
42
+ return await ctx.request({
43
+ method: "GET",
44
+ url: "/data/wow/quest/category/index",
45
+ namespace: "static",
46
+ });
47
+ }
48
+ /**
49
+ * Returns a quest category by ID.
50
+ *
51
+ * @param questCategoryId - The unique identifier for the quest category.
52
+ * @returns A promise that resolves to an object representing details about a quest category.
53
+ */
54
+ async function questCategory(ctx, questCategoryId) {
55
+ return await ctx.request({
56
+ method: "GET",
57
+ url: `/data/wow/quest/category/${questCategoryId}`,
58
+ namespace: "static",
59
+ });
60
+ }
61
+ /**
62
+ * Returns an index of quest areas.
63
+ *
64
+ * @returns A promise that resolves to an object representing a list of quest areas.
65
+ */
66
+ async function questAreas(ctx) {
67
+ return await ctx.request({
68
+ method: "GET",
69
+ url: "/data/wow/quest/area/index",
70
+ namespace: "static",
71
+ });
72
+ }
73
+ /**
74
+ * Returns a quest area by ID.
75
+ *
76
+ * @param questAreaId - The unique identifier for the quest area.
77
+ * @returns A promise that resolves to an object representing details about a quest area.
78
+ */
79
+ async function questArea(ctx, questAreaId) {
80
+ return await ctx.request({
81
+ method: "GET",
82
+ url: `/data/wow/quest/area/${questAreaId}`,
83
+ namespace: "static",
84
+ });
85
+ }
86
+ /**
87
+ * Returns an index of quest types (such as PvP quests, raid quests, or account quests).
88
+ *
89
+ * @returns A promise that resolves to an object representing a list of quest types.
90
+ */
91
+ async function questTypes(ctx) {
92
+ return await ctx.request({
93
+ method: "GET",
94
+ url: "/data/wow/quest/type/index",
95
+ namespace: "static",
96
+ });
97
+ }
98
+ /**
99
+ * Returns a quest type by ID.
100
+ *
101
+ * @param questTypeId - The unique identifier for the quest type.
102
+ * @returns A promise that resolves to an object representing details about a quest type.
103
+ */
104
+ async function questType(ctx, questTypeId) {
105
+ return await ctx.request({
106
+ method: "GET",
107
+ url: `/data/wow/quest/type/${questTypeId}`,
108
+ namespace: "static",
109
+ });
110
+ }
@@ -0,0 +1,43 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
3
+ import type { Search, SearchParameters } from "../search.js";
4
+ export interface RealmList extends KeyNameId {
5
+ slug: string;
6
+ }
7
+ export interface Realms extends LinkSelfHref {
8
+ realms: RealmList[];
9
+ }
10
+ export interface Realm extends LinkSelfHref {
11
+ id: number;
12
+ region: KeyNameId;
13
+ connected_realm: {
14
+ href: string;
15
+ };
16
+ name: LocalizedString;
17
+ category: LocalizedString;
18
+ locale: string;
19
+ timezone: string;
20
+ type: TypeName;
21
+ is_tournament: boolean;
22
+ slug: string;
23
+ }
24
+ /**
25
+ * Returns an index of realms.
26
+ *
27
+ * @returns A promise that resolves to an object representing a list of realms.
28
+ */
29
+ export declare function realms(ctx: ApiContext): Promise<Realms>;
30
+ /**
31
+ * Returns a single realm by slug or ID.
32
+ *
33
+ * @param realmSlugOrId - The unique identifier for the realm.
34
+ * @returns A promise that resolves to an object representing details about a realm.
35
+ */
36
+ export declare function realm(ctx: ApiContext, realmSlugOrId: string | number): Promise<Realm>;
37
+ /**
38
+ * Performs a search of realms.
39
+ *
40
+ * @param SearchParameters - Object containing search parameters.
41
+ * @returns A promise that resolves to an object representing details about a realm search.
42
+ */
43
+ export declare function searchRealm(ctx: ApiContext, searchParameters: SearchParameters): Promise<Search>;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.realms = realms;
4
+ exports.realm = realm;
5
+ exports.searchRealm = searchRealm;
6
+ const search_js_1 = require("../search.js");
7
+ /**
8
+ * Returns an index of realms.
9
+ *
10
+ * @returns A promise that resolves to an object representing a list of realms.
11
+ */
12
+ async function realms(ctx) {
13
+ return await ctx.request({
14
+ method: "GET",
15
+ url: "/data/wow/realm/index",
16
+ namespace: "dynamic",
17
+ });
18
+ }
19
+ /**
20
+ * Returns a single realm by slug or ID.
21
+ *
22
+ * @param realmSlugOrId - The unique identifier for the realm.
23
+ * @returns A promise that resolves to an object representing details about a realm.
24
+ */
25
+ async function realm(ctx, realmSlugOrId) {
26
+ return await ctx.request({
27
+ method: "GET",
28
+ url: `/data/wow/realm/${realmSlugOrId}`,
29
+ namespace: "dynamic",
30
+ });
31
+ }
32
+ /**
33
+ * Performs a search of realms.
34
+ *
35
+ * @param SearchParameters - Object containing search parameters.
36
+ * @returns A promise that resolves to an object representing details about a realm search.
37
+ */
38
+ async function searchRealm(ctx, searchParameters) {
39
+ return await (0, search_js_1.search)(ctx, "/realm", "dynamic", searchParameters);
40
+ }
@@ -0,0 +1,26 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { LinkSelfHref, LocalizedString } from "../../shared/index.js";
3
+ export interface Regions extends LinkSelfHref {
4
+ regions: {
5
+ href: string;
6
+ }[];
7
+ }
8
+ export interface Region extends LinkSelfHref {
9
+ id: number;
10
+ name: LocalizedString;
11
+ patch_string: string;
12
+ tag: string;
13
+ }
14
+ /**
15
+ * Returns an index of regions.
16
+ *
17
+ * @returns A promise that resolves to an object representing a list of regions.
18
+ */
19
+ export declare function regions(ctx: ApiContext): Promise<Regions>;
20
+ /**
21
+ * Returns a region by ID.
22
+ *
23
+ * @param regionId - The unique identifier for the region.
24
+ * @returns A promise that resolves to an object representing details about a region.
25
+ */
26
+ export declare function region(ctx: ApiContext, regionId: number): Promise<Region>;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.regions = regions;
4
+ exports.region = region;
5
+ /**
6
+ * Returns an index of regions.
7
+ *
8
+ * @returns A promise that resolves to an object representing a list of regions.
9
+ */
10
+ async function regions(ctx) {
11
+ return await ctx.request({
12
+ method: "GET",
13
+ url: "/data/wow/region/index",
14
+ namespace: "dynamic",
15
+ });
16
+ }
17
+ /**
18
+ * Returns a region by ID.
19
+ *
20
+ * @param regionId - The unique identifier for the region.
21
+ * @returns A promise that resolves to an object representing details about a region.
22
+ */
23
+ async function region(ctx, regionId) {
24
+ return await ctx.request({
25
+ method: "GET",
26
+ url: `/data/wow/region/${regionId}`,
27
+ namespace: "dynamic",
28
+ });
29
+ }
@@ -0,0 +1,57 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
3
+ export interface ReputationFactions extends LinkSelfHref {
4
+ factions: KeyNameId[];
5
+ root_factions: KeyNameId[];
6
+ }
7
+ export interface ReputationFaction extends LinkSelfHref {
8
+ id: number;
9
+ name: LocalizedString;
10
+ description: LocalizedString;
11
+ reputation_tiers: KeyId;
12
+ }
13
+ export interface ReputationTiers extends LinkSelfHref {
14
+ reputation_tiers: {
15
+ key: {
16
+ href: string;
17
+ };
18
+ name?: LocalizedString;
19
+ id: number;
20
+ }[];
21
+ }
22
+ export interface ReputationTier extends LinkSelfHref {
23
+ id: number;
24
+ tiers: {
25
+ name: LocalizedString;
26
+ min_value: number;
27
+ max_value: number;
28
+ id: number;
29
+ }[];
30
+ faction?: KeyNameId;
31
+ }
32
+ /**
33
+ * Returns an index of reputation factions.
34
+ *
35
+ * @returns A promise that resolves to an object representing a list of reputation factions.
36
+ */
37
+ export declare function reputationFactions(ctx: ApiContext): Promise<ReputationFactions>;
38
+ /**
39
+ * Returns a single reputation faction by ID.
40
+ *
41
+ * @param reputationFactionId - The unique identifier for the reputation faction.
42
+ * @returns A promise that resolves to an object representing details about a reputation faction.
43
+ */
44
+ export declare function reputationFaction(ctx: ApiContext, reputationFactionId: string): Promise<ReputationFaction>;
45
+ /**
46
+ * Returns an index of reputation tiers.
47
+ *
48
+ * @returns A promise that resolves to an object representing a list of reputation tiers.
49
+ */
50
+ export declare function reputationTiers(ctx: ApiContext): Promise<ReputationTiers>;
51
+ /**
52
+ * Returns a single set of reputation tiers by ID.
53
+ *
54
+ * @param reputationTiersId - The unique identifier for the reputation tier.
55
+ * @returns A promise that resolves to an object representing details about a reputation tier.
56
+ */
57
+ export declare function reputationTier(ctx: ApiContext, reputationTiersId: string): Promise<ReputationTier>;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reputationFactions = reputationFactions;
4
+ exports.reputationFaction = reputationFaction;
5
+ exports.reputationTiers = reputationTiers;
6
+ exports.reputationTier = reputationTier;
7
+ /**
8
+ * Returns an index of reputation factions.
9
+ *
10
+ * @returns A promise that resolves to an object representing a list of reputation factions.
11
+ */
12
+ async function reputationFactions(ctx) {
13
+ return await ctx.request({
14
+ method: "GET",
15
+ url: "/data/wow/reputation-faction/index",
16
+ namespace: "static",
17
+ });
18
+ }
19
+ /**
20
+ * Returns a single reputation faction by ID.
21
+ *
22
+ * @param reputationFactionId - The unique identifier for the reputation faction.
23
+ * @returns A promise that resolves to an object representing details about a reputation faction.
24
+ */
25
+ async function reputationFaction(ctx, reputationFactionId) {
26
+ return await ctx.request({
27
+ method: "GET",
28
+ url: `/data/wow/reputation-faction/${reputationFactionId}`,
29
+ namespace: "static",
30
+ });
31
+ }
32
+ /**
33
+ * Returns an index of reputation tiers.
34
+ *
35
+ * @returns A promise that resolves to an object representing a list of reputation tiers.
36
+ */
37
+ async function reputationTiers(ctx) {
38
+ return await ctx.request({
39
+ method: "GET",
40
+ url: "/data/wow/reputation-tiers/index",
41
+ namespace: "static",
42
+ });
43
+ }
44
+ /**
45
+ * Returns a single set of reputation tiers by ID.
46
+ *
47
+ * @param reputationTiersId - The unique identifier for the reputation tier.
48
+ * @returns A promise that resolves to an object representing details about a reputation tier.
49
+ */
50
+ async function reputationTier(ctx, reputationTiersId) {
51
+ return await ctx.request({
52
+ method: "GET",
53
+ url: `/data/wow/reputation-tiers/${reputationTiersId}`,
54
+ namespace: "static",
55
+ });
56
+ }
@@ -0,0 +1,34 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { Asset, KeyId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
3
+ import type { Search, SearchParameters } from "../search.js";
4
+ export interface Spell extends LinkSelfHref {
5
+ id: number;
6
+ name: LocalizedString;
7
+ description: LocalizedString;
8
+ media: KeyId;
9
+ }
10
+ export interface SpellMedia extends LinkSelfHref {
11
+ assets: Asset[];
12
+ id: number;
13
+ }
14
+ /**
15
+ * Returns a spell by ID.
16
+ *
17
+ * @param spellId - The unique identifier for the spell.
18
+ * @returns A promise that resolves to an object representing details about a spell.
19
+ */
20
+ export declare function spell(ctx: ApiContext, spellId: number): Promise<Spell>;
21
+ /**
22
+ * Returns media for a spell by ID.
23
+ *
24
+ * @param spellId - The unique identifier for the spell.
25
+ * @returns A promise that resolves to an object representing details about a spell.
26
+ */
27
+ export declare function spellMedia(ctx: ApiContext, spellId: number): Promise<SpellMedia>;
28
+ /**
29
+ * Performs a search of spells.
30
+ *
31
+ * @param SearchParameters - Object containing search parameters.
32
+ * @returns A promise that resolves to an object representing details about a spell search.
33
+ */
34
+ export declare function searchSpell(ctx: ApiContext, searchParameters: SearchParameters): Promise<Search>;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.spell = spell;
4
+ exports.spellMedia = spellMedia;
5
+ exports.searchSpell = searchSpell;
6
+ const search_js_1 = require("../search.js");
7
+ /**
8
+ * Returns a spell by ID.
9
+ *
10
+ * @param spellId - The unique identifier for the spell.
11
+ * @returns A promise that resolves to an object representing details about a spell.
12
+ */
13
+ async function spell(ctx, spellId) {
14
+ return await ctx.request({
15
+ method: "GET",
16
+ url: `/data/wow/spell/${spellId}`,
17
+ namespace: "static",
18
+ });
19
+ }
20
+ /**
21
+ * Returns media for a spell by ID.
22
+ *
23
+ * @param spellId - The unique identifier for the spell.
24
+ * @returns A promise that resolves to an object representing details about a spell.
25
+ */
26
+ async function spellMedia(ctx, spellId) {
27
+ return await ctx.request({
28
+ method: "GET",
29
+ url: `/data/wow/media/spell/${spellId}`,
30
+ namespace: "static",
31
+ });
32
+ }
33
+ /**
34
+ * Performs a search of spells.
35
+ *
36
+ * @param SearchParameters - Object containing search parameters.
37
+ * @returns A promise that resolves to an object representing details about a spell search.
38
+ */
39
+ async function searchSpell(ctx, searchParameters) {
40
+ return await (0, search_js_1.search)(ctx, "/spell", "static", searchParameters);
41
+ }