@pinta365/blizzard_api 0.4.0 → 0.6.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 +153 -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,143 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { KeyId, KeyName, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
3
+ export interface TalentTrees extends LinkSelfHref {
4
+ spec_talent_trees: KeyName[];
5
+ class_talent_trees: KeyName[];
6
+ hero_talent_trees: KeyNameId[];
7
+ }
8
+ export interface SpellTooltip {
9
+ spell: KeyNameId;
10
+ description: string;
11
+ cast_time: string;
12
+ power_cost?: string;
13
+ range?: string;
14
+ cooldown?: string;
15
+ }
16
+ export interface Tooltip {
17
+ talent: KeyNameId;
18
+ spell_tooltip: SpellTooltip;
19
+ }
20
+ export interface Rank {
21
+ rank: number;
22
+ tooltip?: Tooltip;
23
+ choice_of_tooltips?: Tooltip[];
24
+ default_points?: number;
25
+ }
26
+ export interface NodeType {
27
+ id: number;
28
+ type: string;
29
+ }
30
+ export interface TalentNode {
31
+ id: number;
32
+ locked_by?: number[];
33
+ unlocks?: number[];
34
+ node_type: NodeType;
35
+ ranks: Rank[];
36
+ display_row: number;
37
+ display_col: number;
38
+ raw_position_x: number;
39
+ raw_position_y: number;
40
+ }
41
+ export interface HeroTalentTree {
42
+ id: number;
43
+ name: string;
44
+ media: KeyId;
45
+ playable_class?: KeyNameId;
46
+ playable_specializations?: KeyNameId[];
47
+ hero_talent_nodes: TalentNode[];
48
+ }
49
+ export interface TalentTree extends LinkSelfHref {
50
+ id: number;
51
+ playable_class: KeyNameId;
52
+ playable_specialization: KeyNameId;
53
+ name: LocalizedString;
54
+ media: {
55
+ key: {
56
+ href: string;
57
+ };
58
+ };
59
+ restriction_lines: {
60
+ required_points: number;
61
+ restricted_row: number;
62
+ is_for_class: boolean;
63
+ }[];
64
+ class_talent_nodes: TalentNode[];
65
+ spec_talent_nodes: TalentNode[];
66
+ hero_talent_trees: HeroTalentTree[];
67
+ }
68
+ export interface TalentTreeNodes extends LinkSelfHref {
69
+ id: number;
70
+ spec_talent_trees?: KeyName[];
71
+ talent_nodes?: TalentNode[];
72
+ }
73
+ export interface Talents extends LinkSelfHref {
74
+ talents: KeyNameId[];
75
+ }
76
+ export interface Talent extends LinkSelfHref {
77
+ id: number;
78
+ rank_descriptions: {
79
+ rank: number;
80
+ description: LocalizedString | null;
81
+ }[];
82
+ spell: KeyNameId;
83
+ playable_class: KeyId;
84
+ playable_specialization?: KeyNameId;
85
+ }
86
+ export interface PvpTalents extends LinkSelfHref {
87
+ pvp_talents: KeyNameId[];
88
+ }
89
+ export interface PvpTalent extends LinkSelfHref {
90
+ id: number;
91
+ spell: KeyNameId;
92
+ playable_specialization: KeyNameId;
93
+ description: LocalizedString;
94
+ unlock_player_level: number;
95
+ compatible_slots: number[];
96
+ }
97
+ /**
98
+ * Returns an index of talent trees.
99
+ *
100
+ * @returns A promise that resolves to an object representing a list of talent trees.
101
+ */
102
+ export declare function talentTrees(ctx: ApiContext): Promise<TalentTrees>;
103
+ /**
104
+ * Returns a talent tree by specialization ID.
105
+ *
106
+ * @param talentTreeId - The unique identifier for the talent tree.
107
+ * @param specId - The unique identifier for the specialization.
108
+ * @returns A promise that resolves to an object representing details about a talent tree.
109
+ */
110
+ export declare function talentTree(ctx: ApiContext, talentTreeId: number, specId: number): Promise<TalentTree>;
111
+ /**
112
+ * Returns all talent tree nodes as well as links to associated playable specializations given a talent tree id. This is useful to generate loadout export codes.
113
+ *
114
+ * @param talentTreeId - The unique identifier for the talent tree.
115
+ * @returns A promise that resolves to an object representing details about the talent tree nodes.
116
+ */
117
+ export declare function talentTreeNodes(ctx: ApiContext, talentTreeId: number): Promise<TalentTreeNodes>;
118
+ /**
119
+ * Returns an index of talents.
120
+ *
121
+ * @returns A promise that resolves to an object representing a list of talents.
122
+ */
123
+ export declare function talents(ctx: ApiContext): Promise<Talents>;
124
+ /**
125
+ * Returns a talent by ID.
126
+ *
127
+ * @param talentId - The unique identifier for the talent.
128
+ * @returns A promise that resolves to an object representing details about the talent.
129
+ */
130
+ export declare function talent(ctx: ApiContext, talentId: number): Promise<Talent>;
131
+ /**
132
+ * Returns an index of PvP talents.
133
+ *
134
+ * @returns A promise that resolves to an object representing a list of PvP talents.
135
+ */
136
+ export declare function pvpTalents(ctx: ApiContext): Promise<PvpTalents>;
137
+ /**
138
+ * Returns a PvP talent by ID.
139
+ *
140
+ * @param pvpTalentId - The unique identifier for the PvP talent.
141
+ * @returns A promise that resolves to an object representing details about the PvP talent.
142
+ */
143
+ export declare function pvpTalent(ctx: ApiContext, pvpTalentId: number): Promise<PvpTalent>;
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.talentTrees = talentTrees;
4
+ exports.talentTree = talentTree;
5
+ exports.talentTreeNodes = talentTreeNodes;
6
+ exports.talents = talents;
7
+ exports.talent = talent;
8
+ exports.pvpTalents = pvpTalents;
9
+ exports.pvpTalent = pvpTalent;
10
+ /**
11
+ * Returns an index of talent trees.
12
+ *
13
+ * @returns A promise that resolves to an object representing a list of talent trees.
14
+ */
15
+ async function talentTrees(ctx) {
16
+ return await ctx.request({
17
+ method: "GET",
18
+ url: "/data/wow/talent-tree/index",
19
+ namespace: "static",
20
+ });
21
+ }
22
+ /**
23
+ * Returns a talent tree by specialization ID.
24
+ *
25
+ * @param talentTreeId - The unique identifier for the talent tree.
26
+ * @param specId - The unique identifier for the specialization.
27
+ * @returns A promise that resolves to an object representing details about a talent tree.
28
+ */
29
+ async function talentTree(ctx, talentTreeId, specId) {
30
+ return await ctx.request({
31
+ method: "GET",
32
+ url: `/data/wow/talent-tree/${talentTreeId}/playable-specialization/${specId}`,
33
+ namespace: "static",
34
+ });
35
+ }
36
+ /**
37
+ * Returns all talent tree nodes as well as links to associated playable specializations given a talent tree id. This is useful to generate loadout export codes.
38
+ *
39
+ * @param talentTreeId - The unique identifier for the talent tree.
40
+ * @returns A promise that resolves to an object representing details about the talent tree nodes.
41
+ */
42
+ async function talentTreeNodes(ctx, talentTreeId) {
43
+ return await ctx.request({
44
+ method: "GET",
45
+ url: `/data/wow/talent-tree/${talentTreeId}`,
46
+ namespace: "static",
47
+ });
48
+ }
49
+ /**
50
+ * Returns an index of talents.
51
+ *
52
+ * @returns A promise that resolves to an object representing a list of talents.
53
+ */
54
+ async function talents(ctx) {
55
+ return await ctx.request({
56
+ method: "GET",
57
+ url: "/data/wow/talent/index",
58
+ namespace: "static",
59
+ });
60
+ }
61
+ /**
62
+ * Returns a talent by ID.
63
+ *
64
+ * @param talentId - The unique identifier for the talent.
65
+ * @returns A promise that resolves to an object representing details about the talent.
66
+ */
67
+ async function talent(ctx, talentId) {
68
+ return await ctx.request({
69
+ method: "GET",
70
+ url: `/data/wow/talent/${talentId}`,
71
+ namespace: "static",
72
+ });
73
+ }
74
+ /**
75
+ * Returns an index of PvP talents.
76
+ *
77
+ * @returns A promise that resolves to an object representing a list of PvP talents.
78
+ */
79
+ async function pvpTalents(ctx) {
80
+ return await ctx.request({
81
+ method: "GET",
82
+ url: "/data/wow/pvp-talent/index",
83
+ namespace: "static",
84
+ });
85
+ }
86
+ /**
87
+ * Returns a PvP talent by ID.
88
+ *
89
+ * @param pvpTalentId - The unique identifier for the PvP talent.
90
+ * @returns A promise that resolves to an object representing details about the PvP talent.
91
+ */
92
+ async function pvpTalent(ctx, pvpTalentId) {
93
+ return await ctx.request({
94
+ method: "GET",
95
+ url: `/data/wow/pvp-talent/${pvpTalentId}`,
96
+ namespace: "static",
97
+ });
98
+ }
@@ -0,0 +1,72 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
3
+ export interface TechTalentTreeRef {
4
+ key: {
5
+ href: string;
6
+ };
7
+ name?: LocalizedString;
8
+ id: number;
9
+ }
10
+ export interface TechTalentTrees extends LinkSelfHref {
11
+ talent_trees: TechTalentTreeRef[];
12
+ }
13
+ export interface TechTalentTree extends LinkSelfHref {
14
+ id: number;
15
+ max_tiers: number;
16
+ playable_class: KeyNameId;
17
+ talents: KeyNameId[];
18
+ }
19
+ export interface TechTalents extends LinkSelfHref {
20
+ talents: KeyNameId[];
21
+ }
22
+ export interface TechTalent extends LinkSelfHref {
23
+ id: number;
24
+ talent_tree: KeyId;
25
+ name: LocalizedString;
26
+ description?: LocalizedString;
27
+ spell_tooltip?: {
28
+ spell: KeyNameId;
29
+ description: LocalizedString;
30
+ cast_time: LocalizedString;
31
+ };
32
+ tier: number;
33
+ display_order: number;
34
+ prerequisite_talent?: KeyNameId;
35
+ media: KeyId;
36
+ }
37
+ export interface TechTalentMedia extends LinkSelfHref {
38
+ assets: Asset[];
39
+ }
40
+ /**
41
+ * Returns an index of tech talent trees.
42
+ *
43
+ * @returns A promise that resolves to an object representing a list of tech talents trees
44
+ */
45
+ export declare function techTalentTrees(ctx: ApiContext): Promise<TechTalentTrees>;
46
+ /**
47
+ * Returns a tech talent tree by ID.
48
+ *
49
+ * @param techTalentTreeId - The unique identifier for the tech talent tree.
50
+ * @returns A promise that resolves to an object representing details about the tech talent tree.
51
+ */
52
+ export declare function techTalentTree(ctx: ApiContext, techTalentTreeId: number): Promise<TechTalentTree>;
53
+ /**
54
+ * Returns an index of tech talents.
55
+ *
56
+ * @returns A promise that resolves to an object representing a list of tech talents trees
57
+ */
58
+ export declare function techTalents(ctx: ApiContext): Promise<TechTalents>;
59
+ /**
60
+ * Returns a tech talent by ID.
61
+ *
62
+ * @param techTalentId - The unique identifier for the tech talent tree.
63
+ * @returns A promise that resolves to an object representing details about the tech talent tree.
64
+ */
65
+ export declare function techTalent(ctx: ApiContext, techTalentId: number): Promise<TechTalent>;
66
+ /**
67
+ * Returns media for a tech talent by ID.
68
+ *
69
+ * @param techTalentId - The unique identifier for the tech talent.
70
+ * @returns A promise that resolves to an object representing details about a tech talent.
71
+ */
72
+ export declare function techTalentMedia(ctx: ApiContext, techTalentId: number): Promise<TechTalentMedia>;
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.techTalentTrees = techTalentTrees;
4
+ exports.techTalentTree = techTalentTree;
5
+ exports.techTalents = techTalents;
6
+ exports.techTalent = techTalent;
7
+ exports.techTalentMedia = techTalentMedia;
8
+ /**
9
+ * Returns an index of tech talent trees.
10
+ *
11
+ * @returns A promise that resolves to an object representing a list of tech talents trees
12
+ */
13
+ async function techTalentTrees(ctx) {
14
+ return await ctx.request({
15
+ method: "GET",
16
+ url: "/data/wow/tech-talent-tree/index",
17
+ namespace: "static",
18
+ });
19
+ }
20
+ /**
21
+ * Returns a tech talent tree by ID.
22
+ *
23
+ * @param techTalentTreeId - The unique identifier for the tech talent tree.
24
+ * @returns A promise that resolves to an object representing details about the tech talent tree.
25
+ */
26
+ async function techTalentTree(ctx, techTalentTreeId) {
27
+ return await ctx.request({
28
+ method: "GET",
29
+ url: `/data/wow/tech-talent-tree/${techTalentTreeId}`,
30
+ namespace: "static",
31
+ });
32
+ }
33
+ /**
34
+ * Returns an index of tech talents.
35
+ *
36
+ * @returns A promise that resolves to an object representing a list of tech talents trees
37
+ */
38
+ async function techTalents(ctx) {
39
+ return await ctx.request({
40
+ method: "GET",
41
+ url: "/data/wow/tech-talent/index",
42
+ namespace: "static",
43
+ });
44
+ }
45
+ /**
46
+ * Returns a tech talent by ID.
47
+ *
48
+ * @param techTalentId - The unique identifier for the tech talent tree.
49
+ * @returns A promise that resolves to an object representing details about the tech talent tree.
50
+ */
51
+ async function techTalent(ctx, techTalentId) {
52
+ return await ctx.request({
53
+ method: "GET",
54
+ url: `/data/wow/tech-talent/${techTalentId}`,
55
+ namespace: "static",
56
+ });
57
+ }
58
+ /**
59
+ * Returns media for a tech talent by ID.
60
+ *
61
+ * @param techTalentId - The unique identifier for the tech talent.
62
+ * @returns A promise that resolves to an object representing details about a tech talent.
63
+ */
64
+ async function techTalentMedia(ctx, techTalentId) {
65
+ return await ctx.request({
66
+ method: "GET",
67
+ url: `/data/wow/media/tech-talent/${techTalentId}`,
68
+ namespace: "static",
69
+ });
70
+ }
@@ -0,0 +1,33 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { KeyNameId, LinkSelfHref, LocalizedString, NamedRef } from "../../shared/index.js";
3
+ export interface Titles extends LinkSelfHref {
4
+ titles: KeyNameId[];
5
+ }
6
+ export interface Title extends LinkSelfHref {
7
+ id: number;
8
+ name: LocalizedString;
9
+ gender_name: {
10
+ male: LocalizedString;
11
+ female: LocalizedString;
12
+ };
13
+ source: {
14
+ type: {
15
+ type: string;
16
+ name: string;
17
+ };
18
+ achievements: NamedRef[];
19
+ };
20
+ }
21
+ /**
22
+ * Returns an index of titles.
23
+ *
24
+ * @returns A promise that resolves to an object representing a list of titles.
25
+ */
26
+ export declare function titles(ctx: ApiContext): Promise<Titles>;
27
+ /**
28
+ * Returns a title by ID.
29
+ *
30
+ * @param titleId - The unique identifier for the title.
31
+ * @returns A promise that resolves to an object representing details about a title.
32
+ */
33
+ export declare function title(ctx: ApiContext, titleId: number): Promise<Title>;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.titles = titles;
4
+ exports.title = title;
5
+ /**
6
+ * Returns an index of titles.
7
+ *
8
+ * @returns A promise that resolves to an object representing a list of titles.
9
+ */
10
+ async function titles(ctx) {
11
+ return await ctx.request({
12
+ method: "GET",
13
+ url: "/data/wow/title/index",
14
+ namespace: "static",
15
+ });
16
+ }
17
+ /**
18
+ * Returns a title by ID.
19
+ *
20
+ * @param titleId - The unique identifier for the title.
21
+ * @returns A promise that resolves to an object representing details about a title.
22
+ */
23
+ async function title(ctx, titleId) {
24
+ return await ctx.request({
25
+ method: "GET",
26
+ url: `/data/wow/title/${titleId}`,
27
+ namespace: "static",
28
+ });
29
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This module provides interfaces and API function definitions for fetching World of Warcraft Token prices from the Blizzard API.
3
+ *
4
+ * @author Pinta <https://github.com/Pinta365>
5
+ */
6
+ import type { ApiContext } from "../../shared/index.js";
7
+ import type { LinkSelfHref } from "../../shared/index.js";
8
+ export interface WowToken extends LinkSelfHref {
9
+ last_updated_timestamp: number;
10
+ price: number;
11
+ }
12
+ /**
13
+ * Fetches and returns last known price and last updated timestamp for a wow token.
14
+ *
15
+ * @returns A promise that resolves to an object representing price and last updated timestamp.
16
+ */
17
+ export declare function token(ctx: ApiContext): Promise<WowToken>;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * This module provides interfaces and API function definitions for fetching World of Warcraft Token prices from the Blizzard API.
4
+ *
5
+ * @author Pinta <https://github.com/Pinta365>
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.token = token;
9
+ /**
10
+ * Fetches and returns last known price and last updated timestamp for a wow token.
11
+ *
12
+ * @returns A promise that resolves to an object representing price and last updated timestamp.
13
+ */
14
+ async function token(ctx) {
15
+ const tokenData = await ctx.request({
16
+ method: "GET",
17
+ url: "/data/wow/token/index",
18
+ namespace: "dynamic",
19
+ });
20
+ return tokenData;
21
+ }
@@ -0,0 +1,25 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { KeyId, KeyNameId, LinkSelfHref, TypeName } from "../../shared/index.js";
3
+ export interface Toys extends LinkSelfHref {
4
+ toys: KeyNameId[];
5
+ }
6
+ export interface Toy extends LinkSelfHref {
7
+ id: number;
8
+ item: KeyNameId;
9
+ source: TypeName;
10
+ should_exclude_if_uncollected: boolean;
11
+ media: KeyId;
12
+ }
13
+ /**
14
+ * Returns an index of toys.
15
+ *
16
+ * @returns A promise that resolves to an object representing a list of toys.
17
+ */
18
+ export declare function toys(ctx: ApiContext): Promise<Toys>;
19
+ /**
20
+ * Returns a toy by id.
21
+ *
22
+ * @param toyId - The unique identifier for the toy.
23
+ * @returns A promise that resolves to an object representing details about a toy.
24
+ */
25
+ export declare function toy(ctx: ApiContext, toyId: number): Promise<Toy>;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toys = toys;
4
+ exports.toy = toy;
5
+ /**
6
+ * Returns an index of toys.
7
+ *
8
+ * @returns A promise that resolves to an object representing a list of toys.
9
+ */
10
+ async function toys(ctx) {
11
+ return await ctx.request({
12
+ method: "GET",
13
+ url: "/data/wow/toy/index",
14
+ namespace: "static",
15
+ });
16
+ }
17
+ /**
18
+ * Returns a toy by id.
19
+ *
20
+ * @param toyId - The unique identifier for the toy.
21
+ * @returns A promise that resolves to an object representing details about a toy.
22
+ */
23
+ async function toy(ctx, toyId) {
24
+ return await ctx.request({
25
+ method: "GET",
26
+ url: `/data/wow/toy/${toyId}`,
27
+ namespace: "static",
28
+ });
29
+ }
@@ -0,0 +1,59 @@
1
+ export type { SearchParameters } from "./search.js";
2
+ export { achievement, achievementCategories, achievementCategory, achievementMedia, achievements, } from "./game_data/achievement.js";
3
+ export { auctions, commodities } from "./game_data/auction_house.js";
4
+ export { azeriteEssence, azeriteEssenceMedia, azeriteEssences, searchAzeriteEssence, } from "./game_data/azerite_essence.js";
5
+ export { connectedRealm, connectedRealms, searchConnectedRealm } from "./game_data/connected_realm.js";
6
+ export { covenant, covenantConduit, covenantConduits, covenants, covenantSoulbind, covenantSoulbinds, } from "./game_data/covenant.js";
7
+ export { creature, creatureDisplayMedia, creatureFamilies, creatureFamily, creatureFamilyMedia, creatureType, creatureTypes, searchCreature, } from "./game_data/creature.js";
8
+ export { guildCrestBorder, guildCrestEmblem, guildCrests } from "./game_data/guild_crest.js";
9
+ export { heirloom, heirlooms } from "./game_data/heirloom.js";
10
+ export { decor, decors, fixture, fixtureHook, fixtureHooks, fixtures, room, rooms, searchDecor, searchFixture, searchFixtureHook, searchRoom, } from "./game_data/housing.js";
11
+ export { item, itemClass, itemClasses, itemMedia, itemSet, itemSets, itemSubclass, searchItem, } from "./game_data/item.js";
12
+ export { itemAppearance, itemAppearanceSet, itemAppearanceSets, itemAppearanceSlot, itemAppearanceSlots, searchItemAppearance, } from "./game_data/item_appearance.js";
13
+ export { searchMedia } from "./game_data/media_search.js";
14
+ export { journalEncounter, journalEncounters, journalExpansion, journalExpansions, journalInstance, journalInstanceMedia, journalInstances, searchJournalEncounter, } from "./game_data/journal.js";
15
+ export { modifiedCraftingCategories, modifiedCraftingCategory, modifiedCraftingParents, modifiedCraftingSlotType, modifiedCraftingSlotTypes, } from "./game_data/modified_crafting.js";
16
+ export { mount, mounts, searchMount } from "./game_data/mount.js";
17
+ export { keystoneAffix, keystoneAffixes, keystoneAffixMedia } from "./game_data/keystone_affix.js";
18
+ export { mythicKeystoneDungeon, mythicKeystoneDungeons, mythicKeystoneIndex, mythicKeystonePeriod, mythicKeystonePeriods, mythicKeystoneSeason, mythicKeystoneSeasons, } from "./game_data/mythic_keystone_dungeon.js";
19
+ export { mythicKeystoneLeaderboard, mythicKeystoneLeaderboards } from "./game_data/mythic_keystone_leaderboard.js";
20
+ export { mythicRaidLeaderboard } from "./game_data/mythic_raid_leaderboard.js";
21
+ export { neighborhood, neighborhoodMap, neighborhoodMaps } from "./game_data/neighborhood.js";
22
+ export { pet, petAbilities, petAbility, petAbilityMedia, petMedia, pets } from "./game_data/pet.js";
23
+ export { playableClass, playableClasses, playableClassMedia, playableClassPvpTalentSlots, } from "./game_data/playable_class.js";
24
+ export { playableSpecialization, playableSpecializationMedia, playableSpecializations, } from "./game_data/playable_specialization.js";
25
+ export { playableRace, playableRaces } from "./game_data/playable_race.js";
26
+ export { powerType, powerTypes } from "./game_data/power_type.js";
27
+ export { profession, professionMedia, professionRecipie, professionRecipieMedia, professions, professionSkillTier, } from "./game_data/profession.js";
28
+ export { pvpSeason, pvpSeasonLeaderboard, pvpSeasonLeaderboards, pvpSeasonRewards, pvpSeasons, } from "./game_data/pvp_season.js";
29
+ export { pvpTier, pvpTierMedia, pvpTiers } from "./game_data/pvp_tier.js";
30
+ export { quest, questArea, questAreas, questCategories, questCategory, quests, questType, questTypes, } from "./game_data/quest.js";
31
+ export { realm, realms, searchRealm } from "./game_data/realm.js";
32
+ export { region, regions } from "./game_data/region.js";
33
+ export { reputationFaction, reputationFactions, reputationTier, reputationTiers } from "./game_data/reputations.js";
34
+ export { searchSpell, spell, spellMedia } from "./game_data/spell.js";
35
+ export { title, titles } from "./game_data/title.js";
36
+ export { toy, toys } from "./game_data/toy.js";
37
+ export { pvpTalent, pvpTalents, talent, talents, talentTree, talentTreeNodes, talentTrees, } from "./game_data/talent.js";
38
+ export { techTalent, techTalentMedia, techTalents, techTalentTree, techTalentTrees } from "./game_data/tech_talent.js";
39
+ export { token } from "./game_data/token.js";
40
+ export { characterAchievementStatistics, characterAchievementSummary } from "./profile/character_achievements.js";
41
+ export { accountCollectionsIndex, accountDecorCollection, accountHeirloomsCollection, accountMountsCollection, accountPetsCollection, accountProfileSummary, accountToysCollection, accountTransmogsCollection, protectedCharacterProfile, } from "./profile/account_profile.js";
42
+ export { characterAppearanceSummary } from "./profile/character_appearance.js";
43
+ export { characterCollectionDecor, characterCollectionHeirlooms, characterCollectionMounts, characterCollectionPets, characterCollectionToys, characterCollectionTransmogs, characterCollectionTypes, } from "./profile/character_collections.js";
44
+ export { characterHouse } from "./profile/character_house.js";
45
+ export { characterEncounterDungeons, characterEncounterRaids, characterEncounters, } from "./profile/character_encounters.js";
46
+ export { characterEquipments } from "./profile/character_equipment.js";
47
+ export { characterHunterPets } from "./profile/character_hunter_pets.js";
48
+ export { characterMedia } from "./profile/character_media.js";
49
+ export { characterMythicKeystoneProfile, characterMythicKeystoneSeasonDetails, } from "./profile/character_mythic_keystone_profile.js";
50
+ export { characterProfessions } from "./profile/character_professions.js";
51
+ export { characterProfile, characterProfileStatus } from "./profile/character_profile.js";
52
+ export { characterPvpBracketStatistics, characterPvpSummary } from "./profile/character_pvp.js";
53
+ export { characterCompletedQuests, characterQuests } from "./profile/character_quests.js";
54
+ export { characterReputations } from "./profile/character_reputations.js";
55
+ export { characterSoulbinds } from "./profile/character_soulbinds.js";
56
+ export { characterSpecializations } from "./profile/character_specializations.js";
57
+ export { characterStatistics } from "./profile/character_statistics.js";
58
+ export { characterTitles } from "./profile/character_titles.js";
59
+ export { guild, guildAchievements, guildActivity, guildRoster } from "./profile/guild.js";