@pinta365/blizzard_api 0.3.5

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 (281) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +61 -0
  3. package/esm/mod.d.ts +5 -0
  4. package/esm/mod.js +5 -0
  5. package/esm/package.json +3 -0
  6. package/esm/src/hearthstone/game_data/card_backs.d.ts +22 -0
  7. package/esm/src/hearthstone/game_data/card_backs.js +23 -0
  8. package/esm/src/hearthstone/game_data/cards.d.ts +37 -0
  9. package/esm/src/hearthstone/game_data/cards.js +27 -0
  10. package/esm/src/hearthstone/game_data/decks.d.ts +88 -0
  11. package/esm/src/hearthstone/game_data/decks.js +14 -0
  12. package/esm/src/hearthstone/game_data/metadata.d.ts +95 -0
  13. package/esm/src/hearthstone/game_data/metadata.js +12 -0
  14. package/esm/src/hearthstone/index.d.ts +4 -0
  15. package/esm/src/hearthstone/index.js +4 -0
  16. package/esm/src/hearthstone/search.d.ts +20 -0
  17. package/esm/src/hearthstone/search.js +29 -0
  18. package/esm/src/shared/auth.d.ts +24 -0
  19. package/esm/src/shared/auth.js +58 -0
  20. package/esm/src/shared/config.d.ts +40 -0
  21. package/esm/src/shared/config.js +48 -0
  22. package/esm/src/shared/errors.d.ts +44 -0
  23. package/esm/src/shared/errors.js +83 -0
  24. package/esm/src/shared/index.d.ts +4 -0
  25. package/esm/src/shared/index.js +3 -0
  26. package/esm/src/shared/request.d.ts +13 -0
  27. package/esm/src/shared/request.js +43 -0
  28. package/esm/src/shared/types.d.ts +120 -0
  29. package/esm/src/shared/types.js +2 -0
  30. package/esm/src/starcraft2/game_data/league.d.ts +32 -0
  31. package/esm/src/starcraft2/game_data/league.js +21 -0
  32. package/esm/src/starcraft2/index.d.ts +1 -0
  33. package/esm/src/starcraft2/index.js +1 -0
  34. package/esm/src/wow/game_data/achievement.d.ts +84 -0
  35. package/esm/src/wow/game_data/achievement.js +69 -0
  36. package/esm/src/wow/game_data/auction_house.d.ts +64 -0
  37. package/esm/src/wow/game_data/auction_house.js +34 -0
  38. package/esm/src/wow/game_data/azerite_essence.d.ts +49 -0
  39. package/esm/src/wow/game_data/azerite_essence.js +49 -0
  40. package/esm/src/wow/game_data/connected_realm.d.ts +54 -0
  41. package/esm/src/wow/game_data/connected_realm.js +36 -0
  42. package/esm/src/wow/game_data/covenant.d.ts +108 -0
  43. package/esm/src/wow/game_data/covenant.js +89 -0
  44. package/esm/src/wow/game_data/creature.d.ts +97 -0
  45. package/esm/src/wow/game_data/creature.js +100 -0
  46. package/esm/src/wow/game_data/guild_crest.d.ts +55 -0
  47. package/esm/src/wow/game_data/guild_crest.js +39 -0
  48. package/esm/src/wow/game_data/heirloom.d.ts +79 -0
  49. package/esm/src/wow/game_data/heirloom.js +26 -0
  50. package/esm/src/wow/game_data/item.d.ts +166 -0
  51. package/esm/src/wow/game_data/item.js +101 -0
  52. package/esm/src/wow/game_data/journal.d.ts +121 -0
  53. package/esm/src/wow/game_data/journal.js +99 -0
  54. package/esm/src/wow/game_data/keystone_affix.d.ts +34 -0
  55. package/esm/src/wow/game_data/keystone_affix.js +39 -0
  56. package/esm/src/wow/game_data/media_search.d.ts +8 -0
  57. package/esm/src/wow/game_data/media_search.js +10 -0
  58. package/esm/src/wow/game_data/modified_crafting.d.ts +56 -0
  59. package/esm/src/wow/game_data/modified_crafting.js +63 -0
  60. package/esm/src/wow/game_data/mount.d.ts +30 -0
  61. package/esm/src/wow/game_data/mount.js +30 -0
  62. package/esm/src/wow/game_data/mythic_keystone_dungeon.d.ts +91 -0
  63. package/esm/src/wow/game_data/mythic_keystone_dungeon.js +88 -0
  64. package/esm/src/wow/game_data/mythic_keystone_leaderboard.d.ts +58 -0
  65. package/esm/src/wow/game_data/mythic_keystone_leaderboard.js +29 -0
  66. package/esm/src/wow/game_data/mythic_raid_leaderboard.d.ts +31 -0
  67. package/esm/src/wow/game_data/mythic_raid_leaderboard.js +15 -0
  68. package/esm/src/wow/game_data/pet.d.ts +91 -0
  69. package/esm/src/wow/game_data/pet.js +77 -0
  70. package/esm/src/wow/game_data/playable_class.d.ts +57 -0
  71. package/esm/src/wow/game_data/playable_class.js +52 -0
  72. package/esm/src/wow/game_data/playable_race.d.ts +29 -0
  73. package/esm/src/wow/game_data/playable_race.js +26 -0
  74. package/esm/src/wow/game_data/power_type.d.ts +21 -0
  75. package/esm/src/wow/game_data/power_type.js +26 -0
  76. package/esm/src/wow/game_data/profession.d.ts +85 -0
  77. package/esm/src/wow/game_data/profession.js +79 -0
  78. package/esm/src/wow/game_data/pvp_season.d.ts +99 -0
  79. package/esm/src/wow/game_data/pvp_season.js +66 -0
  80. package/esm/src/wow/game_data/pvp_tier.d.ts +40 -0
  81. package/esm/src/wow/game_data/pvp_tier.js +39 -0
  82. package/esm/src/wow/game_data/quest.d.ts +114 -0
  83. package/esm/src/wow/game_data/quest.js +101 -0
  84. package/esm/src/wow/game_data/realm.d.ts +42 -0
  85. package/esm/src/wow/game_data/realm.js +36 -0
  86. package/esm/src/wow/game_data/region.d.ts +24 -0
  87. package/esm/src/wow/game_data/region.js +26 -0
  88. package/esm/src/wow/game_data/reputations.d.ts +50 -0
  89. package/esm/src/wow/game_data/reputations.js +51 -0
  90. package/esm/src/wow/game_data/spell.d.ts +33 -0
  91. package/esm/src/wow/game_data/spell.js +37 -0
  92. package/esm/src/wow/game_data/talent.d.ts +129 -0
  93. package/esm/src/wow/game_data/talent.js +90 -0
  94. package/esm/src/wow/game_data/tech_talent.d.ts +70 -0
  95. package/esm/src/wow/game_data/tech_talent.js +64 -0
  96. package/esm/src/wow/game_data/title.d.ts +25 -0
  97. package/esm/src/wow/game_data/title.js +26 -0
  98. package/esm/src/wow/game_data/token.d.ts +16 -0
  99. package/esm/src/wow/game_data/token.js +19 -0
  100. package/esm/src/wow/game_data/toy.d.ts +24 -0
  101. package/esm/src/wow/game_data/toy.js +26 -0
  102. package/esm/src/wow/index.d.ts +53 -0
  103. package/esm/src/wow/index.js +55 -0
  104. package/esm/src/wow/profile/character_achievements.d.ts +87 -0
  105. package/esm/src/wow/profile/character_achievements.js +29 -0
  106. package/esm/src/wow/profile/character_appearance.d.ts +75 -0
  107. package/esm/src/wow/profile/character_appearance.js +15 -0
  108. package/esm/src/wow/profile/character_collections.d.ts +92 -0
  109. package/esm/src/wow/profile/character_collections.js +71 -0
  110. package/esm/src/wow/profile/character_encounters.d.ts +77 -0
  111. package/esm/src/wow/profile/character_encounters.js +43 -0
  112. package/esm/src/wow/profile/character_equipment.d.ts +132 -0
  113. package/esm/src/wow/profile/character_equipment.js +15 -0
  114. package/esm/src/wow/profile/character_hunter_pets.d.ts +21 -0
  115. package/esm/src/wow/profile/character_hunter_pets.js +15 -0
  116. package/esm/src/wow/profile/character_media.d.ts +13 -0
  117. package/esm/src/wow/profile/character_media.js +15 -0
  118. package/esm/src/wow/profile/character_mythic_keystone_profile.d.ts +58 -0
  119. package/esm/src/wow/profile/character_mythic_keystone_profile.js +32 -0
  120. package/esm/src/wow/profile/character_professions.d.ts +26 -0
  121. package/esm/src/wow/profile/character_professions.js +15 -0
  122. package/esm/src/wow/profile/character_profile.d.ts +82 -0
  123. package/esm/src/wow/profile/character_profile.js +40 -0
  124. package/esm/src/wow/profile/character_pvp.d.ts +51 -0
  125. package/esm/src/wow/profile/character_pvp.js +30 -0
  126. package/esm/src/wow/profile/character_quests.d.ts +28 -0
  127. package/esm/src/wow/profile/character_quests.js +29 -0
  128. package/esm/src/wow/profile/character_reputations.d.ts +22 -0
  129. package/esm/src/wow/profile/character_reputations.js +15 -0
  130. package/esm/src/wow/profile/character_soulbinds.d.ts +30 -0
  131. package/esm/src/wow/profile/character_soulbinds.js +15 -0
  132. package/esm/src/wow/profile/character_specializations.d.ts +44 -0
  133. package/esm/src/wow/profile/character_specializations.js +15 -0
  134. package/esm/src/wow/profile/character_statistics.d.ts +116 -0
  135. package/esm/src/wow/profile/character_statistics.js +15 -0
  136. package/esm/src/wow/profile/character_titles.d.ts +13 -0
  137. package/esm/src/wow/profile/character_titles.js +15 -0
  138. package/esm/src/wow/profile/guild.d.ts +117 -0
  139. package/esm/src/wow/profile/guild.js +57 -0
  140. package/esm/src/wow/search.d.ts +21 -0
  141. package/esm/src/wow/search.js +30 -0
  142. package/package.json +36 -0
  143. package/script/mod.d.ts +5 -0
  144. package/script/mod.js +35 -0
  145. package/script/package.json +3 -0
  146. package/script/src/hearthstone/game_data/card_backs.d.ts +22 -0
  147. package/script/src/hearthstone/game_data/card_backs.js +28 -0
  148. package/script/src/hearthstone/game_data/cards.d.ts +37 -0
  149. package/script/src/hearthstone/game_data/cards.js +32 -0
  150. package/script/src/hearthstone/game_data/decks.d.ts +88 -0
  151. package/script/src/hearthstone/game_data/decks.js +18 -0
  152. package/script/src/hearthstone/game_data/metadata.d.ts +95 -0
  153. package/script/src/hearthstone/game_data/metadata.js +16 -0
  154. package/script/src/hearthstone/index.d.ts +4 -0
  155. package/script/src/hearthstone/index.js +13 -0
  156. package/script/src/hearthstone/search.d.ts +20 -0
  157. package/script/src/hearthstone/search.js +33 -0
  158. package/script/src/shared/auth.d.ts +24 -0
  159. package/script/src/shared/auth.js +63 -0
  160. package/script/src/shared/config.d.ts +40 -0
  161. package/script/src/shared/config.js +55 -0
  162. package/script/src/shared/errors.d.ts +44 -0
  163. package/script/src/shared/errors.js +91 -0
  164. package/script/src/shared/index.d.ts +4 -0
  165. package/script/src/shared/index.js +9 -0
  166. package/script/src/shared/request.d.ts +13 -0
  167. package/script/src/shared/request.js +47 -0
  168. package/script/src/shared/types.d.ts +120 -0
  169. package/script/src/shared/types.js +3 -0
  170. package/script/src/starcraft2/game_data/league.d.ts +32 -0
  171. package/script/src/starcraft2/game_data/league.js +25 -0
  172. package/script/src/starcraft2/index.d.ts +1 -0
  173. package/script/src/starcraft2/index.js +5 -0
  174. package/script/src/wow/game_data/achievement.d.ts +84 -0
  175. package/script/src/wow/game_data/achievement.js +77 -0
  176. package/script/src/wow/game_data/auction_house.d.ts +64 -0
  177. package/script/src/wow/game_data/auction_house.js +39 -0
  178. package/script/src/wow/game_data/azerite_essence.d.ts +49 -0
  179. package/script/src/wow/game_data/azerite_essence.js +56 -0
  180. package/script/src/wow/game_data/connected_realm.d.ts +54 -0
  181. package/script/src/wow/game_data/connected_realm.js +42 -0
  182. package/script/src/wow/game_data/covenant.d.ts +108 -0
  183. package/script/src/wow/game_data/covenant.js +99 -0
  184. package/script/src/wow/game_data/creature.d.ts +97 -0
  185. package/script/src/wow/game_data/creature.js +111 -0
  186. package/script/src/wow/game_data/guild_crest.d.ts +55 -0
  187. package/script/src/wow/game_data/guild_crest.js +45 -0
  188. package/script/src/wow/game_data/heirloom.d.ts +79 -0
  189. package/script/src/wow/game_data/heirloom.js +31 -0
  190. package/script/src/wow/game_data/item.d.ts +166 -0
  191. package/script/src/wow/game_data/item.js +112 -0
  192. package/script/src/wow/game_data/journal.d.ts +121 -0
  193. package/script/src/wow/game_data/journal.js +110 -0
  194. package/script/src/wow/game_data/keystone_affix.d.ts +34 -0
  195. package/script/src/wow/game_data/keystone_affix.js +45 -0
  196. package/script/src/wow/game_data/media_search.d.ts +8 -0
  197. package/script/src/wow/game_data/media_search.js +14 -0
  198. package/script/src/wow/game_data/modified_crafting.d.ts +56 -0
  199. package/script/src/wow/game_data/modified_crafting.js +71 -0
  200. package/script/src/wow/game_data/mount.d.ts +30 -0
  201. package/script/src/wow/game_data/mount.js +36 -0
  202. package/script/src/wow/game_data/mythic_keystone_dungeon.d.ts +91 -0
  203. package/script/src/wow/game_data/mythic_keystone_dungeon.js +98 -0
  204. package/script/src/wow/game_data/mythic_keystone_leaderboard.d.ts +58 -0
  205. package/script/src/wow/game_data/mythic_keystone_leaderboard.js +34 -0
  206. package/script/src/wow/game_data/mythic_raid_leaderboard.d.ts +31 -0
  207. package/script/src/wow/game_data/mythic_raid_leaderboard.js +19 -0
  208. package/script/src/wow/game_data/pet.d.ts +91 -0
  209. package/script/src/wow/game_data/pet.js +86 -0
  210. package/script/src/wow/game_data/playable_class.d.ts +57 -0
  211. package/script/src/wow/game_data/playable_class.js +59 -0
  212. package/script/src/wow/game_data/playable_race.d.ts +29 -0
  213. package/script/src/wow/game_data/playable_race.js +31 -0
  214. package/script/src/wow/game_data/power_type.d.ts +21 -0
  215. package/script/src/wow/game_data/power_type.js +31 -0
  216. package/script/src/wow/game_data/profession.d.ts +85 -0
  217. package/script/src/wow/game_data/profession.js +88 -0
  218. package/script/src/wow/game_data/pvp_season.d.ts +99 -0
  219. package/script/src/wow/game_data/pvp_season.js +74 -0
  220. package/script/src/wow/game_data/pvp_tier.d.ts +40 -0
  221. package/script/src/wow/game_data/pvp_tier.js +45 -0
  222. package/script/src/wow/game_data/quest.d.ts +114 -0
  223. package/script/src/wow/game_data/quest.js +112 -0
  224. package/script/src/wow/game_data/realm.d.ts +42 -0
  225. package/script/src/wow/game_data/realm.js +42 -0
  226. package/script/src/wow/game_data/region.d.ts +24 -0
  227. package/script/src/wow/game_data/region.js +31 -0
  228. package/script/src/wow/game_data/reputations.d.ts +50 -0
  229. package/script/src/wow/game_data/reputations.js +58 -0
  230. package/script/src/wow/game_data/spell.d.ts +33 -0
  231. package/script/src/wow/game_data/spell.js +43 -0
  232. package/script/src/wow/game_data/talent.d.ts +129 -0
  233. package/script/src/wow/game_data/talent.js +100 -0
  234. package/script/src/wow/game_data/tech_talent.d.ts +70 -0
  235. package/script/src/wow/game_data/tech_talent.js +72 -0
  236. package/script/src/wow/game_data/title.d.ts +25 -0
  237. package/script/src/wow/game_data/title.js +31 -0
  238. package/script/src/wow/game_data/token.d.ts +16 -0
  239. package/script/src/wow/game_data/token.js +23 -0
  240. package/script/src/wow/game_data/toy.d.ts +24 -0
  241. package/script/src/wow/game_data/toy.js +31 -0
  242. package/script/src/wow/index.d.ts +53 -0
  243. package/script/src/wow/index.js +228 -0
  244. package/script/src/wow/profile/character_achievements.d.ts +87 -0
  245. package/script/src/wow/profile/character_achievements.js +34 -0
  246. package/script/src/wow/profile/character_appearance.d.ts +75 -0
  247. package/script/src/wow/profile/character_appearance.js +19 -0
  248. package/script/src/wow/profile/character_collections.d.ts +92 -0
  249. package/script/src/wow/profile/character_collections.js +79 -0
  250. package/script/src/wow/profile/character_encounters.d.ts +77 -0
  251. package/script/src/wow/profile/character_encounters.js +49 -0
  252. package/script/src/wow/profile/character_equipment.d.ts +132 -0
  253. package/script/src/wow/profile/character_equipment.js +19 -0
  254. package/script/src/wow/profile/character_hunter_pets.d.ts +21 -0
  255. package/script/src/wow/profile/character_hunter_pets.js +19 -0
  256. package/script/src/wow/profile/character_media.d.ts +13 -0
  257. package/script/src/wow/profile/character_media.js +19 -0
  258. package/script/src/wow/profile/character_mythic_keystone_profile.d.ts +58 -0
  259. package/script/src/wow/profile/character_mythic_keystone_profile.js +37 -0
  260. package/script/src/wow/profile/character_professions.d.ts +26 -0
  261. package/script/src/wow/profile/character_professions.js +19 -0
  262. package/script/src/wow/profile/character_profile.d.ts +82 -0
  263. package/script/src/wow/profile/character_profile.js +45 -0
  264. package/script/src/wow/profile/character_pvp.d.ts +51 -0
  265. package/script/src/wow/profile/character_pvp.js +35 -0
  266. package/script/src/wow/profile/character_quests.d.ts +28 -0
  267. package/script/src/wow/profile/character_quests.js +34 -0
  268. package/script/src/wow/profile/character_reputations.d.ts +22 -0
  269. package/script/src/wow/profile/character_reputations.js +19 -0
  270. package/script/src/wow/profile/character_soulbinds.d.ts +30 -0
  271. package/script/src/wow/profile/character_soulbinds.js +19 -0
  272. package/script/src/wow/profile/character_specializations.d.ts +44 -0
  273. package/script/src/wow/profile/character_specializations.js +19 -0
  274. package/script/src/wow/profile/character_statistics.d.ts +116 -0
  275. package/script/src/wow/profile/character_statistics.js +19 -0
  276. package/script/src/wow/profile/character_titles.d.ts +13 -0
  277. package/script/src/wow/profile/character_titles.js +19 -0
  278. package/script/src/wow/profile/guild.d.ts +117 -0
  279. package/script/src/wow/profile/guild.js +64 -0
  280. package/script/src/wow/search.d.ts +21 -0
  281. package/script/src/wow/search.js +34 -0
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.characterAchievementStatistics = exports.characterAchievementSummary = void 0;
4
+ const index_js_1 = require("../../shared/index.js");
5
+ /**
6
+ * Returns a summary of the achievements a character has completed.
7
+ *
8
+ * @param realmSlug - The slug of the realm.
9
+ * @param characterName - The lowercase name of the character.
10
+ * @returns A promise that resolves to an object representing details about a characters achievement summary.
11
+ */
12
+ async function characterAchievementSummary(realmSlug, characterName) {
13
+ return await (0, index_js_1.request)({
14
+ method: "GET",
15
+ url: `/profile/wow/character/${realmSlug}/${characterName}/achievements`,
16
+ namespace: "profile",
17
+ });
18
+ }
19
+ exports.characterAchievementSummary = characterAchievementSummary;
20
+ /**
21
+ * Returns a character's statistics as they pertain to achievements.
22
+ *
23
+ * @param realmSlug - The slug of the realm.
24
+ * @param characterName - The lowercase name of the character.
25
+ * @returns A promise that resolves to an object representing details about a characters achievement statistics.
26
+ */
27
+ async function characterAchievementStatistics(realmSlug, characterName) {
28
+ return await (0, index_js_1.request)({
29
+ method: "GET",
30
+ url: `/profile/wow/character/${realmSlug}/${characterName}/achievements/statistics`,
31
+ namespace: "profile",
32
+ });
33
+ }
34
+ exports.characterAchievementStatistics = characterAchievementStatistics;
@@ -0,0 +1,75 @@
1
+ import type { Character, KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
2
+ export interface CharacterAppearanceSummary extends LinkSelfHref {
3
+ character: Character;
4
+ playable_race: KeyNameId;
5
+ playable_class: KeyNameId;
6
+ active_spec: KeyNameId;
7
+ gender: TypeName;
8
+ faction: TypeName;
9
+ guild_crest: {
10
+ emblem: {
11
+ id: number;
12
+ media: KeyId;
13
+ color: {
14
+ id: number;
15
+ rgba: {
16
+ r: number;
17
+ g: number;
18
+ b: number;
19
+ a: number;
20
+ };
21
+ };
22
+ };
23
+ border: {
24
+ id: number;
25
+ media: KeyId;
26
+ color: {
27
+ id: number;
28
+ rgba: {
29
+ r: number;
30
+ g: number;
31
+ b: number;
32
+ a: number;
33
+ };
34
+ };
35
+ };
36
+ background: {
37
+ color: {
38
+ id: number;
39
+ rgba: {
40
+ r: number;
41
+ g: number;
42
+ b: number;
43
+ a: number;
44
+ };
45
+ };
46
+ };
47
+ };
48
+ items: {
49
+ id: number;
50
+ slot: TypeName;
51
+ enchant: number;
52
+ item_appearance_modifier_id: number;
53
+ internal_slot_id: number;
54
+ subclass: number;
55
+ }[];
56
+ customizations: {
57
+ option: {
58
+ name: LocalizedString;
59
+ id: number;
60
+ };
61
+ choice: {
62
+ name?: LocalizedString;
63
+ id: number;
64
+ display_order: number;
65
+ };
66
+ }[];
67
+ }
68
+ /**
69
+ * Returns a summary of a character's appearance settings.
70
+ *
71
+ * @param realmSlug - The slug of the realm.
72
+ * @param characterName - The lowercase name of the character.
73
+ * @returns A promise that resolves to an object representing details about a character's appearance settings.
74
+ */
75
+ export declare function characterAppearanceSummary(realmSlug: string, characterName: string): Promise<CharacterAppearanceSummary>;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.characterAppearanceSummary = void 0;
4
+ const index_js_1 = require("../../shared/index.js");
5
+ /**
6
+ * Returns a summary of a character's appearance settings.
7
+ *
8
+ * @param realmSlug - The slug of the realm.
9
+ * @param characterName - The lowercase name of the character.
10
+ * @returns A promise that resolves to an object representing details about a character's appearance settings.
11
+ */
12
+ async function characterAppearanceSummary(realmSlug, characterName) {
13
+ return await (0, index_js_1.request)({
14
+ method: "GET",
15
+ url: `/profile/wow/character/${realmSlug}/${characterName}/appearance`,
16
+ namespace: "profile",
17
+ });
18
+ }
19
+ exports.characterAppearanceSummary = characterAppearanceSummary;
@@ -0,0 +1,92 @@
1
+ import type { Character, KeyId, KeyNameId, LinkSelfHref, TypeName } from "../../shared/index.js";
2
+ export interface Href {
3
+ href: string;
4
+ }
5
+ export interface CharacterCollectionTypes extends LinkSelfHref {
6
+ pets: Href;
7
+ mounts: Href;
8
+ heirlooms: Href;
9
+ toys: Href;
10
+ character: Character;
11
+ }
12
+ export interface Mount {
13
+ mounts: KeyNameId;
14
+ is_character_specific?: boolean;
15
+ is_useable: boolean;
16
+ }
17
+ export interface CharacterCollectionMounts extends LinkSelfHref {
18
+ mounts: Mount[];
19
+ }
20
+ export interface Pet {
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
+ }
33
+ export interface CharacterCollectionPets extends LinkSelfHref {
34
+ pets: Pet[];
35
+ unlocked_battle_pet_slots: number;
36
+ }
37
+ export interface Toy {
38
+ toy: KeyNameId;
39
+ is_favorite?: boolean;
40
+ }
41
+ export interface CharacterCollectionToys extends LinkSelfHref {
42
+ toys: Toy[];
43
+ }
44
+ export interface Heirloom {
45
+ heirloom: KeyNameId;
46
+ upgrade: {
47
+ level: number;
48
+ };
49
+ }
50
+ export interface CharacterCollectionHeirlooms extends LinkSelfHref {
51
+ heirlooms: Heirloom[];
52
+ }
53
+ /**
54
+ * Returns an index of collection types for a character.
55
+ *
56
+ * @param realmSlug - The slug of the realm.
57
+ * @param characterName - The lowercase name of the character.
58
+ * @returns A promise that resolves to an object representing details about collection types for a character.
59
+ */
60
+ export declare function characterCollectionTypes(realmSlug: string, characterName: string): Promise<CharacterCollectionTypes>;
61
+ /**
62
+ * Returns a summary of the mounts a character has obtained.
63
+ *
64
+ * @param realmSlug - The slug of the realm.
65
+ * @param characterName - The lowercase name of the character.
66
+ * @returns A promise that resolves to an object representing details about mounts a character has obtained.
67
+ */
68
+ export declare function characterCollectionMounts(realmSlug: string, characterName: string): Promise<CharacterCollectionMounts>;
69
+ /**
70
+ * Returns a summary of the pets a character has obtained.
71
+ *
72
+ * @param realmSlug - The slug of the realm.
73
+ * @param characterName - The lowercase name of the character.
74
+ * @returns A promise that resolves to an object representing details about pets a character has obtained.
75
+ */
76
+ export declare function characterCollectionPets(realmSlug: string, characterName: string): Promise<CharacterCollectionPets>;
77
+ /**
78
+ * Returns a summary of the toys a character has obtained.
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 toys a character has obtained.
83
+ */
84
+ export declare function characterCollectionToys(realmSlug: string, characterName: string): Promise<CharacterCollectionToys>;
85
+ /**
86
+ * Returns a summary of the heirlooms 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 heirlooms a character has obtained.
91
+ */
92
+ export declare function characterCollectionHeirlooms(realmSlug: string, characterName: string): Promise<CharacterCollectionHeirlooms>;
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.characterCollectionHeirlooms = exports.characterCollectionToys = exports.characterCollectionPets = exports.characterCollectionMounts = exports.characterCollectionTypes = void 0;
4
+ const index_js_1 = require("../../shared/index.js");
5
+ /**
6
+ * Returns an index of collection types for a character.
7
+ *
8
+ * @param realmSlug - The slug of the realm.
9
+ * @param characterName - The lowercase name of the character.
10
+ * @returns A promise that resolves to an object representing details about collection types for a character.
11
+ */
12
+ async function characterCollectionTypes(realmSlug, characterName) {
13
+ return await (0, index_js_1.request)({
14
+ method: "GET",
15
+ url: `/profile/wow/character/${realmSlug}/${characterName}/collections`,
16
+ namespace: "profile",
17
+ });
18
+ }
19
+ exports.characterCollectionTypes = characterCollectionTypes;
20
+ /**
21
+ * Returns a summary of the mounts a character has obtained.
22
+ *
23
+ * @param realmSlug - The slug of the realm.
24
+ * @param characterName - The lowercase name of the character.
25
+ * @returns A promise that resolves to an object representing details about mounts a character has obtained.
26
+ */
27
+ async function characterCollectionMounts(realmSlug, characterName) {
28
+ return await (0, index_js_1.request)({
29
+ method: "GET",
30
+ url: `/profile/wow/character/${realmSlug}/${characterName}/collections/mounts`,
31
+ namespace: "profile",
32
+ });
33
+ }
34
+ exports.characterCollectionMounts = characterCollectionMounts;
35
+ /**
36
+ * Returns a summary of the pets a character has obtained.
37
+ *
38
+ * @param realmSlug - The slug of the realm.
39
+ * @param characterName - The lowercase name of the character.
40
+ * @returns A promise that resolves to an object representing details about pets a character has obtained.
41
+ */
42
+ async function characterCollectionPets(realmSlug, characterName) {
43
+ return await (0, index_js_1.request)({
44
+ method: "GET",
45
+ url: `/profile/wow/character/${realmSlug}/${characterName}/collections/pets`,
46
+ namespace: "profile",
47
+ });
48
+ }
49
+ exports.characterCollectionPets = characterCollectionPets;
50
+ /**
51
+ * Returns a summary of the toys a character has obtained.
52
+ *
53
+ * @param realmSlug - The slug of the realm.
54
+ * @param characterName - The lowercase name of the character.
55
+ * @returns A promise that resolves to an object representing details about toys a character has obtained.
56
+ */
57
+ async function characterCollectionToys(realmSlug, characterName) {
58
+ return await (0, index_js_1.request)({
59
+ method: "GET",
60
+ url: `/profile/wow/character/${realmSlug}/${characterName}/collections/toys`,
61
+ namespace: "profile",
62
+ });
63
+ }
64
+ exports.characterCollectionToys = characterCollectionToys;
65
+ /**
66
+ * Returns a summary of the heirlooms a character has obtained.
67
+ *
68
+ * @param realmSlug - The slug of the realm.
69
+ * @param characterName - The lowercase name of the character.
70
+ * @returns A promise that resolves to an object representing details about heirlooms a character has obtained.
71
+ */
72
+ async function characterCollectionHeirlooms(realmSlug, characterName) {
73
+ return await (0, index_js_1.request)({
74
+ method: "GET",
75
+ url: `/profile/wow/character/${realmSlug}/${characterName}/collections/heirlooms`,
76
+ namespace: "profile",
77
+ });
78
+ }
79
+ exports.characterCollectionHeirlooms = characterCollectionHeirlooms;
@@ -0,0 +1,77 @@
1
+ import type { Character, KeyNameId, LinkSelfHref, TypeName } from "../../shared/index.js";
2
+ export interface CharacterEncounters extends LinkSelfHref {
3
+ character: Character;
4
+ dungeons: {
5
+ href: string;
6
+ };
7
+ raids: {
8
+ href: string;
9
+ };
10
+ }
11
+ export interface CharacterEncounterDungeons extends LinkSelfHref {
12
+ expansions: {
13
+ expansion: KeyNameId;
14
+ instances: {
15
+ instance: KeyNameId;
16
+ modes: {
17
+ difficulty: TypeName;
18
+ status: TypeName;
19
+ progress: {
20
+ completed_count: number;
21
+ total_count: number;
22
+ encounters: {
23
+ encounter: KeyNameId;
24
+ completed_count: number;
25
+ last_kill_timestamp: number;
26
+ }[];
27
+ };
28
+ }[];
29
+ }[];
30
+ }[];
31
+ }
32
+ export interface CharacterEncounterRaids extends LinkSelfHref {
33
+ character: Character;
34
+ expansions: {
35
+ expansion: KeyNameId;
36
+ instances: {
37
+ instance: KeyNameId;
38
+ modes: {
39
+ difficulty: TypeName;
40
+ status: TypeName;
41
+ progress: {
42
+ completed_count: number;
43
+ total_count: number;
44
+ encounters: {
45
+ encounter: KeyNameId;
46
+ completed_count: number;
47
+ last_kill_timestamp: number;
48
+ }[];
49
+ };
50
+ }[];
51
+ }[];
52
+ }[];
53
+ }
54
+ /**
55
+ * Returns a summary of a character's encounters.
56
+ *
57
+ * @param realmSlug - The slug of the realm.
58
+ * @param characterName - The lowercase name of the character.
59
+ * @returns A promise that resolves to an object representing details about character's encounters.
60
+ */
61
+ export declare function characterEncounters(realmSlug: string, characterName: string): Promise<CharacterEncounters>;
62
+ /**
63
+ * Returns a summary of a character's completed dungeons.
64
+ *
65
+ * @param realmSlug - The slug of the realm.
66
+ * @param characterName - The lowercase name of the character.
67
+ * @returns A promise that resolves to an object representing details about character's completed dungeons.
68
+ */
69
+ export declare function characterEncounterDungeons(realmSlug: string, characterName: string): Promise<CharacterEncounterDungeons>;
70
+ /**
71
+ * Returns a summary of a character's completed raids.
72
+ *
73
+ * @param realmSlug - The slug of the realm.
74
+ * @param characterName - The lowercase name of the character.
75
+ * @returns A promise that resolves to an object representing details about character's completed raids.
76
+ */
77
+ export declare function characterEncounterRaids(realmSlug: string, characterName: string): Promise<CharacterEncounterRaids>;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.characterEncounterRaids = exports.characterEncounterDungeons = exports.characterEncounters = void 0;
4
+ const index_js_1 = require("../../shared/index.js");
5
+ /**
6
+ * Returns a summary of a character's encounters.
7
+ *
8
+ * @param realmSlug - The slug of the realm.
9
+ * @param characterName - The lowercase name of the character.
10
+ * @returns A promise that resolves to an object representing details about character's encounters.
11
+ */
12
+ async function characterEncounters(realmSlug, characterName) {
13
+ return await (0, index_js_1.request)({
14
+ method: "GET",
15
+ url: `/profile/wow/character/${realmSlug}/${characterName}/encounters`,
16
+ namespace: "profile",
17
+ });
18
+ }
19
+ exports.characterEncounters = characterEncounters;
20
+ /**
21
+ * Returns a summary of a character's completed dungeons.
22
+ *
23
+ * @param realmSlug - The slug of the realm.
24
+ * @param characterName - The lowercase name of the character.
25
+ * @returns A promise that resolves to an object representing details about character's completed dungeons.
26
+ */
27
+ async function characterEncounterDungeons(realmSlug, characterName) {
28
+ return await (0, index_js_1.request)({
29
+ method: "GET",
30
+ url: `/profile/wow/character/${realmSlug}/${characterName}/encounters/dungeons`,
31
+ namespace: "profile",
32
+ });
33
+ }
34
+ exports.characterEncounterDungeons = characterEncounterDungeons;
35
+ /**
36
+ * Returns a summary of a character's completed raids.
37
+ *
38
+ * @param realmSlug - The slug of the realm.
39
+ * @param characterName - The lowercase name of the character.
40
+ * @returns A promise that resolves to an object representing details about character's completed raids.
41
+ */
42
+ async function characterEncounterRaids(realmSlug, characterName) {
43
+ return await (0, index_js_1.request)({
44
+ method: "GET",
45
+ url: `/profile/wow/character/${realmSlug}/${characterName}/encounters/raids`,
46
+ namespace: "profile",
47
+ });
48
+ }
49
+ exports.characterEncounterRaids = characterEncounterRaids;
@@ -0,0 +1,132 @@
1
+ import type { Character, KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
2
+ export interface Rgba {
3
+ r: number;
4
+ g: number;
5
+ b: number;
6
+ a: number;
7
+ }
8
+ export interface characterEquipments extends LinkSelfHref {
9
+ character: Character;
10
+ equipped_items: {
11
+ item: KeyId;
12
+ sockets?: {
13
+ socket_type: TypeName;
14
+ item: KeyNameId;
15
+ display_string: LocalizedString;
16
+ media: KeyId;
17
+ }[];
18
+ enchantments?: {
19
+ display_string: LocalizedString;
20
+ source_item?: KeyNameId;
21
+ enchantment_id: number;
22
+ enchantment_slot: {
23
+ id: number;
24
+ type: string;
25
+ };
26
+ }[];
27
+ slot: TypeName;
28
+ quantity: number;
29
+ context: number;
30
+ bonus_list: number[];
31
+ quality: TypeName;
32
+ name: LocalizedString;
33
+ modified_appearance_id: number;
34
+ media: KeyId;
35
+ item_class: KeyNameId;
36
+ item_subclass: KeyNameId;
37
+ inventory_type: TypeName;
38
+ binding: TypeName;
39
+ armor: {
40
+ value: number;
41
+ display: {
42
+ display_string: LocalizedString;
43
+ color: Rgba;
44
+ };
45
+ };
46
+ stats: {
47
+ type: TypeName;
48
+ value: number;
49
+ is_negated?: boolean;
50
+ is_equip_bonus?: boolean;
51
+ display: {
52
+ display_string: LocalizedString;
53
+ color: Rgba;
54
+ };
55
+ }[];
56
+ spells?: {
57
+ spell: KeyNameId;
58
+ description: LocalizedString;
59
+ }[];
60
+ sell_price: {
61
+ value: number;
62
+ display_strings: {
63
+ header: LocalizedString;
64
+ gold: string;
65
+ silver: string;
66
+ copper: string;
67
+ };
68
+ };
69
+ requirements: {
70
+ level: {
71
+ value: number;
72
+ display_string: LocalizedString;
73
+ };
74
+ playable_classes: {
75
+ links: KeyNameId[];
76
+ display_string: LocalizedString;
77
+ };
78
+ };
79
+ set: {
80
+ item_set: KeyNameId;
81
+ items: {
82
+ item: KeyNameId;
83
+ is_equipped?: boolean;
84
+ }[];
85
+ effects: {
86
+ display_string: LocalizedString;
87
+ required_count: number;
88
+ is_active?: boolean;
89
+ }[];
90
+ display_string: LocalizedString;
91
+ };
92
+ level: {
93
+ value: number;
94
+ display_string: LocalizedString;
95
+ };
96
+ transmog: {
97
+ item: KeyNameId;
98
+ display_string: LocalizedString;
99
+ item_modified_appearance_id: number;
100
+ };
101
+ durability: {
102
+ value: number;
103
+ display_string: LocalizedString;
104
+ };
105
+ is_subclass_hidden?: boolean;
106
+ name_description: {
107
+ display_string: LocalizedString;
108
+ color: Rgba;
109
+ };
110
+ }[];
111
+ equipped_item_sets: {
112
+ item_set: KeyNameId;
113
+ items: {
114
+ item: KeyNameId;
115
+ is_equipped?: boolean;
116
+ }[];
117
+ effects: {
118
+ display_string: LocalizedString;
119
+ required_count: number;
120
+ is_active: boolean;
121
+ }[];
122
+ display_string: LocalizedString;
123
+ }[];
124
+ }
125
+ /**
126
+ * Returns a summary of the items equipped by a character.
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 items equipped by a character.
131
+ */
132
+ export declare function characterEquipments(realmSlug: string, characterName: string): Promise<characterEquipments>;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.characterEquipments = void 0;
4
+ const index_js_1 = require("../../shared/index.js");
5
+ /**
6
+ * Returns a summary of the items equipped by a character.
7
+ *
8
+ * @param realmSlug - The slug of the realm.
9
+ * @param characterName - The lowercase name of the character.
10
+ * @returns A promise that resolves to an object representing details about items equipped by a character.
11
+ */
12
+ async function characterEquipments(realmSlug, characterName) {
13
+ return await (0, index_js_1.request)({
14
+ method: "GET",
15
+ url: `/profile/wow/character/${realmSlug}/${characterName}/equipment`,
16
+ namespace: "profile",
17
+ });
18
+ }
19
+ exports.characterEquipments = characterEquipments;
@@ -0,0 +1,21 @@
1
+ import type { Character, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
+ export interface CharacterHunterPets extends LinkSelfHref {
3
+ character: Character;
4
+ hunter_pets: {
5
+ name: LocalizedString;
6
+ level: number;
7
+ creature: KeyNameId;
8
+ slot: number;
9
+ is_active?: boolean;
10
+ is_summoned?: boolean;
11
+ creature_display: KeyId;
12
+ }[];
13
+ }
14
+ /**
15
+ * If the character is a hunter, returns a summary of the character's hunter pets. Otherwise, returns an HTTP 404 Not Found error.
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 summary of the character's hunter pets.
20
+ */
21
+ export declare function characterHunterPets(realmSlug: string, characterName: string): Promise<CharacterHunterPets>;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.characterHunterPets = void 0;
4
+ const index_js_1 = require("../../shared/index.js");
5
+ /**
6
+ * If the character is a hunter, returns a summary of the character's hunter pets. Otherwise, returns an HTTP 404 Not Found error.
7
+ *
8
+ * @param realmSlug - The slug of the realm.
9
+ * @param characterName - The lowercase name of the character.
10
+ * @returns A promise that resolves to an object representing a summary of the character's hunter pets.
11
+ */
12
+ async function characterHunterPets(realmSlug, characterName) {
13
+ return await (0, index_js_1.request)({
14
+ method: "GET",
15
+ url: `/profile/wow/character/${realmSlug}/${characterName}/hunter-pets`,
16
+ namespace: "profile",
17
+ });
18
+ }
19
+ exports.characterHunterPets = characterHunterPets;
@@ -0,0 +1,13 @@
1
+ import type { Asset, Character, LinkSelfHref } from "../../shared/index.js";
2
+ export interface CharacterMedia extends LinkSelfHref {
3
+ character: Character;
4
+ assets: Asset[];
5
+ }
6
+ /**
7
+ * Returns a summary of the media assets available for a character (such as an avatar render).
8
+ *
9
+ * @param realmSlug - The slug of the realm.
10
+ * @param characterName - The lowercase name of the character.
11
+ * @returns A promise that resolves to an object representing a summary of the media assets available for a character.
12
+ */
13
+ export declare function characterMedia(realmSlug: string, characterName: string): Promise<CharacterMedia>;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.characterMedia = void 0;
4
+ const index_js_1 = require("../../shared/index.js");
5
+ /**
6
+ * Returns a summary of the media assets available for a character (such as an avatar render).
7
+ *
8
+ * @param realmSlug - The slug of the realm.
9
+ * @param characterName - The lowercase name of the character.
10
+ * @returns A promise that resolves to an object representing a summary of the media assets available for a character.
11
+ */
12
+ async function characterMedia(realmSlug, characterName) {
13
+ return await (0, index_js_1.request)({
14
+ method: "GET",
15
+ url: `/profile/wow/character/${realmSlug}/${characterName}/character-media`,
16
+ namespace: "profile",
17
+ });
18
+ }
19
+ exports.characterMedia = characterMedia;