@blizzard-api/classic-wow 4.1.2 → 4.1.3

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.
@@ -1,2 +1,2 @@
1
- import { t as characterHunterPetsSummary } from "../index-C3DdXCOU.js";
1
+ import { t as characterHunterPetsSummary } from "../index-BRNFC-Aq.js";
2
2
  export { characterHunterPetsSummary };
@@ -1,2 +1,2 @@
1
- import { t as characterSpecializationsSummary } from "../index-DCIoQ85A.js";
1
+ import { t as characterSpecializationsSummary } from "../index-CzEa7VGs.js";
2
2
  export { characterSpecializationsSummary };
@@ -1,2 +1,2 @@
1
- import { a as creatureFamilyMedia, c as creatureTypeIndex, i as creatureFamilyIndex, n as creatureDisplayMedia, o as creatureSearch, r as creatureFamily, s as creatureType, t as creature } from "../index-CN-9LndK.js";
1
+ import { a as creatureFamilyMedia, c as creatureTypeIndex, i as creatureFamilyIndex, n as creatureDisplayMedia, o as creatureSearch, r as creatureFamily, s as creatureType, t as creature } from "../index-piwJjUoy.js";
2
2
  export { creature, creatureDisplayMedia, creatureFamily, creatureFamilyIndex, creatureFamilyMedia, creatureSearch, creatureType, creatureTypeIndex };
