@blizzard-api/classic-wow 3.0.4 → 4.0.0
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/auction-house/index.d.ts +2 -0
- package/dist/auction-house/index.js +35 -0
- package/dist/auction-house/index.js.map +1 -0
- package/dist/character-achievements/index.d.ts +2 -0
- package/dist/character-achievements/index.js +30 -0
- package/dist/character-achievements/index.js.map +1 -0
- package/dist/character-equipment/index.d.ts +2 -0
- package/dist/character-equipment/index.js +19 -0
- package/dist/character-equipment/index.js.map +1 -0
- package/dist/character-hunter-pets/index.d.ts +2 -0
- package/dist/character-hunter-pets/index.js +19 -0
- package/dist/character-hunter-pets/index.js.map +1 -0
- package/dist/character-media/index.d.ts +2 -0
- package/dist/character-media/index.js +18 -0
- package/dist/character-media/index.js.map +1 -0
- package/dist/character-profile/index.d.ts +2 -0
- package/dist/character-profile/index.js +42 -0
- package/dist/character-profile/index.js.map +1 -0
- package/dist/character-specialization/index.d.ts +2 -0
- package/dist/character-specialization/index.js +18 -0
- package/dist/character-specialization/index.js.map +1 -0
- package/dist/character-statistics/index.d.ts +2 -0
- package/dist/character-statistics/index.js +18 -0
- package/dist/character-statistics/index.js.map +1 -0
- package/dist/connected-realm/index.d.ts +2 -0
- package/dist/connected-realm/index.js +47 -0
- package/dist/connected-realm/index.js.map +1 -0
- package/dist/creature/index.d.ts +2 -0
- package/dist/creature/index.js +105 -0
- package/dist/creature/index.js.map +1 -0
- package/dist/guild/index.d.ts +2 -0
- package/dist/guild/index.js +54 -0
- package/dist/guild/index.js.map +1 -0
- package/dist/guild-crest/index.d.ts +2 -0
- package/dist/guild-crest/index.js +41 -0
- package/dist/guild-crest/index.js.map +1 -0
- package/dist/index--VDjAqSZ.d.ts +23 -0
- package/dist/index-0TuKK7MU.d.ts +75 -0
- package/dist/index-B-LUShkQ.d.ts +167 -0
- package/dist/index-BHX6BR24.d.ts +163 -0
- package/dist/index-BQ-NY0vY.d.ts +128 -0
- package/dist/index-BZ8QSRSe.d.ts +90 -0
- package/dist/index-BrwXCy4D.d.ts +40 -0
- package/dist/index-BtfmrbYY.d.ts +31 -0
- package/dist/index-C7VwaWu6.d.ts +66 -0
- package/dist/index-Ce02MoQO.d.ts +37 -0
- package/dist/index-DDSvssGG.d.ts +59 -0
- package/dist/index-DSc_fuNb.d.ts +46 -0
- package/dist/index-DUgdQv4k.d.ts +36 -0
- package/dist/index-DajMx-uR.d.ts +143 -0
- package/dist/index-Djpr-_AW.d.ts +65 -0
- package/dist/index-DmVmLB_p.d.ts +51 -0
- package/dist/index-i0vuifJx.d.ts +33 -0
- package/dist/index-u8N9Fa6T.d.ts +290 -0
- package/dist/index-y_6cJbJi.d.ts +89 -0
- package/dist/index.d.ts +22 -1632
- package/dist/index.js +20 -753
- package/dist/index.js.map +1 -1
- package/dist/item/index.d.ts +2 -0
- package/dist/item/index.js +83 -0
- package/dist/item/index.js.map +1 -0
- package/dist/media-search/index.d.ts +2 -0
- package/dist/media-search/index.js +23 -0
- package/dist/media-search/index.js.map +1 -0
- package/dist/playable-class/index.d.ts +2 -0
- package/dist/playable-class/index.js +41 -0
- package/dist/playable-class/index.js.map +1 -0
- package/dist/playable-race/index.d.ts +2 -0
- package/dist/playable-race/index.js +29 -0
- package/dist/playable-race/index.js.map +1 -0
- package/dist/power-type/index.d.ts +2 -0
- package/dist/power-type/index.js +29 -0
- package/dist/power-type/index.js.map +1 -0
- package/dist/pvp-season/index.d.ts +2 -0
- package/dist/pvp-season/index.js +105 -0
- package/dist/pvp-season/index.js.map +1 -0
- package/dist/realm/index.d.ts +27 -0
- package/dist/realm/index.js +46 -0
- package/dist/realm/index.js.map +1 -0
- package/dist/region/index.d.ts +2 -0
- package/dist/region/index.js +29 -0
- package/dist/region/index.js.map +1 -0
- package/dist/types-gA98D5Xw.d.ts +79 -0
- package/package.json +16 -7
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { BlizzardNamespaces, Character, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/character-statistics/types.d.ts
|
|
4
|
+
interface CharacterStatisticsSummaryResponse extends ResponseBase {
|
|
5
|
+
agility: BaseEffectiveStat;
|
|
6
|
+
arcane_resistance?: BaseEffectiveStat;
|
|
7
|
+
armor: BaseEffectiveStat;
|
|
8
|
+
attack_power: number;
|
|
9
|
+
block: RatingWithValue;
|
|
10
|
+
bonus_armor?: number;
|
|
11
|
+
character: Character;
|
|
12
|
+
defense?: BaseEffectiveStat;
|
|
13
|
+
dodge: RatingWithValue;
|
|
14
|
+
fire_resistance?: BaseEffectiveStat;
|
|
15
|
+
health: number;
|
|
16
|
+
holy_resistance?: BaseEffectiveStat;
|
|
17
|
+
intellect: BaseEffectiveStat;
|
|
18
|
+
main_hand_damage_max: number;
|
|
19
|
+
main_hand_damage_min: number;
|
|
20
|
+
main_hand_dps: number;
|
|
21
|
+
main_hand_speed: number;
|
|
22
|
+
mana_regen: number;
|
|
23
|
+
mana_regen_combat: number;
|
|
24
|
+
mastery?: RatingWithValue;
|
|
25
|
+
melee_crit: RatingWithValue;
|
|
26
|
+
melee_haste?: RatingWithValue;
|
|
27
|
+
nature_resistance?: BaseEffectiveStat;
|
|
28
|
+
off_hand_damage_max: number;
|
|
29
|
+
off_hand_damage_min: number;
|
|
30
|
+
off_hand_dps: number;
|
|
31
|
+
off_hand_speed: number;
|
|
32
|
+
parry: RatingWithValue;
|
|
33
|
+
power: number;
|
|
34
|
+
power_type: NameIdKey;
|
|
35
|
+
ranged_crit: RatingWithValue;
|
|
36
|
+
ranged_haste?: RatingWithValue;
|
|
37
|
+
shadow_resistance?: BaseEffectiveStat;
|
|
38
|
+
spell_crit: RatingWithValue;
|
|
39
|
+
spell_haste?: RatingWithValue;
|
|
40
|
+
spell_penetration: number;
|
|
41
|
+
spell_power: number;
|
|
42
|
+
spirit: BaseEffectiveStat;
|
|
43
|
+
stamina: BaseEffectiveStat;
|
|
44
|
+
strength: BaseEffectiveStat;
|
|
45
|
+
}
|
|
46
|
+
interface BaseEffectiveStat {
|
|
47
|
+
base: number;
|
|
48
|
+
effective: number;
|
|
49
|
+
}
|
|
50
|
+
interface RatingWithValue {
|
|
51
|
+
rating_bonus: number;
|
|
52
|
+
rating_normalized: number;
|
|
53
|
+
value: number;
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/character-statistics/index.d.ts
|
|
57
|
+
/**
|
|
58
|
+
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
59
|
+
* @param realmSlug The slug of the realm.
|
|
60
|
+
* @param characterName The lowercase name of the character.
|
|
61
|
+
* @returns a statistics summary for a character.
|
|
62
|
+
*/
|
|
63
|
+
declare function characterStatisticsSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterStatisticsSummaryResponse>;
|
|
64
|
+
//#endregion
|
|
65
|
+
export { CharacterStatisticsSummaryResponse as n, characterStatisticsSummary as t };
|
|
66
|
+
//# sourceMappingURL=index-C7VwaWu6.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BaseSearchParameters, BlizzardNamespaces, KeyBase, MediaAsset, Resource, SearchResponseWithoutResults } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/media-search/types.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The search parameters for media.
|
|
6
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
7
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
|
|
8
|
+
*/
|
|
9
|
+
interface MediaSearchParameters extends BaseSearchParameters {
|
|
10
|
+
tags?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The response for a media search.
|
|
14
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
15
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/guides/search}
|
|
16
|
+
*/
|
|
17
|
+
interface MediaSearchResponse extends SearchResponseWithoutResults {
|
|
18
|
+
results: Array<MediaSearchResponseItem>;
|
|
19
|
+
}
|
|
20
|
+
interface MediaSearchResponseItem extends KeyBase {
|
|
21
|
+
data: {
|
|
22
|
+
assets?: Array<MediaAsset>;
|
|
23
|
+
id?: number;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/media-search/index.d.ts
|
|
28
|
+
/**
|
|
29
|
+
* Search for media.
|
|
30
|
+
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
31
|
+
* @param options The search parameters. See {@link MediaSearchParameters}.
|
|
32
|
+
* @returns The search results. See {@link MediaSearchResponse}.
|
|
33
|
+
*/
|
|
34
|
+
declare function mediaSearch(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, options: MediaSearchParameters): Resource<MediaSearchResponse, MediaSearchParameters>;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { MediaSearchParameters as n, MediaSearchResponse as r, mediaSearch as t };
|
|
37
|
+
//# sourceMappingURL=index-Ce02MoQO.d.ts.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { BlizzardNamespaces, GenderName, Href, KeyBase, MediaAsset, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/playable-class/types.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The response for a playable class index.
|
|
6
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
7
|
+
*/
|
|
8
|
+
interface PlayableClassIndexResponse extends ResponseBase {
|
|
9
|
+
classes: Array<NameIdKey>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The response for playable class media.
|
|
13
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
14
|
+
*/
|
|
15
|
+
interface PlayableClassMediaResponse extends ResponseBase {
|
|
16
|
+
assets: Array<MediaAsset>;
|
|
17
|
+
id: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The response for a playable class.
|
|
21
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft-classic/game-data-apis}
|
|
22
|
+
*/
|
|
23
|
+
interface PlayableClassResponse extends NameId, ResponseBase {
|
|
24
|
+
additional_power_types?: Array<NameIdKey>;
|
|
25
|
+
gender_name: GenderName;
|
|
26
|
+
media: Media;
|
|
27
|
+
playable_races: Array<NameIdKey>;
|
|
28
|
+
power_type: NameIdKey;
|
|
29
|
+
pvp_talent_slots: Href;
|
|
30
|
+
specializations?: Array<NameIdKey>;
|
|
31
|
+
}
|
|
32
|
+
interface Media extends KeyBase {
|
|
33
|
+
id: number;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/playable-class/index.d.ts
|
|
37
|
+
/**
|
|
38
|
+
* Get a playable class by ID.
|
|
39
|
+
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
40
|
+
* @param playableClassId The playable class ID.
|
|
41
|
+
* @returns The playable class. See {@link PlayableClassResponse}.
|
|
42
|
+
*/
|
|
43
|
+
declare function playableClass(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, playableClassId: number): Resource<PlayableClassResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Get a playable class index.
|
|
46
|
+
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
47
|
+
* @returns The playable class index. See {@link PlayableClassIndexResponse}.
|
|
48
|
+
*/
|
|
49
|
+
declare function playableClassIndex(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>): Resource<PlayableClassIndexResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Get playable class media by ID.
|
|
52
|
+
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
53
|
+
* @param playableClassId The playable class ID.
|
|
54
|
+
* @returns The playable class media. See {@link PlayableClassMediaResponse}.
|
|
55
|
+
*/
|
|
56
|
+
declare function playableClassMedia(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, playableClassId: number): Resource<PlayableClassMediaResponse>;
|
|
57
|
+
//#endregion
|
|
58
|
+
export { PlayableClassMediaResponse as a, PlayableClassIndexResponse as i, playableClassIndex as n, PlayableClassResponse as o, playableClassMedia as r, playableClass as t };
|
|
59
|
+
//# sourceMappingURL=index-DDSvssGG.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { BlizzardNamespaces, Href, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/auction-house/types.d.ts
|
|
4
|
+
interface AuctionHouseIndexResponse extends ResponseBase {
|
|
5
|
+
auctions: Array<NameIdKey>;
|
|
6
|
+
}
|
|
7
|
+
interface AuctionsResponse extends NameId, ResponseBase {
|
|
8
|
+
auctions: Array<Auction>;
|
|
9
|
+
connected_realm: Href;
|
|
10
|
+
}
|
|
11
|
+
interface Auction {
|
|
12
|
+
bid: number;
|
|
13
|
+
buyout: number;
|
|
14
|
+
id: number;
|
|
15
|
+
item: {
|
|
16
|
+
id: number;
|
|
17
|
+
rand?: number;
|
|
18
|
+
seed?: number;
|
|
19
|
+
};
|
|
20
|
+
quantity: number;
|
|
21
|
+
time_left: 'LONG' | 'MEDIUM' | 'SHORT' | 'VERY_LONG';
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/auction-house/index.d.ts
|
|
25
|
+
/**
|
|
26
|
+
* Returns an index of auction houses for a connected realm.
|
|
27
|
+
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
28
|
+
* @param connectedRealmId The ID of the connected realm.
|
|
29
|
+
* @returns The auction house index. See {@link AuctionHouseIndexResponse}.
|
|
30
|
+
*/
|
|
31
|
+
declare function auctionHouseIndex(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>, connectedRealmId: number): Resource<AuctionHouseIndexResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Returns all active auctions for a specific auction house on a connected realm.
|
|
34
|
+
*
|
|
35
|
+
* Auction house data updates at a set interval. The value was initially set at 1 hour; however, it might change over time without notice.
|
|
36
|
+
*
|
|
37
|
+
* Depending on the number of active auctions on the specified connected realm, the response from this endpoint may be rather large, sometimes exceeding 10 MB.
|
|
38
|
+
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
39
|
+
* @param connectedRealmId The ID of the connected realm.
|
|
40
|
+
* @param auctionHouseId The ID of the auction house.
|
|
41
|
+
* @returns The auction house data. See {@link AuctionsResponse}.
|
|
42
|
+
*/
|
|
43
|
+
declare function auctions(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>, connectedRealmId: number, auctionHouseId: number): Resource<AuctionsResponse>;
|
|
44
|
+
//#endregion
|
|
45
|
+
export { AuctionsResponse as i, auctions as n, AuctionHouseIndexResponse as r, auctionHouseIndex as t };
|
|
46
|
+
//# sourceMappingURL=index-DSc_fuNb.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { BlizzardNamespaces, Href, NameId, Resource, ResponseBase } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/region/types.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The response for a region index.
|
|
6
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
7
|
+
*/
|
|
8
|
+
interface RegionIndexResponse extends ResponseBase {
|
|
9
|
+
regions: Array<Href>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The response for a region.
|
|
13
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
14
|
+
*/
|
|
15
|
+
interface RegionResponse extends NameId, ResponseBase {
|
|
16
|
+
patch_string: string;
|
|
17
|
+
tag: string;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/region/index.d.ts
|
|
21
|
+
/**
|
|
22
|
+
* Get a region by ID.
|
|
23
|
+
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
24
|
+
* @param regionId The region ID.
|
|
25
|
+
* @returns The region. See {@link RegionResponse}.
|
|
26
|
+
*/
|
|
27
|
+
declare function region(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>, regionId: number): Resource<RegionResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* Get a region index.
|
|
30
|
+
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
31
|
+
* @returns The region index. See {@link RegionIndexResponse}.
|
|
32
|
+
*/
|
|
33
|
+
declare function regionIndex(namespace: Extract<BlizzardNamespaces, 'dynamic-classic1x' | 'dynamic-classic'>): Resource<RegionIndexResponse>;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { RegionResponse as i, regionIndex as n, RegionIndexResponse as r, region as t };
|
|
36
|
+
//# sourceMappingURL=index-DUgdQv4k.d.ts.map
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { BlizzardNamespaces, Character, Color, Faction, Factions, Href, KeyBase, NameIdKey, Realm, Resource, ResponseBase } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/guild/types.d.ts
|
|
4
|
+
interface GuildAchievementsClassicEraResponse extends ResponseBase {
|
|
5
|
+
guild: Guild;
|
|
6
|
+
}
|
|
7
|
+
interface GuildAchievementsResponse extends ResponseBase {
|
|
8
|
+
achievements: Array<Achievement>;
|
|
9
|
+
category_progress: Array<CategoryProgress>;
|
|
10
|
+
guild: Guild;
|
|
11
|
+
recent_events: Array<RecentEvent>;
|
|
12
|
+
total_points: number;
|
|
13
|
+
total_quantity: number;
|
|
14
|
+
}
|
|
15
|
+
interface GuildActivityResponse extends ResponseBase {
|
|
16
|
+
activities?: Array<ActivityElement>;
|
|
17
|
+
guild: Guild;
|
|
18
|
+
}
|
|
19
|
+
interface GuildResponse extends ResponseBase {
|
|
20
|
+
achievement_points: number;
|
|
21
|
+
achievements: Href;
|
|
22
|
+
activity: Href;
|
|
23
|
+
created_timestamp: number;
|
|
24
|
+
crest?: Crest;
|
|
25
|
+
faction: Faction;
|
|
26
|
+
id: number;
|
|
27
|
+
member_count: number;
|
|
28
|
+
name: string;
|
|
29
|
+
name_search: string;
|
|
30
|
+
realm: Realm;
|
|
31
|
+
roster: Href;
|
|
32
|
+
}
|
|
33
|
+
interface GuildRosterResponse extends ResponseBase {
|
|
34
|
+
guild: Guild;
|
|
35
|
+
members: Array<Member>;
|
|
36
|
+
}
|
|
37
|
+
interface Achievement {
|
|
38
|
+
achievement: NameIdKey;
|
|
39
|
+
completed_timestamp?: number;
|
|
40
|
+
criteria?: Criteria;
|
|
41
|
+
id: number;
|
|
42
|
+
}
|
|
43
|
+
interface ActivityElement {
|
|
44
|
+
activity: {
|
|
45
|
+
type: string;
|
|
46
|
+
};
|
|
47
|
+
character_achievement: CharacterAchievement;
|
|
48
|
+
timestamp: number;
|
|
49
|
+
}
|
|
50
|
+
interface Border {
|
|
51
|
+
color: RgbWithId;
|
|
52
|
+
id: number;
|
|
53
|
+
media: KeyBase & {
|
|
54
|
+
id: number;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
interface CategoryProgress {
|
|
58
|
+
category: NameIdKey;
|
|
59
|
+
points: number;
|
|
60
|
+
quantity: number;
|
|
61
|
+
}
|
|
62
|
+
interface CharacterAchievement {
|
|
63
|
+
achievement: NameIdKey;
|
|
64
|
+
character: Character;
|
|
65
|
+
}
|
|
66
|
+
interface ChildCriterum {
|
|
67
|
+
amount: number;
|
|
68
|
+
id: number;
|
|
69
|
+
is_completed: boolean;
|
|
70
|
+
}
|
|
71
|
+
interface Crest {
|
|
72
|
+
background: {
|
|
73
|
+
color: RgbWithId;
|
|
74
|
+
};
|
|
75
|
+
border: Border;
|
|
76
|
+
emblem: Border;
|
|
77
|
+
}
|
|
78
|
+
interface Criteria {
|
|
79
|
+
amount?: number;
|
|
80
|
+
child_criteria?: Array<ChildCriterum>;
|
|
81
|
+
id: number;
|
|
82
|
+
is_completed: boolean;
|
|
83
|
+
}
|
|
84
|
+
interface Guild extends NameIdKey {
|
|
85
|
+
faction: Faction;
|
|
86
|
+
realm: Realm;
|
|
87
|
+
}
|
|
88
|
+
interface Member {
|
|
89
|
+
character: RosterMemberCharacter;
|
|
90
|
+
rank: number;
|
|
91
|
+
}
|
|
92
|
+
interface Playable extends KeyBase {
|
|
93
|
+
id: number;
|
|
94
|
+
}
|
|
95
|
+
interface RecentEvent {
|
|
96
|
+
achievement: NameIdKey;
|
|
97
|
+
timestamp: number;
|
|
98
|
+
}
|
|
99
|
+
interface RgbWithId {
|
|
100
|
+
id: number;
|
|
101
|
+
rgba: Color;
|
|
102
|
+
}
|
|
103
|
+
interface RosterMemberCharacter extends Character {
|
|
104
|
+
faction: {
|
|
105
|
+
type: Factions;
|
|
106
|
+
};
|
|
107
|
+
level: number;
|
|
108
|
+
playable_class: Playable;
|
|
109
|
+
playable_race: Playable;
|
|
110
|
+
}
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region src/guild/index.d.ts
|
|
113
|
+
/**
|
|
114
|
+
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
115
|
+
* @param realmSlug The slug of the realm.
|
|
116
|
+
* @param nameSlug The lowercase name of the guild.
|
|
117
|
+
* @returns a single guild by its name and realm.
|
|
118
|
+
*/
|
|
119
|
+
declare function guild(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, nameSlug: string): Resource<GuildResponse>;
|
|
120
|
+
/**
|
|
121
|
+
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
122
|
+
* @param realmSlug The slug of the realm.
|
|
123
|
+
* @param nameSlug The lowercase name of the guild.
|
|
124
|
+
* @returns a single guild's achievements by name and realm.
|
|
125
|
+
*/
|
|
126
|
+
declare function guildAchievements<T extends Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>>(namespace: T, realmSlug: string, nameSlug: string): Resource<T extends 'profile-classic1x' ? GuildAchievementsClassicEraResponse : GuildAchievementsResponse>;
|
|
127
|
+
/**
|
|
128
|
+
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
129
|
+
* @param realmSlug The slug of the realm.
|
|
130
|
+
* @param nameSlug The lowercase name of the guild.
|
|
131
|
+
* @returns a single guild's activity by name and realm.
|
|
132
|
+
*/
|
|
133
|
+
declare function guildActivity(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, nameSlug: string): Resource<GuildActivityResponse>;
|
|
134
|
+
/**
|
|
135
|
+
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
136
|
+
* @param realmSlug The slug of the realm.
|
|
137
|
+
* @param nameSlug The lowercase name of the guild.
|
|
138
|
+
* @returns a single guild's roster by its name and realm.
|
|
139
|
+
*/
|
|
140
|
+
declare function guildRoster(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, nameSlug: string): Resource<GuildRosterResponse>;
|
|
141
|
+
//#endregion
|
|
142
|
+
export { GuildAchievementsClassicEraResponse as a, GuildResponse as c, guildRoster as i, GuildRosterResponse as l, guildAchievements as n, GuildAchievementsResponse as o, guildActivity as r, GuildActivityResponse as s, guild as t };
|
|
143
|
+
//# sourceMappingURL=index-DajMx-uR.d.ts.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { BlizzardNamespaces, Color, KeyBase, Resource, ResponseBase } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/guild-crest/types.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The response for a guild crest border or emblem.
|
|
6
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
7
|
+
*/
|
|
8
|
+
interface GuildCrestBorderEmblemResponse extends ResponseBase {
|
|
9
|
+
assets: Array<GuildCrestAsset>;
|
|
10
|
+
id: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The response for the guild crest components index.
|
|
14
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
15
|
+
*/
|
|
16
|
+
interface GuildCrestComponentsIndexResponse extends ResponseBase {
|
|
17
|
+
borders: Array<Border>;
|
|
18
|
+
colors: Colors;
|
|
19
|
+
emblems: Array<Border>;
|
|
20
|
+
}
|
|
21
|
+
interface Background {
|
|
22
|
+
id: number;
|
|
23
|
+
rgba: Color;
|
|
24
|
+
}
|
|
25
|
+
interface Border {
|
|
26
|
+
id: number;
|
|
27
|
+
media: Media;
|
|
28
|
+
}
|
|
29
|
+
interface Colors {
|
|
30
|
+
backgrounds?: Array<Background>;
|
|
31
|
+
borders?: Array<Background>;
|
|
32
|
+
emblems?: Array<Background>;
|
|
33
|
+
}
|
|
34
|
+
interface GuildCrestAsset {
|
|
35
|
+
key: string;
|
|
36
|
+
value: string;
|
|
37
|
+
}
|
|
38
|
+
interface Media extends KeyBase {
|
|
39
|
+
id: number;
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/guild-crest/index.d.ts
|
|
43
|
+
/**
|
|
44
|
+
* Returns media for a guild crest border by ID.
|
|
45
|
+
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
46
|
+
* @param borderId The guild crest border ID.
|
|
47
|
+
* @returns The guild crest border. See {@link GuildCrestBorderEmblemResponse}.
|
|
48
|
+
*/
|
|
49
|
+
declare function guildCrestBorder(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, borderId: number): Resource<GuildCrestBorderEmblemResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Returns an index of guild crest media.
|
|
52
|
+
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
53
|
+
* @returns The guild crest components index. See {@link GuildCrestComponentsIndexResponse}.
|
|
54
|
+
*/
|
|
55
|
+
declare function guildCrestComponentsIndex(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>): Resource<GuildCrestComponentsIndexResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* Returns media for a guild crest emblem by ID.
|
|
58
|
+
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
59
|
+
* @param emblemId The guild crest emblem ID.
|
|
60
|
+
* @returns The guild crest emblem. See {@link GuildCrestBorderEmblemResponse}.
|
|
61
|
+
*/
|
|
62
|
+
declare function guildCrestEmblem(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, emblemId: number): Resource<GuildCrestBorderEmblemResponse>;
|
|
63
|
+
//#endregion
|
|
64
|
+
export { GuildCrestComponentsIndexResponse as a, GuildCrestBorderEmblemResponse as i, guildCrestComponentsIndex as n, guildCrestEmblem as r, guildCrestBorder as t };
|
|
65
|
+
//# sourceMappingURL=index-Djpr-_AW.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { BlizzardNamespaces, Character, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/character-specialization/types.d.ts
|
|
4
|
+
interface CharacterSpecializationsSummaryResponse extends ResponseBase {
|
|
5
|
+
active_specialization?: NameIdKey;
|
|
6
|
+
character: Character;
|
|
7
|
+
specialization_groups: Array<SpecializationGroup>;
|
|
8
|
+
specializations?: Array<ClassicProgressionSpecialization>;
|
|
9
|
+
}
|
|
10
|
+
interface ClassicProgressionSpecialization {
|
|
11
|
+
specialization: NameIdKey;
|
|
12
|
+
specialization_name: string;
|
|
13
|
+
talents?: Array<TalentElement>;
|
|
14
|
+
}
|
|
15
|
+
interface SpecializationGroup {
|
|
16
|
+
glyphs?: Array<NameId>;
|
|
17
|
+
is_active: boolean;
|
|
18
|
+
specializations?: Array<SpecializationGroupItem>;
|
|
19
|
+
}
|
|
20
|
+
interface SpecializationGroupItem {
|
|
21
|
+
specialization_name: string;
|
|
22
|
+
spent_points: number;
|
|
23
|
+
talents: Array<TalentElement>;
|
|
24
|
+
}
|
|
25
|
+
interface SpellTooltip {
|
|
26
|
+
cast_time: string;
|
|
27
|
+
cooldown?: string;
|
|
28
|
+
description: string;
|
|
29
|
+
power_cost?: null | string;
|
|
30
|
+
range?: string;
|
|
31
|
+
spell: NameId;
|
|
32
|
+
}
|
|
33
|
+
interface TalentElement {
|
|
34
|
+
spell_tooltip: SpellTooltip;
|
|
35
|
+
talent: NameId | {
|
|
36
|
+
id: number;
|
|
37
|
+
};
|
|
38
|
+
talent_rank?: number;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/character-specialization/index.d.ts
|
|
42
|
+
/**
|
|
43
|
+
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
44
|
+
* @param realmSlug The slug of the realm.
|
|
45
|
+
* @param characterName The lowercase name of the character.
|
|
46
|
+
* @returns a summary of a character's specializations.
|
|
47
|
+
*/
|
|
48
|
+
declare function characterSpecializationsSummary(namespace: Extract<BlizzardNamespaces, 'profile-classic1x' | 'profile-classic'>, realmSlug: string, characterName: string): Resource<CharacterSpecializationsSummaryResponse>;
|
|
49
|
+
//#endregion
|
|
50
|
+
export { CharacterSpecializationsSummaryResponse as n, characterSpecializationsSummary as t };
|
|
51
|
+
//# sourceMappingURL=index-DmVmLB_p.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { BlizzardNamespaces, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
|
|
2
|
+
|
|
3
|
+
//#region src/power-type/types.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The response for a power type index.
|
|
6
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
7
|
+
*/
|
|
8
|
+
interface PowerTypeIndexResponse extends ResponseBase {
|
|
9
|
+
power_types: Array<NameIdKey>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The response for a power type.
|
|
13
|
+
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
|
|
14
|
+
*/
|
|
15
|
+
interface PowerTypeResponse extends NameId, ResponseBase {}
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/power-type/index.d.ts
|
|
18
|
+
/**
|
|
19
|
+
* Get a power type by ID.
|
|
20
|
+
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
21
|
+
* @param powerTypeId The power type ID.
|
|
22
|
+
* @returns The power type. See {@link PowerTypeResponse}.
|
|
23
|
+
*/
|
|
24
|
+
declare function powerType(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, powerTypeId: number): Resource<PowerTypeResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Get a power type index.
|
|
27
|
+
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
|
|
28
|
+
* @returns The power type index. See {@link PowerTypeIndexResponse}.
|
|
29
|
+
*/
|
|
30
|
+
declare function powerTypeIndex(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>): Resource<PowerTypeIndexResponse>;
|
|
31
|
+
//#endregion
|
|
32
|
+
export { PowerTypeResponse as i, powerTypeIndex as n, PowerTypeIndexResponse as r, powerType as t };
|
|
33
|
+
//# sourceMappingURL=index-i0vuifJx.d.ts.map
|