@pinta365/blizzard_api 0.3.9 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (423) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +145 -37
  3. package/esm/mod.d.ts +43 -6
  4. package/esm/mod.js +69 -6
  5. package/esm/src/client.d.ts +95 -0
  6. package/esm/src/client.js +52 -0
  7. package/esm/src/diablo3/community/act.d.ts +29 -0
  8. package/esm/src/diablo3/community/act.js +23 -0
  9. package/esm/src/diablo3/community/artisan.d.ts +50 -0
  10. package/esm/src/diablo3/community/artisan.js +25 -0
  11. package/esm/src/diablo3/community/follower.d.ts +25 -0
  12. package/esm/src/diablo3/community/follower.js +12 -0
  13. package/esm/src/diablo3/community/hero.d.ts +57 -0
  14. package/esm/src/diablo3/community/hero.js +25 -0
  15. package/esm/src/diablo3/community/item.d.ts +48 -0
  16. package/esm/src/diablo3/community/item.js +12 -0
  17. package/esm/src/diablo3/community/item_type.d.ts +26 -0
  18. package/esm/src/diablo3/community/item_type.js +23 -0
  19. package/esm/src/diablo3/community/profile.d.ts +352 -0
  20. package/esm/src/diablo3/community/profile.js +61 -0
  21. package/esm/src/diablo3/game_data/d3.d.ts +127 -0
  22. package/esm/src/diablo3/game_data/d3.js +72 -0
  23. package/esm/src/diablo3/index.d.ts +8 -0
  24. package/esm/src/diablo3/index.js +8 -0
  25. package/esm/src/diablo3/types.d.ts +8 -0
  26. package/esm/src/diablo3/types.js +1 -0
  27. package/esm/src/generated/diablo3_api.d.ts +156 -0
  28. package/esm/src/generated/diablo3_api.js +2 -0
  29. package/esm/src/generated/hearthstone_api.d.ts +51 -0
  30. package/esm/src/generated/hearthstone_api.js +2 -0
  31. package/esm/src/generated/sc2_api.d.ts +139 -0
  32. package/esm/src/generated/sc2_api.js +2 -0
  33. package/esm/src/generated/wow_api.d.ts +1482 -0
  34. package/esm/src/generated/wow_api.js +2 -0
  35. package/esm/src/generated/wow_classic_api.d.ts +555 -0
  36. package/esm/src/generated/wow_classic_api.js +2 -0
  37. package/esm/src/generated/wow_classic_era_api.d.ts +418 -0
  38. package/esm/src/generated/wow_classic_era_api.js +2 -0
  39. package/esm/src/hearthstone/game_data/card_backs.d.ts +31 -0
  40. package/esm/src/hearthstone/game_data/card_backs.js +22 -0
  41. package/esm/src/hearthstone/game_data/cards.d.ts +55 -0
  42. package/esm/src/hearthstone/game_data/cards.js +26 -0
  43. package/esm/src/hearthstone/game_data/decks.d.ts +29 -0
  44. package/esm/src/hearthstone/game_data/decks.js +13 -0
  45. package/esm/src/hearthstone/game_data/metadata.d.ts +82 -0
  46. package/esm/src/hearthstone/game_data/metadata.js +11 -0
  47. package/esm/src/hearthstone/index.d.ts +4 -0
  48. package/esm/src/hearthstone/index.js +4 -0
  49. package/esm/src/hearthstone/search.d.ts +21 -0
  50. package/esm/src/hearthstone/search.js +28 -0
  51. package/esm/src/hearthstone/types.d.ts +5 -0
  52. package/esm/src/hearthstone/types.js +1 -0
  53. package/esm/src/shared/bind.d.ts +14 -0
  54. package/esm/src/shared/bind.js +15 -0
  55. package/esm/src/shared/context.d.ts +163 -0
  56. package/esm/src/shared/context.js +304 -0
  57. package/esm/src/shared/errors.d.ts +53 -0
  58. package/esm/src/shared/errors.js +95 -0
  59. package/esm/src/shared/index.d.ts +4 -0
  60. package/esm/src/shared/index.js +2 -0
  61. package/esm/src/shared/types.d.ts +133 -0
  62. package/esm/src/shared/types.js +2 -0
  63. package/esm/src/starcraft2/community/account.d.ts +19 -0
  64. package/esm/src/starcraft2/community/account.js +15 -0
  65. package/esm/src/starcraft2/community/ladder.d.ts +29 -0
  66. package/esm/src/starcraft2/community/ladder.js +27 -0
  67. package/esm/src/starcraft2/community/legacy.d.ts +206 -0
  68. package/esm/src/starcraft2/community/legacy.js +83 -0
  69. package/esm/src/starcraft2/community/profile.d.ts +255 -0
  70. package/esm/src/starcraft2/community/profile.js +73 -0
  71. package/esm/src/starcraft2/game_data/league.d.ts +35 -0
  72. package/esm/src/starcraft2/game_data/league.js +20 -0
  73. package/esm/src/starcraft2/index.d.ts +5 -0
  74. package/esm/src/starcraft2/index.js +5 -0
  75. package/esm/src/starcraft2/types.d.ts +5 -0
  76. package/esm/src/starcraft2/types.js +1 -0
  77. package/esm/src/wow/game_data/achievement.d.ts +87 -0
  78. package/esm/src/wow/game_data/achievement.js +68 -0
  79. package/esm/src/wow/game_data/auction_house.d.ts +65 -0
  80. package/esm/src/wow/game_data/auction_house.js +33 -0
  81. package/esm/src/wow/game_data/azerite_essence.d.ts +50 -0
  82. package/esm/src/wow/game_data/azerite_essence.js +48 -0
  83. package/esm/src/wow/game_data/connected_realm.d.ts +62 -0
  84. package/esm/src/wow/game_data/connected_realm.js +35 -0
  85. package/esm/src/wow/game_data/covenant.d.ts +115 -0
  86. package/esm/src/wow/game_data/covenant.js +88 -0
  87. package/esm/src/wow/game_data/creature.d.ts +98 -0
  88. package/esm/src/wow/game_data/creature.js +99 -0
  89. package/esm/src/wow/game_data/guild_crest.d.ts +56 -0
  90. package/esm/src/wow/game_data/guild_crest.js +38 -0
  91. package/esm/src/wow/game_data/heirloom.d.ts +82 -0
  92. package/esm/src/wow/game_data/heirloom.js +25 -0
  93. package/esm/src/wow/game_data/housing.d.ts +111 -0
  94. package/esm/src/wow/game_data/housing.js +124 -0
  95. package/esm/src/wow/game_data/item.d.ts +183 -0
  96. package/esm/src/wow/game_data/item.js +100 -0
  97. package/esm/src/wow/game_data/item_appearance.d.ts +102 -0
  98. package/esm/src/wow/game_data/item_appearance.js +73 -0
  99. package/esm/src/wow/game_data/journal.d.ts +124 -0
  100. package/esm/src/wow/game_data/journal.js +98 -0
  101. package/esm/src/wow/game_data/keystone_affix.d.ts +39 -0
  102. package/esm/src/wow/game_data/keystone_affix.js +38 -0
  103. package/esm/src/wow/game_data/media_search.d.ts +9 -0
  104. package/esm/src/wow/game_data/media_search.js +10 -0
  105. package/esm/src/wow/game_data/modified_crafting.d.ts +65 -0
  106. package/esm/src/wow/game_data/modified_crafting.js +62 -0
  107. package/esm/src/wow/game_data/mount.d.ts +38 -0
  108. package/esm/src/wow/game_data/mount.js +35 -0
  109. package/esm/src/wow/game_data/mythic_keystone_dungeon.d.ts +92 -0
  110. package/esm/src/wow/game_data/mythic_keystone_dungeon.js +87 -0
  111. package/esm/src/wow/game_data/mythic_keystone_leaderboard.d.ts +70 -0
  112. package/esm/src/wow/game_data/mythic_keystone_leaderboard.js +28 -0
  113. package/esm/src/wow/game_data/mythic_raid_leaderboard.d.ts +36 -0
  114. package/esm/src/wow/game_data/mythic_raid_leaderboard.js +14 -0
  115. package/esm/src/wow/game_data/neighborhood.d.ts +36 -0
  116. package/esm/src/wow/game_data/neighborhood.js +38 -0
  117. package/esm/src/wow/game_data/pet.d.ts +93 -0
  118. package/esm/src/wow/game_data/pet.js +76 -0
  119. package/esm/src/wow/game_data/playable_class.d.ts +58 -0
  120. package/esm/src/wow/game_data/playable_class.js +51 -0
  121. package/esm/src/wow/game_data/playable_race.d.ts +31 -0
  122. package/esm/src/wow/game_data/playable_race.js +25 -0
  123. package/esm/src/wow/game_data/playable_specialization.d.ts +63 -0
  124. package/esm/src/wow/game_data/playable_specialization.js +38 -0
  125. package/esm/src/wow/game_data/power_type.d.ts +22 -0
  126. package/esm/src/wow/game_data/power_type.js +25 -0
  127. package/esm/src/wow/game_data/profession.d.ts +88 -0
  128. package/esm/src/wow/game_data/profession.js +78 -0
  129. package/esm/src/wow/game_data/pvp_season.d.ts +108 -0
  130. package/esm/src/wow/game_data/pvp_season.js +66 -0
  131. package/esm/src/wow/game_data/pvp_tier.d.ts +41 -0
  132. package/esm/src/wow/game_data/pvp_tier.js +38 -0
  133. package/esm/src/wow/game_data/quest.d.ts +116 -0
  134. package/esm/src/wow/game_data/quest.js +100 -0
  135. package/esm/src/wow/game_data/realm.d.ts +43 -0
  136. package/esm/src/wow/game_data/realm.js +35 -0
  137. package/esm/src/wow/game_data/region.d.ts +26 -0
  138. package/esm/src/wow/game_data/region.js +25 -0
  139. package/esm/src/wow/game_data/reputations.d.ts +57 -0
  140. package/esm/src/wow/game_data/reputations.js +50 -0
  141. package/esm/src/wow/game_data/spell.d.ts +34 -0
  142. package/esm/src/wow/game_data/spell.js +36 -0
  143. package/esm/src/wow/game_data/talent.d.ts +143 -0
  144. package/esm/src/wow/game_data/talent.js +89 -0
  145. package/esm/src/wow/game_data/tech_talent.d.ts +72 -0
  146. package/esm/src/wow/game_data/tech_talent.js +63 -0
  147. package/esm/src/wow/game_data/title.d.ts +33 -0
  148. package/esm/src/wow/game_data/title.js +25 -0
  149. package/esm/src/wow/game_data/token.d.ts +17 -0
  150. package/esm/src/wow/game_data/token.js +18 -0
  151. package/esm/src/wow/game_data/toy.d.ts +25 -0
  152. package/esm/src/wow/game_data/toy.js +25 -0
  153. package/esm/src/wow/index.d.ts +59 -0
  154. package/esm/src/wow/index.js +61 -0
  155. package/esm/src/wow/profile/account_profile.d.ts +185 -0
  156. package/esm/src/wow/profile/account_profile.js +132 -0
  157. package/esm/src/wow/profile/character_achievements.d.ts +88 -0
  158. package/esm/src/wow/profile/character_achievements.js +28 -0
  159. package/esm/src/wow/profile/character_appearance.d.ts +79 -0
  160. package/esm/src/wow/profile/character_appearance.js +14 -0
  161. package/esm/src/wow/profile/character_collections.d.ts +132 -0
  162. package/esm/src/wow/profile/character_collections.js +98 -0
  163. package/esm/src/wow/profile/character_encounters.d.ts +78 -0
  164. package/esm/src/wow/profile/character_encounters.js +42 -0
  165. package/esm/src/wow/profile/character_equipment.d.ts +177 -0
  166. package/esm/src/wow/profile/character_equipment.js +14 -0
  167. package/esm/src/wow/profile/character_house.d.ts +16 -0
  168. package/esm/src/wow/profile/character_house.js +17 -0
  169. package/esm/src/wow/profile/character_hunter_pets.d.ts +22 -0
  170. package/esm/src/wow/profile/character_hunter_pets.js +14 -0
  171. package/esm/src/wow/profile/character_media.d.ts +14 -0
  172. package/esm/src/wow/profile/character_media.js +14 -0
  173. package/esm/src/wow/profile/character_mythic_keystone_profile.d.ts +70 -0
  174. package/esm/src/wow/profile/character_mythic_keystone_profile.js +31 -0
  175. package/esm/src/wow/profile/character_professions.d.ts +29 -0
  176. package/esm/src/wow/profile/character_professions.js +14 -0
  177. package/esm/src/wow/profile/character_profile.d.ts +83 -0
  178. package/esm/src/wow/profile/character_profile.js +39 -0
  179. package/esm/src/wow/profile/character_pvp.d.ts +53 -0
  180. package/esm/src/wow/profile/character_pvp.js +29 -0
  181. package/esm/src/wow/profile/character_quests.d.ts +29 -0
  182. package/esm/src/wow/profile/character_quests.js +28 -0
  183. package/esm/src/wow/profile/character_reputations.d.ts +30 -0
  184. package/esm/src/wow/profile/character_reputations.js +14 -0
  185. package/esm/src/wow/profile/character_soulbinds.d.ts +31 -0
  186. package/esm/src/wow/profile/character_soulbinds.js +14 -0
  187. package/esm/src/wow/profile/character_specializations.d.ts +82 -0
  188. package/esm/src/wow/profile/character_specializations.js +14 -0
  189. package/esm/src/wow/profile/character_statistics.d.ts +104 -0
  190. package/esm/src/wow/profile/character_statistics.js +14 -0
  191. package/esm/src/wow/profile/character_titles.d.ts +14 -0
  192. package/esm/src/wow/profile/character_titles.js +14 -0
  193. package/esm/src/wow/profile/guild.d.ts +150 -0
  194. package/esm/src/wow/profile/guild.js +56 -0
  195. package/esm/src/wow/search.d.ts +23 -0
  196. package/esm/src/wow/search.js +29 -0
  197. package/esm/src/wow/types.d.ts +58 -0
  198. package/esm/src/wow/types.js +1 -0
  199. package/esm/src/wow_classic/auction_house.d.ts +41 -0
  200. package/esm/src/wow_classic/auction_house.js +31 -0
  201. package/esm/src/wow_classic/character_specializations.d.ts +45 -0
  202. package/esm/src/wow_classic/character_specializations.js +18 -0
  203. package/esm/src/wow_classic/era.d.ts +8 -0
  204. package/esm/src/wow_classic/era.js +10 -0
  205. package/esm/src/wow_classic/index.d.ts +15 -0
  206. package/esm/src/wow_classic/index.js +17 -0
  207. package/esm/src/wow_classic/profile_overrides.d.ts +125 -0
  208. package/esm/src/wow_classic/profile_overrides.js +111 -0
  209. package/esm/src/wow_classic/shared.d.ts +23 -0
  210. package/esm/src/wow_classic/shared.js +26 -0
  211. package/esm/src/wow_classic/types.d.ts +3 -0
  212. package/esm/src/wow_classic/types.js +1 -0
  213. package/package.json +23 -2
  214. package/script/mod.d.ts +43 -6
  215. package/script/mod.js +91 -21
  216. package/script/src/client.d.ts +95 -0
  217. package/script/src/client.js +89 -0
  218. package/script/src/diablo3/community/act.d.ts +29 -0
  219. package/script/src/diablo3/community/act.js +27 -0
  220. package/script/src/diablo3/community/artisan.d.ts +50 -0
  221. package/script/src/diablo3/community/artisan.js +29 -0
  222. package/script/src/diablo3/community/follower.d.ts +25 -0
  223. package/script/src/diablo3/community/follower.js +15 -0
  224. package/script/src/diablo3/community/hero.d.ts +57 -0
  225. package/script/src/diablo3/community/hero.js +29 -0
  226. package/script/src/diablo3/community/item.d.ts +48 -0
  227. package/script/src/diablo3/community/item.js +15 -0
  228. package/script/src/diablo3/community/item_type.d.ts +26 -0
  229. package/script/src/diablo3/community/item_type.js +27 -0
  230. package/script/src/diablo3/community/profile.d.ts +352 -0
  231. package/script/src/diablo3/community/profile.js +67 -0
  232. package/script/src/diablo3/game_data/d3.d.ts +127 -0
  233. package/script/src/diablo3/game_data/d3.js +80 -0
  234. package/script/src/diablo3/index.d.ts +8 -0
  235. package/script/src/diablo3/index.js +31 -0
  236. package/script/src/diablo3/types.d.ts +8 -0
  237. package/script/src/diablo3/types.js +2 -0
  238. package/script/src/generated/diablo3_api.d.ts +156 -0
  239. package/script/src/generated/diablo3_api.js +3 -0
  240. package/script/src/generated/hearthstone_api.d.ts +51 -0
  241. package/script/src/generated/hearthstone_api.js +3 -0
  242. package/script/src/generated/sc2_api.d.ts +139 -0
  243. package/script/src/generated/sc2_api.js +3 -0
  244. package/script/src/generated/wow_api.d.ts +1482 -0
  245. package/script/src/generated/wow_api.js +3 -0
  246. package/script/src/generated/wow_classic_api.d.ts +555 -0
  247. package/script/src/generated/wow_classic_api.js +3 -0
  248. package/script/src/generated/wow_classic_era_api.d.ts +418 -0
  249. package/script/src/generated/wow_classic_era_api.js +3 -0
  250. package/script/src/hearthstone/game_data/card_backs.d.ts +31 -0
  251. package/script/src/hearthstone/game_data/card_backs.js +26 -0
  252. package/script/src/hearthstone/game_data/cards.d.ts +55 -0
  253. package/script/src/hearthstone/game_data/cards.js +30 -0
  254. package/script/src/hearthstone/game_data/decks.d.ts +29 -0
  255. package/script/src/hearthstone/game_data/decks.js +16 -0
  256. package/script/src/hearthstone/game_data/metadata.d.ts +82 -0
  257. package/script/src/hearthstone/game_data/metadata.js +14 -0
  258. package/script/src/hearthstone/index.d.ts +4 -0
  259. package/script/src/hearthstone/index.js +13 -0
  260. package/script/src/hearthstone/search.d.ts +21 -0
  261. package/script/src/hearthstone/search.js +31 -0
  262. package/script/src/hearthstone/types.d.ts +5 -0
  263. package/script/src/hearthstone/types.js +2 -0
  264. package/script/src/shared/bind.d.ts +14 -0
  265. package/script/src/shared/bind.js +18 -0
  266. package/script/src/shared/context.d.ts +163 -0
  267. package/script/src/shared/context.js +312 -0
  268. package/script/src/shared/errors.d.ts +53 -0
  269. package/script/src/shared/errors.js +104 -0
  270. package/script/src/shared/index.d.ts +4 -0
  271. package/script/src/shared/index.js +10 -0
  272. package/script/src/shared/types.d.ts +133 -0
  273. package/script/src/shared/types.js +3 -0
  274. package/script/src/starcraft2/community/account.d.ts +19 -0
  275. package/script/src/starcraft2/community/account.js +18 -0
  276. package/script/src/starcraft2/community/ladder.d.ts +29 -0
  277. package/script/src/starcraft2/community/ladder.js +31 -0
  278. package/script/src/starcraft2/community/legacy.d.ts +206 -0
  279. package/script/src/starcraft2/community/legacy.js +91 -0
  280. package/script/src/starcraft2/community/profile.d.ts +255 -0
  281. package/script/src/starcraft2/community/profile.js +80 -0
  282. package/script/src/starcraft2/game_data/league.d.ts +35 -0
  283. package/script/src/starcraft2/game_data/league.js +23 -0
  284. package/script/src/starcraft2/index.d.ts +5 -0
  285. package/script/src/starcraft2/index.js +23 -0
  286. package/script/src/starcraft2/types.d.ts +5 -0
  287. package/script/src/starcraft2/types.js +2 -0
  288. package/script/src/wow/game_data/achievement.d.ts +87 -0
  289. package/script/src/wow/game_data/achievement.js +75 -0
  290. package/script/src/wow/game_data/auction_house.d.ts +65 -0
  291. package/script/src/wow/game_data/auction_house.js +37 -0
  292. package/script/src/wow/game_data/azerite_essence.d.ts +50 -0
  293. package/script/src/wow/game_data/azerite_essence.js +54 -0
  294. package/script/src/wow/game_data/connected_realm.d.ts +62 -0
  295. package/script/src/wow/game_data/connected_realm.js +40 -0
  296. package/script/src/wow/game_data/covenant.d.ts +115 -0
  297. package/script/src/wow/game_data/covenant.js +97 -0
  298. package/script/src/wow/game_data/creature.d.ts +98 -0
  299. package/script/src/wow/game_data/creature.js +109 -0
  300. package/script/src/wow/game_data/guild_crest.d.ts +56 -0
  301. package/script/src/wow/game_data/guild_crest.js +43 -0
  302. package/script/src/wow/game_data/heirloom.d.ts +82 -0
  303. package/script/src/wow/game_data/heirloom.js +29 -0
  304. package/script/src/wow/game_data/housing.d.ts +111 -0
  305. package/script/src/wow/game_data/housing.js +138 -0
  306. package/script/src/wow/game_data/item.d.ts +183 -0
  307. package/script/src/wow/game_data/item.js +110 -0
  308. package/script/src/wow/game_data/item_appearance.d.ts +102 -0
  309. package/script/src/wow/game_data/item_appearance.js +81 -0
  310. package/script/src/wow/game_data/journal.d.ts +124 -0
  311. package/script/src/wow/game_data/journal.js +108 -0
  312. package/script/src/wow/game_data/keystone_affix.d.ts +39 -0
  313. package/script/src/wow/game_data/keystone_affix.js +43 -0
  314. package/script/src/wow/game_data/media_search.d.ts +9 -0
  315. package/script/src/wow/game_data/media_search.js +13 -0
  316. package/script/src/wow/game_data/modified_crafting.d.ts +65 -0
  317. package/script/src/wow/game_data/modified_crafting.js +69 -0
  318. package/script/src/wow/game_data/mount.d.ts +38 -0
  319. package/script/src/wow/game_data/mount.js +40 -0
  320. package/script/src/wow/game_data/mythic_keystone_dungeon.d.ts +92 -0
  321. package/script/src/wow/game_data/mythic_keystone_dungeon.js +96 -0
  322. package/script/src/wow/game_data/mythic_keystone_leaderboard.d.ts +70 -0
  323. package/script/src/wow/game_data/mythic_keystone_leaderboard.js +32 -0
  324. package/script/src/wow/game_data/mythic_raid_leaderboard.d.ts +36 -0
  325. package/script/src/wow/game_data/mythic_raid_leaderboard.js +17 -0
  326. package/script/src/wow/game_data/neighborhood.d.ts +36 -0
  327. package/script/src/wow/game_data/neighborhood.js +43 -0
  328. package/script/src/wow/game_data/pet.d.ts +93 -0
  329. package/script/src/wow/game_data/pet.js +84 -0
  330. package/script/src/wow/game_data/playable_class.d.ts +58 -0
  331. package/script/src/wow/game_data/playable_class.js +57 -0
  332. package/script/src/wow/game_data/playable_race.d.ts +31 -0
  333. package/script/src/wow/game_data/playable_race.js +29 -0
  334. package/script/src/wow/game_data/playable_specialization.d.ts +63 -0
  335. package/script/src/wow/game_data/playable_specialization.js +43 -0
  336. package/script/src/wow/game_data/power_type.d.ts +22 -0
  337. package/script/src/wow/game_data/power_type.js +29 -0
  338. package/script/src/wow/game_data/profession.d.ts +88 -0
  339. package/script/src/wow/game_data/profession.js +86 -0
  340. package/script/src/wow/game_data/pvp_season.d.ts +108 -0
  341. package/script/src/wow/game_data/pvp_season.js +73 -0
  342. package/script/src/wow/game_data/pvp_tier.d.ts +41 -0
  343. package/script/src/wow/game_data/pvp_tier.js +43 -0
  344. package/script/src/wow/game_data/quest.d.ts +116 -0
  345. package/script/src/wow/game_data/quest.js +110 -0
  346. package/script/src/wow/game_data/realm.d.ts +43 -0
  347. package/script/src/wow/game_data/realm.js +40 -0
  348. package/script/src/wow/game_data/region.d.ts +26 -0
  349. package/script/src/wow/game_data/region.js +29 -0
  350. package/script/src/wow/game_data/reputations.d.ts +57 -0
  351. package/script/src/wow/game_data/reputations.js +56 -0
  352. package/script/src/wow/game_data/spell.d.ts +34 -0
  353. package/script/src/wow/game_data/spell.js +41 -0
  354. package/script/src/wow/game_data/talent.d.ts +143 -0
  355. package/script/src/wow/game_data/talent.js +98 -0
  356. package/script/src/wow/game_data/tech_talent.d.ts +72 -0
  357. package/script/src/wow/game_data/tech_talent.js +70 -0
  358. package/script/src/wow/game_data/title.d.ts +33 -0
  359. package/script/src/wow/game_data/title.js +29 -0
  360. package/script/src/wow/game_data/token.d.ts +17 -0
  361. package/script/src/wow/game_data/token.js +21 -0
  362. package/script/src/wow/game_data/toy.d.ts +25 -0
  363. package/script/src/wow/game_data/toy.js +29 -0
  364. package/script/src/wow/index.d.ts +59 -0
  365. package/script/src/wow/index.js +272 -0
  366. package/script/src/wow/profile/account_profile.d.ts +185 -0
  367. package/script/src/wow/profile/account_profile.js +143 -0
  368. package/script/src/wow/profile/character_achievements.d.ts +88 -0
  369. package/script/src/wow/profile/character_achievements.js +32 -0
  370. package/script/src/wow/profile/character_appearance.d.ts +79 -0
  371. package/script/src/wow/profile/character_appearance.js +17 -0
  372. package/script/src/wow/profile/character_collections.d.ts +132 -0
  373. package/script/src/wow/profile/character_collections.js +107 -0
  374. package/script/src/wow/profile/character_encounters.d.ts +78 -0
  375. package/script/src/wow/profile/character_encounters.js +47 -0
  376. package/script/src/wow/profile/character_equipment.d.ts +177 -0
  377. package/script/src/wow/profile/character_equipment.js +17 -0
  378. package/script/src/wow/profile/character_house.d.ts +16 -0
  379. package/script/src/wow/profile/character_house.js +20 -0
  380. package/script/src/wow/profile/character_hunter_pets.d.ts +22 -0
  381. package/script/src/wow/profile/character_hunter_pets.js +17 -0
  382. package/script/src/wow/profile/character_media.d.ts +14 -0
  383. package/script/src/wow/profile/character_media.js +17 -0
  384. package/script/src/wow/profile/character_mythic_keystone_profile.d.ts +70 -0
  385. package/script/src/wow/profile/character_mythic_keystone_profile.js +35 -0
  386. package/script/src/wow/profile/character_professions.d.ts +29 -0
  387. package/script/src/wow/profile/character_professions.js +17 -0
  388. package/script/src/wow/profile/character_profile.d.ts +83 -0
  389. package/script/src/wow/profile/character_profile.js +43 -0
  390. package/script/src/wow/profile/character_pvp.d.ts +53 -0
  391. package/script/src/wow/profile/character_pvp.js +33 -0
  392. package/script/src/wow/profile/character_quests.d.ts +29 -0
  393. package/script/src/wow/profile/character_quests.js +32 -0
  394. package/script/src/wow/profile/character_reputations.d.ts +30 -0
  395. package/script/src/wow/profile/character_reputations.js +17 -0
  396. package/script/src/wow/profile/character_soulbinds.d.ts +31 -0
  397. package/script/src/wow/profile/character_soulbinds.js +17 -0
  398. package/script/src/wow/profile/character_specializations.d.ts +82 -0
  399. package/script/src/wow/profile/character_specializations.js +17 -0
  400. package/script/src/wow/profile/character_statistics.d.ts +104 -0
  401. package/script/src/wow/profile/character_statistics.js +17 -0
  402. package/script/src/wow/profile/character_titles.d.ts +14 -0
  403. package/script/src/wow/profile/character_titles.js +17 -0
  404. package/script/src/wow/profile/guild.d.ts +150 -0
  405. package/script/src/wow/profile/guild.js +62 -0
  406. package/script/src/wow/search.d.ts +23 -0
  407. package/script/src/wow/search.js +32 -0
  408. package/script/src/wow/types.d.ts +58 -0
  409. package/script/src/wow/types.js +2 -0
  410. package/script/src/wow_classic/auction_house.d.ts +41 -0
  411. package/script/src/wow_classic/auction_house.js +35 -0
  412. package/script/src/wow_classic/character_specializations.d.ts +45 -0
  413. package/script/src/wow_classic/character_specializations.js +21 -0
  414. package/script/src/wow_classic/era.d.ts +8 -0
  415. package/script/src/wow_classic/era.js +30 -0
  416. package/script/src/wow_classic/index.d.ts +15 -0
  417. package/script/src/wow_classic/index.js +55 -0
  418. package/script/src/wow_classic/profile_overrides.d.ts +125 -0
  419. package/script/src/wow_classic/profile_overrides.js +123 -0
  420. package/script/src/wow_classic/shared.d.ts +23 -0
  421. package/script/src/wow_classic/shared.js +81 -0
  422. package/script/src/wow_classic/types.d.ts +3 -0
  423. package/script/src/wow_classic/types.js +2 -0
