@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.
- package/dist/character-specializations/index.d.ts +2 -0
- package/dist/{character-specialization → character-specializations}/index.js +1 -1
- package/dist/character-specializations/index.js.map +1 -0
- package/dist/connected-realm/index.d.ts +1 -1
- package/dist/{index-Cdyf19Zy.d.ts → index-DCIoQ85A.d.ts} +3 -3
- package/dist/{index-CDBSDqLP.d.ts → index-DXDg6Aem.d.ts} +3 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/realm/index.d.ts +4 -5
- package/dist/{types-5Mwrkm82.d.ts → types-Bq1HfqJ9.d.ts} +3 -8
- package/package.json +22 -22
- package/dist/character-specialization/index.d.ts +0 -2
- package/dist/character-specialization/index.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { wowCharacterBasePath } from "@blizzard-api/core";
|
|
2
|
-
//#region src/character-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
50
|
+
//# sourceMappingURL=index-DCIoQ85A.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
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-
|
|
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-
|
|
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
|
|
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-
|
|
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
|
|
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-
|
|
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';\
|
|
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"}
|
package/dist/realm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
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:
|
|
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 {
|
|
78
|
-
//# sourceMappingURL=types-
|
|
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.
|
|
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
|
-
"
|
|
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
|
-
"
|
|
43
|
+
"devDependencies": {
|
|
47
44
|
"@blizzard-api/core": "4.1.2"
|
|
48
45
|
},
|
|
49
|
-
"
|
|
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 +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"}
|