@@ -1,11 +1,11 @@
1
- import { BlizzardNamespaces, Character, KeyBase, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { BlizzardNamespaces, Character, KeyBase, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  //#region src/character-hunter-pets/types.d.ts
3
3
  interface CharacterHunterPetsSummaryResponse extends ResponseBase {
4
4
  character: Character;
5
5
  hunter_pets: Array<HunterPet>;
6
6
  }
7
7
  interface HunterPet {
8
- creature: NameIdKey;
8
+ creature: NullishNameIdKey;
9
9
  creature_display: KeyBase & {
10
10
  id: number;
11
11
  };
@@ -27,4 +27,4 @@ interface HunterPet {
27
27
  declare function characterHunterPetsSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterHunterPetsSummaryResponse>;
28
28
  //#endregion
29
29
  export { CharacterHunterPetsSummaryResponse as n, characterHunterPetsSummary as t };
30
- //# sourceMappingURL=index-C3DdXCOU.d.ts.map
30
+ //# sourceMappingURL=index-BRNFC-Aq.d.ts.map
@@ -1,11 +1,11 @@
1
- import { BlizzardNamespaces, GenderName, Href, KeyBase, MediaAsset, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { BlizzardNamespaces, GenderName, Href, KeyBase, MediaAsset, NameIdKey, NullishNameId, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  //#region src/playable-class/types.d.ts
3
3
  /**
4
4
  * The response for a playable class index.
5
5
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
6
6
  */
7
7
  interface PlayableClassIndexResponse extends ResponseBase {
8
- classes: Array<NameIdKey>;
8
+ classes: Array<NullishNameIdKey>;
9
9
  }
10
10
  /**
11
11
  * The response for playable class media.
@@ -19,11 +19,11 @@ interface PlayableClassMediaResponse extends ResponseBase {
19
19
  * The response for a playable class.
20
20
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft-classic/game-data-apis}
21
21
  */
22
- interface PlayableClassResponse extends NameId, ResponseBase {
23
- additional_power_types?: Array<NameIdKey>;
22
+ interface PlayableClassResponse extends NullishNameId, ResponseBase {
23
+ additional_power_types?: Array<NullishNameIdKey>;
24
24
  gender_name: GenderName;
25
25
  media: Media;
26
- playable_races: Array<NameIdKey>;
26
+ playable_races: Array<NullishNameIdKey>;
27
27
  power_type: NameIdKey;
28
28
  pvp_talent_slots: Href;
29
29
  specializations?: Array<NameIdKey>;
@@ -55,4 +55,4 @@ declare function playableClassIndex(namespace: Extract<BlizzardNamespaces, 'stat
55
55
  declare function playableClassMedia(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, playableClassId: number): Resource<PlayableClassMediaResponse>;
56
56
  //#endregion
57
57
  export { PlayableClassMediaResponse as a, PlayableClassIndexResponse as i, playableClassIndex as n, PlayableClassResponse as o, playableClassMedia as r, playableClass as t };
58
- //# sourceMappingURL=index-BlQvrHvE.d.ts.map
58
+ //# sourceMappingURL=index-CWcrm3hr.d.ts.map
@@ -1,4 +1,4 @@
1
- import { BlizzardNamespaces, Character, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { BlizzardNamespaces, Character, NameId, NameIdKey, NullishNameId, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  //#region src/character-specializations/types.d.ts
3
3
  interface CharacterSpecializationsSummaryResponse extends ResponseBase {
4
4
  active_specialization?: NameIdKey;
@@ -24,10 +24,10 @@ interface SpecializationGroupItem {
24
24
  interface SpellTooltip {
25
25
  cast_time: string;
26
26
  cooldown?: string;
27
- description: string;
27
+ description: null | string;
28
28
  power_cost?: null | string;
29
29
  range?: string;
30
- spell: NameId;
30
+ spell: NullishNameId;
31
31
  }
32
32
  interface TalentElement {
33
33
  spell_tooltip: SpellTooltip;
@@ -47,4 +47,4 @@ interface TalentElement {
47
47
  declare function characterSpecializationsSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterSpecializationsSummaryResponse>;
48
48
  //#endregion
49
49
  export { CharacterSpecializationsSummaryResponse as n, characterSpecializationsSummary as t };
50
- //# sourceMappingURL=index-DCIoQ85A.d.ts.map
50
+ //# sourceMappingURL=index-CzEa7VGs.d.ts.map
@@ -1,23 +1,23 @@
1
- import { BlizzardNamespaces, Faction, GenderName, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { BlizzardNamespaces, Faction, GenderName, NullishNameId, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  //#region src/playable-race/types.d.ts
3
3
  /**
4
4
  * The playable race index response.
5
5
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
6
6
  */
7
7
  interface PlayableRaceIndexResponse extends ResponseBase {
8
- races: Array<NameIdKey>;
8
+ races: Array<NullishNameIdKey>;
9
9
  }
10
10
  /**
11
11
  * The playable race response.
12
12
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
13
13
  */
14
- interface PlayableRaceResponse extends NameId, ResponseBase {
14
+ interface PlayableRaceResponse extends NullishNameId, ResponseBase {
15
15
  faction: Faction;
16
16
  gender_name: GenderName;
17
17
  is_allied_race: boolean;
18
18
  is_selectable: boolean;
19
- playable_classes: Array<NameIdKey>;
20
- racial_spells: Array<NameIdKey>;
19
+ playable_classes: Array<NullishNameIdKey>;
20
+ racial_spells: Array<NullishNameIdKey>;
21
21
  }
22
22
  //#endregion
23
23
  //#region src/playable-race/index.d.ts
@@ -36,4 +36,4 @@ declare function playableRace(namespace: Extract<BlizzardNamespaces, 'static-cla
36
36
  declare function playableRaceIndex(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>): Resource<PlayableRaceIndexResponse>;
37
37
  //#endregion
38
38
  export { PlayableRaceResponse as i, playableRaceIndex as n, PlayableRaceIndexResponse as r, playableRace as t };
39
- //# sourceMappingURL=index-DX3qGBKu.d.ts.map
39
+ //# sourceMappingURL=index-DZVCvkEt.d.ts.map
@@ -1,11 +1,11 @@
1
- import { BlizzardNamespaces, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { BlizzardNamespaces, NameId, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  //#region src/power-type/types.d.ts
3
3
  /**
4
4
  * The response for a power type index.
5
5
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
6
6
  */
7
7
  interface PowerTypeIndexResponse extends ResponseBase {
8
- power_types: Array<NameIdKey>;
8
+ power_types: Array<NullishNameIdKey>;
9
9
  }
10
10
  /**
11
11
  * The response for a power type.
@@ -29,4 +29,4 @@ declare function powerType(namespace: Extract<BlizzardNamespaces, 'static-classi
29
29
  declare function powerTypeIndex(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>): Resource<PowerTypeIndexResponse>;
30
30
  //#endregion
31
31
  export { PowerTypeResponse as i, powerTypeIndex as n, PowerTypeIndexResponse as r, powerType as t };
32
- //# sourceMappingURL=index-N_48k0Vf.d.ts.map
32
+ //# sourceMappingURL=index-Dd0y1_mP.d.ts.map
@@ -1,11 +1,11 @@
1
- import { BaseSearchParameters, BlizzardNamespaces, Color, KeyBase, Locales, MediaAsset, NameId, NameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
1
+ import { BaseSearchParameters, BlizzardNamespaces, Color, KeyBase, Locales, MediaAsset, NameId, NameIdKey, NullishNameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
2
2
  //#region src/item/types.d.ts
3
3
  /**
4
4
  * The response for an item class index.
5
5
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
6
6
  */
7
7
  interface ItemClassIndexResponse extends ResponseBase {
8
- item_classes: Array<NameIdKey>;
8
+ item_classes: Array<NullishNameIdKey>;
9
9
  }
10
10
  /**
11
11
  * The response for an item class.
@@ -178,7 +178,7 @@ interface PreviewItem {
178
178
  shield_block?: Armor;
179
179
  spells?: Array<Spell>;
180
180
  stats?: Array<Stat>;
181
- unique_equipped?: 'Unique';
181
+ unique_equipped?: 'Unique' | (string & {});
182
182
  weapon?: Weapon;
183
183
  }
184
184
  interface Recipe {
@@ -286,4 +286,4 @@ declare function itemSearch(namespace: Extract<BlizzardNamespaces, 'static-class
286
286
  declare function itemSubclass(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, itemClassId: number, itemSubclassId: number): Resource<ItemSubclassResponse>;
287
287
  //#endregion
288
288
  export { itemSearch as a, ItemClassResponse as c, ItemSearchParameters as d, ItemSearchResponse as f, itemMedia as i, ItemMediaResponse as l, itemClass as n, itemSubclass as o, ItemSubclassResponse as p, itemClassIndex as r, ItemClassIndexResponse as s, item as t, ItemResponse as u };
289
- //# sourceMappingURL=index-D0O_RzQb.d.ts.map
289
+ //# sourceMappingURL=index-Didf1LeM.d.ts.map
@@ -1,4 +1,4 @@
1
- import { BaseSearchParameters, BlizzardNamespaces, KeyBase, Locales, MediaAsset, NameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
1
+ import { BaseSearchParameters, BlizzardNamespaces, KeyBase, Locales, MediaAsset, NameIdKey, NullishNameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
2
2
  //#region src/creature/types.d.ts
3
3
  /**
4
4
  * The response for creature display media.
@@ -13,7 +13,7 @@ interface CreatureDisplayMediaResponse extends ResponseBase {
13
13
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
14
14
  */
15
15
  interface CreatureFamilyIndexResponse extends ResponseBase {
16
- creature_families: Array<NameIdKey>;
16
+ creature_families: Array<NullishNameIdKey>;
17
17
  }
18
18
  /**
19
19
  * The response for creature family media.
@@ -163,4 +163,4 @@ declare function creatureType(namespace: Extract<BlizzardNamespaces, 'static-cla
163
163
  declare function creatureTypeIndex(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>): Resource<CreatureTypeIndexResponse>;
164
164
  //#endregion
165
165
  export { CreatureTypeResponse as _, creatureFamilyMedia as a, creatureTypeIndex as c, CreatureFamilyMediaResponse as d, CreatureFamilyResponse as f, CreatureTypeIndexResponse as g, CreatureSearchResponse as h, creatureFamilyIndex as i, CreatureDisplayMediaResponse as l, CreatureSearchParameters as m, creatureDisplayMedia as n, creatureSearch as o, CreatureResponse as p, creatureFamily as r, creatureType as s, creature as t, CreatureFamilyIndexResponse as u };
166
- //# sourceMappingURL=index-CN-9LndK.d.ts.map
166
+ //# sourceMappingURL=index-piwJjUoy.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,21 +1,21 @@
1
1
  import { i as AuctionsResponse, n as auctions, r as AuctionHouseIndexResponse, t as auctionHouseIndex } from "./index-BFpmtbZU.js";
2
2
  import { a as Criteria, i as CharacterAchievementsSummaryResponse, n as characterAchievementsSummary, r as CharacterAchievementStatisticsResponse, t as characterAchievementStatistics } from "./index-CBflGiiF.js";
3
3
  import { n as CharacterEquipmentSummaryResponse, t as characterEquipmentSummary } from "./index-BO-EockW.js";
4
- import { n as CharacterHunterPetsSummaryResponse, t as characterHunterPetsSummary } from "./index-C3DdXCOU.js";
4
+ import { n as CharacterHunterPetsSummaryResponse, t as characterHunterPetsSummary } from "./index-BRNFC-Aq.js";
5
5
  import { n as CharacterMediaSummaryResponse, t as characterMediaSummary } from "./index-Caav35xE.js";
6
6
  import { i as CharacterProfileStatusResponse, n as characterProfileSummary, r as CharacterProfileSummaryResponse, t as characterProfileStatus } from "./index-DQHRdkfv.js";
7
- import { n as CharacterSpecializationsSummaryResponse, t as characterSpecializationsSummary } from "./index-DCIoQ85A.js";
7
+ import { n as CharacterSpecializationsSummaryResponse, t as characterSpecializationsSummary } from "./index-CzEa7VGs.js";
8
8
  import { n as CharacterStatisticsSummaryResponse, t as characterStatisticsSummary } from "./index-C6_j4Esk.js";
9
9
  import { a as RealmSearchResponse, i as RealmSearchParameters, n as RealmLocales, o as RealmTimezone, r as RealmResponse, s as RealmTypeCapitalized, t as RealmIndexResponse } from "./types-Bq1HfqJ9.js";
10
10
  import { a as ConnectedRealmResponse, i as ConnectedRealmIndexResponse, n as connectedRealmIndex, o as ConnectedRealmSearchParameters, r as connectedRealmSearch, s as ConnectedRealmSearchResponse, t as connectedRealm } from "./index-DXDg6Aem.js";
11
- import { _ as CreatureTypeResponse, a as creatureFamilyMedia, c as creatureTypeIndex, d as CreatureFamilyMediaResponse, f as CreatureFamilyResponse, g as CreatureTypeIndexResponse, h as CreatureSearchResponse, i as creatureFamilyIndex, l as CreatureDisplayMediaResponse, m as CreatureSearchParameters, n as creatureDisplayMedia, o as creatureSearch, p as CreatureResponse, r as creatureFamily, s as creatureType, t as creature, u as CreatureFamilyIndexResponse } from "./index-CN-9LndK.js";
11
+ import { _ as CreatureTypeResponse, a as creatureFamilyMedia, c as creatureTypeIndex, d as CreatureFamilyMediaResponse, f as CreatureFamilyResponse, g as CreatureTypeIndexResponse, h as CreatureSearchResponse, i as creatureFamilyIndex, l as CreatureDisplayMediaResponse, m as CreatureSearchParameters, n as creatureDisplayMedia, o as creatureSearch, p as CreatureResponse, r as creatureFamily, s as creatureType, t as creature, u as CreatureFamilyIndexResponse } from "./index-piwJjUoy.js";
12
12
  import { a as GuildCrestComponentsIndexResponse, i as GuildCrestBorderEmblemResponse, n as guildCrestComponentsIndex, r as guildCrestEmblem, t as guildCrestBorder } from "./index-BssCYm0w.js";
13
13
  import { a as GuildAchievementsClassicEraResponse, c as GuildResponse, i as guildRoster, l as GuildRosterResponse, n as guildAchievements, o as GuildAchievementsResponse, r as guildActivity, s as GuildActivityResponse, t as guild } from "./index-Vjr16k7v.js";
14
- import { a as itemSearch, c as ItemClassResponse, d as ItemSearchParameters, f as ItemSearchResponse, i as itemMedia, l as ItemMediaResponse, n as itemClass, o as itemSubclass, p as ItemSubclassResponse, r as itemClassIndex, s as ItemClassIndexResponse, t as item, u as ItemResponse } from "./index-D0O_RzQb.js";
14
+ import { a as itemSearch, c as ItemClassResponse, d as ItemSearchParameters, f as ItemSearchResponse, i as itemMedia, l as ItemMediaResponse, n as itemClass, o as itemSubclass, p as ItemSubclassResponse, r as itemClassIndex, s as ItemClassIndexResponse, t as item, u as ItemResponse } from "./index-Didf1LeM.js";
15
15
  import { n as MediaSearchParameters, r as MediaSearchResponse, t as mediaSearch } from "./index-RXB4hyX6.js";
16
- import { a as PlayableClassMediaResponse, i as PlayableClassIndexResponse, n as playableClassIndex, o as PlayableClassResponse, r as playableClassMedia, t as playableClass } from "./index-BlQvrHvE.js";
17
- import { i as PlayableRaceResponse, n as playableRaceIndex, r as PlayableRaceIndexResponse, t as playableRace } from "./index-DX3qGBKu.js";
18
- import { i as PowerTypeResponse, n as powerTypeIndex, r as PowerTypeIndexResponse, t as powerType } from "./index-N_48k0Vf.js";
16
+ import { a as PlayableClassMediaResponse, i as PlayableClassIndexResponse, n as playableClassIndex, o as PlayableClassResponse, r as playableClassMedia, t as playableClass } from "./index-CWcrm3hr.js";
17
+ import { i as PlayableRaceResponse, n as playableRaceIndex, r as PlayableRaceIndexResponse, t as playableRace } from "./index-DZVCvkEt.js";
18
+ import { i as PowerTypeResponse, n as powerTypeIndex, r as PowerTypeIndexResponse, t as powerType } from "./index-Dd0y1_mP.js";
19
19
  import { a as pvpRegionalSeasonIndex, c as pvpSeasonIndex, i as pvpRegionalSeason, l as PvpSeasonIndexResponse, n as pvpLeaderboardIndex, o as pvpRewardsIndex, r as pvpRegionIndex, s as pvpSeason, t as pvpLeaderboard, u as PvpSeasonResponse } from "./index-CfxU97nS.js";
20
20
  import { realm, realmIndex, realmSearch } from "./realm/index.js";
21
21
  import { i as RegionResponse, n as regionIndex, r as RegionIndexResponse, t as region } from "./index-hrWZ9nmx.js";
@@ -1,2 +1,2 @@
1
- import { a as itemSearch, i as itemMedia, n as itemClass, o as itemSubclass, r as itemClassIndex, t as item } from "../index-D0O_RzQb.js";
1
+ import { a as itemSearch, i as itemMedia, n as itemClass, o as itemSubclass, r as itemClassIndex, t as item } from "../index-Didf1LeM.js";
2
2
  export { item, itemClass, itemClassIndex, itemMedia, itemSearch, itemSubclass };
@@ -1,2 +1,2 @@
1
- import { n as playableClassIndex, r as playableClassMedia, t as playableClass } from "../index-BlQvrHvE.js";
1
+ import { n as playableClassIndex, r as playableClassMedia, t as playableClass } from "../index-CWcrm3hr.js";
2
2
  export { playableClass, playableClassIndex, playableClassMedia };
@@ -1,2 +1,2 @@
1
- import { n as playableRaceIndex, t as playableRace } from "../index-DX3qGBKu.js";
1
+ import { n as playableRaceIndex, t as playableRace } from "../index-DZVCvkEt.js";
2
2
  export { playableRace, playableRaceIndex };
@@ -1,2 +1,2 @@
1
- import { n as powerTypeIndex, t as powerType } from "../index-N_48k0Vf.js";
1
+ import { n as powerTypeIndex, t as powerType } from "../index-Dd0y1_mP.js";
2
2
  export { powerType, powerTypeIndex };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blizzard-api/classic-wow",
3
- "version": "4.1.2",
3
+ "version": "4.1.3",
4
4
  "description": "A series of helpers to interact with the World of Warcraft Classic Blizzard API",
5
5
  "keywords": [
6
6
  "api",
@@ -41,10 +41,10 @@
41
41
  },
42
42
  "dependencies": {},
43
43
  "devDependencies": {
44
- "@blizzard-api/core": "4.1.2"
44
+ "@blizzard-api/core": "4.1.3"
45
45
  },
46
46
  "peerDependencies": {
47
- "@blizzard-api/core": "4.1.2"
47
+ "@blizzard-api/core": "4.1.3"
48
48
  },
49
49
  "engines": {
50
50
  "node": "^22.13.0 || ^24 || ^26"