@pinta365/blizzard_api 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (423) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +153 -37
  3. package/esm/mod.d.ts +43 -6
  4. package/esm/mod.js +69 -6
  5. package/esm/src/client.d.ts +95 -0
  6. package/esm/src/client.js +52 -0
  7. package/esm/src/diablo3/community/act.d.ts +29 -0
  8. package/esm/src/diablo3/community/act.js +23 -0
  9. package/esm/src/diablo3/community/artisan.d.ts +50 -0
  10. package/esm/src/diablo3/community/artisan.js +25 -0
  11. package/esm/src/diablo3/community/follower.d.ts +25 -0
  12. package/esm/src/diablo3/community/follower.js +12 -0
  13. package/esm/src/diablo3/community/hero.d.ts +57 -0
  14. package/esm/src/diablo3/community/hero.js +25 -0
  15. package/esm/src/diablo3/community/item.d.ts +48 -0
  16. package/esm/src/diablo3/community/item.js +12 -0
  17. package/esm/src/diablo3/community/item_type.d.ts +26 -0
  18. package/esm/src/diablo3/community/item_type.js +23 -0
  19. package/esm/src/diablo3/community/profile.d.ts +352 -0
  20. package/esm/src/diablo3/community/profile.js +61 -0
  21. package/esm/src/diablo3/game_data/d3.d.ts +127 -0
  22. package/esm/src/diablo3/game_data/d3.js +72 -0
  23. package/esm/src/diablo3/index.d.ts +8 -0
  24. package/esm/src/diablo3/index.js +8 -0
  25. package/esm/src/diablo3/types.d.ts +8 -0
  26. package/esm/src/diablo3/types.js +1 -0
  27. package/esm/src/generated/diablo3_api.d.ts +156 -0
  28. package/esm/src/generated/diablo3_api.js +2 -0
  29. package/esm/src/generated/hearthstone_api.d.ts +51 -0
  30. package/esm/src/generated/hearthstone_api.js +2 -0
  31. package/esm/src/generated/sc2_api.d.ts +139 -0
  32. package/esm/src/generated/sc2_api.js +2 -0
  33. package/esm/src/generated/wow_api.d.ts +1482 -0
  34. package/esm/src/generated/wow_api.js +2 -0
  35. package/esm/src/generated/wow_classic_api.d.ts +555 -0
  36. package/esm/src/generated/wow_classic_api.js +2 -0
  37. package/esm/src/generated/wow_classic_era_api.d.ts +418 -0
  38. package/esm/src/generated/wow_classic_era_api.js +2 -0
  39. package/esm/src/hearthstone/game_data/card_backs.d.ts +31 -0
  40. package/esm/src/hearthstone/game_data/card_backs.js +22 -0
  41. package/esm/src/hearthstone/game_data/cards.d.ts +55 -0
  42. package/esm/src/hearthstone/game_data/cards.js +26 -0
  43. package/esm/src/hearthstone/game_data/decks.d.ts +29 -0
  44. package/esm/src/hearthstone/game_data/decks.js +13 -0
  45. package/esm/src/hearthstone/game_data/metadata.d.ts +82 -0
  46. package/esm/src/hearthstone/game_data/metadata.js +11 -0
  47. package/esm/src/hearthstone/index.d.ts +4 -0
  48. package/esm/src/hearthstone/index.js +4 -0
  49. package/esm/src/hearthstone/search.d.ts +21 -0
  50. package/esm/src/hearthstone/search.js +28 -0
  51. package/esm/src/hearthstone/types.d.ts +5 -0
  52. package/esm/src/hearthstone/types.js +1 -0
  53. package/esm/src/shared/bind.d.ts +14 -0
  54. package/esm/src/shared/bind.js +15 -0
  55. package/esm/src/shared/context.d.ts +163 -0
  56. package/esm/src/shared/context.js +304 -0
  57. package/esm/src/shared/errors.d.ts +53 -0
  58. package/esm/src/shared/errors.js +95 -0
  59. package/esm/src/shared/index.d.ts +4 -0
  60. package/esm/src/shared/index.js +2 -0
  61. package/esm/src/shared/types.d.ts +133 -0
  62. package/esm/src/shared/types.js +2 -0
  63. package/esm/src/starcraft2/community/account.d.ts +19 -0
  64. package/esm/src/starcraft2/community/account.js +15 -0
  65. package/esm/src/starcraft2/community/ladder.d.ts +29 -0
  66. package/esm/src/starcraft2/community/ladder.js +27 -0
  67. package/esm/src/starcraft2/community/legacy.d.ts +206 -0
  68. package/esm/src/starcraft2/community/legacy.js +83 -0
  69. package/esm/src/starcraft2/community/profile.d.ts +255 -0
  70. package/esm/src/starcraft2/community/profile.js +73 -0
  71. package/esm/src/starcraft2/game_data/league.d.ts +35 -0
  72. package/esm/src/starcraft2/game_data/league.js +20 -0
  73. package/esm/src/starcraft2/index.d.ts +5 -0
  74. package/esm/src/starcraft2/index.js +5 -0
  75. package/esm/src/starcraft2/types.d.ts +5 -0
  76. package/esm/src/starcraft2/types.js +1 -0
  77. package/esm/src/wow/game_data/achievement.d.ts +87 -0
  78. package/esm/src/wow/game_data/achievement.js +68 -0
  79. package/esm/src/wow/game_data/auction_house.d.ts +65 -0
  80. package/esm/src/wow/game_data/auction_house.js +33 -0
  81. package/esm/src/wow/game_data/azerite_essence.d.ts +50 -0
  82. package/esm/src/wow/game_data/azerite_essence.js +48 -0
  83. package/esm/src/wow/game_data/connected_realm.d.ts +62 -0
  84. package/esm/src/wow/game_data/connected_realm.js +35 -0
  85. package/esm/src/wow/game_data/covenant.d.ts +115 -0
  86. package/esm/src/wow/game_data/covenant.js +88 -0
  87. package/esm/src/wow/game_data/creature.d.ts +98 -0
  88. package/esm/src/wow/game_data/creature.js +99 -0
  89. package/esm/src/wow/game_data/guild_crest.d.ts +56 -0
  90. package/esm/src/wow/game_data/guild_crest.js +38 -0
  91. package/esm/src/wow/game_data/heirloom.d.ts +82 -0
  92. package/esm/src/wow/game_data/heirloom.js +25 -0
  93. package/esm/src/wow/game_data/housing.d.ts +111 -0
  94. package/esm/src/wow/game_data/housing.js +124 -0
  95. package/esm/src/wow/game_data/item.d.ts +183 -0
  96. package/esm/src/wow/game_data/item.js +100 -0
  97. package/esm/src/wow/game_data/item_appearance.d.ts +102 -0
  98. package/esm/src/wow/game_data/item_appearance.js +73 -0
  99. package/esm/src/wow/game_data/journal.d.ts +124 -0
  100. package/esm/src/wow/game_data/journal.js +98 -0
  101. package/esm/src/wow/game_data/keystone_affix.d.ts +39 -0
  102. package/esm/src/wow/game_data/keystone_affix.js +38 -0
  103. package/esm/src/wow/game_data/media_search.d.ts +9 -0
  104. package/esm/src/wow/game_data/media_search.js +10 -0
  105. package/esm/src/wow/game_data/modified_crafting.d.ts +65 -0
  106. package/esm/src/wow/game_data/modified_crafting.js +62 -0
  107. package/esm/src/wow/game_data/mount.d.ts +38 -0
  108. package/esm/src/wow/game_data/mount.js +35 -0
  109. package/esm/src/wow/game_data/mythic_keystone_dungeon.d.ts +92 -0
  110. package/esm/src/wow/game_data/mythic_keystone_dungeon.js +87 -0
  111. package/esm/src/wow/game_data/mythic_keystone_leaderboard.d.ts +70 -0
  112. package/esm/src/wow/game_data/mythic_keystone_leaderboard.js +28 -0
  113. package/esm/src/wow/game_data/mythic_raid_leaderboard.d.ts +36 -0
  114. package/esm/src/wow/game_data/mythic_raid_leaderboard.js +14 -0
  115. package/esm/src/wow/game_data/neighborhood.d.ts +36 -0
  116. package/esm/src/wow/game_data/neighborhood.js +38 -0
  117. package/esm/src/wow/game_data/pet.d.ts +93 -0
  118. package/esm/src/wow/game_data/pet.js +76 -0
  119. package/esm/src/wow/game_data/playable_class.d.ts +58 -0
  120. package/esm/src/wow/game_data/playable_class.js +51 -0
  121. package/esm/src/wow/game_data/playable_race.d.ts +31 -0
  122. package/esm/src/wow/game_data/playable_race.js +25 -0
  123. package/esm/src/wow/game_data/playable_specialization.d.ts +63 -0
  124. package/esm/src/wow/game_data/playable_specialization.js +38 -0
  125. package/esm/src/wow/game_data/power_type.d.ts +22 -0
  126. package/esm/src/wow/game_data/power_type.js +25 -0
  127. package/esm/src/wow/game_data/profession.d.ts +88 -0
  128. package/esm/src/wow/game_data/profession.js +78 -0
  129. package/esm/src/wow/game_data/pvp_season.d.ts +108 -0
  130. package/esm/src/wow/game_data/pvp_season.js +66 -0
  131. package/esm/src/wow/game_data/pvp_tier.d.ts +41 -0
  132. package/esm/src/wow/game_data/pvp_tier.js +38 -0
  133. package/esm/src/wow/game_data/quest.d.ts +116 -0
  134. package/esm/src/wow/game_data/quest.js +100 -0
  135. package/esm/src/wow/game_data/realm.d.ts +43 -0
  136. package/esm/src/wow/game_data/realm.js +35 -0
  137. package/esm/src/wow/game_data/region.d.ts +26 -0
  138. package/esm/src/wow/game_data/region.js +25 -0
  139. package/esm/src/wow/game_data/reputations.d.ts +57 -0
  140. package/esm/src/wow/game_data/reputations.js +50 -0
  141. package/esm/src/wow/game_data/spell.d.ts +34 -0
  142. package/esm/src/wow/game_data/spell.js +36 -0
  143. package/esm/src/wow/game_data/talent.d.ts +143 -0
  144. package/esm/src/wow/game_data/talent.js +89 -0
  145. package/esm/src/wow/game_data/tech_talent.d.ts +72 -0
  146. package/esm/src/wow/game_data/tech_talent.js +63 -0
  147. package/esm/src/wow/game_data/title.d.ts +33 -0
  148. package/esm/src/wow/game_data/title.js +25 -0
  149. package/esm/src/wow/game_data/token.d.ts +17 -0
  150. package/esm/src/wow/game_data/token.js +18 -0
  151. package/esm/src/wow/game_data/toy.d.ts +25 -0
  152. package/esm/src/wow/game_data/toy.js +25 -0
  153. package/esm/src/wow/index.d.ts +59 -0
  154. package/esm/src/wow/index.js +61 -0
  155. package/esm/src/wow/profile/account_profile.d.ts +185 -0
  156. package/esm/src/wow/profile/account_profile.js +132 -0
  157. package/esm/src/wow/profile/character_achievements.d.ts +88 -0
  158. package/esm/src/wow/profile/character_achievements.js +28 -0
  159. package/esm/src/wow/profile/character_appearance.d.ts +79 -0
  160. package/esm/src/wow/profile/character_appearance.js +14 -0
  161. package/esm/src/wow/profile/character_collections.d.ts +132 -0
  162. package/esm/src/wow/profile/character_collections.js +98 -0
  163. package/esm/src/wow/profile/character_encounters.d.ts +78 -0
  164. package/esm/src/wow/profile/character_encounters.js +42 -0
  165. package/esm/src/wow/profile/character_equipment.d.ts +177 -0
  166. package/esm/src/wow/profile/character_equipment.js +14 -0
  167. package/esm/src/wow/profile/character_house.d.ts +16 -0
  168. package/esm/src/wow/profile/character_house.js +17 -0
  169. package/esm/src/wow/profile/character_hunter_pets.d.ts +22 -0
  170. package/esm/src/wow/profile/character_hunter_pets.js +14 -0
  171. package/esm/src/wow/profile/character_media.d.ts +14 -0
  172. package/esm/src/wow/profile/character_media.js +14 -0
  173. package/esm/src/wow/profile/character_mythic_keystone_profile.d.ts +70 -0
  174. package/esm/src/wow/profile/character_mythic_keystone_profile.js +31 -0
  175. package/esm/src/wow/profile/character_professions.d.ts +29 -0
  176. package/esm/src/wow/profile/character_professions.js +14 -0
  177. package/esm/src/wow/profile/character_profile.d.ts +83 -0
  178. package/esm/src/wow/profile/character_profile.js +39 -0
  179. package/esm/src/wow/profile/character_pvp.d.ts +53 -0
  180. package/esm/src/wow/profile/character_pvp.js +29 -0
  181. package/esm/src/wow/profile/character_quests.d.ts +29 -0
  182. package/esm/src/wow/profile/character_quests.js +28 -0
  183. package/esm/src/wow/profile/character_reputations.d.ts +30 -0
  184. package/esm/src/wow/profile/character_reputations.js +14 -0
  185. package/esm/src/wow/profile/character_soulbinds.d.ts +31 -0
  186. package/esm/src/wow/profile/character_soulbinds.js +14 -0
  187. package/esm/src/wow/profile/character_specializations.d.ts +82 -0
  188. package/esm/src/wow/profile/character_specializations.js +14 -0
  189. package/esm/src/wow/profile/character_statistics.d.ts +104 -0
  190. package/esm/src/wow/profile/character_statistics.js +14 -0
  191. package/esm/src/wow/profile/character_titles.d.ts +14 -0
  192. package/esm/src/wow/profile/character_titles.js +14 -0
  193. package/esm/src/wow/profile/guild.d.ts +150 -0
  194. package/esm/src/wow/profile/guild.js +56 -0
  195. package/esm/src/wow/search.d.ts +23 -0
  196. package/esm/src/wow/search.js +29 -0
  197. package/esm/src/wow/types.d.ts +58 -0
  198. package/esm/src/wow/types.js +1 -0
  199. package/esm/src/wow_classic/auction_house.d.ts +41 -0
  200. package/esm/src/wow_classic/auction_house.js +31 -0
  201. package/esm/src/wow_classic/character_specializations.d.ts +45 -0
  202. package/esm/src/wow_classic/character_specializations.js +18 -0
  203. package/esm/src/wow_classic/era.d.ts +8 -0
  204. package/esm/src/wow_classic/era.js +10 -0
  205. package/esm/src/wow_classic/index.d.ts +15 -0
  206. package/esm/src/wow_classic/index.js +17 -0
  207. package/esm/src/wow_classic/profile_overrides.d.ts +125 -0
  208. package/esm/src/wow_classic/profile_overrides.js +111 -0
  209. package/esm/src/wow_classic/shared.d.ts +23 -0
  210. package/esm/src/wow_classic/shared.js +26 -0
  211. package/esm/src/wow_classic/types.d.ts +3 -0
  212. package/esm/src/wow_classic/types.js +1 -0
  213. package/package.json +23 -2
  214. package/script/mod.d.ts +43 -6
  215. package/script/mod.js +91 -21
  216. package/script/src/client.d.ts +95 -0
  217. package/script/src/client.js +89 -0
  218. package/script/src/diablo3/community/act.d.ts +29 -0
  219. package/script/src/diablo3/community/act.js +27 -0
  220. package/script/src/diablo3/community/artisan.d.ts +50 -0
  221. package/script/src/diablo3/community/artisan.js +29 -0
  222. package/script/src/diablo3/community/follower.d.ts +25 -0
  223. package/script/src/diablo3/community/follower.js +15 -0
  224. package/script/src/diablo3/community/hero.d.ts +57 -0
  225. package/script/src/diablo3/community/hero.js +29 -0
  226. package/script/src/diablo3/community/item.d.ts +48 -0
  227. package/script/src/diablo3/community/item.js +15 -0
  228. package/script/src/diablo3/community/item_type.d.ts +26 -0
  229. package/script/src/diablo3/community/item_type.js +27 -0
  230. package/script/src/diablo3/community/profile.d.ts +352 -0
  231. package/script/src/diablo3/community/profile.js +67 -0
  232. package/script/src/diablo3/game_data/d3.d.ts +127 -0
  233. package/script/src/diablo3/game_data/d3.js +80 -0
  234. package/script/src/diablo3/index.d.ts +8 -0
  235. package/script/src/diablo3/index.js +31 -0
  236. package/script/src/diablo3/types.d.ts +8 -0
  237. package/script/src/diablo3/types.js +2 -0
  238. package/script/src/generated/diablo3_api.d.ts +156 -0
  239. package/script/src/generated/diablo3_api.js +3 -0
  240. package/script/src/generated/hearthstone_api.d.ts +51 -0
  241. package/script/src/generated/hearthstone_api.js +3 -0
  242. package/script/src/generated/sc2_api.d.ts +139 -0
  243. package/script/src/generated/sc2_api.js +3 -0
  244. package/script/src/generated/wow_api.d.ts +1482 -0
  245. package/script/src/generated/wow_api.js +3 -0
  246. package/script/src/generated/wow_classic_api.d.ts +555 -0
  247. package/script/src/generated/wow_classic_api.js +3 -0
  248. package/script/src/generated/wow_classic_era_api.d.ts +418 -0
  249. package/script/src/generated/wow_classic_era_api.js +3 -0
  250. package/script/src/hearthstone/game_data/card_backs.d.ts +31 -0
  251. package/script/src/hearthstone/game_data/card_backs.js +26 -0
  252. package/script/src/hearthstone/game_data/cards.d.ts +55 -0
  253. package/script/src/hearthstone/game_data/cards.js +30 -0
  254. package/script/src/hearthstone/game_data/decks.d.ts +29 -0
  255. package/script/src/hearthstone/game_data/decks.js +16 -0
  256. package/script/src/hearthstone/game_data/metadata.d.ts +82 -0
  257. package/script/src/hearthstone/game_data/metadata.js +14 -0
  258. package/script/src/hearthstone/index.d.ts +4 -0
  259. package/script/src/hearthstone/index.js +13 -0
  260. package/script/src/hearthstone/search.d.ts +21 -0
  261. package/script/src/hearthstone/search.js +31 -0
  262. package/script/src/hearthstone/types.d.ts +5 -0
  263. package/script/src/hearthstone/types.js +2 -0
  264. package/script/src/shared/bind.d.ts +14 -0
  265. package/script/src/shared/bind.js +18 -0
  266. package/script/src/shared/context.d.ts +163 -0
  267. package/script/src/shared/context.js +312 -0
  268. package/script/src/shared/errors.d.ts +53 -0
  269. package/script/src/shared/errors.js +104 -0
  270. package/script/src/shared/index.d.ts +4 -0
  271. package/script/src/shared/index.js +10 -0
  272. package/script/src/shared/types.d.ts +133 -0
  273. package/script/src/shared/types.js +3 -0
  274. package/script/src/starcraft2/community/account.d.ts +19 -0
  275. package/script/src/starcraft2/community/account.js +18 -0
  276. package/script/src/starcraft2/community/ladder.d.ts +29 -0
  277. package/script/src/starcraft2/community/ladder.js +31 -0
  278. package/script/src/starcraft2/community/legacy.d.ts +206 -0
  279. package/script/src/starcraft2/community/legacy.js +91 -0
  280. package/script/src/starcraft2/community/profile.d.ts +255 -0
  281. package/script/src/starcraft2/community/profile.js +80 -0
  282. package/script/src/starcraft2/game_data/league.d.ts +35 -0
  283. package/script/src/starcraft2/game_data/league.js +23 -0
  284. package/script/src/starcraft2/index.d.ts +5 -0
  285. package/script/src/starcraft2/index.js +23 -0
  286. package/script/src/starcraft2/types.d.ts +5 -0
  287. package/script/src/starcraft2/types.js +2 -0
  288. package/script/src/wow/game_data/achievement.d.ts +87 -0
  289. package/script/src/wow/game_data/achievement.js +75 -0
  290. package/script/src/wow/game_data/auction_house.d.ts +65 -0
  291. package/script/src/wow/game_data/auction_house.js +37 -0
  292. package/script/src/wow/game_data/azerite_essence.d.ts +50 -0
  293. package/script/src/wow/game_data/azerite_essence.js +54 -0
  294. package/script/src/wow/game_data/connected_realm.d.ts +62 -0
  295. package/script/src/wow/game_data/connected_realm.js +40 -0
  296. package/script/src/wow/game_data/covenant.d.ts +115 -0
  297. package/script/src/wow/game_data/covenant.js +97 -0
  298. package/script/src/wow/game_data/creature.d.ts +98 -0
  299. package/script/src/wow/game_data/creature.js +109 -0
  300. package/script/src/wow/game_data/guild_crest.d.ts +56 -0
  301. package/script/src/wow/game_data/guild_crest.js +43 -0
  302. package/script/src/wow/game_data/heirloom.d.ts +82 -0
  303. package/script/src/wow/game_data/heirloom.js +29 -0
  304. package/script/src/wow/game_data/housing.d.ts +111 -0
  305. package/script/src/wow/game_data/housing.js +138 -0
  306. package/script/src/wow/game_data/item.d.ts +183 -0
  307. package/script/src/wow/game_data/item.js +110 -0
  308. package/script/src/wow/game_data/item_appearance.d.ts +102 -0
  309. package/script/src/wow/game_data/item_appearance.js +81 -0
  310. package/script/src/wow/game_data/journal.d.ts +124 -0
  311. package/script/src/wow/game_data/journal.js +108 -0
  312. package/script/src/wow/game_data/keystone_affix.d.ts +39 -0
  313. package/script/src/wow/game_data/keystone_affix.js +43 -0
  314. package/script/src/wow/game_data/media_search.d.ts +9 -0
  315. package/script/src/wow/game_data/media_search.js +13 -0
  316. package/script/src/wow/game_data/modified_crafting.d.ts +65 -0
  317. package/script/src/wow/game_data/modified_crafting.js +69 -0
  318. package/script/src/wow/game_data/mount.d.ts +38 -0
  319. package/script/src/wow/game_data/mount.js +40 -0
  320. package/script/src/wow/game_data/mythic_keystone_dungeon.d.ts +92 -0
  321. package/script/src/wow/game_data/mythic_keystone_dungeon.js +96 -0
  322. package/script/src/wow/game_data/mythic_keystone_leaderboard.d.ts +70 -0
  323. package/script/src/wow/game_data/mythic_keystone_leaderboard.js +32 -0
  324. package/script/src/wow/game_data/mythic_raid_leaderboard.d.ts +36 -0
  325. package/script/src/wow/game_data/mythic_raid_leaderboard.js +17 -0
  326. package/script/src/wow/game_data/neighborhood.d.ts +36 -0
  327. package/script/src/wow/game_data/neighborhood.js +43 -0
  328. package/script/src/wow/game_data/pet.d.ts +93 -0
  329. package/script/src/wow/game_data/pet.js +84 -0
  330. package/script/src/wow/game_data/playable_class.d.ts +58 -0
  331. package/script/src/wow/game_data/playable_class.js +57 -0
  332. package/script/src/wow/game_data/playable_race.d.ts +31 -0
  333. package/script/src/wow/game_data/playable_race.js +29 -0
  334. package/script/src/wow/game_data/playable_specialization.d.ts +63 -0
  335. package/script/src/wow/game_data/playable_specialization.js +43 -0
  336. package/script/src/wow/game_data/power_type.d.ts +22 -0
  337. package/script/src/wow/game_data/power_type.js +29 -0
  338. package/script/src/wow/game_data/profession.d.ts +88 -0
  339. package/script/src/wow/game_data/profession.js +86 -0
  340. package/script/src/wow/game_data/pvp_season.d.ts +108 -0
  341. package/script/src/wow/game_data/pvp_season.js +73 -0
  342. package/script/src/wow/game_data/pvp_tier.d.ts +41 -0
  343. package/script/src/wow/game_data/pvp_tier.js +43 -0
  344. package/script/src/wow/game_data/quest.d.ts +116 -0
  345. package/script/src/wow/game_data/quest.js +110 -0
  346. package/script/src/wow/game_data/realm.d.ts +43 -0
  347. package/script/src/wow/game_data/realm.js +40 -0
  348. package/script/src/wow/game_data/region.d.ts +26 -0
  349. package/script/src/wow/game_data/region.js +29 -0
  350. package/script/src/wow/game_data/reputations.d.ts +57 -0
  351. package/script/src/wow/game_data/reputations.js +56 -0
  352. package/script/src/wow/game_data/spell.d.ts +34 -0
  353. package/script/src/wow/game_data/spell.js +41 -0
  354. package/script/src/wow/game_data/talent.d.ts +143 -0
  355. package/script/src/wow/game_data/talent.js +98 -0
  356. package/script/src/wow/game_data/tech_talent.d.ts +72 -0
  357. package/script/src/wow/game_data/tech_talent.js +70 -0
  358. package/script/src/wow/game_data/title.d.ts +33 -0
  359. package/script/src/wow/game_data/title.js +29 -0
  360. package/script/src/wow/game_data/token.d.ts +17 -0
  361. package/script/src/wow/game_data/token.js +21 -0
  362. package/script/src/wow/game_data/toy.d.ts +25 -0
  363. package/script/src/wow/game_data/toy.js +29 -0
  364. package/script/src/wow/index.d.ts +59 -0
  365. package/script/src/wow/index.js +272 -0
  366. package/script/src/wow/profile/account_profile.d.ts +185 -0
  367. package/script/src/wow/profile/account_profile.js +143 -0
  368. package/script/src/wow/profile/character_achievements.d.ts +88 -0
  369. package/script/src/wow/profile/character_achievements.js +32 -0
  370. package/script/src/wow/profile/character_appearance.d.ts +79 -0
  371. package/script/src/wow/profile/character_appearance.js +17 -0
  372. package/script/src/wow/profile/character_collections.d.ts +132 -0
  373. package/script/src/wow/profile/character_collections.js +107 -0
  374. package/script/src/wow/profile/character_encounters.d.ts +78 -0
  375. package/script/src/wow/profile/character_encounters.js +47 -0
  376. package/script/src/wow/profile/character_equipment.d.ts +177 -0
  377. package/script/src/wow/profile/character_equipment.js +17 -0
  378. package/script/src/wow/profile/character_house.d.ts +16 -0
  379. package/script/src/wow/profile/character_house.js +20 -0
  380. package/script/src/wow/profile/character_hunter_pets.d.ts +22 -0
  381. package/script/src/wow/profile/character_hunter_pets.js +17 -0
  382. package/script/src/wow/profile/character_media.d.ts +14 -0
  383. package/script/src/wow/profile/character_media.js +17 -0
  384. package/script/src/wow/profile/character_mythic_keystone_profile.d.ts +70 -0
  385. package/script/src/wow/profile/character_mythic_keystone_profile.js +35 -0
  386. package/script/src/wow/profile/character_professions.d.ts +29 -0
  387. package/script/src/wow/profile/character_professions.js +17 -0
  388. package/script/src/wow/profile/character_profile.d.ts +83 -0
  389. package/script/src/wow/profile/character_profile.js +43 -0
  390. package/script/src/wow/profile/character_pvp.d.ts +53 -0
  391. package/script/src/wow/profile/character_pvp.js +33 -0
  392. package/script/src/wow/profile/character_quests.d.ts +29 -0
  393. package/script/src/wow/profile/character_quests.js +32 -0
  394. package/script/src/wow/profile/character_reputations.d.ts +30 -0
  395. package/script/src/wow/profile/character_reputations.js +17 -0
  396. package/script/src/wow/profile/character_soulbinds.d.ts +31 -0
  397. package/script/src/wow/profile/character_soulbinds.js +17 -0
  398. package/script/src/wow/profile/character_specializations.d.ts +82 -0
  399. package/script/src/wow/profile/character_specializations.js +17 -0
  400. package/script/src/wow/profile/character_statistics.d.ts +104 -0
  401. package/script/src/wow/profile/character_statistics.js +17 -0
  402. package/script/src/wow/profile/character_titles.d.ts +14 -0
  403. package/script/src/wow/profile/character_titles.js +17 -0
  404. package/script/src/wow/profile/guild.d.ts +150 -0
  405. package/script/src/wow/profile/guild.js +62 -0
  406. package/script/src/wow/search.d.ts +23 -0
  407. package/script/src/wow/search.js +32 -0
  408. package/script/src/wow/types.d.ts +58 -0
  409. package/script/src/wow/types.js +2 -0
  410. package/script/src/wow_classic/auction_house.d.ts +41 -0
  411. package/script/src/wow_classic/auction_house.js +35 -0
  412. package/script/src/wow_classic/character_specializations.d.ts +45 -0
  413. package/script/src/wow_classic/character_specializations.js +21 -0
  414. package/script/src/wow_classic/era.d.ts +8 -0
  415. package/script/src/wow_classic/era.js +30 -0
  416. package/script/src/wow_classic/index.d.ts +15 -0
  417. package/script/src/wow_classic/index.js +55 -0
  418. package/script/src/wow_classic/profile_overrides.d.ts +125 -0
  419. package/script/src/wow_classic/profile_overrides.js +123 -0
  420. package/script/src/wow_classic/shared.d.ts +23 -0
  421. package/script/src/wow_classic/shared.js +81 -0
  422. package/script/src/wow_classic/types.d.ts +3 -0
  423. package/script/src/wow_classic/types.js +2 -0
