@blizzard-api/wow 3.0.6 → 4.0.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 (224) hide show
  1. package/dist/account-profile/index.d.ts +2 -0
  2. package/dist/account-profile/index.js +104 -0
  3. package/dist/account-profile/index.js.map +1 -0
  4. package/dist/achievements/index.d.ts +2 -0
  5. package/dist/achievements/index.js +61 -0
  6. package/dist/achievements/index.js.map +1 -0
  7. package/dist/auction-house/index.d.ts +2 -0
  8. package/dist/auction-house/index.js +27 -0
  9. package/dist/auction-house/index.js.map +1 -0
  10. package/dist/azerite-essence/index.d.ts +2 -0
  11. package/dist/azerite-essence/index.js +54 -0
  12. package/dist/azerite-essence/index.js.map +1 -0
  13. package/dist/character-achievements/index.d.ts +2 -0
  14. package/dist/character-achievements/index.js +28 -0
  15. package/dist/character-achievements/index.js.map +1 -0
  16. package/dist/character-appearance/index.d.ts +2 -0
  17. package/dist/character-appearance/index.js +16 -0
  18. package/dist/character-appearance/index.js.map +1 -0
  19. package/dist/character-collections/index.d.ts +2 -0
  20. package/dist/character-collections/index.js +72 -0
  21. package/dist/character-collections/index.js.map +1 -0
  22. package/dist/character-encounters/index.d.ts +2 -0
  23. package/dist/character-encounters/index.js +39 -0
  24. package/dist/character-encounters/index.js.map +1 -0
  25. package/dist/character-equipment/index.d.ts +2 -0
  26. package/dist/character-equipment/index.js +16 -0
  27. package/dist/character-equipment/index.js.map +1 -0
  28. package/dist/character-hunter-pets/index.d.ts +2 -0
  29. package/dist/character-hunter-pets/index.js +17 -0
  30. package/dist/character-hunter-pets/index.js.map +1 -0
  31. package/dist/character-media/index.d.ts +2 -0
  32. package/dist/character-media/index.js +16 -0
  33. package/dist/character-media/index.js.map +1 -0
  34. package/dist/character-mythic-keystone-profile/index.d.ts +2 -0
  35. package/dist/character-mythic-keystone-profile/index.js +30 -0
  36. package/dist/character-mythic-keystone-profile/index.js.map +1 -0
  37. package/dist/character-professions/index.d.ts +2 -0
  38. package/dist/character-professions/index.js +16 -0
  39. package/dist/character-professions/index.js.map +1 -0
  40. package/dist/character-profile/index.d.ts +2 -0
  41. package/dist/character-profile/index.js +39 -0
  42. package/dist/character-profile/index.js.map +1 -0
  43. package/dist/character-pvp/index.d.ts +2 -0
  44. package/dist/character-pvp/index.js +28 -0
  45. package/dist/character-pvp/index.js.map +1 -0
  46. package/dist/character-quests/index.d.ts +2 -0
  47. package/dist/character-quests/index.js +27 -0
  48. package/dist/character-quests/index.js.map +1 -0
  49. package/dist/character-reputations/index.d.ts +2 -0
  50. package/dist/character-reputations/index.js +16 -0
  51. package/dist/character-reputations/index.js.map +1 -0
  52. package/dist/character-soulbinds/index.d.ts +2 -0
  53. package/dist/character-soulbinds/index.js +16 -0
  54. package/dist/character-soulbinds/index.js.map +1 -0
  55. package/dist/character-specializations/index.d.ts +2 -0
  56. package/dist/character-specializations/index.js +16 -0
  57. package/dist/character-specializations/index.js.map +1 -0
  58. package/dist/character-statistics/index.d.ts +2 -0
  59. package/dist/character-statistics/index.js +16 -0
  60. package/dist/character-statistics/index.js.map +1 -0
  61. package/dist/character-titles/index.d.ts +2 -0
  62. package/dist/character-titles/index.js +16 -0
  63. package/dist/character-titles/index.js.map +1 -0
  64. package/dist/connected-realm/index.d.ts +2 -0
  65. package/dist/connected-realm/index.js +44 -0
  66. package/dist/connected-realm/index.js.map +1 -0
  67. package/dist/covenant/index.d.ts +2 -0
  68. package/dist/covenant/index.js +80 -0
  69. package/dist/covenant/index.js.map +1 -0
  70. package/dist/creature/index.d.ts +2 -0
  71. package/dist/creature/index.js +97 -0
  72. package/dist/creature/index.js.map +1 -0
  73. package/dist/guild/index.d.ts +2 -0
  74. package/dist/guild/index.js +50 -0
  75. package/dist/guild/index.js.map +1 -0
  76. package/dist/guild-crest/index.d.ts +2 -0
  77. package/dist/guild-crest/index.js +38 -0
  78. package/dist/guild-crest/index.js.map +1 -0
  79. package/dist/heirloom/index.d.ts +2 -0
  80. package/dist/heirloom/index.js +27 -0
  81. package/dist/heirloom/index.js.map +1 -0
  82. package/dist/housing-decor/index.d.ts +2 -0
  83. package/dist/housing-decor/index.js +155 -0
  84. package/dist/housing-decor/index.js.map +1 -0
  85. package/dist/index--WL1Ol2r.d.ts +192 -0
  86. package/dist/index-0hpJYoWw.d.ts +86 -0
  87. package/dist/index-2xjdPrIp.d.ts +34 -0
  88. package/dist/index-8go905Or2.d.ts +46 -0
  89. package/dist/index-B-v4jmT8.d.ts +120 -0
  90. package/dist/index-BAx6xlRe.d.ts +43 -0
  91. package/dist/index-BJYdOuJB2.d.ts +21 -0
  92. package/dist/index-BM5t9AbX2.d.ts +72 -0
  93. package/dist/index-BOz0BCUN2.d.ts +233 -0
  94. package/dist/index-BUSzkCHP2.d.ts +38 -0
  95. package/dist/index-BWGWNZX7.d.ts +62 -0
  96. package/dist/index-BXawY6VA2.d.ts +150 -0
  97. package/dist/index-B_OrLUY42.d.ts +102 -0
  98. package/dist/index-BcKDDvwF.d.ts +85 -0
  99. package/dist/index-Bd_PavJU.d.ts +56 -0
  100. package/dist/index-BgkVcJkr2.d.ts +60 -0
  101. package/dist/index-BuORTLmA.d.ts +29 -0
  102. package/dist/index-C2BXkcO8.d.ts +36 -0
  103. package/dist/index-C9JT3jCN2.d.ts +77 -0
  104. package/dist/index-CE4iGLJf2.d.ts +128 -0
  105. package/dist/index-CH3CudPP.d.ts +91 -0
  106. package/dist/index-CJSqSpru.d.ts +145 -0
  107. package/dist/index-CP1gTrDv.d.ts +312 -0
  108. package/dist/index-CQXTvcKu2.d.ts +72 -0
  109. package/dist/index-CS_QQdEk.d.ts +22 -0
  110. package/dist/index-CWFif_SP2.d.ts +31 -0
  111. package/dist/index-CZy1t3WK.d.ts +160 -0
  112. package/dist/index-ChVDi11Z.d.ts +54 -0
  113. package/dist/index-CmJhDVVk.d.ts +157 -0
  114. package/dist/index-Cry2-cm82.d.ts +123 -0
  115. package/dist/index-Cto5KQ-A2.d.ts +71 -0
  116. package/dist/index-D9u-Oxk6.d.ts +69 -0
  117. package/dist/index-DDHIN-u0.d.ts +36 -0
  118. package/dist/index-DJZZaqMF.d.ts +66 -0
  119. package/dist/index-DLD2tbdk.d.ts +68 -0
  120. package/dist/index-DScltfEW.d.ts +89 -0
  121. package/dist/index-DZqv9GTd.d.ts +125 -0
  122. package/dist/index-DiU4f1cd2.d.ts +45 -0
  123. package/dist/index-DlkM3Nrw2.d.ts +45 -0
  124. package/dist/index-Do1l3j1C.d.ts +283 -0
  125. package/dist/index-DpfeUoRy.d.ts +149 -0
  126. package/dist/index-DvzdYkdL.d.ts +89 -0
  127. package/dist/index-DwuFoDTp.d.ts +159 -0
  128. package/dist/index-DxEXkR_n.d.ts +81 -0
  129. package/dist/index-Dzfv2QaX.d.ts +65 -0
  130. package/dist/index-J46u_PSy2.d.ts +117 -0
  131. package/dist/index-LhUh1Lk5.d.ts +30 -0
  132. package/dist/index-SfMQ7bBi2.d.ts +86 -0
  133. package/dist/index-Xyv-CG_n.d.ts +160 -0
  134. package/dist/index-ZAJGdEvm.d.ts +102 -0
  135. package/dist/index-fbBIJXcV.d.ts +69 -0
  136. package/dist/index-fn_f7xiC.d.ts +21 -0
  137. package/dist/index-h17WWDmt.d.ts +118 -0
  138. package/dist/index-m4fmIRKg.d.ts +35 -0
  139. package/dist/index.d.ts +69 -4738
  140. package/dist/index.js +68 -2137
  141. package/dist/index.js.map +1 -1
  142. package/dist/item/index.d.ts +2 -0
  143. package/dist/item/index.js +98 -0
  144. package/dist/item/index.js.map +1 -0
  145. package/dist/journal/index.d.ts +2 -0
  146. package/dist/journal/index.js +96 -0
  147. package/dist/journal/index.js.map +1 -0
  148. package/dist/media-search/index.d.ts +2 -0
  149. package/dist/media-search/index.js +22 -0
  150. package/dist/media-search/index.js.map +1 -0
  151. package/dist/modified-crafting/index.d.ts +2 -0
  152. package/dist/modified-crafting/index.js +58 -0
  153. package/dist/modified-crafting/index.js.map +1 -0
  154. package/dist/mount/index.d.ts +2 -0
  155. package/dist/mount/index.js +43 -0
  156. package/dist/mount/index.js.map +1 -0
  157. package/dist/mythic-keystone-affix/index.d.ts +2 -0
  158. package/dist/mythic-keystone-affix/index.js +38 -0
  159. package/dist/mythic-keystone-affix/index.js.map +1 -0
  160. package/dist/mythic-keystone-dungeon/index.d.ts +2 -0
  161. package/dist/mythic-keystone-dungeon/index.js +79 -0
  162. package/dist/mythic-keystone-dungeon/index.js.map +1 -0
  163. package/dist/mythic-keystone-leaderboard/index.d.ts +2 -0
  164. package/dist/mythic-keystone-leaderboard/index.js +30 -0
  165. package/dist/mythic-keystone-leaderboard/index.js.map +1 -0
  166. package/dist/mythic-raid-leaderboard/index.d.ts +2 -0
  167. package/dist/mythic-raid-leaderboard/index.js +18 -0
  168. package/dist/mythic-raid-leaderboard/index.js.map +1 -0
  169. package/dist/pet/index.d.ts +2 -0
  170. package/dist/pet/index.js +70 -0
  171. package/dist/pet/index.js.map +1 -0
  172. package/dist/playable-class/index.d.ts +2 -0
  173. package/dist/playable-class/index.js +49 -0
  174. package/dist/playable-class/index.js.map +1 -0
  175. package/dist/playable-race/index.d.ts +2 -0
  176. package/dist/playable-race/index.js +27 -0
  177. package/dist/playable-race/index.js.map +1 -0
  178. package/dist/playable-specialization/index.d.ts +2 -0
  179. package/dist/playable-specialization/index.js +38 -0
  180. package/dist/playable-specialization/index.js.map +1 -0
  181. package/dist/power-type/index.d.ts +2 -0
  182. package/dist/power-type/index.js +27 -0
  183. package/dist/power-type/index.js.map +1 -0
  184. package/dist/profession/index.d.ts +2 -0
  185. package/dist/profession/index.js +72 -0
  186. package/dist/profession/index.js.map +1 -0
  187. package/dist/pvp-season/index.d.ts +2 -0
  188. package/dist/pvp-season/index.js +61 -0
  189. package/dist/pvp-season/index.js.map +1 -0
  190. package/dist/pvp-tier/index.d.ts +2 -0
  191. package/dist/pvp-tier/index.js +38 -0
  192. package/dist/pvp-tier/index.js.map +1 -0
  193. package/dist/quest/index.d.ts +2 -0
  194. package/dist/quest/index.js +90 -0
  195. package/dist/quest/index.js.map +1 -0
  196. package/dist/realm/index.d.ts +24 -0
  197. package/dist/realm/index.js +43 -0
  198. package/dist/realm/index.js.map +1 -0
  199. package/dist/region/index.d.ts +2 -0
  200. package/dist/region/index.js +27 -0
  201. package/dist/region/index.js.map +1 -0
  202. package/dist/reputations/index.d.ts +2 -0
  203. package/dist/reputations/index.js +48 -0
  204. package/dist/reputations/index.js.map +1 -0
  205. package/dist/spell/index.d.ts +2 -0
  206. package/dist/spell/index.js +44 -0
  207. package/dist/spell/index.js.map +1 -0
  208. package/dist/talent/index.d.ts +2 -0
  209. package/dist/talent/index.js +81 -0
  210. package/dist/talent/index.js.map +1 -0
  211. package/dist/tech-talent/index.d.ts +2 -0
  212. package/dist/tech-talent/index.js +59 -0
  213. package/dist/tech-talent/index.js.map +1 -0
  214. package/dist/title/index.d.ts +2 -0
  215. package/dist/title/index.js +27 -0
  216. package/dist/title/index.js.map +1 -0
  217. package/dist/toy/index.d.ts +2 -0
  218. package/dist/toy/index.js +27 -0
  219. package/dist/toy/index.js.map +1 -0
  220. package/dist/types-Z0ZgMUXA.d.ts +79 -0
  221. package/dist/wow-token/index.d.ts +2 -0
  222. package/dist/wow-token/index.js +16 -0
  223. package/dist/wow-token/index.js.map +1 -0
  224. package/package.json +16 -7
