@pinta365/blizzard_api 0.3.6 → 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 (278) hide show
  1. package/README.md +1 -0
  2. package/esm/mod.d.ts +4 -2
  3. package/esm/mod.js +4 -2
  4. package/package.json +1 -1
  5. package/script/mod.d.ts +4 -2
  6. package/script/mod.js +8 -1
  7. package/esm/src/hearthstone/game_data/card_backs.d.ts +0 -22
  8. package/esm/src/hearthstone/game_data/card_backs.js +0 -23
  9. package/esm/src/hearthstone/game_data/cards.d.ts +0 -37
  10. package/esm/src/hearthstone/game_data/cards.js +0 -27
  11. package/esm/src/hearthstone/game_data/decks.d.ts +0 -88
  12. package/esm/src/hearthstone/game_data/decks.js +0 -14
  13. package/esm/src/hearthstone/game_data/metadata.d.ts +0 -95
  14. package/esm/src/hearthstone/game_data/metadata.js +0 -12
  15. package/esm/src/hearthstone/index.d.ts +0 -4
  16. package/esm/src/hearthstone/index.js +0 -4
  17. package/esm/src/hearthstone/search.d.ts +0 -20
  18. package/esm/src/hearthstone/search.js +0 -29
  19. package/esm/src/shared/auth.d.ts +0 -24
  20. package/esm/src/shared/auth.js +0 -58
  21. package/esm/src/shared/config.d.ts +0 -40
  22. package/esm/src/shared/config.js +0 -48
  23. package/esm/src/shared/errors.d.ts +0 -44
  24. package/esm/src/shared/errors.js +0 -83
  25. package/esm/src/shared/index.d.ts +0 -4
  26. package/esm/src/shared/index.js +0 -3
  27. package/esm/src/shared/request.d.ts +0 -13
  28. package/esm/src/shared/request.js +0 -43
  29. package/esm/src/shared/types.d.ts +0 -120
  30. package/esm/src/shared/types.js +0 -2
  31. package/esm/src/starcraft2/game_data/league.d.ts +0 -32
  32. package/esm/src/starcraft2/game_data/league.js +0 -21
  33. package/esm/src/starcraft2/index.d.ts +0 -1
  34. package/esm/src/starcraft2/index.js +0 -1
  35. package/esm/src/wow/game_data/achievement.d.ts +0 -84
  36. package/esm/src/wow/game_data/achievement.js +0 -69
  37. package/esm/src/wow/game_data/auction_house.d.ts +0 -64
  38. package/esm/src/wow/game_data/auction_house.js +0 -34
  39. package/esm/src/wow/game_data/azerite_essence.d.ts +0 -49
  40. package/esm/src/wow/game_data/azerite_essence.js +0 -49
  41. package/esm/src/wow/game_data/connected_realm.d.ts +0 -54
  42. package/esm/src/wow/game_data/connected_realm.js +0 -36
  43. package/esm/src/wow/game_data/covenant.d.ts +0 -108
  44. package/esm/src/wow/game_data/covenant.js +0 -89
  45. package/esm/src/wow/game_data/creature.d.ts +0 -97
  46. package/esm/src/wow/game_data/creature.js +0 -100
  47. package/esm/src/wow/game_data/guild_crest.d.ts +0 -55
  48. package/esm/src/wow/game_data/guild_crest.js +0 -39
  49. package/esm/src/wow/game_data/heirloom.d.ts +0 -79
  50. package/esm/src/wow/game_data/heirloom.js +0 -26
  51. package/esm/src/wow/game_data/item.d.ts +0 -166
  52. package/esm/src/wow/game_data/item.js +0 -101
  53. package/esm/src/wow/game_data/journal.d.ts +0 -121
  54. package/esm/src/wow/game_data/journal.js +0 -99
  55. package/esm/src/wow/game_data/keystone_affix.d.ts +0 -34
  56. package/esm/src/wow/game_data/keystone_affix.js +0 -39
  57. package/esm/src/wow/game_data/media_search.d.ts +0 -8
  58. package/esm/src/wow/game_data/media_search.js +0 -10
  59. package/esm/src/wow/game_data/modified_crafting.d.ts +0 -56
  60. package/esm/src/wow/game_data/modified_crafting.js +0 -63
  61. package/esm/src/wow/game_data/mount.d.ts +0 -30
  62. package/esm/src/wow/game_data/mount.js +0 -30
  63. package/esm/src/wow/game_data/mythic_keystone_dungeon.d.ts +0 -91
  64. package/esm/src/wow/game_data/mythic_keystone_dungeon.js +0 -88
  65. package/esm/src/wow/game_data/mythic_keystone_leaderboard.d.ts +0 -58
  66. package/esm/src/wow/game_data/mythic_keystone_leaderboard.js +0 -29
  67. package/esm/src/wow/game_data/mythic_raid_leaderboard.d.ts +0 -31
  68. package/esm/src/wow/game_data/mythic_raid_leaderboard.js +0 -15
  69. package/esm/src/wow/game_data/pet.d.ts +0 -91
  70. package/esm/src/wow/game_data/pet.js +0 -77
  71. package/esm/src/wow/game_data/playable_class.d.ts +0 -57
  72. package/esm/src/wow/game_data/playable_class.js +0 -52
  73. package/esm/src/wow/game_data/playable_race.d.ts +0 -29
  74. package/esm/src/wow/game_data/playable_race.js +0 -26
  75. package/esm/src/wow/game_data/power_type.d.ts +0 -21
  76. package/esm/src/wow/game_data/power_type.js +0 -26
  77. package/esm/src/wow/game_data/profession.d.ts +0 -85
  78. package/esm/src/wow/game_data/profession.js +0 -79
  79. package/esm/src/wow/game_data/pvp_season.d.ts +0 -99
  80. package/esm/src/wow/game_data/pvp_season.js +0 -66
  81. package/esm/src/wow/game_data/pvp_tier.d.ts +0 -40
  82. package/esm/src/wow/game_data/pvp_tier.js +0 -39
  83. package/esm/src/wow/game_data/quest.d.ts +0 -114
  84. package/esm/src/wow/game_data/quest.js +0 -101
  85. package/esm/src/wow/game_data/realm.d.ts +0 -42
  86. package/esm/src/wow/game_data/realm.js +0 -36
  87. package/esm/src/wow/game_data/region.d.ts +0 -24
  88. package/esm/src/wow/game_data/region.js +0 -26
  89. package/esm/src/wow/game_data/reputations.d.ts +0 -50
  90. package/esm/src/wow/game_data/reputations.js +0 -51
  91. package/esm/src/wow/game_data/spell.d.ts +0 -33
  92. package/esm/src/wow/game_data/spell.js +0 -37
  93. package/esm/src/wow/game_data/talent.d.ts +0 -129
  94. package/esm/src/wow/game_data/talent.js +0 -90
  95. package/esm/src/wow/game_data/tech_talent.d.ts +0 -70
  96. package/esm/src/wow/game_data/tech_talent.js +0 -64
  97. package/esm/src/wow/game_data/title.d.ts +0 -25
  98. package/esm/src/wow/game_data/title.js +0 -26
  99. package/esm/src/wow/game_data/token.d.ts +0 -16
  100. package/esm/src/wow/game_data/token.js +0 -19
  101. package/esm/src/wow/game_data/toy.d.ts +0 -24
  102. package/esm/src/wow/game_data/toy.js +0 -26
  103. package/esm/src/wow/index.d.ts +0 -53
  104. package/esm/src/wow/index.js +0 -55
  105. package/esm/src/wow/profile/character_achievements.d.ts +0 -87
  106. package/esm/src/wow/profile/character_achievements.js +0 -29
  107. package/esm/src/wow/profile/character_appearance.d.ts +0 -75
  108. package/esm/src/wow/profile/character_appearance.js +0 -15
  109. package/esm/src/wow/profile/character_collections.d.ts +0 -92
  110. package/esm/src/wow/profile/character_collections.js +0 -71
  111. package/esm/src/wow/profile/character_encounters.d.ts +0 -77
  112. package/esm/src/wow/profile/character_encounters.js +0 -43
  113. package/esm/src/wow/profile/character_equipment.d.ts +0 -132
  114. package/esm/src/wow/profile/character_equipment.js +0 -15
  115. package/esm/src/wow/profile/character_hunter_pets.d.ts +0 -21
  116. package/esm/src/wow/profile/character_hunter_pets.js +0 -15
  117. package/esm/src/wow/profile/character_media.d.ts +0 -13
  118. package/esm/src/wow/profile/character_media.js +0 -15
  119. package/esm/src/wow/profile/character_mythic_keystone_profile.d.ts +0 -58
  120. package/esm/src/wow/profile/character_mythic_keystone_profile.js +0 -32
  121. package/esm/src/wow/profile/character_professions.d.ts +0 -26
  122. package/esm/src/wow/profile/character_professions.js +0 -15
  123. package/esm/src/wow/profile/character_profile.d.ts +0 -82
  124. package/esm/src/wow/profile/character_profile.js +0 -40
  125. package/esm/src/wow/profile/character_pvp.d.ts +0 -51
  126. package/esm/src/wow/profile/character_pvp.js +0 -30
  127. package/esm/src/wow/profile/character_quests.d.ts +0 -28
  128. package/esm/src/wow/profile/character_quests.js +0 -29
  129. package/esm/src/wow/profile/character_reputations.d.ts +0 -22
  130. package/esm/src/wow/profile/character_reputations.js +0 -15
  131. package/esm/src/wow/profile/character_soulbinds.d.ts +0 -30
  132. package/esm/src/wow/profile/character_soulbinds.js +0 -15
  133. package/esm/src/wow/profile/character_specializations.d.ts +0 -44
  134. package/esm/src/wow/profile/character_specializations.js +0 -15
  135. package/esm/src/wow/profile/character_statistics.d.ts +0 -116
  136. package/esm/src/wow/profile/character_statistics.js +0 -15
  137. package/esm/src/wow/profile/character_titles.d.ts +0 -13
  138. package/esm/src/wow/profile/character_titles.js +0 -15
  139. package/esm/src/wow/profile/guild.d.ts +0 -117
  140. package/esm/src/wow/profile/guild.js +0 -57
  141. package/esm/src/wow/search.d.ts +0 -21
  142. package/esm/src/wow/search.js +0 -30
  143. package/script/src/hearthstone/game_data/card_backs.d.ts +0 -22
  144. package/script/src/hearthstone/game_data/card_backs.js +0 -28
  145. package/script/src/hearthstone/game_data/cards.d.ts +0 -37
  146. package/script/src/hearthstone/game_data/cards.js +0 -32
  147. package/script/src/hearthstone/game_data/decks.d.ts +0 -88
  148. package/script/src/hearthstone/game_data/decks.js +0 -18
  149. package/script/src/hearthstone/game_data/metadata.d.ts +0 -95
  150. package/script/src/hearthstone/game_data/metadata.js +0 -16
  151. package/script/src/hearthstone/index.d.ts +0 -4
  152. package/script/src/hearthstone/index.js +0 -13
  153. package/script/src/hearthstone/search.d.ts +0 -20
  154. package/script/src/hearthstone/search.js +0 -33
  155. package/script/src/shared/auth.d.ts +0 -24
  156. package/script/src/shared/auth.js +0 -63
  157. package/script/src/shared/config.d.ts +0 -40
  158. package/script/src/shared/config.js +0 -55
  159. package/script/src/shared/errors.d.ts +0 -44
  160. package/script/src/shared/errors.js +0 -91
  161. package/script/src/shared/index.d.ts +0 -4
  162. package/script/src/shared/index.js +0 -9
  163. package/script/src/shared/request.d.ts +0 -13
  164. package/script/src/shared/request.js +0 -47
  165. package/script/src/shared/types.d.ts +0 -120
  166. package/script/src/shared/types.js +0 -3
  167. package/script/src/starcraft2/game_data/league.d.ts +0 -32
  168. package/script/src/starcraft2/game_data/league.js +0 -25
  169. package/script/src/starcraft2/index.d.ts +0 -1
  170. package/script/src/starcraft2/index.js +0 -5
  171. package/script/src/wow/game_data/achievement.d.ts +0 -84
  172. package/script/src/wow/game_data/achievement.js +0 -77
  173. package/script/src/wow/game_data/auction_house.d.ts +0 -64
  174. package/script/src/wow/game_data/auction_house.js +0 -39
  175. package/script/src/wow/game_data/azerite_essence.d.ts +0 -49
  176. package/script/src/wow/game_data/azerite_essence.js +0 -56
  177. package/script/src/wow/game_data/connected_realm.d.ts +0 -54
  178. package/script/src/wow/game_data/connected_realm.js +0 -42
  179. package/script/src/wow/game_data/covenant.d.ts +0 -108
  180. package/script/src/wow/game_data/covenant.js +0 -99
  181. package/script/src/wow/game_data/creature.d.ts +0 -97
  182. package/script/src/wow/game_data/creature.js +0 -111
  183. package/script/src/wow/game_data/guild_crest.d.ts +0 -55
  184. package/script/src/wow/game_data/guild_crest.js +0 -45
  185. package/script/src/wow/game_data/heirloom.d.ts +0 -79
  186. package/script/src/wow/game_data/heirloom.js +0 -31
  187. package/script/src/wow/game_data/item.d.ts +0 -166
  188. package/script/src/wow/game_data/item.js +0 -112
  189. package/script/src/wow/game_data/journal.d.ts +0 -121
  190. package/script/src/wow/game_data/journal.js +0 -110
  191. package/script/src/wow/game_data/keystone_affix.d.ts +0 -34
  192. package/script/src/wow/game_data/keystone_affix.js +0 -45
  193. package/script/src/wow/game_data/media_search.d.ts +0 -8
  194. package/script/src/wow/game_data/media_search.js +0 -14
  195. package/script/src/wow/game_data/modified_crafting.d.ts +0 -56
  196. package/script/src/wow/game_data/modified_crafting.js +0 -71
  197. package/script/src/wow/game_data/mount.d.ts +0 -30
  198. package/script/src/wow/game_data/mount.js +0 -36
  199. package/script/src/wow/game_data/mythic_keystone_dungeon.d.ts +0 -91
  200. package/script/src/wow/game_data/mythic_keystone_dungeon.js +0 -98
  201. package/script/src/wow/game_data/mythic_keystone_leaderboard.d.ts +0 -58
  202. package/script/src/wow/game_data/mythic_keystone_leaderboard.js +0 -34
  203. package/script/src/wow/game_data/mythic_raid_leaderboard.d.ts +0 -31
  204. package/script/src/wow/game_data/mythic_raid_leaderboard.js +0 -19
  205. package/script/src/wow/game_data/pet.d.ts +0 -91
  206. package/script/src/wow/game_data/pet.js +0 -86
  207. package/script/src/wow/game_data/playable_class.d.ts +0 -57
  208. package/script/src/wow/game_data/playable_class.js +0 -59
  209. package/script/src/wow/game_data/playable_race.d.ts +0 -29
  210. package/script/src/wow/game_data/playable_race.js +0 -31
  211. package/script/src/wow/game_data/power_type.d.ts +0 -21
  212. package/script/src/wow/game_data/power_type.js +0 -31
  213. package/script/src/wow/game_data/profession.d.ts +0 -85
  214. package/script/src/wow/game_data/profession.js +0 -88
  215. package/script/src/wow/game_data/pvp_season.d.ts +0 -99
  216. package/script/src/wow/game_data/pvp_season.js +0 -74
  217. package/script/src/wow/game_data/pvp_tier.d.ts +0 -40
  218. package/script/src/wow/game_data/pvp_tier.js +0 -45
  219. package/script/src/wow/game_data/quest.d.ts +0 -114
  220. package/script/src/wow/game_data/quest.js +0 -112
  221. package/script/src/wow/game_data/realm.d.ts +0 -42
  222. package/script/src/wow/game_data/realm.js +0 -42
  223. package/script/src/wow/game_data/region.d.ts +0 -24
  224. package/script/src/wow/game_data/region.js +0 -31
  225. package/script/src/wow/game_data/reputations.d.ts +0 -50
  226. package/script/src/wow/game_data/reputations.js +0 -58
  227. package/script/src/wow/game_data/spell.d.ts +0 -33
  228. package/script/src/wow/game_data/spell.js +0 -43
  229. package/script/src/wow/game_data/talent.d.ts +0 -129
  230. package/script/src/wow/game_data/talent.js +0 -100
  231. package/script/src/wow/game_data/tech_talent.d.ts +0 -70
  232. package/script/src/wow/game_data/tech_talent.js +0 -72
  233. package/script/src/wow/game_data/title.d.ts +0 -25
  234. package/script/src/wow/game_data/title.js +0 -31
  235. package/script/src/wow/game_data/token.d.ts +0 -16
  236. package/script/src/wow/game_data/token.js +0 -23
  237. package/script/src/wow/game_data/toy.d.ts +0 -24
  238. package/script/src/wow/game_data/toy.js +0 -31
  239. package/script/src/wow/index.d.ts +0 -53
  240. package/script/src/wow/index.js +0 -228
  241. package/script/src/wow/profile/character_achievements.d.ts +0 -87
  242. package/script/src/wow/profile/character_achievements.js +0 -34
  243. package/script/src/wow/profile/character_appearance.d.ts +0 -75
  244. package/script/src/wow/profile/character_appearance.js +0 -19
  245. package/script/src/wow/profile/character_collections.d.ts +0 -92
  246. package/script/src/wow/profile/character_collections.js +0 -79
  247. package/script/src/wow/profile/character_encounters.d.ts +0 -77
  248. package/script/src/wow/profile/character_encounters.js +0 -49
  249. package/script/src/wow/profile/character_equipment.d.ts +0 -132
  250. package/script/src/wow/profile/character_equipment.js +0 -19
  251. package/script/src/wow/profile/character_hunter_pets.d.ts +0 -21
  252. package/script/src/wow/profile/character_hunter_pets.js +0 -19
  253. package/script/src/wow/profile/character_media.d.ts +0 -13
  254. package/script/src/wow/profile/character_media.js +0 -19
  255. package/script/src/wow/profile/character_mythic_keystone_profile.d.ts +0 -58
  256. package/script/src/wow/profile/character_mythic_keystone_profile.js +0 -37
  257. package/script/src/wow/profile/character_professions.d.ts +0 -26
  258. package/script/src/wow/profile/character_professions.js +0 -19
  259. package/script/src/wow/profile/character_profile.d.ts +0 -82
  260. package/script/src/wow/profile/character_profile.js +0 -45
  261. package/script/src/wow/profile/character_pvp.d.ts +0 -51
  262. package/script/src/wow/profile/character_pvp.js +0 -35
  263. package/script/src/wow/profile/character_quests.d.ts +0 -28
  264. package/script/src/wow/profile/character_quests.js +0 -34
  265. package/script/src/wow/profile/character_reputations.d.ts +0 -22
  266. package/script/src/wow/profile/character_reputations.js +0 -19
  267. package/script/src/wow/profile/character_soulbinds.d.ts +0 -30
  268. package/script/src/wow/profile/character_soulbinds.js +0 -19
  269. package/script/src/wow/profile/character_specializations.d.ts +0 -44
  270. package/script/src/wow/profile/character_specializations.js +0 -19
  271. package/script/src/wow/profile/character_statistics.d.ts +0 -116
  272. package/script/src/wow/profile/character_statistics.js +0 -19
  273. package/script/src/wow/profile/character_titles.d.ts +0 -13
  274. package/script/src/wow/profile/character_titles.js +0 -19
  275. package/script/src/wow/profile/guild.d.ts +0 -117
  276. package/script/src/wow/profile/guild.js +0 -64
  277. package/script/src/wow/search.d.ts +0 -21
  278. package/script/src/wow/search.js +0 -34
