@pinta365/blizzard_api 0.3.7 → 0.3.9

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 (277) hide show
  1. package/esm/mod.d.ts +3 -2
  2. package/esm/mod.js +3 -2
  3. package/package.json +1 -1
  4. package/script/mod.d.ts +3 -2
  5. package/script/mod.js +6 -1
  6. package/esm/src/hearthstone/game_data/card_backs.d.ts +0 -22
  7. package/esm/src/hearthstone/game_data/card_backs.js +0 -23
  8. package/esm/src/hearthstone/game_data/cards.d.ts +0 -37
  9. package/esm/src/hearthstone/game_data/cards.js +0 -27
  10. package/esm/src/hearthstone/game_data/decks.d.ts +0 -88
  11. package/esm/src/hearthstone/game_data/decks.js +0 -14
  12. package/esm/src/hearthstone/game_data/metadata.d.ts +0 -95
  13. package/esm/src/hearthstone/game_data/metadata.js +0 -12
  14. package/esm/src/hearthstone/index.d.ts +0 -4
  15. package/esm/src/hearthstone/index.js +0 -4
  16. package/esm/src/hearthstone/search.d.ts +0 -20
  17. package/esm/src/hearthstone/search.js +0 -29
  18. package/esm/src/shared/auth.d.ts +0 -24
  19. package/esm/src/shared/auth.js +0 -58
  20. package/esm/src/shared/config.d.ts +0 -40
  21. package/esm/src/shared/config.js +0 -48
  22. package/esm/src/shared/errors.d.ts +0 -44
  23. package/esm/src/shared/errors.js +0 -83
  24. package/esm/src/shared/index.d.ts +0 -4
  25. package/esm/src/shared/index.js +0 -3
  26. package/esm/src/shared/request.d.ts +0 -13
  27. package/esm/src/shared/request.js +0 -46
  28. package/esm/src/shared/types.d.ts +0 -120
  29. package/esm/src/shared/types.js +0 -2
  30. package/esm/src/starcraft2/game_data/league.d.ts +0 -32
  31. package/esm/src/starcraft2/game_data/league.js +0 -21
  32. package/esm/src/starcraft2/index.d.ts +0 -1
  33. package/esm/src/starcraft2/index.js +0 -1
  34. package/esm/src/wow/game_data/achievement.d.ts +0 -84
  35. package/esm/src/wow/game_data/achievement.js +0 -69
  36. package/esm/src/wow/game_data/auction_house.d.ts +0 -64
  37. package/esm/src/wow/game_data/auction_house.js +0 -34
  38. package/esm/src/wow/game_data/azerite_essence.d.ts +0 -49
  39. package/esm/src/wow/game_data/azerite_essence.js +0 -49
  40. package/esm/src/wow/game_data/connected_realm.d.ts +0 -54
  41. package/esm/src/wow/game_data/connected_realm.js +0 -36
  42. package/esm/src/wow/game_data/covenant.d.ts +0 -108
  43. package/esm/src/wow/game_data/covenant.js +0 -89
  44. package/esm/src/wow/game_data/creature.d.ts +0 -97
  45. package/esm/src/wow/game_data/creature.js +0 -100
  46. package/esm/src/wow/game_data/guild_crest.d.ts +0 -55
  47. package/esm/src/wow/game_data/guild_crest.js +0 -39
  48. package/esm/src/wow/game_data/heirloom.d.ts +0 -79
  49. package/esm/src/wow/game_data/heirloom.js +0 -26
  50. package/esm/src/wow/game_data/item.d.ts +0 -166
  51. package/esm/src/wow/game_data/item.js +0 -101
  52. package/esm/src/wow/game_data/journal.d.ts +0 -121
  53. package/esm/src/wow/game_data/journal.js +0 -99
  54. package/esm/src/wow/game_data/keystone_affix.d.ts +0 -34
  55. package/esm/src/wow/game_data/keystone_affix.js +0 -39
  56. package/esm/src/wow/game_data/media_search.d.ts +0 -8
  57. package/esm/src/wow/game_data/media_search.js +0 -10
  58. package/esm/src/wow/game_data/modified_crafting.d.ts +0 -56
  59. package/esm/src/wow/game_data/modified_crafting.js +0 -63
  60. package/esm/src/wow/game_data/mount.d.ts +0 -30
  61. package/esm/src/wow/game_data/mount.js +0 -30
  62. package/esm/src/wow/game_data/mythic_keystone_dungeon.d.ts +0 -91
  63. package/esm/src/wow/game_data/mythic_keystone_dungeon.js +0 -88
  64. package/esm/src/wow/game_data/mythic_keystone_leaderboard.d.ts +0 -58
  65. package/esm/src/wow/game_data/mythic_keystone_leaderboard.js +0 -29
  66. package/esm/src/wow/game_data/mythic_raid_leaderboard.d.ts +0 -31
  67. package/esm/src/wow/game_data/mythic_raid_leaderboard.js +0 -15
  68. package/esm/src/wow/game_data/pet.d.ts +0 -91
  69. package/esm/src/wow/game_data/pet.js +0 -77
  70. package/esm/src/wow/game_data/playable_class.d.ts +0 -57
  71. package/esm/src/wow/game_data/playable_class.js +0 -52
  72. package/esm/src/wow/game_data/playable_race.d.ts +0 -29
  73. package/esm/src/wow/game_data/playable_race.js +0 -26
  74. package/esm/src/wow/game_data/power_type.d.ts +0 -21
  75. package/esm/src/wow/game_data/power_type.js +0 -26
  76. package/esm/src/wow/game_data/profession.d.ts +0 -85
  77. package/esm/src/wow/game_data/profession.js +0 -79
  78. package/esm/src/wow/game_data/pvp_season.d.ts +0 -99
  79. package/esm/src/wow/game_data/pvp_season.js +0 -66
  80. package/esm/src/wow/game_data/pvp_tier.d.ts +0 -40
  81. package/esm/src/wow/game_data/pvp_tier.js +0 -39
  82. package/esm/src/wow/game_data/quest.d.ts +0 -114
  83. package/esm/src/wow/game_data/quest.js +0 -101
  84. package/esm/src/wow/game_data/realm.d.ts +0 -42
  85. package/esm/src/wow/game_data/realm.js +0 -36
  86. package/esm/src/wow/game_data/region.d.ts +0 -24
  87. package/esm/src/wow/game_data/region.js +0 -26
  88. package/esm/src/wow/game_data/reputations.d.ts +0 -50
  89. package/esm/src/wow/game_data/reputations.js +0 -51
  90. package/esm/src/wow/game_data/spell.d.ts +0 -33
  91. package/esm/src/wow/game_data/spell.js +0 -37
  92. package/esm/src/wow/game_data/talent.d.ts +0 -129
  93. package/esm/src/wow/game_data/talent.js +0 -90
  94. package/esm/src/wow/game_data/tech_talent.d.ts +0 -70
  95. package/esm/src/wow/game_data/tech_talent.js +0 -64
  96. package/esm/src/wow/game_data/title.d.ts +0 -25
  97. package/esm/src/wow/game_data/title.js +0 -26
  98. package/esm/src/wow/game_data/token.d.ts +0 -16
  99. package/esm/src/wow/game_data/token.js +0 -19
  100. package/esm/src/wow/game_data/toy.d.ts +0 -24
  101. package/esm/src/wow/game_data/toy.js +0 -26
  102. package/esm/src/wow/index.d.ts +0 -53
  103. package/esm/src/wow/index.js +0 -55
  104. package/esm/src/wow/profile/character_achievements.d.ts +0 -87
  105. package/esm/src/wow/profile/character_achievements.js +0 -29
  106. package/esm/src/wow/profile/character_appearance.d.ts +0 -75
  107. package/esm/src/wow/profile/character_appearance.js +0 -15
  108. package/esm/src/wow/profile/character_collections.d.ts +0 -92
  109. package/esm/src/wow/profile/character_collections.js +0 -71
  110. package/esm/src/wow/profile/character_encounters.d.ts +0 -77
  111. package/esm/src/wow/profile/character_encounters.js +0 -43
  112. package/esm/src/wow/profile/character_equipment.d.ts +0 -132
  113. package/esm/src/wow/profile/character_equipment.js +0 -15
  114. package/esm/src/wow/profile/character_hunter_pets.d.ts +0 -21
  115. package/esm/src/wow/profile/character_hunter_pets.js +0 -15
  116. package/esm/src/wow/profile/character_media.d.ts +0 -13
  117. package/esm/src/wow/profile/character_media.js +0 -15
  118. package/esm/src/wow/profile/character_mythic_keystone_profile.d.ts +0 -58
  119. package/esm/src/wow/profile/character_mythic_keystone_profile.js +0 -32
  120. package/esm/src/wow/profile/character_professions.d.ts +0 -26
  121. package/esm/src/wow/profile/character_professions.js +0 -15
  122. package/esm/src/wow/profile/character_profile.d.ts +0 -82
  123. package/esm/src/wow/profile/character_profile.js +0 -40
  124. package/esm/src/wow/profile/character_pvp.d.ts +0 -51
  125. package/esm/src/wow/profile/character_pvp.js +0 -30
  126. package/esm/src/wow/profile/character_quests.d.ts +0 -28
  127. package/esm/src/wow/profile/character_quests.js +0 -29
  128. package/esm/src/wow/profile/character_reputations.d.ts +0 -22
  129. package/esm/src/wow/profile/character_reputations.js +0 -15
  130. package/esm/src/wow/profile/character_soulbinds.d.ts +0 -30
  131. package/esm/src/wow/profile/character_soulbinds.js +0 -15
  132. package/esm/src/wow/profile/character_specializations.d.ts +0 -44
  133. package/esm/src/wow/profile/character_specializations.js +0 -15
  134. package/esm/src/wow/profile/character_statistics.d.ts +0 -116
  135. package/esm/src/wow/profile/character_statistics.js +0 -15
  136. package/esm/src/wow/profile/character_titles.d.ts +0 -13
  137. package/esm/src/wow/profile/character_titles.js +0 -15
  138. package/esm/src/wow/profile/guild.d.ts +0 -117
  139. package/esm/src/wow/profile/guild.js +0 -57
  140. package/esm/src/wow/search.d.ts +0 -21
  141. package/esm/src/wow/search.js +0 -30
  142. package/script/src/hearthstone/game_data/card_backs.d.ts +0 -22
  143. package/script/src/hearthstone/game_data/card_backs.js +0 -28
  144. package/script/src/hearthstone/game_data/cards.d.ts +0 -37
  145. package/script/src/hearthstone/game_data/cards.js +0 -32
  146. package/script/src/hearthstone/game_data/decks.d.ts +0 -88
  147. package/script/src/hearthstone/game_data/decks.js +0 -18
  148. package/script/src/hearthstone/game_data/metadata.d.ts +0 -95
  149. package/script/src/hearthstone/game_data/metadata.js +0 -16
  150. package/script/src/hearthstone/index.d.ts +0 -4
  151. package/script/src/hearthstone/index.js +0 -13
  152. package/script/src/hearthstone/search.d.ts +0 -20
  153. package/script/src/hearthstone/search.js +0 -33
  154. package/script/src/shared/auth.d.ts +0 -24
  155. package/script/src/shared/auth.js +0 -63
  156. package/script/src/shared/config.d.ts +0 -40
  157. package/script/src/shared/config.js +0 -55
  158. package/script/src/shared/errors.d.ts +0 -44
  159. package/script/src/shared/errors.js +0 -91
  160. package/script/src/shared/index.d.ts +0 -4
  161. package/script/src/shared/index.js +0 -9
  162. package/script/src/shared/request.d.ts +0 -13
  163. package/script/src/shared/request.js +0 -50
  164. package/script/src/shared/types.d.ts +0 -120
  165. package/script/src/shared/types.js +0 -3
  166. package/script/src/starcraft2/game_data/league.d.ts +0 -32
  167. package/script/src/starcraft2/game_data/league.js +0 -25
  168. package/script/src/starcraft2/index.d.ts +0 -1
  169. package/script/src/starcraft2/index.js +0 -5
  170. package/script/src/wow/game_data/achievement.d.ts +0 -84
  171. package/script/src/wow/game_data/achievement.js +0 -77
  172. package/script/src/wow/game_data/auction_house.d.ts +0 -64
  173. package/script/src/wow/game_data/auction_house.js +0 -39
  174. package/script/src/wow/game_data/azerite_essence.d.ts +0 -49
  175. package/script/src/wow/game_data/azerite_essence.js +0 -56
  176. package/script/src/wow/game_data/connected_realm.d.ts +0 -54
  177. package/script/src/wow/game_data/connected_realm.js +0 -42
  178. package/script/src/wow/game_data/covenant.d.ts +0 -108
  179. package/script/src/wow/game_data/covenant.js +0 -99
  180. package/script/src/wow/game_data/creature.d.ts +0 -97
  181. package/script/src/wow/game_data/creature.js +0 -111
  182. package/script/src/wow/game_data/guild_crest.d.ts +0 -55
  183. package/script/src/wow/game_data/guild_crest.js +0 -45
  184. package/script/src/wow/game_data/heirloom.d.ts +0 -79
  185. package/script/src/wow/game_data/heirloom.js +0 -31
  186. package/script/src/wow/game_data/item.d.ts +0 -166
  187. package/script/src/wow/game_data/item.js +0 -112
  188. package/script/src/wow/game_data/journal.d.ts +0 -121
  189. package/script/src/wow/game_data/journal.js +0 -110
  190. package/script/src/wow/game_data/keystone_affix.d.ts +0 -34
  191. package/script/src/wow/game_data/keystone_affix.js +0 -45
  192. package/script/src/wow/game_data/media_search.d.ts +0 -8
  193. package/script/src/wow/game_data/media_search.js +0 -14
  194. package/script/src/wow/game_data/modified_crafting.d.ts +0 -56
  195. package/script/src/wow/game_data/modified_crafting.js +0 -71
  196. package/script/src/wow/game_data/mount.d.ts +0 -30
  197. package/script/src/wow/game_data/mount.js +0 -36
  198. package/script/src/wow/game_data/mythic_keystone_dungeon.d.ts +0 -91
  199. package/script/src/wow/game_data/mythic_keystone_dungeon.js +0 -98
  200. package/script/src/wow/game_data/mythic_keystone_leaderboard.d.ts +0 -58
  201. package/script/src/wow/game_data/mythic_keystone_leaderboard.js +0 -34
  202. package/script/src/wow/game_data/mythic_raid_leaderboard.d.ts +0 -31
  203. package/script/src/wow/game_data/mythic_raid_leaderboard.js +0 -19
  204. package/script/src/wow/game_data/pet.d.ts +0 -91
  205. package/script/src/wow/game_data/pet.js +0 -86
  206. package/script/src/wow/game_data/playable_class.d.ts +0 -57
  207. package/script/src/wow/game_data/playable_class.js +0 -59
  208. package/script/src/wow/game_data/playable_race.d.ts +0 -29
  209. package/script/src/wow/game_data/playable_race.js +0 -31
  210. package/script/src/wow/game_data/power_type.d.ts +0 -21
  211. package/script/src/wow/game_data/power_type.js +0 -31
  212. package/script/src/wow/game_data/profession.d.ts +0 -85
  213. package/script/src/wow/game_data/profession.js +0 -88
  214. package/script/src/wow/game_data/pvp_season.d.ts +0 -99
  215. package/script/src/wow/game_data/pvp_season.js +0 -74
  216. package/script/src/wow/game_data/pvp_tier.d.ts +0 -40
  217. package/script/src/wow/game_data/pvp_tier.js +0 -45
  218. package/script/src/wow/game_data/quest.d.ts +0 -114
  219. package/script/src/wow/game_data/quest.js +0 -112
  220. package/script/src/wow/game_data/realm.d.ts +0 -42
  221. package/script/src/wow/game_data/realm.js +0 -42
  222. package/script/src/wow/game_data/region.d.ts +0 -24
  223. package/script/src/wow/game_data/region.js +0 -31
  224. package/script/src/wow/game_data/reputations.d.ts +0 -50
  225. package/script/src/wow/game_data/reputations.js +0 -58
  226. package/script/src/wow/game_data/spell.d.ts +0 -33
  227. package/script/src/wow/game_data/spell.js +0 -43
  228. package/script/src/wow/game_data/talent.d.ts +0 -129
  229. package/script/src/wow/game_data/talent.js +0 -100
  230. package/script/src/wow/game_data/tech_talent.d.ts +0 -70
  231. package/script/src/wow/game_data/tech_talent.js +0 -72
  232. package/script/src/wow/game_data/title.d.ts +0 -25
  233. package/script/src/wow/game_data/title.js +0 -31
  234. package/script/src/wow/game_data/token.d.ts +0 -16
  235. package/script/src/wow/game_data/token.js +0 -23
  236. package/script/src/wow/game_data/toy.d.ts +0 -24
  237. package/script/src/wow/game_data/toy.js +0 -31
  238. package/script/src/wow/index.d.ts +0 -53
  239. package/script/src/wow/index.js +0 -228
  240. package/script/src/wow/profile/character_achievements.d.ts +0 -87
  241. package/script/src/wow/profile/character_achievements.js +0 -34
  242. package/script/src/wow/profile/character_appearance.d.ts +0 -75
  243. package/script/src/wow/profile/character_appearance.js +0 -19
  244. package/script/src/wow/profile/character_collections.d.ts +0 -92
  245. package/script/src/wow/profile/character_collections.js +0 -79
  246. package/script/src/wow/profile/character_encounters.d.ts +0 -77
  247. package/script/src/wow/profile/character_encounters.js +0 -49
  248. package/script/src/wow/profile/character_equipment.d.ts +0 -132
  249. package/script/src/wow/profile/character_equipment.js +0 -19
  250. package/script/src/wow/profile/character_hunter_pets.d.ts +0 -21
  251. package/script/src/wow/profile/character_hunter_pets.js +0 -19
  252. package/script/src/wow/profile/character_media.d.ts +0 -13
  253. package/script/src/wow/profile/character_media.js +0 -19
  254. package/script/src/wow/profile/character_mythic_keystone_profile.d.ts +0 -58
  255. package/script/src/wow/profile/character_mythic_keystone_profile.js +0 -37
  256. package/script/src/wow/profile/character_professions.d.ts +0 -26
  257. package/script/src/wow/profile/character_professions.js +0 -19
  258. package/script/src/wow/profile/character_profile.d.ts +0 -82
  259. package/script/src/wow/profile/character_profile.js +0 -45
  260. package/script/src/wow/profile/character_pvp.d.ts +0 -51
  261. package/script/src/wow/profile/character_pvp.js +0 -35
  262. package/script/src/wow/profile/character_quests.d.ts +0 -28
  263. package/script/src/wow/profile/character_quests.js +0 -34
  264. package/script/src/wow/profile/character_reputations.d.ts +0 -22
  265. package/script/src/wow/profile/character_reputations.js +0 -19
  266. package/script/src/wow/profile/character_soulbinds.d.ts +0 -30
  267. package/script/src/wow/profile/character_soulbinds.js +0 -19
  268. package/script/src/wow/profile/character_specializations.d.ts +0 -44
  269. package/script/src/wow/profile/character_specializations.js +0 -19
  270. package/script/src/wow/profile/character_statistics.d.ts +0 -116
  271. package/script/src/wow/profile/character_statistics.js +0 -19
  272. package/script/src/wow/profile/character_titles.d.ts +0 -13
  273. package/script/src/wow/profile/character_titles.js +0 -19
  274. package/script/src/wow/profile/guild.d.ts +0 -117
  275. package/script/src/wow/profile/guild.js +0 -64
  276. package/script/src/wow/search.d.ts +0 -21
  277. package/script/src/wow/search.js +0 -34
