@pinta365/blizzard_api 0.3.9 → 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,67 @@
1
+ "use strict";
2
+ /**
3
+ * This module provides the Diablo III profile endpoints (account, hero and hero items) using the Blizzard API.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.account = account;
7
+ exports.hero = hero;
8
+ exports.heroItems = heroItems;
9
+ exports.heroFollowerItems = heroFollowerItems;
10
+ /**
11
+ * The Battle.net APIs address battle tags with a `-` instead of the `#` separator, e.g. `Name#1234` becomes
12
+ * `Name-1234` in the URL.
13
+ */
14
+ function battleTagPath(battleTag) {
15
+ return battleTag.replace("#", "-");
16
+ }
17
+ /**
18
+ * Returns the account profile of a battle tag, including its heroes.
19
+ *
20
+ * @param battleTag - The battle tag, e.g. "Name#1234" (the "#" is sent as "-").
21
+ * @returns A promise that resolves to an object representing the account profile.
22
+ */
23
+ async function account(ctx, battleTag) {
24
+ return await ctx.request({
25
+ method: "GET",
26
+ url: `/d3/profile/${battleTagPath(battleTag)}/`,
27
+ });
28
+ }
29
+ /**
30
+ * Returns a hero of a battle tag.
31
+ *
32
+ * @param battleTag - The battle tag, e.g. "Name#1234" (the "#" is sent as "-").
33
+ * @param heroId - The unique identifier for the hero.
34
+ * @returns A promise that resolves to an object representing the hero.
35
+ */
36
+ async function hero(ctx, battleTag, heroId) {
37
+ return await ctx.request({
38
+ method: "GET",
39
+ url: `/d3/profile/${battleTagPath(battleTag)}/hero/${heroId}`,
40
+ });
41
+ }
42
+ /**
43
+ * Returns the equipped items of a hero.
44
+ *
45
+ * @param battleTag - The battle tag, e.g. "Name#1234" (the "#" is sent as "-").
46
+ * @param heroId - The unique identifier for the hero.
47
+ * @returns A promise that resolves to an object representing the hero's equipped items.
48
+ */
49
+ async function heroItems(ctx, battleTag, heroId) {
50
+ return await ctx.request({
51
+ method: "GET",
52
+ url: `/d3/profile/${battleTagPath(battleTag)}/hero/${heroId}/items`,
53
+ });
54
+ }
55
+ /**
56
+ * Returns the items equipped by a hero's followers.
57
+ *
58
+ * @param battleTag - The battle tag, e.g. "Name#1234" (the "#" is sent as "-").
59
+ * @param heroId - The unique identifier for the hero.
60
+ * @returns A promise that resolves to an object representing the hero's follower items.
61
+ */
62
+ async function heroFollowerItems(ctx, battleTag, heroId) {
63
+ return await ctx.request({
64
+ method: "GET",
65
+ url: `/d3/profile/${battleTagPath(battleTag)}/hero/${heroId}/follower-items`,
66
+ });
67
+ }
@@ -0,0 +1,127 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { LinkSelfHref, LocalizedString } from "../../shared/index.js";
3
+ export interface Seasons extends LinkSelfHref {
4
+ season: {
5
+ href: string;
6
+ }[];
7
+ current_season: number;
8
+ service_current_season: number;
9
+ service_season_state: string;
10
+ last_update_time: string;
11
+ generated_by: string;
12
+ }
13
+ export interface Season extends LinkSelfHref {
14
+ leaderboard: {
15
+ team_size?: number;
16
+ ladder: {
17
+ href: string;
18
+ };
19
+ hardcore?: boolean;
20
+ hero_class_string?: LocalizedString;
21
+ }[];
22
+ season_id: number;
23
+ last_update_time: string;
24
+ generated_by: string;
25
+ }
26
+ export interface LeaderboardData {
27
+ id: string;
28
+ string?: string;
29
+ number?: number;
30
+ timestamp?: number;
31
+ }
32
+ export interface LeaderboardBase extends LinkSelfHref {
33
+ row: {
34
+ player: {
35
+ key: string;
36
+ accountId: number;
37
+ data: LeaderboardData[];
38
+ }[];
39
+ order: number;
40
+ data: LeaderboardData[];
41
+ }[];
42
+ key: string;
43
+ title: LocalizedString;
44
+ column: {
45
+ id: string;
46
+ hidden: boolean;
47
+ order?: number;
48
+ label: LocalizedString | null;
49
+ type: string;
50
+ }[];
51
+ last_update_time: string;
52
+ generated_by: string;
53
+ hardcore?: boolean;
54
+ }
55
+ export interface SeasonLeaderboard extends LeaderboardBase {
56
+ achievement_points: boolean;
57
+ season: number;
58
+ }
59
+ export interface EraLeaderboard extends LeaderboardBase {
60
+ greater_rift: boolean;
61
+ greater_rift_solo_class: string;
62
+ era: number;
63
+ }
64
+ export interface Eras extends LinkSelfHref {
65
+ era: {
66
+ href: string;
67
+ }[];
68
+ current_era: number;
69
+ last_update_time: string;
70
+ generated_by: string;
71
+ }
72
+ export interface Era extends LinkSelfHref {
73
+ leaderboard: {
74
+ team_size?: number;
75
+ ladder: {
76
+ href: string;
77
+ };
78
+ hardcore?: boolean;
79
+ hero_class_string?: LocalizedString;
80
+ }[];
81
+ era_id: number;
82
+ era_start_date: number;
83
+ last_update_time: string;
84
+ generated_by: string;
85
+ }
86
+ /**
87
+ * Returns an index of available seasons.
88
+ *
89
+ * @returns A promise that resolves to an object representing an index of available seasons.
90
+ */
91
+ export declare function seasons(ctx: ApiContext): Promise<Seasons>;
92
+ /**
93
+ * Returns an index of available seasons.
94
+ *
95
+ * @param seasonId - The season for the leaderboard list.
96
+ * @returns A promise that resolves to an object representing the data for a league.
97
+ */
98
+ export declare function season(ctx: ApiContext, seasonId: number): Promise<Season>;
99
+ /**
100
+ * Returns a the specified leaderboard for the specified season.
101
+ *
102
+ * @param seasonId - The season for the leaderboard.
103
+ * @param leaderboard - The leaderboard to retrieve.
104
+ * @returns A promise that resolves to an object representing the data for a the specified leaderboard for the specified season.
105
+ */
106
+ export declare function seasonLeaderboard(ctx: ApiContext, seasonId: number, leaderboard: string): Promise<SeasonLeaderboard>;
107
+ /**
108
+ * Returns an index of available eras.
109
+ *
110
+ * @returns A promise that resolves to an object representing an index of available eras.
111
+ */
112
+ export declare function eras(ctx: ApiContext): Promise<Eras>;
113
+ /**
114
+ * Returns a leaderboard list for a particular era.
115
+ *
116
+ * @param eraId - The era to retrieve.
117
+ * @returns A promise that resolves to an object representing a leaderboard list for a particular era.
118
+ */
119
+ export declare function era(ctx: ApiContext, eraId: number): Promise<Era>;
120
+ /**
121
+ * Returns the specified leaderboard for the specified era.
122
+ *
123
+ * @param eraId - The era for the leaderboard.
124
+ * @param leaderboard - The leaderboard to retrieve.
125
+ * @returns A promise that resolves to an object representing the data for a the specified leaderboard for the specified era.
126
+ */
127
+ export declare function eraLeaderboard(ctx: ApiContext, eraId: number, leaderboard: string): Promise<EraLeaderboard>;
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.seasons = seasons;
4
+ exports.season = season;
5
+ exports.seasonLeaderboard = seasonLeaderboard;
6
+ exports.eras = eras;
7
+ exports.era = era;
8
+ exports.eraLeaderboard = eraLeaderboard;
9
+ /**
10
+ * Returns an index of available seasons.
11
+ *
12
+ * @returns A promise that resolves to an object representing an index of available seasons.
13
+ */
14
+ async function seasons(ctx) {
15
+ return await ctx.request({
16
+ method: "GET",
17
+ url: "/data/d3/season/",
18
+ });
19
+ }
20
+ /**
21
+ * Returns an index of available seasons.
22
+ *
23
+ * @param seasonId - The season for the leaderboard list.
24
+ * @returns A promise that resolves to an object representing the data for a league.
25
+ */
26
+ async function season(ctx, seasonId) {
27
+ return await ctx.request({
28
+ method: "GET",
29
+ url: `/data/d3/season/${seasonId}`,
30
+ });
31
+ }
32
+ /**
33
+ * Returns a the specified leaderboard for the specified season.
34
+ *
35
+ * @param seasonId - The season for the leaderboard.
36
+ * @param leaderboard - The leaderboard to retrieve.
37
+ * @returns A promise that resolves to an object representing the data for a the specified leaderboard for the specified season.
38
+ */
39
+ async function seasonLeaderboard(ctx, seasonId, leaderboard) {
40
+ return await ctx.request({
41
+ method: "GET",
42
+ url: `/data/d3/season/${seasonId}/leaderboard/${leaderboard}`,
43
+ });
44
+ }
45
+ /**
46
+ * Returns an index of available eras.
47
+ *
48
+ * @returns A promise that resolves to an object representing an index of available eras.
49
+ */
50
+ async function eras(ctx) {
51
+ return await ctx.request({
52
+ method: "GET",
53
+ url: "/data/d3/era/",
54
+ });
55
+ }
56
+ /**
57
+ * Returns a leaderboard list for a particular era.
58
+ *
59
+ * @param eraId - The era to retrieve.
60
+ * @returns A promise that resolves to an object representing a leaderboard list for a particular era.
61
+ */
62
+ async function era(ctx, eraId) {
63
+ return await ctx.request({
64
+ method: "GET",
65
+ url: `/data/d3/era/${eraId}`,
66
+ });
67
+ }
68
+ /**
69
+ * Returns the specified leaderboard for the specified era.
70
+ *
71
+ * @param eraId - The era for the leaderboard.
72
+ * @param leaderboard - The leaderboard to retrieve.
73
+ * @returns A promise that resolves to an object representing the data for a the specified leaderboard for the specified era.
74
+ */
75
+ async function eraLeaderboard(ctx, eraId, leaderboard) {
76
+ return await ctx.request({
77
+ method: "GET",
78
+ url: `/data/d3/era/${eraId}/leaderboard/${leaderboard}`,
79
+ });
80
+ }
@@ -0,0 +1,8 @@
1
+ export { era, eraLeaderboard, eras, season, seasonLeaderboard, seasons } from "./game_data/d3.js";
2
+ export { act, acts } from "./community/act.js";
3
+ export { artisan, artisanRecipe } from "./community/artisan.js";
4
+ export { follower } from "./community/follower.js";
5
+ export { heroClass, heroSkill } from "./community/hero.js";
6
+ export { itemType, itemTypes } from "./community/item_type.js";
7
+ export { item } from "./community/item.js";
8
+ export { account, hero, heroFollowerItems, heroItems } from "./community/profile.js";
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.heroItems = exports.heroFollowerItems = exports.hero = exports.account = exports.item = exports.itemTypes = exports.itemType = exports.heroSkill = exports.heroClass = exports.follower = exports.artisanRecipe = exports.artisan = exports.acts = exports.act = exports.seasons = exports.seasonLeaderboard = exports.season = exports.eras = exports.eraLeaderboard = exports.era = void 0;
4
+ var d3_js_1 = require("./game_data/d3.js");
5
+ Object.defineProperty(exports, "era", { enumerable: true, get: function () { return d3_js_1.era; } });
6
+ Object.defineProperty(exports, "eraLeaderboard", { enumerable: true, get: function () { return d3_js_1.eraLeaderboard; } });
7
+ Object.defineProperty(exports, "eras", { enumerable: true, get: function () { return d3_js_1.eras; } });
8
+ Object.defineProperty(exports, "season", { enumerable: true, get: function () { return d3_js_1.season; } });
9
+ Object.defineProperty(exports, "seasonLeaderboard", { enumerable: true, get: function () { return d3_js_1.seasonLeaderboard; } });
10
+ Object.defineProperty(exports, "seasons", { enumerable: true, get: function () { return d3_js_1.seasons; } });
11
+ var act_js_1 = require("./community/act.js");
12
+ Object.defineProperty(exports, "act", { enumerable: true, get: function () { return act_js_1.act; } });
13
+ Object.defineProperty(exports, "acts", { enumerable: true, get: function () { return act_js_1.acts; } });
14
+ var artisan_js_1 = require("./community/artisan.js");
15
+ Object.defineProperty(exports, "artisan", { enumerable: true, get: function () { return artisan_js_1.artisan; } });
16
+ Object.defineProperty(exports, "artisanRecipe", { enumerable: true, get: function () { return artisan_js_1.artisanRecipe; } });
17
+ var follower_js_1 = require("./community/follower.js");
18
+ Object.defineProperty(exports, "follower", { enumerable: true, get: function () { return follower_js_1.follower; } });
19
+ var hero_js_1 = require("./community/hero.js");
20
+ Object.defineProperty(exports, "heroClass", { enumerable: true, get: function () { return hero_js_1.heroClass; } });
21
+ Object.defineProperty(exports, "heroSkill", { enumerable: true, get: function () { return hero_js_1.heroSkill; } });
22
+ var item_type_js_1 = require("./community/item_type.js");
23
+ Object.defineProperty(exports, "itemType", { enumerable: true, get: function () { return item_type_js_1.itemType; } });
24
+ Object.defineProperty(exports, "itemTypes", { enumerable: true, get: function () { return item_type_js_1.itemTypes; } });
25
+ var item_js_1 = require("./community/item.js");
26
+ Object.defineProperty(exports, "item", { enumerable: true, get: function () { return item_js_1.item; } });
27
+ var profile_js_1 = require("./community/profile.js");
28
+ Object.defineProperty(exports, "account", { enumerable: true, get: function () { return profile_js_1.account; } });
29
+ Object.defineProperty(exports, "hero", { enumerable: true, get: function () { return profile_js_1.hero; } });
30
+ Object.defineProperty(exports, "heroFollowerItems", { enumerable: true, get: function () { return profile_js_1.heroFollowerItems; } });
31
+ Object.defineProperty(exports, "heroItems", { enumerable: true, get: function () { return profile_js_1.heroItems; } });
@@ -0,0 +1,8 @@
1
+ export type { Act, Acts } from "./community/act.js";
2
+ export type { Artisan, Recipe } from "./community/artisan.js";
3
+ export type { Follower } from "./community/follower.js";
4
+ export type { HeroClass, HeroSkill, HeroSkillDetail, SkillRune } from "./community/hero.js";
5
+ export type { Item } from "./community/item.js";
6
+ export type { ItemType, ItemTypes } from "./community/item_type.js";
7
+ export type { D3Account, D3AccountHero, D3ActProgress, D3Artisan, D3Attributes, D3CraftedBy, D3FallenHero, D3Follower, D3FollowerItems, D3FollowerStats, D3Gem, D3Hero, D3HeroFollowerItems, D3HeroItem, D3HeroItems, D3HeroStats, D3ItemColor, D3ItemRef, D3ItemSet, D3ItemType, D3Kills, D3SeasonalProfile, D3Skill, D3SkillRune, } from "./community/profile.js";
8
+ export type { Era, EraLeaderboard, Eras, LeaderboardBase, LeaderboardData, Season, SeasonLeaderboard, Seasons, } from "./game_data/d3.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,156 @@
1
+ import type { Act, Acts } from "../diablo3/community/act.js";
2
+ import type { Artisan, Recipe } from "../diablo3/community/artisan.js";
3
+ import type { D3Account, D3Hero, D3HeroFollowerItems, D3HeroItems } from "../diablo3/community/profile.js";
4
+ import type { Era, EraLeaderboard, Eras, Season, SeasonLeaderboard, Seasons } from "../diablo3/game_data/d3.js";
5
+ import type { Follower } from "../diablo3/community/follower.js";
6
+ import type { HeroClass, HeroSkillDetail } from "../diablo3/community/hero.js";
7
+ import type { Item } from "../diablo3/community/item.js";
8
+ import type { ItemType, ItemTypes } from "../diablo3/community/item_type.js";
9
+ /**
10
+ * Diablo III endpoints.
11
+ */
12
+ export interface Diablo3Api {
13
+ /**
14
+ * Returns the account profile of a battle tag, including its heroes.
15
+ *
16
+ * @param battleTag - The battle tag, e.g. "Name#1234" (the "#" is sent as "-").
17
+ * @returns A promise that resolves to an object representing the account profile.
18
+ */
19
+ account(battleTag: string): Promise<D3Account>;
20
+ /**
21
+ * Returns a single act by ID.
22
+ *
23
+ * @param seasonId - The season for the leaderboard list.
24
+ * @returns A promise that resolves to an object representing the data for a single act by ID.
25
+ */
26
+ act(seasonId: number): Promise<Act>;
27
+ /**
28
+ * Returns an index of acts.
29
+ *
30
+ * @returns A promise that resolves to an object representing an index of acts.
31
+ */
32
+ acts(): Promise<Acts>;
33
+ /**
34
+ * Returns a single artisan by slug.
35
+ *
36
+ * @param artisanSlug - The slug of the artisan to retrieve.
37
+ * @returns A promise that resolves to an object representing the data for a single artisan by slug.
38
+ */
39
+ artisan(artisanSlug: string): Promise<Artisan>;
40
+ /**
41
+ * Returns a single recipe by slug for the specified artisan.
42
+ *
43
+ * @param artisanSlug - The slug of the artisan to retrieve.
44
+ * @param recipeSlug - The slug of the recipe to retrieve.
45
+ * @returns A promise that resolves to an object representing the data for a single recipe by slug for the specified artisan.
46
+ */
47
+ artisanRecipe(artisanSlug: string, recipeSlug: string): Promise<Recipe>;
48
+ /**
49
+ * Returns a leaderboard list for a particular era.
50
+ *
51
+ * @param eraId - The era to retrieve.
52
+ * @returns A promise that resolves to an object representing a leaderboard list for a particular era.
53
+ */
54
+ era(eraId: number): Promise<Era>;
55
+ /**
56
+ * Returns the specified leaderboard for the specified era.
57
+ *
58
+ * @param eraId - The era for the leaderboard.
59
+ * @param leaderboard - The leaderboard to retrieve.
60
+ * @returns A promise that resolves to an object representing the data for a the specified leaderboard for the specified era.
61
+ */
62
+ eraLeaderboard(eraId: number, leaderboard: string): Promise<EraLeaderboard>;
63
+ /**
64
+ * Returns an index of available eras.
65
+ *
66
+ * @returns A promise that resolves to an object representing an index of available eras.
67
+ */
68
+ eras(): Promise<Eras>;
69
+ /**
70
+ * Returns a single follower by slug.
71
+ *
72
+ * @param followerSlug - The slug of the follower to retrieve.
73
+ * @returns A promise that resolves to an object representing the data for a single follower by slug.
74
+ */
75
+ follower(followerSlug: string): Promise<Follower>;
76
+ /**
77
+ * Returns a hero of a battle tag.
78
+ *
79
+ * @param battleTag - The battle tag, e.g. "Name#1234" (the "#" is sent as "-").
80
+ * @param heroId - The unique identifier for the hero.
81
+ * @returns A promise that resolves to an object representing the hero.
82
+ */
83
+ hero(battleTag: string, heroId: number): Promise<D3Hero>;
84
+ /**
85
+ * Returns a single character class by slug.
86
+ *
87
+ * @param classSlug - The slug of the character class to retrieve.
88
+ * @returns A promise that resolves to an object representing the data for a single follower by slug.
89
+ */
90
+ heroClass(classSlug: string): Promise<HeroClass>;
91
+ /**
92
+ * Returns the items equipped by a hero's followers.
93
+ *
94
+ * @param battleTag - The battle tag, e.g. "Name#1234" (the "#" is sent as "-").
95
+ * @param heroId - The unique identifier for the hero.
96
+ * @returns A promise that resolves to an object representing the hero's follower items.
97
+ */
98
+ heroFollowerItems(battleTag: string, heroId: number): Promise<D3HeroFollowerItems>;
99
+ /**
100
+ * Returns the equipped items of a hero.
101
+ *
102
+ * @param battleTag - The battle tag, e.g. "Name#1234" (the "#" is sent as "-").
103
+ * @param heroId - The unique identifier for the hero.
104
+ * @returns A promise that resolves to an object representing the hero's equipped items.
105
+ */
106
+ heroItems(battleTag: string, heroId: number): Promise<D3HeroItems>;
107
+ /**
108
+ * Returns a single skill by slug for a specific character class.
109
+ *
110
+ * @param classSlug - The slug of the character class to retrieve.
111
+ * @param skillSlug - The slug of the skill to retrieve.
112
+ * @returns A promise that resolves to an object representing the data for a single skill by slug for a specific character class.
113
+ */
114
+ heroSkill(classSlug: string, skillSlug: string): Promise<HeroSkillDetail>;
115
+ /**
116
+ * Returns a single item by item slug and ID.
117
+ *
118
+ * @param itemSlugAndId - The slug and ID of the item to retrieve.
119
+ * @returns A promise that resolves to an object representing the data for a single item by item slug and ID.
120
+ */
121
+ item(itemSlugAndId: string): Promise<Item>;
122
+ /**
123
+ * Returns a single item type by slug.
124
+ *
125
+ * @param itemTypeSlug - The slug of the item type to retrieve.
126
+ * @returns A promise that resolves to an object representing the data for a single item type by slug.
127
+ */
128
+ itemType(itemTypeSlug: string): Promise<ItemType[]>;
129
+ /**
130
+ * Returns an index of item types.
131
+ *
132
+ * @returns A promise that resolves to an object representing an index of item types.
133
+ */
134
+ itemTypes(): Promise<ItemTypes[]>;
135
+ /**
136
+ * Returns an index of available seasons.
137
+ *
138
+ * @param seasonId - The season for the leaderboard list.
139
+ * @returns A promise that resolves to an object representing the data for a league.
140
+ */
141
+ season(seasonId: number): Promise<Season>;
142
+ /**
143
+ * Returns a the specified leaderboard for the specified season.
144
+ *
145
+ * @param seasonId - The season for the leaderboard.
146
+ * @param leaderboard - The leaderboard to retrieve.
147
+ * @returns A promise that resolves to an object representing the data for a the specified leaderboard for the specified season.
148
+ */
149
+ seasonLeaderboard(seasonId: number, leaderboard: string): Promise<SeasonLeaderboard>;
150
+ /**
151
+ * Returns an index of available seasons.
152
+ *
153
+ * @returns A promise that resolves to an object representing an index of available seasons.
154
+ */
155
+ seasons(): Promise<Seasons>;
156
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // Generated by scripts/gen_api.ts from src/diablo3/index.ts. Do not edit; run `deno task gen:api`.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,51 @@
1
+ import type { Card, CardSearch } from "../hearthstone/game_data/cards.js";
2
+ import type { Cardback, CardbackSearch } from "../hearthstone/game_data/card_backs.js";
3
+ import type { Deck, Options } from "../hearthstone/game_data/decks.js";
4
+ import type { MetadataByType, MetaTypes } from "../hearthstone/game_data/metadata.js";
5
+ import type { SearchParameters } from "../hearthstone/search.js";
6
+ /**
7
+ * Hearthstone endpoints.
8
+ */
9
+ export interface HearthstoneApi {
10
+ /**
11
+ * Returns the card with an ID or slug that matches the one you specify.
12
+ *
13
+ * @param idorslug - The unique identifier for the card by slug.
14
+ * @returns A promise that resolves to an object representing details about a card.
15
+ */
16
+ fetchCard(idorslug: string, gameMode?: string): Promise<Card>;
17
+ /**
18
+ * Returns the card back with an ID or slug that matches the one you specify.
19
+ *
20
+ * @param idorslug - The unique identifier for the card back by slug.
21
+ * @returns A promise that resolves to an object representing details about a card back.
22
+ */
23
+ fetchCardback(idorslug: string): Promise<Cardback>;
24
+ /**
25
+ * Returns the card with an ID or slug that matches the one you specify.
26
+ *
27
+ * @param options - find parameters fort the search.
28
+ * @returns A promise that resolves to an object representing details about a card.
29
+ */
30
+ fetchDeck(options?: Options): Promise<Deck>;
31
+ /**
32
+ * Returns information about the categorization of cards. Metadata includes the card set, set group (for example, Standard or Year of the Dragon), rarity, class, card type, minion type, and keywords.
33
+ *
34
+ * @returns A promise that resolves to an object representing the Metadata.
35
+ */
36
+ metadata<T extends MetaTypes>(type: T): Promise<MetadataByType[T]>;
37
+ /**
38
+ * Returns an up-to-date list of all card backs matching the search criteria.
39
+ *
40
+ * @param SearchParameters - Object containing search parameters.
41
+ * @returns A promise that resolves to an object representing an up-to-date list of all card backs matching the search criteria.
42
+ */
43
+ searchCardbacks(searchParameters: SearchParameters): Promise<CardbackSearch>;
44
+ /**
45
+ * Returns an up-to-date list of all cards matching the search criteria.
46
+ *
47
+ * @param SearchParameters - Object containing search parameters.
48
+ * @returns A promise that resolves to an object representing an up-to-date list of all cards matching the search criteria.
49
+ */
50
+ searchCards(searchParameters: SearchParameters): Promise<CardSearch>;
51
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // Generated by scripts/gen_api.ts from src/hearthstone/index.ts. Do not edit; run `deno task gen:api`.
3
+ Object.defineProperty(exports, "__esModule", { value: true });