@pinta365/blizzard_api 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (423) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +145 -37
  3. package/esm/mod.d.ts +43 -6
  4. package/esm/mod.js +69 -6
  5. package/esm/src/client.d.ts +95 -0
  6. package/esm/src/client.js +52 -0
  7. package/esm/src/diablo3/community/act.d.ts +29 -0
  8. package/esm/src/diablo3/community/act.js +23 -0
  9. package/esm/src/diablo3/community/artisan.d.ts +50 -0
  10. package/esm/src/diablo3/community/artisan.js +25 -0
  11. package/esm/src/diablo3/community/follower.d.ts +25 -0
  12. package/esm/src/diablo3/community/follower.js +12 -0
  13. package/esm/src/diablo3/community/hero.d.ts +57 -0
  14. package/esm/src/diablo3/community/hero.js +25 -0
  15. package/esm/src/diablo3/community/item.d.ts +48 -0
  16. package/esm/src/diablo3/community/item.js +12 -0
  17. package/esm/src/diablo3/community/item_type.d.ts +26 -0
  18. package/esm/src/diablo3/community/item_type.js +23 -0
  19. package/esm/src/diablo3/community/profile.d.ts +352 -0
  20. package/esm/src/diablo3/community/profile.js +61 -0
  21. package/esm/src/diablo3/game_data/d3.d.ts +127 -0
  22. package/esm/src/diablo3/game_data/d3.js +72 -0
  23. package/esm/src/diablo3/index.d.ts +8 -0
  24. package/esm/src/diablo3/index.js +8 -0
  25. package/esm/src/diablo3/types.d.ts +8 -0
  26. package/esm/src/diablo3/types.js +1 -0
  27. package/esm/src/generated/diablo3_api.d.ts +156 -0
  28. package/esm/src/generated/diablo3_api.js +2 -0
  29. package/esm/src/generated/hearthstone_api.d.ts +51 -0
  30. package/esm/src/generated/hearthstone_api.js +2 -0
  31. package/esm/src/generated/sc2_api.d.ts +139 -0
  32. package/esm/src/generated/sc2_api.js +2 -0
  33. package/esm/src/generated/wow_api.d.ts +1482 -0
  34. package/esm/src/generated/wow_api.js +2 -0
  35. package/esm/src/generated/wow_classic_api.d.ts +555 -0
  36. package/esm/src/generated/wow_classic_api.js +2 -0
  37. package/esm/src/generated/wow_classic_era_api.d.ts +418 -0
  38. package/esm/src/generated/wow_classic_era_api.js +2 -0
  39. package/esm/src/hearthstone/game_data/card_backs.d.ts +31 -0
  40. package/esm/src/hearthstone/game_data/card_backs.js +22 -0
  41. package/esm/src/hearthstone/game_data/cards.d.ts +55 -0
  42. package/esm/src/hearthstone/game_data/cards.js +26 -0
  43. package/esm/src/hearthstone/game_data/decks.d.ts +29 -0
  44. package/esm/src/hearthstone/game_data/decks.js +13 -0
  45. package/esm/src/hearthstone/game_data/metadata.d.ts +82 -0
  46. package/esm/src/hearthstone/game_data/metadata.js +11 -0
  47. package/esm/src/hearthstone/index.d.ts +4 -0
  48. package/esm/src/hearthstone/index.js +4 -0
  49. package/esm/src/hearthstone/search.d.ts +21 -0
  50. package/esm/src/hearthstone/search.js +28 -0
  51. package/esm/src/hearthstone/types.d.ts +5 -0
  52. package/esm/src/hearthstone/types.js +1 -0
  53. package/esm/src/shared/bind.d.ts +14 -0
  54. package/esm/src/shared/bind.js +15 -0
  55. package/esm/src/shared/context.d.ts +163 -0
  56. package/esm/src/shared/context.js +304 -0
  57. package/esm/src/shared/errors.d.ts +53 -0
  58. package/esm/src/shared/errors.js +95 -0
  59. package/esm/src/shared/index.d.ts +4 -0
  60. package/esm/src/shared/index.js +2 -0
  61. package/esm/src/shared/types.d.ts +133 -0
  62. package/esm/src/shared/types.js +2 -0
  63. package/esm/src/starcraft2/community/account.d.ts +19 -0
  64. package/esm/src/starcraft2/community/account.js +15 -0
  65. package/esm/src/starcraft2/community/ladder.d.ts +29 -0
  66. package/esm/src/starcraft2/community/ladder.js +27 -0
  67. package/esm/src/starcraft2/community/legacy.d.ts +206 -0
  68. package/esm/src/starcraft2/community/legacy.js +83 -0
  69. package/esm/src/starcraft2/community/profile.d.ts +255 -0
  70. package/esm/src/starcraft2/community/profile.js +73 -0
  71. package/esm/src/starcraft2/game_data/league.d.ts +35 -0
  72. package/esm/src/starcraft2/game_data/league.js +20 -0
  73. package/esm/src/starcraft2/index.d.ts +5 -0
  74. package/esm/src/starcraft2/index.js +5 -0
  75. package/esm/src/starcraft2/types.d.ts +5 -0
  76. package/esm/src/starcraft2/types.js +1 -0
  77. package/esm/src/wow/game_data/achievement.d.ts +87 -0
  78. package/esm/src/wow/game_data/achievement.js +68 -0
  79. package/esm/src/wow/game_data/auction_house.d.ts +65 -0
  80. package/esm/src/wow/game_data/auction_house.js +33 -0
  81. package/esm/src/wow/game_data/azerite_essence.d.ts +50 -0
  82. package/esm/src/wow/game_data/azerite_essence.js +48 -0
  83. package/esm/src/wow/game_data/connected_realm.d.ts +62 -0
  84. package/esm/src/wow/game_data/connected_realm.js +35 -0
  85. package/esm/src/wow/game_data/covenant.d.ts +115 -0
  86. package/esm/src/wow/game_data/covenant.js +88 -0
  87. package/esm/src/wow/game_data/creature.d.ts +98 -0
  88. package/esm/src/wow/game_data/creature.js +99 -0
  89. package/esm/src/wow/game_data/guild_crest.d.ts +56 -0
  90. package/esm/src/wow/game_data/guild_crest.js +38 -0
  91. package/esm/src/wow/game_data/heirloom.d.ts +82 -0
  92. package/esm/src/wow/game_data/heirloom.js +25 -0
  93. package/esm/src/wow/game_data/housing.d.ts +111 -0
  94. package/esm/src/wow/game_data/housing.js +124 -0
  95. package/esm/src/wow/game_data/item.d.ts +183 -0
  96. package/esm/src/wow/game_data/item.js +100 -0
  97. package/esm/src/wow/game_data/item_appearance.d.ts +102 -0
  98. package/esm/src/wow/game_data/item_appearance.js +73 -0
  99. package/esm/src/wow/game_data/journal.d.ts +124 -0
  100. package/esm/src/wow/game_data/journal.js +98 -0
  101. package/esm/src/wow/game_data/keystone_affix.d.ts +39 -0
  102. package/esm/src/wow/game_data/keystone_affix.js +38 -0
  103. package/esm/src/wow/game_data/media_search.d.ts +9 -0
  104. package/esm/src/wow/game_data/media_search.js +10 -0
  105. package/esm/src/wow/game_data/modified_crafting.d.ts +65 -0
  106. package/esm/src/wow/game_data/modified_crafting.js +62 -0
  107. package/esm/src/wow/game_data/mount.d.ts +38 -0
  108. package/esm/src/wow/game_data/mount.js +35 -0
  109. package/esm/src/wow/game_data/mythic_keystone_dungeon.d.ts +92 -0
  110. package/esm/src/wow/game_data/mythic_keystone_dungeon.js +87 -0
  111. package/esm/src/wow/game_data/mythic_keystone_leaderboard.d.ts +70 -0
  112. package/esm/src/wow/game_data/mythic_keystone_leaderboard.js +28 -0
  113. package/esm/src/wow/game_data/mythic_raid_leaderboard.d.ts +36 -0
  114. package/esm/src/wow/game_data/mythic_raid_leaderboard.js +14 -0
  115. package/esm/src/wow/game_data/neighborhood.d.ts +36 -0
  116. package/esm/src/wow/game_data/neighborhood.js +38 -0
  117. package/esm/src/wow/game_data/pet.d.ts +93 -0
  118. package/esm/src/wow/game_data/pet.js +76 -0
  119. package/esm/src/wow/game_data/playable_class.d.ts +58 -0
  120. package/esm/src/wow/game_data/playable_class.js +51 -0
  121. package/esm/src/wow/game_data/playable_race.d.ts +31 -0
  122. package/esm/src/wow/game_data/playable_race.js +25 -0
  123. package/esm/src/wow/game_data/playable_specialization.d.ts +63 -0
  124. package/esm/src/wow/game_data/playable_specialization.js +38 -0
  125. package/esm/src/wow/game_data/power_type.d.ts +22 -0
  126. package/esm/src/wow/game_data/power_type.js +25 -0
  127. package/esm/src/wow/game_data/profession.d.ts +88 -0
  128. package/esm/src/wow/game_data/profession.js +78 -0
  129. package/esm/src/wow/game_data/pvp_season.d.ts +108 -0
  130. package/esm/src/wow/game_data/pvp_season.js +66 -0
  131. package/esm/src/wow/game_data/pvp_tier.d.ts +41 -0
  132. package/esm/src/wow/game_data/pvp_tier.js +38 -0
  133. package/esm/src/wow/game_data/quest.d.ts +116 -0
  134. package/esm/src/wow/game_data/quest.js +100 -0
  135. package/esm/src/wow/game_data/realm.d.ts +43 -0
  136. package/esm/src/wow/game_data/realm.js +35 -0
  137. package/esm/src/wow/game_data/region.d.ts +26 -0
  138. package/esm/src/wow/game_data/region.js +25 -0
  139. package/esm/src/wow/game_data/reputations.d.ts +57 -0
  140. package/esm/src/wow/game_data/reputations.js +50 -0
  141. package/esm/src/wow/game_data/spell.d.ts +34 -0
  142. package/esm/src/wow/game_data/spell.js +36 -0
  143. package/esm/src/wow/game_data/talent.d.ts +143 -0
  144. package/esm/src/wow/game_data/talent.js +89 -0
  145. package/esm/src/wow/game_data/tech_talent.d.ts +72 -0
  146. package/esm/src/wow/game_data/tech_talent.js +63 -0
  147. package/esm/src/wow/game_data/title.d.ts +33 -0
  148. package/esm/src/wow/game_data/title.js +25 -0
  149. package/esm/src/wow/game_data/token.d.ts +17 -0
  150. package/esm/src/wow/game_data/token.js +18 -0
  151. package/esm/src/wow/game_data/toy.d.ts +25 -0
  152. package/esm/src/wow/game_data/toy.js +25 -0
  153. package/esm/src/wow/index.d.ts +59 -0
  154. package/esm/src/wow/index.js +61 -0
  155. package/esm/src/wow/profile/account_profile.d.ts +185 -0
  156. package/esm/src/wow/profile/account_profile.js +132 -0
  157. package/esm/src/wow/profile/character_achievements.d.ts +88 -0
  158. package/esm/src/wow/profile/character_achievements.js +28 -0
  159. package/esm/src/wow/profile/character_appearance.d.ts +79 -0
  160. package/esm/src/wow/profile/character_appearance.js +14 -0
  161. package/esm/src/wow/profile/character_collections.d.ts +132 -0
  162. package/esm/src/wow/profile/character_collections.js +98 -0
  163. package/esm/src/wow/profile/character_encounters.d.ts +78 -0
  164. package/esm/src/wow/profile/character_encounters.js +42 -0
  165. package/esm/src/wow/profile/character_equipment.d.ts +177 -0
  166. package/esm/src/wow/profile/character_equipment.js +14 -0
  167. package/esm/src/wow/profile/character_house.d.ts +16 -0
  168. package/esm/src/wow/profile/character_house.js +17 -0
  169. package/esm/src/wow/profile/character_hunter_pets.d.ts +22 -0
  170. package/esm/src/wow/profile/character_hunter_pets.js +14 -0
  171. package/esm/src/wow/profile/character_media.d.ts +14 -0
  172. package/esm/src/wow/profile/character_media.js +14 -0
  173. package/esm/src/wow/profile/character_mythic_keystone_profile.d.ts +70 -0
  174. package/esm/src/wow/profile/character_mythic_keystone_profile.js +31 -0
  175. package/esm/src/wow/profile/character_professions.d.ts +29 -0
  176. package/esm/src/wow/profile/character_professions.js +14 -0
  177. package/esm/src/wow/profile/character_profile.d.ts +83 -0
  178. package/esm/src/wow/profile/character_profile.js +39 -0
  179. package/esm/src/wow/profile/character_pvp.d.ts +53 -0
  180. package/esm/src/wow/profile/character_pvp.js +29 -0
  181. package/esm/src/wow/profile/character_quests.d.ts +29 -0
  182. package/esm/src/wow/profile/character_quests.js +28 -0
  183. package/esm/src/wow/profile/character_reputations.d.ts +30 -0
  184. package/esm/src/wow/profile/character_reputations.js +14 -0
  185. package/esm/src/wow/profile/character_soulbinds.d.ts +31 -0
  186. package/esm/src/wow/profile/character_soulbinds.js +14 -0
  187. package/esm/src/wow/profile/character_specializations.d.ts +82 -0
  188. package/esm/src/wow/profile/character_specializations.js +14 -0
  189. package/esm/src/wow/profile/character_statistics.d.ts +104 -0
  190. package/esm/src/wow/profile/character_statistics.js +14 -0
  191. package/esm/src/wow/profile/character_titles.d.ts +14 -0
  192. package/esm/src/wow/profile/character_titles.js +14 -0
  193. package/esm/src/wow/profile/guild.d.ts +150 -0
  194. package/esm/src/wow/profile/guild.js +56 -0
  195. package/esm/src/wow/search.d.ts +23 -0
  196. package/esm/src/wow/search.js +29 -0
  197. package/esm/src/wow/types.d.ts +58 -0
  198. package/esm/src/wow/types.js +1 -0
  199. package/esm/src/wow_classic/auction_house.d.ts +41 -0
  200. package/esm/src/wow_classic/auction_house.js +31 -0
  201. package/esm/src/wow_classic/character_specializations.d.ts +45 -0
  202. package/esm/src/wow_classic/character_specializations.js +18 -0
  203. package/esm/src/wow_classic/era.d.ts +8 -0
  204. package/esm/src/wow_classic/era.js +10 -0
  205. package/esm/src/wow_classic/index.d.ts +15 -0
  206. package/esm/src/wow_classic/index.js +17 -0
  207. package/esm/src/wow_classic/profile_overrides.d.ts +125 -0
  208. package/esm/src/wow_classic/profile_overrides.js +111 -0
  209. package/esm/src/wow_classic/shared.d.ts +23 -0
  210. package/esm/src/wow_classic/shared.js +26 -0
  211. package/esm/src/wow_classic/types.d.ts +3 -0
  212. package/esm/src/wow_classic/types.js +1 -0
  213. package/package.json +23 -2
  214. package/script/mod.d.ts +43 -6
  215. package/script/mod.js +91 -21
  216. package/script/src/client.d.ts +95 -0
  217. package/script/src/client.js +89 -0
  218. package/script/src/diablo3/community/act.d.ts +29 -0
  219. package/script/src/diablo3/community/act.js +27 -0
  220. package/script/src/diablo3/community/artisan.d.ts +50 -0
  221. package/script/src/diablo3/community/artisan.js +29 -0
  222. package/script/src/diablo3/community/follower.d.ts +25 -0
  223. package/script/src/diablo3/community/follower.js +15 -0
  224. package/script/src/diablo3/community/hero.d.ts +57 -0
  225. package/script/src/diablo3/community/hero.js +29 -0
  226. package/script/src/diablo3/community/item.d.ts +48 -0
  227. package/script/src/diablo3/community/item.js +15 -0
  228. package/script/src/diablo3/community/item_type.d.ts +26 -0
  229. package/script/src/diablo3/community/item_type.js +27 -0
  230. package/script/src/diablo3/community/profile.d.ts +352 -0
  231. package/script/src/diablo3/community/profile.js +67 -0
  232. package/script/src/diablo3/game_data/d3.d.ts +127 -0
  233. package/script/src/diablo3/game_data/d3.js +80 -0
  234. package/script/src/diablo3/index.d.ts +8 -0
  235. package/script/src/diablo3/index.js +31 -0
  236. package/script/src/diablo3/types.d.ts +8 -0
  237. package/script/src/diablo3/types.js +2 -0
  238. package/script/src/generated/diablo3_api.d.ts +156 -0
  239. package/script/src/generated/diablo3_api.js +3 -0
  240. package/script/src/generated/hearthstone_api.d.ts +51 -0
  241. package/script/src/generated/hearthstone_api.js +3 -0
  242. package/script/src/generated/sc2_api.d.ts +139 -0
  243. package/script/src/generated/sc2_api.js +3 -0
  244. package/script/src/generated/wow_api.d.ts +1482 -0
  245. package/script/src/generated/wow_api.js +3 -0
  246. package/script/src/generated/wow_classic_api.d.ts +555 -0
  247. package/script/src/generated/wow_classic_api.js +3 -0
  248. package/script/src/generated/wow_classic_era_api.d.ts +418 -0
  249. package/script/src/generated/wow_classic_era_api.js +3 -0
  250. package/script/src/hearthstone/game_data/card_backs.d.ts +31 -0
  251. package/script/src/hearthstone/game_data/card_backs.js +26 -0
  252. package/script/src/hearthstone/game_data/cards.d.ts +55 -0
  253. package/script/src/hearthstone/game_data/cards.js +30 -0
  254. package/script/src/hearthstone/game_data/decks.d.ts +29 -0
  255. package/script/src/hearthstone/game_data/decks.js +16 -0
  256. package/script/src/hearthstone/game_data/metadata.d.ts +82 -0
  257. package/script/src/hearthstone/game_data/metadata.js +14 -0
  258. package/script/src/hearthstone/index.d.ts +4 -0
  259. package/script/src/hearthstone/index.js +13 -0
  260. package/script/src/hearthstone/search.d.ts +21 -0
  261. package/script/src/hearthstone/search.js +31 -0
  262. package/script/src/hearthstone/types.d.ts +5 -0
  263. package/script/src/hearthstone/types.js +2 -0
  264. package/script/src/shared/bind.d.ts +14 -0
  265. package/script/src/shared/bind.js +18 -0
  266. package/script/src/shared/context.d.ts +163 -0
  267. package/script/src/shared/context.js +312 -0
  268. package/script/src/shared/errors.d.ts +53 -0
  269. package/script/src/shared/errors.js +104 -0
  270. package/script/src/shared/index.d.ts +4 -0
  271. package/script/src/shared/index.js +10 -0
  272. package/script/src/shared/types.d.ts +133 -0
  273. package/script/src/shared/types.js +3 -0
  274. package/script/src/starcraft2/community/account.d.ts +19 -0
  275. package/script/src/starcraft2/community/account.js +18 -0
  276. package/script/src/starcraft2/community/ladder.d.ts +29 -0
  277. package/script/src/starcraft2/community/ladder.js +31 -0
  278. package/script/src/starcraft2/community/legacy.d.ts +206 -0
  279. package/script/src/starcraft2/community/legacy.js +91 -0
  280. package/script/src/starcraft2/community/profile.d.ts +255 -0
  281. package/script/src/starcraft2/community/profile.js +80 -0
  282. package/script/src/starcraft2/game_data/league.d.ts +35 -0
  283. package/script/src/starcraft2/game_data/league.js +23 -0
  284. package/script/src/starcraft2/index.d.ts +5 -0
  285. package/script/src/starcraft2/index.js +23 -0
  286. package/script/src/starcraft2/types.d.ts +5 -0
  287. package/script/src/starcraft2/types.js +2 -0
  288. package/script/src/wow/game_data/achievement.d.ts +87 -0
  289. package/script/src/wow/game_data/achievement.js +75 -0
  290. package/script/src/wow/game_data/auction_house.d.ts +65 -0
  291. package/script/src/wow/game_data/auction_house.js +37 -0
  292. package/script/src/wow/game_data/azerite_essence.d.ts +50 -0
  293. package/script/src/wow/game_data/azerite_essence.js +54 -0
  294. package/script/src/wow/game_data/connected_realm.d.ts +62 -0
  295. package/script/src/wow/game_data/connected_realm.js +40 -0
  296. package/script/src/wow/game_data/covenant.d.ts +115 -0
  297. package/script/src/wow/game_data/covenant.js +97 -0
  298. package/script/src/wow/game_data/creature.d.ts +98 -0
  299. package/script/src/wow/game_data/creature.js +109 -0
  300. package/script/src/wow/game_data/guild_crest.d.ts +56 -0
  301. package/script/src/wow/game_data/guild_crest.js +43 -0
  302. package/script/src/wow/game_data/heirloom.d.ts +82 -0
  303. package/script/src/wow/game_data/heirloom.js +29 -0
  304. package/script/src/wow/game_data/housing.d.ts +111 -0
  305. package/script/src/wow/game_data/housing.js +138 -0
  306. package/script/src/wow/game_data/item.d.ts +183 -0
  307. package/script/src/wow/game_data/item.js +110 -0
  308. package/script/src/wow/game_data/item_appearance.d.ts +102 -0
  309. package/script/src/wow/game_data/item_appearance.js +81 -0
  310. package/script/src/wow/game_data/journal.d.ts +124 -0
  311. package/script/src/wow/game_data/journal.js +108 -0
  312. package/script/src/wow/game_data/keystone_affix.d.ts +39 -0
  313. package/script/src/wow/game_data/keystone_affix.js +43 -0
  314. package/script/src/wow/game_data/media_search.d.ts +9 -0
  315. package/script/src/wow/game_data/media_search.js +13 -0
  316. package/script/src/wow/game_data/modified_crafting.d.ts +65 -0
  317. package/script/src/wow/game_data/modified_crafting.js +69 -0
  318. package/script/src/wow/game_data/mount.d.ts +38 -0
  319. package/script/src/wow/game_data/mount.js +40 -0
  320. package/script/src/wow/game_data/mythic_keystone_dungeon.d.ts +92 -0
  321. package/script/src/wow/game_data/mythic_keystone_dungeon.js +96 -0
  322. package/script/src/wow/game_data/mythic_keystone_leaderboard.d.ts +70 -0
  323. package/script/src/wow/game_data/mythic_keystone_leaderboard.js +32 -0
  324. package/script/src/wow/game_data/mythic_raid_leaderboard.d.ts +36 -0
  325. package/script/src/wow/game_data/mythic_raid_leaderboard.js +17 -0
  326. package/script/src/wow/game_data/neighborhood.d.ts +36 -0
  327. package/script/src/wow/game_data/neighborhood.js +43 -0
  328. package/script/src/wow/game_data/pet.d.ts +93 -0
  329. package/script/src/wow/game_data/pet.js +84 -0
  330. package/script/src/wow/game_data/playable_class.d.ts +58 -0
  331. package/script/src/wow/game_data/playable_class.js +57 -0
  332. package/script/src/wow/game_data/playable_race.d.ts +31 -0
  333. package/script/src/wow/game_data/playable_race.js +29 -0
  334. package/script/src/wow/game_data/playable_specialization.d.ts +63 -0
  335. package/script/src/wow/game_data/playable_specialization.js +43 -0
  336. package/script/src/wow/game_data/power_type.d.ts +22 -0
  337. package/script/src/wow/game_data/power_type.js +29 -0
  338. package/script/src/wow/game_data/profession.d.ts +88 -0
  339. package/script/src/wow/game_data/profession.js +86 -0
  340. package/script/src/wow/game_data/pvp_season.d.ts +108 -0
  341. package/script/src/wow/game_data/pvp_season.js +73 -0
  342. package/script/src/wow/game_data/pvp_tier.d.ts +41 -0
  343. package/script/src/wow/game_data/pvp_tier.js +43 -0
  344. package/script/src/wow/game_data/quest.d.ts +116 -0
  345. package/script/src/wow/game_data/quest.js +110 -0
  346. package/script/src/wow/game_data/realm.d.ts +43 -0
  347. package/script/src/wow/game_data/realm.js +40 -0
  348. package/script/src/wow/game_data/region.d.ts +26 -0
  349. package/script/src/wow/game_data/region.js +29 -0
  350. package/script/src/wow/game_data/reputations.d.ts +57 -0
  351. package/script/src/wow/game_data/reputations.js +56 -0
  352. package/script/src/wow/game_data/spell.d.ts +34 -0
  353. package/script/src/wow/game_data/spell.js +41 -0
  354. package/script/src/wow/game_data/talent.d.ts +143 -0
  355. package/script/src/wow/game_data/talent.js +98 -0
  356. package/script/src/wow/game_data/tech_talent.d.ts +72 -0
  357. package/script/src/wow/game_data/tech_talent.js +70 -0
  358. package/script/src/wow/game_data/title.d.ts +33 -0
  359. package/script/src/wow/game_data/title.js +29 -0
  360. package/script/src/wow/game_data/token.d.ts +17 -0
  361. package/script/src/wow/game_data/token.js +21 -0
  362. package/script/src/wow/game_data/toy.d.ts +25 -0
  363. package/script/src/wow/game_data/toy.js +29 -0
  364. package/script/src/wow/index.d.ts +59 -0
  365. package/script/src/wow/index.js +272 -0
  366. package/script/src/wow/profile/account_profile.d.ts +185 -0
  367. package/script/src/wow/profile/account_profile.js +143 -0
  368. package/script/src/wow/profile/character_achievements.d.ts +88 -0
  369. package/script/src/wow/profile/character_achievements.js +32 -0
  370. package/script/src/wow/profile/character_appearance.d.ts +79 -0
  371. package/script/src/wow/profile/character_appearance.js +17 -0
  372. package/script/src/wow/profile/character_collections.d.ts +132 -0
  373. package/script/src/wow/profile/character_collections.js +107 -0
  374. package/script/src/wow/profile/character_encounters.d.ts +78 -0
  375. package/script/src/wow/profile/character_encounters.js +47 -0
  376. package/script/src/wow/profile/character_equipment.d.ts +177 -0
  377. package/script/src/wow/profile/character_equipment.js +17 -0
  378. package/script/src/wow/profile/character_house.d.ts +16 -0
  379. package/script/src/wow/profile/character_house.js +20 -0
  380. package/script/src/wow/profile/character_hunter_pets.d.ts +22 -0
  381. package/script/src/wow/profile/character_hunter_pets.js +17 -0
  382. package/script/src/wow/profile/character_media.d.ts +14 -0
  383. package/script/src/wow/profile/character_media.js +17 -0
  384. package/script/src/wow/profile/character_mythic_keystone_profile.d.ts +70 -0
  385. package/script/src/wow/profile/character_mythic_keystone_profile.js +35 -0
  386. package/script/src/wow/profile/character_professions.d.ts +29 -0
  387. package/script/src/wow/profile/character_professions.js +17 -0
  388. package/script/src/wow/profile/character_profile.d.ts +83 -0
  389. package/script/src/wow/profile/character_profile.js +43 -0
  390. package/script/src/wow/profile/character_pvp.d.ts +53 -0
  391. package/script/src/wow/profile/character_pvp.js +33 -0
  392. package/script/src/wow/profile/character_quests.d.ts +29 -0
  393. package/script/src/wow/profile/character_quests.js +32 -0
  394. package/script/src/wow/profile/character_reputations.d.ts +30 -0
  395. package/script/src/wow/profile/character_reputations.js +17 -0
  396. package/script/src/wow/profile/character_soulbinds.d.ts +31 -0
  397. package/script/src/wow/profile/character_soulbinds.js +17 -0
  398. package/script/src/wow/profile/character_specializations.d.ts +82 -0
  399. package/script/src/wow/profile/character_specializations.js +17 -0
  400. package/script/src/wow/profile/character_statistics.d.ts +104 -0
  401. package/script/src/wow/profile/character_statistics.js +17 -0
  402. package/script/src/wow/profile/character_titles.d.ts +14 -0
  403. package/script/src/wow/profile/character_titles.js +17 -0
  404. package/script/src/wow/profile/guild.d.ts +150 -0
  405. package/script/src/wow/profile/guild.js +62 -0
  406. package/script/src/wow/search.d.ts +23 -0
  407. package/script/src/wow/search.js +32 -0
  408. package/script/src/wow/types.d.ts +58 -0
  409. package/script/src/wow/types.js +2 -0
  410. package/script/src/wow_classic/auction_house.d.ts +41 -0
  411. package/script/src/wow_classic/auction_house.js +35 -0
  412. package/script/src/wow_classic/character_specializations.d.ts +45 -0
  413. package/script/src/wow_classic/character_specializations.js +21 -0
  414. package/script/src/wow_classic/era.d.ts +8 -0
  415. package/script/src/wow_classic/era.js +30 -0
  416. package/script/src/wow_classic/index.d.ts +15 -0
  417. package/script/src/wow_classic/index.js +55 -0
  418. package/script/src/wow_classic/profile_overrides.d.ts +125 -0
  419. package/script/src/wow_classic/profile_overrides.js +123 -0
  420. package/script/src/wow_classic/shared.d.ts +23 -0
  421. package/script/src/wow_classic/shared.js +81 -0
  422. package/script/src/wow_classic/types.d.ts +3 -0
  423. package/script/src/wow_classic/types.js +2 -0