@@ -1,26 +0,0 @@
1
- import type { Character, KeyNameId, LinkSelfHref, NameId } from "../../shared/index.js";
2
- export interface Tier {
3
- skill_points: number;
4
- max_skill_points: number;
5
- tier: NameId;
6
- known_recipes: KeyNameId[];
7
- }
8
- export interface Profession {
9
- profession: KeyNameId;
10
- skill_points?: number;
11
- max_skill_points?: number;
12
- tiers?: Tier[];
13
- }
14
- export interface CharacterProfessions extends LinkSelfHref {
15
- character: Character;
16
- primaries: Profession[];
17
- secondaries: Profession[];
18
- }
19
- /**
20
- * Returns a summary of professions for a character.
21
- *
22
- * @param realmSlug - The slug of the realm.
23
- * @param characterName - The lowercase name of the character.
24
- * @returns A promise that resolves to an object representing a summary of professions for a character.
25
- */
26
- export declare function characterProfessions(realmSlug: string, characterName: string): Promise<CharacterProfessions>;
@@ -1,15 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns a summary of professions for a character.
4
- *
5
- * @param realmSlug - The slug of the realm.
6
- * @param characterName - The lowercase name of the character.
7
- * @returns A promise that resolves to an object representing a summary of professions for a character.
8
- */
9
- export async function characterProfessions(realmSlug, characterName) {
10
- return await request({
11
- method: "GET",
12
- url: `/profile/wow/character/${realmSlug}/${characterName}/professions`,
13
- namespace: "profile",
14
- });
15
- }
@@ -1,82 +0,0 @@
1
- import { KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
2
- export interface Href {
3
- href: string;
4
- }
5
- export interface Realm extends KeyNameId {
6
- slug: string;
7
- }
8
- export interface CharacterProfile extends LinkSelfHref {
9
- id: number;
10
- name: LocalizedString;
11
- gender: TypeName;
12
- faction: TypeName;
13
- race: KeyNameId;
14
- character_class: KeyNameId;
15
- active_spec: KeyNameId;
16
- realm: Realm;
17
- guild: {
18
- key: Href;
19
- name: LocalizedString;
20
- id: number;
21
- realm: Realm;
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
- }
52
- export interface CharacterProfileStatus extends LinkSelfHref {
53
- id: number;
54
- is_valid: boolean;
55
- }
56
- /**
57
- * Returns a profile summary for a character.
58
- *
59
- * @param realmSlug - The slug of the realm.
60
- * @param characterName - The lowercase name of the character.
61
- * @returns A promise that resolves to an object representing a profile summary.
62
- */
63
- export declare function characterProfile(realmSlug: string, characterName: string): Promise<CharacterProfile>;
64
- /**
65
- * 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:
66
- *
67
- * an HTTP 404 Not Found error is returned
68
- * the is_valid value is false
69
- * the returned character ID doesn't match the previously recorded value for the character
70
- *
71
- * The following example illustrates how to use this endpoint:
72
- *
73
- * A client requests and stores information about a character, including its unique character ID and the timestamp of the request.
74
- * After 30 days, the client makes a request to the status endpoint to verify if the character information is still valid.
75
- * If character cannot be found, is not valid, or the characters IDs do not match, the client removes the information from their application.
76
- * If the character is valid and the character IDs match, the client retains the data for another 30 days.
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 profile summary status.
81
- */
82
- export declare function characterProfileStatus(realmSlug: string, characterName: string): Promise<CharacterProfileStatus>;
@@ -1,40 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns a profile summary for a character.
4
- *
5
- * @param realmSlug - The slug of the realm.
6
- * @param characterName - The lowercase name of the character.
7
- * @returns A promise that resolves to an object representing a profile summary.
8
- */
9
- export async function characterProfile(realmSlug, characterName) {
10
- return await request({
11
- method: "GET",
12
- url: `/profile/wow/character/${realmSlug}/${characterName}`,
13
- namespace: "profile",
14
- });
15
- }
16
- /**
17
- * 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:
18
- *
19
- * an HTTP 404 Not Found error is returned
20
- * the is_valid value is false
21
- * the returned character ID doesn't match the previously recorded value for the character
22
- *
23
- * The following example illustrates how to use this endpoint:
24
- *
25
- * A client requests and stores information about a character, including its unique character ID and the timestamp of the request.
26
- * After 30 days, the client makes a request to the status endpoint to verify if the character information is still valid.
27
- * If character cannot be found, is not valid, or the characters IDs do not match, the client removes the information from their application.
28
- * If the character is valid and the character IDs match, the client retains the data for another 30 days.
29
- *
30
- * @param realmSlug - The slug of the realm.
31
- * @param characterName - The lowercase name of the character.
32
- * @returns A promise that resolves to an object representing a profile summary status.
33
- */
34
- export async function characterProfileStatus(realmSlug, characterName) {
35
- return await request({
36
- method: "GET",
37
- url: `/profile/wow/character/${realmSlug}/${characterName}/status`,
38
- namespace: "profile",
39
- });
40
- }
@@ -1,51 +0,0 @@
1
- import type { Character, KeyId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
2
- export interface MatchStatistic {
3
- played: number;
4
- won: number;
5
- lost: number;
6
- }
7
- export interface CharacterPvpBracketStatistics extends LinkSelfHref {
8
- character: Character;
9
- faction: TypeName;
10
- bracket: {
11
- id: number;
12
- type: string;
13
- };
14
- rating: number;
15
- season: KeyId;
16
- tier: KeyId;
17
- season_match_statistics: MatchStatistic;
18
- weekly_match_statistics: MatchStatistic;
19
- }
20
- export interface CharacterPvpSummary extends LinkSelfHref {
21
- brackets: {
22
- href: string;
23
- }[];
24
- honor_level: number;
25
- pvp_map_statistics: {
26
- world_map: {
27
- name: LocalizedString;
28
- id: number;
29
- };
30
- match_statistics: MatchStatistic;
31
- }[];
32
- honorable_kills: number;
33
- character: Character;
34
- }
35
- /**
36
- * Returns the PvP bracket statistics for a character.
37
- *
38
- * @param realmSlug - The slug of the realm.
39
- * @param characterName - The lowercase name of the character.
40
- * @param pvpBracket - The PvP bracket type.
41
- * @returns A promise that resolves to an object representing the PvP bracket statistics for a character.
42
- */
43
- export declare function characterPvpBracketStatistics(realmSlug: string, characterName: string, pvpBracket: string): Promise<CharacterPvpBracketStatistics>;
44
- /**
45
- * Returns a PvP summary for a character.
46
- *
47
- * @param realmSlug - The slug of the realm.
48
- * @param characterName - The lowercase name of the character.
49
- * @returns A promise that resolves to an object representing the PvP summary for a character.
50
- */
51
- export declare function characterPvpSummary(realmSlug: string, characterName: string): Promise<CharacterPvpSummary>;
@@ -1,30 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns the PvP bracket statistics for a character.
4
- *
5
- * @param realmSlug - The slug of the realm.
6
- * @param characterName - The lowercase name of the character.
7
- * @param pvpBracket - The PvP bracket type.
8
- * @returns A promise that resolves to an object representing the PvP bracket statistics for a character.
9
- */
10
- export async function characterPvpBracketStatistics(realmSlug, characterName, pvpBracket) {
11
- return await request({
12
- method: "GET",
13
- url: `/profile/wow/character/${realmSlug}/${characterName}/pvp-bracket/${pvpBracket}`,
14
- namespace: "profile",
15
- });
16
- }
17
- /**
18
- * Returns a PvP summary for a character.
19
- *
20
- * @param realmSlug - The slug of the realm.
21
- * @param characterName - The lowercase name of the character.
22
- * @returns A promise that resolves to an object representing the PvP summary for a character.
23
- */
24
- export async function characterPvpSummary(realmSlug, characterName) {
25
- return await request({
26
- method: "GET",
27
- url: `/profile/wow/character/${realmSlug}/${characterName}/pvp-summary`,
28
- namespace: "profile",
29
- });
30
- }
@@ -1,28 +0,0 @@
1
- import type { Character, KeyNameId, LinkSelfHref } from "../../shared/index.js";
2
- export interface CharacterQuests extends LinkSelfHref {
3
- character: Character;
4
- in_progress: KeyNameId[];
5
- completed: {
6
- href: string;
7
- };
8
- }
9
- export interface CharacterCompletedQuests extends LinkSelfHref {
10
- character: Character;
11
- quests: KeyNameId[];
12
- }
13
- /**
14
- * Returns a character's active quests as well as a link to the character's completed quests.
15
- *
16
- * @param realmSlug - The slug of the realm.
17
- * @param characterName - The lowercase name of the character.
18
- * @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.
19
- */
20
- export declare function characterQuests(realmSlug: string, characterName: string): Promise<CharacterQuests>;
21
- /**
22
- * Returns a list of quests that a character has completed.
23
- *
24
- * @param realmSlug - The slug of the realm.
25
- * @param characterName - The lowercase name of the character.
26
- * @returns A promise that resolves to an object representing a list of quests that a character has completed.
27
- */
28
- export declare function characterCompletedQuests(realmSlug: string, characterName: string): Promise<CharacterCompletedQuests>;
@@ -1,29 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns a character's active quests as well as a link to the character's completed quests.
4
- *
5
- * @param realmSlug - The slug of the realm.
6
- * @param characterName - The lowercase name of the character.
7
- * @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.
8
- */
9
- export async function characterQuests(realmSlug, characterName) {
10
- return await request({
11
- method: "GET",
12
- url: `/profile/wow/character/${realmSlug}/${characterName}/quests`,
13
- namespace: "profile",
14
- });
15
- }
16
- /**
17
- * Returns a list of quests that a character has completed.
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 a list of quests that a character has completed.
22
- */
23
- export async function characterCompletedQuests(realmSlug, characterName) {
24
- return await request({
25
- method: "GET",
26
- url: `/profile/wow/character/${realmSlug}/${characterName}/quests/completed`,
27
- namespace: "profile",
28
- });
29
- }
@@ -1,22 +0,0 @@
1
- import type { Character, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- export interface CharacterReputations extends LinkSelfHref {
3
- character: Character;
4
- reputations: {
5
- faction: KeyNameId;
6
- standing: {
7
- raw: number;
8
- value: number;
9
- max: number;
10
- tier: number;
11
- name: LocalizedString;
12
- };
13
- }[];
14
- }
15
- /**
16
- * Returns a summary of a character's reputations.
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 character's reputations.
21
- */
22
- export declare function characterReputations(realmSlug: string, characterName: string): Promise<CharacterReputations>;
@@ -1,15 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns a summary of a character's reputations.
4
- *
5
- * @param realmSlug - The slug of the realm.
6
- * @param characterName - The lowercase name of the character.
7
- * @returns A promise that resolves to an object representing a character's reputations.
8
- */
9
- export async function characterReputations(realmSlug, characterName) {
10
- return await request({
11
- method: "GET",
12
- url: `/profile/wow/character/${realmSlug}/${characterName}/reputations`,
13
- namespace: "profile",
14
- });
15
- }
@@ -1,30 +0,0 @@
1
- import type { Character, KeyNameId, LinkSelfHref, TypeName } from "../../shared/index.js";
2
- export interface CharacterSoulbinds extends LinkSelfHref {
3
- character: Character;
4
- chosen_covenant: KeyNameId;
5
- renown_level: number;
6
- soulbinds: {
7
- soulbind: KeyNameId;
8
- traits?: {
9
- trait?: KeyNameId;
10
- conduit_socket?: {
11
- type: TypeName;
12
- socket: {
13
- conduit: KeyNameId;
14
- rank: number;
15
- };
16
- };
17
- tier: number;
18
- display_order: number;
19
- }[];
20
- is_active?: boolean;
21
- }[];
22
- }
23
- /**
24
- * Returns a character's soulbinds.
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 soulbinds.
29
- */
30
- export declare function characterSoulbinds(realmSlug: string, characterName: string): Promise<CharacterSoulbinds>;
@@ -1,15 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns a character's soulbinds.
4
- *
5
- * @param realmSlug - The slug of the realm.
6
- * @param characterName - The lowercase name of the character.
7
- * @returns A promise that resolves to an object representing a character's soulbinds.
8
- */
9
- export async function characterSoulbinds(realmSlug, characterName) {
10
- return await request({
11
- method: "GET",
12
- url: `/profile/wow/character/${realmSlug}/${characterName}/soulbinds`,
13
- namespace: "profile",
14
- });
15
- }
@@ -1,44 +0,0 @@
1
- import type { Character, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- export interface Detail {
3
- talent: KeyNameId;
4
- spell_tooltip: {
5
- spell: KeyNameId;
6
- description: LocalizedString;
7
- cast_time: LocalizedString;
8
- power_cost?: LocalizedString;
9
- cooldown?: LocalizedString;
10
- range?: LocalizedString;
11
- };
12
- }
13
- export interface Talent {
14
- id: number;
15
- rank: number;
16
- tooltip: Detail;
17
- default_points?: number;
18
- }
19
- export interface CharacterSpecializations extends LinkSelfHref {
20
- specializations: {
21
- specialization: KeyNameId;
22
- glyphs?: KeyNameId[];
23
- pvp_talent_slots: {
24
- selected: Detail;
25
- slot_number: number;
26
- }[];
27
- loadouts: {
28
- is_active: boolean;
29
- talent_loadout_code: string;
30
- selected_class_talents: Talent[];
31
- selected_spec_talents: Talent[];
32
- }[];
33
- }[];
34
- active_specialization: KeyNameId;
35
- character: Character;
36
- }
37
- /**
38
- * Returns a summary of a character's specializations.
39
- *
40
- * @param realmSlug - The slug of the realm.
41
- * @param characterName - The lowercase name of the character.
42
- * @returns A promise that resolves to an object representing a summary of a character's specializations.
43
- */
44
- export declare function characterSpecializations(realmSlug: string, characterName: string): Promise<CharacterSpecializations>;
@@ -1,15 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns a summary of a character's specializations.
4
- *
5
- * @param realmSlug - The slug of the realm.
6
- * @param characterName - The lowercase name of the character.
7
- * @returns A promise that resolves to an object representing a summary of a character's specializations.
8
- */
9
- export async function characterSpecializations(realmSlug, characterName) {
10
- return await request({
11
- method: "GET",
12
- url: `/profile/wow/character/${realmSlug}/${characterName}/specializations`,
13
- namespace: "profile",
14
- });
15
- }
@@ -1,116 +0,0 @@
1
- import type { Character, KeyNameId, LinkSelfHref } from "../../shared/index.js";
2
- export interface CharacterStatistics extends LinkSelfHref {
3
- health: number;
4
- power: number;
5
- power_type: KeyNameId;
6
- speed: {
7
- rating: number;
8
- rating_bonus: number;
9
- };
10
- strength: {
11
- base: number;
12
- effective: number;
13
- };
14
- agility: {
15
- base: number;
16
- effective: number;
17
- };
18
- intellect: {
19
- base: number;
20
- effective: number;
21
- };
22
- stamina: {
23
- base: number;
24
- effective: number;
25
- };
26
- melee_crit: {
27
- rating: number;
28
- rating_bonus: number;
29
- value: number;
30
- };
31
- melee_haste: {
32
- rating: number;
33
- rating_bonus: number;
34
- value: number;
35
- };
36
- mastery: {
37
- rating: number;
38
- rating_bonus: number;
39
- value: number;
40
- };
41
- bonus_armor: number;
42
- lifesteal: {
43
- rating: number;
44
- rating_bonus: number;
45
- value: number;
46
- };
47
- versatility: number;
48
- versatility_damage_done_bonus: number;
49
- versatility_healing_done_bonus: number;
50
- versatility_damage_taken_bonus: number;
51
- avoidance: {
52
- rating: number;
53
- rating_bonus: number;
54
- };
55
- attack_power: number;
56
- main_hand_damage_min: number;
57
- main_hand_damage_max: number;
58
- main_hand_speed: number;
59
- main_hand_dps: number;
60
- off_hand_damage_min: number;
61
- off_hand_damage_max: number;
62
- off_hand_speed: number;
63
- off_hand_dps: number;
64
- spell_power: number;
65
- spell_penetration: number;
66
- spell_crit: {
67
- rating: number;
68
- rating_bonus: number;
69
- value: number;
70
- };
71
- mana_regen: number;
72
- mana_regen_combat: number;
73
- armor: {
74
- base: number;
75
- effective: number;
76
- };
77
- dodge: {
78
- rating: number;
79
- rating_bonus: number;
80
- value: number;
81
- };
82
- parry: {
83
- rating: number;
84
- rating_bonus: number;
85
- value: number;
86
- };
87
- block: {
88
- rating: number;
89
- rating_bonus: number;
90
- value: number;
91
- };
92
- ranged_crit: {
93
- rating: number;
94
- rating_bonus: number;
95
- value: number;
96
- };
97
- ranged_haste: {
98
- rating: number;
99
- rating_bonus: number;
100
- value: number;
101
- };
102
- spell_haste: {
103
- rating: number;
104
- rating_bonus: number;
105
- value: number;
106
- };
107
- character: Character;
108
- }
109
- /**
110
- * Returns a statistics summary for a character.
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 a statistics summary for a character.
115
- */
116
- export declare function characterStatistics(realmSlug: string, characterName: string): Promise<CharacterStatistics>;
@@ -1,15 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns a statistics summary for a character.
4
- *
5
- * @param realmSlug - The slug of the realm.
6
- * @param characterName - The lowercase name of the character.
7
- * @returns A promise that resolves to an object representing a statistics summary for a character.
8
- */
9
- export async function characterStatistics(realmSlug, characterName) {
10
- return await request({
11
- method: "GET",
12
- url: `/profile/wow/character/${realmSlug}/${characterName}/statistics`,
13
- namespace: "profile",
14
- });
15
- }
@@ -1,13 +0,0 @@
1
- import type { Character, KeyNameId, LinkSelfHref } from "../../shared/index.js";
2
- export interface CharacterTitles extends LinkSelfHref {
3
- character: Character;
4
- titles: KeyNameId[];
5
- }
6
- /**
7
- * Returns a summary of titles a character has obtained.
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 titles a character has obtained.
12
- */
13
- export declare function characterTitles(realmSlug: string, characterName: string): Promise<CharacterTitles>;
@@ -1,15 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns a summary of titles a character has obtained.
4
- *
5
- * @param realmSlug - The slug of the realm.
6
- * @param characterName - The lowercase name of the character.
7
- * @returns A promise that resolves to an object representing a summary of titles a character has obtained.
8
- */
9
- export async function characterTitles(realmSlug, characterName) {
10
- return await request({
11
- method: "GET",
12
- url: `/profile/wow/character/${realmSlug}/${characterName}/titles`,
13
- namespace: "profile",
14
- });
15
- }