@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 { BaseSearchParameters, Color, KeyBase, Locales, MediaAsset, NameId, NameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
1
+ import { BaseSearchParameters, Color, IdKey, KeyBase, Locales, MediaAsset, NameId, NameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for an item class index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -10,10 +10,8 @@ interface ItemClassIndexResponse extends ResponseBase {
10
10
  * The response for an item class.
11
11
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
12
12
  */
13
- interface ItemClassResponse extends ResponseBase {
14
- id: number;
13
+ interface ItemClassResponse extends NameId, ResponseBase {
15
14
  item_subclasses: Array<NameIdKey>;
16
- name: string;
17
15
  }
18
16
  /**
19
17
  * The response for an item media.
@@ -28,9 +26,7 @@ interface ItemMediaResponse extends ResponseBase {
28
26
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
29
27
  */
30
28
  interface ItemResponse extends NameId, ResponseBase {
31
- appearances?: Array<KeyBase & {
32
- id: number;
33
- }>;
29
+ appearances?: Array<IdKey>;
34
30
  description?: string;
35
31
  inventory_type: InventoryTypeName;
36
32
  is_equippable: boolean;
@@ -39,7 +35,7 @@ interface ItemResponse extends NameId, ResponseBase {
39
35
  item_subclass: NameIdKey;
40
36
  level: number;
41
37
  max_count: number;
42
- media: Media;
38
+ media: IdKey;
43
39
  preview_item: PreviewItem;
44
40
  purchase_price: number;
45
41
  purchase_quantity: number;
@@ -75,11 +71,9 @@ interface ItemSetIndexResponse extends ResponseBase {
75
71
  * The response for an item set.
76
72
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
77
73
  */
78
- interface ItemSetResponse extends ResponseBase {
74
+ interface ItemSetResponse extends NameId, ResponseBase {
79
75
  effects: Array<Effect>;
80
- id: number;
81
76
  items: Array<NameIdKey>;
82
- name: string;
83
77
  }
84
78
  /**
85
79
  * The response for an item subclass.
@@ -165,9 +159,6 @@ interface ItemSearchResponseItem extends KeyBase {
165
159
  sell_price: number;
166
160
  };
167
161
  }
168
- interface Media extends KeyBase {
169
- id: number;
170
- }
171
162
  interface PreviewItem {
172
163
  armor?: Armor;
173
164
  binding?: {
@@ -182,11 +173,11 @@ interface PreviewItem {
182
173
  durability?: Durability;
183
174
  inventory_type: InventoryTypeName;
184
175
  is_subclass_hidden?: boolean;
185
- item: Media;
176
+ item: IdKey;
186
177
  item_class: NameIdKey;
187
178
  item_subclass: NameIdKey;
188
179
  level?: Durability;
189
- media: Media;
180
+ media: IdKey;
190
181
  name: string;
191
182
  quality: ItemQuality;
192
183
  recipe?: Recipe;
@@ -213,11 +204,11 @@ interface RecipeItem {
213
204
  };
214
205
  durability: Durability;
215
206
  inventory_type: InventoryTypeName;
216
- item: Media;
207
+ item: IdKey;
217
208
  item_class: NameIdKey;
218
209
  item_subclass: NameIdKey;
219
210
  level: Durability;
220
- media: Media;
211
+ media: IdKey;
221
212
  name: string;
222
213
  quality: ItemQuality;
223
214
  requirements: Requirements;
@@ -304,4 +295,4 @@ declare function itemSetIndex(): Resource<ItemSetIndexResponse>;
304
295
  */
305
296
  declare function itemSubclass(itemClassId: number, itemSubclassId: number): Resource<ItemSubclassResponse>;
306
297
  export { ItemSubclassResponse as _, itemSearch as a, itemSubclass as c, ItemMediaResponse as d, ItemResponse as f, ItemSetResponse as g, ItemSetIndexResponse as h, itemMedia as i, ItemClassIndexResponse as l, ItemSearchResponse as m, itemClass as n, itemSet as o, ItemSearchParameters as p, itemClassIndex as r, itemSetIndex as s, item as t, ItemClassResponse as u };
307
- //# sourceMappingURL=index-BmPjWZiM.d.ts.map
298
+ //# sourceMappingURL=index-CT77a0JF.d.ts.map
@@ -1,4 +1,4 @@
1
- import { BaseSearchParameters, Faction, Factions, KeyBase, Locales, NameIdKey, NullishNameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
1
+ import { BaseSearchParameters, Faction, Factions, IdKey, KeyBase, Locales, NameIdKey, NameType, NullishNameId, NullishNameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a mount index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -10,19 +10,17 @@ interface MountIndexResponse extends ResponseBase {
10
10
  * The response for a mount.
11
11
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
12
12
  */
13
- interface MountResponse extends ResponseBase {
14
- creature_displays: Array<CreatureDisplay>;
13
+ interface MountResponse extends NullishNameId, ResponseBase {
14
+ creature_displays: Array<IdKey>;
15
15
  description: null | string;
16
16
  faction?: Faction;
17
- id: number;
18
- name: string;
19
17
  requirements?: {
20
18
  classes?: Array<NameIdKey>;
21
19
  faction?: Faction;
22
20
  races?: Array<NameIdKey>;
23
21
  };
24
22
  should_exclude_if_uncollected?: boolean;
25
- source?: Source;
23
+ source?: NameType;
26
24
  }
27
25
  /**
28
26
  * The search parameters for mounts.
@@ -41,9 +39,6 @@ interface MountSearchParameters extends BaseSearchParameters {
41
39
  interface MountSearchResponse extends SearchResponseWithoutResults {
42
40
  results: Array<MountSearchResponseItem>;
43
41
  }
44
- interface CreatureDisplay extends KeyBase {
45
- id: number;
46
- }
47
42
  interface MountSearchResponseItem extends KeyBase {
48
43
  data: {
49
44
  creature_displays: Array<{
@@ -61,10 +56,6 @@ interface MountSearchResponseItem extends KeyBase {
61
56
  };
62
57
  };
63
58
  }
64
- interface Source {
65
- name: string;
66
- type: string;
67
- }
68
59
  /**
69
60
  * Get a mount by ID.
70
61
  * @param mountId The mount ID.
@@ -83,4 +74,4 @@ declare function mountIndex(): Resource<MountIndexResponse>;
83
74
  */
84
75
  declare function mountSearch(options: MountSearchParameters): Resource<MountSearchResponse, Omit<MountSearchParameters, 'locale' | 'name'>>;
85
76
  export { MountResponse as a, MountIndexResponse as i, mountIndex as n, MountSearchParameters as o, mountSearch as r, MountSearchResponse as s, mount as t };
86
- //# sourceMappingURL=index-Mo0Nrg5B.d.ts.map
77
+ //# sourceMappingURL=index-Cc4oZQrM.d.ts.map
@@ -1,4 +1,4 @@
1
- import { GenderName, KeyBase, MediaAsset, NameId, NameIdKey, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { GenderName, IdKey, KeyBase, MediaAsset, NameId, NameIdKey, NameType, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a playable specialization index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -22,21 +22,14 @@ interface PlayableSpecializationMediaResponse extends ResponseBase {
22
22
  interface PlayableSpecializationResponse extends NameId, ResponseBase {
23
23
  gender_description: GenderName;
24
24
  hero_talent_trees: Array<NullishNameIdKey>;
25
- media: Media;
25
+ media: IdKey;
26
26
  playable_class: NameIdKey;
27
27
  power_type: NameIdKey;
28
- primary_stat_type: PrimaryStatType;
28
+ primary_stat_type: NameType;
29
29
  pvp_talents: Array<PvpTalent>;
30
- role: PrimaryStatType;
30
+ role: NameType;
31
31
  spec_talent_tree: SpecTalentTree;
32
32
  }
33
- interface Media extends KeyBase {
34
- id: number;
35
- }
36
- interface PrimaryStatType {
37
- name: string;
38
- type: string;
39
- }
40
33
  interface PvpTalent {
41
34
  spell_tooltip: SpellTooltip;
42
35
  talent: NameIdKey;
@@ -69,4 +62,4 @@ declare function playableSpecializationIndex(): Resource<PlayableSpecializationI
69
62
  */
70
63
  declare function playableSpecializationMedia(specializationId: number): Resource<PlayableSpecializationMediaResponse>;
71
64
  export { PlayableSpecializationMediaResponse as a, PlayableSpecializationIndexResponse as i, playableSpecializationIndex as n, PlayableSpecializationResponse as o, playableSpecializationMedia as r, playableSpecialization as t };
72
- //# sourceMappingURL=index-C0vm3zy-.d.ts.map
65
+ //# sourceMappingURL=index-Cev12iRl.d.ts.map
@@ -1,13 +1,10 @@
1
- import { KeyBase, MediaAsset, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { IdKey, MediaAsset, NullishNameId, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a Mythic Keystone affix index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
5
5
  */
6
6
  interface MythicKeystoneAffixIndexResponse extends ResponseBase {
7
- affixes: Array<KeyBase & {
8
- id: number;
9
- name: null | string;
10
- }>;
7
+ affixes: Array<NullishNameIdKey>;
11
8
  }
12
9
  /**
13
10
  * The response for a Mythic Keystone affix media.
@@ -21,14 +18,9 @@ interface MythicKeystoneAffixMediaResponse extends ResponseBase {
21
18
  * The response for a Mythic Keystone affix.
22
19
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
23
20
  */
24
- interface MythicKeystoneAffixResponse extends ResponseBase {
21
+ interface MythicKeystoneAffixResponse extends NullishNameId, ResponseBase {
25
22
  description: null | string;
26
- id: number;
27
- media: Media;
28
- name: null | string;
29
- }
30
- interface Media extends KeyBase {
31
- id: number;
23
+ media: IdKey;
32
24
  }
33
25
  /**
34
26
  * Get a list of all Mythic Keystone affixes.
@@ -48,4 +40,4 @@ declare function mythicKeystoneAffixIndex(): Resource<MythicKeystoneAffixIndexRe
48
40
  */
49
41
  declare function mythicKeystoneAffixMedia(mythicKeystoneAffixId: number): Resource<MythicKeystoneAffixMediaResponse>;
50
42
  export { MythicKeystoneAffixMediaResponse as a, MythicKeystoneAffixIndexResponse as i, mythicKeystoneAffixIndex as n, MythicKeystoneAffixResponse as o, mythicKeystoneAffixMedia as r, mythicKeystoneAffix as t };
51
- //# sourceMappingURL=index-BM2O2XmC.d.ts.map
43
+ //# sourceMappingURL=index-CljBIBHy.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Href, KeyBase, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { Href, IdKey, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a Mythic Keystone dungeon index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -30,8 +30,8 @@ interface MythicKeystoneIndexResponse extends ResponseBase {
30
30
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
31
31
  */
32
32
  interface MythicKeystonePeriodIndexResponse extends ResponseBase {
33
- current_period: Period;
34
- periods: Array<Period>;
33
+ current_period: IdKey;
34
+ periods: Array<IdKey>;
35
35
  }
36
36
  /**
37
37
  * The response for a Mythic Keystone period.
@@ -47,8 +47,8 @@ interface MythicKeystonePeriodResponse extends ResponseBase {
47
47
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
48
48
  */
49
49
  interface MythicKeystoneSeasonIndexResponse extends ResponseBase {
50
- current_season: Period;
51
- seasons: Array<Period>;
50
+ current_season: IdKey;
51
+ seasons: Array<IdKey>;
52
52
  }
53
53
  /**
54
54
  * The response for a Mythic Keystone season.
@@ -57,7 +57,7 @@ interface MythicKeystoneSeasonIndexResponse extends ResponseBase {
57
57
  interface MythicKeystoneSeasonResponse extends ResponseBase {
58
58
  end_timestamp?: number;
59
59
  id: number;
60
- periods: Array<Period>;
60
+ periods: Array<IdKey>;
61
61
  season_name: null | string;
62
62
  start_timestamp: number;
63
63
  }
@@ -65,9 +65,6 @@ interface KeystoneUpgrade {
65
65
  qualifying_duration: number;
66
66
  upgrade_level: number;
67
67
  }
68
- interface Period extends KeyBase {
69
- id: number;
70
- }
71
68
  interface Zone {
72
69
  slug: string;
73
70
  }
@@ -110,4 +107,4 @@ declare function mythicKeystoneSeason(mythicKeystoneSeasonId: number): Resource<
110
107
  */
111
108
  declare function mythicKeystoneSeasonIndex(): Resource<MythicKeystoneSeasonIndexResponse>;
112
109
  export { mythicKeystonePeriodIndex as a, MythicKeystoneDungeonIndexResponse as c, MythicKeystonePeriodIndexResponse as d, MythicKeystonePeriodResponse as f, mythicKeystonePeriod as i, MythicKeystoneDungeonResponse as l, MythicKeystoneSeasonResponse as m, mythicKeystoneDungeonIndex as n, mythicKeystoneSeason as o, MythicKeystoneSeasonIndexResponse as p, mythicKeystoneIndex as r, mythicKeystoneSeasonIndex as s, mythicKeystoneDungeon as t, MythicKeystoneIndexResponse as u };
113
- //# sourceMappingURL=index-C_3k8Q6y.d.ts.map
110
+ //# sourceMappingURL=index-D317dq94.d.ts.map
@@ -1,4 +1,4 @@
1
- import { NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for an index of neighborhood maps.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -10,10 +10,7 @@ interface NeighborhoodMapIndexResponse extends ResponseBase {
10
10
  * The response for a neighborhood map.
11
11
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
12
12
  */
13
- interface NeighborhoodMapResponse extends ResponseBase {
14
- id: number;
15
- name: string;
16
- }
13
+ interface NeighborhoodMapResponse extends NameId, ResponseBase {}
17
14
  /**
18
15
  * The response for a neighborhood within a neighborhood map.
19
16
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -42,4 +39,4 @@ declare function neighborhoodMap(neighborhoodMapId: number): Resource<Neighborho
42
39
  */
43
40
  declare function neighborhood(neighborhoodMapId: number, neighborhoodId: number): Resource<NeighborhoodResponse>;
44
41
  export { NeighborhoodMapResponse as a, NeighborhoodMapIndexResponse as i, neighborhoodMap as n, NeighborhoodResponse as o, neighborhoodMaps as r, neighborhood as t };
45
- //# sourceMappingURL=index-BlmuhVLr.d.ts.map
42
+ //# sourceMappingURL=index-DB-CW2qB.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, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a tech talent index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -20,7 +20,7 @@ interface TechTalentMediaResponse extends ResponseBase {
20
20
  interface TechTalentResponse extends NameId, ResponseBase {
21
21
  description?: string;
22
22
  display_order: number;
23
- media: Media;
23
+ media: IdKey;
24
24
  prerequisite_talent?: NameIdKey;
25
25
  socket_type?: {
26
26
  name: string;
@@ -50,9 +50,6 @@ interface TechTalentTreeResponse extends ResponseBase {
50
50
  playable_class?: NameIdKey;
51
51
  talents: Array<NameIdKey>;
52
52
  }
53
- interface Media extends KeyBase {
54
- id: number;
55
- }
56
53
  interface SpellTooltip {
57
54
  cast_time: string;
58
55
  cooldown?: string;
@@ -94,4 +91,4 @@ declare function techTalentTree(techTalentTreeId: number): Resource<TechTalentTr
94
91
  */
95
92
  declare function techTalentTreeIndex(): Resource<TechTalentTreeIndexResponse>;
96
93
  export { techTalentTreeIndex as a, TechTalentResponse as c, techTalentTree as i, TechTalentTreeIndexResponse as l, techTalentIndex as n, TechTalentIndexResponse as o, techTalentMedia as r, TechTalentMediaResponse as s, techTalent as t, TechTalentTreeResponse as u };
97
- //# sourceMappingURL=index-gYxee23q.d.ts.map
94
+ //# sourceMappingURL=index-DFlcJK5P.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Character, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { Character, NameIdKey, NameType, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  interface CharacterSoulbindsResponse extends ResponseBase {
3
3
  character: Character;
4
4
  chosen_covenant: NameIdKey;
@@ -24,8 +24,7 @@ interface Trait {
24
24
  tier: number;
25
25
  trait?: NameIdKey;
26
26
  }
27
- interface TypeClass {
28
- name: string;
27
+ interface TypeClass extends NameType {
29
28
  type: 'ENDURANCE' | 'FINESSE' | 'POTENCY';
30
29
  }
31
30
  /**
@@ -35,4 +34,4 @@ interface TypeClass {
35
34
  */
36
35
  declare function characterSoulbinds(realmSlug: string, characterName: string): Resource<CharacterSoulbindsResponse>;
37
36
  export { CharacterSoulbindsResponse as n, characterSoulbinds as t };
38
- //# sourceMappingURL=index-DOEs0UyY.d.ts.map
37
+ //# sourceMappingURL=index-DGUAqQfD.d.ts.map
@@ -1,16 +1,12 @@
1
- import { Character, Faction, KeyBase, NameId, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { Character, Faction, IdKey, NameId, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  interface CharacterPvpBracketStatisticsResponse extends ResponseBase {
3
3
  bracket: Bracket;
4
4
  character: Character;
5
5
  faction: Faction;
6
6
  rating: number;
7
- season: KeyBase & {
8
- id: number;
9
- };
7
+ season: IdKey;
10
8
  season_match_statistics: MatchStatistics;
11
- tier: KeyBase & {
12
- id: number;
13
- };
9
+ tier: IdKey;
14
10
  weekly_match_statistics: MatchStatistics;
15
11
  }
16
12
  interface CharacterPvpSummaryResponse extends ResponseBase {
@@ -46,4 +42,4 @@ declare function characterPvpBracketStatistics(realmSlug: string, characterName:
46
42
  */
47
43
  declare function characterPvpSummary(realmSlug: string, characterName: string): Resource<CharacterPvpSummaryResponse>;
48
44
  export { CharacterPvpSummaryResponse as i, characterPvpSummary as n, CharacterPvpBracketStatisticsResponse as r, characterPvpBracketStatistics as t };
49
- //# sourceMappingURL=index-D8XusKs5.d.ts.map
45
+ //# sourceMappingURL=index-DP01g0EB.d.ts.map
@@ -1,4 +1,4 @@
1
- import { KeyBase, NameId, NameIdKey, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { IdKey, KeyBase, NameId, NameIdKey, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a pvp talent index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -95,9 +95,7 @@ interface ClassTalentNodeRank {
95
95
  }
96
96
  interface HeroTalentTree extends NameId {
97
97
  hero_talent_nodes: Array<HeroTalentTreeNode>;
98
- media: KeyBase & {
99
- id: number;
100
- };
98
+ media: IdKey;
101
99
  playable_class: NameIdKey;
102
100
  playable_specializations: Array<NameIdKey>;
103
101
  }
@@ -225,4 +223,4 @@ declare function talentTreeIndex(): Resource<TalentTreeIndexResponse>;
225
223
  */
226
224
  declare function talentTreeNodes(talentTreeId: number): Resource<TalentTreeNodesResponse>;
227
225
  export { talentTree as a, PvpTalentIndexResponse as c, TalentResponse as d, TalentTreeIndexResponse as f, talentIndex as i, PvpTalentResponse as l, TalentTreeResponse as m, pvpTalentIndex as n, talentTreeIndex as o, TalentTreeNodesResponse as p, talent as r, talentTreeNodes as s, pvpTalent as t, TalentIndexResponse as u };
228
- //# sourceMappingURL=index-CJD7VTCV.d.ts.map
226
+ //# sourceMappingURL=index-DRLsvfW5.d.ts.map
@@ -1,4 +1,4 @@
1
- import { KeyBase, MediaAsset, NameId, NameIdKey, NullishNameId, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { IdKey, MediaAsset, NameId, NameIdKey, NameType, NullishNameId, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a pet ability index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -21,7 +21,7 @@ interface PetAbilityMediaResponse extends ResponseBase {
21
21
  interface PetAbilityResponse extends NullishNameId, ResponseBase {
22
22
  battle_pet_type: BattlePetType;
23
23
  cooldown?: number;
24
- media: Media;
24
+ media: IdKey;
25
25
  rounds: number;
26
26
  }
27
27
  /**
@@ -55,25 +55,16 @@ interface PetResponse extends NameId, ResponseBase {
55
55
  is_horde_only: boolean;
56
56
  is_random_creature_display: boolean;
57
57
  is_tradable: boolean;
58
- media: Media;
58
+ media: IdKey;
59
59
  should_exclude_if_uncollected?: boolean;
60
- source?: Source;
60
+ source?: NameType;
61
61
  }
62
62
  interface Ability {
63
63
  ability: NameIdKey;
64
64
  required_level: number;
65
65
  slot: number;
66
66
  }
67
- interface BattlePetType extends NameId {
68
- type: string;
69
- }
70
- interface Media extends KeyBase {
71
- id: number;
72
- }
73
- interface Source {
74
- name: string;
75
- type: string;
76
- }
67
+ interface BattlePetType extends NameId, NameType {}
77
68
  /**
78
69
  * Get a pet by ID.
79
70
  * @param petId The pet ID.
@@ -109,4 +100,4 @@ declare function petIndex(): Resource<PetIndexResponse>;
109
100
  */
110
101
  declare function petMedia(petId: number): Resource<PetMediaResponse>;
111
102
  export { petIndex as a, PetAbilityMediaResponse as c, PetMediaResponse as d, PetResponse as f, petAbilityMedia as i, PetAbilityResponse as l, petAbility as n, petMedia as o, petAbilityIndex as r, PetAbilityIndexResponse as s, pet as t, PetIndexResponse as u };
112
- //# sourceMappingURL=index-DxnUqJGs.d.ts.map
103
+ //# sourceMappingURL=index-DVacJ9ne.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Faction, KeyBase, NameIdKey, NullishNameId, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { Faction, KeyBase, NameId, NameIdKey, NullishNameId, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a reputation faction index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -47,11 +47,9 @@ interface ReputationTier extends KeyBase {
47
47
  id: number;
48
48
  name?: string;
49
49
  }
50
- interface Tier {
51
- id: number;
50
+ interface Tier extends NameId {
52
51
  max_value: number;
53
52
  min_value: number;
54
- name: string;
55
53
  }
56
54
  /**
57
55
  * Get a reputation faction by ID.
@@ -76,4 +74,4 @@ declare function reputationTiers(reputationTiersId: number): Resource<Reputation
76
74
  */
77
75
  declare function reputationTiersIndex(): Resource<ReputationTiersIndexResponse>;
78
76
  export { ReputationFactionIndexResponse as a, ReputationTiersResponse as c, reputationTiersIndex as i, reputationFactionIndex as n, ReputationFactionResponse as o, reputationTiers as r, ReputationTiersIndexResponse as s, reputationFaction as t };
79
- //# sourceMappingURL=index-CEF2RBas.d.ts.map
77
+ //# sourceMappingURL=index-DWXx_hQX.d.ts.map
@@ -1,4 +1,4 @@
1
- import { BaseSearchParameters, KeyBase, Locales, NameIdKey, NullishNameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
1
+ import { BaseSearchParameters, IdKey, KeyBase, Locales, NameIdKey, NullishNameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
2
2
  /**
3
3
  * The equipment slot types an item appearance can belong to.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -14,7 +14,7 @@ interface ItemAppearanceResponse extends ResponseBase {
14
14
  item_display_info_id: number;
15
15
  item_subclass?: NameIdKey;
16
16
  items?: Array<NullishNameIdKey>;
17
- media: ItemAppearanceMedia;
17
+ media: IdKey;
18
18
  slot?: ItemAppearanceSlot;
19
19
  }
20
20
  /**
@@ -45,7 +45,7 @@ interface ItemAppearanceSetIndexResponse extends ResponseBase {
45
45
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
46
46
  */
47
47
  interface ItemAppearanceSetResponse extends ResponseBase {
48
- appearances: Array<ItemAppearanceSummary>;
48
+ appearances: Array<IdKey>;
49
49
  id: number;
50
50
  set_name: string;
51
51
  }
@@ -61,10 +61,7 @@ interface ItemAppearanceSlotIndexResponse extends ResponseBase {
61
61
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
62
62
  */
63
63
  interface ItemAppearanceSlotResponse extends ResponseBase {
64
- appearances: Array<ItemAppearanceSummary>;
65
- }
66
- interface ItemAppearanceMedia extends KeyBase {
67
- id: number;
64
+ appearances: Array<IdKey>;
68
65
  }
69
66
  interface ItemAppearanceSearchResponseItem extends KeyBase {
70
67
  data: {
@@ -80,9 +77,6 @@ interface ItemAppearanceSlot {
80
77
  name: string;
81
78
  type: ItemAppearanceSlotType;
82
79
  }
83
- interface ItemAppearanceSummary extends KeyBase {
84
- id: number;
85
- }
86
80
  /**
87
81
  * Get an item appearance by ID.
88
82
  * @param appearanceId The item appearance ID.
@@ -118,4 +112,4 @@ declare function itemAppearanceSlot(slotType: ItemAppearanceSlotType): Resource<
118
112
  */
119
113
  declare function itemAppearanceSlotIndex(): Resource<ItemAppearanceSlotIndexResponse>;
120
114
  export { itemAppearanceSlot as a, ItemAppearanceSearchParameters as c, ItemAppearanceSetResponse as d, ItemAppearanceSlotIndexResponse as f, itemAppearanceSetIndex as i, ItemAppearanceSearchResponse as l, ItemAppearanceSlotType as m, itemAppearanceSearch as n, itemAppearanceSlotIndex as o, ItemAppearanceSlotResponse as p, itemAppearanceSet as r, ItemAppearanceResponse as s, itemAppearance as t, ItemAppearanceSetIndexResponse as u };
121
- //# sourceMappingURL=index-CcOUGucU.d.ts.map
115
+ //# sourceMappingURL=index-DXJEmC1r.d.ts.map
@@ -1,4 +1,4 @@
1
- import { KeyBase, MediaAsset, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { IdKey, MediaAsset, NameId, NameIdKey, NameType, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * Interface for a response from the conduit index endpoint.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -15,7 +15,7 @@ interface ConduitResponse extends ResponseBase {
15
15
  item: NameIdKey;
16
16
  name: string;
17
17
  ranks: Array<Rank>;
18
- socket_type: SocketType;
18
+ socket_type: NameType;
19
19
  }
20
20
  /**
21
21
  * Interface for a response from the covenant index endpoint.
@@ -39,7 +39,7 @@ interface CovenantResponse extends ResponseBase {
39
39
  class_abilities?: Array<ClassAbility>;
40
40
  description: string;
41
41
  id: number;
42
- media?: Media;
42
+ media?: IdKey;
43
43
  name: string;
44
44
  renown_rewards: Array<RenownReward>;
45
45
  signature_ability?: SignatureAbility;
@@ -77,9 +77,6 @@ interface ClassAbilitySpellTooltip {
77
77
  range?: string;
78
78
  spell: NameIdKey;
79
79
  }
80
- interface Media extends KeyBase {
81
- id: number;
82
- }
83
80
  interface Rank {
84
81
  id: number;
85
82
  spell_tooltip: SpellTooltip;
@@ -100,10 +97,6 @@ interface SignatureAbilitySpellTooltip {
100
97
  range?: string;
101
98
  spell: NameIdKey;
102
99
  }
103
- interface SocketType {
104
- name: string;
105
- type: string;
106
- }
107
100
  interface SpellTooltip {
108
101
  cast_time: string;
109
102
  description: string;
@@ -149,4 +142,4 @@ declare function soulbind(soulbindId: number): Resource<SoulbindResponse>;
149
142
  */
150
143
  declare function soulbindIndex(): Resource<SoulbindIndexResponse>;
151
144
  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 };
152
- //# sourceMappingURL=index-Zo-8eUYk.d.ts.map
145
+ //# sourceMappingURL=index-Dcoq8HHI.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Color, Href, KeyBase, NameId, NameIdKey, NonNeutralFactions, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { Color, Href, IdKey, KeyBase, NameId, NameIdKey, NonNeutralFactions, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a Mythic Keystone leaderboard index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -39,7 +39,7 @@ interface Member {
39
39
  type: NonNeutralFactions;
40
40
  };
41
41
  profile: Profile;
42
- specialization: Specialization;
42
+ specialization: IdKey;
43
43
  }
44
44
  interface MythicRating {
45
45
  color: Color;
@@ -52,9 +52,6 @@ interface Realm$1 extends KeyBase {
52
52
  id: number;
53
53
  slug: string;
54
54
  }
55
- interface Specialization extends KeyBase {
56
- id: number;
57
- }
58
55
  /**
59
56
  * Get a Mythic Keystone leaderboard by connected realm ID, dungeon ID, and period.
60
57
  * @param connectedRealmId The connected realm ID.
@@ -70,4 +67,4 @@ declare function mythicKeystoneLeaderboard(connectedRealmId: number, dungeonId:
70
67
  */
71
68
  declare function mythicKeystoneLeaderboardIndex(connectedRealmId: number): Resource<MythicKeystoneLeaderboardIndexResponse>;
72
69
  export { MythicKeystoneLeaderboardResponse as i, mythicKeystoneLeaderboardIndex as n, MythicKeystoneLeaderboardIndexResponse as r, mythicKeystoneLeaderboard as t };
73
- //# sourceMappingURL=index-mg4RaAL2.d.ts.map
70
+ //# sourceMappingURL=index-DkkhK4mL.d.ts.map