@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,57 +0,0 @@
1
- import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- export interface PlayableClasses extends LinkSelfHref {
3
- classes: KeyNameId[];
4
- }
5
- export interface PlayableClass extends LinkSelfHref {
6
- id: number;
7
- name: LocalizedString;
8
- gender_name: {
9
- male: LocalizedString;
10
- female: LocalizedString;
11
- };
12
- power_type: KeyNameId;
13
- specializations: KeyNameId[];
14
- media: KeyId;
15
- pvp_talent_slots: {
16
- href: string;
17
- };
18
- playable_races: KeyNameId[];
19
- additional_power_types: KeyNameId[];
20
- }
21
- export interface PlayableClassMedia extends LinkSelfHref {
22
- assets: Asset[];
23
- id: number;
24
- }
25
- export interface PlayableClassPvpTalentSlots extends LinkSelfHref {
26
- talent_slots: {
27
- slot_number: number;
28
- unlock_player_level: number;
29
- }[];
30
- }
31
- /**
32
- * Returns an index of playable classes.
33
- *
34
- * @returns A promise that resolves to an object representing a list of the index of playable classes.
35
- */
36
- export declare function playableClasses(): Promise<PlayableClasses>;
37
- /**
38
- * Returns a playable class by ID.
39
- *
40
- * @param classId - The unique identifier for the playable class
41
- * @returns A promise that resolves to an object representing details about a playable class.
42
- */
43
- export declare function playableClass(classId: number): Promise<PlayableClass>;
44
- /**
45
- * Returns media for a playable class by ID.
46
- *
47
- * @param playableClassId - The unique identifier for the playable class
48
- * @returns A promise that resolves to an object representing media details about a playable class.
49
- */
50
- export declare function playableClassMedia(playableClassId: number): Promise<PlayableClassMedia>;
51
- /**
52
- * Returns the PvP talent slots for a playable class by ID.
53
- *
54
- * @param classId - The unique identifier for the playable class
55
- * @returns A promise that resolves to an object representing PvP talent slots for a playable class.
56
- */
57
- export declare function playableClassPvpTalentSlots(classId: number): Promise<PlayableClassPvpTalentSlots>;
@@ -1,52 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns an index of playable classes.
4
- *
5
- * @returns A promise that resolves to an object representing a list of the index of playable classes.
6
- */
7
- export async function playableClasses() {
8
- return await request({
9
- method: "GET",
10
- url: "/data/wow/playable-class/index",
11
- namespace: "static",
12
- });
13
- }
14
- /**
15
- * Returns a playable class by ID.
16
- *
17
- * @param classId - The unique identifier for the playable class
18
- * @returns A promise that resolves to an object representing details about a playable class.
19
- */
20
- export async function playableClass(classId) {
21
- return await request({
22
- method: "GET",
23
- url: `/data/wow/playable-class/${classId}`,
24
- namespace: "static",
25
- });
26
- }
27
- /**
28
- * Returns media for a playable class by ID.
29
- *
30
- * @param playableClassId - The unique identifier for the playable class
31
- * @returns A promise that resolves to an object representing media details about a playable class.
32
- */
33
- export async function playableClassMedia(playableClassId) {
34
- return await request({
35
- method: "GET",
36
- url: `/data/wow/media/playable-class/${playableClassId}`,
37
- namespace: "static",
38
- });
39
- }
40
- /**
41
- * Returns the PvP talent slots for a playable class by ID.
42
- *
43
- * @param classId - The unique identifier for the playable class
44
- * @returns A promise that resolves to an object representing PvP talent slots for a playable class.
45
- */
46
- export async function playableClassPvpTalentSlots(classId) {
47
- return await request({
48
- method: "GET",
49
- url: `/data/wow/playable-class/${classId}/pvp-talent-slots`,
50
- namespace: "static",
51
- });
52
- }
@@ -1,29 +0,0 @@
1
- import type { KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
2
- export interface PlayableRaces extends LinkSelfHref {
3
- races: KeyNameId[];
4
- }
5
- export interface PlayableRace extends LinkSelfHref {
6
- id: number;
7
- name: LocalizedString;
8
- gender_name: {
9
- male: LocalizedString;
10
- female: LocalizedString;
11
- };
12
- faction: TypeName;
13
- is_selectable: boolean;
14
- is_allied_race: boolean;
15
- playable_classes: KeyNameId[];
16
- }
17
- /**
18
- * Returns an index of playable races.
19
- *
20
- * @returns A promise that resolves to an object representing a list of the index of playable races.
21
- */
22
- export declare function playableRaces(): Promise<PlayableRaces>;
23
- /**
24
- * Returns a playable race by ID.
25
- *
26
- * @param playableRaceId - The unique identifier for the playable race
27
- * @returns A promise that resolves to an object representing details about a playable race.
28
- */
29
- export declare function playableRace(playableRaceId: number): Promise<PlayableRace>;
@@ -1,26 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns an index of playable races.
4
- *
5
- * @returns A promise that resolves to an object representing a list of the index of playable races.
6
- */
7
- export async function playableRaces() {
8
- return await request({
9
- method: "GET",
10
- url: "/data/wow/playable-race/index",
11
- namespace: "static",
12
- });
13
- }
14
- /**
15
- * Returns a playable race by ID.
16
- *
17
- * @param playableRaceId - The unique identifier for the playable race
18
- * @returns A promise that resolves to an object representing details about a playable race.
19
- */
20
- export async function playableRace(playableRaceId) {
21
- return await request({
22
- method: "GET",
23
- url: `/data/wow/playable-race/${playableRaceId}`,
24
- namespace: "static",
25
- });
26
- }
@@ -1,21 +0,0 @@
1
- import type { KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- export interface PowerTypes extends LinkSelfHref {
3
- power_types: KeyNameId[];
4
- }
5
- export interface PowerType extends LinkSelfHref {
6
- id: number;
7
- name: LocalizedString;
8
- }
9
- /**
10
- * Returns an index of power types.
11
- *
12
- * @returns A promise that resolves to an object representing a list of power types.
13
- */
14
- export declare function powerTypes(): Promise<PowerTypes>;
15
- /**
16
- * Returns a power type by ID.
17
- *
18
- * @param powerTypeId - The unique identifier for the power type.
19
- * @returns A promise that resolves to an object representing details about a power type.
20
- */
21
- export declare function powerType(powerTypeId: number): Promise<PowerType>;
@@ -1,26 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns an index of power types.
4
- *
5
- * @returns A promise that resolves to an object representing a list of power types.
6
- */
7
- export async function powerTypes() {
8
- return await request({
9
- method: "GET",
10
- url: "/data/wow/power-type/index",
11
- namespace: "static",
12
- });
13
- }
14
- /**
15
- * Returns a power type by ID.
16
- *
17
- * @param powerTypeId - The unique identifier for the power type.
18
- * @returns A promise that resolves to an object representing details about a power type.
19
- */
20
- export async function powerType(powerTypeId) {
21
- return await request({
22
- method: "GET",
23
- url: `/data/wow/power-type/${powerTypeId}`,
24
- namespace: "static",
25
- });
26
- }
@@ -1,85 +0,0 @@
1
- import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
2
- export interface Professions extends LinkSelfHref {
3
- professions: KeyNameId[];
4
- }
5
- export interface Profession extends LinkSelfHref {
6
- id: number;
7
- name: LocalizedString;
8
- description: LocalizedString;
9
- type: TypeName;
10
- media: KeyId;
11
- skill_tiers: KeyNameId[];
12
- }
13
- export interface ProfessionMedia extends LinkSelfHref {
14
- assets: Asset[];
15
- id: number;
16
- }
17
- export interface ProfessionSkillTier extends LinkSelfHref {
18
- id: number;
19
- name: LocalizedString;
20
- minimum_skill_level: number;
21
- maximum_skill_level: number;
22
- categories: {
23
- name: LocalizedString;
24
- recipes: KeyNameId[];
25
- }[];
26
- }
27
- export interface ProfessionRecipie extends LinkSelfHref {
28
- id: number;
29
- name: LocalizedString;
30
- media: KeyId;
31
- crafted_item: KeyNameId;
32
- reagents: {
33
- reagent: KeyNameId;
34
- quantity: number;
35
- }[];
36
- crafted_quantity: {
37
- value: number;
38
- };
39
- }
40
- export interface professionRecipieMedia extends LinkSelfHref {
41
- assets: Asset[];
42
- id: number;
43
- }
44
- /**
45
- * Returns an index of professions.
46
- *
47
- * @returns A promise that resolves to an object representing a list of professions.
48
- */
49
- export declare function professions(): Promise<Professions>;
50
- /**
51
- * Returns a profession by ID.
52
- *
53
- * @param professionId - The unique identifier for the profession.
54
- * @returns A promise that resolves to an object representing details about a profession.
55
- */
56
- export declare function profession(professionId: number): Promise<Profession>;
57
- /**
58
- * Returns media for a profession by ID.
59
- *
60
- * @param professionId - The unique identifier for the profession
61
- * @returns A promise that resolves to an object representing media details about a profession.
62
- */
63
- export declare function professionMedia(professionId: number): Promise<ProfessionMedia>;
64
- /**
65
- * Returns a skill tier for a profession by ID.
66
- *
67
- * @param professionId - The unique identifier for the profession
68
- * @param skillTierId - The unique identifier for the skill tier
69
- * @returns A promise that resolves to an object representing details about a skill tier.
70
- */
71
- export declare function professionSkillTier(professionId: number, skillTierId: number): Promise<ProfessionSkillTier>;
72
- /**
73
- * Returns a recipe by ID.
74
- *
75
- * @param recipeId - The unique identifier for the recipe.
76
- * @returns A promise that resolves to an object representing details about a recipe.
77
- */
78
- export declare function professionRecipie(recipeId: number): Promise<ProfessionRecipie>;
79
- /**
80
- * Returns media for a recipe by ID.
81
- *
82
- * @param recipeId - The unique identifier for the recipe
83
- * @returns A promise that resolves to an object representing media details about a recipe.
84
- */
85
- export declare function professionRecipieMedia(recipeId: number): Promise<professionRecipieMedia>;
@@ -1,79 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns an index of professions.
4
- *
5
- * @returns A promise that resolves to an object representing a list of professions.
6
- */
7
- export async function professions() {
8
- return await request({
9
- method: "GET",
10
- url: "/data/wow/profession/index",
11
- namespace: "static",
12
- });
13
- }
14
- /**
15
- * Returns a profession by ID.
16
- *
17
- * @param professionId - The unique identifier for the profession.
18
- * @returns A promise that resolves to an object representing details about a profession.
19
- */
20
- export async function profession(professionId) {
21
- return await request({
22
- method: "GET",
23
- url: `/data/wow/profession/${professionId}`,
24
- namespace: "static",
25
- });
26
- }
27
- /**
28
- * Returns media for a profession by ID.
29
- *
30
- * @param professionId - The unique identifier for the profession
31
- * @returns A promise that resolves to an object representing media details about a profession.
32
- */
33
- export async function professionMedia(professionId) {
34
- return await request({
35
- method: "GET",
36
- url: `/data/wow/media/profession/${professionId}`,
37
- namespace: "static",
38
- });
39
- }
40
- /**
41
- * Returns a skill tier for a profession by ID.
42
- *
43
- * @param professionId - The unique identifier for the profession
44
- * @param skillTierId - The unique identifier for the skill tier
45
- * @returns A promise that resolves to an object representing details about a skill tier.
46
- */
47
- export async function professionSkillTier(professionId, skillTierId) {
48
- return await request({
49
- method: "GET",
50
- url: `/data/wow/profession/${professionId}/skill-tier/${skillTierId}`,
51
- namespace: "static",
52
- });
53
- }
54
- /**
55
- * Returns a recipe by ID.
56
- *
57
- * @param recipeId - The unique identifier for the recipe.
58
- * @returns A promise that resolves to an object representing details about a recipe.
59
- */
60
- export async function professionRecipie(recipeId) {
61
- return await request({
62
- method: "GET",
63
- url: `/data/wow/recipe/${recipeId}`,
64
- namespace: "static",
65
- });
66
- }
67
- /**
68
- * Returns media for a recipe by ID.
69
- *
70
- * @param recipeId - The unique identifier for the recipe
71
- * @returns A promise that resolves to an object representing media details about a recipe.
72
- */
73
- export async function professionRecipieMedia(recipeId) {
74
- return await request({
75
- method: "GET",
76
- url: `/data/wow/media/recipe/${recipeId}`,
77
- namespace: "static",
78
- });
79
- }
@@ -1,99 +0,0 @@
1
- import type { KeyId, KeyNameId, LinkSelfHref, TypeName } from "../../shared/index.js";
2
- export interface PvpSeasons extends LinkSelfHref {
3
- seasons: KeyId[];
4
- current_season: KeyId;
5
- }
6
- export interface PvpSeason extends LinkSelfHref {
7
- id: number;
8
- leaderboards: {
9
- href: string;
10
- };
11
- rewards: {
12
- href: string;
13
- };
14
- season_start_timestamp: number;
15
- season_end_timestamp: number;
16
- }
17
- export interface PvpSeasonLeaderboards extends LinkSelfHref {
18
- season: KeyId;
19
- leaderboards: KeyNameId[];
20
- }
21
- export interface PvpSeasonLeaderboard extends LinkSelfHref {
22
- season: KeyId;
23
- name: string;
24
- bracket: {
25
- id: number;
26
- type: string;
27
- };
28
- entries: {
29
- character: {
30
- name: string;
31
- id: number;
32
- realm: {
33
- key: {
34
- href: string;
35
- };
36
- id: number;
37
- slug: string;
38
- };
39
- };
40
- faction: {
41
- type: string;
42
- };
43
- rank: number;
44
- rating: number;
45
- season_match_statistics: {
46
- played: number;
47
- won: number;
48
- lost: number;
49
- };
50
- tier: KeyId;
51
- }[];
52
- }
53
- export interface PvpSeasonRewards extends LinkSelfHref {
54
- season: KeyId;
55
- rewards: {
56
- bracket: {
57
- id: number;
58
- type: string;
59
- };
60
- achievement: KeyNameId;
61
- rating_cutoff: number;
62
- faction: TypeName;
63
- }[];
64
- }
65
- /**
66
- * Returns an index of PvP seasons.
67
- *
68
- * @returns A promise that resolves to an object representing a list of PvP seasons.
69
- */
70
- export declare function pvpSeasons(): Promise<PvpSeasons>;
71
- /**
72
- * Returns a PvP season by ID.
73
- *
74
- * @param pvpSeasonId - The unique identifier for the PvP season.
75
- * @returns A promise that resolves to an object representing details about a PvP season.
76
- */
77
- export declare function pvpSeason(pvpSeasonId: number): Promise<PvpSeason>;
78
- /**
79
- * Returns an index of PvP leaderboards for a PvP season.
80
- *
81
- * @param pvpSeasonId - The unique identifier for the PvP season.
82
- * @returns A promise that resolves to an object representing details about the PvP leaderboards.
83
- */
84
- export declare function pvpSeasonLeaderboards(pvpSeasonId: number): Promise<PvpSeasonLeaderboards>;
85
- /**
86
- * Returns the PvP leaderboard of a specific PvP bracket for a PvP season.
87
- *
88
- * @param pvpSeasonId - The unique identifier for the PvP season.
89
- * @param pvpBracket - The unique identifier for the PvP bracket.
90
- * @returns A promise that resolves to an object representing details about the PvP bracket.
91
- */
92
- export declare function pvpSeasonLeaderboard(pvpSeasonId: number, pvpBracket: number): Promise<PvpSeasonLeaderboard>;
93
- /**
94
- * Returns an index of PvP rewards for a PvP season.
95
- *
96
- * @param pvpSeasonId - The unique identifier for the PvP season.
97
- * @returns A promise that resolves to an object representing details about the PvP rewards.
98
- */
99
- export declare function pvpSeasonRewards(pvpSeasonId: number): Promise<PvpSeasonRewards>;
@@ -1,66 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns an index of PvP seasons.
4
- *
5
- * @returns A promise that resolves to an object representing a list of PvP seasons.
6
- */
7
- export async function pvpSeasons() {
8
- return await request({
9
- method: "GET",
10
- url: "/data/wow/pvp-season/index",
11
- namespace: "dynamic",
12
- });
13
- }
14
- /**
15
- * Returns a PvP season by ID.
16
- *
17
- * @param pvpSeasonId - The unique identifier for the PvP season.
18
- * @returns A promise that resolves to an object representing details about a PvP season.
19
- */
20
- export async function pvpSeason(pvpSeasonId) {
21
- return await request({
22
- method: "GET",
23
- url: `/data/wow/pvp-season/${pvpSeasonId}`,
24
- namespace: "dynamic",
25
- });
26
- }
27
- /**
28
- * Returns an index of PvP leaderboards for a PvP season.
29
- *
30
- * @param pvpSeasonId - The unique identifier for the PvP season.
31
- * @returns A promise that resolves to an object representing details about the PvP leaderboards.
32
- */
33
- export async function pvpSeasonLeaderboards(pvpSeasonId) {
34
- return await request({
35
- method: "GET",
36
- url: `/data/wow/pvp-season/${pvpSeasonId}/pvp-leaderboard/index`,
37
- namespace: "dynamic",
38
- });
39
- }
40
- /**
41
- * Returns the PvP leaderboard of a specific PvP bracket for a PvP season.
42
- *
43
- * @param pvpSeasonId - The unique identifier for the PvP season.
44
- * @param pvpBracket - The unique identifier for the PvP bracket.
45
- * @returns A promise that resolves to an object representing details about the PvP bracket.
46
- */
47
- export async function pvpSeasonLeaderboard(pvpSeasonId, pvpBracket) {
48
- return await request({
49
- method: "GET",
50
- url: `/data/wow/pvp-season/${pvpSeasonId}/pvp-leaderboard/${pvpBracket}`,
51
- namespace: "dynamic",
52
- });
53
- }
54
- /**
55
- * Returns an index of PvP rewards for a PvP season.
56
- *
57
- * @param pvpSeasonId - The unique identifier for the PvP season.
58
- * @returns A promise that resolves to an object representing details about the PvP rewards.
59
- */
60
- export async function pvpSeasonRewards(pvpSeasonId) {
61
- return await request({
62
- method: "GET",
63
- url: `/data/wow/pvp-season/${pvpSeasonId}/pvp-leaderboard/index`,
64
- namespace: "dynamic",
65
- });
66
- }
@@ -1,40 +0,0 @@
1
- import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- export interface PvpTierMedia extends LinkSelfHref {
3
- assets: Asset[];
4
- id: number;
5
- }
6
- export interface PvpTiers extends LinkSelfHref {
7
- tiers: KeyNameId[];
8
- }
9
- export interface PvpTier extends LinkSelfHref {
10
- id: number;
11
- name: LocalizedString;
12
- min_rating: number;
13
- max_rating: number;
14
- media: KeyId;
15
- bracket: {
16
- id: number;
17
- type: string;
18
- };
19
- rating_type: number;
20
- }
21
- /**
22
- * Returns media for a PvP tier by ID.
23
- *
24
- * @param pvpTierId - The unique identifier for the PvP tier
25
- * @returns A promise that resolves to an object representing media details about a PvP tier.
26
- */
27
- export declare function pvpTierMedia(pvpTierId: number): Promise<PvpTierMedia>;
28
- /**
29
- * Returns an index of PvP tiers.
30
- *
31
- * @returns A promise that resolves to an object representing a list of PvP tiers.
32
- */
33
- export declare function pvpTiers(): Promise<PvpTiers>;
34
- /**
35
- * Returns a PvP tier by ID.
36
- *
37
- * @param pvpTierId - The unique identifier for the PvP tier.
38
- * @returns A promise that resolves to an object representing details about a PvP tier.
39
- */
40
- export declare function pvpTier(pvpTierId: number): Promise<PvpTier>;
@@ -1,39 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns media for a PvP tier by ID.
4
- *
5
- * @param pvpTierId - The unique identifier for the PvP tier
6
- * @returns A promise that resolves to an object representing media details about a PvP tier.
7
- */
8
- export async function pvpTierMedia(pvpTierId) {
9
- return await request({
10
- method: "GET",
11
- url: `/data/wow/media/pvp-tier/${pvpTierId}`,
12
- namespace: "static",
13
- });
14
- }
15
- /**
16
- * Returns an index of PvP tiers.
17
- *
18
- * @returns A promise that resolves to an object representing a list of PvP tiers.
19
- */
20
- export async function pvpTiers() {
21
- return await request({
22
- method: "GET",
23
- url: "/data/wow/pvp-tier/index",
24
- namespace: "static",
25
- });
26
- }
27
- /**
28
- * Returns a PvP tier by ID.
29
- *
30
- * @param pvpTierId - The unique identifier for the PvP tier.
31
- * @returns A promise that resolves to an object representing details about a PvP tier.
32
- */
33
- export async function pvpTier(pvpTierId) {
34
- return await request({
35
- method: "GET",
36
- url: `/data/wow/pvp-tier/${pvpTierId}`,
37
- namespace: "static",
38
- });
39
- }