@@ -0,0 +1,72 @@
1
+ import { Factions, Href, KeyBase, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
+
3
+ //#region src/mythic-keystone-leaderboard/types.d.ts
4
+ /**
5
+ * The response for a Mythic Keystone leaderboard index.
6
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
7
+ */
8
+ interface MythicKeystoneLeaderboardIndexResponse extends ResponseBase {
9
+ current_leaderboards: Array<NameIdKey>;
10
+ }
11
+ /**
12
+ * The response for a Mythic Keystone leaderboard.
13
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
14
+ */
15
+ interface MythicKeystoneLeaderboardResponse extends ResponseBase {
16
+ connected_realm: Href;
17
+ keystone_affixes: Array<KeystoneAffixElement>;
18
+ leading_groups: Array<LeadingGroup>;
19
+ map: NameId;
20
+ map_challenge_mode_id: number;
21
+ name: string;
22
+ period: number;
23
+ period_end_timestamp: number;
24
+ period_start_timestamp: number;
25
+ }
26
+ interface KeystoneAffixElement {
27
+ keystone_affix: NameIdKey;
28
+ starting_level: number;
29
+ }
30
+ interface LeadingGroup {
31
+ completed_timestamp: number;
32
+ duration: number;
33
+ keystone_level: number;
34
+ members: Array<Member>;
35
+ ranking: number;
36
+ }
37
+ interface Member {
38
+ faction: {
39
+ type: Factions;
40
+ };
41
+ profile: Profile;
42
+ specialization: Specialization;
43
+ }
44
+ interface Profile extends NameId {
45
+ realm: Realm$1;
46
+ }
47
+ interface Realm$1 extends KeyBase {
48
+ id: number;
49
+ slug: string;
50
+ }
51
+ interface Specialization extends KeyBase {
52
+ id: number;
53
+ }
54
+ //#endregion
55
+ //#region src/mythic-keystone-leaderboard/index.d.ts
56
+ /**
57
+ * Get a Mythic Keystone leaderboard by connected realm ID, dungeon ID, and period.
58
+ * @param connectedRealmId The connected realm ID.
59
+ * @param dungeonId The dungeon ID.
60
+ * @param period The period ID.
61
+ * @returns The Mythic Keystone leaderboard. See {@link MythicKeystoneLeaderboardResponse}.
62
+ */
63
+ declare function mythicKeystoneLeaderboard(connectedRealmId: number, dungeonId: number, period: number): Resource<MythicKeystoneLeaderboardResponse>;
64
+ /**
65
+ * Get a Mythic Keystone leaderboard index by connected realm ID.
66
+ * @param connectedRealmId The connected realm ID.
67
+ * @returns The Mythic Keystone leaderboard index. See {@link MythicKeystoneLeaderboardIndexResponse}.
68
+ */
69
+ declare function mythicKeystoneLeaderboardIndex(connectedRealmId: number): Resource<MythicKeystoneLeaderboardIndexResponse>;
70
+ //#endregion
71
+ export { MythicKeystoneLeaderboardResponse as i, mythicKeystoneLeaderboardIndex as n, MythicKeystoneLeaderboardIndexResponse as r, mythicKeystoneLeaderboard as t };
72
+ //# sourceMappingURL=index-CQXTvcKu2.d.ts.map
@@ -0,0 +1,22 @@
1
+ import { Character, Resource, ResponseBase } from "@blizzard-api/core";
2
+
3
+ //#region src/character-media/types.d.ts
4
+ interface CharacterMediaSummaryResponse extends ResponseBase {
5
+ assets: Array<Asset>;
6
+ character: Character;
7
+ }
8
+ interface Asset {
9
+ key: string;
10
+ value: string;
11
+ }
12
+ //#endregion
13
+ //#region src/character-media/index.d.ts
14
+ /**
15
+ * @param realmSlug The slug of the realm.
16
+ * @param characterName The lowercase name of the character.
17
+ * @returns a summary of the media assets available for a character (such as an avatar render).
18
+ */
19
+ declare function characterMediaSummary(realmSlug: string, characterName: string): Resource<CharacterMediaSummaryResponse>;
20
+ //#endregion
21
+ export { CharacterMediaSummaryResponse as n, characterMediaSummary as t };
22
+ //# sourceMappingURL=index-CS_QQdEk.d.ts.map
@@ -0,0 +1,31 @@
1
+ import { NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
+
3
+ //#region src/power-type/types.d.ts
4
+ /**
5
+ * The response for a power type index.
6
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
7
+ */
8
+ interface PowerTypeIndexResponse extends ResponseBase {
9
+ power_types: Array<NameIdKey>;
10
+ }
11
+ /**
12
+ * The response for a power type.
13
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
14
+ */
15
+ interface PowerTypeResponse extends NameId, ResponseBase {}
16
+ //#endregion
17
+ //#region src/power-type/index.d.ts
18
+ /**
19
+ * Get a power type by ID.
20
+ * @param powerTypeId The power type ID.
21
+ * @returns The power type. See {@link PowerTypeResponse}.
22
+ */
23
+ declare function powerType(powerTypeId: number): Resource<PowerTypeResponse>;
24
+ /**
25
+ * Get a power type index.
26
+ * @returns The power type index. See {@link PowerTypeIndexResponse}.
27
+ */
28
+ declare function powerTypeIndex(): Resource<PowerTypeIndexResponse>;
29
+ //#endregion
30
+ export { PowerTypeResponse as i, powerTypeIndex as n, PowerTypeIndexResponse as r, powerType as t };
31
+ //# sourceMappingURL=index-CWFif_SP2.d.ts.map
@@ -0,0 +1,160 @@
1
+ import { BaseSearchParameters, KeyBase, Locales, NameId, NameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
2
+
3
+ //#region src/housing-decor/types.d.ts
4
+ interface DecorIndexResponse extends ResponseBase {
5
+ decor_items: Array<NameIdKey>;
6
+ }
7
+ interface DecorResponse extends ResponseBase {
8
+ default_collection_count?: number;
9
+ dye_slots?: Array<DyeSlot>;
10
+ id: number;
11
+ items: NameIdKey;
12
+ name: string;
13
+ source?: Array<DecorSource>;
14
+ }
15
+ interface DecorSearchResponse extends SearchResponseWithoutResults {
16
+ results: Array<DecorSearchResponseItem>;
17
+ }
18
+ interface FixtureHookIndexResponse extends ResponseBase {
19
+ fixture_hooks: Array<NameIdKey>;
20
+ }
21
+ interface FixtureHookResponse extends ResponseBase {
22
+ id: number;
23
+ parent_fixture: NameIdKey;
24
+ type_name: string;
25
+ }
26
+ interface FixtureHookSearchResponse extends SearchResponseWithoutResults {
27
+ results: Array<FixtureHookSearchResponseItem>;
28
+ }
29
+ interface FixtureIndexResponse extends ResponseBase {
30
+ fixtures: Array<NameIdKey>;
31
+ }
32
+ interface FixtureResponse extends NameId, ResponseBase {
33
+ hooks?: Array<NameIdKey>;
34
+ }
35
+ interface FixtureSearchResponse extends SearchResponseWithoutResults {
36
+ results: Array<FixtureSearchResponseItem>;
37
+ }
38
+ /**
39
+ * The search parameters for a decor.
40
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
41
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
42
+ */
43
+ interface GenericDecorSearchParameters extends BaseSearchParameters {
44
+ locale: Locales;
45
+ name: string;
46
+ }
47
+ interface RoomIndexReponse extends ResponseBase {
48
+ rooms: Array<NameIdKey>;
49
+ }
50
+ interface RoomResponse extends NameId, ResponseBase {}
51
+ interface RoomSearchResponse extends SearchResponseWithoutResults {
52
+ results: Array<RoomSearchResponseItem>;
53
+ }
54
+ interface DecorSearchResponseItem extends KeyBase {
55
+ data: {
56
+ id: number;
57
+ item: {
58
+ id: number;
59
+ name: Record<Locales, string>;
60
+ };
61
+ name: Record<Locales, string | undefined>;
62
+ };
63
+ }
64
+ interface DecorSource {
65
+ achievements?: Array<NameIdKey>;
66
+ recipes?: Array<NameIdKey>;
67
+ }
68
+ interface DyeSlot {
69
+ dye_color_category: string;
70
+ slot_index: number;
71
+ }
72
+ interface FixtureHookSearchResponseItem extends KeyBase {
73
+ id: number;
74
+ }
75
+ interface FixtureSearchResponseItem extends KeyBase {
76
+ data: {
77
+ id: number;
78
+ name: Record<Locales, string | undefined>;
79
+ };
80
+ }
81
+ interface RoomSearchResponseItem extends KeyBase {
82
+ data: {
83
+ id: number;
84
+ name: Record<Locales, string | undefined>;
85
+ };
86
+ }
87
+ //#endregion
88
+ //#region src/housing-decor/index.d.ts
89
+ /**
90
+ *
91
+ * Returns an index of decor.
92
+ * @returns An index of decor. See {@link DecorIndexResponse}.
93
+ */
94
+ declare function decorIndex(): Resource<DecorIndexResponse>;
95
+ /**
96
+ * Returns a decor by ID.
97
+ * @param decorId The decor ID.
98
+ * @returns A decor. See {@link DecorResponse}.
99
+ */
100
+ declare function decor(decorId: number): Resource<DecorResponse>;
101
+ /**
102
+ * Searches for decor.
103
+ * @param options The search parameters. See {@link GenericDecorSearchParameters}.
104
+ * @returns A decor. See {@link DecorSearchResponse}.
105
+ */
106
+ declare function decorSearch(options: GenericDecorSearchParameters): Resource<DecorSearchResponse, Omit<GenericDecorSearchParameters, 'locale' | 'name'>>;
107
+ /**
108
+ * Returns an index of fixtures.
109
+ * @returns An index of fixtures. See {@link FixtureIndexResponse}.
110
+ */
111
+ declare function fixtureIndex(): Resource<FixtureIndexResponse>;
112
+ /**
113
+ * Returns a fixture by ID.
114
+ * @param fixtureId The fixture ID.
115
+ * @returns A fixture. See {@link FixtureResponse}.
116
+ */
117
+ declare function fixture(fixtureId: number): Resource<FixtureResponse>;
118
+ /**
119
+ * Searches for fixtures.
120
+ * @param options The search parameters. See {@link GenericDecorSearchParameters}.
121
+ * @returns A fixture. See {@link FixtureSearchResponse}.
122
+ */
123
+ declare function fixtureSearch(options: GenericDecorSearchParameters): Resource<FixtureSearchResponse, Omit<GenericDecorSearchParameters, 'locale' | 'name'>>;
124
+ /**
125
+ * Returns an index of fixture hooks.
126
+ * @returns An index of fixture hooks. See {@link FixtureHookIndexResponse}.
127
+ */
128
+ declare function fixtureHookIndex(): Resource<FixtureHookIndexResponse>;
129
+ /**
130
+ * Returns a fixture hook by ID.
131
+ * @param fixtureHookId The fixture hook ID.
132
+ * @returns A fixture hook. See {@link FixtureHookResponse}.
133
+ */
134
+ declare function fixtureHook(fixtureHookId: number): Resource<FixtureHookResponse>;
135
+ /**
136
+ * Searches for fixture hooks.
137
+ * @param options The search parameters. See {@link GenericDecorSearchParameters}.
138
+ * @returns A fixture hook. See {@link FixtureSearchResponse}.
139
+ */
140
+ declare function fixtureHookSearch(options: GenericDecorSearchParameters): Resource<FixtureHookSearchResponse, Omit<GenericDecorSearchParameters, 'locale' | 'name'>>;
141
+ /**
142
+ * Returns an index of rooms.
143
+ * @returns An index of rooms. See {@link RoomIndexReponse}.
144
+ */
145
+ declare function roomIndex(): Resource<RoomIndexReponse>;
146
+ /**
147
+ * Returns a room by ID.
148
+ * @param roomId The room ID.
149
+ * @returns A room. See {@link RoomResponse}.
150
+ */
151
+ declare function room(roomId: number): Resource<RoomResponse>;
152
+ /**
153
+ * Searches for rooms.
154
+ * @param options The search parameters. See {@link GenericDecorSearchParameters}.
155
+ * @returns A room. See {@link RoomSearchResponse}.
156
+ */
157
+ declare function roomSearch(options: GenericDecorSearchParameters): Resource<RoomSearchResponse, Omit<GenericDecorSearchParameters, 'locale' | 'name'>>;
158
+ //#endregion
159
+ export { RoomIndexReponse as C, GenericDecorSearchParameters as S, RoomSearchResponse as T, FixtureHookResponse as _, fixtureHook as a, FixtureResponse as b, fixtureIndex as c, roomIndex as d, roomSearch as f, FixtureHookIndexResponse as g, DecorSearchResponse as h, fixture as i, fixtureSearch as l, DecorResponse as m, decorIndex as n, fixtureHookIndex as o, DecorIndexResponse as p, decorSearch as r, fixtureHookSearch as s, decor as t, room as u, FixtureHookSearchResponse as v, RoomResponse as w, FixtureSearchResponse as x, FixtureIndexResponse as y };
160
+ //# sourceMappingURL=index-CZy1t3WK.d.ts.map
@@ -0,0 +1,54 @@
1
+ import { Character, Faction, KeyBase, NameId, Resource, ResponseBase } from "@blizzard-api/core";
2
+
3
+ //#region src/character-pvp/types.d.ts
4
+ interface CharacterPvpBracketStatisticsResponse extends ResponseBase {
5
+ bracket: Bracket;
6
+ character: Character;
7
+ faction: Faction;
8
+ rating: number;
9
+ season: KeyBase & {
10
+ id: number;
11
+ };
12
+ season_match_statistics: MatchStatistics;
13
+ tier: KeyBase & {
14
+ id: number;
15
+ };
16
+ weekly_match_statistics: MatchStatistics;
17
+ }
18
+ interface CharacterPvpSummaryResponse extends ResponseBase {
19
+ character: Character;
20
+ honor_level: number;
21
+ honorable_kills: number;
22
+ pvp_map_statistics: Array<PvpMapStatistic>;
23
+ }
24
+ interface Bracket {
25
+ id: number;
26
+ type: string;
27
+ }
28
+ interface MatchStatistics {
29
+ lost: number;
30
+ played: number;
31
+ won: number;
32
+ }
33
+ interface PvpMapStatistic {
34
+ match_statistics: MatchStatistics;
35
+ world_map: NameId;
36
+ }
37
+ //#endregion
38
+ //#region src/character-pvp/index.d.ts
39
+ /**
40
+ * @param realmSlug The slug of the realm.
41
+ * @param characterName The lowercase name of the character.
42
+ * @param bracketId The ID of the PvP bracket.
43
+ * @returns a PvP bracket statistics for a character.
44
+ */
45
+ declare function characterPvpBracketStatistics(realmSlug: string, characterName: string, bracketId: '2v2' | '3v3' | 'rbg' | `shuffle-${string}-${string}`): Resource<CharacterPvpBracketStatisticsResponse>;
46
+ /**
47
+ * @param realmSlug The slug of the realm.
48
+ * @param characterName The lowercase name of the character.
49
+ * @returns a PvP summary for a character.
50
+ */
51
+ declare function characterPvpSummary(realmSlug: string, characterName: string): Resource<CharacterPvpSummaryResponse>;
52
+ //#endregion
53
+ export { CharacterPvpSummaryResponse as i, characterPvpSummary as n, CharacterPvpBracketStatisticsResponse as r, characterPvpBracketStatistics as t };
54
+ //# sourceMappingURL=index-ChVDi11Z.d.ts.map
@@ -0,0 +1,157 @@
1
+ import { KeyBase, MediaAsset, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
+
3
+ //#region src/covenant/types.d.ts
4
+ /**
5
+ * Interface for a response from the conduit index endpoint.
6
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
7
+ */
8
+ interface ConduitIndexResponse extends ResponseBase {
9
+ conduits: Array<NameIdKey>;
10
+ }
11
+ /**
12
+ * Interface for a response from the conduit endpoint.
13
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
14
+ */
15
+ interface ConduitResponse extends ResponseBase {
16
+ id: number;
17
+ item: NameIdKey;
18
+ name: string;
19
+ ranks: Array<Rank>;
20
+ socket_type: SocketType;
21
+ }
22
+ /**
23
+ * Interface for a response from the covenant index endpoint.
24
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
25
+ */
26
+ interface CovenantIndexResponse extends ResponseBase {
27
+ covenants: Array<NameIdKey>;
28
+ }
29
+ /**
30
+ * Interface for a response from the covenant media endpoint.
31
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
32
+ */
33
+ interface CovenantMediaResponse extends ResponseBase {
34
+ assets?: Array<MediaAsset>;
35
+ }
36
+ /**
37
+ * Interface for a response from the covenant endpoint.
38
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
39
+ */
40
+ interface CovenantResponse extends ResponseBase {
41
+ class_abilities?: Array<ClassAbility>;
42
+ description: string;
43
+ id: number;
44
+ media?: Media;
45
+ name: string;
46
+ renown_rewards: Array<RenownReward>;
47
+ signature_ability?: SignatureAbility;
48
+ soulbinds?: Array<NameIdKey>;
49
+ }
50
+ /**
51
+ * Interface for a response from the soulbind index endpoint.
52
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
53
+ */
54
+ interface SoulbindIndexResponse extends ResponseBase {
55
+ soulbinds: Array<NameIdKey>;
56
+ }
57
+ /**
58
+ * Interface for a response from the soulbind endpoint.
59
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
60
+ */
61
+ interface SoulbindResponse extends ResponseBase {
62
+ covenant: NameIdKey;
63
+ creature: NameIdKey;
64
+ follower: NameId;
65
+ id: number;
66
+ name: string;
67
+ talent_tree: NameIdKey;
68
+ }
69
+ interface ClassAbility {
70
+ id: number;
71
+ playable_class: NameIdKey;
72
+ spell_tooltip: ClassAbilitySpellTooltip;
73
+ }
74
+ interface ClassAbilitySpellTooltip {
75
+ cast_time: string;
76
+ cooldown?: string;
77
+ description: string;
78
+ power_cost?: null | string;
79
+ range?: string;
80
+ spell: NameIdKey;
81
+ }
82
+ interface Media extends KeyBase {
83
+ id: number;
84
+ }
85
+ interface Rank {
86
+ id: number;
87
+ spell_tooltip: SpellTooltip;
88
+ tier: number;
89
+ }
90
+ interface RenownReward {
91
+ level: number;
92
+ reward: NameIdKey;
93
+ }
94
+ interface SignatureAbility {
95
+ id: number;
96
+ spell_tooltip: SignatureAbilitySpellTooltip;
97
+ }
98
+ interface SignatureAbilitySpellTooltip {
99
+ cast_time: string;
100
+ cooldown?: string;
101
+ description: string;
102
+ range?: string;
103
+ spell: NameIdKey;
104
+ }
105
+ interface SocketType {
106
+ name: string;
107
+ type: string;
108
+ }
109
+ interface SpellTooltip {
110
+ cast_time: string;
111
+ description: string;
112
+ spell: NameIdKey;
113
+ }
114
+ //#endregion
115
+ //#region src/covenant/index.d.ts
116
+ /**
117
+ * Get a conduit by ID.
118
+ * @param conduitId The conduit ID.
119
+ * @returns The conduit. See {@link ConduitResponse}.
120
+ */
121
+ declare function conduit(conduitId: number): Resource<ConduitResponse>;
122
+ /**
123
+ * Get a conduit index.
124
+ * @returns The conduit index. See {@link ConduitIndexResponse}.
125
+ */
126
+ declare function conduitIndex(): Resource<ConduitIndexResponse>;
127
+ /**
128
+ * Get a covenant by ID.
129
+ * @param covenantId The covenant ID.
130
+ * @returns The covenant. See {@link CovenantResponse}.
131
+ */
132
+ declare function covenant(covenantId: number): Resource<CovenantResponse>;
133
+ /**
134
+ * Get a covenant index.
135
+ * @returns The covenant index. See {@link CovenantIndexResponse}.
136
+ */
137
+ declare function covenantIndex(): Resource<CovenantIndexResponse>;
138
+ /**
139
+ * Get covenant media by ID.
140
+ * @param covenantId The covenant ID.
141
+ * @returns The covenant media. See {@link CovenantMediaResponse}.
142
+ */
143
+ declare function covenantMedia(covenantId: number): Resource<CovenantMediaResponse>;
144
+ /**
145
+ * Get a soulbind by ID.
146
+ * @param soulbindId The soulbind ID.
147
+ * @returns The soulbind. See {@link SoulbindResponse}.
148
+ */
149
+ declare function soulbind(soulbindId: number): Resource<SoulbindResponse>;
150
+ /**
151
+ * Get a soulbind index.
152
+ * @returns The soulbind index. See {@link SoulbindIndexResponse}.
153
+ */
154
+ declare function soulbindIndex(): Resource<SoulbindIndexResponse>;
155
+ //#endregion
156
+ export { covenantMedia as a, ConduitIndexResponse as c, CovenantMediaResponse as d, CovenantResponse as f, covenantIndex as i, ConduitResponse as l, SoulbindResponse as m, conduitIndex as n, soulbind as o, SoulbindIndexResponse as p, covenant as r, soulbindIndex as s, conduit as t, CovenantIndexResponse as u };
157
+ //# sourceMappingURL=index-CmJhDVVk.d.ts.map
@@ -0,0 +1,123 @@
1
+ import { Faction, Factions, Href, KeyBase, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
+
3
+ //#region src/pvp-season/types.d.ts
4
+ /**
5
+ * The response for a PvP leaderboard index.
6
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
7
+ */
8
+ interface PvpLeaderboardIndexResponse extends ResponseBase {
9
+ leaderboards: Array<KeyBase & {
10
+ id?: number;
11
+ name: string;
12
+ }>;
13
+ season: Season;
14
+ }
15
+ /**
16
+ * The response for a PvP leaderboard.
17
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
18
+ */
19
+ interface PvpLeaderboardResponse extends ResponseBase {
20
+ bracket: Bracket;
21
+ entries: Array<Entry>;
22
+ name: string;
23
+ season: Season;
24
+ }
25
+ /**
26
+ * The response for PvP rewards index.
27
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
28
+ */
29
+ interface PvpRewardsIndexResponse extends ResponseBase {
30
+ rewards: Array<Reward>;
31
+ season: Season;
32
+ }
33
+ /**
34
+ * The response for a PvP season index.
35
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
36
+ */
37
+ interface PvpSeasonIndexResponse extends ResponseBase {
38
+ current_season: Season;
39
+ seasons: Array<Season>;
40
+ }
41
+ /**
42
+ * The response for a PvP season.
43
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
44
+ */
45
+ interface PvpSeasonResponse extends ResponseBase {
46
+ id: number;
47
+ leaderboards: Href;
48
+ rewards: Href;
49
+ season_end_timestamp?: number;
50
+ season_name?: null | string;
51
+ season_start_timestamp: number;
52
+ }
53
+ interface Bracket {
54
+ id: number;
55
+ type: 'ARENA_3v3' | 'BATTLEGROUNDS' | 'BLITZ' | 'SHUFFLE';
56
+ }
57
+ interface Character$1 extends NameId {
58
+ realm: Realm$1;
59
+ }
60
+ interface Entry {
61
+ character: Character$1;
62
+ faction: {
63
+ type: Factions;
64
+ };
65
+ rank: number;
66
+ rating: number;
67
+ season_match_statistics: SeasonMatchStatistics;
68
+ tier: Season;
69
+ }
70
+ interface Realm$1 extends KeyBase {
71
+ id: number;
72
+ slug: string;
73
+ }
74
+ interface Reward {
75
+ achievement: NameIdKey;
76
+ bracket: Bracket;
77
+ faction?: Faction;
78
+ rating_cutoff: number;
79
+ specialization?: NameIdKey;
80
+ }
81
+ interface Season extends KeyBase {
82
+ id: number;
83
+ }
84
+ interface SeasonMatchStatistics {
85
+ lost: number;
86
+ played: number;
87
+ won: number;
88
+ }
89
+ //#endregion
90
+ //#region src/pvp-season/index.d.ts
91
+ /**
92
+ * Get a PvP leaderboard by PvP season ID and bracket.
93
+ * @param pvpSeasonId The PvP season ID.
94
+ * @param bracket The PvP bracket.
95
+ * @returns The PvP leaderboard. See {@link PvpLeaderboardResponse}.
96
+ */
97
+ declare function pvpLeaderboard(pvpSeasonId: number, bracket: string): Resource<PvpLeaderboardResponse>;
98
+ /**
99
+ * Get a PvP leaderboard index by PvP season ID.
100
+ * @param pvpSeasonId The PvP season ID.
101
+ * @returns The PvP leaderboard index. See {@link PvpLeaderboardIndexResponse}.
102
+ */
103
+ declare function pvpLeaderboardIndex(pvpSeasonId: number): Resource<PvpLeaderboardIndexResponse>;
104
+ /**
105
+ * Get a PvP reward index by PvP season ID.
106
+ * @param pvpSeasonId The PvP season ID.
107
+ * @returns The PvP reward index. See {@link PvpRewardsIndexResponse}.
108
+ */
109
+ declare function pvpRewardsIndex(pvpSeasonId: number): Resource<PvpRewardsIndexResponse>;
110
+ /**
111
+ * Get a PvP season by ID.
112
+ * @param pvpSeasonId The PvP season ID.
113
+ * @returns The PvP season. See {@link PvpSeasonResponse}.
114
+ */
115
+ declare function pvpSeason(pvpSeasonId: number): Resource<PvpSeasonResponse>;
116
+ /**
117
+ * Get a PvP season index.
118
+ * @returns The PvP season index. See {@link PvpSeasonIndexResponse}.
119
+ */
120
+ declare function pvpSeasonIndex(): Resource<PvpSeasonIndexResponse>;
121
+ //#endregion
122
+ export { pvpSeasonIndex as a, PvpRewardsIndexResponse as c, pvpSeason as i, PvpSeasonIndexResponse as l, pvpLeaderboardIndex as n, PvpLeaderboardIndexResponse as o, pvpRewardsIndex as r, PvpLeaderboardResponse as s, pvpLeaderboard as t, PvpSeasonResponse as u };
123
+ //# sourceMappingURL=index-Cry2-cm82.d.ts.map
@@ -0,0 +1,71 @@
1
+ import { BaseSearchParameters, KeyBase, Locales, MediaAsset, NameId, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
2
+
3
+ //#region src/spell/types.d.ts
4
+ /**
5
+ * The response for a spell media.
6
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
7
+ */
8
+ interface SpellMediaResponse extends ResponseBase {
9
+ assets: Array<MediaAsset>;
10
+ id: number;
11
+ }
12
+ /**
13
+ * The response for a spell.
14
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
15
+ */
16
+ interface SpellResponse extends NameId, ResponseBase {
17
+ description: null | string;
18
+ media: Media;
19
+ }
20
+ /**
21
+ * The search parameters for spells.
22
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
23
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
24
+ */
25
+ interface SpellSearchParameters extends BaseSearchParameters {
26
+ locale: Locales;
27
+ name: string;
28
+ }
29
+ /**
30
+ * The response for a spell search.
31
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
32
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
33
+ */
34
+ interface SpellSearchResponse extends SearchResponseWithoutResults {
35
+ results: Array<SpellSearchResponseItem>;
36
+ }
37
+ interface Media extends KeyBase {
38
+ id: number;
39
+ }
40
+ interface SpellSearchResponseItem extends KeyBase {
41
+ data: {
42
+ id: number;
43
+ media: {
44
+ id: number;
45
+ };
46
+ name: Record<Locales, string>;
47
+ };
48
+ }
49
+ //#endregion
50
+ //#region src/spell/index.d.ts
51
+ /**
52
+ * Get a spell by ID.
53
+ * @param spellId The spell ID.
54
+ * @returns The spell. See {@link SpellResponse}.
55
+ */
56
+ declare function spell(spellId: number): Resource<SpellResponse>;
57
+ /**
58
+ * Get spell media by ID.
59
+ * @param spellId The spell ID.
60
+ * @returns The spell media. See {@link SpellMediaResponse}.
61
+ */
62
+ declare function spellMedia(spellId: number): Resource<SpellMediaResponse>;
63
+ /**
64
+ * Get a spell search.
65
+ * @param options The spell search options. See {@link SpellSearchParameters}.
66
+ * @returns The spell search. See {@link SpellSearchResponse}.
67
+ */
68
+ declare function spellSearch(options: SpellSearchParameters): Resource<SpellSearchResponse, Omit<SpellSearchParameters, 'locale' | 'name'>>;
69
+ //#endregion
70
+ export { SpellResponse as a, SpellMediaResponse as i, spellMedia as n, SpellSearchParameters as o, spellSearch as r, SpellSearchResponse as s, spell as t };
71
+ //# sourceMappingURL=index-Cto5KQ-A2.d.ts.map