@blizzard-api/classic-wow 4.1.0 → 4.1.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.
@@ -0,0 +1,2 @@
1
+ import { t as characterSpecializationsSummary } from "../index-DCIoQ85A.js";
2
+ export { characterSpecializationsSummary };
@@ -1,5 +1,5 @@
1
1
  import { wowCharacterBasePath } from "@blizzard-api/core";
2
- //#region src/character-specialization/index.ts
2
+ //#region src/character-specializations/index.ts
3
3
  /**
4
4
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
5
5
  * @param realmSlug The slug of the realm.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/character-specializations/index.ts"],"sourcesContent":["import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { wowCharacterBasePath } from '@blizzard-api/core';\nimport type { CharacterSpecializationsSummaryResponse } from './types';\n\n/**\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of a character's specializations.\n */\nexport function characterSpecializationsSummary(\n namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>,\n realmSlug: string,\n characterName: string,\n): Resource<CharacterSpecializationsSummaryResponse> {\n return {\n namespace,\n path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/specializations`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,gCACd,WACA,WACA,eACmD;CACnD,OAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;CAC9D;AACF"}
@@ -1,2 +1,2 @@
1
- import { n as connectedRealmIndex, r as connectedRealmSearch, t as connectedRealm } from "../index-CDBSDqLP.js";
1
+ import { n as connectedRealmIndex, r as connectedRealmSearch, t as connectedRealm } from "../index-DXDg6Aem.js";
2
2
  export { connectedRealm, connectedRealmIndex, connectedRealmSearch };
@@ -1,5 +1,5 @@
1
1
  import { BlizzardNamespaces, Character, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
- //#region src/character-specialization/types.d.ts
2
+ //#region src/character-specializations/types.d.ts
3
3
  interface CharacterSpecializationsSummaryResponse extends ResponseBase {
4
4
  active_specialization?: NameIdKey;
5
5
  character: Character;
@@ -37,7 +37,7 @@ interface TalentElement {
37
37
  talent_rank?: number;
38
38
  }
39
39
  //#endregion
40
- //#region src/character-specialization/index.d.ts
40
+ //#region src/character-specializations/index.d.ts
41
41
  /**
42
42
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
43
43
  * @param realmSlug The slug of the realm.
@@ -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-Cdyf19Zy.d.ts.map
50
+ //# sourceMappingURL=index-DCIoQ85A.d.ts.map
@@ -1,4 +1,4 @@
1
- import { c as RealmTypeCapitalized, r as RealmLocales, s as RealmTimezone, t as RealmCategory } from "./types-5Mwrkm82.js";
1
+ import { n as RealmLocales, o as RealmTimezone, s as RealmTypeCapitalized } from "./types-Bq1HfqJ9.js";
2
2
  import { BaseSearchParameters, BlizzardNamespaces, Href, KeyBase, Locales, NameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
3
3
  //#region src/connected-realm/types.d.ts
4
4
  /**
@@ -55,7 +55,7 @@ interface ConnectedRealmSearchResponseItem extends KeyBase {
55
55
  };
56
56
  }
57
57
  interface Realm$1 {
58
- category: RealmCategory;
58
+ category: string;
59
59
  connected_realm: Href;
60
60
  id: number;
61
61
  is_tournament: boolean;
@@ -124,4 +124,4 @@ declare function connectedRealmIndex(namespace: Extract<BlizzardNamespaces, 'dyn
124
124
  declare function connectedRealmSearch(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>, options: ConnectedRealmSearchParameters): Resource<ConnectedRealmSearchResponse, ConnectedRealmSearchParameters>;
125
125
  //#endregion
126
126
  export { ConnectedRealmResponse as a, ConnectedRealmIndexResponse as i, connectedRealmIndex as n, ConnectedRealmSearchParameters as o, connectedRealmSearch as r, ConnectedRealmSearchResponse as s, connectedRealm as t };
127
- //# sourceMappingURL=index-CDBSDqLP.d.ts.map
127
+ //# sourceMappingURL=index-DXDg6Aem.d.ts.map
package/dist/index.d.ts CHANGED
@@ -4,10 +4,10 @@ import { n as CharacterEquipmentSummaryResponse, t as characterEquipmentSummary
4
4
  import { n as CharacterHunterPetsSummaryResponse, t as characterHunterPetsSummary } from "./index-C3DdXCOU.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-Cdyf19Zy.js";
7
+ import { n as CharacterSpecializationsSummaryResponse, t as characterSpecializationsSummary } from "./index-DCIoQ85A.js";
8
8
  import { n as CharacterStatisticsSummaryResponse, t as characterStatisticsSummary } from "./index-C6_j4Esk.js";
9
- import { a as RealmSearchParameters, c as RealmTypeCapitalized, i as RealmResponse, n as RealmIndexResponse, o as RealmSearchResponse, r as RealmLocales, s as RealmTimezone, t as RealmCategory } from "./types-5Mwrkm82.js";
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-CDBSDqLP.js";
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
+ 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
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";
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";
@@ -79,5 +79,5 @@ declare const classicWow: {
79
79
  regionIndex: typeof regionIndex;
80
80
  };
81
81
  //#endregion
82
- export { type AuctionHouseIndexResponse, type AuctionsResponse, type CharacterAchievementStatisticsResponse, type CharacterAchievementsSummaryResponse, type CharacterEquipmentSummaryResponse, type CharacterHunterPetsSummaryResponse, type CharacterMediaSummaryResponse, type CharacterProfileStatusResponse, type CharacterProfileSummaryResponse, type CharacterSpecializationsSummaryResponse, type CharacterStatisticsSummaryResponse, type ConnectedRealmIndexResponse, type ConnectedRealmResponse, type ConnectedRealmSearchParameters, type ConnectedRealmSearchResponse, type CreatureDisplayMediaResponse, type CreatureFamilyIndexResponse, type CreatureFamilyMediaResponse, type CreatureFamilyResponse, type CreatureResponse, type CreatureSearchParameters, type CreatureSearchResponse, type CreatureTypeIndexResponse, type CreatureTypeResponse, type Criteria, type GuildAchievementsClassicEraResponse, type GuildAchievementsResponse, type GuildActivityResponse, type GuildCrestBorderEmblemResponse, type GuildCrestComponentsIndexResponse, type GuildResponse, type GuildRosterResponse, type ItemClassIndexResponse, type ItemClassResponse, type ItemMediaResponse, type ItemResponse, type ItemSearchParameters, type ItemSearchResponse, type ItemSubclassResponse, type MediaSearchParameters, type MediaSearchResponse, type PlayableClassIndexResponse, type PlayableClassMediaResponse, type PlayableClassResponse, type PlayableRaceIndexResponse, type PlayableRaceResponse, type PowerTypeIndexResponse, type PowerTypeResponse, type PvpSeasonIndexResponse, type PvpSeasonResponse, type RealmCategory, type RealmIndexResponse, type RealmLocales, type RealmResponse, type RealmSearchParameters, type RealmSearchResponse, type RealmTimezone, type RealmTypeCapitalized, type RegionIndexResponse, type RegionResponse, auctionHouseIndex, auctions, characterAchievementStatistics, characterAchievementsSummary, characterEquipmentSummary, characterHunterPetsSummary, characterMediaSummary, characterProfileStatus, characterProfileSummary, characterSpecializationsSummary, characterStatisticsSummary, classicWow, classicWow as default, connectedRealm, connectedRealmIndex, connectedRealmSearch, creature, creatureDisplayMedia, creatureFamily, creatureFamilyIndex, creatureFamilyMedia, creatureSearch, creatureType, creatureTypeIndex, guild, guildAchievements, guildActivity, guildCrestBorder, guildCrestComponentsIndex, guildCrestEmblem, guildRoster, item, itemClass, itemClassIndex, itemMedia, itemSearch, itemSubclass, mediaSearch, playableClass, playableClassIndex, playableClassMedia, playableRace, playableRaceIndex, powerType, powerTypeIndex, pvpLeaderboard, pvpLeaderboardIndex, pvpRegionIndex, pvpRegionalSeason, pvpRegionalSeasonIndex, pvpRewardsIndex, pvpSeason, pvpSeasonIndex, realm, realmIndex, realmSearch, region, regionIndex };
82
+ export { type AuctionHouseIndexResponse, type AuctionsResponse, type CharacterAchievementStatisticsResponse, type CharacterAchievementsSummaryResponse, type CharacterEquipmentSummaryResponse, type CharacterHunterPetsSummaryResponse, type CharacterMediaSummaryResponse, type CharacterProfileStatusResponse, type CharacterProfileSummaryResponse, type CharacterSpecializationsSummaryResponse, type CharacterStatisticsSummaryResponse, type ConnectedRealmIndexResponse, type ConnectedRealmResponse, type ConnectedRealmSearchParameters, type ConnectedRealmSearchResponse, type CreatureDisplayMediaResponse, type CreatureFamilyIndexResponse, type CreatureFamilyMediaResponse, type CreatureFamilyResponse, type CreatureResponse, type CreatureSearchParameters, type CreatureSearchResponse, type CreatureTypeIndexResponse, type CreatureTypeResponse, type Criteria, type GuildAchievementsClassicEraResponse, type GuildAchievementsResponse, type GuildActivityResponse, type GuildCrestBorderEmblemResponse, type GuildCrestComponentsIndexResponse, type GuildResponse, type GuildRosterResponse, type ItemClassIndexResponse, type ItemClassResponse, type ItemMediaResponse, type ItemResponse, type ItemSearchParameters, type ItemSearchResponse, type ItemSubclassResponse, type MediaSearchParameters, type MediaSearchResponse, type PlayableClassIndexResponse, type PlayableClassMediaResponse, type PlayableClassResponse, type PlayableRaceIndexResponse, type PlayableRaceResponse, type PowerTypeIndexResponse, type PowerTypeResponse, type PvpSeasonIndexResponse, type PvpSeasonResponse, type RealmIndexResponse, type RealmLocales, type RealmResponse, type RealmSearchParameters, type RealmSearchResponse, type RealmTimezone, type RealmTypeCapitalized, type RegionIndexResponse, type RegionResponse, auctionHouseIndex, auctions, characterAchievementStatistics, characterAchievementsSummary, characterEquipmentSummary, characterHunterPetsSummary, characterMediaSummary, characterProfileStatus, characterProfileSummary, characterSpecializationsSummary, characterStatisticsSummary, classicWow, classicWow as default, connectedRealm, connectedRealmIndex, connectedRealmSearch, creature, creatureDisplayMedia, creatureFamily, creatureFamilyIndex, creatureFamilyMedia, creatureSearch, creatureType, creatureTypeIndex, guild, guildAchievements, guildActivity, guildCrestBorder, guildCrestComponentsIndex, guildCrestEmblem, guildRoster, item, itemClass, itemClassIndex, itemMedia, itemSearch, itemSubclass, mediaSearch, playableClass, playableClassIndex, playableClassMedia, playableRace, playableRaceIndex, powerType, powerTypeIndex, pvpLeaderboard, pvpLeaderboardIndex, pvpRegionIndex, pvpRegionalSeason, pvpRegionalSeasonIndex, pvpRewardsIndex, pvpSeason, pvpSeasonIndex, realm, realmIndex, realmSearch, region, regionIndex };
83
83
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { characterEquipmentSummary } from "./character-equipment/index.js";
4
4
  import { characterHunterPetsSummary } from "./character-hunter-pets/index.js";
5
5
  import { characterMediaSummary } from "./character-media/index.js";
6
6
  import { characterProfileStatus, characterProfileSummary } from "./character-profile/index.js";
7
- import { characterSpecializationsSummary } from "./character-specialization/index.js";
7
+ import { characterSpecializationsSummary } from "./character-specializations/index.js";
8
8
  import { characterStatisticsSummary } from "./character-statistics/index.js";
9
9
  import { connectedRealm, connectedRealmIndex, connectedRealmSearch } from "./connected-realm/index.js";
10
10
  import { creature, creatureDisplayMedia, creatureFamily, creatureFamilyIndex, creatureFamilyMedia, creatureSearch, creatureType, creatureTypeIndex } from "./creature/index.js";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { auctionHouseIndex, auctions } from './auction-house/index';\r\nimport { characterAchievementsSummary, characterAchievementStatistics } from './character-achievements/index';\r\nimport { characterEquipmentSummary } from './character-equipment/index';\r\nimport { characterHunterPetsSummary } from './character-hunter-pets/index';\r\nimport { characterMediaSummary } from './character-media/index';\r\nimport { characterProfileStatus, characterProfileSummary } from './character-profile/index';\r\nimport { characterSpecializationsSummary } from './character-specialization/index';\r\nimport { characterStatisticsSummary } from './character-statistics/index';\r\nimport { connectedRealm, connectedRealmIndex, connectedRealmSearch } from './connected-realm/index';\r\nimport {\r\n creature,\r\n creatureDisplayMedia,\r\n creatureFamily,\r\n creatureFamilyIndex,\r\n creatureFamilyMedia,\r\n creatureSearch,\r\n creatureType,\r\n creatureTypeIndex,\r\n} from './creature/index';\r\nimport { guildCrestBorder, guildCrestComponentsIndex, guildCrestEmblem } from './guild-crest/index';\r\nimport { guild, guildAchievements, guildActivity, guildRoster } from './guild/index';\r\nimport { item, itemClass, itemClassIndex, itemMedia, itemSearch, itemSubclass } from './item/index';\r\nimport { mediaSearch } from './media-search/index';\r\nimport { playableClass, playableClassIndex, playableClassMedia } from './playable-class/index';\r\nimport { playableRace, playableRaceIndex } from './playable-race/index';\r\nimport { powerType, powerTypeIndex } from './power-type/index';\r\nimport {\r\n pvpLeaderboard,\r\n pvpLeaderboardIndex,\r\n pvpRegionalSeason,\r\n pvpRegionalSeasonIndex,\r\n pvpRegionIndex,\r\n pvpRewardsIndex,\r\n pvpSeason,\r\n pvpSeasonIndex,\r\n} from './pvp-season/index';\r\nimport { realm, realmIndex, realmSearch } from './realm/index';\r\nimport { region, regionIndex } from './region/index';\r\n\r\nconst classicWow = {\r\n //Auction House\r\n auctionHouseIndex,\r\n auctions,\r\n //Character Achievements\r\n characterAchievementsSummary,\r\n characterAchievementStatistics,\r\n //Character Equipment\r\n characterEquipmentSummary,\r\n //Character Hunter Pets\r\n characterHunterPetsSummary,\r\n //Character Media\r\n characterMediaSummary,\r\n //Character Profile\r\n characterProfileStatus,\r\n characterProfileSummary,\r\n //Character Specialization\r\n characterSpecializationsSummary,\r\n //Character Statistics\r\n characterStatisticsSummary,\r\n //Connected Realm\r\n connectedRealm,\r\n connectedRealmIndex,\r\n connectedRealmSearch,\r\n //Creature\r\n creature,\r\n creatureDisplayMedia,\r\n creatureFamily,\r\n creatureFamilyIndex,\r\n creatureFamilyMedia,\r\n creatureSearch,\r\n creatureType,\r\n creatureTypeIndex,\r\n //Guild\r\n guild,\r\n guildAchievements,\r\n guildActivity,\r\n guildRoster,\r\n //Guild Crest\r\n guildCrestBorder,\r\n guildCrestComponentsIndex,\r\n guildCrestEmblem,\r\n //Item\r\n item,\r\n itemClass,\r\n itemClassIndex,\r\n itemMedia,\r\n itemSearch,\r\n itemSubclass,\r\n //Media Search\r\n mediaSearch,\r\n //Playable Class\r\n playableClass,\r\n playableClassIndex,\r\n playableClassMedia,\r\n //Playable Race\r\n playableRace,\r\n playableRaceIndex,\r\n //Power Type\r\n powerType,\r\n powerTypeIndex,\r\n //Pvp Season\r\n pvpLeaderboard,\r\n pvpLeaderboardIndex,\r\n pvpRegionalSeason,\r\n pvpRegionalSeasonIndex,\r\n pvpRegionIndex,\r\n pvpRewardsIndex,\r\n pvpSeason,\r\n pvpSeasonIndex,\r\n //Realm\r\n realm,\r\n realmIndex,\r\n realmSearch,\r\n //Region\r\n region,\r\n regionIndex,\r\n};\r\nexport default classicWow;\r\nexport { classicWow };\r\n\r\n//Auction House\r\nexport * from './auction-house/index';\r\nexport type * from './auction-house/types';\r\n//Character Achievements\r\nexport * from './character-achievements/index';\r\nexport type * from './character-achievements/types';\r\n//Character Equipment\r\nexport * from './character-equipment/index';\r\nexport type * from './character-equipment/types';\r\n//Character Hunter Pets\r\nexport * from './character-hunter-pets/index';\r\nexport type * from './character-hunter-pets/types';\r\n//Character Media\r\nexport * from './character-media/index';\r\nexport type * from './character-media/types';\r\n//Character Profile\r\nexport * from './character-profile/index';\r\nexport type * from './character-profile/types';\r\n//Character Specialization\r\nexport * from './character-specialization/index';\r\nexport type * from './character-specialization/types';\r\n//Character Statistics\r\nexport * from './character-statistics/index';\r\nexport type * from './character-statistics/types';\r\n//Connected Realm\r\nexport * from './connected-realm/index';\r\nexport type * from './connected-realm/types';\r\n//Creature\r\nexport * from './creature/index';\r\nexport type * from './creature/types';\r\n//Guild\r\nexport * from './guild/index';\r\nexport type * from './guild/types';\r\n//Guild Crest\r\nexport * from './guild-crest/index';\r\nexport type * from './guild-crest/types';\r\n//Item\r\nexport * from './item/index';\r\nexport type * from './item/types';\r\n//Media Search\r\nexport * from './media-search/index';\r\nexport type * from './media-search/types';\r\n//Playable Class\r\nexport * from './playable-class/index';\r\nexport type * from './playable-class/types';\r\n//Playable Race\r\nexport * from './playable-race/index';\r\nexport type * from './playable-race/types';\r\n//Power Type\r\nexport * from './power-type/index';\r\nexport type * from './power-type/types';\r\n//Pvp Season\r\nexport * from './pvp-season/index';\r\nexport type * from './pvp-season/types';\r\n//Realm\r\nexport * from './realm/index';\r\nexport type * from './realm/types';\r\n//Region\r\nexport * from './region/index';\r\nexport type * from './region/types';\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAuCA,MAAM,aAAa;CAEjB;CACA;CAEA;CACA;CAEA;CAEA;CAEA;CAEA;CACA;CAEA;CAEA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CAEA;CAEA;CACA;CACA;CAEA;CACA;CAEA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { auctionHouseIndex, auctions } from './auction-house/index';\nimport { characterAchievementsSummary, characterAchievementStatistics } from './character-achievements/index';\nimport { characterEquipmentSummary } from './character-equipment/index';\nimport { characterHunterPetsSummary } from './character-hunter-pets/index';\nimport { characterMediaSummary } from './character-media/index';\nimport { characterProfileStatus, characterProfileSummary } from './character-profile/index';\nimport { characterSpecializationsSummary } from './character-specializations/index';\nimport { characterStatisticsSummary } from './character-statistics/index';\nimport { connectedRealm, connectedRealmIndex, connectedRealmSearch } from './connected-realm/index';\nimport {\n creature,\n creatureDisplayMedia,\n creatureFamily,\n creatureFamilyIndex,\n creatureFamilyMedia,\n creatureSearch,\n creatureType,\n creatureTypeIndex,\n} from './creature/index';\nimport { guildCrestBorder, guildCrestComponentsIndex, guildCrestEmblem } from './guild-crest/index';\nimport { guild, guildAchievements, guildActivity, guildRoster } from './guild/index';\nimport { item, itemClass, itemClassIndex, itemMedia, itemSearch, itemSubclass } from './item/index';\nimport { mediaSearch } from './media-search/index';\nimport { playableClass, playableClassIndex, playableClassMedia } from './playable-class/index';\nimport { playableRace, playableRaceIndex } from './playable-race/index';\nimport { powerType, powerTypeIndex } from './power-type/index';\nimport {\n pvpLeaderboard,\n pvpLeaderboardIndex,\n pvpRegionalSeason,\n pvpRegionalSeasonIndex,\n pvpRegionIndex,\n pvpRewardsIndex,\n pvpSeason,\n pvpSeasonIndex,\n} from './pvp-season/index';\nimport { realm, realmIndex, realmSearch } from './realm/index';\nimport { region, regionIndex } from './region/index';\n\nconst classicWow = {\n //Auction House\n auctionHouseIndex,\n auctions,\n //Character Achievements\n characterAchievementsSummary,\n characterAchievementStatistics,\n //Character Equipment\n characterEquipmentSummary,\n //Character Hunter Pets\n characterHunterPetsSummary,\n //Character Media\n characterMediaSummary,\n //Character Profile\n characterProfileStatus,\n characterProfileSummary,\n //Character Specialization\n characterSpecializationsSummary,\n //Character Statistics\n characterStatisticsSummary,\n //Connected Realm\n connectedRealm,\n connectedRealmIndex,\n connectedRealmSearch,\n //Creature\n creature,\n creatureDisplayMedia,\n creatureFamily,\n creatureFamilyIndex,\n creatureFamilyMedia,\n creatureSearch,\n creatureType,\n creatureTypeIndex,\n //Guild\n guild,\n guildAchievements,\n guildActivity,\n guildRoster,\n //Guild Crest\n guildCrestBorder,\n guildCrestComponentsIndex,\n guildCrestEmblem,\n //Item\n item,\n itemClass,\n itemClassIndex,\n itemMedia,\n itemSearch,\n itemSubclass,\n //Media Search\n mediaSearch,\n //Playable Class\n playableClass,\n playableClassIndex,\n playableClassMedia,\n //Playable Race\n playableRace,\n playableRaceIndex,\n //Power Type\n powerType,\n powerTypeIndex,\n //Pvp Season\n pvpLeaderboard,\n pvpLeaderboardIndex,\n pvpRegionalSeason,\n pvpRegionalSeasonIndex,\n pvpRegionIndex,\n pvpRewardsIndex,\n pvpSeason,\n pvpSeasonIndex,\n //Realm\n realm,\n realmIndex,\n realmSearch,\n //Region\n region,\n regionIndex,\n};\nexport default classicWow;\nexport { classicWow };\n\n//Auction House\nexport * from './auction-house/index';\nexport type * from './auction-house/types';\n//Character Achievements\nexport * from './character-achievements/index';\nexport type * from './character-achievements/types';\n//Character Equipment\nexport * from './character-equipment/index';\nexport type * from './character-equipment/types';\n//Character Hunter Pets\nexport * from './character-hunter-pets/index';\nexport type * from './character-hunter-pets/types';\n//Character Media\nexport * from './character-media/index';\nexport type * from './character-media/types';\n//Character Profile\nexport * from './character-profile/index';\nexport type * from './character-profile/types';\n//Character Specialization\nexport * from './character-specializations/index';\nexport type * from './character-specializations/types';\n//Character Statistics\nexport * from './character-statistics/index';\nexport type * from './character-statistics/types';\n//Connected Realm\nexport * from './connected-realm/index';\nexport type * from './connected-realm/types';\n//Creature\nexport * from './creature/index';\nexport type * from './creature/types';\n//Guild\nexport * from './guild/index';\nexport type * from './guild/types';\n//Guild Crest\nexport * from './guild-crest/index';\nexport type * from './guild-crest/types';\n//Item\nexport * from './item/index';\nexport type * from './item/types';\n//Media Search\nexport * from './media-search/index';\nexport type * from './media-search/types';\n//Playable Class\nexport * from './playable-class/index';\nexport type * from './playable-class/types';\n//Playable Race\nexport * from './playable-race/index';\nexport type * from './playable-race/types';\n//Power Type\nexport * from './power-type/index';\nexport type * from './power-type/types';\n//Pvp Season\nexport * from './pvp-season/index';\nexport type * from './pvp-season/types';\n//Realm\nexport * from './realm/index';\nexport type * from './realm/types';\n//Region\nexport * from './region/index';\nexport type * from './region/types';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAuCA,MAAM,aAAa;CAEjB;CACA;CAEA;CACA;CAEA;CAEA;CAEA;CAEA;CACA;CAEA;CAEA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CAEA;CAEA;CACA;CACA;CAEA;CACA;CAEA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;AACF"}
@@ -1,4 +1,4 @@
1
- import { a as RealmSearchParameters, i as RealmResponse, n as RealmIndexResponse, o as RealmSearchResponse } from "../types-5Mwrkm82.js";
1
+ import { a as RealmSearchResponse, i as RealmSearchParameters, r as RealmResponse, t as RealmIndexResponse } from "../types-Bq1HfqJ9.js";
2
2
  import { BlizzardNamespaces, Resource } from "@blizzard-api/core";
3
3
  //#region src/realm/index.d.ts
4
4
  /**
@@ -7,20 +7,19 @@ import { BlizzardNamespaces, Resource } from "@blizzard-api/core";
7
7
  * @param realmSlug The realm slug.
8
8
  * @returns The realm. See {@link RealmResponse}.
9
9
  */
10
- declare function realm(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>, realmSlug: string): Resource<RealmResponse>;
10
+ export declare function realm(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>, realmSlug: string): Resource<RealmResponse>;
11
11
  /**
12
12
  * Get a realm index.
13
13
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
14
14
  * @returns The realm index. See {@link RealmIndexResponse}.
15
15
  */
16
- declare function realmIndex(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>): Resource<RealmIndexResponse>;
16
+ export declare function realmIndex(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>): Resource<RealmIndexResponse>;
17
17
  /**
18
18
  * Search for realms.
19
19
  * @param namespace The namespace to use. See {@link BlizzardNamespaces}.
20
20
  * @param options The search parameters. See {@link RealmSearchParameters}.
21
21
  * @returns The search results. See {@link RealmSearchResponse}.
22
22
  */
23
- declare function realmSearch(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>, options: RealmSearchParameters): Resource<RealmSearchResponse, RealmSearchParameters>;
23
+ export declare function realmSearch(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>, options: RealmSearchParameters): Resource<RealmSearchResponse, RealmSearchParameters>;
24
24
  //#endregion
25
- export { realm, realmIndex, realmSearch };
26
25
  //# sourceMappingURL=index.d.ts.map
@@ -1,10 +1,5 @@
1
1
  import { BaseSearchParameters, Href, KeyBase, Locales, NameId, NameIdKey, Realm, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
2
2
  //#region src/realm/types.d.ts
3
- /**
4
- * The category of a realm.
5
- * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
6
- */
7
- type RealmCategory = 'Brazil' | 'English' | 'French' | 'German' | 'Italian' | 'Latin America' | 'Oceanic' | 'PS' | 'Russian' | 'Spanish' | 'United States' | '한국';
8
3
  /**
9
4
  * The response for a realm index.
10
5
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -18,7 +13,7 @@ type RealmLocales = 'deDE' | 'enGB' | 'enUS' | 'esES' | 'esMX' | 'frFR' | 'itIT'
18
13
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
19
14
  */
20
15
  interface RealmResponse extends NameId, ResponseBase {
21
- category: RealmCategory;
16
+ category: string;
22
17
  connected_realm: Href;
23
18
  is_tournament: boolean;
24
19
  locale: RealmLocales;
@@ -74,5 +69,5 @@ interface RealmSearchResponseItem extends KeyBase {
74
69
  };
75
70
  }
76
71
  //#endregion
77
- export { RealmSearchParameters as a, RealmTypeCapitalized as c, RealmResponse as i, RealmIndexResponse as n, RealmSearchResponse as o, RealmLocales as r, RealmTimezone as s, RealmCategory as t };
78
- //# sourceMappingURL=types-5Mwrkm82.d.ts.map
72
+ export { RealmSearchResponse as a, RealmSearchParameters as i, RealmLocales as n, RealmTimezone as o, RealmResponse as r, RealmTypeCapitalized as s, RealmIndexResponse as t };
73
+ //# sourceMappingURL=types-Bq1HfqJ9.d.ts.map
package/package.json CHANGED
@@ -1,18 +1,30 @@
1
1
  {
2
2
  "name": "@blizzard-api/classic-wow",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
+ "description": "A series of helpers to interact with the World of Warcraft Classic Blizzard API",
5
+ "keywords": [
6
+ "api",
7
+ "battle.net",
8
+ "battlenet",
9
+ "blizzard",
10
+ "bnet",
11
+ "classic",
12
+ "warcraft",
13
+ "world of warcraft",
14
+ "wow"
15
+ ],
4
16
  "license": "MIT",
5
17
  "author": "Putro",
6
- "description": "A series of helpers to interact with the World of Warcraft Classic Blizzard API",
7
18
  "repository": {
8
19
  "type": "git",
9
20
  "url": "git+https://github.com/Pewtro/blizzard-api.git",
10
21
  "directory": "packages/classic-wow"
11
22
  },
23
+ "files": [
24
+ "dist"
25
+ ],
12
26
  "type": "module",
13
- "engines": {
14
- "node": "^22.13.0 || ^24 || ^26"
15
- },
27
+ "sideEffects": false,
16
28
  "module": "./dist/index.js",
17
29
  "types": "./dist/index.d.ts",
18
30
  "exports": {
@@ -27,28 +39,16 @@
27
39
  "default": "./dist/*/index.js"
28
40
  }
29
41
  },
30
- "files": [
31
- "dist"
32
- ],
33
- "sideEffects": false,
34
- "keywords": [
35
- "blizzard",
36
- "battlenet",
37
- "battle.net",
38
- "bnet",
39
- "api",
40
- "world of warcraft",
41
- "warcraft",
42
- "wow",
43
- "classic"
44
- ],
45
42
  "dependencies": {},
46
- "peerDependencies": {
43
+ "devDependencies": {
47
44
  "@blizzard-api/core": "4.1.2"
48
45
  },
49
- "devDependencies": {
46
+ "peerDependencies": {
50
47
  "@blizzard-api/core": "4.1.2"
51
48
  },
49
+ "engines": {
50
+ "node": "^22.13.0 || ^24 || ^26"
51
+ },
52
52
  "scripts": {
53
53
  "build": "tsdown",
54
54
  "dev": "tsdown --watch",
@@ -1,2 +0,0 @@
1
- import { t as characterSpecializationsSummary } from "../index-Cdyf19Zy.js";
2
- export { characterSpecializationsSummary };
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/character-specialization/index.ts"],"sourcesContent":["import type { BlizzardNamespaces, Resource } from '@blizzard-api/core';\nimport { wowCharacterBasePath } from '@blizzard-api/core';\nimport type { CharacterSpecializationsSummaryResponse } from './types';\n\n/**\n * @param namespace The namespace to use. See {@link BlizzardNamespaces}.\n * @param realmSlug The slug of the realm.\n * @param characterName The lowercase name of the character.\n * @returns a summary of a character's specializations.\n */\nexport function characterSpecializationsSummary(\n namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>,\n realmSlug: string,\n characterName: string,\n): Resource<CharacterSpecializationsSummaryResponse> {\n return {\n namespace,\n path: `${wowCharacterBasePath}/${realmSlug}/${characterName}/specializations`,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,gCACd,WACA,WACA,eACmD;CACnD,OAAO;EACL;EACA,MAAM,GAAG,qBAAqB,GAAG,UAAU,GAAG,cAAc;CAC9D;AACF"}