@@ -0,0 +1,185 @@
1
+ /**
2
+ * This module provides the WoW Account Profile API. These endpoints require a user access token with the
3
+ * `wow.profile` scope, acquired via the authorization code flow: use `client.forUser(token).wow.*`.
4
+ */
5
+ import type { ApiContext } from "../../shared/index.js";
6
+ import type { Href, KeyNameId, LinkSelfHref, TypeName } from "../../shared/index.js";
7
+ import type { CollectedHeirloom, CollectedPet, CollectedToy, DecorItem } from "./character_collections.js";
8
+ export interface AccountCharacter {
9
+ character: Href;
10
+ protected_character: Href;
11
+ name: string;
12
+ id: number;
13
+ realm: KeyNameId & {
14
+ slug: string;
15
+ };
16
+ playable_class: KeyNameId;
17
+ playable_race: KeyNameId;
18
+ gender: TypeName;
19
+ faction: TypeName;
20
+ level: number;
21
+ }
22
+ export interface AccountProfileSummary extends LinkSelfHref {
23
+ id: number;
24
+ wow_accounts: {
25
+ id: number;
26
+ characters: AccountCharacter[];
27
+ }[];
28
+ collections: Href;
29
+ }
30
+ export interface ProtectedCharacterProfile extends LinkSelfHref {
31
+ id: number;
32
+ name: string;
33
+ money: number;
34
+ character: {
35
+ key: Href;
36
+ name: string;
37
+ id: number;
38
+ realm: KeyNameId & {
39
+ slug: string;
40
+ };
41
+ };
42
+ protected_stats: {
43
+ total_number_deaths: number;
44
+ total_gold_gained: number;
45
+ total_gold_lost: number;
46
+ total_item_value_gained: number;
47
+ level_number_deaths: number;
48
+ level_gold_gained: number;
49
+ level_gold_lost: number;
50
+ level_item_value_gained: number;
51
+ };
52
+ position: {
53
+ zone: {
54
+ name: string;
55
+ id: number;
56
+ };
57
+ map: {
58
+ name: string;
59
+ id: number;
60
+ };
61
+ x: number;
62
+ y: number;
63
+ z: number;
64
+ facing: number;
65
+ };
66
+ bind_position: {
67
+ zone: {
68
+ name: string;
69
+ id: number;
70
+ };
71
+ map: {
72
+ name: string;
73
+ id: number;
74
+ };
75
+ x: number;
76
+ y: number;
77
+ z: number;
78
+ facing: number;
79
+ };
80
+ wow_account: number;
81
+ }
82
+ export interface AccountCollectionsIndex extends LinkSelfHref {
83
+ pets: Href;
84
+ mounts: Href;
85
+ heirlooms: Href;
86
+ toys: Href;
87
+ transmogs: Href;
88
+ decor?: Href;
89
+ }
90
+ export interface AccountMount {
91
+ mount: KeyNameId;
92
+ is_favorite?: boolean;
93
+ is_useable?: boolean;
94
+ }
95
+ export interface AccountMountsCollection extends LinkSelfHref {
96
+ mounts: AccountMount[];
97
+ }
98
+ export interface AccountPetsCollection extends LinkSelfHref {
99
+ pets: CollectedPet[];
100
+ unlocked_battle_pet_slots: number;
101
+ }
102
+ export interface AccountToysCollection extends LinkSelfHref {
103
+ toys: CollectedToy[];
104
+ }
105
+ export interface AccountHeirloomsCollection extends LinkSelfHref {
106
+ heirlooms: CollectedHeirloom[];
107
+ }
108
+ export interface AccountTransmogsCollection extends LinkSelfHref {
109
+ appearance_sets: KeyNameId[];
110
+ slots: {
111
+ slot: TypeName;
112
+ appearances: {
113
+ key: Href;
114
+ id: number;
115
+ }[];
116
+ }[];
117
+ }
118
+ export interface AccountDecorCollection extends LinkSelfHref {
119
+ decor_collected: DecorItem[];
120
+ }
121
+ /**
122
+ * Returns a profile summary for an account, including its WoW accounts and characters.
123
+ * Requires a user access token (client.forUser(token)).
124
+ *
125
+ * @returns A promise that resolves to an object representing the account profile summary.
126
+ */
127
+ export declare function accountProfileSummary(ctx: ApiContext): Promise<AccountProfileSummary>;
128
+ /**
129
+ * Returns a protected profile summary for a character (money, deaths, position, ...).
130
+ * Requires a user access token (client.forUser(token)).
131
+ *
132
+ * @param realmId - The ID of the character's realm.
133
+ * @param characterId - The ID of the character.
134
+ * @returns A promise that resolves to an object representing the protected character profile.
135
+ */
136
+ export declare function protectedCharacterProfile(ctx: ApiContext, realmId: number, characterId: number): Promise<ProtectedCharacterProfile>;
137
+ /**
138
+ * Returns an index of collection types for an account.
139
+ * Requires a user access token (client.forUser(token)).
140
+ *
141
+ * @returns A promise that resolves to an object with links to the account's collections.
142
+ */
143
+ export declare function accountCollectionsIndex(ctx: ApiContext): Promise<AccountCollectionsIndex>;
144
+ /**
145
+ * Returns the mounts collected by an account.
146
+ * Requires a user access token (client.forUser(token)).
147
+ *
148
+ * @returns A promise that resolves to an object representing the account's mounts.
149
+ */
150
+ export declare function accountMountsCollection(ctx: ApiContext): Promise<AccountMountsCollection>;
151
+ /**
152
+ * Returns the battle pets collected by an account.
153
+ * Requires a user access token (client.forUser(token)).
154
+ *
155
+ * @returns A promise that resolves to an object representing the account's pets.
156
+ */
157
+ export declare function accountPetsCollection(ctx: ApiContext): Promise<AccountPetsCollection>;
158
+ /**
159
+ * Returns the toys collected by an account.
160
+ * Requires a user access token (client.forUser(token)).
161
+ *
162
+ * @returns A promise that resolves to an object representing the account's toys.
163
+ */
164
+ export declare function accountToysCollection(ctx: ApiContext): Promise<AccountToysCollection>;
165
+ /**
166
+ * Returns the heirlooms collected by an account.
167
+ * Requires a user access token (client.forUser(token)).
168
+ *
169
+ * @returns A promise that resolves to an object representing the account's heirlooms.
170
+ */
171
+ export declare function accountHeirloomsCollection(ctx: ApiContext): Promise<AccountHeirloomsCollection>;
172
+ /**
173
+ * Returns the transmog appearances and sets collected by an account.
174
+ * Requires a user access token (client.forUser(token)).
175
+ *
176
+ * @returns A promise that resolves to an object representing the account's transmogs.
177
+ */
178
+ export declare function accountTransmogsCollection(ctx: ApiContext): Promise<AccountTransmogsCollection>;
179
+ /**
180
+ * Returns the housing decor collected by an account.
181
+ * Requires a user access token (client.forUser(token)).
182
+ *
183
+ * @returns A promise that resolves to an object representing the account's decor.
184
+ */
185
+ export declare function accountDecorCollection(ctx: ApiContext): Promise<AccountDecorCollection>;
@@ -0,0 +1,132 @@
1
+ /**
2
+ * This module provides the WoW Account Profile API. These endpoints require a user access token with the
3
+ * `wow.profile` scope, acquired via the authorization code flow: use `client.forUser(token).wow.*`.
4
+ */
5
+ /**
6
+ * Returns a profile summary for an account, including its WoW accounts and characters.
7
+ * Requires a user access token (client.forUser(token)).
8
+ *
9
+ * @returns A promise that resolves to an object representing the account profile summary.
10
+ */
11
+ export async function accountProfileSummary(ctx) {
12
+ return await ctx.request({
13
+ method: "GET",
14
+ url: "/profile/user/wow",
15
+ namespace: "profile",
16
+ auth: "user",
17
+ });
18
+ }
19
+ /**
20
+ * Returns a protected profile summary for a character (money, deaths, position, ...).
21
+ * Requires a user access token (client.forUser(token)).
22
+ *
23
+ * @param realmId - The ID of the character's realm.
24
+ * @param characterId - The ID of the character.
25
+ * @returns A promise that resolves to an object representing the protected character profile.
26
+ */
27
+ export async function protectedCharacterProfile(ctx, realmId, characterId) {
28
+ return await ctx.request({
29
+ method: "GET",
30
+ url: `/profile/user/wow/protected-character/${realmId}-${characterId}`,
31
+ namespace: "profile",
32
+ auth: "user",
33
+ });
34
+ }
35
+ /**
36
+ * Returns an index of collection types for an account.
37
+ * Requires a user access token (client.forUser(token)).
38
+ *
39
+ * @returns A promise that resolves to an object with links to the account's collections.
40
+ */
41
+ export async function accountCollectionsIndex(ctx) {
42
+ return await ctx.request({
43
+ method: "GET",
44
+ url: "/profile/user/wow/collections",
45
+ namespace: "profile",
46
+ auth: "user",
47
+ });
48
+ }
49
+ /**
50
+ * Returns the mounts collected by an account.
51
+ * Requires a user access token (client.forUser(token)).
52
+ *
53
+ * @returns A promise that resolves to an object representing the account's mounts.
54
+ */
55
+ export async function accountMountsCollection(ctx) {
56
+ return await ctx.request({
57
+ method: "GET",
58
+ url: "/profile/user/wow/collections/mounts",
59
+ namespace: "profile",
60
+ auth: "user",
61
+ });
62
+ }
63
+ /**
64
+ * Returns the battle pets collected by an account.
65
+ * Requires a user access token (client.forUser(token)).
66
+ *
67
+ * @returns A promise that resolves to an object representing the account's pets.
68
+ */
69
+ export async function accountPetsCollection(ctx) {
70
+ return await ctx.request({
71
+ method: "GET",
72
+ url: "/profile/user/wow/collections/pets",
73
+ namespace: "profile",
74
+ auth: "user",
75
+ });
76
+ }
77
+ /**
78
+ * Returns the toys collected by an account.
79
+ * Requires a user access token (client.forUser(token)).
80
+ *
81
+ * @returns A promise that resolves to an object representing the account's toys.
82
+ */
83
+ export async function accountToysCollection(ctx) {
84
+ return await ctx.request({
85
+ method: "GET",
86
+ url: "/profile/user/wow/collections/toys",
87
+ namespace: "profile",
88
+ auth: "user",
89
+ });
90
+ }
91
+ /**
92
+ * Returns the heirlooms collected by an account.
93
+ * Requires a user access token (client.forUser(token)).
94
+ *
95
+ * @returns A promise that resolves to an object representing the account's heirlooms.
96
+ */
97
+ export async function accountHeirloomsCollection(ctx) {
98
+ return await ctx.request({
99
+ method: "GET",
100
+ url: "/profile/user/wow/collections/heirlooms",
101
+ namespace: "profile",
102
+ auth: "user",
103
+ });
104
+ }
105
+ /**
106
+ * Returns the transmog appearances and sets collected by an account.
107
+ * Requires a user access token (client.forUser(token)).
108
+ *
109
+ * @returns A promise that resolves to an object representing the account's transmogs.
110
+ */
111
+ export async function accountTransmogsCollection(ctx) {
112
+ return await ctx.request({
113
+ method: "GET",
114
+ url: "/profile/user/wow/collections/transmogs",
115
+ namespace: "profile",
116
+ auth: "user",
117
+ });
118
+ }
119
+ /**
120
+ * Returns the housing decor collected by an account.
121
+ * Requires a user access token (client.forUser(token)).
122
+ *
123
+ * @returns A promise that resolves to an object representing the account's decor.
124
+ */
125
+ export async function accountDecorCollection(ctx) {
126
+ return await ctx.request({
127
+ method: "GET",
128
+ url: "/profile/user/wow/collections/decor",
129
+ namespace: "profile",
130
+ auth: "user",
131
+ });
132
+ }
@@ -0,0 +1,88 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { Character, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
3
+ export interface AchievementCriteria {
4
+ id: number;
5
+ amount?: number;
6
+ is_completed: boolean;
7
+ child_criteria?: AchievementCriteria[];
8
+ }
9
+ export interface CharacterAchievementSummary extends LinkSelfHref {
10
+ total_quantity: number;
11
+ total_points: number;
12
+ achievements: {
13
+ id: number;
14
+ achievement: KeyNameId;
15
+ criteria?: AchievementCriteria;
16
+ completed_timestamp?: number;
17
+ }[];
18
+ category_progress: {
19
+ category: KeyNameId;
20
+ quantity: number;
21
+ points: number;
22
+ }[];
23
+ recent_events: {
24
+ achievement: KeyNameId;
25
+ timestamp: number;
26
+ }[];
27
+ character: Character;
28
+ statistics: {
29
+ href: string;
30
+ };
31
+ }
32
+ export interface AchievementStatistic {
33
+ id: number;
34
+ name: LocalizedString;
35
+ last_updated_timestamp: number;
36
+ description?: LocalizedString | null;
37
+ quantity: number;
38
+ }
39
+ export interface AchievementsubCategory {
40
+ id: number;
41
+ name: LocalizedString;
42
+ statistics: {
43
+ id: number;
44
+ name: LocalizedString;
45
+ last_updated_timestamp: number;
46
+ description?: LocalizedString | null;
47
+ quantity: number;
48
+ }[];
49
+ }
50
+ export interface CharacterAchievementStatistics extends LinkSelfHref {
51
+ character: {
52
+ key: {
53
+ href: string;
54
+ };
55
+ name: LocalizedString;
56
+ id: number;
57
+ realm: {
58
+ key: {
59
+ href: string;
60
+ };
61
+ name: LocalizedString;
62
+ id: number;
63
+ slug: string;
64
+ };
65
+ };
66
+ categories: {
67
+ id?: number;
68
+ name: LocalizedString;
69
+ sub_categories?: AchievementsubCategory[];
70
+ statistics?: AchievementStatistic[];
71
+ }[];
72
+ }
73
+ /**
74
+ * Returns a summary of the achievements a character has completed.
75
+ *
76
+ * @param realmSlug - The slug of the realm.
77
+ * @param characterName - The lowercase name of the character.
78
+ * @returns A promise that resolves to an object representing details about a characters achievement summary.
79
+ */
80
+ export declare function characterAchievementSummary(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterAchievementSummary>;
81
+ /**
82
+ * Returns a character's statistics as they pertain to achievements.
83
+ *
84
+ * @param realmSlug - The slug of the realm.
85
+ * @param characterName - The lowercase name of the character.
86
+ * @returns A promise that resolves to an object representing details about a characters achievement statistics.
87
+ */
88
+ export declare function characterAchievementStatistics(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterAchievementStatistics>;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Returns a summary of the achievements a character has completed.
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 details about a characters achievement summary.
7
+ */
8
+ export async function characterAchievementSummary(ctx, realmSlug, characterName) {
9
+ return await ctx.request({
10
+ method: "GET",
11
+ url: `/profile/wow/character/${realmSlug}/${characterName}/achievements`,
12
+ namespace: "profile",
13
+ });
14
+ }
15
+ /**
16
+ * Returns a character's statistics as they pertain to achievements.
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 details about a characters achievement statistics.
21
+ */
22
+ export async function characterAchievementStatistics(ctx, realmSlug, characterName) {
23
+ return await ctx.request({
24
+ method: "GET",
25
+ url: `/profile/wow/character/${realmSlug}/${characterName}/achievements/statistics`,
26
+ namespace: "profile",
27
+ });
28
+ }
@@ -0,0 +1,79 @@
1
+ import type { ApiContext } from "../../shared/index.js";
2
+ import type { Character, KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
3
+ export interface CharacterAppearanceSummary extends LinkSelfHref {
4
+ character: Character;
5
+ playable_race: KeyNameId;
6
+ playable_class: KeyNameId;
7
+ active_spec: KeyNameId;
8
+ gender: TypeName;
9
+ faction: TypeName;
10
+ guild_crest: {
11
+ emblem: {
12
+ id: number;
13
+ media: KeyId;
14
+ color: {
15
+ id: number;
16
+ rgba?: {
17
+ r: number;
18
+ g: number;
19
+ b: number;
20
+ a: number;
21
+ };
22
+ };
23
+ };
24
+ border: {
25
+ id: number;
26
+ media: KeyId;
27
+ color: {
28
+ id: number;
29
+ rgba?: {
30
+ r: number;
31
+ g: number;
32
+ b: number;
33
+ a: number;
34
+ };
35
+ };
36
+ };
37
+ background: {
38
+ color: {
39
+ id: number;
40
+ rgba?: {
41
+ r: number;
42
+ g: number;
43
+ b: number;
44
+ a: number;
45
+ };
46
+ };
47
+ };
48
+ };
49
+ items: {
50
+ id: number;
51
+ slot: TypeName;
52
+ enchant: number;
53
+ item_appearance_modifier_id?: number;
54
+ internal_slot_id: number;
55
+ subclass?: number;
56
+ secondary_id?: number;
57
+ secondary_item_appearance_modifier_id?: number;
58
+ secondary_subclass?: number;
59
+ }[];
60
+ customizations: {
61
+ option: {
62
+ name: LocalizedString;
63
+ id: number;
64
+ };
65
+ choice: {
66
+ name?: LocalizedString;
67
+ id: number;
68
+ display_order: number;
69
+ };
70
+ }[];
71
+ }
72
+ /**
73
+ * Returns a summary of a character's appearance settings.
74
+ *
75
+ * @param realmSlug - The slug of the realm.
76
+ * @param characterName - The lowercase name of the character.
77
+ * @returns A promise that resolves to an object representing details about a character's appearance settings.
78
+ */
79
+ export declare function characterAppearanceSummary(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterAppearanceSummary>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Returns a summary of a character's appearance settings.
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 details about a character's appearance settings.
7
+ */
8
+ export async function characterAppearanceSummary(ctx, realmSlug, characterName) {
9
+ return await ctx.request({
10
+ method: "GET",
11
+ url: `/profile/wow/character/${realmSlug}/${characterName}/appearance`,
12
+ namespace: "profile",
13
+ });
14
+ }
@@ -0,0 +1,132 @@
1
+ import type { ApiContext, Character, Href, KeyId, KeyNameId, LinkSelfHref, NamedRef, TypeName } from "../../shared/index.js";
2
+ export interface CharacterCollectionTypes extends LinkSelfHref {
3
+ pets: Href;
4
+ mounts: Href;
5
+ heirlooms: Href;
6
+ toys: Href;
7
+ character: Character;
8
+ transmogs: Href;
9
+ decors?: Href;
10
+ }
11
+ export interface CollectedMount {
12
+ mount: KeyNameId;
13
+ is_character_specific?: boolean;
14
+ is_useable: boolean;
15
+ is_favorite?: boolean;
16
+ }
17
+ export interface CharacterCollectionMounts extends LinkSelfHref {
18
+ mounts: CollectedMount[];
19
+ }
20
+ export interface CollectedPet {
21
+ species: KeyNameId;
22
+ level: number;
23
+ quality: TypeName;
24
+ stats: {
25
+ breed_id: number;
26
+ health: number;
27
+ power: number;
28
+ speed: number;
29
+ };
30
+ creature_display?: KeyId;
31
+ id: number;
32
+ is_active?: boolean;
33
+ active_slot?: number;
34
+ }
35
+ export interface CharacterCollectionPets extends LinkSelfHref {
36
+ pets: CollectedPet[];
37
+ unlocked_battle_pet_slots: number;
38
+ }
39
+ export interface CollectedToy {
40
+ toy: KeyNameId;
41
+ is_favorite?: boolean;
42
+ }
43
+ export interface CharacterCollectionToys extends LinkSelfHref {
44
+ toys: CollectedToy[];
45
+ }
46
+ export interface CollectedHeirloom {
47
+ heirloom: KeyNameId;
48
+ upgrade: {
49
+ level: number;
50
+ };
51
+ }
52
+ export interface CharacterCollectionHeirlooms extends LinkSelfHref {
53
+ heirlooms: CollectedHeirloom[];
54
+ }
55
+ export interface DecorItem {
56
+ decor: NamedRef;
57
+ /** How many of this decor are owned. */
58
+ quantity: number;
59
+ }
60
+ export interface CharacterCollectionDecor extends LinkSelfHref {
61
+ decor_collected: DecorItem[];
62
+ }
63
+ export interface TransmogrifiedSlot {
64
+ slot: {
65
+ type: string;
66
+ name: string;
67
+ };
68
+ appearances: KeyId[];
69
+ }
70
+ export interface CharacterCollectionTransmogs {
71
+ "_links": {
72
+ self: Href;
73
+ };
74
+ appearance_sets: NamedRef[];
75
+ slots: TransmogrifiedSlot[];
76
+ }
77
+ /**
78
+ * Returns an index of collection types for a character.
79
+ *
80
+ * @param realmSlug - The slug of the realm.
81
+ * @param characterName - The lowercase name of the character.
82
+ * @returns A promise that resolves to an object representing details about collection types for a character.
83
+ */
84
+ export declare function characterCollectionTypes(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterCollectionTypes>;
85
+ /**
86
+ * Returns a summary of the mounts a character has obtained.
87
+ *
88
+ * @param realmSlug - The slug of the realm.
89
+ * @param characterName - The lowercase name of the character.
90
+ * @returns A promise that resolves to an object representing details about mounts a character has obtained.
91
+ */
92
+ export declare function characterCollectionMounts(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterCollectionMounts>;
93
+ /**
94
+ * Returns a summary of the pets a character has obtained.
95
+ *
96
+ * @param realmSlug - The slug of the realm.
97
+ * @param characterName - The lowercase name of the character.
98
+ * @returns A promise that resolves to an object representing details about pets a character has obtained.
99
+ */
100
+ export declare function characterCollectionPets(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterCollectionPets>;
101
+ /**
102
+ * Returns a summary of the toys a character has obtained.
103
+ *
104
+ * @param realmSlug - The slug of the realm.
105
+ * @param characterName - The lowercase name of the character.
106
+ * @returns A promise that resolves to an object representing details about toys a character has obtained.
107
+ */
108
+ export declare function characterCollectionToys(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterCollectionToys>;
109
+ /**
110
+ * Returns a summary of the heirlooms a character has obtained.
111
+ *
112
+ * @param realmSlug - The slug of the realm.
113
+ * @param characterName - The lowercase name of the character.
114
+ * @returns A promise that resolves to an object representing details about heirlooms a character has obtained.
115
+ */
116
+ export declare function characterCollectionHeirlooms(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterCollectionHeirlooms>;
117
+ /**
118
+ * Returns a summary of the housing decor collection a character has obtained.
119
+ *
120
+ * @param realmSlug - The slug of the realm.
121
+ * @param characterName - The lowercase name of the character.
122
+ * @returns A promise that resolves to an object representing details about decor a character has collected.
123
+ */
124
+ export declare function characterCollectionDecor(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterCollectionDecor>;
125
+ /**
126
+ * Returns a summary of the transmog appearances a character has obtained.
127
+ *
128
+ * @param realmSlug - The slug of the realm.
129
+ * @param characterName - The lowercase name of the character.
130
+ * @returns A promise that resolves to an object representing details about transmog appearances a character has collected.
131
+ */
132
+ export declare function characterCollectionTransmogs(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterCollectionTransmogs>;