@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,111 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.creatureFamilyMedia = exports.creatureDisplayMedia = exports.searchCreature = exports.creature = exports.creatureType = exports.creatureTypes = exports.creatureFamily = exports.creatureFamilies = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- const search_js_1 = require("../search.js");
6
- /**
7
- * Returns an index of creature families.
8
- *
9
- * @returns A promise that resolves to an object representing a list of all creature families.
10
- */
11
- async function creatureFamilies() {
12
- return await (0, index_js_1.request)({
13
- method: "GET",
14
- url: "/data/wow/creature-family/index",
15
- namespace: "static",
16
- });
17
- }
18
- exports.creatureFamilies = creatureFamilies;
19
- /**
20
- * Returns details about a creature family
21
- *
22
- * @param creatureFamilyId - The unique identifier for the creature family
23
- * @returns A promise that resolves to an object representing details about a creature family.
24
- */
25
- async function creatureFamily(creatureFamilyId) {
26
- return await (0, index_js_1.request)({
27
- method: "GET",
28
- url: `/data/wow/creature-family/${creatureFamilyId}`,
29
- namespace: "static",
30
- });
31
- }
32
- exports.creatureFamily = creatureFamily;
33
- /**
34
- * Returns an index of creature types.
35
- *
36
- * @returns A promise that resolves to an object representing a list of all creature types.
37
- */
38
- async function creatureTypes() {
39
- return await (0, index_js_1.request)({
40
- method: "GET",
41
- url: "/data/wow/creature-type/index",
42
- namespace: "static",
43
- });
44
- }
45
- exports.creatureTypes = creatureTypes;
46
- /**
47
- * Returns details about a creature types
48
- *
49
- * @param creatureTypeId - The unique identifier for the creature types
50
- * @returns A promise that resolves to an object representing details about a creature types.
51
- */
52
- async function creatureType(creatureTypeId) {
53
- return await (0, index_js_1.request)({
54
- method: "GET",
55
- url: `/data/wow/creature-type/${creatureTypeId}`,
56
- namespace: "static",
57
- });
58
- }
59
- exports.creatureType = creatureType;
60
- /**
61
- * Returns details about a creature
62
- *
63
- * @param creatureId - The unique identifier for the creature
64
- * @returns A promise that resolves to an object representing details about a creature.
65
- */
66
- async function creature(creatureId) {
67
- return await (0, index_js_1.request)({
68
- method: "GET",
69
- url: `/data/wow/creature/${creatureId}`,
70
- namespace: "static",
71
- });
72
- }
73
- exports.creature = creature;
74
- /**
75
- * Performs a search of creatures.
76
- *
77
- * @param SearchParameters - Object containing search parameters.
78
- * @returns A promise that resolves to an object representing details about a creature search.
79
- */
80
- async function searchCreature(searchParameters) {
81
- return await (0, search_js_1.search)("/creature", "static", searchParameters);
82
- }
83
- exports.searchCreature = searchCreature;
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
- async function creatureDisplayMedia(creatureDisplayId) {
91
- return await (0, index_js_1.request)({
92
- method: "GET",
93
- url: `/data/wow/media/creature-display/${creatureDisplayId}`,
94
- namespace: "static",
95
- });
96
- }
97
- exports.creatureDisplayMedia = creatureDisplayMedia;
98
- /**
99
- * Returns media details about a specific Creature family
100
- *
101
- * @param creatureFamilyId - The unique identifier Creature family Id.
102
- * @returns A promise that resolves to an object representing media details about a Creature family.
103
- */
104
- async function creatureFamilyMedia(creatureFamilyId) {
105
- return await (0, index_js_1.request)({
106
- method: "GET",
107
- url: `/data/wow/media/creature-family/${creatureFamilyId}`,
108
- namespace: "static",
109
- });
110
- }
111
- exports.creatureFamilyMedia = creatureFamilyMedia;
@@ -1,55 +0,0 @@
1
- import type { Asset, KeyId, LinkSelfHref } from "../../shared/index.js";
2
- export interface Emblem {
3
- id: number;
4
- media: KeyId[];
5
- }
6
- export interface Border {
7
- id: number;
8
- media: KeyId[];
9
- }
10
- export interface IdRgba {
11
- id: number;
12
- rgba: {
13
- r: number;
14
- g: number;
15
- b: number;
16
- a: number;
17
- };
18
- }
19
- export interface GuildCrests extends LinkSelfHref {
20
- emblems: Emblem[];
21
- borders: Border[];
22
- colors: {
23
- emblems: IdRgba[];
24
- borders: IdRgba[];
25
- backgrounds: IdRgba[];
26
- };
27
- }
28
- export interface GuildCrestBorder extends LinkSelfHref {
29
- assets: Asset[];
30
- id: number;
31
- }
32
- export interface GuildCrestEmblem extends LinkSelfHref {
33
- assets: Asset[];
34
- id: number;
35
- }
36
- /**
37
- * Returns the Guild Crest Components Index
38
- *
39
- * @returns A promise that resolves to an object representing a list of all Guild Crest Components.
40
- */
41
- export declare function guildCrests(): Promise<GuildCrests>;
42
- /**
43
- * Returns a Guild Crest Border Media
44
- *
45
- * @param borderId - The unique identifier for the Covenant
46
- * @returns A promise that resolves to an object representing details about a Guild Crest Border Media.
47
- */
48
- export declare function guildCrestBorder(borderId: number): Promise<GuildCrestBorder>;
49
- /**
50
- * Returns a Crest Emblem Media
51
- *
52
- * @param emblemId - The unique identifier for the Crest Emblem Media
53
- * @returns A promise that resolves to an object representing details about a Crest Emblem Media.
54
- */
55
- export declare function guildCrestEmblem(emblemId: number): Promise<GuildCrestEmblem>;
@@ -1,45 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.guildCrestEmblem = exports.guildCrestBorder = exports.guildCrests = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- /**
6
- * Returns the Guild Crest Components Index
7
- *
8
- * @returns A promise that resolves to an object representing a list of all Guild Crest Components.
9
- */
10
- async function guildCrests() {
11
- return await (0, index_js_1.request)({
12
- method: "GET",
13
- url: "/data/wow/guild-crest/index",
14
- namespace: "static",
15
- });
16
- }
17
- exports.guildCrests = guildCrests;
18
- /**
19
- * Returns a Guild Crest Border Media
20
- *
21
- * @param borderId - The unique identifier for the Covenant
22
- * @returns A promise that resolves to an object representing details about a Guild Crest Border Media.
23
- */
24
- async function guildCrestBorder(borderId) {
25
- return await (0, index_js_1.request)({
26
- method: "GET",
27
- url: `/data/wow/media/guild-crest/border/${borderId}`,
28
- namespace: "static",
29
- });
30
- }
31
- exports.guildCrestBorder = guildCrestBorder;
32
- /**
33
- * Returns a Crest Emblem Media
34
- *
35
- * @param emblemId - The unique identifier for the Crest Emblem Media
36
- * @returns A promise that resolves to an object representing details about a Crest Emblem Media.
37
- */
38
- async function guildCrestEmblem(emblemId) {
39
- return await (0, index_js_1.request)({
40
- method: "GET",
41
- url: `/data/wow/media/guild-crest/emblem/${emblemId}`,
42
- namespace: "static",
43
- });
44
- }
45
- exports.guildCrestEmblem = guildCrestEmblem;
@@ -1,79 +0,0 @@
1
- import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
2
- export interface Heirlooms extends LinkSelfHref {
3
- heirlooms: KeyNameId[];
4
- }
5
- export interface ValueDisplayString {
6
- value: number;
7
- display_string: LocalizedString;
8
- }
9
- export interface UpgradeStats {
10
- type: TypeName;
11
- value: number;
12
- display: {
13
- display_string: LocalizedString;
14
- color: {
15
- r: number;
16
- g: number;
17
- b: number;
18
- a: number;
19
- };
20
- };
21
- }
22
- export interface Upgrade {
23
- item: {
24
- item: KeyId;
25
- context: number;
26
- bonus_list: number[];
27
- quality: TypeName;
28
- name: LocalizedString;
29
- media: KeyId;
30
- item_class: KeyNameId;
31
- item_subclass: KeyNameId;
32
- inventory_type: TypeName;
33
- binding: TypeName;
34
- weapon: {
35
- damage: {
36
- min_value: number;
37
- max_value: number;
38
- display_string: LocalizedString;
39
- damage_class: TypeName;
40
- };
41
- attack_speed: ValueDisplayString;
42
- dps: ValueDisplayString;
43
- };
44
- stats: UpgradeStats[];
45
- upgrades: {
46
- value: number;
47
- max_value: number;
48
- display_string: LocalizedString;
49
- };
50
- requirements: {
51
- level: {
52
- display_string: LocalizedString;
53
- };
54
- };
55
- level: ValueDisplayString;
56
- };
57
- level: number;
58
- }
59
- export interface Heirloom extends LinkSelfHref {
60
- id: number;
61
- item: KeyNameId;
62
- source: TypeName;
63
- source_description: LocalizedString;
64
- upgrades: Upgrade[];
65
- media: KeyId;
66
- }
67
- /**
68
- * Returns the Heirloom Index
69
- *
70
- * @returns A promise that resolves to an object representing a list of all Heirlooms.
71
- */
72
- export declare function heirlooms(): Promise<Heirlooms>;
73
- /**
74
- * Returns a Heirloom
75
- *
76
- * @param heirloomId - The unique identifier for the Heirloom
77
- * @returns A promise that resolves to an object representing details about a Heirloom.
78
- */
79
- export declare function heirloom(heirloomId: number): Promise<Heirloom>;
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.heirloom = exports.heirlooms = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- /**
6
- * Returns the Heirloom Index
7
- *
8
- * @returns A promise that resolves to an object representing a list of all Heirlooms.
9
- */
10
- async function heirlooms() {
11
- return await (0, index_js_1.request)({
12
- method: "GET",
13
- url: "/data/wow/heirloom/index",
14
- namespace: "static",
15
- });
16
- }
17
- exports.heirlooms = heirlooms;
18
- /**
19
- * Returns a Heirloom
20
- *
21
- * @param heirloomId - The unique identifier for the Heirloom
22
- * @returns A promise that resolves to an object representing details about a Heirloom.
23
- */
24
- async function heirloom(heirloomId) {
25
- return await (0, index_js_1.request)({
26
- method: "GET",
27
- url: `/data/wow/heirloom/${heirloomId}`,
28
- namespace: "static",
29
- });
30
- }
31
- exports.heirloom = heirloom;
@@ -1,166 +0,0 @@
1
- import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
2
- import type { Search, SearchParameters } from "../search.js";
3
- export interface ItemClasses extends LinkSelfHref {
4
- item_classes: KeyNameId[];
5
- }
6
- export interface ItemClass extends LinkSelfHref {
7
- class_id: number;
8
- name: LocalizedString;
9
- item_subclasses: KeyNameId[];
10
- }
11
- export interface ItemSets extends LinkSelfHref {
12
- item_sets: KeyNameId[];
13
- }
14
- export interface ItemSet extends LinkSelfHref {
15
- id: number;
16
- name: LocalizedString;
17
- items: KeyNameId[];
18
- effects: {
19
- display_string: LocalizedString;
20
- required_count: number;
21
- };
22
- is_effect_active: boolean;
23
- }
24
- export interface ItemSubclass extends LinkSelfHref {
25
- class_id: number;
26
- subclass_id: number;
27
- display_name: LocalizedString;
28
- hide_subclass_in_tooltips?: boolean;
29
- }
30
- export interface Item extends LinkSelfHref {
31
- id: number;
32
- name: LocalizedString;
33
- quality: TypeName;
34
- level: number;
35
- required_level: number;
36
- media: KeyId;
37
- item_class: KeyNameId;
38
- item_subclass: KeyNameId;
39
- inventory_type: TypeName;
40
- purchase_price: number;
41
- sell_price: number;
42
- max_count: number;
43
- is_equippable: boolean;
44
- is_stackable: boolean;
45
- preview_item: {
46
- item: KeyId;
47
- context: number;
48
- bonus_list: number[];
49
- quality: TypeName;
50
- name: LocalizedString;
51
- media: KeyId;
52
- item_class: KeyNameId;
53
- item_subclass: KeyNameId;
54
- inventory_type: TypeName;
55
- binding: TypeName;
56
- unique_equipped: string;
57
- weapon: {
58
- damage: {
59
- min_value: number;
60
- max_value: number;
61
- display_string: LocalizedString;
62
- damage_class: TypeName;
63
- };
64
- attack_speed: {
65
- value: number;
66
- display_string: LocalizedString;
67
- };
68
- dps: {
69
- value: number;
70
- display_string: LocalizedString;
71
- };
72
- };
73
- stats: {
74
- type: TypeName;
75
- value: number;
76
- is_negated: boolean;
77
- display: {
78
- display_string: LocalizedString;
79
- color: {
80
- r: number;
81
- g: number;
82
- b: number;
83
- a: number;
84
- };
85
- };
86
- }[];
87
- spells: {
88
- spell: KeyNameId;
89
- description: LocalizedString;
90
- }[];
91
- requirements: {
92
- level: {
93
- value: number;
94
- display_string: LocalizedString;
95
- };
96
- };
97
- level: {
98
- value: number;
99
- display_string: LocalizedString;
100
- };
101
- durability: {
102
- value: number;
103
- display_string: LocalizedString;
104
- };
105
- };
106
- purchase_quantity: number;
107
- }
108
- export interface ItemMedia extends LinkSelfHref {
109
- assets: Asset[];
110
- id: number;
111
- }
112
- /**
113
- * Returns an index of item classes.
114
- *
115
- * @returns A promise that resolves to an object representing a list of item classes.
116
- */
117
- export declare function itemClasses(): Promise<ItemClasses>;
118
- /**
119
- * Returns an item class by ID.
120
- *
121
- * @param itemClassId - The unique identifier for the item class by ID.
122
- * @returns A promise that resolves to an object representing details about an item class by ID.
123
- */
124
- export declare function itemClass(itemClassId: number): Promise<ItemClass>;
125
- /**
126
- * Returns an index of item sets.
127
- *
128
- * @returns A promise that resolves to an object representing a list of item sets.
129
- */
130
- export declare function itemSets(): Promise<ItemSets>;
131
- /**
132
- * Returns an item set by ID.
133
- *
134
- * @param itemSetId - The unique identifier for the item set by ID.
135
- * @returns A promise that resolves to an object representing details about an item set by ID.
136
- */
137
- export declare function itemSet(itemSetId: number): Promise<ItemSet>;
138
- /**
139
- * Returns an item subclass by ID.
140
- *
141
- * @param itemClassId - The unique identifier for the item class by ID.
142
- * @param itemSubclassId - The unique identifier for the item subclass by ID.
143
- * @returns A promise that resolves to an object representing details about an item set by ID.
144
- */
145
- export declare function itemSubclass(itemClassId: number, itemSubclassId: number): Promise<ItemSubclass>;
146
- /**
147
- * Returns an item by ID.
148
- *
149
- * @param itemId - The unique identifier for the item by ID.
150
- * @returns A promise that resolves to an object representing details about an item by ID.
151
- */
152
- export declare function item(itemId: number): Promise<Item>;
153
- /**
154
- * Returns media details about a specific item Id
155
- *
156
- * @param itemId - The unique identifier for the item
157
- * @returns A promise that resolves to an object representing media details about an item.
158
- */
159
- export declare function itemMedia(itemId: number): Promise<ItemMedia>;
160
- /**
161
- * Performs a search of items.
162
- *
163
- * @param SearchParameters - Object containing search parameters.
164
- * @returns A promise that resolves to an object representing details about an item search.
165
- */
166
- export declare function searchItem(searchParameters: SearchParameters): Promise<Search>;
@@ -1,112 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.searchItem = exports.itemMedia = exports.item = exports.itemSubclass = exports.itemSet = exports.itemSets = exports.itemClass = exports.itemClasses = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- const search_js_1 = require("../search.js");
6
- /**
7
- * Returns an index of item classes.
8
- *
9
- * @returns A promise that resolves to an object representing a list of item classes.
10
- */
11
- async function itemClasses() {
12
- return await (0, index_js_1.request)({
13
- method: "GET",
14
- url: "/data/wow/item-class/index",
15
- namespace: "static",
16
- });
17
- }
18
- exports.itemClasses = itemClasses;
19
- /**
20
- * Returns an item class by ID.
21
- *
22
- * @param itemClassId - The unique identifier for the item class by ID.
23
- * @returns A promise that resolves to an object representing details about an item class by ID.
24
- */
25
- async function itemClass(itemClassId) {
26
- return await (0, index_js_1.request)({
27
- method: "GET",
28
- url: `/data/wow/item-class/${itemClassId}`,
29
- namespace: "static",
30
- });
31
- }
32
- exports.itemClass = itemClass;
33
- /**
34
- * Returns an index of item sets.
35
- *
36
- * @returns A promise that resolves to an object representing a list of item sets.
37
- */
38
- async function itemSets() {
39
- return await (0, index_js_1.request)({
40
- method: "GET",
41
- url: "/data/wow/item-set/index",
42
- namespace: "static",
43
- });
44
- }
45
- exports.itemSets = itemSets;
46
- /**
47
- * Returns an item set by ID.
48
- *
49
- * @param itemSetId - The unique identifier for the item set by ID.
50
- * @returns A promise that resolves to an object representing details about an item set by ID.
51
- */
52
- async function itemSet(itemSetId) {
53
- return await (0, index_js_1.request)({
54
- method: "GET",
55
- url: `/data/wow/item-set/${itemSetId}`,
56
- namespace: "static",
57
- });
58
- }
59
- exports.itemSet = itemSet;
60
- /**
61
- * Returns an item subclass by ID.
62
- *
63
- * @param itemClassId - The unique identifier for the item class by ID.
64
- * @param itemSubclassId - The unique identifier for the item subclass by ID.
65
- * @returns A promise that resolves to an object representing details about an item set by ID.
66
- */
67
- async function itemSubclass(itemClassId, itemSubclassId) {
68
- return await (0, index_js_1.request)({
69
- method: "GET",
70
- url: `/data/wow/item-class/${itemClassId}/item-subclass/${itemSubclassId}`,
71
- namespace: "static",
72
- });
73
- }
74
- exports.itemSubclass = itemSubclass;
75
- /**
76
- * Returns an item by ID.
77
- *
78
- * @param itemId - The unique identifier for the item by ID.
79
- * @returns A promise that resolves to an object representing details about an item by ID.
80
- */
81
- async function item(itemId) {
82
- return await (0, index_js_1.request)({
83
- method: "GET",
84
- url: `/data/wow/item/${itemId}`,
85
- namespace: "static",
86
- });
87
- }
88
- exports.item = item;
89
- /**
90
- * Returns media details about a specific item Id
91
- *
92
- * @param itemId - The unique identifier for the item
93
- * @returns A promise that resolves to an object representing media details about an item.
94
- */
95
- async function itemMedia(itemId) {
96
- return await (0, index_js_1.request)({
97
- method: "GET",
98
- url: `/data/wow/media/item/${itemId}`,
99
- namespace: "static",
100
- });
101
- }
102
- exports.itemMedia = itemMedia;
103
- /**
104
- * Performs a search of items.
105
- *
106
- * @param SearchParameters - Object containing search parameters.
107
- * @returns A promise that resolves to an object representing details about an item search.
108
- */
109
- async function searchItem(searchParameters) {
110
- return await (0, search_js_1.search)("/item", "static", searchParameters);
111
- }
112
- exports.searchItem = searchItem;