@@ -0,0 +1,83 @@
1
+ import type { ApiContext, Href, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
2
+ export interface CharacterRealm extends KeyNameId {
3
+ slug: string;
4
+ }
5
+ export interface CharacterProfile extends LinkSelfHref {
6
+ id: number;
7
+ name: LocalizedString;
8
+ active_title?: {
9
+ name: string;
10
+ };
11
+ gender: TypeName;
12
+ faction: TypeName;
13
+ race: KeyNameId;
14
+ character_class: KeyNameId;
15
+ active_spec: KeyNameId;
16
+ realm: CharacterRealm;
17
+ guild?: {
18
+ key: Href;
19
+ name: LocalizedString;
20
+ id: number;
21
+ realm: CharacterRealm;
22
+ faction: TypeName;
23
+ };
24
+ level: number;
25
+ experience: number;
26
+ achievement_points: number;
27
+ achievements: Href;
28
+ titles: Href;
29
+ pvp_summary: Href;
30
+ encounters: Href;
31
+ media: Href;
32
+ last_login_timestamp: number;
33
+ average_item_level: number;
34
+ equipped_item_level: number;
35
+ specializations: Href;
36
+ statistics: Href;
37
+ mythic_keystone_profile: Href;
38
+ equipment: Href;
39
+ appearance: Href;
40
+ collections: Href;
41
+ reputations: Href;
42
+ quests: Href;
43
+ achievements_statistics: Href;
44
+ professions: Href;
45
+ covenant_progress?: {
46
+ chosen_covenant: KeyNameId;
47
+ renown_level: number;
48
+ soulbinds: Href;
49
+ };
50
+ name_search: string;
51
+ is_remix: boolean;
52
+ }
53
+ export interface CharacterProfileStatus extends LinkSelfHref {
54
+ id: number;
55
+ is_valid: boolean;
56
+ }
57
+ /**
58
+ * Returns a profile summary for a character.
59
+ *
60
+ * @param realmSlug - The slug of the realm.
61
+ * @param characterName - The lowercase name of the character.
62
+ * @returns A promise that resolves to an object representing a profile summary.
63
+ */
64
+ export declare function characterProfile(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterProfile>;
65
+ /**
66
+ * 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:
67
+ *
68
+ * an HTTP 404 Not Found error is returned
69
+ * the is_valid value is false
70
+ * the returned character ID doesn't match the previously recorded value for the character
71
+ *
72
+ * The following example illustrates how to use this endpoint:
73
+ *
74
+ * A client requests and stores information about a character, including its unique character ID and the timestamp of the request.
75
+ * After 30 days, the client makes a request to the status endpoint to verify if the character information is still valid.
76
+ * If character cannot be found, is not valid, or the characters IDs do not match, the client removes the information from their application.
77
+ * If the character is valid and the character IDs match, the client retains the data for another 30 days.
78
+ *
79
+ * @param realmSlug - The slug of the realm.
80
+ * @param characterName - The lowercase name of the character.
81
+ * @returns A promise that resolves to an object representing a profile summary status.
82
+ */
83
+ export declare function characterProfileStatus(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterProfileStatus>;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Returns a profile summary for a character.
3
+ *
4
+ * @param realmSlug - The slug of the realm.
5
+ * @param characterName - The lowercase name of the character.
6
+ * @returns A promise that resolves to an object representing a profile summary.
7
+ */
8
+ export async function characterProfile(ctx, realmSlug, characterName) {
9
+ return await ctx.request({
10
+ method: "GET",
11
+ url: `/profile/wow/character/${realmSlug}/${characterName}`,
12
+ namespace: "profile",
13
+ });
14
+ }
15
+ /**
16
+ * 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:
17
+ *
18
+ * an HTTP 404 Not Found error is returned
19
+ * the is_valid value is false
20
+ * the returned character ID doesn't match the previously recorded value for the character
21
+ *
22
+ * The following example illustrates how to use this endpoint:
23
+ *
24
+ * A client requests and stores information about a character, including its unique character ID and the timestamp of the request.
25
+ * After 30 days, the client makes a request to the status endpoint to verify if the character information is still valid.
26
+ * If character cannot be found, is not valid, or the characters IDs do not match, the client removes the information from their application.
27
+ * If the character is valid and the character IDs match, the client retains the data for another 30 days.
28
+ *
29
+ * @param realmSlug - The slug of the realm.
30
+ * @param characterName - The lowercase name of the character.
31
+ * @returns A promise that resolves to an object representing a profile summary status.
32
+ */
33
+ export async function characterProfileStatus(ctx, realmSlug, characterName) {
34
+ return await ctx.request({
35
+ method: "GET",
36
+ url: `/profile/wow/character/${realmSlug}/${characterName}/status`,
37
+ namespace: "profile",
38
+ });
39
+ }
@@ -0,0 +1,53 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { Character, KeyId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
3
+ export interface MatchStatistic {
4
+ played: number;
5
+ won: number;
6
+ lost: number;
7
+ }
8
+ export interface CharacterPvpBracketStatistics extends LinkSelfHref {
9
+ character: Character;
10
+ faction: TypeName;
11
+ bracket: {
12
+ id: number;
13
+ type: string;
14
+ };
15
+ rating: number;
16
+ season: KeyId;
17
+ tier: KeyId;
18
+ season_match_statistics: MatchStatistic;
19
+ weekly_match_statistics: MatchStatistic;
20
+ }
21
+ export interface CharacterPvpSummary extends LinkSelfHref {
22
+ brackets?: {
23
+ href: string;
24
+ }[];
25
+ honor_level: number;
26
+ pvp_map_statistics?: {
27
+ world_map: {
28
+ name: LocalizedString;
29
+ id: number;
30
+ };
31
+ match_statistics: MatchStatistic;
32
+ }[];
33
+ honorable_kills: number;
34
+ character: Character;
35
+ pvp_rank?: number;
36
+ }
37
+ /**
38
+ * Returns the PvP bracket statistics for a character.
39
+ *
40
+ * @param realmSlug - The slug of the realm.
41
+ * @param characterName - The lowercase name of the character.
42
+ * @param pvpBracket - The PvP bracket type.
43
+ * @returns A promise that resolves to an object representing the PvP bracket statistics for a character.
44
+ */
45
+ export declare function characterPvpBracketStatistics(ctx: ApiContext, realmSlug: string, characterName: string, pvpBracket: string): Promise<CharacterPvpBracketStatistics>;
46
+ /**
47
+ * Returns a PvP summary for a character.
48
+ *
49
+ * @param realmSlug - The slug of the realm.
50
+ * @param characterName - The lowercase name of the character.
51
+ * @returns A promise that resolves to an object representing the PvP summary for a character.
52
+ */
53
+ export declare function characterPvpSummary(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterPvpSummary>;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Returns the PvP bracket statistics for a character.
3
+ *
4
+ * @param realmSlug - The slug of the realm.
5
+ * @param characterName - The lowercase name of the character.
6
+ * @param pvpBracket - The PvP bracket type.
7
+ * @returns A promise that resolves to an object representing the PvP bracket statistics for a character.
8
+ */
9
+ export async function characterPvpBracketStatistics(ctx, realmSlug, characterName, pvpBracket) {
10
+ return await ctx.request({
11
+ method: "GET",
12
+ url: `/profile/wow/character/${realmSlug}/${characterName}/pvp-bracket/${pvpBracket}`,
13
+ namespace: "profile",
14
+ });
15
+ }
16
+ /**
17
+ * Returns a PvP summary for a character.
18
+ *
19
+ * @param realmSlug - The slug of the realm.
20
+ * @param characterName - The lowercase name of the character.
21
+ * @returns A promise that resolves to an object representing the PvP summary for a character.
22
+ */
23
+ export async function characterPvpSummary(ctx, realmSlug, characterName) {
24
+ return await ctx.request({
25
+ method: "GET",
26
+ url: `/profile/wow/character/${realmSlug}/${characterName}/pvp-summary`,
27
+ namespace: "profile",
28
+ });
29
+ }
@@ -0,0 +1,29 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { Character, KeyNameId, LinkSelfHref } from "../../shared/index.js";
3
+ export interface CharacterQuests extends LinkSelfHref {
4
+ character: Character;
5
+ in_progress: KeyNameId[];
6
+ completed: {
7
+ href: string;
8
+ };
9
+ }
10
+ export interface CharacterCompletedQuests extends LinkSelfHref {
11
+ character: Character;
12
+ quests: KeyNameId[];
13
+ }
14
+ /**
15
+ * Returns a character's active quests as well as a link to the character's completed quests.
16
+ *
17
+ * @param realmSlug - The slug of the realm.
18
+ * @param characterName - The lowercase name of the character.
19
+ * @returns A promise that resolves to an object representing a character's active quests as well as a link to the character's completed quests.
20
+ */
21
+ export declare function characterQuests(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterQuests>;
22
+ /**
23
+ * Returns a list of quests that a character has completed.
24
+ *
25
+ * @param realmSlug - The slug of the realm.
26
+ * @param characterName - The lowercase name of the character.
27
+ * @returns A promise that resolves to an object representing a list of quests that a character has completed.
28
+ */
29
+ export declare function characterCompletedQuests(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterCompletedQuests>;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Returns a character's active quests as well as a link to the character's completed quests.
3
+ *
4
+ * @param realmSlug - The slug of the realm.
5
+ * @param characterName - The lowercase name of the character.
6
+ * @returns A promise that resolves to an object representing a character's active quests as well as a link to the character's completed quests.
7
+ */
8
+ export async function characterQuests(ctx, realmSlug, characterName) {
9
+ return await ctx.request({
10
+ method: "GET",
11
+ url: `/profile/wow/character/${realmSlug}/${characterName}/quests`,
12
+ namespace: "profile",
13
+ });
14
+ }
15
+ /**
16
+ * Returns a list of quests that a character has completed.
17
+ *
18
+ * @param realmSlug - The slug of the realm.
19
+ * @param characterName - The lowercase name of the character.
20
+ * @returns A promise that resolves to an object representing a list of quests that a character has completed.
21
+ */
22
+ export async function characterCompletedQuests(ctx, realmSlug, characterName) {
23
+ return await ctx.request({
24
+ method: "GET",
25
+ url: `/profile/wow/character/${realmSlug}/${characterName}/quests/completed`,
26
+ namespace: "profile",
27
+ });
28
+ }
@@ -0,0 +1,30 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { Character, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
3
+ export interface CharacterReputations extends LinkSelfHref {
4
+ character: Character;
5
+ reputations: {
6
+ faction: KeyNameId;
7
+ standing: {
8
+ raw: number;
9
+ value: number;
10
+ max: number;
11
+ tier?: number;
12
+ renown_level?: number;
13
+ name: LocalizedString;
14
+ };
15
+ /** Paragon progress, for factions at maximum standing that have a paragon track. */
16
+ paragon?: {
17
+ raw: number;
18
+ value: number;
19
+ max: number;
20
+ };
21
+ }[];
22
+ }
23
+ /**
24
+ * Returns a summary of a character's reputations.
25
+ *
26
+ * @param realmSlug - The slug of the realm.
27
+ * @param characterName - The lowercase name of the character.
28
+ * @returns A promise that resolves to an object representing a character's reputations.
29
+ */
30
+ export declare function characterReputations(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterReputations>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Returns a summary of a character's reputations.
3
+ *
4
+ * @param realmSlug - The slug of the realm.
5
+ * @param characterName - The lowercase name of the character.
6
+ * @returns A promise that resolves to an object representing a character's reputations.
7
+ */
8
+ export async function characterReputations(ctx, realmSlug, characterName) {
9
+ return await ctx.request({
10
+ method: "GET",
11
+ url: `/profile/wow/character/${realmSlug}/${characterName}/reputations`,
12
+ namespace: "profile",
13
+ });
14
+ }
@@ -0,0 +1,31 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { Character, KeyNameId, LinkSelfHref, TypeName } from "../../shared/index.js";
3
+ export interface CharacterSoulbinds extends LinkSelfHref {
4
+ character: Character;
5
+ chosen_covenant: KeyNameId;
6
+ renown_level: number;
7
+ soulbinds: {
8
+ soulbind: KeyNameId;
9
+ traits?: {
10
+ trait?: KeyNameId;
11
+ conduit_socket?: {
12
+ type: TypeName;
13
+ socket: {
14
+ conduit: KeyNameId;
15
+ rank: number;
16
+ };
17
+ };
18
+ tier: number;
19
+ display_order: number;
20
+ }[];
21
+ is_active?: boolean;
22
+ }[];
23
+ }
24
+ /**
25
+ * Returns a character's soulbinds.
26
+ *
27
+ * @param realmSlug - The slug of the realm.
28
+ * @param characterName - The lowercase name of the character.
29
+ * @returns A promise that resolves to an object representing a character's soulbinds.
30
+ */
31
+ export declare function characterSoulbinds(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterSoulbinds>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Returns a character's soulbinds.
3
+ *
4
+ * @param realmSlug - The slug of the realm.
5
+ * @param characterName - The lowercase name of the character.
6
+ * @returns A promise that resolves to an object representing a character's soulbinds.
7
+ */
8
+ export async function characterSoulbinds(ctx, realmSlug, characterName) {
9
+ return await ctx.request({
10
+ method: "GET",
11
+ url: `/profile/wow/character/${realmSlug}/${characterName}/soulbinds`,
12
+ namespace: "profile",
13
+ });
14
+ }
@@ -0,0 +1,82 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { Character, KeyId, KeyName, KeyNameId, LinkSelfHref, LocalizedString, NamedRef, NameId } from "../../shared/index.js";
3
+ export interface Detail {
4
+ talent: KeyId & {
5
+ name?: string;
6
+ };
7
+ spell_tooltip: {
8
+ spell: KeyId & {
9
+ name?: string;
10
+ };
11
+ description?: LocalizedString | null;
12
+ cast_time?: LocalizedString;
13
+ power_cost?: LocalizedString;
14
+ cooldown?: LocalizedString;
15
+ range?: LocalizedString;
16
+ };
17
+ }
18
+ export interface CharacterSpecializationTalent {
19
+ id: number;
20
+ rank: number;
21
+ tooltip?: Detail;
22
+ default_points?: number;
23
+ }
24
+ export interface ClassicSpecializationTalent {
25
+ talent: {
26
+ name: string;
27
+ id: number;
28
+ };
29
+ spell_tooltip: {
30
+ spell: {
31
+ name: string;
32
+ id: number;
33
+ };
34
+ description: string;
35
+ cast_time: string;
36
+ cooldown?: string;
37
+ power_cost?: string | null;
38
+ range?: string;
39
+ };
40
+ }
41
+ export interface CharacterSpecializations extends LinkSelfHref {
42
+ specializations: {
43
+ specialization: KeyNameId;
44
+ specialization_name?: string;
45
+ glyphs?: KeyNameId[];
46
+ talents?: ClassicSpecializationTalent[];
47
+ pvp_talent_slots?: {
48
+ selected: Detail;
49
+ slot_number: number;
50
+ }[];
51
+ loadouts?: {
52
+ is_active: boolean;
53
+ talent_loadout_code: string;
54
+ selected_class_talents: CharacterSpecializationTalent[];
55
+ selected_spec_talents: CharacterSpecializationTalent[];
56
+ selected_hero_talents?: CharacterSpecializationTalent[];
57
+ selected_class_talent_tree?: KeyName;
58
+ selected_spec_talent_tree?: KeyName;
59
+ selected_hero_talent_tree?: KeyNameId;
60
+ }[];
61
+ }[];
62
+ specialization_groups?: {
63
+ is_active: boolean;
64
+ glyphs?: NameId[];
65
+ specializations?: {
66
+ specialization?: KeyNameId;
67
+ specialization_name: string;
68
+ talents: ClassicSpecializationTalent[];
69
+ }[];
70
+ }[];
71
+ active_specialization: KeyNameId;
72
+ active_hero_talent_tree?: NamedRef;
73
+ character: Character;
74
+ }
75
+ /**
76
+ * Returns a summary of a character's specializations.
77
+ *
78
+ * @param realmSlug - The slug of the realm.
79
+ * @param characterName - The lowercase name of the character.
80
+ * @returns A promise that resolves to an object representing a summary of a character's specializations.
81
+ */
82
+ export declare function characterSpecializations(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterSpecializations>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Returns a summary of a character's specializations.
3
+ *
4
+ * @param realmSlug - The slug of the realm.
5
+ * @param characterName - The lowercase name of the character.
6
+ * @returns A promise that resolves to an object representing a summary of a character's specializations.
7
+ */
8
+ export async function characterSpecializations(ctx, realmSlug, characterName) {
9
+ return await ctx.request({
10
+ method: "GET",
11
+ url: `/profile/wow/character/${realmSlug}/${characterName}/specializations`,
12
+ namespace: "profile",
13
+ });
14
+ }
@@ -0,0 +1,104 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { Character, KeyNameId, LinkSelfHref } from "../../shared/index.js";
3
+ export interface StatRating {
4
+ rating_bonus: number;
5
+ value: number;
6
+ rating_normalized: number;
7
+ }
8
+ export interface StatRatingBonus {
9
+ rating_bonus: number;
10
+ rating_normalized: number;
11
+ }
12
+ export interface CharacterStatistics extends LinkSelfHref {
13
+ health: number;
14
+ power: number;
15
+ power_type: KeyNameId;
16
+ speed: StatRatingBonus;
17
+ strength: {
18
+ base: number;
19
+ effective: number;
20
+ };
21
+ agility: {
22
+ base: number;
23
+ effective: number;
24
+ };
25
+ intellect: {
26
+ base: number;
27
+ effective: number;
28
+ };
29
+ stamina: {
30
+ base: number;
31
+ effective: number;
32
+ };
33
+ melee_crit: StatRating;
34
+ melee_haste: StatRating;
35
+ mastery: StatRating;
36
+ bonus_armor: number;
37
+ lifesteal: StatRating;
38
+ versatility: number;
39
+ versatility_damage_done_bonus: number;
40
+ versatility_healing_done_bonus: number;
41
+ versatility_damage_taken_bonus: number;
42
+ avoidance: StatRatingBonus;
43
+ attack_power: number;
44
+ main_hand_damage_min: number;
45
+ main_hand_damage_max: number;
46
+ main_hand_speed: number;
47
+ main_hand_dps: number;
48
+ off_hand_damage_min: number;
49
+ off_hand_damage_max: number;
50
+ off_hand_speed: number;
51
+ off_hand_dps: number;
52
+ spell_power: number;
53
+ spell_penetration: number;
54
+ spell_crit: StatRating;
55
+ mana_regen: number;
56
+ mana_regen_combat: number;
57
+ armor: {
58
+ base: number;
59
+ effective: number;
60
+ };
61
+ dodge: StatRating;
62
+ parry: StatRating;
63
+ block: StatRating;
64
+ ranged_crit: StatRating;
65
+ ranged_haste: StatRating;
66
+ spell_haste: StatRating;
67
+ spirit?: {
68
+ base: number;
69
+ effective: number;
70
+ };
71
+ defense?: {
72
+ base: number;
73
+ effective: number;
74
+ };
75
+ arcane_resistance?: {
76
+ base: number;
77
+ effective: number;
78
+ };
79
+ fire_resistance?: {
80
+ base: number;
81
+ effective: number;
82
+ };
83
+ holy_resistance?: {
84
+ base: number;
85
+ effective: number;
86
+ };
87
+ nature_resistance?: {
88
+ base: number;
89
+ effective: number;
90
+ };
91
+ shadow_resistance?: {
92
+ base: number;
93
+ effective: number;
94
+ };
95
+ character: Character;
96
+ }
97
+ /**
98
+ * Returns a statistics summary for a character.
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 statistics summary for a character.
103
+ */
104
+ export declare function characterStatistics(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterStatistics>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Returns a statistics summary for a character.
3
+ *
4
+ * @param realmSlug - The slug of the realm.
5
+ * @param characterName - The lowercase name of the character.
6
+ * @returns A promise that resolves to an object representing a statistics summary for a character.
7
+ */
8
+ export async function characterStatistics(ctx, realmSlug, characterName) {
9
+ return await ctx.request({
10
+ method: "GET",
11
+ url: `/profile/wow/character/${realmSlug}/${characterName}/statistics`,
12
+ namespace: "profile",
13
+ });
14
+ }
@@ -0,0 +1,14 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { Character, KeyNameId, LinkSelfHref } from "../../shared/index.js";
3
+ export interface CharacterTitles extends LinkSelfHref {
4
+ character: Character;
5
+ titles: KeyNameId[];
6
+ }
7
+ /**
8
+ * Returns a summary of titles a character has obtained.
9
+ *
10
+ * @param realmSlug - The slug of the realm.
11
+ * @param characterName - The lowercase name of the character.
12
+ * @returns A promise that resolves to an object representing a summary of titles a character has obtained.
13
+ */
14
+ export declare function characterTitles(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterTitles>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Returns a summary of titles a character has obtained.
3
+ *
4
+ * @param realmSlug - The slug of the realm.
5
+ * @param characterName - The lowercase name of the character.
6
+ * @returns A promise that resolves to an object representing a summary of titles a character has obtained.
7
+ */
8
+ export async function characterTitles(ctx, realmSlug, characterName) {
9
+ return await ctx.request({
10
+ method: "GET",
11
+ url: `/profile/wow/character/${realmSlug}/${characterName}/titles`,
12
+ namespace: "profile",
13
+ });
14
+ }