@blizzard-api/wow 4.2.0 → 4.2.2

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 (78) hide show
  1. package/dist/account-profile/index.d.ts +1 -1
  2. package/dist/account-profile/index.js +8 -8
  3. package/dist/account-profile/index.js.map +1 -1
  4. package/dist/achievements/index.d.ts +1 -1
  5. package/dist/azerite-essence/index.d.ts +1 -1
  6. package/dist/character-achievements/index.d.ts +1 -1
  7. package/dist/character-appearance/index.d.ts +1 -1
  8. package/dist/character-collections/index.d.ts +1 -1
  9. package/dist/character-equipment/index.d.ts +1 -1
  10. package/dist/character-hunter-pets/index.d.ts +1 -1
  11. package/dist/character-pvp/index.d.ts +1 -1
  12. package/dist/character-soulbinds/index.d.ts +1 -1
  13. package/dist/covenant/index.d.ts +1 -1
  14. package/dist/creature/index.d.ts +1 -1
  15. package/dist/guild/index.d.ts +1 -1
  16. package/dist/guild-crest/index.d.ts +1 -1
  17. package/dist/heirloom/index.d.ts +1 -1
  18. package/dist/housing-decor/index.d.ts +1 -1
  19. package/dist/{index-t9XEyuoB.d.ts → index-0Bhntrik.d.ts} +4 -7
  20. package/dist/{index-C1YdeTeh.d.ts → index-B8gaHbmp.d.ts} +7 -20
  21. package/dist/{index-BXil5dXL.d.ts → index-BA-S_4s8.d.ts} +4 -10
  22. package/dist/{index-fgCzpXCR.d.ts → index-BDKw2T5h.d.ts} +3 -6
  23. package/dist/{index-DwH3cSMV.d.ts → index-BHHO7RV3.d.ts} +3 -6
  24. package/dist/{index-DdmXkF2F.d.ts → index-BKuDd7nT.d.ts} +3 -7
  25. package/dist/{index-DyhS61bj.d.ts → index-BaL7P-bA.d.ts} +2 -2
  26. package/dist/{index-CaRIVhVv.d.ts → index-Bz4N9R8o.d.ts} +3 -5
  27. package/dist/{index-BzlqLJ2o.d.ts → index-C9yo07sd.d.ts} +4 -8
  28. package/dist/{index-Djm0g1Yi.d.ts → index-CCBUIqOU.d.ts} +5 -10
  29. package/dist/{index-BmPjWZiM.d.ts → index-CT77a0JF.d.ts} +10 -19
  30. package/dist/{index-Mo0Nrg5B.d.ts → index-Cc4oZQrM.d.ts} +5 -14
  31. package/dist/{index-C0vm3zy-.d.ts → index-Cev12iRl.d.ts} +5 -12
  32. package/dist/{index-BM2O2XmC.d.ts → index-CljBIBHy.d.ts} +5 -13
  33. package/dist/{index-C_3k8Q6y.d.ts → index-D317dq94.d.ts} +7 -10
  34. package/dist/{index-BlmuhVLr.d.ts → index-DB-CW2qB.d.ts} +3 -6
  35. package/dist/{index-gYxee23q.d.ts → index-DFlcJK5P.d.ts} +3 -6
  36. package/dist/{index-DOEs0UyY.d.ts → index-DGUAqQfD.d.ts} +3 -4
  37. package/dist/{index-D8XusKs5.d.ts → index-DP01g0EB.d.ts} +4 -8
  38. package/dist/{index-CJD7VTCV.d.ts → index-DRLsvfW5.d.ts} +3 -5
  39. package/dist/{index-DxnUqJGs.d.ts → index-DVacJ9ne.d.ts} +6 -15
  40. package/dist/{index-CEF2RBas.d.ts → index-DWXx_hQX.d.ts} +3 -5
  41. package/dist/{index-CcOUGucU.d.ts → index-DXJEmC1r.d.ts} +5 -11
  42. package/dist/{index-Zo-8eUYk.d.ts → index-Dcoq8HHI.d.ts} +4 -11
  43. package/dist/{index-mg4RaAL2.d.ts → index-DkkhK4mL.d.ts} +3 -6
  44. package/dist/{index-CahuOTZl.d.ts → index-DzFNhtcD.d.ts} +11 -18
  45. package/dist/{index-YDf016Cx.d.ts → index-ECczWYo-.d.ts} +3 -6
  46. package/dist/{index-DqReVqKo.d.ts → index-G_mEQkdH.d.ts} +3 -5
  47. package/dist/{index-BT8uSt8c.d.ts → index-Ho48pOyM.d.ts} +4 -11
  48. package/dist/{index-DxnfWpb6.d.ts → index-QcJecti6.d.ts} +3 -7
  49. package/dist/{index-voS2LTm4.d.ts → index-U0fk242w.d.ts} +3 -6
  50. package/dist/{index-FuJJlGI3.d.ts → index-V1Na_uH5.d.ts} +17 -17
  51. package/dist/{index-DMYMiLKS.d.ts → index-Y2Yt9EzH.d.ts} +3 -5
  52. package/dist/{index-DU34NE5y.d.ts → index-_gTBl2_Y.d.ts} +5 -12
  53. package/dist/{index-CHk_Cxrn.d.ts → index-bl4DdMgs.d.ts} +8 -11
  54. package/dist/{index-CPXZZPZt.d.ts → index-clqZ-M8A.d.ts} +3 -6
  55. package/dist/{index-D9zRWOGv.d.ts → index-eLWbd2FJ.d.ts} +3 -6
  56. package/dist/index.d.ts +37 -37
  57. package/dist/item/index.d.ts +1 -1
  58. package/dist/item-appearance/index.d.ts +1 -1
  59. package/dist/journal/index.d.ts +1 -1
  60. package/dist/mount/index.d.ts +1 -1
  61. package/dist/mythic-keystone-affix/index.d.ts +1 -1
  62. package/dist/mythic-keystone-dungeon/index.d.ts +1 -1
  63. package/dist/mythic-keystone-leaderboard/index.d.ts +1 -1
  64. package/dist/mythic-raid-leaderboard/index.d.ts +1 -1
  65. package/dist/neighborhood-map/index.d.ts +1 -1
  66. package/dist/pet/index.d.ts +1 -1
  67. package/dist/playable-class/index.d.ts +1 -1
  68. package/dist/playable-specialization/index.d.ts +1 -1
  69. package/dist/profession/index.d.ts +1 -1
  70. package/dist/pvp-season/index.d.ts +1 -1
  71. package/dist/pvp-tier/index.d.ts +1 -1
  72. package/dist/quest/index.d.ts +1 -1
  73. package/dist/reputations/index.d.ts +1 -1
  74. package/dist/spell/index.d.ts +1 -1
  75. package/dist/talent/index.d.ts +1 -1
  76. package/dist/tech-talent/index.d.ts +1 -1
  77. package/dist/toy/index.d.ts +1 -1
  78. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import { Color, KeyBase, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { Color, IdKey, NameIdKey, NameType, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for the heirloom index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -13,8 +13,8 @@ interface HeirloomIndexResponse extends ResponseBase {
13
13
  interface HeirloomResponse extends ResponseBase {
14
14
  id: number;
15
15
  item: NameIdKey;
16
- media: Media;
17
- source: Source;
16
+ media: IdKey;
17
+ source: NameType;
18
18
  source_description: string;
19
19
  upgrades: Array<Upgrade>;
20
20
  }
@@ -23,7 +23,7 @@ interface AttackSpeedClass {
23
23
  value: number;
24
24
  }
25
25
  interface Damage {
26
- damage_class: Source;
26
+ damage_class: NameType;
27
27
  display_string: string;
28
28
  max_value: number;
29
29
  min_value: number;
@@ -32,23 +32,16 @@ interface Display {
32
32
  color: Color;
33
33
  display_string: string;
34
34
  }
35
- interface Media extends KeyBase {
36
- id: number;
37
- }
38
35
  interface Requirements {
39
36
  level: RequirementsLevel;
40
37
  }
41
38
  interface RequirementsLevel {
42
39
  display_string: string;
43
40
  }
44
- interface Source {
45
- name: string;
46
- type: string;
47
- }
48
41
  interface Stat {
49
42
  display: Display;
50
43
  is_equip_bonus?: boolean;
51
- type: Source;
44
+ type: NameType;
52
45
  value: number;
53
46
  }
54
47
  interface Upgrade {
@@ -56,17 +49,17 @@ interface Upgrade {
56
49
  level: number;
57
50
  }
58
51
  interface UpgradeItem {
59
- binding: Source;
52
+ binding: NameType;
60
53
  bonus_list: Array<number>;
61
54
  context: number;
62
- inventory_type: Source;
63
- item: Media;
55
+ inventory_type: NameType;
56
+ item: IdKey;
64
57
  item_class: NameIdKey;
65
58
  item_subclass: NameIdKey;
66
59
  level: AttackSpeedClass;
67
- media: Media;
60
+ media: IdKey;
68
61
  name: string;
69
- quality: Source;
62
+ quality: NameType;
70
63
  requirements: Requirements;
71
64
  stats: Array<Stat>;
72
65
  upgrades: Upgrades;
@@ -94,4 +87,4 @@ declare function heirloom(heirloomId: number): Resource<HeirloomResponse>;
94
87
  */
95
88
  declare function heirloomIndex(): Resource<HeirloomIndexResponse>;
96
89
  export { HeirloomResponse as i, heirloomIndex as n, HeirloomIndexResponse as r, heirloom as t };
97
- //# sourceMappingURL=index-CahuOTZl.d.ts.map
90
+ //# sourceMappingURL=index-DzFNhtcD.d.ts.map
@@ -1,4 +1,4 @@
1
- import { BaseSearchParameters, KeyBase, Locales, MediaAsset, NameId, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
1
+ import { BaseSearchParameters, IdKey, KeyBase, Locales, MediaAsset, NameId, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a spell media.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -13,7 +13,7 @@ interface SpellMediaResponse extends ResponseBase {
13
13
  */
14
14
  interface SpellResponse extends NameId, ResponseBase {
15
15
  description: null | string;
16
- media: Media;
16
+ media: IdKey;
17
17
  }
18
18
  /**
19
19
  * The search parameters for spells.
@@ -32,9 +32,6 @@ interface SpellSearchParameters extends BaseSearchParameters {
32
32
  interface SpellSearchResponse extends SearchResponseWithoutResults {
33
33
  results: Array<SpellSearchResponseItem>;
34
34
  }
35
- interface Media extends KeyBase {
36
- id: number;
37
- }
38
35
  interface SpellSearchResponseItem extends KeyBase {
39
36
  data: {
40
37
  id: number;
@@ -63,4 +60,4 @@ declare function spellMedia(spellId: number): Resource<SpellMediaResponse>;
63
60
  */
64
61
  declare function spellSearch(options: SpellSearchParameters): Resource<SpellSearchResponse, Omit<SpellSearchParameters, 'locale' | 'name'>>;
65
62
  export { SpellResponse as a, SpellMediaResponse as i, spellMedia as n, SpellSearchParameters as o, spellSearch as r, SpellSearchResponse as s, spell as t };
66
- //# sourceMappingURL=index-YDf016Cx.d.ts.map
63
+ //# sourceMappingURL=index-ECczWYo-.d.ts.map
@@ -1,13 +1,11 @@
1
- import { Character, KeyBase, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { Character, IdKey, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  interface CharacterHunterPetsSummaryResponse extends ResponseBase {
3
3
  character: Character;
4
4
  hunter_pets: Array<HunterPet>;
5
5
  }
6
6
  interface HunterPet {
7
7
  creature: NameIdKey;
8
- creature_display: KeyBase & {
9
- id: number;
10
- };
8
+ creature_display: IdKey;
11
9
  is_active?: boolean;
12
10
  is_summoned?: boolean;
13
11
  level: number;
@@ -22,4 +20,4 @@ interface HunterPet {
22
20
  */
23
21
  declare function characterHunterPetsSummary(realmSlug: string, characterName: string): Resource<CharacterHunterPetsSummaryResponse>;
24
22
  export { CharacterHunterPetsSummaryResponse as n, characterHunterPetsSummary as t };
25
- //# sourceMappingURL=index-DqReVqKo.d.ts.map
23
+ //# sourceMappingURL=index-G_mEQkdH.d.ts.map
@@ -1,4 +1,4 @@
1
- import { KeyBase, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { IdKey, NameIdKey, NameType, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a toy index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -13,18 +13,11 @@ interface ToyIndexResponse extends ResponseBase {
13
13
  interface ToyResponse extends ResponseBase {
14
14
  id: number;
15
15
  item: NameIdKey;
16
- media: Media;
16
+ media: IdKey;
17
17
  should_exclude_if_uncollected?: boolean;
18
- source: Source;
18
+ source: NameType;
19
19
  source_description?: string;
20
20
  }
21
- interface Media extends KeyBase {
22
- id: number;
23
- }
24
- interface Source {
25
- name: string;
26
- type: string;
27
- }
28
21
  /**
29
22
  * Get a toy by ID.
30
23
  * @param toyId The toy ID.
@@ -37,4 +30,4 @@ declare function toy(toyId: number): Resource<ToyResponse>;
37
30
  */
38
31
  declare function toyIndex(): Resource<ToyIndexResponse>;
39
32
  export { ToyResponse as i, toyIndex as n, ToyIndexResponse as r, toy as t };
40
- //# sourceMappingURL=index-BT8uSt8c.d.ts.map
33
+ //# sourceMappingURL=index-Ho48pOyM.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { n as PetStats, t as PetQuality } from "./types-BihzpfkI.js";
2
- import { Character, Href, IdKey, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
+ import { Character, Href, IdKey, NameIdKey, NameType, Resource, ResponseBase } from "@blizzard-api/core";
3
3
  interface CharacterCollectionDecorResponse extends ResponseBase {
4
4
  decor_collected: Array<DecorItem>;
5
5
  }
@@ -59,11 +59,7 @@ interface Pet {
59
59
  }
60
60
  interface Slot {
61
61
  appearances: Array<IdKey>;
62
- slot: SlotSlot;
63
- }
64
- interface SlotSlot {
65
- name: string;
66
- type: string;
62
+ slot: NameType;
67
63
  }
68
64
  interface Toy {
69
65
  is_favorite?: boolean;
@@ -112,4 +108,4 @@ declare function characterToysCollectionSummary(realmSlug: string, characterName
112
108
  */
113
109
  declare function characterTransmogCollectionSummary(realmSlug: string, characterName: string): Resource<CharacterTransmogCollectionSummaryResponse>;
114
110
  export { characterPetsCollectionSummary as a, CharacterCollectionDecorResponse as c, CharacterMountsCollectionSummaryResponse as d, CharacterPetsCollectionSummaryResponse as f, characterMountsCollectionSummary as i, CharacterCollectionsIndexResponse as l, CharacterTransmogCollectionSummaryResponse as m, characterCollectionsIndex as n, characterToysCollectionSummary as o, CharacterToysCollectionSummaryResponse as p, characterHeirloomsCollectionSummary as r, characterTransmogCollectionSummary as s, characterCollectionDecor as t, CharacterHeirloomsCollectionSummaryResponse as u };
115
- //# sourceMappingURL=index-DxnfWpb6.d.ts.map
111
+ //# sourceMappingURL=index-QcJecti6.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Color, KeyBase, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { Color, IdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a guild crest border or emblem.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -22,7 +22,7 @@ interface Background {
22
22
  }
23
23
  interface Border {
24
24
  id: number;
25
- media: Media;
25
+ media: IdKey;
26
26
  }
27
27
  interface Colors {
28
28
  backgrounds: Array<Background>;
@@ -33,9 +33,6 @@ interface GuildCrestAsset {
33
33
  key: string;
34
34
  value: string;
35
35
  }
36
- interface Media extends KeyBase {
37
- id: number;
38
- }
39
36
  /**
40
37
  * Get a guild crest border by ID.
41
38
  * @param borderId The guild crest border ID.
@@ -54,4 +51,4 @@ declare function guildCrestComponentsIndex(): Resource<GuildCrestComponentsIndex
54
51
  */
55
52
  declare function guildCrestEmblem(emblemId: number): Resource<GuildCrestBorderEmblemResponse>;
56
53
  export { GuildCrestComponentsIndexResponse as a, GuildCrestBorderEmblemResponse as i, guildCrestComponentsIndex as n, guildCrestEmblem as r, guildCrestBorder as t };
57
- //# sourceMappingURL=index-voS2LTm4.d.ts.map
54
+ //# sourceMappingURL=index-U0fk242w.d.ts.map
@@ -127,52 +127,52 @@ interface WowAccount {
127
127
  }
128
128
  /**
129
129
  * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
130
- * @param token The OAuth 2.0 access token to use for authentication.
130
+ * @param token Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.
131
131
  * @returns an index of collection types for an account.
132
132
  */
133
- declare function accountCollectionsIndex(token: string): ProtectedResource<AccountCollectionsIndexResponse>;
133
+ declare function accountCollectionsIndex(token?: string): ProtectedResource<AccountCollectionsIndexResponse>;
134
134
  /**
135
135
  * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
136
- * @param token The OAuth 2.0 access token to use for authentication.
136
+ * @param token Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.
137
137
  * @returns the housing decor an account has collected.
138
138
  */
139
- declare function accountDecorCollection(token: string): ProtectedResource<AccountDecorCollectionResponse>;
139
+ declare function accountDecorCollection(token?: string): ProtectedResource<AccountDecorCollectionResponse>;
140
140
  /**
141
141
  * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
142
- * @param token The OAuth 2.0 access token to use for authentication.
142
+ * @param token Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.
143
143
  * @returns a summary of the heirlooms an account has obtained.
144
144
  */
145
- declare function accountHeirloomsCollectionSummary(token: string): ProtectedResource<AccountHeirloomsCollectionSummaryResponse>;
145
+ declare function accountHeirloomsCollectionSummary(token?: string): ProtectedResource<AccountHeirloomsCollectionSummaryResponse>;
146
146
  /**
147
147
  * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
148
- * @param token The OAuth 2.0 access token to use for authentication.
148
+ * @param token Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.
149
149
  * @returns a summary of the mounts an account has obtained.
150
150
  */
151
- declare function accountMountsCollectionSummary(token: string): ProtectedResource<AccountMountsCollectionSummaryResponse>;
151
+ declare function accountMountsCollectionSummary(token?: string): ProtectedResource<AccountMountsCollectionSummaryResponse>;
152
152
  /**
153
153
  * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
154
- * @param token The OAuth 2.0 access token to use for authentication.
154
+ * @param token Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.
155
155
  * @returns a summary of the battle pets an account has obtained.
156
156
  */
157
- declare function accountPetsCollectionSummary(token: string): ProtectedResource<AccountPetsCollectionSummaryResponse>;
157
+ declare function accountPetsCollectionSummary(token?: string): ProtectedResource<AccountPetsCollectionSummaryResponse>;
158
158
  /**
159
159
  * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
160
- * @param token The OAuth 2.0 access token to use for authentication.
160
+ * @param token Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.
161
161
  * @returns a profile summary for an account.
162
162
  */
163
- declare function accountProfileSummary(token: string): ProtectedResource<AccountProfileSummaryResponse>;
163
+ declare function accountProfileSummary(token?: string): ProtectedResource<AccountProfileSummaryResponse>;
164
164
  /**
165
165
  * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
166
- * @param token The OAuth 2.0 access token to use for authentication.
166
+ * @param token Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.
167
167
  * @returns a summary of the toys an account has obtained.
168
168
  */
169
- declare function accountToysCollectionSummary(token: string): ProtectedResource<AccountToysCollectionSummaryResponse>;
169
+ declare function accountToysCollectionSummary(token?: string): ProtectedResource<AccountToysCollectionSummaryResponse>;
170
170
  /**
171
171
  * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
172
- * @param token The OAuth 2.0 access token to use for authentication.
172
+ * @param token Optional OAuth 2.0 access token; alternatively, scope the client with `withUserToken`.
173
173
  * @returns a summary of the transmog unlocks an account has obtained.
174
174
  */
175
- declare function accountTransmogsCollectionSummary(token: string): ProtectedResource<AccountTransmogsCollectionSummaryResponse>;
175
+ declare function accountTransmogsCollectionSummary(token?: string): ProtectedResource<AccountTransmogsCollectionSummaryResponse>;
176
176
  /**
177
177
  * Because this endpoint provides data about the current logged-in user's World of Warcraft account, it requires an access token with the wow.profile scope acquired via the Authorization Code Flow. See {@link https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow}
178
178
  * @param realmId The realm ID.
@@ -182,4 +182,4 @@ declare function accountTransmogsCollectionSummary(token: string): ProtectedReso
182
182
  */
183
183
  declare function protectedCharacterProfileSummary(realmId: number, characterId: number, token: string): ProtectedResource<ProtectedCharacterProfileSummaryResponse>;
184
184
  export { AccountTransmogsCollectionSummaryResponse as _, accountPetsCollectionSummary as a, accountTransmogsCollectionSummary as c, AccountDecorCollectionResponse as d, AccountHeirloomsCollectionSummaryResponse as f, AccountToysCollectionSummaryResponse as g, AccountProfileSummaryResponse as h, accountMountsCollectionSummary as i, protectedCharacterProfileSummary as l, AccountPetsCollectionSummaryResponse as m, accountDecorCollection as n, accountProfileSummary as o, AccountMountsCollectionSummaryResponse as p, accountHeirloomsCollectionSummary as r, accountToysCollectionSummary as s, accountCollectionsIndex as t, AccountCollectionsIndexResponse as u, ProtectedCharacterProfileSummaryResponse as v };
185
- //# sourceMappingURL=index-FuJJlGI3.d.ts.map
185
+ //# sourceMappingURL=index-V1Na_uH5.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Character, Color, Faction, Gender, KeyBase, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { Character, Color, Faction, Gender, IdKey, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  interface CharacterAppearanceResponse extends ResponseBase {
3
3
  active_spec: NameIdKey;
4
4
  character: Character;
@@ -13,9 +13,7 @@ interface CharacterAppearanceResponse extends ResponseBase {
13
13
  interface BorderEmblem {
14
14
  color: RGBWithId;
15
15
  id: number;
16
- media: KeyBase & {
17
- id: number;
18
- };
16
+ media: IdKey;
19
17
  }
20
18
  interface Choice {
21
19
  display_order: number;
@@ -58,4 +56,4 @@ interface RGBWithId {
58
56
  */
59
57
  declare function characterAppearanceSummary(realmSlug: string, characterName: string): Resource<CharacterAppearanceResponse>;
60
58
  export { CharacterAppearanceResponse as n, characterAppearanceSummary as t };
61
- //# sourceMappingURL=index-DMYMiLKS.d.ts.map
59
+ //# sourceMappingURL=index-Y2Yt9EzH.d.ts.map
@@ -1,4 +1,4 @@
1
- import { KeyBase, MediaAsset, NameId, NameIdKey, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { IdKey, KeyBase, MediaAsset, NameId, NameIdKey, NameType, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a profession index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -20,9 +20,9 @@ interface ProfessionMediaResponse extends ResponseBase {
20
20
  */
21
21
  interface ProfessionResponse extends NameId, ResponseBase {
22
22
  description: string;
23
- media: Media;
23
+ media: IdKey;
24
24
  skill_tiers: Array<NameIdKey>;
25
- type: Type;
25
+ type: NameType;
26
26
  }
27
27
  /**
28
28
  * The response for a profession skill tier.
@@ -51,7 +51,7 @@ interface RecipeResponse extends NameId, ResponseBase {
51
51
  crafted_quantity?: CraftedQuantity;
52
52
  description?: null | string;
53
53
  horde_crafted_item?: NameIdKey;
54
- media: Media;
54
+ media: IdKey;
55
55
  modified_crafting_slots?: Array<ModifiedCraftSlot>;
56
56
  rank?: number;
57
57
  reagents?: Array<Reagent>;
@@ -65,9 +65,6 @@ interface CraftedQuantity {
65
65
  minimum?: number;
66
66
  value?: number;
67
67
  }
68
- interface Media extends KeyBase {
69
- id: number;
70
- }
71
68
  interface ModifiedCraftSlot {
72
69
  display_order: number;
73
70
  slot_type: KeyBase & {
@@ -79,10 +76,6 @@ interface Reagent {
79
76
  quantity: number;
80
77
  reagent: NameIdKey;
81
78
  }
82
- interface Type {
83
- name: string;
84
- type: string;
85
- }
86
79
  /**
87
80
  * Get a profession by ID.
88
81
  * @param professionId The profession ID.
@@ -120,4 +113,4 @@ declare function recipe(recipeId: number): Resource<RecipeResponse>;
120
113
  */
121
114
  declare function recipeMedia(recipeId: number): Resource<RecipeMediaResponse>;
122
115
  export { recipe as a, ProfessionMediaResponse as c, RecipeMediaResponse as d, RecipeResponse as f, professionSkillTier as i, ProfessionResponse as l, professionIndex as n, recipeMedia as o, professionMedia as r, ProfessionIndexResponse as s, profession as t, ProfessionSkillTierResponse as u };
123
- //# sourceMappingURL=index-DU34NE5y.d.ts.map
116
+ //# sourceMappingURL=index-_gTBl2_Y.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Faction, Href, KeyBase, NameId, NameIdKey, NonNeutralFactions, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { Faction, Href, IdKey, KeyBase, NameId, NameIdKey, NonNeutralFactions, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a PvP leaderboard index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -8,7 +8,7 @@ interface PvpLeaderboardIndexResponse extends ResponseBase {
8
8
  id?: number;
9
9
  name: string;
10
10
  }>;
11
- season: Season;
11
+ season: IdKey;
12
12
  }
13
13
  /**
14
14
  * The response for a PvP leaderboard.
@@ -18,7 +18,7 @@ interface PvpLeaderboardResponse extends ResponseBase {
18
18
  bracket: Bracket;
19
19
  entries: Array<Entry>;
20
20
  name: string;
21
- season: Season;
21
+ season: IdKey;
22
22
  }
23
23
  /**
24
24
  * The response for PvP rewards index.
@@ -26,15 +26,15 @@ interface PvpLeaderboardResponse extends ResponseBase {
26
26
  */
27
27
  interface PvpRewardsIndexResponse extends ResponseBase {
28
28
  rewards: Array<Reward>;
29
- season: Season;
29
+ season: IdKey;
30
30
  }
31
31
  /**
32
32
  * The response for a PvP season index.
33
33
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
34
34
  */
35
35
  interface PvpSeasonIndexResponse extends ResponseBase {
36
- current_season: Season;
37
- seasons: Array<Season>;
36
+ current_season: IdKey;
37
+ seasons: Array<IdKey>;
38
38
  }
39
39
  /**
40
40
  * The response for a PvP season.
@@ -63,7 +63,7 @@ interface Entry {
63
63
  rank: number;
64
64
  rating: number;
65
65
  season_match_statistics: SeasonMatchStatistics;
66
- tier: Season;
66
+ tier: IdKey;
67
67
  }
68
68
  interface Realm$1 extends KeyBase {
69
69
  id: number;
@@ -76,9 +76,6 @@ interface Reward {
76
76
  rating_cutoff: number;
77
77
  specialization?: NameIdKey;
78
78
  }
79
- interface Season extends KeyBase {
80
- id: number;
81
- }
82
79
  interface SeasonMatchStatistics {
83
80
  lost: number;
84
81
  played: number;
@@ -115,4 +112,4 @@ declare function pvpSeason(pvpSeasonId: number): Resource<PvpSeasonResponse>;
115
112
  */
116
113
  declare function pvpSeasonIndex(): Resource<PvpSeasonIndexResponse>;
117
114
  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 };
118
- //# sourceMappingURL=index-CHk_Cxrn.d.ts.map
115
+ //# sourceMappingURL=index-bl4DdMgs.d.ts.map
@@ -1,4 +1,4 @@
1
- import { BaseSearchParameters, KeyBase, Locales, MediaAsset, NameId, NameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
1
+ import { BaseSearchParameters, IdKey, KeyBase, Locales, MediaAsset, NameId, NameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
2
2
  /**
3
3
  * Interface for a response from the azerite essence index endpoint.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -20,7 +20,7 @@ interface AzeriteEssenceMediaResponse extends ResponseBase {
20
20
  */
21
21
  interface AzeriteEssenceResponse extends NameId, ResponseBase {
22
22
  allowed_specializations: Array<NameIdKey>;
23
- media: Media;
23
+ media: IdKey;
24
24
  powers: Array<Power>;
25
25
  }
26
26
  /**
@@ -48,9 +48,6 @@ interface AzeriteEssenceSearchResponseItem extends KeyBase {
48
48
  name: Record<Locales, string>;
49
49
  };
50
50
  }
51
- interface Media extends KeyBase {
52
- id: number;
53
- }
54
51
  interface Power {
55
52
  id: number;
56
53
  main_power_spell: NameIdKey;
@@ -81,4 +78,4 @@ declare function azeriteEssenceMedia(azeriteEssenceId: number): Resource<Azerite
81
78
  */
82
79
  declare function azeriteEssenceSearch(options: AzeriteEssenceSearchParameters): Resource<AzeriteEssenceSearchResponse, AzeriteEssenceSearchParameters>;
83
80
  export { AzeriteEssenceIndexResponse as a, AzeriteEssenceSearchParameters as c, azeriteEssenceSearch as i, AzeriteEssenceSearchResponse as l, azeriteEssenceIndex as n, AzeriteEssenceMediaResponse as o, azeriteEssenceMedia as r, AzeriteEssenceResponse as s, azeriteEssence as t };
84
- //# sourceMappingURL=index-CPXZZPZt.d.ts.map
81
+ //# sourceMappingURL=index-clqZ-M8A.d.ts.map
@@ -1,4 +1,4 @@
1
- import { KeyBase, MediaAsset, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { IdKey, MediaAsset, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a PvP tier index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -22,7 +22,7 @@ interface PvpTierResponse extends ResponseBase {
22
22
  bracket: Bracket;
23
23
  id: number;
24
24
  max_rating: number;
25
- media: Media;
25
+ media: IdKey;
26
26
  min_rating: number;
27
27
  name: null | string;
28
28
  rating_type: number;
@@ -31,9 +31,6 @@ interface Bracket {
31
31
  id: number;
32
32
  type: string;
33
33
  }
34
- interface Media extends KeyBase {
35
- id: number;
36
- }
37
34
  /**
38
35
  * Get a PvP tier by ID.
39
36
  * @param pvpTierId The PvP tier ID.
@@ -52,4 +49,4 @@ declare function pvpTierIndex(): Resource<PvpTierIndexResponse>;
52
49
  */
53
50
  declare function pvpTierMedia(pvpTierId: number): Resource<PvpTierMediaResponse>;
54
51
  export { PvpTierMediaResponse as a, PvpTierIndexResponse as i, pvpTierIndex as n, PvpTierResponse as o, pvpTierMedia as r, pvpTier as t };
55
- //# sourceMappingURL=index-D9zRWOGv.d.ts.map
52
+ //# sourceMappingURL=index-eLWbd2FJ.d.ts.map