@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,42 +0,0 @@
1
- import type { KeyName, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
2
- import type { Search, SearchParameters } from "../search.js";
3
- export interface RealmList extends KeyNameId {
4
- slug: string;
5
- }
6
- export interface Realms extends LinkSelfHref {
7
- realms: RealmList[];
8
- }
9
- export interface Realm extends LinkSelfHref {
10
- id: number;
11
- region: KeyName;
12
- connected_realm: {
13
- href: string;
14
- };
15
- name: LocalizedString;
16
- category: LocalizedString;
17
- locale: string;
18
- timezone: string;
19
- type: TypeName;
20
- is_tournament: boolean;
21
- slug: string;
22
- }
23
- /**
24
- * Returns an index of realms.
25
- *
26
- * @returns A promise that resolves to an object representing a list of realms.
27
- */
28
- export declare function realms(): Promise<Realms>;
29
- /**
30
- * Returns a single realm by slug or ID.
31
- *
32
- * @param realmSlug - The unique identifier for the realm.
33
- * @returns A promise that resolves to an object representing details about a realm.
34
- */
35
- export declare function realm(realmSlug: string): Promise<Realm>;
36
- /**
37
- * Performs a search of realms.
38
- *
39
- * @param SearchParameters - Object containing search parameters.
40
- * @returns A promise that resolves to an object representing details about a realm search.
41
- */
42
- export declare function searchRealm(searchParameters: SearchParameters): Promise<Search>;
@@ -1,42 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.searchRealm = exports.realm = exports.realms = 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 realms.
8
- *
9
- * @returns A promise that resolves to an object representing a list of realms.
10
- */
11
- async function realms() {
12
- return await (0, index_js_1.request)({
13
- method: "GET",
14
- url: "/data/wow/realm/index",
15
- namespace: "dynamic",
16
- });
17
- }
18
- exports.realms = realms;
19
- /**
20
- * Returns a single realm by slug or ID.
21
- *
22
- * @param realmSlug - The unique identifier for the realm.
23
- * @returns A promise that resolves to an object representing details about a realm.
24
- */
25
- async function realm(realmSlug) {
26
- return await (0, index_js_1.request)({
27
- method: "GET",
28
- url: `/data/wow/realm/${realmSlug}`,
29
- namespace: "dynamic",
30
- });
31
- }
32
- exports.realm = realm;
33
- /**
34
- * Performs a search of realms.
35
- *
36
- * @param SearchParameters - Object containing search parameters.
37
- * @returns A promise that resolves to an object representing details about a realm search.
38
- */
39
- async function searchRealm(searchParameters) {
40
- return await (0, search_js_1.search)("/realm", "dynamic", searchParameters);
41
- }
42
- exports.searchRealm = searchRealm;
@@ -1,24 +0,0 @@
1
- import type { LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- export interface Regions extends LinkSelfHref {
3
- regions: {
4
- href: string;
5
- }[];
6
- }
7
- export interface Region extends LinkSelfHref {
8
- id: number;
9
- name: LocalizedString;
10
- tag: string;
11
- }
12
- /**
13
- * Returns an index of regions.
14
- *
15
- * @returns A promise that resolves to an object representing a list of regions.
16
- */
17
- export declare function regions(): Promise<Regions>;
18
- /**
19
- * Returns a region by ID.
20
- *
21
- * @param regionId - The unique identifier for the region.
22
- * @returns A promise that resolves to an object representing details about a region.
23
- */
24
- export declare function region(regionId: number): Promise<Region>;
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.region = exports.regions = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- /**
6
- * Returns an index of regions.
7
- *
8
- * @returns A promise that resolves to an object representing a list of regions.
9
- */
10
- async function regions() {
11
- return await (0, index_js_1.request)({
12
- method: "GET",
13
- url: "/data/wow/region/index",
14
- namespace: "dynamic",
15
- });
16
- }
17
- exports.regions = regions;
18
- /**
19
- * Returns a region by ID.
20
- *
21
- * @param regionId - The unique identifier for the region.
22
- * @returns A promise that resolves to an object representing details about a region.
23
- */
24
- async function region(regionId) {
25
- return await (0, index_js_1.request)({
26
- method: "GET",
27
- url: `/data/wow/region/${regionId}`,
28
- namespace: "dynamic",
29
- });
30
- }
31
- exports.region = region;
@@ -1,50 +0,0 @@
1
- import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- export interface ReputationFactions extends LinkSelfHref {
3
- factions: KeyNameId[];
4
- root_factions: KeyNameId[];
5
- }
6
- export interface ReputationFaction extends LinkSelfHref {
7
- id: number;
8
- name: LocalizedString;
9
- description: LocalizedString;
10
- reputation_tiers: KeyId;
11
- }
12
- export interface ReputationTiers extends LinkSelfHref {
13
- reputation_tiers: KeyNameId[];
14
- }
15
- export interface ReputationTier extends LinkSelfHref {
16
- id: number;
17
- tiers: {
18
- name: LocalizedString;
19
- min_value: number;
20
- max_value: number;
21
- id: number;
22
- }[];
23
- faction: KeyNameId;
24
- }
25
- /**
26
- * Returns an index of reputation factions.
27
- *
28
- * @returns A promise that resolves to an object representing a list of reputation factions.
29
- */
30
- export declare function reputationFactions(): Promise<ReputationFactions>;
31
- /**
32
- * Returns a single reputation faction by ID.
33
- *
34
- * @param reputationFactionId - The unique identifier for the reputation faction.
35
- * @returns A promise that resolves to an object representing details about a reputation faction.
36
- */
37
- export declare function reputationFaction(reputationFactionId: string): Promise<ReputationFaction>;
38
- /**
39
- * Returns an index of reputation tiers.
40
- *
41
- * @returns A promise that resolves to an object representing a list of reputation tiers.
42
- */
43
- export declare function reputationTiers(): Promise<ReputationTiers>;
44
- /**
45
- * Returns a single set of reputation tiers by ID.
46
- *
47
- * @param reputationTiersId - The unique identifier for the reputation tier.
48
- * @returns A promise that resolves to an object representing details about a reputation tier.
49
- */
50
- export declare function reputationTier(reputationTiersId: string): Promise<ReputationTier>;
@@ -1,58 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.reputationTier = exports.reputationTiers = exports.reputationFaction = exports.reputationFactions = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- /**
6
- * Returns an index of reputation factions.
7
- *
8
- * @returns A promise that resolves to an object representing a list of reputation factions.
9
- */
10
- async function reputationFactions() {
11
- return await (0, index_js_1.request)({
12
- method: "GET",
13
- url: "/data/wow/reputation-faction/index",
14
- namespace: "static",
15
- });
16
- }
17
- exports.reputationFactions = reputationFactions;
18
- /**
19
- * Returns a single reputation faction by ID.
20
- *
21
- * @param reputationFactionId - The unique identifier for the reputation faction.
22
- * @returns A promise that resolves to an object representing details about a reputation faction.
23
- */
24
- async function reputationFaction(reputationFactionId) {
25
- return await (0, index_js_1.request)({
26
- method: "GET",
27
- url: `/data/wow/reputation-faction/${reputationFactionId}`,
28
- namespace: "static",
29
- });
30
- }
31
- exports.reputationFaction = reputationFaction;
32
- /**
33
- * Returns an index of reputation tiers.
34
- *
35
- * @returns A promise that resolves to an object representing a list of reputation tiers.
36
- */
37
- async function reputationTiers() {
38
- return await (0, index_js_1.request)({
39
- method: "GET",
40
- url: "/data/wow/reputation-tiers/index",
41
- namespace: "static",
42
- });
43
- }
44
- exports.reputationTiers = reputationTiers;
45
- /**
46
- * Returns a single set of reputation tiers by ID.
47
- *
48
- * @param reputationTiersId - The unique identifier for the reputation tier.
49
- * @returns A promise that resolves to an object representing details about a reputation tier.
50
- */
51
- async function reputationTier(reputationTiersId) {
52
- return await (0, index_js_1.request)({
53
- method: "GET",
54
- url: `/data/wow/reputation-tiers/${reputationTiersId}`,
55
- namespace: "static",
56
- });
57
- }
58
- exports.reputationTier = reputationTier;
@@ -1,33 +0,0 @@
1
- import type { Asset, KeyId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- import type { Search, SearchParameters } from "../search.js";
3
- export interface Spell extends LinkSelfHref {
4
- id: number;
5
- name: LocalizedString;
6
- description: LocalizedString;
7
- media: KeyId;
8
- }
9
- export interface SpellMedia extends LinkSelfHref {
10
- assets: Asset[];
11
- id: number;
12
- }
13
- /**
14
- * Returns a spell by ID.
15
- *
16
- * @param spellId - The unique identifier for the spell.
17
- * @returns A promise that resolves to an object representing details about a spell.
18
- */
19
- export declare function spell(spellId: number): Promise<Spell>;
20
- /**
21
- * Returns media for a spell by ID.
22
- *
23
- * @param spellId - The unique identifier for the spell.
24
- * @returns A promise that resolves to an object representing details about a spell.
25
- */
26
- export declare function spellMedia(spellId: number): Promise<SpellMedia>;
27
- /**
28
- * Performs a search of spells.
29
- *
30
- * @param SearchParameters - Object containing search parameters.
31
- * @returns A promise that resolves to an object representing details about a spell search.
32
- */
33
- export declare function searchSpell(searchParameters: SearchParameters): Promise<Search>;
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.searchSpell = exports.spellMedia = exports.spell = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- const search_js_1 = require("../search.js");
6
- /**
7
- * Returns a spell by ID.
8
- *
9
- * @param spellId - The unique identifier for the spell.
10
- * @returns A promise that resolves to an object representing details about a spell.
11
- */
12
- async function spell(spellId) {
13
- return await (0, index_js_1.request)({
14
- method: "GET",
15
- url: `/data/wow/spell/${spellId}`,
16
- namespace: "static",
17
- });
18
- }
19
- exports.spell = spell;
20
- /**
21
- * Returns media for a spell by ID.
22
- *
23
- * @param spellId - The unique identifier for the spell.
24
- * @returns A promise that resolves to an object representing details about a spell.
25
- */
26
- async function spellMedia(spellId) {
27
- return await (0, index_js_1.request)({
28
- method: "GET",
29
- url: `/data/wow/media/spell/${spellId}`,
30
- namespace: "static",
31
- });
32
- }
33
- exports.spellMedia = spellMedia;
34
- /**
35
- * Performs a search of spells.
36
- *
37
- * @param SearchParameters - Object containing search parameters.
38
- * @returns A promise that resolves to an object representing details about a spell search.
39
- */
40
- async function searchSpell(searchParameters) {
41
- return await (0, search_js_1.search)("/spell", "static", searchParameters);
42
- }
43
- exports.searchSpell = searchSpell;
@@ -1,129 +0,0 @@
1
- import type { KeyName, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- export interface TalentTrees extends LinkSelfHref {
3
- spec_talent_trees: KeyNameId;
4
- class_talent_trees: KeyName;
5
- }
6
- export interface SpellTooltip {
7
- spell: KeyNameId;
8
- description: string;
9
- cast_time: string;
10
- power_cost?: string;
11
- range?: string;
12
- }
13
- export interface Tooltip {
14
- talent: KeyNameId;
15
- spell_tooltip: SpellTooltip;
16
- }
17
- export interface Rank {
18
- rank: number;
19
- tooltip?: Tooltip;
20
- choice_of_tooltips?: Tooltip[];
21
- }
22
- export interface NodeType {
23
- id: number;
24
- type: string;
25
- }
26
- export interface TalentNode {
27
- id: number;
28
- locked_by?: number[];
29
- unlocks?: number[];
30
- node_type: NodeType;
31
- ranks: Rank[];
32
- display_row: number;
33
- display_col: number;
34
- raw_position_x: number;
35
- raw_position_y: number;
36
- }
37
- export interface TalentTree extends LinkSelfHref {
38
- id: number;
39
- playable_class: KeyNameId;
40
- playable_specialization: KeyNameId;
41
- name: LocalizedString;
42
- media: {
43
- key: {
44
- href: string;
45
- };
46
- };
47
- restriction_lines: {
48
- required_points: number;
49
- restricted_row: number;
50
- is_for_class: boolean;
51
- }[];
52
- class_talent_nodes: TalentNode[];
53
- }
54
- export interface TalentTreeNodes extends LinkSelfHref {
55
- id: number;
56
- spec_talent_trees?: KeyName[];
57
- talent_nodes?: TalentNode[];
58
- }
59
- export interface Talents extends LinkSelfHref {
60
- talents: KeyNameId[];
61
- }
62
- export interface Talent extends LinkSelfHref {
63
- id: number;
64
- rank_descriptions: {
65
- rank: number;
66
- description: LocalizedString;
67
- }[];
68
- spell: KeyNameId;
69
- playable_class: KeyNameId;
70
- playable_specialization: KeyNameId;
71
- }
72
- export interface PvpTalents extends LinkSelfHref {
73
- pvp_talents: KeyNameId[];
74
- }
75
- export interface PvpTalent extends LinkSelfHref {
76
- id: number;
77
- spell: KeyNameId;
78
- playable_specialization: KeyNameId;
79
- description: LocalizedString;
80
- unlock_player_level: number;
81
- compatible_slots: number[];
82
- }
83
- /**
84
- * Returns an index of talent trees.
85
- *
86
- * @returns A promise that resolves to an object representing a list of talent trees.
87
- */
88
- export declare function talentTrees(): Promise<TalentTrees>;
89
- /**
90
- * Returns a talent tree by specialization ID.
91
- *
92
- * @param talentTreeId - The unique identifier for the talent tree.
93
- * @param specId - The unique identifier for the specialization.
94
- * @returns A promise that resolves to an object representing details about a talent tree.
95
- */
96
- export declare function talentTree(talentTreeId: number, specId: number): Promise<TalentTree>;
97
- /**
98
- * Returns all talent tree nodes as well as links to associated playable specializations given a talent tree id. This is useful to generate loadout export codes.
99
- *
100
- * @param talentTreeId - The unique identifier for the talent tree.
101
- * @returns A promise that resolves to an object representing details about the talent tree nodes.
102
- */
103
- export declare function talentTreeNodes(talentTreeId: number): Promise<TalentTreeNodes>;
104
- /**
105
- * Returns an index of talents.
106
- *
107
- * @returns A promise that resolves to an object representing a list of talents.
108
- */
109
- export declare function talents(): Promise<Talents>;
110
- /**
111
- * Returns a talent by ID.
112
- *
113
- * @param talentId - The unique identifier for the talent.
114
- * @returns A promise that resolves to an object representing details about the talent.
115
- */
116
- export declare function talent(talentId: number): Promise<Talent>;
117
- /**
118
- * Returns an index of PvP talents.
119
- *
120
- * @returns A promise that resolves to an object representing a list of PvP talents.
121
- */
122
- export declare function pvpTalents(): Promise<PvpTalents>;
123
- /**
124
- * Returns a PvP talent by ID.
125
- *
126
- * @param pvpTalentId - The unique identifier for the PvP talent.
127
- * @returns A promise that resolves to an object representing details about the PvP talent.
128
- */
129
- export declare function pvpTalent(pvpTalentId: number): Promise<PvpTalent>;
@@ -1,100 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.pvpTalent = exports.pvpTalents = exports.talent = exports.talents = exports.talentTreeNodes = exports.talentTree = exports.talentTrees = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- /**
6
- * Returns an index of talent trees.
7
- *
8
- * @returns A promise that resolves to an object representing a list of talent trees.
9
- */
10
- async function talentTrees() {
11
- return await (0, index_js_1.request)({
12
- method: "GET",
13
- url: "/data/wow/talent-tree/index",
14
- namespace: "static",
15
- });
16
- }
17
- exports.talentTrees = talentTrees;
18
- /**
19
- * Returns a talent tree by specialization ID.
20
- *
21
- * @param talentTreeId - The unique identifier for the talent tree.
22
- * @param specId - The unique identifier for the specialization.
23
- * @returns A promise that resolves to an object representing details about a talent tree.
24
- */
25
- async function talentTree(talentTreeId, specId) {
26
- return await (0, index_js_1.request)({
27
- method: "GET",
28
- url: `/data/wow/talent-tree/${talentTreeId}/playable-specialization/${specId}`,
29
- namespace: "static",
30
- });
31
- }
32
- exports.talentTree = talentTree;
33
- /**
34
- * Returns all talent tree nodes as well as links to associated playable specializations given a talent tree id. This is useful to generate loadout export codes.
35
- *
36
- * @param talentTreeId - The unique identifier for the talent tree.
37
- * @returns A promise that resolves to an object representing details about the talent tree nodes.
38
- */
39
- async function talentTreeNodes(talentTreeId) {
40
- return await (0, index_js_1.request)({
41
- method: "GET",
42
- url: `/data/wow/talent-tree/${talentTreeId}`,
43
- namespace: "static",
44
- });
45
- }
46
- exports.talentTreeNodes = talentTreeNodes;
47
- /**
48
- * Returns an index of talents.
49
- *
50
- * @returns A promise that resolves to an object representing a list of talents.
51
- */
52
- async function talents() {
53
- return await (0, index_js_1.request)({
54
- method: "GET",
55
- url: "/data/wow/talent/index",
56
- namespace: "static",
57
- });
58
- }
59
- exports.talents = talents;
60
- /**
61
- * Returns a talent by ID.
62
- *
63
- * @param talentId - The unique identifier for the talent.
64
- * @returns A promise that resolves to an object representing details about the talent.
65
- */
66
- async function talent(talentId) {
67
- return await (0, index_js_1.request)({
68
- method: "GET",
69
- url: `/data/wow/talent/${talentId}`,
70
- namespace: "static",
71
- });
72
- }
73
- exports.talent = talent;
74
- /**
75
- * Returns an index of PvP talents.
76
- *
77
- * @returns A promise that resolves to an object representing a list of PvP talents.
78
- */
79
- async function pvpTalents() {
80
- return await (0, index_js_1.request)({
81
- method: "GET",
82
- url: "/data/wow/pvp-talent/index",
83
- namespace: "static",
84
- });
85
- }
86
- exports.pvpTalents = pvpTalents;
87
- /**
88
- * Returns a PvP talent by ID.
89
- *
90
- * @param pvpTalentId - The unique identifier for the PvP talent.
91
- * @returns A promise that resolves to an object representing details about the PvP talent.
92
- */
93
- async function pvpTalent(pvpTalentId) {
94
- return await (0, index_js_1.request)({
95
- method: "GET",
96
- url: `/data/wow/pvp-talent/${pvpTalentId}`,
97
- namespace: "static",
98
- });
99
- }
100
- exports.pvpTalent = pvpTalent;
@@ -1,70 +0,0 @@
1
- import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- export interface TalentTree {
3
- key: {
4
- href: string;
5
- };
6
- name?: LocalizedString;
7
- id: number;
8
- }
9
- export interface TechTalentTrees extends LinkSelfHref {
10
- talent_trees: TalentTree[];
11
- }
12
- export interface TechTalentTree extends LinkSelfHref {
13
- id: number;
14
- max_tiers: number;
15
- talents: KeyNameId[];
16
- }
17
- export interface TechTalents extends LinkSelfHref {
18
- talents: KeyNameId[];
19
- }
20
- export interface TechTalent extends LinkSelfHref {
21
- id: number;
22
- talent_tree: KeyNameId;
23
- name: LocalizedString;
24
- description: LocalizedString;
25
- spell_tooltip: {
26
- spell: KeyNameId;
27
- description: LocalizedString;
28
- cast_time: LocalizedString;
29
- };
30
- tier: number;
31
- display_order: number;
32
- prerequisite_talent: KeyNameId;
33
- media: KeyId;
34
- }
35
- export interface TechTalentMedia extends LinkSelfHref {
36
- assets: Asset[];
37
- }
38
- /**
39
- * Returns an index of tech talent trees.
40
- *
41
- * @returns A promise that resolves to an object representing a list of tech talents trees
42
- */
43
- export declare function techTalentTrees(): Promise<TechTalentTrees>;
44
- /**
45
- * Returns a tech talent tree by ID.
46
- *
47
- * @param techTalentTreeId - The unique identifier for the tech talent tree.
48
- * @returns A promise that resolves to an object representing details about the tech talent tree.
49
- */
50
- export declare function techTalentTree(techTalentTreeId: number): Promise<TechTalentTree>;
51
- /**
52
- * Returns an index of tech talents.
53
- *
54
- * @returns A promise that resolves to an object representing a list of tech talents trees
55
- */
56
- export declare function techTalents(): Promise<TechTalents>;
57
- /**
58
- * Returns a tech talent by ID.
59
- *
60
- * @param techTalentId - The unique identifier for the tech talent tree.
61
- * @returns A promise that resolves to an object representing details about the tech talent tree.
62
- */
63
- export declare function techTalent(techTalentId: number): Promise<TechTalent>;
64
- /**
65
- * Returns media for a tech talent by ID.
66
- *
67
- * @param techTalentId - The unique identifier for the tech talent.
68
- * @returns A promise that resolves to an object representing details about a tech talent.
69
- */
70
- export declare function techTalentMedia(techTalentId: number): Promise<TechTalentMedia>;