@pinta365/blizzard_api 0.3.7 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,77 +0,0 @@
1
- "use strict";
2
- /**
3
- * This module provides interfaces and API function definitions for fetching World of Warcraft achievement data using the Blizzard API.
4
- *
5
- * @author Pinta <https://github.com/Pinta365>
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.achievementMedia = exports.achievement = exports.achievements = exports.achievementCategory = exports.achievementCategories = void 0;
9
- const index_js_1 = require("../../shared/index.js");
10
- /**
11
- * Fetches and returns an index of achievement categories.
12
- *
13
- * @returns A promise that resolves to an object representing the index of achievement categories.
14
- */
15
- async function achievementCategories() {
16
- return await (0, index_js_1.request)({
17
- method: "GET",
18
- url: "/data/wow/achievement-category/index",
19
- namespace: "static",
20
- });
21
- }
22
- exports.achievementCategories = achievementCategories;
23
- /**
24
- * Fetches and returns details of a specific achievement category identified by its ID.
25
- *
26
- * @param achievementCategoryId - The unique identifier of the achievement category to retrieve.
27
- * @returns A promise that resolves to an object representing the achievement category details.
28
- */
29
- async function achievementCategory(achievementCategoryId) {
30
- return await (0, index_js_1.request)({
31
- method: "GET",
32
- url: `/data/wow/achievement-category/${achievementCategoryId}`,
33
- namespace: "static",
34
- });
35
- }
36
- exports.achievementCategory = achievementCategory;
37
- /**
38
- * Fetches and returns an index of achievements.
39
- *
40
- * @returns A promise that resolves to an object representing the index of achievements.
41
- */
42
- async function achievements() {
43
- return await (0, index_js_1.request)({
44
- method: "GET",
45
- url: "/data/wow/achievement/index",
46
- namespace: "static",
47
- });
48
- }
49
- exports.achievements = achievements;
50
- /**
51
- * Fetches and returns details of a specific achievement identified by its ID.
52
- *
53
- * @param achievementId - The unique identifier of the achievement to retrieve.
54
- * @returns A promise that resolves to an object representing the achievement details.
55
- */
56
- async function achievement(achievementId) {
57
- return await (0, index_js_1.request)({
58
- method: "GET",
59
- url: `/data/wow/achievement/${achievementId}`,
60
- namespace: "static",
61
- });
62
- }
63
- exports.achievement = achievement;
64
- /**
65
- * Fetches and returns media details for a specific achievement identified by its ID.
66
- *
67
- * @param achievementId - The unique identifier of the achievement to retrieve media details for.
68
- * @returns A promise that resolves to an object representing the achievement media details.
69
- */
70
- async function achievementMedia(achievementId) {
71
- return await (0, index_js_1.request)({
72
- method: "GET",
73
- url: `/data/wow/media/achievement/${achievementId}`,
74
- namespace: "static",
75
- });
76
- }
77
- exports.achievementMedia = achievementMedia;
@@ -1,64 +0,0 @@
1
- import type { LinkSelfHref } from "../../shared/index.js";
2
- export interface AuctionItem {
3
- id: number;
4
- modifiers?: {
5
- type: number;
6
- value: number;
7
- }[];
8
- pet_breed_id?: number;
9
- pet_level?: number;
10
- pet_quality_id?: number;
11
- pet_species_id?: number;
12
- bonus_lists?: number[];
13
- context?: number;
14
- }
15
- export interface AuctionListing {
16
- id: number;
17
- item: AuctionItem;
18
- bid?: number;
19
- buyout?: number;
20
- quantity: number;
21
- time_left: "SHORT" | "MEDIUM" | "LONG" | "VERY_LONG";
22
- }
23
- export interface Auctions extends LinkSelfHref {
24
- connected_realm: {
25
- href: string;
26
- };
27
- auctions: AuctionListing[];
28
- commodities: {
29
- href: string;
30
- };
31
- }
32
- export interface commodity {
33
- "id": number;
34
- "item": {
35
- "id": number;
36
- };
37
- "quantity": number;
38
- "unit_price": number;
39
- "time_left": "SHORT" | "MEDIUM" | "LONG" | "VERY_LONG";
40
- }
41
- export interface Commodities extends LinkSelfHref {
42
- auctions: commodity[];
43
- }
44
- /**
45
- * Returns all active auctions for a connected realm.
46
- *
47
- * Auction house data updates at a set interval. The value was initially set at 1 hour; however, it might change over time without notice.
48
- *
49
- * NOTE: Depending on the number of active auctions on the specified connected realm, the response from this endpoint may be rather large.
50
- *
51
- * @param connectedRealmId - The id of the connected realm to return auctions from.
52
- * @returns A promise that resolves to an object representing the auctions being listed.
53
- */
54
- export declare function auctions(connectedRealmId: number): Promise<Auctions>;
55
- /**
56
- * Returns all active auctions for commodity items for the entire game region.
57
- *
58
- * Auction house data updates at a set interval. The value was initially set at 1 hour; however, it might change over time without notice.
59
- *
60
- * NOTE: Depending on the number of active auctions on the specified region, the response from this endpoint may be rather large.
61
- *
62
- * @returns A promise that resolves to an object representing the commodities being listed.
63
- */
64
- export declare function commodities(): Promise<Commodities>;
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.commodities = exports.auctions = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- /**
6
- * Returns all active auctions for a connected realm.
7
- *
8
- * Auction house data updates at a set interval. The value was initially set at 1 hour; however, it might change over time without notice.
9
- *
10
- * NOTE: Depending on the number of active auctions on the specified connected realm, the response from this endpoint may be rather large.
11
- *
12
- * @param connectedRealmId - The id of the connected realm to return auctions from.
13
- * @returns A promise that resolves to an object representing the auctions being listed.
14
- */
15
- async function auctions(connectedRealmId) {
16
- return await (0, index_js_1.request)({
17
- method: "GET",
18
- url: `/data/wow/connected-realm/${connectedRealmId}/auctions`,
19
- namespace: "dynamic",
20
- });
21
- }
22
- exports.auctions = auctions;
23
- /**
24
- * Returns all active auctions for commodity items for the entire game region.
25
- *
26
- * Auction house data updates at a set interval. The value was initially set at 1 hour; however, it might change over time without notice.
27
- *
28
- * NOTE: Depending on the number of active auctions on the specified region, the response from this endpoint may be rather large.
29
- *
30
- * @returns A promise that resolves to an object representing the commodities being listed.
31
- */
32
- async function commodities() {
33
- return await (0, index_js_1.request)({
34
- method: "GET",
35
- url: "/data/wow/auctions/commodities",
36
- namespace: "dynamic",
37
- });
38
- }
39
- exports.commodities = commodities;
@@ -1,49 +0,0 @@
1
- import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- import type { Search, SearchParameters } from "../search.js";
3
- export interface AzeriteEssences extends LinkSelfHref {
4
- azerite_essences: KeyNameId[];
5
- }
6
- export interface AzeritePower {
7
- id: number;
8
- rank: number;
9
- main_power_spell: KeyNameId;
10
- passive_power_spell: KeyNameId;
11
- }
12
- export interface AzeriteEssenceDetails extends LinkSelfHref {
13
- id: number;
14
- name: LocalizedString;
15
- allowed_specializations: KeyNameId[];
16
- powers: AzeritePower[];
17
- media: KeyId;
18
- }
19
- export interface AzeritEessenceMedia extends LinkSelfHref {
20
- assets: Asset[];
21
- id: number;
22
- }
23
- /**
24
- * Returns Azerite Essences Index
25
- *
26
- * @returns A promise that resolves to an object representing a list of all Azerite Essences.
27
- */
28
- export declare function azeriteEssences(): Promise<AzeriteEssences>;
29
- /**
30
- * Returns details about a specific Azerite Essence Id
31
- *
32
- * @param azeriteEssenceId - The unique identifier Azerite Essence.
33
- * @returns A promise that resolves to an object representing details about an Azerite Essences.
34
- */
35
- export declare function azeriteEssence(azeriteEssenceId: number): Promise<AzeriteEssenceDetails>;
36
- /**
37
- * Performs a search of azerite essences.
38
- *
39
- * @param SearchParameters - Object containing search parameters.
40
- * @returns A promise that resolves to an object representing details about a Azerite Essences search.
41
- */
42
- export declare function searchAzeriteEssence(searchParameters: SearchParameters): Promise<Search>;
43
- /**
44
- * Returns media details about a specific Azerite Essence Id
45
- *
46
- * @param azeriteEssenceId - The unique identifier Azerite Essence.
47
- * @returns A promise that resolves to an object representing media details about an Azerite Essences.
48
- */
49
- export declare function azeriteEssenceMedia(azeriteEssenceId: number): Promise<AzeritEessenceMedia>;
@@ -1,56 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.azeriteEssenceMedia = exports.searchAzeriteEssence = exports.azeriteEssence = exports.azeriteEssences = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- const search_js_1 = require("../search.js");
6
- /**
7
- * Returns Azerite Essences Index
8
- *
9
- * @returns A promise that resolves to an object representing a list of all Azerite Essences.
10
- */
11
- async function azeriteEssences() {
12
- return await (0, index_js_1.request)({
13
- method: "GET",
14
- url: "/data/wow/azerite-essence/index",
15
- namespace: "static",
16
- });
17
- }
18
- exports.azeriteEssences = azeriteEssences;
19
- /**
20
- * Returns details about a specific Azerite Essence Id
21
- *
22
- * @param azeriteEssenceId - The unique identifier Azerite Essence.
23
- * @returns A promise that resolves to an object representing details about an Azerite Essences.
24
- */
25
- async function azeriteEssence(azeriteEssenceId) {
26
- return await (0, index_js_1.request)({
27
- method: "GET",
28
- url: `/data/wow/azerite-essence/${azeriteEssenceId}`,
29
- namespace: "static",
30
- });
31
- }
32
- exports.azeriteEssence = azeriteEssence;
33
- /**
34
- * Performs a search of azerite essences.
35
- *
36
- * @param SearchParameters - Object containing search parameters.
37
- * @returns A promise that resolves to an object representing details about a Azerite Essences search.
38
- */
39
- async function searchAzeriteEssence(searchParameters) {
40
- return await (0, search_js_1.search)("/azerite-essence", "static", searchParameters);
41
- }
42
- exports.searchAzeriteEssence = searchAzeriteEssence;
43
- /**
44
- * Returns media details about a specific Azerite Essence Id
45
- *
46
- * @param azeriteEssenceId - The unique identifier Azerite Essence.
47
- * @returns A promise that resolves to an object representing media details about an Azerite Essences.
48
- */
49
- async function azeriteEssenceMedia(azeriteEssenceId) {
50
- return await (0, index_js_1.request)({
51
- method: "GET",
52
- url: `/data/wow/media/azerite-essence/${azeriteEssenceId}`,
53
- namespace: "static",
54
- });
55
- }
56
- exports.azeriteEssenceMedia = azeriteEssenceMedia;
@@ -1,54 +0,0 @@
1
- import type { KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
2
- import type { Search, SearchParameters } from "../search.js";
3
- export interface ConnectedRealms extends LinkSelfHref {
4
- connected_realms: {
5
- href: string;
6
- }[];
7
- }
8
- export interface Realm {
9
- id: number;
10
- region: KeyNameId;
11
- connected_realm: {
12
- href: string;
13
- };
14
- name: LocalizedString;
15
- category: LocalizedString;
16
- locale: string;
17
- timezone: string;
18
- type: TypeName;
19
- is_tournament: boolean;
20
- slug: string;
21
- }
22
- export interface ConnectedRealm extends LinkSelfHref {
23
- id: number;
24
- has_queue: boolean;
25
- status: TypeName;
26
- population: TypeName;
27
- realms: Realm[];
28
- mythic_leaderboards: {
29
- href: string;
30
- };
31
- auctions: {
32
- href: string;
33
- };
34
- }
35
- /**
36
- * Returns the Connected Realms Index
37
- *
38
- * @returns A promise that resolves to an object representing a list of all Connected Realms.
39
- */
40
- export declare function connectedRealms(): Promise<ConnectedRealms>;
41
- /**
42
- * Returns details about a Connected Realms Id
43
- *
44
- * @param connectedRealmId - The unique identifier Azerite Essence.
45
- * @returns A promise that resolves to an object representing details about an Azerite Essences.
46
- */
47
- export declare function connectedRealm(connectedRealmId: number): Promise<ConnectedRealm>;
48
- /**
49
- * Performs a search of connected realms.
50
- *
51
- * @param SearchParameters - Object containing search parameters.
52
- * @returns A promise that resolves to an object representing details about the connected realms search.
53
- */
54
- export declare function searchConnectedRealm(searchParameters: SearchParameters): Promise<Search>;
@@ -1,42 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.searchConnectedRealm = exports.connectedRealm = exports.connectedRealms = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- const search_js_1 = require("../search.js");
6
- /**
7
- * Returns the Connected Realms Index
8
- *
9
- * @returns A promise that resolves to an object representing a list of all Connected Realms.
10
- */
11
- async function connectedRealms() {
12
- return await (0, index_js_1.request)({
13
- method: "GET",
14
- url: "/data/wow/connected-realm/index",
15
- namespace: "dynamic",
16
- });
17
- }
18
- exports.connectedRealms = connectedRealms;
19
- /**
20
- * Returns details about a Connected Realms Id
21
- *
22
- * @param connectedRealmId - The unique identifier Azerite Essence.
23
- * @returns A promise that resolves to an object representing details about an Azerite Essences.
24
- */
25
- async function connectedRealm(connectedRealmId) {
26
- return await (0, index_js_1.request)({
27
- method: "GET",
28
- url: `/data/wow/connected-realm/${connectedRealmId}`,
29
- namespace: "dynamic",
30
- });
31
- }
32
- exports.connectedRealm = connectedRealm;
33
- /**
34
- * Performs a search of connected realms.
35
- *
36
- * @param SearchParameters - Object containing search parameters.
37
- * @returns A promise that resolves to an object representing details about the connected realms search.
38
- */
39
- async function searchConnectedRealm(searchParameters) {
40
- return await (0, search_js_1.search)("/connected-realm", "dynamic", searchParameters);
41
- }
42
- exports.searchConnectedRealm = searchConnectedRealm;
@@ -1,108 +0,0 @@
1
- import type { Asset, KeyNameId, LinkSelfHref, LocalizedString, NameId, TypeName } from "../../shared/index.js";
2
- export interface Covenants extends LinkSelfHref {
3
- covenants: KeyNameId[];
4
- }
5
- export interface SpellTooltip {
6
- spell: KeyNameId;
7
- description: LocalizedString;
8
- cast_time: string;
9
- power_cost: number | null;
10
- range: string;
11
- cooldown: string;
12
- }
13
- export interface SignatureAbility {
14
- id: number;
15
- spell_tooltip: SpellTooltip;
16
- }
17
- export interface ClassAbility {
18
- id: number;
19
- playable_class: KeyNameId;
20
- spell_tooltip: SpellTooltip;
21
- }
22
- export interface Covenant extends LinkSelfHref {
23
- id: number;
24
- name: LocalizedString;
25
- description: LocalizedString;
26
- signature_ability: SignatureAbility;
27
- class_abilities: ClassAbility[];
28
- }
29
- export interface CovenantMedia extends LinkSelfHref {
30
- assets: Asset[];
31
- }
32
- export interface CovenantSoulbinds extends LinkSelfHref {
33
- soulbinds: KeyNameId;
34
- }
35
- export interface CovenantSoulbind extends LinkSelfHref {
36
- id: number;
37
- name: LocalizedString;
38
- covenant: KeyNameId;
39
- creature: KeyNameId;
40
- follower: NameId;
41
- talent_tree: KeyNameId;
42
- }
43
- export interface CovenantConduits extends LinkSelfHref {
44
- conduits: KeyNameId;
45
- }
46
- export interface SpellTooltip {
47
- spell: KeyNameId;
48
- description: LocalizedString;
49
- cast_time: string;
50
- }
51
- export interface Rank {
52
- id: number;
53
- tier: number;
54
- spell_tooltip: SpellTooltip;
55
- }
56
- export interface CovenantConduit extends LinkSelfHref {
57
- id: number;
58
- name: LocalizedString;
59
- item: KeyNameId;
60
- socket_type: TypeName;
61
- ranks: Rank[];
62
- }
63
- /**
64
- * Returns an index of Covenants.
65
- *
66
- * @returns A promise that resolves to an object representing a list of all Covenants.
67
- */
68
- export declare function covenants(): Promise<Covenants>;
69
- /**
70
- * Returns details about a Covenant
71
- *
72
- * @param covenantId - The unique identifier for the Covenant
73
- * @returns A promise that resolves to an object representing details about a Covenant.
74
- */
75
- export declare function covenant(covenantId: number): Promise<Covenant>;
76
- /**
77
- * Returns media details about a Covenant
78
- *
79
- * @param covenantId - The unique identifier for the Covenant.
80
- * @returns A promise that resolves to an object representing media details about a Covenant.
81
- */
82
- export declare function azeriteEssenceMedia(covenantId: number): Promise<CovenantMedia>;
83
- /**
84
- * Returns an index of Covenant Soulbinds.
85
- *
86
- * @returns A promise that resolves to an object representing a list of all Covenant Soulbinds.
87
- */
88
- export declare function covenantSoulbinds(): Promise<CovenantSoulbinds>;
89
- /**
90
- * Returns details about a Covenant Soulbind
91
- *
92
- * @param soulbindId - The unique identifier for the Covenant Soulbind
93
- * @returns A promise that resolves to an object representing details about a Covenant Soulbind.
94
- */
95
- export declare function covenantSoulbind(soulbindId: number): Promise<CovenantSoulbind>;
96
- /**
97
- * Returns an index of Covenant Conduits.
98
- *
99
- * @returns A promise that resolves to an object representing a list of all Covenant Conduits.
100
- */
101
- export declare function covenantConduits(): Promise<CovenantConduits>;
102
- /**
103
- * Returns details about a Covenant Conduit
104
- *
105
- * @param conduitId - The unique identifier for the Covenant Conduit
106
- * @returns A promise that resolves to an object representing details about a Covenant Conduit.
107
- */
108
- export declare function covenantConduit(conduitId: number): Promise<CovenantConduit>;
@@ -1,99 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.covenantConduit = exports.covenantConduits = exports.covenantSoulbind = exports.covenantSoulbinds = exports.azeriteEssenceMedia = exports.covenant = exports.covenants = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- /**
6
- * Returns an index of Covenants.
7
- *
8
- * @returns A promise that resolves to an object representing a list of all Covenants.
9
- */
10
- async function covenants() {
11
- return await (0, index_js_1.request)({
12
- method: "GET",
13
- url: "/data/wow/covenant/index",
14
- namespace: "static",
15
- });
16
- }
17
- exports.covenants = covenants;
18
- /**
19
- * Returns details about a Covenant
20
- *
21
- * @param covenantId - The unique identifier for the Covenant
22
- * @returns A promise that resolves to an object representing details about a Covenant.
23
- */
24
- async function covenant(covenantId) {
25
- return await (0, index_js_1.request)({
26
- method: "GET",
27
- url: `/data/wow/covenant/${covenantId}`,
28
- namespace: "static",
29
- });
30
- }
31
- exports.covenant = covenant;
32
- /**
33
- * Returns media details about a Covenant
34
- *
35
- * @param covenantId - The unique identifier for the Covenant.
36
- * @returns A promise that resolves to an object representing media details about a Covenant.
37
- */
38
- async function azeriteEssenceMedia(covenantId) {
39
- return await (0, index_js_1.request)({
40
- method: "GET",
41
- url: `/data/wow/media/covenant/${covenantId}`,
42
- namespace: "static",
43
- });
44
- }
45
- exports.azeriteEssenceMedia = azeriteEssenceMedia;
46
- /**
47
- * Returns an index of Covenant Soulbinds.
48
- *
49
- * @returns A promise that resolves to an object representing a list of all Covenant Soulbinds.
50
- */
51
- async function covenantSoulbinds() {
52
- return await (0, index_js_1.request)({
53
- method: "GET",
54
- url: "/data/wow/covenant/soulbind/index",
55
- namespace: "static",
56
- });
57
- }
58
- exports.covenantSoulbinds = covenantSoulbinds;
59
- /**
60
- * Returns details about a Covenant Soulbind
61
- *
62
- * @param soulbindId - The unique identifier for the Covenant Soulbind
63
- * @returns A promise that resolves to an object representing details about a Covenant Soulbind.
64
- */
65
- async function covenantSoulbind(soulbindId) {
66
- return await (0, index_js_1.request)({
67
- method: "GET",
68
- url: `/data/wow/covenant/soulbind/${soulbindId}`,
69
- namespace: "static",
70
- });
71
- }
72
- exports.covenantSoulbind = covenantSoulbind;
73
- /**
74
- * Returns an index of Covenant Conduits.
75
- *
76
- * @returns A promise that resolves to an object representing a list of all Covenant Conduits.
77
- */
78
- async function covenantConduits() {
79
- return await (0, index_js_1.request)({
80
- method: "GET",
81
- url: "/data/wow/covenant/conduit/index",
82
- namespace: "static",
83
- });
84
- }
85
- exports.covenantConduits = covenantConduits;
86
- /**
87
- * Returns details about a Covenant Conduit
88
- *
89
- * @param conduitId - The unique identifier for the Covenant Conduit
90
- * @returns A promise that resolves to an object representing details about a Covenant Conduit.
91
- */
92
- async function covenantConduit(conduitId) {
93
- return await (0, index_js_1.request)({
94
- method: "GET",
95
- url: `/data/wow/covenant/conduit/${conduitId}`,
96
- namespace: "static",
97
- });
98
- }
99
- exports.covenantConduit = covenantConduit;
@@ -1,97 +0,0 @@
1
- import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- import type { Search, SearchParameters } from "../search.js";
3
- export interface CreatureFamilies extends LinkSelfHref {
4
- creature_families: KeyNameId[];
5
- }
6
- export interface CreatureFamily extends LinkSelfHref {
7
- id: number;
8
- name: LocalizedString;
9
- specialization: KeyNameId;
10
- media: KeyId;
11
- }
12
- export interface CreatureTypes extends LinkSelfHref {
13
- creature_types: KeyNameId[];
14
- }
15
- export interface CreatureType extends LinkSelfHref {
16
- id: number;
17
- name: LocalizedString;
18
- }
19
- export interface Creature extends LinkSelfHref {
20
- id: number;
21
- name: LocalizedString;
22
- type: KeyNameId;
23
- family: KeyNameId;
24
- creature_displays: KeyId[];
25
- is_tameable: boolean;
26
- }
27
- export interface CreatureDisplayAssets {
28
- key: string;
29
- value: string;
30
- }
31
- export interface CreatureDisplayMedia extends LinkSelfHref {
32
- assets: CreatureDisplayAssets[];
33
- id: number;
34
- }
35
- export interface CreatureFamilyAssets {
36
- key: string;
37
- value: string;
38
- file_data_id: number;
39
- }
40
- export interface CreatureFamilyMedia extends LinkSelfHref {
41
- assets: CreatureFamilyAssets[];
42
- id: number;
43
- }
44
- /**
45
- * Returns an index of creature families.
46
- *
47
- * @returns A promise that resolves to an object representing a list of all creature families.
48
- */
49
- export declare function creatureFamilies(): Promise<CreatureFamilies>;
50
- /**
51
- * Returns details about a creature family
52
- *
53
- * @param creatureFamilyId - The unique identifier for the creature family
54
- * @returns A promise that resolves to an object representing details about a creature family.
55
- */
56
- export declare function creatureFamily(creatureFamilyId: number): Promise<CreatureFamily>;
57
- /**
58
- * Returns an index of creature types.
59
- *
60
- * @returns A promise that resolves to an object representing a list of all creature types.
61
- */
62
- export declare function creatureTypes(): Promise<CreatureTypes>;
63
- /**
64
- * Returns details about a creature types
65
- *
66
- * @param creatureTypeId - The unique identifier for the creature types
67
- * @returns A promise that resolves to an object representing details about a creature types.
68
- */
69
- export declare function creatureType(creatureTypeId: number): Promise<CreatureType>;
70
- /**
71
- * Returns details about a creature
72
- *
73
- * @param creatureId - The unique identifier for the creature
74
- * @returns A promise that resolves to an object representing details about a creature.
75
- */
76
- export declare function creature(creatureId: number): Promise<Creature>;
77
- /**
78
- * Performs a search of creatures.
79
- *
80
- * @param SearchParameters - Object containing search parameters.
81
- * @returns A promise that resolves to an object representing details about a creature search.
82
- */
83
- export declare function searchCreature(searchParameters: SearchParameters): Promise<Search>;
84
- /**
85
- * Returns media details about a specific Creature display
86
- *
87
- * @param creatureDisplayId - The unique identifier Creature display Id.
88
- * @returns A promise that resolves to an object representing media details about a Creature display.
89
- */
90
- export declare function creatureDisplayMedia(creatureDisplayId: number): Promise<CreatureDisplayMedia>;
91
- /**
92
- * Returns media details about a specific Creature family
93
- *
94
- * @param creatureFamilyId - The unique identifier Creature family Id.
95
- * @returns A promise that resolves to an object representing media details about a Creature family.
96
- */
97
- export declare function creatureFamilyMedia(creatureFamilyId: number): Promise<CreatureFamilyMedia>;