@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,82 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
3
+ export interface Heirlooms extends LinkSelfHref {
4
+ heirlooms: KeyNameId[];
5
+ }
6
+ export interface ValueDisplayString {
7
+ value: number;
8
+ display_string: LocalizedString;
9
+ }
10
+ export interface UpgradeStats {
11
+ type: TypeName;
12
+ value: number;
13
+ is_negated?: boolean;
14
+ is_equip_bonus?: boolean;
15
+ display: {
16
+ display_string: LocalizedString;
17
+ color: {
18
+ r: number;
19
+ g: number;
20
+ b: number;
21
+ a: number;
22
+ };
23
+ };
24
+ }
25
+ export interface Upgrade {
26
+ item: {
27
+ item: KeyId;
28
+ context: number;
29
+ bonus_list: number[];
30
+ quality: TypeName;
31
+ name: LocalizedString;
32
+ media: KeyId;
33
+ item_class: KeyNameId;
34
+ item_subclass: KeyNameId;
35
+ inventory_type: TypeName;
36
+ binding: TypeName;
37
+ weapon: {
38
+ damage: {
39
+ min_value: number;
40
+ max_value: number;
41
+ display_string: LocalizedString;
42
+ damage_class: TypeName;
43
+ };
44
+ attack_speed: ValueDisplayString;
45
+ dps: ValueDisplayString;
46
+ };
47
+ stats: UpgradeStats[];
48
+ upgrades: {
49
+ value: number;
50
+ max_value: number;
51
+ display_string: LocalizedString;
52
+ };
53
+ requirements: {
54
+ level: {
55
+ display_string: LocalizedString;
56
+ };
57
+ };
58
+ level: ValueDisplayString;
59
+ };
60
+ level: number;
61
+ }
62
+ export interface Heirloom extends LinkSelfHref {
63
+ id: number;
64
+ item: KeyNameId;
65
+ source: TypeName;
66
+ source_description: LocalizedString;
67
+ upgrades: Upgrade[];
68
+ media: KeyId;
69
+ }
70
+ /**
71
+ * Returns the Heirloom Index
72
+ *
73
+ * @returns A promise that resolves to an object representing a list of all Heirlooms.
74
+ */
75
+ export declare function heirlooms(ctx: ApiContext): Promise<Heirlooms>;
76
+ /**
77
+ * Returns a Heirloom
78
+ *
79
+ * @param heirloomId - The unique identifier for the Heirloom
80
+ * @returns A promise that resolves to an object representing details about a Heirloom.
81
+ */
82
+ export declare function heirloom(ctx: ApiContext, heirloomId: number): Promise<Heirloom>;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Returns the Heirloom Index
3
+ *
4
+ * @returns A promise that resolves to an object representing a list of all Heirlooms.
5
+ */
6
+ export async function heirlooms(ctx) {
7
+ return await ctx.request({
8
+ method: "GET",
9
+ url: "/data/wow/heirloom/index",
10
+ namespace: "static",
11
+ });
12
+ }
13
+ /**
14
+ * Returns a Heirloom
15
+ *
16
+ * @param heirloomId - The unique identifier for the Heirloom
17
+ * @returns A promise that resolves to an object representing details about a Heirloom.
18
+ */
19
+ export async function heirloom(ctx, heirloomId) {
20
+ return await ctx.request({
21
+ method: "GET",
22
+ url: `/data/wow/heirloom/${heirloomId}`,
23
+ namespace: "static",
24
+ });
25
+ }
@@ -0,0 +1,111 @@
1
+ /**
2
+ * This module provides interfaces and API function definitions for fetching World of Warcraft housing data (decor, fixtures, fixture hooks, rooms) using the Blizzard API.
3
+ */
4
+ import type { ApiContext } from "../../shared/index.js";
5
+ import type { Href, LinkSelfHref, NamedRef } from "../../shared/index.js";
6
+ import type { Search, SearchParameters } from "../search.js";
7
+ export interface Decors extends LinkSelfHref {
8
+ decor_items: NamedRef[];
9
+ }
10
+ export interface Decor extends LinkSelfHref {
11
+ id: number;
12
+ name: string;
13
+ /** Reference to the in-game item (a single item despite the plural name). */
14
+ items: NamedRef;
15
+ /** How many of this decor a new collection starts with. */
16
+ default_collection_count: number;
17
+ }
18
+ export interface Fixtures extends LinkSelfHref {
19
+ fixtures: {
20
+ key: Href;
21
+ name: string | null;
22
+ id: number;
23
+ }[];
24
+ }
25
+ export interface Fixture extends LinkSelfHref {
26
+ id: number;
27
+ name: string;
28
+ /** Fixture hooks (e.g. Door, Window) on this fixture. Absent when the fixture has none. */
29
+ hooks?: NamedRef[];
30
+ }
31
+ export interface FixtureHooks extends LinkSelfHref {
32
+ fixture_hooks: NamedRef[];
33
+ }
34
+ export interface FixtureHook extends LinkSelfHref {
35
+ id: number;
36
+ /** Hook type (e.g. "Door", "Window"). */
37
+ type_name: string;
38
+ /** Parent fixture this hook belongs to. */
39
+ parent_fixture: NamedRef;
40
+ }
41
+ export interface Rooms extends LinkSelfHref {
42
+ rooms: NamedRef[];
43
+ }
44
+ export interface Room extends LinkSelfHref {
45
+ id: number;
46
+ name: string;
47
+ }
48
+ /**
49
+ * Returns an index of decor.
50
+ */
51
+ export declare function decors(ctx: ApiContext): Promise<Decors>;
52
+ /**
53
+ * Returns a decor by ID.
54
+ *
55
+ * @param decorId - The ID of the decor.
56
+ */
57
+ export declare function decor(ctx: ApiContext, decorId: number): Promise<Decor>;
58
+ /**
59
+ * Performs a search of decor.
60
+ *
61
+ * @param searchParameters - Object containing search parameters.
62
+ */
63
+ export declare function searchDecor(ctx: ApiContext, searchParameters: SearchParameters): Promise<Search>;
64
+ /**
65
+ * Returns an index of fixtures.
66
+ */
67
+ export declare function fixtures(ctx: ApiContext): Promise<Fixtures>;
68
+ /**
69
+ * Returns a fixture by ID.
70
+ *
71
+ * @param fixtureId - The ID of the fixture.
72
+ */
73
+ export declare function fixture(ctx: ApiContext, fixtureId: number): Promise<Fixture>;
74
+ /**
75
+ * Performs a search of fixtures.
76
+ *
77
+ * @param searchParameters - Object containing search parameters.
78
+ */
79
+ export declare function searchFixture(ctx: ApiContext, searchParameters: SearchParameters): Promise<Search>;
80
+ /**
81
+ * Returns an index of fixture hooks.
82
+ */
83
+ export declare function fixtureHooks(ctx: ApiContext): Promise<FixtureHooks>;
84
+ /**
85
+ * Returns a fixture hook by ID.
86
+ *
87
+ * @param fixtureHookId - The ID of the fixture hook.
88
+ */
89
+ export declare function fixtureHook(ctx: ApiContext, fixtureHookId: number): Promise<FixtureHook>;
90
+ /**
91
+ * Performs a search of fixture hooks.
92
+ *
93
+ * @param searchParameters - Object containing search parameters.
94
+ */
95
+ export declare function searchFixtureHook(ctx: ApiContext, searchParameters: SearchParameters): Promise<Search>;
96
+ /**
97
+ * Returns an index of rooms.
98
+ */
99
+ export declare function rooms(ctx: ApiContext): Promise<Rooms>;
100
+ /**
101
+ * Returns a room by ID.
102
+ *
103
+ * @param roomId - The ID of the room.
104
+ */
105
+ export declare function room(ctx: ApiContext, roomId: number): Promise<Room>;
106
+ /**
107
+ * Performs a search of rooms.
108
+ *
109
+ * @param searchParameters - Object containing search parameters.
110
+ */
111
+ export declare function searchRoom(ctx: ApiContext, searchParameters: SearchParameters): Promise<Search>;
@@ -0,0 +1,124 @@
1
+ /**
2
+ * This module provides interfaces and API function definitions for fetching World of Warcraft housing data (decor, fixtures, fixture hooks, rooms) using the Blizzard API.
3
+ */
4
+ import { search } from "../search.js";
5
+ /**
6
+ * Returns an index of decor.
7
+ */
8
+ export async function decors(ctx) {
9
+ return await ctx.request({
10
+ method: "GET",
11
+ url: "/data/wow/decor/index",
12
+ namespace: "static",
13
+ });
14
+ }
15
+ /**
16
+ * Returns a decor by ID.
17
+ *
18
+ * @param decorId - The ID of the decor.
19
+ */
20
+ export async function decor(ctx, decorId) {
21
+ return await ctx.request({
22
+ method: "GET",
23
+ url: `/data/wow/decor/${decorId}`,
24
+ namespace: "static",
25
+ });
26
+ }
27
+ /**
28
+ * Performs a search of decor.
29
+ *
30
+ * @param searchParameters - Object containing search parameters.
31
+ */
32
+ export async function searchDecor(ctx, searchParameters) {
33
+ return await search(ctx, "/decor", "static", searchParameters);
34
+ }
35
+ /**
36
+ * Returns an index of fixtures.
37
+ */
38
+ export async function fixtures(ctx) {
39
+ return await ctx.request({
40
+ method: "GET",
41
+ url: "/data/wow/fixture/index",
42
+ namespace: "static",
43
+ });
44
+ }
45
+ /**
46
+ * Returns a fixture by ID.
47
+ *
48
+ * @param fixtureId - The ID of the fixture.
49
+ */
50
+ export async function fixture(ctx, fixtureId) {
51
+ return await ctx.request({
52
+ method: "GET",
53
+ url: `/data/wow/fixture/${fixtureId}`,
54
+ namespace: "static",
55
+ });
56
+ }
57
+ /**
58
+ * Performs a search of fixtures.
59
+ *
60
+ * @param searchParameters - Object containing search parameters.
61
+ */
62
+ export async function searchFixture(ctx, searchParameters) {
63
+ return await search(ctx, "/fixture", "static", searchParameters);
64
+ }
65
+ /**
66
+ * Returns an index of fixture hooks.
67
+ */
68
+ export async function fixtureHooks(ctx) {
69
+ return await ctx.request({
70
+ method: "GET",
71
+ url: "/data/wow/fixture-hook/index",
72
+ namespace: "static",
73
+ });
74
+ }
75
+ /**
76
+ * Returns a fixture hook by ID.
77
+ *
78
+ * @param fixtureHookId - The ID of the fixture hook.
79
+ */
80
+ export async function fixtureHook(ctx, fixtureHookId) {
81
+ return await ctx.request({
82
+ method: "GET",
83
+ url: `/data/wow/fixture-hook/${fixtureHookId}`,
84
+ namespace: "static",
85
+ });
86
+ }
87
+ /**
88
+ * Performs a search of fixture hooks.
89
+ *
90
+ * @param searchParameters - Object containing search parameters.
91
+ */
92
+ export async function searchFixtureHook(ctx, searchParameters) {
93
+ return await search(ctx, "/fixture-hook", "static", searchParameters);
94
+ }
95
+ /**
96
+ * Returns an index of rooms.
97
+ */
98
+ export async function rooms(ctx) {
99
+ return await ctx.request({
100
+ method: "GET",
101
+ url: "/data/wow/room/index",
102
+ namespace: "static",
103
+ });
104
+ }
105
+ /**
106
+ * Returns a room by ID.
107
+ *
108
+ * @param roomId - The ID of the room.
109
+ */
110
+ export async function room(ctx, roomId) {
111
+ return await ctx.request({
112
+ method: "GET",
113
+ url: `/data/wow/room/${roomId}`,
114
+ namespace: "static",
115
+ });
116
+ }
117
+ /**
118
+ * Performs a search of rooms.
119
+ *
120
+ * @param searchParameters - Object containing search parameters.
121
+ */
122
+ export async function searchRoom(ctx, searchParameters) {
123
+ return await search(ctx, "/room", "static", searchParameters);
124
+ }
@@ -0,0 +1,183 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, NamedRef, TypeName } from "../../shared/index.js";
3
+ import type { Search, SearchParameters } from "../search.js";
4
+ export interface ItemClasses extends LinkSelfHref {
5
+ item_classes: KeyNameId[];
6
+ }
7
+ export interface ItemClass extends LinkSelfHref {
8
+ id: number;
9
+ name: LocalizedString;
10
+ item_subclasses: KeyNameId[];
11
+ }
12
+ export interface ItemSets extends LinkSelfHref {
13
+ item_sets: KeyNameId[];
14
+ }
15
+ export interface ItemSet extends LinkSelfHref {
16
+ id: number;
17
+ name: LocalizedString;
18
+ items: KeyNameId[];
19
+ effects: {
20
+ display_string: LocalizedString;
21
+ required_count: number;
22
+ }[];
23
+ }
24
+ export interface ItemSubclass extends LinkSelfHref {
25
+ id: number;
26
+ item_class: NamedRef;
27
+ display_name: LocalizedString;
28
+ verbose_name?: string;
29
+ hide_subclass_in_tooltips?: boolean;
30
+ }
31
+ export interface Item extends LinkSelfHref {
32
+ id: number;
33
+ name: LocalizedString;
34
+ quality: TypeName;
35
+ level: number;
36
+ required_level: number;
37
+ media: KeyId;
38
+ item_class: KeyNameId;
39
+ item_subclass: KeyNameId;
40
+ inventory_type: TypeName;
41
+ purchase_price: number;
42
+ sell_price: number;
43
+ max_count: number;
44
+ is_equippable: boolean;
45
+ is_stackable: boolean;
46
+ preview_item: {
47
+ item: KeyId;
48
+ context?: number;
49
+ bonus_list?: number[];
50
+ quality: TypeName;
51
+ name: LocalizedString;
52
+ media: KeyId;
53
+ item_class: KeyNameId;
54
+ item_subclass: KeyNameId;
55
+ inventory_type: TypeName;
56
+ binding: TypeName;
57
+ unique_equipped: string;
58
+ weapon: {
59
+ damage: {
60
+ min_value: number;
61
+ max_value: number;
62
+ display_string: LocalizedString;
63
+ damage_class: TypeName;
64
+ };
65
+ additional_damage?: {
66
+ min_value: number;
67
+ max_value: number;
68
+ display_string: LocalizedString;
69
+ damage_class: TypeName;
70
+ }[];
71
+ attack_speed: {
72
+ value: number;
73
+ display_string: LocalizedString;
74
+ };
75
+ dps: {
76
+ value: number;
77
+ display_string: LocalizedString;
78
+ };
79
+ };
80
+ stats: {
81
+ type: TypeName;
82
+ value: number;
83
+ is_negated?: boolean;
84
+ display: {
85
+ display_string: LocalizedString;
86
+ color: {
87
+ r: number;
88
+ g: number;
89
+ b: number;
90
+ a: number;
91
+ };
92
+ };
93
+ }[];
94
+ spells: {
95
+ spell: KeyNameId;
96
+ description: LocalizedString;
97
+ }[];
98
+ requirements: {
99
+ level: {
100
+ value: number;
101
+ display_string: LocalizedString;
102
+ };
103
+ };
104
+ level?: {
105
+ value: number;
106
+ display_string: LocalizedString;
107
+ };
108
+ durability: {
109
+ value: number;
110
+ display_string: LocalizedString;
111
+ };
112
+ sell_price?: {
113
+ value: number;
114
+ display_strings: {
115
+ header: LocalizedString;
116
+ gold: string;
117
+ silver: string;
118
+ copper: string;
119
+ };
120
+ };
121
+ };
122
+ purchase_quantity: number;
123
+ appearances?: KeyId[];
124
+ }
125
+ export interface ItemMedia extends LinkSelfHref {
126
+ assets: Asset[];
127
+ id: number;
128
+ }
129
+ /**
130
+ * Returns an index of item classes.
131
+ *
132
+ * @returns A promise that resolves to an object representing a list of item classes.
133
+ */
134
+ export declare function itemClasses(ctx: ApiContext): Promise<ItemClasses>;
135
+ /**
136
+ * Returns an item class by ID.
137
+ *
138
+ * @param itemClassId - The unique identifier for the item class by ID.
139
+ * @returns A promise that resolves to an object representing details about an item class by ID.
140
+ */
141
+ export declare function itemClass(ctx: ApiContext, itemClassId: number): Promise<ItemClass>;
142
+ /**
143
+ * Returns an index of item sets.
144
+ *
145
+ * @returns A promise that resolves to an object representing a list of item sets.
146
+ */
147
+ export declare function itemSets(ctx: ApiContext): Promise<ItemSets>;
148
+ /**
149
+ * Returns an item set by ID.
150
+ *
151
+ * @param itemSetId - The unique identifier for the item set by ID.
152
+ * @returns A promise that resolves to an object representing details about an item set by ID.
153
+ */
154
+ export declare function itemSet(ctx: ApiContext, itemSetId: number): Promise<ItemSet>;
155
+ /**
156
+ * Returns an item subclass by ID.
157
+ *
158
+ * @param itemClassId - The unique identifier for the item class by ID.
159
+ * @param itemSubclassId - The unique identifier for the item subclass by ID.
160
+ * @returns A promise that resolves to an object representing details about an item set by ID.
161
+ */
162
+ export declare function itemSubclass(ctx: ApiContext, itemClassId: number, itemSubclassId: number): Promise<ItemSubclass>;
163
+ /**
164
+ * Returns an item by ID.
165
+ *
166
+ * @param itemId - The unique identifier for the item by ID.
167
+ * @returns A promise that resolves to an object representing details about an item by ID.
168
+ */
169
+ export declare function item(ctx: ApiContext, itemId: number): Promise<Item>;
170
+ /**
171
+ * Returns media details about a specific item Id
172
+ *
173
+ * @param itemId - The unique identifier for the item
174
+ * @returns A promise that resolves to an object representing media details about an item.
175
+ */
176
+ export declare function itemMedia(ctx: ApiContext, itemId: number): Promise<ItemMedia>;
177
+ /**
178
+ * Performs a search of items.
179
+ *
180
+ * @param SearchParameters - Object containing search parameters.
181
+ * @returns A promise that resolves to an object representing details about an item search.
182
+ */
183
+ export declare function searchItem(ctx: ApiContext, searchParameters: SearchParameters): Promise<Search>;
@@ -0,0 +1,100 @@
1
+ import { search } from "../search.js";
2
+ /**
3
+ * Returns an index of item classes.
4
+ *
5
+ * @returns A promise that resolves to an object representing a list of item classes.
6
+ */
7
+ export async function itemClasses(ctx) {
8
+ return await ctx.request({
9
+ method: "GET",
10
+ url: "/data/wow/item-class/index",
11
+ namespace: "static",
12
+ });
13
+ }
14
+ /**
15
+ * Returns an item class by ID.
16
+ *
17
+ * @param itemClassId - The unique identifier for the item class by ID.
18
+ * @returns A promise that resolves to an object representing details about an item class by ID.
19
+ */
20
+ export async function itemClass(ctx, itemClassId) {
21
+ return await ctx.request({
22
+ method: "GET",
23
+ url: `/data/wow/item-class/${itemClassId}`,
24
+ namespace: "static",
25
+ });
26
+ }
27
+ /**
28
+ * Returns an index of item sets.
29
+ *
30
+ * @returns A promise that resolves to an object representing a list of item sets.
31
+ */
32
+ export async function itemSets(ctx) {
33
+ return await ctx.request({
34
+ method: "GET",
35
+ url: "/data/wow/item-set/index",
36
+ namespace: "static",
37
+ });
38
+ }
39
+ /**
40
+ * Returns an item set by ID.
41
+ *
42
+ * @param itemSetId - The unique identifier for the item set by ID.
43
+ * @returns A promise that resolves to an object representing details about an item set by ID.
44
+ */
45
+ export async function itemSet(ctx, itemSetId) {
46
+ return await ctx.request({
47
+ method: "GET",
48
+ url: `/data/wow/item-set/${itemSetId}`,
49
+ namespace: "static",
50
+ });
51
+ }
52
+ /**
53
+ * Returns an item subclass by ID.
54
+ *
55
+ * @param itemClassId - The unique identifier for the item class by ID.
56
+ * @param itemSubclassId - The unique identifier for the item subclass by ID.
57
+ * @returns A promise that resolves to an object representing details about an item set by ID.
58
+ */
59
+ export async function itemSubclass(ctx, itemClassId, itemSubclassId) {
60
+ return await ctx.request({
61
+ method: "GET",
62
+ url: `/data/wow/item-class/${itemClassId}/item-subclass/${itemSubclassId}`,
63
+ namespace: "static",
64
+ });
65
+ }
66
+ /**
67
+ * Returns an item by ID.
68
+ *
69
+ * @param itemId - The unique identifier for the item by ID.
70
+ * @returns A promise that resolves to an object representing details about an item by ID.
71
+ */
72
+ export async function item(ctx, itemId) {
73
+ return await ctx.request({
74
+ method: "GET",
75
+ url: `/data/wow/item/${itemId}`,
76
+ namespace: "static",
77
+ });
78
+ }
79
+ /**
80
+ * Returns media details about a specific item Id
81
+ *
82
+ * @param itemId - The unique identifier for the item
83
+ * @returns A promise that resolves to an object representing media details about an item.
84
+ */
85
+ export async function itemMedia(ctx, itemId) {
86
+ return await ctx.request({
87
+ method: "GET",
88
+ url: `/data/wow/media/item/${itemId}`,
89
+ namespace: "static",
90
+ });
91
+ }
92
+ /**
93
+ * Performs a search of items.
94
+ *
95
+ * @param SearchParameters - Object containing search parameters.
96
+ * @returns A promise that resolves to an object representing details about an item search.
97
+ */
98
+ export async function searchItem(ctx, searchParameters) {
99
+ return await search(ctx, "/item", "static", searchParameters);
100
+ }