@@ -1,90 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns an index of talent trees.
4
- *
5
- * @returns A promise that resolves to an object representing a list of talent trees.
6
- */
7
- export async function talentTrees() {
8
- return await request({
9
- method: "GET",
10
- url: "/data/wow/talent-tree/index",
11
- namespace: "static",
12
- });
13
- }
14
- /**
15
- * Returns a talent tree by specialization ID.
16
- *
17
- * @param talentTreeId - The unique identifier for the talent tree.
18
- * @param specId - The unique identifier for the specialization.
19
- * @returns A promise that resolves to an object representing details about a talent tree.
20
- */
21
- export async function talentTree(talentTreeId, specId) {
22
- return await request({
23
- method: "GET",
24
- url: `/data/wow/talent-tree/${talentTreeId}/playable-specialization/${specId}`,
25
- namespace: "static",
26
- });
27
- }
28
- /**
29
- * Returns all talent tree nodes as well as links to associated playable specializations given a talent tree id. This is useful to generate loadout export codes.
30
- *
31
- * @param talentTreeId - The unique identifier for the talent tree.
32
- * @returns A promise that resolves to an object representing details about the talent tree nodes.
33
- */
34
- export async function talentTreeNodes(talentTreeId) {
35
- return await request({
36
- method: "GET",
37
- url: `/data/wow/talent-tree/${talentTreeId}`,
38
- namespace: "static",
39
- });
40
- }
41
- /**
42
- * Returns an index of talents.
43
- *
44
- * @returns A promise that resolves to an object representing a list of talents.
45
- */
46
- export async function talents() {
47
- return await request({
48
- method: "GET",
49
- url: "/data/wow/talent/index",
50
- namespace: "static",
51
- });
52
- }
53
- /**
54
- * Returns a talent by ID.
55
- *
56
- * @param talentId - The unique identifier for the talent.
57
- * @returns A promise that resolves to an object representing details about the talent.
58
- */
59
- export async function talent(talentId) {
60
- return await request({
61
- method: "GET",
62
- url: `/data/wow/talent/${talentId}`,
63
- namespace: "static",
64
- });
65
- }
66
- /**
67
- * Returns an index of PvP talents.
68
- *
69
- * @returns A promise that resolves to an object representing a list of PvP talents.
70
- */
71
- export async function pvpTalents() {
72
- return await request({
73
- method: "GET",
74
- url: "/data/wow/pvp-talent/index",
75
- namespace: "static",
76
- });
77
- }
78
- /**
79
- * Returns a PvP talent by ID.
80
- *
81
- * @param pvpTalentId - The unique identifier for the PvP talent.
82
- * @returns A promise that resolves to an object representing details about the PvP talent.
83
- */
84
- export async function pvpTalent(pvpTalentId) {
85
- return await request({
86
- method: "GET",
87
- url: `/data/wow/pvp-talent/${pvpTalentId}`,
88
- namespace: "static",
89
- });
90
- }
@@ -1,70 +0,0 @@
1
- import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- export interface TalentTree {
3
- key: {
4
- href: string;
5
- };
6
- name?: LocalizedString;
7
- id: number;
8
- }
9
- export interface TechTalentTrees extends LinkSelfHref {
10
- talent_trees: TalentTree[];
11
- }
12
- export interface TechTalentTree extends LinkSelfHref {
13
- id: number;
14
- max_tiers: number;
15
- talents: KeyNameId[];
16
- }
17
- export interface TechTalents extends LinkSelfHref {
18
- talents: KeyNameId[];
19
- }
20
- export interface TechTalent extends LinkSelfHref {
21
- id: number;
22
- talent_tree: KeyNameId;
23
- name: LocalizedString;
24
- description: LocalizedString;
25
- spell_tooltip: {
26
- spell: KeyNameId;
27
- description: LocalizedString;
28
- cast_time: LocalizedString;
29
- };
30
- tier: number;
31
- display_order: number;
32
- prerequisite_talent: KeyNameId;
33
- media: KeyId;
34
- }
35
- export interface TechTalentMedia extends LinkSelfHref {
36
- assets: Asset[];
37
- }
38
- /**
39
- * Returns an index of tech talent trees.
40
- *
41
- * @returns A promise that resolves to an object representing a list of tech talents trees
42
- */
43
- export declare function techTalentTrees(): Promise<TechTalentTrees>;
44
- /**
45
- * Returns a tech talent tree by ID.
46
- *
47
- * @param techTalentTreeId - The unique identifier for the tech talent tree.
48
- * @returns A promise that resolves to an object representing details about the tech talent tree.
49
- */
50
- export declare function techTalentTree(techTalentTreeId: number): Promise<TechTalentTree>;
51
- /**
52
- * Returns an index of tech talents.
53
- *
54
- * @returns A promise that resolves to an object representing a list of tech talents trees
55
- */
56
- export declare function techTalents(): Promise<TechTalents>;
57
- /**
58
- * Returns a tech talent by ID.
59
- *
60
- * @param techTalentId - The unique identifier for the tech talent tree.
61
- * @returns A promise that resolves to an object representing details about the tech talent tree.
62
- */
63
- export declare function techTalent(techTalentId: number): Promise<TechTalent>;
64
- /**
65
- * Returns media for a tech talent by ID.
66
- *
67
- * @param techTalentId - The unique identifier for the tech talent.
68
- * @returns A promise that resolves to an object representing details about a tech talent.
69
- */
70
- export declare function techTalentMedia(techTalentId: number): Promise<TechTalentMedia>;
@@ -1,64 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns an index of tech talent trees.
4
- *
5
- * @returns A promise that resolves to an object representing a list of tech talents trees
6
- */
7
- export async function techTalentTrees() {
8
- return await request({
9
- method: "GET",
10
- url: "/data/wow/tech-talent-tree/index",
11
- namespace: "static",
12
- });
13
- }
14
- /**
15
- * Returns a tech talent tree by ID.
16
- *
17
- * @param techTalentTreeId - The unique identifier for the tech talent tree.
18
- * @returns A promise that resolves to an object representing details about the tech talent tree.
19
- */
20
- export async function techTalentTree(techTalentTreeId) {
21
- return await request({
22
- method: "GET",
23
- url: `/data/wow/tech-talent-tree/${techTalentTreeId}`,
24
- namespace: "static",
25
- });
26
- }
27
- /**
28
- * Returns an index of tech talents.
29
- *
30
- * @returns A promise that resolves to an object representing a list of tech talents trees
31
- */
32
- export async function techTalents() {
33
- return await request({
34
- method: "GET",
35
- url: "/data/wow/tech-talent/index",
36
- namespace: "static",
37
- });
38
- }
39
- /**
40
- * Returns a tech talent by ID.
41
- *
42
- * @param techTalentId - The unique identifier for the tech talent tree.
43
- * @returns A promise that resolves to an object representing details about the tech talent tree.
44
- */
45
- export async function techTalent(techTalentId) {
46
- return await request({
47
- method: "GET",
48
- url: `/data/wow/tech-talent/${techTalentId}`,
49
- namespace: "static",
50
- });
51
- }
52
- /**
53
- * Returns media for a tech talent by ID.
54
- *
55
- * @param techTalentId - The unique identifier for the tech talent.
56
- * @returns A promise that resolves to an object representing details about a tech talent.
57
- */
58
- export async function techTalentMedia(techTalentId) {
59
- return await request({
60
- method: "GET",
61
- url: `/data/wow/media/tech-talent/${techTalentId}`,
62
- namespace: "static",
63
- });
64
- }
@@ -1,25 +0,0 @@
1
- import type { KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- export interface Titles extends LinkSelfHref {
3
- titles: KeyNameId[];
4
- }
5
- export interface Title extends LinkSelfHref {
6
- id: number;
7
- name: LocalizedString;
8
- gender_name: {
9
- male: LocalizedString;
10
- female: LocalizedString;
11
- };
12
- }
13
- /**
14
- * Returns an index of titles.
15
- *
16
- * @returns A promise that resolves to an object representing a list of titles.
17
- */
18
- export declare function titles(): Promise<Titles>;
19
- /**
20
- * Returns a title by ID.
21
- *
22
- * @param titleId - The unique identifier for the title.
23
- * @returns A promise that resolves to an object representing details about a title.
24
- */
25
- export declare function title(titleId: number): Promise<Title>;
@@ -1,26 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns an index of titles.
4
- *
5
- * @returns A promise that resolves to an object representing a list of titles.
6
- */
7
- export async function titles() {
8
- return await request({
9
- method: "GET",
10
- url: "/data/wow/title/index",
11
- namespace: "static",
12
- });
13
- }
14
- /**
15
- * Returns a title by ID.
16
- *
17
- * @param titleId - The unique identifier for the title.
18
- * @returns A promise that resolves to an object representing details about a title.
19
- */
20
- export async function title(titleId) {
21
- return await request({
22
- method: "GET",
23
- url: `/data/wow/title/${titleId}`,
24
- namespace: "static",
25
- });
26
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * This module provides interfaces and API function definitions for fetching World of Warcraft Token prices from the Blizzard API.
3
- *
4
- * @author Pinta <https://github.com/Pinta365>
5
- */
6
- import type { LinkSelfHref } from "../../shared/index.js";
7
- export interface WowToken extends LinkSelfHref {
8
- last_updated_timestamp: number;
9
- price: number;
10
- }
11
- /**
12
- * Fetches and returns last known price and last updated timestamp for a wow token.
13
- *
14
- * @returns A promise that resolves to an object representing price and last updated timestamp.
15
- */
16
- export declare function token(): Promise<WowToken>;
@@ -1,19 +0,0 @@
1
- /**
2
- * This module provides interfaces and API function definitions for fetching World of Warcraft Token prices from the Blizzard API.
3
- *
4
- * @author Pinta <https://github.com/Pinta365>
5
- */
6
- import { request } from "../../shared/index.js";
7
- /**
8
- * Fetches and returns last known price and last updated timestamp for a wow token.
9
- *
10
- * @returns A promise that resolves to an object representing price and last updated timestamp.
11
- */
12
- export async function token() {
13
- const tokenData = await request({
14
- method: "GET",
15
- url: "/data/wow/token/index",
16
- namespace: "dynamic",
17
- });
18
- return tokenData;
19
- }
@@ -1,24 +0,0 @@
1
- import type { KeyId, KeyNameId, LinkSelfHref, TypeName } from "../../shared/index.js";
2
- export interface Toys extends LinkSelfHref {
3
- toys: KeyNameId[];
4
- }
5
- export interface Toy extends LinkSelfHref {
6
- id: number;
7
- item: KeyNameId;
8
- source: TypeName;
9
- should_exclude_if_uncollected: boolean;
10
- media: KeyId;
11
- }
12
- /**
13
- * Returns an index of toys.
14
- *
15
- * @returns A promise that resolves to an object representing a list of toys.
16
- */
17
- export declare function toys(): Promise<Toys>;
18
- /**
19
- * Returns a toy by id.
20
- *
21
- * @param toyId - The unique identifier for the toy.
22
- * @returns A promise that resolves to an object representing details about a toy.
23
- */
24
- export declare function toy(toyId: number): Promise<Toy>;
@@ -1,26 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns an index of toys.
4
- *
5
- * @returns A promise that resolves to an object representing a list of toys.
6
- */
7
- export async function toys() {
8
- return await request({
9
- method: "GET",
10
- url: "/data/wow/toy/index",
11
- namespace: "static",
12
- });
13
- }
14
- /**
15
- * Returns a toy by id.
16
- *
17
- * @param toyId - The unique identifier for the toy.
18
- * @returns A promise that resolves to an object representing details about a toy.
19
- */
20
- export async function toy(toyId) {
21
- return await request({
22
- method: "GET",
23
- url: `/data/wow/toy/${toyId}`,
24
- namespace: "static",
25
- });
26
- }
@@ -1,53 +0,0 @@
1
- export type { SearchParameters } from "./search.js";
2
- export { achievement, achievementCategories, achievementCategory, achievementMedia, achievements, } from "./game_data/achievement.js";
3
- export { auctions, commodities } from "./game_data/auction_house.js";
4
- export { azeriteEssence, azeriteEssenceMedia, azeriteEssences, searchAzeriteEssence, } from "./game_data/azerite_essence.js";
5
- export { connectedRealm, connectedRealms, searchConnectedRealm } from "./game_data/connected_realm.js";
6
- export { covenant, covenantConduit, covenantConduits, covenants, covenantSoulbind, covenantSoulbinds, } from "./game_data/covenant.js";
7
- export { creature, creatureDisplayMedia, creatureFamilies, creatureFamily, creatureFamilyMedia, creatureType, creatureTypes, searchCreature, } from "./game_data/creature.js";
8
- export { guildCrestBorder, guildCrestEmblem, guildCrests } from "./game_data/guild_crest.js";
9
- export { heirloom, heirlooms } from "./game_data/heirloom.js";
10
- export { item, itemClass, itemClasses, itemMedia, itemSet, itemSets, itemSubclass, searchItem, } from "./game_data/item.js";
11
- export { searchMedia } from "./game_data/media_search.js";
12
- export { journalEncounter, journalEncounters, journalExpansion, journalExpansions, journalInstance, journalInstanceMedia, journalInstances, searchJournalEncounter, } from "./game_data/journal.js";
13
- export { modifiedCraftingCategories, modifiedCraftingCategory, modifiedCraftingParents, modifiedCraftingSlotType, modifiedCraftingSlotTypes, } from "./game_data/modified_crafting.js";
14
- export { mount, mounts } from "./game_data/mount.js";
15
- export { keystoneAffix, keystoneAffixes, keystoneAffixMedia } from "./game_data/keystone_affix.js";
16
- export { mythicKeystoneDungeon, mythicKeystoneDungeons, mythicKeystoneIndex, mythicKeystonePeriod, mythicKeystonePeriods, mythicKeystoneSeason, mythicKeystoneSeasons, } from "./game_data/mythic_keystone_dungeon.js";
17
- export { mythicKeystoneLeaderboard, mythicKeystoneLeaderboards } from "./game_data/mythic_keystone_leaderboard.js";
18
- export { mythicRaidLeaderboard } from "./game_data/mythic_raid_leaderboard.js";
19
- export { pet, petAbilities, petAbility, petAbilityMedia, petMedia, pets } from "./game_data/pet.js";
20
- export { playableClass, playableClasses, playableClassMedia, playableClassPvpTalentSlots, } from "./game_data/playable_class.js";
21
- export { playableRace, playableRaces } from "./game_data/playable_race.js";
22
- export { powerType, powerTypes } from "./game_data/power_type.js";
23
- export { profession, professionMedia, professionRecipie, professionRecipieMedia, professions, professionSkillTier, } from "./game_data/profession.js";
24
- export { pvpSeason, pvpSeasonLeaderboard, pvpSeasonLeaderboards, pvpSeasonRewards, pvpSeasons, } from "./game_data/pvp_season.js";
25
- export { pvpTier, pvpTierMedia, pvpTiers } from "./game_data/pvp_tier.js";
26
- export { quest, questArea, questAreas, questCategories, questCategory, quests, questType, questTypes, } from "./game_data/quest.js";
27
- export { realm, realms, searchRealm } from "./game_data/realm.js";
28
- export { region, regions } from "./game_data/region.js";
29
- export { reputationFaction, reputationFactions, reputationTier, reputationTiers } from "./game_data/reputations.js";
30
- export { searchSpell, spell, spellMedia } from "./game_data/spell.js";
31
- export { title, titles } from "./game_data/title.js";
32
- export { toy, toys } from "./game_data/toy.js";
33
- export { pvpTalent, pvpTalents, talent, talents, talentTree, talentTreeNodes, talentTrees, } from "./game_data/talent.js";
34
- export { techTalent, techTalentMedia, techTalents, techTalentTree, techTalentTrees } from "./game_data/tech_talent.js";
35
- export { token } from "./game_data/token.js";
36
- export { characterAchievementStatistics, characterAchievementSummary } from "./profile/character_achievements.js";
37
- export { characterAppearanceSummary } from "./profile/character_appearance.js";
38
- export { characterCollectionHeirlooms, characterCollectionMounts, characterCollectionPets, characterCollectionToys, characterCollectionTypes, } from "./profile/character_collections.js";
39
- export { characterEncounterDungeons, characterEncounterRaids, characterEncounters, } from "./profile/character_encounters.js";
40
- export { characterEquipments } from "./profile/character_equipment.js";
41
- export { characterHunterPets } from "./profile/character_hunter_pets.js";
42
- export { characterMedia } from "./profile/character_media.js";
43
- export { characterMythicKeystoneProfile, characterMythicKeystoneSeasonDetails, } from "./profile/character_mythic_keystone_profile.js";
44
- export { characterProfessions } from "./profile/character_professions.js";
45
- export { characterProfile, characterProfileStatus } from "./profile/character_profile.js";
46
- export { characterPvpBracketStatistics, characterPvpSummary } from "./profile/character_pvp.js";
47
- export { characterCompletedQuests, characterQuests } from "./profile/character_quests.js";
48
- export { characterReputations } from "./profile/character_reputations.js";
49
- export { characterSoulbinds } from "./profile/character_soulbinds.js";
50
- export { characterSpecializations } from "./profile/character_specializations.js";
51
- export { characterStatistics } from "./profile/character_statistics.js";
52
- export { characterTitles } from "./profile/character_titles.js";
53
- export { guild, guildAchievements, guildActivity, guildRoster } from "./profile/guild.js";
@@ -1,55 +0,0 @@
1
- // Start Search
2
- // Start Game Data APIs
3
- export { achievement, achievementCategories, achievementCategory, achievementMedia, achievements, } from "./game_data/achievement.js";
4
- export { auctions, commodities } from "./game_data/auction_house.js";
5
- export { azeriteEssence, azeriteEssenceMedia, azeriteEssences, searchAzeriteEssence, } from "./game_data/azerite_essence.js";
6
- export { connectedRealm, connectedRealms, searchConnectedRealm } from "./game_data/connected_realm.js";
7
- export { covenant, covenantConduit, covenantConduits, covenants, covenantSoulbind, covenantSoulbinds, } from "./game_data/covenant.js";
8
- export { creature, creatureDisplayMedia, creatureFamilies, creatureFamily, creatureFamilyMedia, creatureType, creatureTypes, searchCreature, } from "./game_data/creature.js";
9
- export { guildCrestBorder, guildCrestEmblem, guildCrests } from "./game_data/guild_crest.js";
10
- export { heirloom, heirlooms } from "./game_data/heirloom.js";
11
- export { item, itemClass, itemClasses, itemMedia, itemSet, itemSets, itemSubclass, searchItem, } from "./game_data/item.js";
12
- export { searchMedia } from "./game_data/media_search.js";
13
- export { journalEncounter, journalEncounters, journalExpansion, journalExpansions, journalInstance, journalInstanceMedia, journalInstances, searchJournalEncounter, } from "./game_data/journal.js";
14
- export { modifiedCraftingCategories, modifiedCraftingCategory, modifiedCraftingParents, modifiedCraftingSlotType, modifiedCraftingSlotTypes, } from "./game_data/modified_crafting.js";
15
- export { mount, mounts } from "./game_data/mount.js";
16
- export { keystoneAffix, keystoneAffixes, keystoneAffixMedia } from "./game_data/keystone_affix.js";
17
- export { mythicKeystoneDungeon, mythicKeystoneDungeons, mythicKeystoneIndex, mythicKeystonePeriod, mythicKeystonePeriods, mythicKeystoneSeason, mythicKeystoneSeasons, } from "./game_data/mythic_keystone_dungeon.js";
18
- export { mythicKeystoneLeaderboard, mythicKeystoneLeaderboards } from "./game_data/mythic_keystone_leaderboard.js";
19
- export { mythicRaidLeaderboard } from "./game_data/mythic_raid_leaderboard.js";
20
- export { pet, petAbilities, petAbility, petAbilityMedia, petMedia, pets } from "./game_data/pet.js";
21
- export { playableClass, playableClasses, playableClassMedia, playableClassPvpTalentSlots, } from "./game_data/playable_class.js";
22
- export { playableRace, playableRaces } from "./game_data/playable_race.js";
23
- export { powerType, powerTypes } from "./game_data/power_type.js";
24
- export { profession, professionMedia, professionRecipie, professionRecipieMedia, professions, professionSkillTier, } from "./game_data/profession.js";
25
- export { pvpSeason, pvpSeasonLeaderboard, pvpSeasonLeaderboards, pvpSeasonRewards, pvpSeasons, } from "./game_data/pvp_season.js";
26
- export { pvpTier, pvpTierMedia, pvpTiers } from "./game_data/pvp_tier.js";
27
- export { quest, questArea, questAreas, questCategories, questCategory, quests, questType, questTypes, } from "./game_data/quest.js";
28
- export { realm, realms, searchRealm } from "./game_data/realm.js";
29
- export { region, regions } from "./game_data/region.js";
30
- export { reputationFaction, reputationFactions, reputationTier, reputationTiers } from "./game_data/reputations.js";
31
- export { searchSpell, spell, spellMedia } from "./game_data/spell.js";
32
- export { title, titles } from "./game_data/title.js";
33
- export { toy, toys } from "./game_data/toy.js";
34
- export { pvpTalent, pvpTalents, talent, talents, talentTree, talentTreeNodes, talentTrees, } from "./game_data/talent.js";
35
- export { techTalent, techTalentMedia, techTalents, techTalentTree, techTalentTrees } from "./game_data/tech_talent.js";
36
- export { token } from "./game_data/token.js";
37
- // Start Profile APIs
38
- export { characterAchievementStatistics, characterAchievementSummary } from "./profile/character_achievements.js";
39
- export { characterAppearanceSummary } from "./profile/character_appearance.js";
40
- export { characterCollectionHeirlooms, characterCollectionMounts, characterCollectionPets, characterCollectionToys, characterCollectionTypes, } from "./profile/character_collections.js";
41
- export { characterEncounterDungeons, characterEncounterRaids, characterEncounters, } from "./profile/character_encounters.js";
42
- export { characterEquipments } from "./profile/character_equipment.js";
43
- export { characterHunterPets } from "./profile/character_hunter_pets.js";
44
- export { characterMedia } from "./profile/character_media.js";
45
- export { characterMythicKeystoneProfile, characterMythicKeystoneSeasonDetails, } from "./profile/character_mythic_keystone_profile.js";
46
- export { characterProfessions } from "./profile/character_professions.js";
47
- export { characterProfile, characterProfileStatus } from "./profile/character_profile.js";
48
- export { characterPvpBracketStatistics, characterPvpSummary } from "./profile/character_pvp.js";
49
- export { characterCompletedQuests, characterQuests } from "./profile/character_quests.js";
50
- export { characterReputations } from "./profile/character_reputations.js";
51
- export { characterSoulbinds } from "./profile/character_soulbinds.js";
52
- export { characterSpecializations } from "./profile/character_specializations.js";
53
- export { characterStatistics } from "./profile/character_statistics.js";
54
- export { characterTitles } from "./profile/character_titles.js";
55
- export { guild, guildAchievements, guildActivity, guildRoster } from "./profile/guild.js";
@@ -1,87 +0,0 @@
1
- import type { Character, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- export interface AchievementCriteria {
3
- id: number;
4
- amount?: number;
5
- is_completed: boolean;
6
- child_criteria?: AchievementCriteria[];
7
- }
8
- export interface CharacterAchievementSummary extends LinkSelfHref {
9
- total_quantity: number;
10
- total_points: number;
11
- achievements: {
12
- id: number;
13
- achievement: KeyNameId;
14
- criteria?: AchievementCriteria;
15
- completed_timestamp: number;
16
- }[];
17
- category_progress: {
18
- category: KeyNameId;
19
- quantity: number;
20
- points: number;
21
- }[];
22
- recent_events: {
23
- achievement: KeyNameId;
24
- timestamp: number;
25
- }[];
26
- character: Character;
27
- statistics: {
28
- href: string;
29
- };
30
- }
31
- export interface AchievementStatistic {
32
- id: number;
33
- name: LocalizedString;
34
- last_updated_timestamp: number;
35
- description?: string;
36
- quantity: number;
37
- }
38
- export interface AchievementsubCategory {
39
- id: number;
40
- name: LocalizedString;
41
- statistics: {
42
- id: number;
43
- name: LocalizedString;
44
- last_updated_timestamp: number;
45
- description?: LocalizedString;
46
- quantity: number;
47
- }[];
48
- }
49
- export interface CharacterAchievementStatistics extends LinkSelfHref {
50
- character: {
51
- key: {
52
- href: string;
53
- };
54
- name: LocalizedString;
55
- id: number;
56
- realm: {
57
- key: {
58
- href: string;
59
- };
60
- name: LocalizedString;
61
- id: number;
62
- slug: string;
63
- };
64
- };
65
- categories: {
66
- id: number;
67
- name: LocalizedString;
68
- sub_categories: AchievementsubCategory[];
69
- statistics: AchievementStatistic[];
70
- }[];
71
- }
72
- /**
73
- * Returns a summary of the achievements a character has completed.
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 characters achievement summary.
78
- */
79
- export declare function characterAchievementSummary(realmSlug: string, characterName: string): Promise<CharacterAchievementSummary>;
80
- /**
81
- * Returns a character's statistics as they pertain to achievements.
82
- *
83
- * @param realmSlug - The slug of the realm.
84
- * @param characterName - The lowercase name of the character.
85
- * @returns A promise that resolves to an object representing details about a characters achievement statistics.
86
- */
87
- export declare function characterAchievementStatistics(realmSlug: string, characterName: string): Promise<CharacterAchievementStatistics>;
@@ -1,29 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns a summary of the achievements a character has completed.
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 details about a characters achievement summary.
8
- */
9
- export async function characterAchievementSummary(realmSlug, characterName) {
10
- return await request({
11
- method: "GET",
12
- url: `/profile/wow/character/${realmSlug}/${characterName}/achievements`,
13
- namespace: "profile",
14
- });
15
- }
16
- /**
17
- * Returns a character's statistics as they pertain to achievements.
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 details about a characters achievement statistics.
22
- */
23
- export async function characterAchievementStatistics(realmSlug, characterName) {
24
- return await request({
25
- method: "GET",
26
- url: `/profile/wow/character/${realmSlug}/${characterName}/achievements/statistics`,
27
- namespace: "profile",
28
- });
29
- }