@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,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,26 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns the Heirloom Index
4
- *
5
- * @returns A promise that resolves to an object representing a list of all Heirlooms.
6
- */
7
- export async function heirlooms() {
8
- return await request({
9
- method: "GET",
10
- url: "/data/wow/heirloom/index",
11
- namespace: "static",
12
- });
13
- }
14
- /**
15
- * Returns a Heirloom
16
- *
17
- * @param heirloomId - The unique identifier for the Heirloom
18
- * @returns A promise that resolves to an object representing details about a Heirloom.
19
- */
20
- export async function heirloom(heirloomId) {
21
- return await request({
22
- method: "GET",
23
- url: `/data/wow/heirloom/${heirloomId}`,
24
- namespace: "static",
25
- });
26
- }
@@ -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,101 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- import { search } from "../search.js";
3
- /**
4
- * Returns an index of item classes.
5
- *
6
- * @returns A promise that resolves to an object representing a list of item classes.
7
- */
8
- export async function itemClasses() {
9
- return await request({
10
- method: "GET",
11
- url: "/data/wow/item-class/index",
12
- namespace: "static",
13
- });
14
- }
15
- /**
16
- * Returns an item class by ID.
17
- *
18
- * @param itemClassId - The unique identifier for the item class by ID.
19
- * @returns A promise that resolves to an object representing details about an item class by ID.
20
- */
21
- export async function itemClass(itemClassId) {
22
- return await request({
23
- method: "GET",
24
- url: `/data/wow/item-class/${itemClassId}`,
25
- namespace: "static",
26
- });
27
- }
28
- /**
29
- * Returns an index of item sets.
30
- *
31
- * @returns A promise that resolves to an object representing a list of item sets.
32
- */
33
- export async function itemSets() {
34
- return await request({
35
- method: "GET",
36
- url: "/data/wow/item-set/index",
37
- namespace: "static",
38
- });
39
- }
40
- /**
41
- * Returns an item set by ID.
42
- *
43
- * @param itemSetId - The unique identifier for the item set by ID.
44
- * @returns A promise that resolves to an object representing details about an item set by ID.
45
- */
46
- export async function itemSet(itemSetId) {
47
- return await request({
48
- method: "GET",
49
- url: `/data/wow/item-set/${itemSetId}`,
50
- namespace: "static",
51
- });
52
- }
53
- /**
54
- * Returns an item subclass by ID.
55
- *
56
- * @param itemClassId - The unique identifier for the item class by ID.
57
- * @param itemSubclassId - The unique identifier for the item subclass by ID.
58
- * @returns A promise that resolves to an object representing details about an item set by ID.
59
- */
60
- export async function itemSubclass(itemClassId, itemSubclassId) {
61
- return await request({
62
- method: "GET",
63
- url: `/data/wow/item-class/${itemClassId}/item-subclass/${itemSubclassId}`,
64
- namespace: "static",
65
- });
66
- }
67
- /**
68
- * Returns an item by ID.
69
- *
70
- * @param itemId - The unique identifier for the item by ID.
71
- * @returns A promise that resolves to an object representing details about an item by ID.
72
- */
73
- export async function item(itemId) {
74
- return await request({
75
- method: "GET",
76
- url: `/data/wow/item/${itemId}`,
77
- namespace: "static",
78
- });
79
- }
80
- /**
81
- * Returns media details about a specific item Id
82
- *
83
- * @param itemId - The unique identifier for the item
84
- * @returns A promise that resolves to an object representing media details about an item.
85
- */
86
- export async function itemMedia(itemId) {
87
- return await request({
88
- method: "GET",
89
- url: `/data/wow/media/item/${itemId}`,
90
- namespace: "static",
91
- });
92
- }
93
- /**
94
- * Performs a search of items.
95
- *
96
- * @param SearchParameters - Object containing search parameters.
97
- * @returns A promise that resolves to an object representing details about an item search.
98
- */
99
- export async function searchItem(searchParameters) {
100
- return await search("/item", "static", searchParameters);
101
- }
@@ -1,121 +0,0 @@
1
- import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, NameId, TypeName } from "../../shared/index.js";
2
- import type { Search, SearchParameters } from "../search.js";
3
- export interface JournalExpansions extends LinkSelfHref {
4
- tiers: KeyNameId[];
5
- }
6
- export interface JournalExpansion extends LinkSelfHref {
7
- id: number;
8
- name: LocalizedString;
9
- dungeons: KeyNameId[];
10
- raids: KeyNameId[];
11
- }
12
- export interface JournalEncounters extends LinkSelfHref {
13
- encounters: KeyNameId[];
14
- }
15
- export interface EncounterSection {
16
- id: number;
17
- title: string;
18
- body_text?: string;
19
- sections?: EncounterSection[];
20
- spell?: KeyNameId;
21
- creature_display?: KeyId;
22
- }
23
- export interface JournalEncounter extends LinkSelfHref {
24
- id: number;
25
- name: LocalizedString;
26
- description: LocalizedString;
27
- creatures: {
28
- id: number;
29
- name: LocalizedString;
30
- creature_display: KeyId;
31
- }[];
32
- items: {
33
- id: number;
34
- item: KeyNameId;
35
- }[];
36
- sections: EncounterSection[];
37
- instance: KeyNameId;
38
- category: {
39
- type: string;
40
- };
41
- modes: TypeName[];
42
- }
43
- export interface JournalInstances extends LinkSelfHref {
44
- instances: KeyNameId[];
45
- }
46
- export interface JournalInstance extends LinkSelfHref {
47
- id: number;
48
- name: LocalizedString;
49
- map: NameId;
50
- area?: NameId;
51
- description: LocalizedString;
52
- encounters: KeyNameId[];
53
- expansion: KeyNameId;
54
- location?: NameId;
55
- modes: {
56
- mode: TypeName;
57
- players: 5;
58
- is_tracked: true;
59
- }[];
60
- media: KeyId;
61
- minimum_level: number;
62
- category: {
63
- type: string;
64
- };
65
- }
66
- export interface JournalInstanceMedia extends LinkSelfHref {
67
- assets: Asset[];
68
- }
69
- /**
70
- * Returns an index of journal expansions.
71
- *
72
- * @returns A promise that resolves to an object representing a list of journal expansions.
73
- */
74
- export declare function journalExpansions(): Promise<JournalExpansions>;
75
- /**
76
- * Returns a journal expansion by ID.
77
- *
78
- * @param journalExpansionId - The unique identifier for the journal expansion.
79
- * @returns A promise that resolves to an object representing details about a journal expansion.
80
- */
81
- export declare function journalExpansion(journalExpansionId: number): Promise<JournalExpansion>;
82
- /**
83
- * Returns an index of journal encounters.
84
- *
85
- * @returns A promise that resolves to an object representing a list of journal expansions.
86
- */
87
- export declare function journalEncounters(): Promise<JournalEncounters>;
88
- /**
89
- * Returns a journal encounter by ID.
90
- *
91
- * @param journalEncounterId - The unique identifier for the journal encounter.
92
- * @returns A promise that resolves to an object representing details about a journal encounter.
93
- */
94
- export declare function journalEncounter(journalEncounterId: number): Promise<JournalEncounter>;
95
- /**
96
- * Performs a search of journal encounters.
97
- *
98
- * @param SearchParameters - Object containing search parameters.
99
- * @returns A promise that resolves to an object representing details about a journal encounter search.
100
- */
101
- export declare function searchJournalEncounter(searchParameters: SearchParameters): Promise<Search>;
102
- /**
103
- * Returns an index of journal instances.
104
- *
105
- * @returns A promise that resolves to an object representing a list of journal instances.
106
- */
107
- export declare function journalInstances(): Promise<JournalInstances>;
108
- /**
109
- * Returns a journal instances by ID.
110
- *
111
- * @param journalInstanceId - The unique identifier for the journal instances.
112
- * @returns A promise that resolves to an object representing details about a journal instances.
113
- */
114
- export declare function journalInstance(journalInstanceId: number): Promise<JournalInstance>;
115
- /**
116
- * Returns media for a journal instance by ID.
117
- *
118
- * @param journalInstanceId - The unique identifier for the journal instance
119
- * @returns A promise that resolves to an object representing media details about a journal instance.
120
- */
121
- export declare function journalInstanceMedia(journalInstanceId: number): Promise<JournalInstanceMedia>;
@@ -1,99 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- import { search } from "../search.js";
3
- /**
4
- * Returns an index of journal expansions.
5
- *
6
- * @returns A promise that resolves to an object representing a list of journal expansions.
7
- */
8
- export async function journalExpansions() {
9
- return await request({
10
- method: "GET",
11
- url: "/data/wow/journal-expansion/index",
12
- namespace: "static",
13
- });
14
- }
15
- /**
16
- * Returns a journal expansion by ID.
17
- *
18
- * @param journalExpansionId - The unique identifier for the journal expansion.
19
- * @returns A promise that resolves to an object representing details about a journal expansion.
20
- */
21
- export async function journalExpansion(journalExpansionId) {
22
- return await request({
23
- method: "GET",
24
- url: `/data/wow/journal-expansion/${journalExpansionId}`,
25
- namespace: "static",
26
- });
27
- }
28
- /**
29
- * Returns an index of journal encounters.
30
- *
31
- * @returns A promise that resolves to an object representing a list of journal expansions.
32
- */
33
- export async function journalEncounters() {
34
- return await request({
35
- method: "GET",
36
- url: "/data/wow/journal-encounter/index",
37
- namespace: "static",
38
- });
39
- }
40
- /**
41
- * Returns a journal encounter by ID.
42
- *
43
- * @param journalEncounterId - The unique identifier for the journal encounter.
44
- * @returns A promise that resolves to an object representing details about a journal encounter.
45
- */
46
- export async function journalEncounter(journalEncounterId) {
47
- return await request({
48
- method: "GET",
49
- url: `/data/wow/journal-encounter/${journalEncounterId}`,
50
- namespace: "static",
51
- });
52
- }
53
- /**
54
- * Performs a search of journal encounters.
55
- *
56
- * @param SearchParameters - Object containing search parameters.
57
- * @returns A promise that resolves to an object representing details about a journal encounter search.
58
- */
59
- export async function searchJournalEncounter(searchParameters) {
60
- return await search("/journal-encounter", "static", searchParameters);
61
- }
62
- /**
63
- * Returns an index of journal instances.
64
- *
65
- * @returns A promise that resolves to an object representing a list of journal instances.
66
- */
67
- export async function journalInstances() {
68
- return await request({
69
- method: "GET",
70
- url: "/data/wow/journal-instance/index",
71
- namespace: "static",
72
- });
73
- }
74
- /**
75
- * Returns a journal instances by ID.
76
- *
77
- * @param journalInstanceId - The unique identifier for the journal instances.
78
- * @returns A promise that resolves to an object representing details about a journal instances.
79
- */
80
- export async function journalInstance(journalInstanceId) {
81
- return await request({
82
- method: "GET",
83
- url: `/data/wow/journal-instance/${journalInstanceId}`,
84
- namespace: "static",
85
- });
86
- }
87
- /**
88
- * Returns media for a journal instance by ID.
89
- *
90
- * @param journalInstanceId - The unique identifier for the journal instance
91
- * @returns A promise that resolves to an object representing media details about a journal instance.
92
- */
93
- export async function journalInstanceMedia(journalInstanceId) {
94
- return await request({
95
- method: "GET",
96
- url: `/data/wow/media/journal-instance/${journalInstanceId}`,
97
- namespace: "static",
98
- });
99
- }
@@ -1,34 +0,0 @@
1
- import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- export interface KeystoneAffixes extends LinkSelfHref {
3
- affixes: KeyNameId[];
4
- }
5
- export interface KeystoneAffix extends LinkSelfHref {
6
- id: number;
7
- name: LocalizedString;
8
- description: LocalizedString;
9
- media: KeyId;
10
- }
11
- export interface KeystoneAffixMedia extends LinkSelfHref {
12
- assets: Asset[];
13
- id: number;
14
- }
15
- /**
16
- * Returns an index of mythic keystone affixes.
17
- *
18
- * @returns A promise that resolves to an object representing a list of the mythic keystone affixes.
19
- */
20
- export declare function keystoneAffixes(): Promise<KeystoneAffixes>;
21
- /**
22
- * Returns a mythic keystone affix by ID.
23
- *
24
- * @param keystoneAffixId - The unique identifier for the mythic keystone affix
25
- * @returns A promise that resolves to an object representing details about a mythic keystone affix by ID.
26
- */
27
- export declare function keystoneAffix(keystoneAffixId: number): Promise<KeystoneAffix>;
28
- /**
29
- * Returns media for a mythic keystone affix by ID.
30
- *
31
- * @param keystoneAffixId - The unique identifier for the mythic keystone affix
32
- * @returns A promise that resolves to an object representing media details about a mythic keystone affix.
33
- */
34
- export declare function keystoneAffixMedia(keystoneAffixId: number): Promise<KeystoneAffixMedia>;
@@ -1,39 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns an index of mythic keystone affixes.
4
- *
5
- * @returns A promise that resolves to an object representing a list of the mythic keystone affixes.
6
- */
7
- export async function keystoneAffixes() {
8
- return await request({
9
- method: "GET",
10
- url: "/data/wow/keystone-affix/index",
11
- namespace: "static",
12
- });
13
- }
14
- /**
15
- * Returns a mythic keystone affix by ID.
16
- *
17
- * @param keystoneAffixId - The unique identifier for the mythic keystone affix
18
- * @returns A promise that resolves to an object representing details about a mythic keystone affix by ID.
19
- */
20
- export async function keystoneAffix(keystoneAffixId) {
21
- return await request({
22
- method: "GET",
23
- url: `/data/wow/keystone-affix/${keystoneAffixId}`,
24
- namespace: "static",
25
- });
26
- }
27
- /**
28
- * Returns media for a mythic keystone affix by ID.
29
- *
30
- * @param keystoneAffixId - The unique identifier for the mythic keystone affix
31
- * @returns A promise that resolves to an object representing media details about a mythic keystone affix.
32
- */
33
- export async function keystoneAffixMedia(keystoneAffixId) {
34
- return await request({
35
- method: "GET",
36
- url: `/data/wow/media/keystone-affix/${keystoneAffixId}`,
37
- namespace: "static",
38
- });
39
- }
@@ -1,8 +0,0 @@
1
- import type { Search, SearchParameters } from "../search.js";
2
- /**
3
- * Performs a search of media.
4
- *
5
- * @param SearchParameters - Object containing search parameters.
6
- * @returns A promise that resolves to an object representing details about a media search.
7
- */
8
- export declare function searchMedia(searchParameters: SearchParameters): Promise<Search>;
@@ -1,10 +0,0 @@
1
- import { search } from "../search.js";
2
- /**
3
- * Performs a search of media.
4
- *
5
- * @param SearchParameters - Object containing search parameters.
6
- * @returns A promise that resolves to an object representing details about a media search.
7
- */
8
- export async function searchMedia(searchParameters) {
9
- return await search("/media", "static", searchParameters);
10
- }