@pinta365/blizzard_api 0.3.6 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/README.md +1 -0
  2. package/esm/mod.d.ts +4 -2
  3. package/esm/mod.js +4 -2
  4. package/package.json +1 -1
  5. package/script/mod.d.ts +4 -2
  6. package/script/mod.js +8 -1
  7. package/esm/src/hearthstone/game_data/card_backs.d.ts +0 -22
  8. package/esm/src/hearthstone/game_data/card_backs.js +0 -23
  9. package/esm/src/hearthstone/game_data/cards.d.ts +0 -37
  10. package/esm/src/hearthstone/game_data/cards.js +0 -27
  11. package/esm/src/hearthstone/game_data/decks.d.ts +0 -88
  12. package/esm/src/hearthstone/game_data/decks.js +0 -14
  13. package/esm/src/hearthstone/game_data/metadata.d.ts +0 -95
  14. package/esm/src/hearthstone/game_data/metadata.js +0 -12
  15. package/esm/src/hearthstone/index.d.ts +0 -4
  16. package/esm/src/hearthstone/index.js +0 -4
  17. package/esm/src/hearthstone/search.d.ts +0 -20
  18. package/esm/src/hearthstone/search.js +0 -29
  19. package/esm/src/shared/auth.d.ts +0 -24
  20. package/esm/src/shared/auth.js +0 -58
  21. package/esm/src/shared/config.d.ts +0 -40
  22. package/esm/src/shared/config.js +0 -48
  23. package/esm/src/shared/errors.d.ts +0 -44
  24. package/esm/src/shared/errors.js +0 -83
  25. package/esm/src/shared/index.d.ts +0 -4
  26. package/esm/src/shared/index.js +0 -3
  27. package/esm/src/shared/request.d.ts +0 -13
  28. package/esm/src/shared/request.js +0 -43
  29. package/esm/src/shared/types.d.ts +0 -120
  30. package/esm/src/shared/types.js +0 -2
  31. package/esm/src/starcraft2/game_data/league.d.ts +0 -32
  32. package/esm/src/starcraft2/game_data/league.js +0 -21
  33. package/esm/src/starcraft2/index.d.ts +0 -1
  34. package/esm/src/starcraft2/index.js +0 -1
  35. package/esm/src/wow/game_data/achievement.d.ts +0 -84
  36. package/esm/src/wow/game_data/achievement.js +0 -69
  37. package/esm/src/wow/game_data/auction_house.d.ts +0 -64
  38. package/esm/src/wow/game_data/auction_house.js +0 -34
  39. package/esm/src/wow/game_data/azerite_essence.d.ts +0 -49
  40. package/esm/src/wow/game_data/azerite_essence.js +0 -49
  41. package/esm/src/wow/game_data/connected_realm.d.ts +0 -54
  42. package/esm/src/wow/game_data/connected_realm.js +0 -36
  43. package/esm/src/wow/game_data/covenant.d.ts +0 -108
  44. package/esm/src/wow/game_data/covenant.js +0 -89
  45. package/esm/src/wow/game_data/creature.d.ts +0 -97
  46. package/esm/src/wow/game_data/creature.js +0 -100
  47. package/esm/src/wow/game_data/guild_crest.d.ts +0 -55
  48. package/esm/src/wow/game_data/guild_crest.js +0 -39
  49. package/esm/src/wow/game_data/heirloom.d.ts +0 -79
  50. package/esm/src/wow/game_data/heirloom.js +0 -26
  51. package/esm/src/wow/game_data/item.d.ts +0 -166
  52. package/esm/src/wow/game_data/item.js +0 -101
  53. package/esm/src/wow/game_data/journal.d.ts +0 -121
  54. package/esm/src/wow/game_data/journal.js +0 -99
  55. package/esm/src/wow/game_data/keystone_affix.d.ts +0 -34
  56. package/esm/src/wow/game_data/keystone_affix.js +0 -39
  57. package/esm/src/wow/game_data/media_search.d.ts +0 -8
  58. package/esm/src/wow/game_data/media_search.js +0 -10
  59. package/esm/src/wow/game_data/modified_crafting.d.ts +0 -56
  60. package/esm/src/wow/game_data/modified_crafting.js +0 -63
  61. package/esm/src/wow/game_data/mount.d.ts +0 -30
  62. package/esm/src/wow/game_data/mount.js +0 -30
  63. package/esm/src/wow/game_data/mythic_keystone_dungeon.d.ts +0 -91
  64. package/esm/src/wow/game_data/mythic_keystone_dungeon.js +0 -88
  65. package/esm/src/wow/game_data/mythic_keystone_leaderboard.d.ts +0 -58
  66. package/esm/src/wow/game_data/mythic_keystone_leaderboard.js +0 -29
  67. package/esm/src/wow/game_data/mythic_raid_leaderboard.d.ts +0 -31
  68. package/esm/src/wow/game_data/mythic_raid_leaderboard.js +0 -15
  69. package/esm/src/wow/game_data/pet.d.ts +0 -91
  70. package/esm/src/wow/game_data/pet.js +0 -77
  71. package/esm/src/wow/game_data/playable_class.d.ts +0 -57
  72. package/esm/src/wow/game_data/playable_class.js +0 -52
  73. package/esm/src/wow/game_data/playable_race.d.ts +0 -29
  74. package/esm/src/wow/game_data/playable_race.js +0 -26
  75. package/esm/src/wow/game_data/power_type.d.ts +0 -21
  76. package/esm/src/wow/game_data/power_type.js +0 -26
  77. package/esm/src/wow/game_data/profession.d.ts +0 -85
  78. package/esm/src/wow/game_data/profession.js +0 -79
  79. package/esm/src/wow/game_data/pvp_season.d.ts +0 -99
  80. package/esm/src/wow/game_data/pvp_season.js +0 -66
  81. package/esm/src/wow/game_data/pvp_tier.d.ts +0 -40
  82. package/esm/src/wow/game_data/pvp_tier.js +0 -39
  83. package/esm/src/wow/game_data/quest.d.ts +0 -114
  84. package/esm/src/wow/game_data/quest.js +0 -101
  85. package/esm/src/wow/game_data/realm.d.ts +0 -42
  86. package/esm/src/wow/game_data/realm.js +0 -36
  87. package/esm/src/wow/game_data/region.d.ts +0 -24
  88. package/esm/src/wow/game_data/region.js +0 -26
  89. package/esm/src/wow/game_data/reputations.d.ts +0 -50
  90. package/esm/src/wow/game_data/reputations.js +0 -51
  91. package/esm/src/wow/game_data/spell.d.ts +0 -33
  92. package/esm/src/wow/game_data/spell.js +0 -37
  93. package/esm/src/wow/game_data/talent.d.ts +0 -129
  94. package/esm/src/wow/game_data/talent.js +0 -90
  95. package/esm/src/wow/game_data/tech_talent.d.ts +0 -70
  96. package/esm/src/wow/game_data/tech_talent.js +0 -64
  97. package/esm/src/wow/game_data/title.d.ts +0 -25
  98. package/esm/src/wow/game_data/title.js +0 -26
  99. package/esm/src/wow/game_data/token.d.ts +0 -16
  100. package/esm/src/wow/game_data/token.js +0 -19
  101. package/esm/src/wow/game_data/toy.d.ts +0 -24
  102. package/esm/src/wow/game_data/toy.js +0 -26
  103. package/esm/src/wow/index.d.ts +0 -53
  104. package/esm/src/wow/index.js +0 -55
  105. package/esm/src/wow/profile/character_achievements.d.ts +0 -87
  106. package/esm/src/wow/profile/character_achievements.js +0 -29
  107. package/esm/src/wow/profile/character_appearance.d.ts +0 -75
  108. package/esm/src/wow/profile/character_appearance.js +0 -15
  109. package/esm/src/wow/profile/character_collections.d.ts +0 -92
  110. package/esm/src/wow/profile/character_collections.js +0 -71
  111. package/esm/src/wow/profile/character_encounters.d.ts +0 -77
  112. package/esm/src/wow/profile/character_encounters.js +0 -43
  113. package/esm/src/wow/profile/character_equipment.d.ts +0 -132
  114. package/esm/src/wow/profile/character_equipment.js +0 -15
  115. package/esm/src/wow/profile/character_hunter_pets.d.ts +0 -21
  116. package/esm/src/wow/profile/character_hunter_pets.js +0 -15
  117. package/esm/src/wow/profile/character_media.d.ts +0 -13
  118. package/esm/src/wow/profile/character_media.js +0 -15
  119. package/esm/src/wow/profile/character_mythic_keystone_profile.d.ts +0 -58
  120. package/esm/src/wow/profile/character_mythic_keystone_profile.js +0 -32
  121. package/esm/src/wow/profile/character_professions.d.ts +0 -26
  122. package/esm/src/wow/profile/character_professions.js +0 -15
  123. package/esm/src/wow/profile/character_profile.d.ts +0 -82
  124. package/esm/src/wow/profile/character_profile.js +0 -40
  125. package/esm/src/wow/profile/character_pvp.d.ts +0 -51
  126. package/esm/src/wow/profile/character_pvp.js +0 -30
  127. package/esm/src/wow/profile/character_quests.d.ts +0 -28
  128. package/esm/src/wow/profile/character_quests.js +0 -29
  129. package/esm/src/wow/profile/character_reputations.d.ts +0 -22
  130. package/esm/src/wow/profile/character_reputations.js +0 -15
  131. package/esm/src/wow/profile/character_soulbinds.d.ts +0 -30
  132. package/esm/src/wow/profile/character_soulbinds.js +0 -15
  133. package/esm/src/wow/profile/character_specializations.d.ts +0 -44
  134. package/esm/src/wow/profile/character_specializations.js +0 -15
  135. package/esm/src/wow/profile/character_statistics.d.ts +0 -116
  136. package/esm/src/wow/profile/character_statistics.js +0 -15
  137. package/esm/src/wow/profile/character_titles.d.ts +0 -13
  138. package/esm/src/wow/profile/character_titles.js +0 -15
  139. package/esm/src/wow/profile/guild.d.ts +0 -117
  140. package/esm/src/wow/profile/guild.js +0 -57
  141. package/esm/src/wow/search.d.ts +0 -21
  142. package/esm/src/wow/search.js +0 -30
  143. package/script/src/hearthstone/game_data/card_backs.d.ts +0 -22
  144. package/script/src/hearthstone/game_data/card_backs.js +0 -28
  145. package/script/src/hearthstone/game_data/cards.d.ts +0 -37
  146. package/script/src/hearthstone/game_data/cards.js +0 -32
  147. package/script/src/hearthstone/game_data/decks.d.ts +0 -88
  148. package/script/src/hearthstone/game_data/decks.js +0 -18
  149. package/script/src/hearthstone/game_data/metadata.d.ts +0 -95
  150. package/script/src/hearthstone/game_data/metadata.js +0 -16
  151. package/script/src/hearthstone/index.d.ts +0 -4
  152. package/script/src/hearthstone/index.js +0 -13
  153. package/script/src/hearthstone/search.d.ts +0 -20
  154. package/script/src/hearthstone/search.js +0 -33
  155. package/script/src/shared/auth.d.ts +0 -24
  156. package/script/src/shared/auth.js +0 -63
  157. package/script/src/shared/config.d.ts +0 -40
  158. package/script/src/shared/config.js +0 -55
  159. package/script/src/shared/errors.d.ts +0 -44
  160. package/script/src/shared/errors.js +0 -91
  161. package/script/src/shared/index.d.ts +0 -4
  162. package/script/src/shared/index.js +0 -9
  163. package/script/src/shared/request.d.ts +0 -13
  164. package/script/src/shared/request.js +0 -47
  165. package/script/src/shared/types.d.ts +0 -120
  166. package/script/src/shared/types.js +0 -3
  167. package/script/src/starcraft2/game_data/league.d.ts +0 -32
  168. package/script/src/starcraft2/game_data/league.js +0 -25
  169. package/script/src/starcraft2/index.d.ts +0 -1
  170. package/script/src/starcraft2/index.js +0 -5
  171. package/script/src/wow/game_data/achievement.d.ts +0 -84
  172. package/script/src/wow/game_data/achievement.js +0 -77
  173. package/script/src/wow/game_data/auction_house.d.ts +0 -64
  174. package/script/src/wow/game_data/auction_house.js +0 -39
  175. package/script/src/wow/game_data/azerite_essence.d.ts +0 -49
  176. package/script/src/wow/game_data/azerite_essence.js +0 -56
  177. package/script/src/wow/game_data/connected_realm.d.ts +0 -54
  178. package/script/src/wow/game_data/connected_realm.js +0 -42
  179. package/script/src/wow/game_data/covenant.d.ts +0 -108
  180. package/script/src/wow/game_data/covenant.js +0 -99
  181. package/script/src/wow/game_data/creature.d.ts +0 -97
  182. package/script/src/wow/game_data/creature.js +0 -111
  183. package/script/src/wow/game_data/guild_crest.d.ts +0 -55
  184. package/script/src/wow/game_data/guild_crest.js +0 -45
  185. package/script/src/wow/game_data/heirloom.d.ts +0 -79
  186. package/script/src/wow/game_data/heirloom.js +0 -31
  187. package/script/src/wow/game_data/item.d.ts +0 -166
  188. package/script/src/wow/game_data/item.js +0 -112
  189. package/script/src/wow/game_data/journal.d.ts +0 -121
  190. package/script/src/wow/game_data/journal.js +0 -110
  191. package/script/src/wow/game_data/keystone_affix.d.ts +0 -34
  192. package/script/src/wow/game_data/keystone_affix.js +0 -45
  193. package/script/src/wow/game_data/media_search.d.ts +0 -8
  194. package/script/src/wow/game_data/media_search.js +0 -14
  195. package/script/src/wow/game_data/modified_crafting.d.ts +0 -56
  196. package/script/src/wow/game_data/modified_crafting.js +0 -71
  197. package/script/src/wow/game_data/mount.d.ts +0 -30
  198. package/script/src/wow/game_data/mount.js +0 -36
  199. package/script/src/wow/game_data/mythic_keystone_dungeon.d.ts +0 -91
  200. package/script/src/wow/game_data/mythic_keystone_dungeon.js +0 -98
  201. package/script/src/wow/game_data/mythic_keystone_leaderboard.d.ts +0 -58
  202. package/script/src/wow/game_data/mythic_keystone_leaderboard.js +0 -34
  203. package/script/src/wow/game_data/mythic_raid_leaderboard.d.ts +0 -31
  204. package/script/src/wow/game_data/mythic_raid_leaderboard.js +0 -19
  205. package/script/src/wow/game_data/pet.d.ts +0 -91
  206. package/script/src/wow/game_data/pet.js +0 -86
  207. package/script/src/wow/game_data/playable_class.d.ts +0 -57
  208. package/script/src/wow/game_data/playable_class.js +0 -59
  209. package/script/src/wow/game_data/playable_race.d.ts +0 -29
  210. package/script/src/wow/game_data/playable_race.js +0 -31
  211. package/script/src/wow/game_data/power_type.d.ts +0 -21
  212. package/script/src/wow/game_data/power_type.js +0 -31
  213. package/script/src/wow/game_data/profession.d.ts +0 -85
  214. package/script/src/wow/game_data/profession.js +0 -88
  215. package/script/src/wow/game_data/pvp_season.d.ts +0 -99
  216. package/script/src/wow/game_data/pvp_season.js +0 -74
  217. package/script/src/wow/game_data/pvp_tier.d.ts +0 -40
  218. package/script/src/wow/game_data/pvp_tier.js +0 -45
  219. package/script/src/wow/game_data/quest.d.ts +0 -114
  220. package/script/src/wow/game_data/quest.js +0 -112
  221. package/script/src/wow/game_data/realm.d.ts +0 -42
  222. package/script/src/wow/game_data/realm.js +0 -42
  223. package/script/src/wow/game_data/region.d.ts +0 -24
  224. package/script/src/wow/game_data/region.js +0 -31
  225. package/script/src/wow/game_data/reputations.d.ts +0 -50
  226. package/script/src/wow/game_data/reputations.js +0 -58
  227. package/script/src/wow/game_data/spell.d.ts +0 -33
  228. package/script/src/wow/game_data/spell.js +0 -43
  229. package/script/src/wow/game_data/talent.d.ts +0 -129
  230. package/script/src/wow/game_data/talent.js +0 -100
  231. package/script/src/wow/game_data/tech_talent.d.ts +0 -70
  232. package/script/src/wow/game_data/tech_talent.js +0 -72
  233. package/script/src/wow/game_data/title.d.ts +0 -25
  234. package/script/src/wow/game_data/title.js +0 -31
  235. package/script/src/wow/game_data/token.d.ts +0 -16
  236. package/script/src/wow/game_data/token.js +0 -23
  237. package/script/src/wow/game_data/toy.d.ts +0 -24
  238. package/script/src/wow/game_data/toy.js +0 -31
  239. package/script/src/wow/index.d.ts +0 -53
  240. package/script/src/wow/index.js +0 -228
  241. package/script/src/wow/profile/character_achievements.d.ts +0 -87
  242. package/script/src/wow/profile/character_achievements.js +0 -34
  243. package/script/src/wow/profile/character_appearance.d.ts +0 -75
  244. package/script/src/wow/profile/character_appearance.js +0 -19
  245. package/script/src/wow/profile/character_collections.d.ts +0 -92
  246. package/script/src/wow/profile/character_collections.js +0 -79
  247. package/script/src/wow/profile/character_encounters.d.ts +0 -77
  248. package/script/src/wow/profile/character_encounters.js +0 -49
  249. package/script/src/wow/profile/character_equipment.d.ts +0 -132
  250. package/script/src/wow/profile/character_equipment.js +0 -19
  251. package/script/src/wow/profile/character_hunter_pets.d.ts +0 -21
  252. package/script/src/wow/profile/character_hunter_pets.js +0 -19
  253. package/script/src/wow/profile/character_media.d.ts +0 -13
  254. package/script/src/wow/profile/character_media.js +0 -19
  255. package/script/src/wow/profile/character_mythic_keystone_profile.d.ts +0 -58
  256. package/script/src/wow/profile/character_mythic_keystone_profile.js +0 -37
  257. package/script/src/wow/profile/character_professions.d.ts +0 -26
  258. package/script/src/wow/profile/character_professions.js +0 -19
  259. package/script/src/wow/profile/character_profile.d.ts +0 -82
  260. package/script/src/wow/profile/character_profile.js +0 -45
  261. package/script/src/wow/profile/character_pvp.d.ts +0 -51
  262. package/script/src/wow/profile/character_pvp.js +0 -35
  263. package/script/src/wow/profile/character_quests.d.ts +0 -28
  264. package/script/src/wow/profile/character_quests.js +0 -34
  265. package/script/src/wow/profile/character_reputations.d.ts +0 -22
  266. package/script/src/wow/profile/character_reputations.js +0 -19
  267. package/script/src/wow/profile/character_soulbinds.d.ts +0 -30
  268. package/script/src/wow/profile/character_soulbinds.js +0 -19
  269. package/script/src/wow/profile/character_specializations.d.ts +0 -44
  270. package/script/src/wow/profile/character_specializations.js +0 -19
  271. package/script/src/wow/profile/character_statistics.d.ts +0 -116
  272. package/script/src/wow/profile/character_statistics.js +0 -19
  273. package/script/src/wow/profile/character_titles.d.ts +0 -13
  274. package/script/src/wow/profile/character_titles.js +0 -19
  275. package/script/src/wow/profile/guild.d.ts +0 -117
  276. package/script/src/wow/profile/guild.js +0 -64
  277. package/script/src/wow/search.d.ts +0 -21
  278. package/script/src/wow/search.js +0 -34
