@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,121 +0,0 @@
1
- import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, NameId, TypeName } from "../../shared/index.js";
2
- import type { Search, SearchParameters } from "../search.js";
3
- export interface JournalExpansions extends LinkSelfHref {
4
- tiers: KeyNameId[];
5
- }
6
- export interface JournalExpansion extends LinkSelfHref {
7
- id: number;
8
- name: LocalizedString;
9
- dungeons: KeyNameId[];
10
- raids: KeyNameId[];
11
- }
12
- export interface JournalEncounters extends LinkSelfHref {
13
- encounters: KeyNameId[];
14
- }
15
- export interface EncounterSection {
16
- id: number;
17
- title: string;
18
- body_text?: string;
19
- sections?: EncounterSection[];
20
- spell?: KeyNameId;
21
- creature_display?: KeyId;
22
- }
23
- export interface JournalEncounter extends LinkSelfHref {
24
- id: number;
25
- name: LocalizedString;
26
- description: LocalizedString;
27
- creatures: {
28
- id: number;
29
- name: LocalizedString;
30
- creature_display: KeyId;
31
- }[];
32
- items: {
33
- id: number;
34
- item: KeyNameId;
35
- }[];
36
- sections: EncounterSection[];
37
- instance: KeyNameId;
38
- category: {
39
- type: string;
40
- };
41
- modes: TypeName[];
42
- }
43
- export interface JournalInstances extends LinkSelfHref {
44
- instances: KeyNameId[];
45
- }
46
- export interface JournalInstance extends LinkSelfHref {
47
- id: number;
48
- name: LocalizedString;
49
- map: NameId;
50
- area?: NameId;
51
- description: LocalizedString;
52
- encounters: KeyNameId[];
53
- expansion: KeyNameId;
54
- location?: NameId;
55
- modes: {
56
- mode: TypeName;
57
- players: 5;
58
- is_tracked: true;
59
- }[];
60
- media: KeyId;
61
- minimum_level: number;
62
- category: {
63
- type: string;
64
- };
65
- }
66
- export interface JournalInstanceMedia extends LinkSelfHref {
67
- assets: Asset[];
68
- }
69
- /**
70
- * Returns an index of journal expansions.
71
- *
72
- * @returns A promise that resolves to an object representing a list of journal expansions.
73
- */
74
- export declare function journalExpansions(): Promise<JournalExpansions>;
75
- /**
76
- * Returns a journal expansion by ID.
77
- *
78
- * @param journalExpansionId - The unique identifier for the journal expansion.
79
- * @returns A promise that resolves to an object representing details about a journal expansion.
80
- */
81
- export declare function journalExpansion(journalExpansionId: number): Promise<JournalExpansion>;
82
- /**
83
- * Returns an index of journal encounters.
84
- *
85
- * @returns A promise that resolves to an object representing a list of journal expansions.
86
- */
87
- export declare function journalEncounters(): Promise<JournalEncounters>;
88
- /**
89
- * Returns a journal encounter by ID.
90
- *
91
- * @param journalEncounterId - The unique identifier for the journal encounter.
92
- * @returns A promise that resolves to an object representing details about a journal encounter.
93
- */
94
- export declare function journalEncounter(journalEncounterId: number): Promise<JournalEncounter>;
95
- /**
96
- * Performs a search of journal encounters.
97
- *
98
- * @param SearchParameters - Object containing search parameters.
99
- * @returns A promise that resolves to an object representing details about a journal encounter search.
100
- */
101
- export declare function searchJournalEncounter(searchParameters: SearchParameters): Promise<Search>;
102
- /**
103
- * Returns an index of journal instances.
104
- *
105
- * @returns A promise that resolves to an object representing a list of journal instances.
106
- */
107
- export declare function journalInstances(): Promise<JournalInstances>;
108
- /**
109
- * Returns a journal instances by ID.
110
- *
111
- * @param journalInstanceId - The unique identifier for the journal instances.
112
- * @returns A promise that resolves to an object representing details about a journal instances.
113
- */
114
- export declare function journalInstance(journalInstanceId: number): Promise<JournalInstance>;
115
- /**
116
- * Returns media for a journal instance by ID.
117
- *
118
- * @param journalInstanceId - The unique identifier for the journal instance
119
- * @returns A promise that resolves to an object representing media details about a journal instance.
120
- */
121
- export declare function journalInstanceMedia(journalInstanceId: number): Promise<JournalInstanceMedia>;
@@ -1,110 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.journalInstanceMedia = exports.journalInstance = exports.journalInstances = exports.searchJournalEncounter = exports.journalEncounter = exports.journalEncounters = exports.journalExpansion = exports.journalExpansions = 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 journal expansions.
8
- *
9
- * @returns A promise that resolves to an object representing a list of journal expansions.
10
- */
11
- async function journalExpansions() {
12
- return await (0, index_js_1.request)({
13
- method: "GET",
14
- url: "/data/wow/journal-expansion/index",
15
- namespace: "static",
16
- });
17
- }
18
- exports.journalExpansions = journalExpansions;
19
- /**
20
- * Returns a journal expansion by ID.
21
- *
22
- * @param journalExpansionId - The unique identifier for the journal expansion.
23
- * @returns A promise that resolves to an object representing details about a journal expansion.
24
- */
25
- async function journalExpansion(journalExpansionId) {
26
- return await (0, index_js_1.request)({
27
- method: "GET",
28
- url: `/data/wow/journal-expansion/${journalExpansionId}`,
29
- namespace: "static",
30
- });
31
- }
32
- exports.journalExpansion = journalExpansion;
33
- /**
34
- * Returns an index of journal encounters.
35
- *
36
- * @returns A promise that resolves to an object representing a list of journal expansions.
37
- */
38
- async function journalEncounters() {
39
- return await (0, index_js_1.request)({
40
- method: "GET",
41
- url: "/data/wow/journal-encounter/index",
42
- namespace: "static",
43
- });
44
- }
45
- exports.journalEncounters = journalEncounters;
46
- /**
47
- * Returns a journal encounter by ID.
48
- *
49
- * @param journalEncounterId - The unique identifier for the journal encounter.
50
- * @returns A promise that resolves to an object representing details about a journal encounter.
51
- */
52
- async function journalEncounter(journalEncounterId) {
53
- return await (0, index_js_1.request)({
54
- method: "GET",
55
- url: `/data/wow/journal-encounter/${journalEncounterId}`,
56
- namespace: "static",
57
- });
58
- }
59
- exports.journalEncounter = journalEncounter;
60
- /**
61
- * Performs a search of journal encounters.
62
- *
63
- * @param SearchParameters - Object containing search parameters.
64
- * @returns A promise that resolves to an object representing details about a journal encounter search.
65
- */
66
- async function searchJournalEncounter(searchParameters) {
67
- return await (0, search_js_1.search)("/journal-encounter", "static", searchParameters);
68
- }
69
- exports.searchJournalEncounter = searchJournalEncounter;
70
- /**
71
- * Returns an index of journal instances.
72
- *
73
- * @returns A promise that resolves to an object representing a list of journal instances.
74
- */
75
- async function journalInstances() {
76
- return await (0, index_js_1.request)({
77
- method: "GET",
78
- url: "/data/wow/journal-instance/index",
79
- namespace: "static",
80
- });
81
- }
82
- exports.journalInstances = journalInstances;
83
- /**
84
- * Returns a journal instances by ID.
85
- *
86
- * @param journalInstanceId - The unique identifier for the journal instances.
87
- * @returns A promise that resolves to an object representing details about a journal instances.
88
- */
89
- async function journalInstance(journalInstanceId) {
90
- return await (0, index_js_1.request)({
91
- method: "GET",
92
- url: `/data/wow/journal-instance/${journalInstanceId}`,
93
- namespace: "static",
94
- });
95
- }
96
- exports.journalInstance = journalInstance;
97
- /**
98
- * Returns media for a journal instance by ID.
99
- *
100
- * @param journalInstanceId - The unique identifier for the journal instance
101
- * @returns A promise that resolves to an object representing media details about a journal instance.
102
- */
103
- async function journalInstanceMedia(journalInstanceId) {
104
- return await (0, index_js_1.request)({
105
- method: "GET",
106
- url: `/data/wow/media/journal-instance/${journalInstanceId}`,
107
- namespace: "static",
108
- });
109
- }
110
- exports.journalInstanceMedia = journalInstanceMedia;
@@ -1,34 +0,0 @@
1
- import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- export interface KeystoneAffixes extends LinkSelfHref {
3
- affixes: KeyNameId[];
4
- }
5
- export interface KeystoneAffix extends LinkSelfHref {
6
- id: number;
7
- name: LocalizedString;
8
- description: LocalizedString;
9
- media: KeyId;
10
- }
11
- export interface KeystoneAffixMedia extends LinkSelfHref {
12
- assets: Asset[];
13
- id: number;
14
- }
15
- /**
16
- * Returns an index of mythic keystone affixes.
17
- *
18
- * @returns A promise that resolves to an object representing a list of the mythic keystone affixes.
19
- */
20
- export declare function keystoneAffixes(): Promise<KeystoneAffixes>;
21
- /**
22
- * Returns a mythic keystone affix by ID.
23
- *
24
- * @param keystoneAffixId - The unique identifier for the mythic keystone affix
25
- * @returns A promise that resolves to an object representing details about a mythic keystone affix by ID.
26
- */
27
- export declare function keystoneAffix(keystoneAffixId: number): Promise<KeystoneAffix>;
28
- /**
29
- * Returns media for a mythic keystone affix by ID.
30
- *
31
- * @param keystoneAffixId - The unique identifier for the mythic keystone affix
32
- * @returns A promise that resolves to an object representing media details about a mythic keystone affix.
33
- */
34
- export declare function keystoneAffixMedia(keystoneAffixId: number): Promise<KeystoneAffixMedia>;
@@ -1,45 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.keystoneAffixMedia = exports.keystoneAffix = exports.keystoneAffixes = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- /**
6
- * Returns an index of mythic keystone affixes.
7
- *
8
- * @returns A promise that resolves to an object representing a list of the mythic keystone affixes.
9
- */
10
- async function keystoneAffixes() {
11
- return await (0, index_js_1.request)({
12
- method: "GET",
13
- url: "/data/wow/keystone-affix/index",
14
- namespace: "static",
15
- });
16
- }
17
- exports.keystoneAffixes = keystoneAffixes;
18
- /**
19
- * Returns a mythic keystone affix by ID.
20
- *
21
- * @param keystoneAffixId - The unique identifier for the mythic keystone affix
22
- * @returns A promise that resolves to an object representing details about a mythic keystone affix by ID.
23
- */
24
- async function keystoneAffix(keystoneAffixId) {
25
- return await (0, index_js_1.request)({
26
- method: "GET",
27
- url: `/data/wow/keystone-affix/${keystoneAffixId}`,
28
- namespace: "static",
29
- });
30
- }
31
- exports.keystoneAffix = keystoneAffix;
32
- /**
33
- * Returns media for a mythic keystone affix by ID.
34
- *
35
- * @param keystoneAffixId - The unique identifier for the mythic keystone affix
36
- * @returns A promise that resolves to an object representing media details about a mythic keystone affix.
37
- */
38
- async function keystoneAffixMedia(keystoneAffixId) {
39
- return await (0, index_js_1.request)({
40
- method: "GET",
41
- url: `/data/wow/media/keystone-affix/${keystoneAffixId}`,
42
- namespace: "static",
43
- });
44
- }
45
- exports.keystoneAffixMedia = keystoneAffixMedia;
@@ -1,8 +0,0 @@
1
- import type { Search, SearchParameters } from "../search.js";
2
- /**
3
- * Performs a search of media.
4
- *
5
- * @param SearchParameters - Object containing search parameters.
6
- * @returns A promise that resolves to an object representing details about a media search.
7
- */
8
- export declare function searchMedia(searchParameters: SearchParameters): Promise<Search>;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.searchMedia = void 0;
4
- const search_js_1 = require("../search.js");
5
- /**
6
- * Performs a search of media.
7
- *
8
- * @param SearchParameters - Object containing search parameters.
9
- * @returns A promise that resolves to an object representing details about a media search.
10
- */
11
- async function searchMedia(searchParameters) {
12
- return await (0, search_js_1.search)("/media", "static", searchParameters);
13
- }
14
- exports.searchMedia = searchMedia;
@@ -1,56 +0,0 @@
1
- import type { KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
2
- export interface ModifiedCraftingParents extends LinkSelfHref {
3
- categories: {
4
- href: string;
5
- };
6
- slot_types: {
7
- href: string;
8
- };
9
- }
10
- export interface ModifiedCraftingCategories extends LinkSelfHref {
11
- categories: KeyNameId;
12
- }
13
- export interface ModifiedCraftingCategory extends LinkSelfHref {
14
- id: number;
15
- name: LocalizedString;
16
- }
17
- export interface ModifiedCraftingSlotTypes extends LinkSelfHref {
18
- slot_types: KeyNameId[];
19
- }
20
- export interface ModifiedCraftingSlotType extends LinkSelfHref {
21
- id: number;
22
- description: LocalizedString;
23
- compatible_categories: KeyNameId[];
24
- }
25
- /**
26
- * Returns the parent index for Modified Crafting.
27
- *
28
- * @returns A promise that resolves to an object representing a list of the parent index for Modified Crafting.
29
- */
30
- export declare function modifiedCraftingParents(): Promise<ModifiedCraftingParents>;
31
- /**
32
- * Returns the index of Modified Crafting categories.
33
- *
34
- * @returns A promise that resolves to an object representing a list of the index of Modified Crafting categories.
35
- */
36
- export declare function modifiedCraftingCategories(): Promise<ModifiedCraftingCategories>;
37
- /**
38
- * Returns a Modified Crafting category by ID.
39
- *
40
- * @param categoryId - The unique identifier for the Modified Crafting category
41
- * @returns A promise that resolves to an object representing details about a Modified Crafting category.
42
- */
43
- export declare function modifiedCraftingCategory(categoryId: number): Promise<ModifiedCraftingCategory>;
44
- /**
45
- * Returns the index of Modified Crafting reagent slot types.
46
- *
47
- * @returns A promise that resolves to an object representing a list of the index of Modified Crafting reagent slot types
48
- */
49
- export declare function modifiedCraftingSlotTypes(): Promise<ModifiedCraftingSlotTypes>;
50
- /**
51
- * Returns a Modified Crafting reagent slot type by ID.
52
- *
53
- * @param slotTypeId - The unique identifier for the Modified Crafting reagent slot type
54
- * @returns A promise that resolves to an object representing details about a Modified Crafting reagent slot type by ID.
55
- */
56
- export declare function modifiedCraftingSlotType(slotTypeId: number): Promise<ModifiedCraftingSlotType>;
@@ -1,71 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.modifiedCraftingSlotType = exports.modifiedCraftingSlotTypes = exports.modifiedCraftingCategory = exports.modifiedCraftingCategories = exports.modifiedCraftingParents = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- /**
6
- * Returns the parent index for Modified Crafting.
7
- *
8
- * @returns A promise that resolves to an object representing a list of the parent index for Modified Crafting.
9
- */
10
- async function modifiedCraftingParents() {
11
- return await (0, index_js_1.request)({
12
- method: "GET",
13
- url: "/data/wow/modified-crafting/index",
14
- namespace: "static",
15
- });
16
- }
17
- exports.modifiedCraftingParents = modifiedCraftingParents;
18
- /**
19
- * Returns the index of Modified Crafting categories.
20
- *
21
- * @returns A promise that resolves to an object representing a list of the index of Modified Crafting categories.
22
- */
23
- async function modifiedCraftingCategories() {
24
- return await (0, index_js_1.request)({
25
- method: "GET",
26
- url: "/data/wow/modified-crafting/category/index",
27
- namespace: "static",
28
- });
29
- }
30
- exports.modifiedCraftingCategories = modifiedCraftingCategories;
31
- /**
32
- * Returns a Modified Crafting category by ID.
33
- *
34
- * @param categoryId - The unique identifier for the Modified Crafting category
35
- * @returns A promise that resolves to an object representing details about a Modified Crafting category.
36
- */
37
- async function modifiedCraftingCategory(categoryId) {
38
- return await (0, index_js_1.request)({
39
- method: "GET",
40
- url: `/data/wow/modified-crafting/category/${categoryId}`,
41
- namespace: "static",
42
- });
43
- }
44
- exports.modifiedCraftingCategory = modifiedCraftingCategory;
45
- /**
46
- * Returns the index of Modified Crafting reagent slot types.
47
- *
48
- * @returns A promise that resolves to an object representing a list of the index of Modified Crafting reagent slot types
49
- */
50
- async function modifiedCraftingSlotTypes() {
51
- return await (0, index_js_1.request)({
52
- method: "GET",
53
- url: "/data/wow/modified-crafting/reagent-slot-type/index",
54
- namespace: "static",
55
- });
56
- }
57
- exports.modifiedCraftingSlotTypes = modifiedCraftingSlotTypes;
58
- /**
59
- * Returns a Modified Crafting reagent slot type by ID.
60
- *
61
- * @param slotTypeId - The unique identifier for the Modified Crafting reagent slot type
62
- * @returns A promise that resolves to an object representing details about a Modified Crafting reagent slot type by ID.
63
- */
64
- async function modifiedCraftingSlotType(slotTypeId) {
65
- return await (0, index_js_1.request)({
66
- method: "GET",
67
- url: `/data/wow/modified-crafting/reagent-slot-type/${slotTypeId}`,
68
- namespace: "static",
69
- });
70
- }
71
- exports.modifiedCraftingSlotType = modifiedCraftingSlotType;
@@ -1,30 +0,0 @@
1
- import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
2
- export interface Mounts extends LinkSelfHref {
3
- mounts: KeyNameId[];
4
- }
5
- export interface Mount extends LinkSelfHref {
6
- id: number;
7
- name: LocalizedString;
8
- creature_displays: KeyId[];
9
- description: LocalizedString;
10
- source: TypeName;
11
- faction?: TypeName;
12
- should_exclude_if_uncollected?: boolean;
13
- requirements?: {
14
- faction: TypeName;
15
- };
16
- }
17
- /**
18
- * Returns a index of mounts.
19
- *
20
- * @returns A promise that resolves to an object representing a list of the index of mounts.
21
- */
22
- export declare function mounts(): Promise<Mounts>;
23
- /**
24
- * Returns a mount by ID.
25
- *
26
- * @param mountId - The unique identifier for the mount by ID.
27
- * @returns A promise that resolves to an object representing details about a mount.
28
- */
29
- export declare function mount(mountId: number): Promise<Mount>;
30
- export declare function searchMount(): void;
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.searchMount = exports.mount = exports.mounts = void 0;
4
- const index_js_1 = require("../../shared/index.js");
5
- /**
6
- * Returns a index of mounts.
7
- *
8
- * @returns A promise that resolves to an object representing a list of the index of mounts.
9
- */
10
- async function mounts() {
11
- return await (0, index_js_1.request)({
12
- method: "GET",
13
- url: "/data/wow/mount/index",
14
- namespace: "static",
15
- });
16
- }
17
- exports.mounts = mounts;
18
- /**
19
- * Returns a mount by ID.
20
- *
21
- * @param mountId - The unique identifier for the mount by ID.
22
- * @returns A promise that resolves to an object representing details about a mount.
23
- */
24
- async function mount(mountId) {
25
- return await (0, index_js_1.request)({
26
- method: "GET",
27
- url: `/data/wow/mount/${mountId}`,
28
- namespace: "static",
29
- });
30
- }
31
- exports.mount = mount;
32
- function searchMount() {
33
- //TODO: Placeholder for the mount Search, will probably be using ./search.ts
34
- throw new Error("Not implemented yet!");
35
- }
36
- exports.searchMount = searchMount;
@@ -1,91 +0,0 @@
1
- import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString, NameId } from "../../shared/index.js";
2
- export interface MythicKeystoneDungeons extends LinkSelfHref {
3
- dungeons: KeyNameId[];
4
- }
5
- export interface MythicKeystoneDungeon extends LinkSelfHref {
6
- id: number;
7
- name: LocalizedString;
8
- map: NameId;
9
- zone: {
10
- slug: string;
11
- };
12
- dungeon: KeyNameId;
13
- keystone_updates: {
14
- upgrade_level: number;
15
- qualifying_duration: number;
16
- }[];
17
- is_traacked: boolean;
18
- }
19
- export interface MythicKeystoneIndex extends LinkSelfHref {
20
- seasons: {
21
- href: string;
22
- };
23
- dungeons: {
24
- href: string;
25
- };
26
- }
27
- export interface MythicKeystonePeriods extends LinkSelfHref {
28
- periods: KeyId[];
29
- current_period: KeyId;
30
- }
31
- export interface MythicKeystonePeriod extends LinkSelfHref {
32
- id: number;
33
- start_timestamp: number;
34
- end_timestamp: number;
35
- }
36
- export interface MythicKeystoneSeason extends LinkSelfHref {
37
- id: number;
38
- start_timestamp: number;
39
- end_timestamp?: number;
40
- periods: KeyId[];
41
- season_name: LocalizedString;
42
- }
43
- /**
44
- * Returns an index of Mythic Keystone dungeons.
45
- *
46
- * @returns A promise that resolves to an object representing a list of the Mythic Keystone dungeons.
47
- */
48
- export declare function mythicKeystoneDungeons(): Promise<MythicKeystoneDungeons>;
49
- /**
50
- * Returns a Mythic Keystone dungeon by ID.
51
- *
52
- * @param dungeonId - The unique identifier for the Mythic Keystone dungeon
53
- * @returns A promise that resolves to an object representing details about a Mythic Keystone dungeon by ID.
54
- */
55
- export declare function mythicKeystoneDungeon(dungeonId: number): Promise<MythicKeystoneDungeon>;
56
- /**
57
- * Returns an index of links to other documents related to Mythic Keystone dungeons.
58
- *
59
- * @returns A promise that resolves to an object representing a index of links to other documents related to Mythic Keystone dungeons.
60
- */
61
- export declare function mythicKeystoneIndex(): Promise<MythicKeystoneIndex>;
62
- /**
63
- * Returns an index of Mythic Keystone periods.
64
- *
65
- * @returns A promise that resolves to an object representing a index of Mythic Keystone periods.
66
- */
67
- export declare function mythicKeystonePeriods(): Promise<MythicKeystonePeriods>;
68
- /**
69
- * Returns a Mythic Keystone period by ID.
70
- *
71
- * @param periodId - The unique identifier for the Mythic Keystone period
72
- * @returns A promise that resolves to an object representing details about a Mythic Keystone period by ID.
73
- */
74
- export declare function mythicKeystonePeriod(periodId: number): Promise<MythicKeystonePeriod>;
75
- export interface MythicKeystoneSeasons extends LinkSelfHref {
76
- "seasons": KeyId[];
77
- "current_season": KeyId;
78
- }
79
- /**
80
- * Returns an index of Mythic Keystone seasons.
81
- *
82
- * @returns A promise that resolves to an object representing a index of Mythic Keystone seasons
83
- */
84
- export declare function mythicKeystoneSeasons(): Promise<MythicKeystoneSeasons>;
85
- /**
86
- * Returns a Mythic Keystone season by ID.
87
- *
88
- * @param seasonId - The unique identifier for the Mythic Keystone season
89
- * @returns A promise that resolves to an object representing details about a Mythic Keystone season by ID.
90
- */
91
- export declare function mythicKeystoneSeason(seasonId: number): Promise<MythicKeystoneSeason>;