@@ -0,0 +1,418 @@
1
+ import type { Achievement, AchievementCategory, AchievementMedia, Achievements } from "../wow/game_data/achievement.js";
2
+ import type { AuctionHouseAuctions, AuctionHouses } from "../wow_classic/auction_house.js";
3
+ import type { CharacterHunterPets } from "../wow/profile/character_hunter_pets.js";
4
+ import type { CharacterMedia } from "../wow/profile/character_media.js";
5
+ import type { CharacterProfileStatus } from "../wow/profile/character_profile.js";
6
+ import type { CharacterReputations } from "../wow/profile/character_reputations.js";
7
+ import type { ClassicAchievementCategories, ClassicCharacterAppearanceSummary, ClassicCharacterProfile, ClassicCharacterPvpSummary, ClassicCharacterStatistics, ClassicConnectedRealm, ClassicGuildAchievements } from "../wow_classic/profile_overrides.js";
8
+ import type { ClassicEraCharacterSpecializations } from "../wow_classic/character_specializations.js";
9
+ import type { ConnectedRealms } from "../wow/game_data/connected_realm.js";
10
+ import type { Creature, CreatureDisplayMedia, CreatureFamilies, CreatureFamily, CreatureFamilyMedia, CreatureType, CreatureTypes } from "../wow/game_data/creature.js";
11
+ import type { Guild, GuildActivity, GuildRoster } from "../wow/profile/guild.js";
12
+ import type { GuildCrestBorder, GuildCrestEmblem, GuildCrests } from "../wow/game_data/guild_crest.js";
13
+ import type { Item, ItemClass, ItemClasses, ItemMedia, ItemSubclass } from "../wow/game_data/item.js";
14
+ import type { PlayableClass, PlayableClasses, PlayableClassMedia } from "../wow/game_data/playable_class.js";
15
+ import type { PlayableRace, PlayableRaces } from "../wow/game_data/playable_race.js";
16
+ import type { PowerType, PowerTypes } from "../wow/game_data/power_type.js";
17
+ import type { Realm, Realms } from "../wow/game_data/realm.js";
18
+ import type { Region, Regions } from "../wow/game_data/region.js";
19
+ import type { Search, SearchParameters } from "../wow/search.js";
20
+ import type { characterEquipments } from "../wow/profile/character_equipment.js";
21
+ /**
22
+ * World of Warcraft Classic Era endpoints (Era, Season of Discovery, Hardcore, Anniversary).
23
+ */
24
+ export interface WowClassicEraApi {
25
+ /**
26
+ * Fetches and returns details of a specific achievement identified by its ID.
27
+ *
28
+ * @param achievementId - The unique identifier of the achievement to retrieve.
29
+ * @returns A promise that resolves to an object representing the achievement details.
30
+ */
31
+ achievement(achievementId: number): Promise<Achievement>;
32
+ /**
33
+ * Returns an index of achievement categories.
34
+ *
35
+ * @returns A promise that resolves to an object representing a list of the index of achievement categories.
36
+ */
37
+ achievementCategories(): Promise<ClassicAchievementCategories>;
38
+ /**
39
+ * Fetches and returns details of a specific achievement category identified by its ID.
40
+ *
41
+ * @param achievementCategoryId - The unique identifier of the achievement category to retrieve.
42
+ * @returns A promise that resolves to an object representing the achievement category details.
43
+ */
44
+ achievementCategory(achievementCategoryId: number): Promise<AchievementCategory>;
45
+ /**
46
+ * Fetches and returns media details for a specific achievement identified by its ID.
47
+ *
48
+ * @param achievementId - The unique identifier of the achievement to retrieve media details for.
49
+ * @returns A promise that resolves to an object representing the achievement media details.
50
+ */
51
+ achievementMedia(achievementId: number): Promise<AchievementMedia>;
52
+ /**
53
+ * Fetches and returns an index of achievements.
54
+ *
55
+ * @returns A promise that resolves to an object representing the index of achievements.
56
+ */
57
+ achievements(): Promise<Achievements>;
58
+ /**
59
+ * Returns all active auctions of one auction house of a Classic Era connected realm.
60
+ *
61
+ * @param connectedRealmId - The ID of the connected realm.
62
+ * @param auctionHouseId - The ID of the auction house, from auctionHouses().
63
+ * @returns A promise that resolves to an object listing the auctions.
64
+ */
65
+ auctionHouse(connectedRealmId: number, auctionHouseId: number): Promise<AuctionHouseAuctions>;
66
+ /**
67
+ * Returns an index of the auction houses (Alliance, Horde, neutral) of a Classic Era connected realm.
68
+ *
69
+ * @param connectedRealmId - The ID of the connected realm.
70
+ * @returns A promise that resolves to an object listing the auction houses.
71
+ */
72
+ auctionHouses(connectedRealmId: number): Promise<AuctionHouses>;
73
+ /**
74
+ * Returns a summary of a character's appearance settings.
75
+ *
76
+ * @param realmSlug - The slug of the realm.
77
+ * @param characterName - The lowercase name of the character.
78
+ * @returns A promise that resolves to an object representing a summary of a character's appearance settings.
79
+ */
80
+ characterAppearanceSummary(realmSlug: string, characterName: string): Promise<ClassicCharacterAppearanceSummary>;
81
+ /**
82
+ * Returns a summary of the items equipped by a character.
83
+ *
84
+ * @param realmSlug - The slug of the realm.
85
+ * @param characterName - The lowercase name of the character.
86
+ * @returns A promise that resolves to an object representing details about items equipped by a character.
87
+ */
88
+ characterEquipments(realmSlug: string, characterName: string): Promise<characterEquipments>;
89
+ /**
90
+ * If the character is a hunter, returns a summary of the character's hunter pets. Otherwise, returns an HTTP 404 Not Found error.
91
+ *
92
+ * @param realmSlug - The slug of the realm.
93
+ * @param characterName - The lowercase name of the character.
94
+ * @returns A promise that resolves to an object representing a summary of the character's hunter pets.
95
+ */
96
+ characterHunterPets(realmSlug: string, characterName: string): Promise<CharacterHunterPets>;
97
+ /**
98
+ * Returns a summary of the media assets available for a character (such as an avatar render).
99
+ *
100
+ * @param realmSlug - The slug of the realm.
101
+ * @param characterName - The lowercase name of the character.
102
+ * @returns A promise that resolves to an object representing a summary of the media assets available for a character.
103
+ */
104
+ characterMedia(realmSlug: string, characterName: string): Promise<CharacterMedia>;
105
+ /**
106
+ * Returns a profile summary for a character.
107
+ *
108
+ * @param realmSlug - The slug of the realm.
109
+ * @param characterName - The lowercase name of the character.
110
+ * @returns A promise that resolves to an object representing a profile summary for a character.
111
+ */
112
+ characterProfile(realmSlug: string, characterName: string): Promise<ClassicCharacterProfile>;
113
+ /**
114
+ * Returns the status and a unique ID for a character. A client should delete information about a character from their application if any of the following conditions occur:
115
+ *
116
+ * an HTTP 404 Not Found error is returned
117
+ * the is_valid value is false
118
+ * the returned character ID doesn't match the previously recorded value for the character
119
+ *
120
+ * The following example illustrates how to use this endpoint:
121
+ *
122
+ * A client requests and stores information about a character, including its unique character ID and the timestamp of the request.
123
+ * After 30 days, the client makes a request to the status endpoint to verify if the character information is still valid.
124
+ * If character cannot be found, is not valid, or the characters IDs do not match, the client removes the information from their application.
125
+ * If the character is valid and the character IDs match, the client retains the data for another 30 days.
126
+ *
127
+ * @param realmSlug - The slug of the realm.
128
+ * @param characterName - The lowercase name of the character.
129
+ * @returns A promise that resolves to an object representing a profile summary status.
130
+ */
131
+ characterProfileStatus(realmSlug: string, characterName: string): Promise<CharacterProfileStatus>;
132
+ /**
133
+ * Returns a PvP summary for a character.
134
+ *
135
+ * @param realmSlug - The slug of the realm.
136
+ * @param characterName - The lowercase name of the character.
137
+ * @returns A promise that resolves to an object representing a PvP summary for a character.
138
+ */
139
+ characterPvpSummary(realmSlug: string, characterName: string): Promise<ClassicCharacterPvpSummary>;
140
+ /**
141
+ * Returns a summary of a character's reputations.
142
+ *
143
+ * @param realmSlug - The slug of the realm.
144
+ * @param characterName - The lowercase name of the character.
145
+ * @returns A promise that resolves to an object representing a character's reputations.
146
+ */
147
+ characterReputations(realmSlug: string, characterName: string): Promise<CharacterReputations>;
148
+ /**
149
+ * Returns a summary of a character's talent trees (Classic Era).
150
+ *
151
+ * @param realmSlug - The slug of the realm.
152
+ * @param characterName - The lowercase name of the character.
153
+ * @returns A promise that resolves to an object representing the character's talent groups.
154
+ */
155
+ characterSpecializations(realmSlug: string, characterName: string): Promise<ClassicEraCharacterSpecializations>;
156
+ /**
157
+ * Returns a statistics summary for a character.
158
+ *
159
+ * @param realmSlug - The slug of the realm.
160
+ * @param characterName - The lowercase name of the character.
161
+ * @returns A promise that resolves to an object representing a statistics summary for a character.
162
+ */
163
+ characterStatistics(realmSlug: string, characterName: string): Promise<ClassicCharacterStatistics>;
164
+ /**
165
+ * Returns a connected realm by ID.
166
+ *
167
+ * @param connectedRealmId - The ID of the connected realm.
168
+ * @returns A promise that resolves to an object representing details about a connected realm.
169
+ */
170
+ connectedRealm(connectedRealmId: number): Promise<ClassicConnectedRealm>;
171
+ /**
172
+ * Returns the Connected Realms Index
173
+ *
174
+ * @returns A promise that resolves to an object representing a list of all Connected Realms.
175
+ */
176
+ connectedRealms(): Promise<ConnectedRealms>;
177
+ /**
178
+ * Returns details about a creature
179
+ *
180
+ * @param creatureId - The unique identifier for the creature
181
+ * @returns A promise that resolves to an object representing details about a creature.
182
+ */
183
+ creature(creatureId: number): Promise<Creature>;
184
+ /**
185
+ * Returns media details about a specific Creature display
186
+ *
187
+ * @param creatureDisplayId - The unique identifier Creature display Id.
188
+ * @returns A promise that resolves to an object representing media details about a Creature display.
189
+ */
190
+ creatureDisplayMedia(creatureDisplayId: number): Promise<CreatureDisplayMedia>;
191
+ /**
192
+ * Returns an index of creature families.
193
+ *
194
+ * @returns A promise that resolves to an object representing a list of all creature families.
195
+ */
196
+ creatureFamilies(): Promise<CreatureFamilies>;
197
+ /**
198
+ * Returns details about a creature family
199
+ *
200
+ * @param creatureFamilyId - The unique identifier for the creature family
201
+ * @returns A promise that resolves to an object representing details about a creature family.
202
+ */
203
+ creatureFamily(creatureFamilyId: number): Promise<CreatureFamily>;
204
+ /**
205
+ * Returns media details about a specific Creature family
206
+ *
207
+ * @param creatureFamilyId - The unique identifier Creature family Id.
208
+ * @returns A promise that resolves to an object representing media details about a Creature family.
209
+ */
210
+ creatureFamilyMedia(creatureFamilyId: number): Promise<CreatureFamilyMedia>;
211
+ /**
212
+ * Returns details about a creature types
213
+ *
214
+ * @param creatureTypeId - The unique identifier for the creature types
215
+ * @returns A promise that resolves to an object representing details about a creature types.
216
+ */
217
+ creatureType(creatureTypeId: number): Promise<CreatureType>;
218
+ /**
219
+ * Returns an index of creature types.
220
+ *
221
+ * @returns A promise that resolves to an object representing a list of all creature types.
222
+ */
223
+ creatureTypes(): Promise<CreatureTypes>;
224
+ /**
225
+ * Returns a single guild by its name and realm.
226
+ *
227
+ * @param realmSlug - The slug of the realm.
228
+ * @param nameSlug - The slug of the guild.
229
+ * @returns A promise that resolves to an object representing a single guild by its name and realm.
230
+ */
231
+ guild(realmSlug: string, nameSlug: string): Promise<Guild>;
232
+ /**
233
+ * Returns a single guild's achievements by name.
234
+ *
235
+ * @param realmSlug - The slug of the realm.
236
+ * @param nameSlug - The slug of the guild.
237
+ * @returns A promise that resolves to an object representing a guild's achievements.
238
+ */
239
+ guildAchievements(realmSlug: string, nameSlug: string): Promise<ClassicGuildAchievements>;
240
+ /**
241
+ * Returns a single guild's activity by name and realm.
242
+ *
243
+ * @param realmSlug - The slug of the realm.
244
+ * @param nameSlug - The slug of the guild.
245
+ * @returns A promise that resolves to an object representing a single guild's activity by its name and realm.
246
+ */
247
+ guildActivity(realmSlug: string, nameSlug: string): Promise<GuildActivity>;
248
+ /**
249
+ * Returns a Guild Crest Border Media
250
+ *
251
+ * @param borderId - The unique identifier for the Covenant
252
+ * @returns A promise that resolves to an object representing details about a Guild Crest Border Media.
253
+ */
254
+ guildCrestBorder(borderId: number): Promise<GuildCrestBorder>;
255
+ /**
256
+ * Returns a Crest Emblem Media
257
+ *
258
+ * @param emblemId - The unique identifier for the Crest Emblem Media
259
+ * @returns A promise that resolves to an object representing details about a Crest Emblem Media.
260
+ */
261
+ guildCrestEmblem(emblemId: number): Promise<GuildCrestEmblem>;
262
+ /**
263
+ * Returns the Guild Crest Components Index
264
+ *
265
+ * @returns A promise that resolves to an object representing a list of all Guild Crest Components.
266
+ */
267
+ guildCrests(): Promise<GuildCrests>;
268
+ /**
269
+ * Returns a single guild's roster by its name and realm.
270
+ *
271
+ * @param realmSlug - The slug of the realm.
272
+ * @param nameSlug - The slug of the guild.
273
+ * @returns A promise that resolves to an object representing a single guild's roster by its name and realm.
274
+ */
275
+ guildRoster(realmSlug: string, nameSlug: string): Promise<GuildRoster>;
276
+ /**
277
+ * Returns an item by ID.
278
+ *
279
+ * @param itemId - The unique identifier for the item by ID.
280
+ * @returns A promise that resolves to an object representing details about an item by ID.
281
+ */
282
+ item(itemId: number): Promise<Item>;
283
+ /**
284
+ * Returns an item class by ID.
285
+ *
286
+ * @param itemClassId - The unique identifier for the item class by ID.
287
+ * @returns A promise that resolves to an object representing details about an item class by ID.
288
+ */
289
+ itemClass(itemClassId: number): Promise<ItemClass>;
290
+ /**
291
+ * Returns an index of item classes.
292
+ *
293
+ * @returns A promise that resolves to an object representing a list of item classes.
294
+ */
295
+ itemClasses(): Promise<ItemClasses>;
296
+ /**
297
+ * Returns media details about a specific item Id
298
+ *
299
+ * @param itemId - The unique identifier for the item
300
+ * @returns A promise that resolves to an object representing media details about an item.
301
+ */
302
+ itemMedia(itemId: number): Promise<ItemMedia>;
303
+ /**
304
+ * Returns an item subclass by ID.
305
+ *
306
+ * @param itemClassId - The unique identifier for the item class by ID.
307
+ * @param itemSubclassId - The unique identifier for the item subclass by ID.
308
+ * @returns A promise that resolves to an object representing details about an item set by ID.
309
+ */
310
+ itemSubclass(itemClassId: number, itemSubclassId: number): Promise<ItemSubclass>;
311
+ /**
312
+ * Returns a playable class by ID.
313
+ *
314
+ * @param classId - The unique identifier for the playable class
315
+ * @returns A promise that resolves to an object representing details about a playable class.
316
+ */
317
+ playableClass(classId: number): Promise<PlayableClass>;
318
+ /**
319
+ * Returns an index of playable classes.
320
+ *
321
+ * @returns A promise that resolves to an object representing a list of the index of playable classes.
322
+ */
323
+ playableClasses(): Promise<PlayableClasses>;
324
+ /**
325
+ * Returns media for a playable class by ID.
326
+ *
327
+ * @param playableClassId - The unique identifier for the playable class
328
+ * @returns A promise that resolves to an object representing media details about a playable class.
329
+ */
330
+ playableClassMedia(playableClassId: number): Promise<PlayableClassMedia>;
331
+ /**
332
+ * Returns a playable race by ID.
333
+ *
334
+ * @param playableRaceId - The unique identifier for the playable race
335
+ * @returns A promise that resolves to an object representing details about a playable race.
336
+ */
337
+ playableRace(playableRaceId: number): Promise<PlayableRace>;
338
+ /**
339
+ * Returns an index of playable races.
340
+ *
341
+ * @returns A promise that resolves to an object representing a list of the index of playable races.
342
+ */
343
+ playableRaces(): Promise<PlayableRaces>;
344
+ /**
345
+ * Returns a power type by ID.
346
+ *
347
+ * @param powerTypeId - The unique identifier for the power type.
348
+ * @returns A promise that resolves to an object representing details about a power type.
349
+ */
350
+ powerType(powerTypeId: number): Promise<PowerType>;
351
+ /**
352
+ * Returns an index of power types.
353
+ *
354
+ * @returns A promise that resolves to an object representing a list of power types.
355
+ */
356
+ powerTypes(): Promise<PowerTypes>;
357
+ /**
358
+ * Returns a single realm by slug or ID.
359
+ *
360
+ * @param realmSlugOrId - The unique identifier for the realm.
361
+ * @returns A promise that resolves to an object representing details about a realm.
362
+ */
363
+ realm(realmSlugOrId: string | number): Promise<Realm>;
364
+ /**
365
+ * Returns an index of realms.
366
+ *
367
+ * @returns A promise that resolves to an object representing a list of realms.
368
+ */
369
+ realms(): Promise<Realms>;
370
+ /**
371
+ * Returns a region by ID.
372
+ *
373
+ * @param regionId - The unique identifier for the region.
374
+ * @returns A promise that resolves to an object representing details about a region.
375
+ */
376
+ region(regionId: number): Promise<Region>;
377
+ /**
378
+ * Returns an index of regions.
379
+ *
380
+ * @returns A promise that resolves to an object representing a list of regions.
381
+ */
382
+ regions(): Promise<Regions>;
383
+ /**
384
+ * Performs a search of connected realms.
385
+ *
386
+ * @param SearchParameters - Object containing search parameters.
387
+ * @returns A promise that resolves to an object representing details about the connected realms search.
388
+ */
389
+ searchConnectedRealm(searchParameters: SearchParameters): Promise<Search>;
390
+ /**
391
+ * Performs a search of creatures.
392
+ *
393
+ * @param SearchParameters - Object containing search parameters.
394
+ * @returns A promise that resolves to an object representing details about a creature search.
395
+ */
396
+ searchCreature(searchParameters: SearchParameters): Promise<Search>;
397
+ /**
398
+ * Performs a search of items.
399
+ *
400
+ * @param SearchParameters - Object containing search parameters.
401
+ * @returns A promise that resolves to an object representing details about an item search.
402
+ */
403
+ searchItem(searchParameters: SearchParameters): Promise<Search>;
404
+ /**
405
+ * Performs a search of media.
406
+ *
407
+ * @param SearchParameters - Object containing search parameters.
408
+ * @returns A promise that resolves to an object representing details about a media search.
409
+ */
410
+ searchMedia(searchParameters: SearchParameters): Promise<Search>;
411
+ /**
412
+ * Performs a search of realms.
413
+ *
414
+ * @param SearchParameters - Object containing search parameters.
415
+ * @returns A promise that resolves to an object representing details about a realm search.
416
+ */
417
+ searchRealm(searchParameters: SearchParameters): Promise<Search>;
418
+ }
@@ -0,0 +1,2 @@
1
+ // Generated by scripts/gen_api.ts from src/wow_classic/era.ts. Do not edit; run `deno task gen:api`.
2
+ export {};
@@ -0,0 +1,31 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { LocalizedString } from "../../shared/index.js";
3
+ import type { SearchParameters } from "../search.js";
4
+ export interface Cardback {
5
+ id: number;
6
+ sortCategory: number;
7
+ text: LocalizedString;
8
+ name: LocalizedString;
9
+ image: string;
10
+ slug: string;
11
+ }
12
+ export interface CardbackSearch {
13
+ cardBacks: Cardback[];
14
+ cardCount: number;
15
+ pageCount: number;
16
+ page: number;
17
+ }
18
+ /**
19
+ * Returns an up-to-date list of all card backs matching the search criteria.
20
+ *
21
+ * @param SearchParameters - Object containing search parameters.
22
+ * @returns A promise that resolves to an object representing an up-to-date list of all card backs matching the search criteria.
23
+ */
24
+ export declare function searchCardbacks(ctx: ApiContext, searchParameters: SearchParameters): Promise<CardbackSearch>;
25
+ /**
26
+ * Returns the card back with an ID or slug that matches the one you specify.
27
+ *
28
+ * @param idorslug - The unique identifier for the card back by slug.
29
+ * @returns A promise that resolves to an object representing details about a card back.
30
+ */
31
+ export declare function fetchCardback(ctx: ApiContext, idorslug: string): Promise<Cardback>;
@@ -0,0 +1,22 @@
1
+ import { search } from "../search.js";
2
+ /**
3
+ * Returns an up-to-date list of all card backs matching the search criteria.
4
+ *
5
+ * @param SearchParameters - Object containing search parameters.
6
+ * @returns A promise that resolves to an object representing an up-to-date list of all card backs matching the search criteria.
7
+ */
8
+ export async function searchCardbacks(ctx, searchParameters) {
9
+ return await search(ctx, "/cardbacks", searchParameters);
10
+ }
11
+ /**
12
+ * Returns the card back with an ID or slug that matches the one you specify.
13
+ *
14
+ * @param idorslug - The unique identifier for the card back by slug.
15
+ * @returns A promise that resolves to an object representing details about a card back.
16
+ */
17
+ export async function fetchCardback(ctx, idorslug) {
18
+ return await ctx.request({
19
+ method: "GET",
20
+ url: `/hearthstone/cardbacks/${idorslug}`,
21
+ });
22
+ }
@@ -0,0 +1,55 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { LocalizedString } from "../../shared/index.js";
3
+ import type { SearchParameters } from "../search.js";
4
+ export interface Card {
5
+ id: number;
6
+ collectible: number;
7
+ slug: string;
8
+ classId: number;
9
+ multiClassIds: number[];
10
+ cardTypeId: number;
11
+ cardSetId: number;
12
+ rarityId: number;
13
+ artistName: string | null;
14
+ health?: number;
15
+ attack?: number;
16
+ manaCost: number;
17
+ name: LocalizedString;
18
+ text: LocalizedString;
19
+ image: string;
20
+ imageGold: string;
21
+ flavorText: LocalizedString;
22
+ cropImage: string;
23
+ keywordIds?: number[];
24
+ childIds?: number[];
25
+ parentId?: number;
26
+ copyOfCardId?: number[];
27
+ spellSchoolId?: number;
28
+ minionTypeId?: number;
29
+ isZilliaxCosmeticModule?: boolean;
30
+ isZilliaxFunctionalModule?: boolean;
31
+ duels?: {
32
+ relevant: boolean;
33
+ constructed: boolean;
34
+ };
35
+ }
36
+ export interface CardSearch {
37
+ cards: Card[];
38
+ cardCount: number;
39
+ pageCount: number;
40
+ page: number;
41
+ }
42
+ /**
43
+ * Returns an up-to-date list of all cards matching the search criteria.
44
+ *
45
+ * @param SearchParameters - Object containing search parameters.
46
+ * @returns A promise that resolves to an object representing an up-to-date list of all cards matching the search criteria.
47
+ */
48
+ export declare function searchCards(ctx: ApiContext, searchParameters: SearchParameters): Promise<CardSearch>;
49
+ /**
50
+ * Returns the card with an ID or slug that matches the one you specify.
51
+ *
52
+ * @param idorslug - The unique identifier for the card by slug.
53
+ * @returns A promise that resolves to an object representing details about a card.
54
+ */
55
+ export declare function fetchCard(ctx: ApiContext, idorslug: string, gameMode?: string): Promise<Card>;
@@ -0,0 +1,26 @@
1
+ import { search } from "../search.js";
2
+ /**
3
+ * Returns an up-to-date list of all cards matching the search criteria.
4
+ *
5
+ * @param SearchParameters - Object containing search parameters.
6
+ * @returns A promise that resolves to an object representing an up-to-date list of all cards matching the search criteria.
7
+ */
8
+ export async function searchCards(ctx, searchParameters) {
9
+ return await search(ctx, "/cards", searchParameters);
10
+ }
11
+ /**
12
+ * Returns the card with an ID or slug that matches the one you specify.
13
+ *
14
+ * @param idorslug - The unique identifier for the card by slug.
15
+ * @returns A promise that resolves to an object representing details about a card.
16
+ */
17
+ export async function fetchCard(ctx, idorslug, gameMode) {
18
+ const reqOptions = {
19
+ method: "GET",
20
+ url: `/hearthstone/cards/${idorslug}`,
21
+ };
22
+ if (gameMode) {
23
+ reqOptions["qs"] = { gameMode };
24
+ }
25
+ return await ctx.request(reqOptions);
26
+ }
@@ -0,0 +1,29 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { LocalizedString } from "../../shared/index.js";
3
+ import type { Card } from "./cards.js";
4
+ export interface Options {
5
+ code?: string;
6
+ ids?: string;
7
+ hero?: string;
8
+ }
9
+ export interface Deck {
10
+ deckCode: string;
11
+ version: number;
12
+ format: string;
13
+ hero: Card;
14
+ heroPower: Card;
15
+ class: {
16
+ slug: string;
17
+ id: number;
18
+ name: LocalizedString;
19
+ };
20
+ cards: Card[];
21
+ cardCount: number;
22
+ }
23
+ /**
24
+ * Returns the card with an ID or slug that matches the one you specify.
25
+ *
26
+ * @param options - find parameters fort the search.
27
+ * @returns A promise that resolves to an object representing details about a card.
28
+ */
29
+ export declare function fetchDeck(ctx: ApiContext, options?: Options): Promise<Deck>;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Returns the card with an ID or slug that matches the one you specify.
3
+ *
4
+ * @param options - find parameters fort the search.
5
+ * @returns A promise that resolves to an object representing details about a card.
6
+ */
7
+ export async function fetchDeck(ctx, options) {
8
+ return await ctx.request({
9
+ method: "GET",
10
+ url: `/hearthstone/deck`,
11
+ qs: options,
12
+ });
13
+ }