@@ -1,49 +0,0 @@
1
- import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- import type { Search, SearchParameters } from "../search.js";
3
- export interface AzeriteEssences extends LinkSelfHref {
4
- azerite_essences: KeyNameId[];
5
- }
6
- export interface AzeritePower {
7
- id: number;
8
- rank: number;
9
- main_power_spell: KeyNameId;
10
- passive_power_spell: KeyNameId;
11
- }
12
- export interface AzeriteEssenceDetails extends LinkSelfHref {
13
- id: number;
14
- name: LocalizedString;
15
- allowed_specializations: KeyNameId[];
16
- powers: AzeritePower[];
17
- media: KeyId;
18
- }
19
- export interface AzeritEessenceMedia extends LinkSelfHref {
20
- assets: Asset[];
21
- id: number;
22
- }
23
- /**
24
- * Returns Azerite Essences Index
25
- *
26
- * @returns A promise that resolves to an object representing a list of all Azerite Essences.
27
- */
28
- export declare function azeriteEssences(): Promise<AzeriteEssences>;
29
- /**
30
- * Returns details about a specific Azerite Essence Id
31
- *
32
- * @param azeriteEssenceId - The unique identifier Azerite Essence.
33
- * @returns A promise that resolves to an object representing details about an Azerite Essences.
34
- */
35
- export declare function azeriteEssence(azeriteEssenceId: number): Promise<AzeriteEssenceDetails>;
36
- /**
37
- * Performs a search of azerite essences.
38
- *
39
- * @param SearchParameters - Object containing search parameters.
40
- * @returns A promise that resolves to an object representing details about a Azerite Essences search.
41
- */
42
- export declare function searchAzeriteEssence(searchParameters: SearchParameters): Promise<Search>;
43
- /**
44
- * Returns media details about a specific Azerite Essence Id
45
- *
46
- * @param azeriteEssenceId - The unique identifier Azerite Essence.
47
- * @returns A promise that resolves to an object representing media details about an Azerite Essences.
48
- */
49
- export declare function azeriteEssenceMedia(azeriteEssenceId: number): Promise<AzeritEessenceMedia>;
@@ -1,49 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- import { search } from "../search.js";
3
- /**
4
- * Returns Azerite Essences Index
5
- *
6
- * @returns A promise that resolves to an object representing a list of all Azerite Essences.
7
- */
8
- export async function azeriteEssences() {
9
- return await request({
10
- method: "GET",
11
- url: "/data/wow/azerite-essence/index",
12
- namespace: "static",
13
- });
14
- }
15
- /**
16
- * Returns details about a specific Azerite Essence Id
17
- *
18
- * @param azeriteEssenceId - The unique identifier Azerite Essence.
19
- * @returns A promise that resolves to an object representing details about an Azerite Essences.
20
- */
21
- export async function azeriteEssence(azeriteEssenceId) {
22
- return await request({
23
- method: "GET",
24
- url: `/data/wow/azerite-essence/${azeriteEssenceId}`,
25
- namespace: "static",
26
- });
27
- }
28
- /**
29
- * Performs a search of azerite essences.
30
- *
31
- * @param SearchParameters - Object containing search parameters.
32
- * @returns A promise that resolves to an object representing details about a Azerite Essences search.
33
- */
34
- export async function searchAzeriteEssence(searchParameters) {
35
- return await search("/azerite-essence", "static", searchParameters);
36
- }
37
- /**
38
- * Returns media details about a specific Azerite Essence Id
39
- *
40
- * @param azeriteEssenceId - The unique identifier Azerite Essence.
41
- * @returns A promise that resolves to an object representing media details about an Azerite Essences.
42
- */
43
- export async function azeriteEssenceMedia(azeriteEssenceId) {
44
- return await request({
45
- method: "GET",
46
- url: `/data/wow/media/azerite-essence/${azeriteEssenceId}`,
47
- namespace: "static",
48
- });
49
- }
@@ -1,54 +0,0 @@
1
- import type { KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
2
- import type { Search, SearchParameters } from "../search.js";
3
- export interface ConnectedRealms extends LinkSelfHref {
4
- connected_realms: {
5
- href: string;
6
- }[];
7
- }
8
- export interface Realm {
9
- id: number;
10
- region: KeyNameId;
11
- connected_realm: {
12
- href: string;
13
- };
14
- name: LocalizedString;
15
- category: LocalizedString;
16
- locale: string;
17
- timezone: string;
18
- type: TypeName;
19
- is_tournament: boolean;
20
- slug: string;
21
- }
22
- export interface ConnectedRealm extends LinkSelfHref {
23
- id: number;
24
- has_queue: boolean;
25
- status: TypeName;
26
- population: TypeName;
27
- realms: Realm[];
28
- mythic_leaderboards: {
29
- href: string;
30
- };
31
- auctions: {
32
- href: string;
33
- };
34
- }
35
- /**
36
- * Returns the Connected Realms Index
37
- *
38
- * @returns A promise that resolves to an object representing a list of all Connected Realms.
39
- */
40
- export declare function connectedRealms(): Promise<ConnectedRealms>;
41
- /**
42
- * Returns details about a Connected Realms Id
43
- *
44
- * @param connectedRealmId - The unique identifier Azerite Essence.
45
- * @returns A promise that resolves to an object representing details about an Azerite Essences.
46
- */
47
- export declare function connectedRealm(connectedRealmId: number): Promise<ConnectedRealm>;
48
- /**
49
- * Performs a search of connected realms.
50
- *
51
- * @param SearchParameters - Object containing search parameters.
52
- * @returns A promise that resolves to an object representing details about the connected realms search.
53
- */
54
- export declare function searchConnectedRealm(searchParameters: SearchParameters): Promise<Search>;
@@ -1,36 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- import { search } from "../search.js";
3
- /**
4
- * Returns the Connected Realms Index
5
- *
6
- * @returns A promise that resolves to an object representing a list of all Connected Realms.
7
- */
8
- export async function connectedRealms() {
9
- return await request({
10
- method: "GET",
11
- url: "/data/wow/connected-realm/index",
12
- namespace: "dynamic",
13
- });
14
- }
15
- /**
16
- * Returns details about a Connected Realms Id
17
- *
18
- * @param connectedRealmId - The unique identifier Azerite Essence.
19
- * @returns A promise that resolves to an object representing details about an Azerite Essences.
20
- */
21
- export async function connectedRealm(connectedRealmId) {
22
- return await request({
23
- method: "GET",
24
- url: `/data/wow/connected-realm/${connectedRealmId}`,
25
- namespace: "dynamic",
26
- });
27
- }
28
- /**
29
- * Performs a search of connected realms.
30
- *
31
- * @param SearchParameters - Object containing search parameters.
32
- * @returns A promise that resolves to an object representing details about the connected realms search.
33
- */
34
- export async function searchConnectedRealm(searchParameters) {
35
- return await search("/connected-realm", "dynamic", searchParameters);
36
- }
@@ -1,108 +0,0 @@
1
- import type { Asset, KeyNameId, LinkSelfHref, LocalizedString, NameId, TypeName } from "../../shared/index.js";
2
- export interface Covenants extends LinkSelfHref {
3
- covenants: KeyNameId[];
4
- }
5
- export interface SpellTooltip {
6
- spell: KeyNameId;
7
- description: LocalizedString;
8
- cast_time: string;
9
- power_cost: number | null;
10
- range: string;
11
- cooldown: string;
12
- }
13
- export interface SignatureAbility {
14
- id: number;
15
- spell_tooltip: SpellTooltip;
16
- }
17
- export interface ClassAbility {
18
- id: number;
19
- playable_class: KeyNameId;
20
- spell_tooltip: SpellTooltip;
21
- }
22
- export interface Covenant extends LinkSelfHref {
23
- id: number;
24
- name: LocalizedString;
25
- description: LocalizedString;
26
- signature_ability: SignatureAbility;
27
- class_abilities: ClassAbility[];
28
- }
29
- export interface CovenantMedia extends LinkSelfHref {
30
- assets: Asset[];
31
- }
32
- export interface CovenantSoulbinds extends LinkSelfHref {
33
- soulbinds: KeyNameId;
34
- }
35
- export interface CovenantSoulbind extends LinkSelfHref {
36
- id: number;
37
- name: LocalizedString;
38
- covenant: KeyNameId;
39
- creature: KeyNameId;
40
- follower: NameId;
41
- talent_tree: KeyNameId;
42
- }
43
- export interface CovenantConduits extends LinkSelfHref {
44
- conduits: KeyNameId;
45
- }
46
- export interface SpellTooltip {
47
- spell: KeyNameId;
48
- description: LocalizedString;
49
- cast_time: string;
50
- }
51
- export interface Rank {
52
- id: number;
53
- tier: number;
54
- spell_tooltip: SpellTooltip;
55
- }
56
- export interface CovenantConduit extends LinkSelfHref {
57
- id: number;
58
- name: LocalizedString;
59
- item: KeyNameId;
60
- socket_type: TypeName;
61
- ranks: Rank[];
62
- }
63
- /**
64
- * Returns an index of Covenants.
65
- *
66
- * @returns A promise that resolves to an object representing a list of all Covenants.
67
- */
68
- export declare function covenants(): Promise<Covenants>;
69
- /**
70
- * Returns details about a Covenant
71
- *
72
- * @param covenantId - The unique identifier for the Covenant
73
- * @returns A promise that resolves to an object representing details about a Covenant.
74
- */
75
- export declare function covenant(covenantId: number): Promise<Covenant>;
76
- /**
77
- * Returns media details about a Covenant
78
- *
79
- * @param covenantId - The unique identifier for the Covenant.
80
- * @returns A promise that resolves to an object representing media details about a Covenant.
81
- */
82
- export declare function azeriteEssenceMedia(covenantId: number): Promise<CovenantMedia>;
83
- /**
84
- * Returns an index of Covenant Soulbinds.
85
- *
86
- * @returns A promise that resolves to an object representing a list of all Covenant Soulbinds.
87
- */
88
- export declare function covenantSoulbinds(): Promise<CovenantSoulbinds>;
89
- /**
90
- * Returns details about a Covenant Soulbind
91
- *
92
- * @param soulbindId - The unique identifier for the Covenant Soulbind
93
- * @returns A promise that resolves to an object representing details about a Covenant Soulbind.
94
- */
95
- export declare function covenantSoulbind(soulbindId: number): Promise<CovenantSoulbind>;
96
- /**
97
- * Returns an index of Covenant Conduits.
98
- *
99
- * @returns A promise that resolves to an object representing a list of all Covenant Conduits.
100
- */
101
- export declare function covenantConduits(): Promise<CovenantConduits>;
102
- /**
103
- * Returns details about a Covenant Conduit
104
- *
105
- * @param conduitId - The unique identifier for the Covenant Conduit
106
- * @returns A promise that resolves to an object representing details about a Covenant Conduit.
107
- */
108
- export declare function covenantConduit(conduitId: number): Promise<CovenantConduit>;
@@ -1,89 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns an index of Covenants.
4
- *
5
- * @returns A promise that resolves to an object representing a list of all Covenants.
6
- */
7
- export async function covenants() {
8
- return await request({
9
- method: "GET",
10
- url: "/data/wow/covenant/index",
11
- namespace: "static",
12
- });
13
- }
14
- /**
15
- * Returns details about a Covenant
16
- *
17
- * @param covenantId - The unique identifier for the Covenant
18
- * @returns A promise that resolves to an object representing details about a Covenant.
19
- */
20
- export async function covenant(covenantId) {
21
- return await request({
22
- method: "GET",
23
- url: `/data/wow/covenant/${covenantId}`,
24
- namespace: "static",
25
- });
26
- }
27
- /**
28
- * Returns media details about a Covenant
29
- *
30
- * @param covenantId - The unique identifier for the Covenant.
31
- * @returns A promise that resolves to an object representing media details about a Covenant.
32
- */
33
- export async function azeriteEssenceMedia(covenantId) {
34
- return await request({
35
- method: "GET",
36
- url: `/data/wow/media/covenant/${covenantId}`,
37
- namespace: "static",
38
- });
39
- }
40
- /**
41
- * Returns an index of Covenant Soulbinds.
42
- *
43
- * @returns A promise that resolves to an object representing a list of all Covenant Soulbinds.
44
- */
45
- export async function covenantSoulbinds() {
46
- return await request({
47
- method: "GET",
48
- url: "/data/wow/covenant/soulbind/index",
49
- namespace: "static",
50
- });
51
- }
52
- /**
53
- * Returns details about a Covenant Soulbind
54
- *
55
- * @param soulbindId - The unique identifier for the Covenant Soulbind
56
- * @returns A promise that resolves to an object representing details about a Covenant Soulbind.
57
- */
58
- export async function covenantSoulbind(soulbindId) {
59
- return await request({
60
- method: "GET",
61
- url: `/data/wow/covenant/soulbind/${soulbindId}`,
62
- namespace: "static",
63
- });
64
- }
65
- /**
66
- * Returns an index of Covenant Conduits.
67
- *
68
- * @returns A promise that resolves to an object representing a list of all Covenant Conduits.
69
- */
70
- export async function covenantConduits() {
71
- return await request({
72
- method: "GET",
73
- url: "/data/wow/covenant/conduit/index",
74
- namespace: "static",
75
- });
76
- }
77
- /**
78
- * Returns details about a Covenant Conduit
79
- *
80
- * @param conduitId - The unique identifier for the Covenant Conduit
81
- * @returns A promise that resolves to an object representing details about a Covenant Conduit.
82
- */
83
- export async function covenantConduit(conduitId) {
84
- return await request({
85
- method: "GET",
86
- url: `/data/wow/covenant/conduit/${conduitId}`,
87
- namespace: "static",
88
- });
89
- }
@@ -1,97 +0,0 @@
1
- import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- import type { Search, SearchParameters } from "../search.js";
3
- export interface CreatureFamilies extends LinkSelfHref {
4
- creature_families: KeyNameId[];
5
- }
6
- export interface CreatureFamily extends LinkSelfHref {
7
- id: number;
8
- name: LocalizedString;
9
- specialization: KeyNameId;
10
- media: KeyId;
11
- }
12
- export interface CreatureTypes extends LinkSelfHref {
13
- creature_types: KeyNameId[];
14
- }
15
- export interface CreatureType extends LinkSelfHref {
16
- id: number;
17
- name: LocalizedString;
18
- }
19
- export interface Creature extends LinkSelfHref {
20
- id: number;
21
- name: LocalizedString;
22
- type: KeyNameId;
23
- family: KeyNameId;
24
- creature_displays: KeyId[];
25
- is_tameable: boolean;
26
- }
27
- export interface CreatureDisplayAssets {
28
- key: string;
29
- value: string;
30
- }
31
- export interface CreatureDisplayMedia extends LinkSelfHref {
32
- assets: CreatureDisplayAssets[];
33
- id: number;
34
- }
35
- export interface CreatureFamilyAssets {
36
- key: string;
37
- value: string;
38
- file_data_id: number;
39
- }
40
- export interface CreatureFamilyMedia extends LinkSelfHref {
41
- assets: CreatureFamilyAssets[];
42
- id: number;
43
- }
44
- /**
45
- * Returns an index of creature families.
46
- *
47
- * @returns A promise that resolves to an object representing a list of all creature families.
48
- */
49
- export declare function creatureFamilies(): Promise<CreatureFamilies>;
50
- /**
51
- * Returns details about a creature family
52
- *
53
- * @param creatureFamilyId - The unique identifier for the creature family
54
- * @returns A promise that resolves to an object representing details about a creature family.
55
- */
56
- export declare function creatureFamily(creatureFamilyId: number): Promise<CreatureFamily>;
57
- /**
58
- * Returns an index of creature types.
59
- *
60
- * @returns A promise that resolves to an object representing a list of all creature types.
61
- */
62
- export declare function creatureTypes(): Promise<CreatureTypes>;
63
- /**
64
- * Returns details about a creature types
65
- *
66
- * @param creatureTypeId - The unique identifier for the creature types
67
- * @returns A promise that resolves to an object representing details about a creature types.
68
- */
69
- export declare function creatureType(creatureTypeId: number): Promise<CreatureType>;
70
- /**
71
- * Returns details about a creature
72
- *
73
- * @param creatureId - The unique identifier for the creature
74
- * @returns A promise that resolves to an object representing details about a creature.
75
- */
76
- export declare function creature(creatureId: number): Promise<Creature>;
77
- /**
78
- * Performs a search of creatures.
79
- *
80
- * @param SearchParameters - Object containing search parameters.
81
- * @returns A promise that resolves to an object representing details about a creature search.
82
- */
83
- export declare function searchCreature(searchParameters: SearchParameters): Promise<Search>;
84
- /**
85
- * Returns media details about a specific Creature display
86
- *
87
- * @param creatureDisplayId - The unique identifier Creature display Id.
88
- * @returns A promise that resolves to an object representing media details about a Creature display.
89
- */
90
- export declare function creatureDisplayMedia(creatureDisplayId: number): Promise<CreatureDisplayMedia>;
91
- /**
92
- * Returns media details about a specific Creature family
93
- *
94
- * @param creatureFamilyId - The unique identifier Creature family Id.
95
- * @returns A promise that resolves to an object representing media details about a Creature family.
96
- */
97
- export declare function creatureFamilyMedia(creatureFamilyId: number): Promise<CreatureFamilyMedia>;
@@ -1,100 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- import { search } from "../search.js";
3
- /**
4
- * Returns an index of creature families.
5
- *
6
- * @returns A promise that resolves to an object representing a list of all creature families.
7
- */
8
- export async function creatureFamilies() {
9
- return await request({
10
- method: "GET",
11
- url: "/data/wow/creature-family/index",
12
- namespace: "static",
13
- });
14
- }
15
- /**
16
- * Returns details about a creature family
17
- *
18
- * @param creatureFamilyId - The unique identifier for the creature family
19
- * @returns A promise that resolves to an object representing details about a creature family.
20
- */
21
- export async function creatureFamily(creatureFamilyId) {
22
- return await request({
23
- method: "GET",
24
- url: `/data/wow/creature-family/${creatureFamilyId}`,
25
- namespace: "static",
26
- });
27
- }
28
- /**
29
- * Returns an index of creature types.
30
- *
31
- * @returns A promise that resolves to an object representing a list of all creature types.
32
- */
33
- export async function creatureTypes() {
34
- return await request({
35
- method: "GET",
36
- url: "/data/wow/creature-type/index",
37
- namespace: "static",
38
- });
39
- }
40
- /**
41
- * Returns details about a creature types
42
- *
43
- * @param creatureTypeId - The unique identifier for the creature types
44
- * @returns A promise that resolves to an object representing details about a creature types.
45
- */
46
- export async function creatureType(creatureTypeId) {
47
- return await request({
48
- method: "GET",
49
- url: `/data/wow/creature-type/${creatureTypeId}`,
50
- namespace: "static",
51
- });
52
- }
53
- /**
54
- * Returns details about a creature
55
- *
56
- * @param creatureId - The unique identifier for the creature
57
- * @returns A promise that resolves to an object representing details about a creature.
58
- */
59
- export async function creature(creatureId) {
60
- return await request({
61
- method: "GET",
62
- url: `/data/wow/creature/${creatureId}`,
63
- namespace: "static",
64
- });
65
- }
66
- /**
67
- * Performs a search of creatures.
68
- *
69
- * @param SearchParameters - Object containing search parameters.
70
- * @returns A promise that resolves to an object representing details about a creature search.
71
- */
72
- export async function searchCreature(searchParameters) {
73
- return await search("/creature", "static", searchParameters);
74
- }
75
- /**
76
- * Returns media details about a specific Creature display
77
- *
78
- * @param creatureDisplayId - The unique identifier Creature display Id.
79
- * @returns A promise that resolves to an object representing media details about a Creature display.
80
- */
81
- export async function creatureDisplayMedia(creatureDisplayId) {
82
- return await request({
83
- method: "GET",
84
- url: `/data/wow/media/creature-display/${creatureDisplayId}`,
85
- namespace: "static",
86
- });
87
- }
88
- /**
89
- * Returns media details about a specific Creature family
90
- *
91
- * @param creatureFamilyId - The unique identifier Creature family Id.
92
- * @returns A promise that resolves to an object representing media details about a Creature family.
93
- */
94
- export async function creatureFamilyMedia(creatureFamilyId) {
95
- return await request({
96
- method: "GET",
97
- url: `/data/wow/media/creature-family/${creatureFamilyId}`,
98
- namespace: "static",
99
- });
100
- }
@@ -1,55 +0,0 @@
1
- import type { Asset, KeyId, LinkSelfHref } from "../../shared/index.js";
2
- export interface Emblem {
3
- id: number;
4
- media: KeyId[];
5
- }
6
- export interface Border {
7
- id: number;
8
- media: KeyId[];
9
- }
10
- export interface IdRgba {
11
- id: number;
12
- rgba: {
13
- r: number;
14
- g: number;
15
- b: number;
16
- a: number;
17
- };
18
- }
19
- export interface GuildCrests extends LinkSelfHref {
20
- emblems: Emblem[];
21
- borders: Border[];
22
- colors: {
23
- emblems: IdRgba[];
24
- borders: IdRgba[];
25
- backgrounds: IdRgba[];
26
- };
27
- }
28
- export interface GuildCrestBorder extends LinkSelfHref {
29
- assets: Asset[];
30
- id: number;
31
- }
32
- export interface GuildCrestEmblem extends LinkSelfHref {
33
- assets: Asset[];
34
- id: number;
35
- }
36
- /**
37
- * Returns the Guild Crest Components Index
38
- *
39
- * @returns A promise that resolves to an object representing a list of all Guild Crest Components.
40
- */
41
- export declare function guildCrests(): Promise<GuildCrests>;
42
- /**
43
- * Returns a Guild Crest Border Media
44
- *
45
- * @param borderId - The unique identifier for the Covenant
46
- * @returns A promise that resolves to an object representing details about a Guild Crest Border Media.
47
- */
48
- export declare function guildCrestBorder(borderId: number): Promise<GuildCrestBorder>;
49
- /**
50
- * Returns a Crest Emblem Media
51
- *
52
- * @param emblemId - The unique identifier for the Crest Emblem Media
53
- * @returns A promise that resolves to an object representing details about a Crest Emblem Media.
54
- */
55
- export declare function guildCrestEmblem(emblemId: number): Promise<GuildCrestEmblem>;
@@ -1,39 +0,0 @@
1
- import { request } from "../../shared/index.js";
2
- /**
3
- * Returns the Guild Crest Components Index
4
- *
5
- * @returns A promise that resolves to an object representing a list of all Guild Crest Components.
6
- */
7
- export async function guildCrests() {
8
- return await request({
9
- method: "GET",
10
- url: "/data/wow/guild-crest/index",
11
- namespace: "static",
12
- });
13
- }
14
- /**
15
- * Returns a Guild Crest Border Media
16
- *
17
- * @param borderId - The unique identifier for the Covenant
18
- * @returns A promise that resolves to an object representing details about a Guild Crest Border Media.
19
- */
20
- export async function guildCrestBorder(borderId) {
21
- return await request({
22
- method: "GET",
23
- url: `/data/wow/media/guild-crest/border/${borderId}`,
24
- namespace: "static",
25
- });
26
- }
27
- /**
28
- * Returns a Crest Emblem Media
29
- *
30
- * @param emblemId - The unique identifier for the Crest Emblem Media
31
- * @returns A promise that resolves to an object representing details about a Crest Emblem Media.
32
- */
33
- export async function guildCrestEmblem(emblemId) {
34
- return await request({
35
- method: "GET",
36
- url: `/data/wow/media/guild-crest/emblem/${emblemId}`,
37
- namespace: "static",
38
- });
39
- }