@blizzard-api/wow 4.2.3 → 4.2.4

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.
package/README.md CHANGED
@@ -67,8 +67,8 @@ import { createBlizzardApiClient } from '@blizzard-api/client';
67
67
  import { wow } from '@blizzard-api/wow';
68
68
 
69
69
  const client = await createBlizzardApiClient({
70
- key: 'environment.blizzardClientId',
71
- secret: 'environment.blizzardClientSecret',
70
+ key: process.env.BLIZZARD_CLIENT_ID!,
71
+ secret: process.env.BLIZZARD_CLIENT_SECRET!,
72
72
  origin: 'eu',
73
73
  });
74
74
 
@@ -43,7 +43,7 @@ interface PetMediaResponse extends ResponseBase {
43
43
  * The response for a pet.
44
44
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
45
45
  */
46
- interface PetResponse extends NameId, ResponseBase {
46
+ interface PetResponse extends NullishNameId, ResponseBase {
47
47
  abilities?: Array<Ability>;
48
48
  battle_pet_type: BattlePetType;
49
49
  creature: NameIdKey;
@@ -100,4 +100,4 @@ declare function petIndex(): Resource<PetIndexResponse>;
100
100
  */
101
101
  declare function petMedia(petId: number): Resource<PetMediaResponse>;
102
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 };
103
- //# sourceMappingURL=index-DVacJ9ne.d.ts.map
103
+ //# sourceMappingURL=index-Cg4CfIKc.d.ts.map
@@ -39,7 +39,7 @@ interface TalentResponse extends ResponseBase {
39
39
  };
40
40
  playable_specialization?: NameIdKey;
41
41
  rank_descriptions?: Array<RankDescription>;
42
- spell?: NameIdKey;
42
+ spell?: NullishNameIdKey;
43
43
  }
44
44
  /**
45
45
  * The response for a talent tree index.
@@ -223,4 +223,4 @@ declare function talentTreeIndex(): Resource<TalentTreeIndexResponse>;
223
223
  */
224
224
  declare function talentTreeNodes(talentTreeId: number): Resource<TalentTreeNodesResponse>;
225
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 };
226
- //# sourceMappingURL=index-DRLsvfW5.d.ts.map
226
+ //# sourceMappingURL=index-CisPLiDB.d.ts.map
package/dist/index.d.ts CHANGED
@@ -38,7 +38,7 @@ import { a as mythicKeystonePeriodIndex, c as MythicKeystoneDungeonIndexResponse
38
38
  import { i as MythicKeystoneLeaderboardResponse, n as mythicKeystoneLeaderboardIndex, r as MythicKeystoneLeaderboardIndexResponse, t as mythicKeystoneLeaderboard } from "./index-DkkhK4mL.js";
39
39
  import { n as KnownRaidSlugs, r as MythicRaidLeaderboardResponse, t as mythicRaidLeaderboard } from "./index-BA-S_4s8.js";
40
40
  import { a as NeighborhoodMapResponse, i as NeighborhoodMapIndexResponse, n as neighborhoodMap, o as NeighborhoodResponse, r as neighborhoodMaps, t as neighborhood } from "./index-DB-CW2qB.js";
41
- import { a as petIndex, c as PetAbilityMediaResponse, d as PetMediaResponse, f as PetResponse, i as petAbilityMedia, l as PetAbilityResponse, n as petAbility, o as petMedia, r as petAbilityIndex, s as PetAbilityIndexResponse, t as pet, u as PetIndexResponse } from "./index-DVacJ9ne.js";
41
+ import { a as petIndex, c as PetAbilityMediaResponse, d as PetMediaResponse, f as PetResponse, i as petAbilityMedia, l as PetAbilityResponse, n as petAbility, o as petMedia, r as petAbilityIndex, s as PetAbilityIndexResponse, t as pet, u as PetIndexResponse } from "./index-Cg4CfIKc.js";
42
42
  import { a as PlayableClassIndexResponse, c as PvpTalentSlotsResponse, i as pvpTalentSlots, n as playableClassIndex, o as PlayableClassMediaResponse, r as playableClassMedia, s as PlayableClassResponse, t as playableClass } from "./index-BHHO7RV3.js";
43
43
  import { i as PlayableRaceResponse, n as playableRaceIndex, r as PlayableRaceIndexResponse, t as playableRace } from "./index-C_OOvzJ3.js";
44
44
  import { a as PlayableSpecializationMediaResponse, i as PlayableSpecializationIndexResponse, n as playableSpecializationIndex, o as PlayableSpecializationResponse, r as playableSpecializationMedia, t as playableSpecialization } from "./index-Cev12iRl.js";
@@ -51,7 +51,7 @@ import { realm, realmIndex, realmSearch } from "./realm/index.js";
51
51
  import { i as RegionResponse, n as regionIndex, r as RegionIndexResponse, t as region } from "./index-DeQ5fmQn.js";
52
52
  import { a as ReputationFactionIndexResponse, c as ReputationTiersResponse, i as reputationTiersIndex, n as reputationFactionIndex, o as ReputationFactionResponse, r as reputationTiers, s as ReputationTiersIndexResponse, t as reputationFaction } from "./index-DWXx_hQX.js";
53
53
  import { a as SpellResponse, i as SpellMediaResponse, n as spellMedia, o as SpellSearchParameters, r as spellSearch, s as SpellSearchResponse, t as spell } from "./index-ECczWYo-.js";
54
- import { a as talentTree, c as PvpTalentIndexResponse, d as TalentResponse, f as TalentTreeIndexResponse, i as talentIndex, l as PvpTalentResponse, m as TalentTreeResponse, n as pvpTalentIndex, o as talentTreeIndex, p as TalentTreeNodesResponse, r as talent, s as talentTreeNodes, t as pvpTalent, u as TalentIndexResponse } from "./index-DRLsvfW5.js";
54
+ import { a as talentTree, c as PvpTalentIndexResponse, d as TalentResponse, f as TalentTreeIndexResponse, i as talentIndex, l as PvpTalentResponse, m as TalentTreeResponse, n as pvpTalentIndex, o as talentTreeIndex, p as TalentTreeNodesResponse, r as talent, s as talentTreeNodes, t as pvpTalent, u as TalentIndexResponse } from "./index-CisPLiDB.js";
55
55
  import { a as techTalentTreeIndex, c as TechTalentResponse, i as techTalentTree, l as TechTalentTreeIndexResponse, n as techTalentIndex, o as TechTalentIndexResponse, r as techTalentMedia, s as TechTalentMediaResponse, t as techTalent, u as TechTalentTreeResponse } from "./index-DFlcJK5P.js";
56
56
  import { i as TitleResponse, n as titleIndex, r as TitleIndexResponse, t as title } from "./index-CdpzHZdO.js";
57
57
  import { i as ToyResponse, n as toyIndex, r as ToyIndexResponse, t as toy } from "./index-Ho48pOyM.js";
@@ -1,2 +1,2 @@
1
- import { a as petIndex, i as petAbilityMedia, n as petAbility, o as petMedia, r as petAbilityIndex, t as pet } from "../index-DVacJ9ne.js";
1
+ import { a as petIndex, i as petAbilityMedia, n as petAbility, o as petMedia, r as petAbilityIndex, t as pet } from "../index-Cg4CfIKc.js";
2
2
  export { pet, petAbility, petAbilityIndex, petAbilityMedia, petIndex, petMedia };
@@ -1,2 +1,2 @@
1
- import { a as talentTree, i as talentIndex, n as pvpTalentIndex, o as talentTreeIndex, r as talent, s as talentTreeNodes, t as pvpTalent } from "../index-DRLsvfW5.js";
1
+ import { a as talentTree, i as talentIndex, n as pvpTalentIndex, o as talentTreeIndex, r as talent, s as talentTreeNodes, t as pvpTalent } from "../index-CisPLiDB.js";
2
2
  export { pvpTalent, pvpTalentIndex, talent, talentIndex, talentTree, talentTreeIndex, talentTreeNodes };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blizzard-api/wow",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
4
4
  "description": "A series of helpers to interact with the World of Warcraft Blizzard API",
5
5
  "keywords": [
6
6
  "api",