@pinta365/blizzard_api 0.3.5
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/LICENSE +21 -0
- package/README.md +61 -0
- package/esm/mod.d.ts +5 -0
- package/esm/mod.js +5 -0
- package/esm/package.json +3 -0
- package/esm/src/hearthstone/game_data/card_backs.d.ts +22 -0
- package/esm/src/hearthstone/game_data/card_backs.js +23 -0
- package/esm/src/hearthstone/game_data/cards.d.ts +37 -0
- package/esm/src/hearthstone/game_data/cards.js +27 -0
- package/esm/src/hearthstone/game_data/decks.d.ts +88 -0
- package/esm/src/hearthstone/game_data/decks.js +14 -0
- package/esm/src/hearthstone/game_data/metadata.d.ts +95 -0
- package/esm/src/hearthstone/game_data/metadata.js +12 -0
- package/esm/src/hearthstone/index.d.ts +4 -0
- package/esm/src/hearthstone/index.js +4 -0
- package/esm/src/hearthstone/search.d.ts +20 -0
- package/esm/src/hearthstone/search.js +29 -0
- package/esm/src/shared/auth.d.ts +24 -0
- package/esm/src/shared/auth.js +58 -0
- package/esm/src/shared/config.d.ts +40 -0
- package/esm/src/shared/config.js +48 -0
- package/esm/src/shared/errors.d.ts +44 -0
- package/esm/src/shared/errors.js +83 -0
- package/esm/src/shared/index.d.ts +4 -0
- package/esm/src/shared/index.js +3 -0
- package/esm/src/shared/request.d.ts +13 -0
- package/esm/src/shared/request.js +43 -0
- package/esm/src/shared/types.d.ts +120 -0
- package/esm/src/shared/types.js +2 -0
- package/esm/src/starcraft2/game_data/league.d.ts +32 -0
- package/esm/src/starcraft2/game_data/league.js +21 -0
- package/esm/src/starcraft2/index.d.ts +1 -0
- package/esm/src/starcraft2/index.js +1 -0
- package/esm/src/wow/game_data/achievement.d.ts +84 -0
- package/esm/src/wow/game_data/achievement.js +69 -0
- package/esm/src/wow/game_data/auction_house.d.ts +64 -0
- package/esm/src/wow/game_data/auction_house.js +34 -0
- package/esm/src/wow/game_data/azerite_essence.d.ts +49 -0
- package/esm/src/wow/game_data/azerite_essence.js +49 -0
- package/esm/src/wow/game_data/connected_realm.d.ts +54 -0
- package/esm/src/wow/game_data/connected_realm.js +36 -0
- package/esm/src/wow/game_data/covenant.d.ts +108 -0
- package/esm/src/wow/game_data/covenant.js +89 -0
- package/esm/src/wow/game_data/creature.d.ts +97 -0
- package/esm/src/wow/game_data/creature.js +100 -0
- package/esm/src/wow/game_data/guild_crest.d.ts +55 -0
- package/esm/src/wow/game_data/guild_crest.js +39 -0
- package/esm/src/wow/game_data/heirloom.d.ts +79 -0
- package/esm/src/wow/game_data/heirloom.js +26 -0
- package/esm/src/wow/game_data/item.d.ts +166 -0
- package/esm/src/wow/game_data/item.js +101 -0
- package/esm/src/wow/game_data/journal.d.ts +121 -0
- package/esm/src/wow/game_data/journal.js +99 -0
- package/esm/src/wow/game_data/keystone_affix.d.ts +34 -0
- package/esm/src/wow/game_data/keystone_affix.js +39 -0
- package/esm/src/wow/game_data/media_search.d.ts +8 -0
- package/esm/src/wow/game_data/media_search.js +10 -0
- package/esm/src/wow/game_data/modified_crafting.d.ts +56 -0
- package/esm/src/wow/game_data/modified_crafting.js +63 -0
- package/esm/src/wow/game_data/mount.d.ts +30 -0
- package/esm/src/wow/game_data/mount.js +30 -0
- package/esm/src/wow/game_data/mythic_keystone_dungeon.d.ts +91 -0
- package/esm/src/wow/game_data/mythic_keystone_dungeon.js +88 -0
- package/esm/src/wow/game_data/mythic_keystone_leaderboard.d.ts +58 -0
- package/esm/src/wow/game_data/mythic_keystone_leaderboard.js +29 -0
- package/esm/src/wow/game_data/mythic_raid_leaderboard.d.ts +31 -0
- package/esm/src/wow/game_data/mythic_raid_leaderboard.js +15 -0
- package/esm/src/wow/game_data/pet.d.ts +91 -0
- package/esm/src/wow/game_data/pet.js +77 -0
- package/esm/src/wow/game_data/playable_class.d.ts +57 -0
- package/esm/src/wow/game_data/playable_class.js +52 -0
- package/esm/src/wow/game_data/playable_race.d.ts +29 -0
- package/esm/src/wow/game_data/playable_race.js +26 -0
- package/esm/src/wow/game_data/power_type.d.ts +21 -0
- package/esm/src/wow/game_data/power_type.js +26 -0
- package/esm/src/wow/game_data/profession.d.ts +85 -0
- package/esm/src/wow/game_data/profession.js +79 -0
- package/esm/src/wow/game_data/pvp_season.d.ts +99 -0
- package/esm/src/wow/game_data/pvp_season.js +66 -0
- package/esm/src/wow/game_data/pvp_tier.d.ts +40 -0
- package/esm/src/wow/game_data/pvp_tier.js +39 -0
- package/esm/src/wow/game_data/quest.d.ts +114 -0
- package/esm/src/wow/game_data/quest.js +101 -0
- package/esm/src/wow/game_data/realm.d.ts +42 -0
- package/esm/src/wow/game_data/realm.js +36 -0
- package/esm/src/wow/game_data/region.d.ts +24 -0
- package/esm/src/wow/game_data/region.js +26 -0
- package/esm/src/wow/game_data/reputations.d.ts +50 -0
- package/esm/src/wow/game_data/reputations.js +51 -0
- package/esm/src/wow/game_data/spell.d.ts +33 -0
- package/esm/src/wow/game_data/spell.js +37 -0
- package/esm/src/wow/game_data/talent.d.ts +129 -0
- package/esm/src/wow/game_data/talent.js +90 -0
- package/esm/src/wow/game_data/tech_talent.d.ts +70 -0
- package/esm/src/wow/game_data/tech_talent.js +64 -0
- package/esm/src/wow/game_data/title.d.ts +25 -0
- package/esm/src/wow/game_data/title.js +26 -0
- package/esm/src/wow/game_data/token.d.ts +16 -0
- package/esm/src/wow/game_data/token.js +19 -0
- package/esm/src/wow/game_data/toy.d.ts +24 -0
- package/esm/src/wow/game_data/toy.js +26 -0
- package/esm/src/wow/index.d.ts +53 -0
- package/esm/src/wow/index.js +55 -0
- package/esm/src/wow/profile/character_achievements.d.ts +87 -0
- package/esm/src/wow/profile/character_achievements.js +29 -0
- package/esm/src/wow/profile/character_appearance.d.ts +75 -0
- package/esm/src/wow/profile/character_appearance.js +15 -0
- package/esm/src/wow/profile/character_collections.d.ts +92 -0
- package/esm/src/wow/profile/character_collections.js +71 -0
- package/esm/src/wow/profile/character_encounters.d.ts +77 -0
- package/esm/src/wow/profile/character_encounters.js +43 -0
- package/esm/src/wow/profile/character_equipment.d.ts +132 -0
- package/esm/src/wow/profile/character_equipment.js +15 -0
- package/esm/src/wow/profile/character_hunter_pets.d.ts +21 -0
- package/esm/src/wow/profile/character_hunter_pets.js +15 -0
- package/esm/src/wow/profile/character_media.d.ts +13 -0
- package/esm/src/wow/profile/character_media.js +15 -0
- package/esm/src/wow/profile/character_mythic_keystone_profile.d.ts +58 -0
- package/esm/src/wow/profile/character_mythic_keystone_profile.js +32 -0
- package/esm/src/wow/profile/character_professions.d.ts +26 -0
- package/esm/src/wow/profile/character_professions.js +15 -0
- package/esm/src/wow/profile/character_profile.d.ts +82 -0
- package/esm/src/wow/profile/character_profile.js +40 -0
- package/esm/src/wow/profile/character_pvp.d.ts +51 -0
- package/esm/src/wow/profile/character_pvp.js +30 -0
- package/esm/src/wow/profile/character_quests.d.ts +28 -0
- package/esm/src/wow/profile/character_quests.js +29 -0
- package/esm/src/wow/profile/character_reputations.d.ts +22 -0
- package/esm/src/wow/profile/character_reputations.js +15 -0
- package/esm/src/wow/profile/character_soulbinds.d.ts +30 -0
- package/esm/src/wow/profile/character_soulbinds.js +15 -0
- package/esm/src/wow/profile/character_specializations.d.ts +44 -0
- package/esm/src/wow/profile/character_specializations.js +15 -0
- package/esm/src/wow/profile/character_statistics.d.ts +116 -0
- package/esm/src/wow/profile/character_statistics.js +15 -0
- package/esm/src/wow/profile/character_titles.d.ts +13 -0
- package/esm/src/wow/profile/character_titles.js +15 -0
- package/esm/src/wow/profile/guild.d.ts +117 -0
- package/esm/src/wow/profile/guild.js +57 -0
- package/esm/src/wow/search.d.ts +21 -0
- package/esm/src/wow/search.js +30 -0
- package/package.json +36 -0
- package/script/mod.d.ts +5 -0
- package/script/mod.js +35 -0
- package/script/package.json +3 -0
- package/script/src/hearthstone/game_data/card_backs.d.ts +22 -0
- package/script/src/hearthstone/game_data/card_backs.js +28 -0
- package/script/src/hearthstone/game_data/cards.d.ts +37 -0
- package/script/src/hearthstone/game_data/cards.js +32 -0
- package/script/src/hearthstone/game_data/decks.d.ts +88 -0
- package/script/src/hearthstone/game_data/decks.js +18 -0
- package/script/src/hearthstone/game_data/metadata.d.ts +95 -0
- package/script/src/hearthstone/game_data/metadata.js +16 -0
- package/script/src/hearthstone/index.d.ts +4 -0
- package/script/src/hearthstone/index.js +13 -0
- package/script/src/hearthstone/search.d.ts +20 -0
- package/script/src/hearthstone/search.js +33 -0
- package/script/src/shared/auth.d.ts +24 -0
- package/script/src/shared/auth.js +63 -0
- package/script/src/shared/config.d.ts +40 -0
- package/script/src/shared/config.js +55 -0
- package/script/src/shared/errors.d.ts +44 -0
- package/script/src/shared/errors.js +91 -0
- package/script/src/shared/index.d.ts +4 -0
- package/script/src/shared/index.js +9 -0
- package/script/src/shared/request.d.ts +13 -0
- package/script/src/shared/request.js +47 -0
- package/script/src/shared/types.d.ts +120 -0
- package/script/src/shared/types.js +3 -0
- package/script/src/starcraft2/game_data/league.d.ts +32 -0
- package/script/src/starcraft2/game_data/league.js +25 -0
- package/script/src/starcraft2/index.d.ts +1 -0
- package/script/src/starcraft2/index.js +5 -0
- package/script/src/wow/game_data/achievement.d.ts +84 -0
- package/script/src/wow/game_data/achievement.js +77 -0
- package/script/src/wow/game_data/auction_house.d.ts +64 -0
- package/script/src/wow/game_data/auction_house.js +39 -0
- package/script/src/wow/game_data/azerite_essence.d.ts +49 -0
- package/script/src/wow/game_data/azerite_essence.js +56 -0
- package/script/src/wow/game_data/connected_realm.d.ts +54 -0
- package/script/src/wow/game_data/connected_realm.js +42 -0
- package/script/src/wow/game_data/covenant.d.ts +108 -0
- package/script/src/wow/game_data/covenant.js +99 -0
- package/script/src/wow/game_data/creature.d.ts +97 -0
- package/script/src/wow/game_data/creature.js +111 -0
- package/script/src/wow/game_data/guild_crest.d.ts +55 -0
- package/script/src/wow/game_data/guild_crest.js +45 -0
- package/script/src/wow/game_data/heirloom.d.ts +79 -0
- package/script/src/wow/game_data/heirloom.js +31 -0
- package/script/src/wow/game_data/item.d.ts +166 -0
- package/script/src/wow/game_data/item.js +112 -0
- package/script/src/wow/game_data/journal.d.ts +121 -0
- package/script/src/wow/game_data/journal.js +110 -0
- package/script/src/wow/game_data/keystone_affix.d.ts +34 -0
- package/script/src/wow/game_data/keystone_affix.js +45 -0
- package/script/src/wow/game_data/media_search.d.ts +8 -0
- package/script/src/wow/game_data/media_search.js +14 -0
- package/script/src/wow/game_data/modified_crafting.d.ts +56 -0
- package/script/src/wow/game_data/modified_crafting.js +71 -0
- package/script/src/wow/game_data/mount.d.ts +30 -0
- package/script/src/wow/game_data/mount.js +36 -0
- package/script/src/wow/game_data/mythic_keystone_dungeon.d.ts +91 -0
- package/script/src/wow/game_data/mythic_keystone_dungeon.js +98 -0
- package/script/src/wow/game_data/mythic_keystone_leaderboard.d.ts +58 -0
- package/script/src/wow/game_data/mythic_keystone_leaderboard.js +34 -0
- package/script/src/wow/game_data/mythic_raid_leaderboard.d.ts +31 -0
- package/script/src/wow/game_data/mythic_raid_leaderboard.js +19 -0
- package/script/src/wow/game_data/pet.d.ts +91 -0
- package/script/src/wow/game_data/pet.js +86 -0
- package/script/src/wow/game_data/playable_class.d.ts +57 -0
- package/script/src/wow/game_data/playable_class.js +59 -0
- package/script/src/wow/game_data/playable_race.d.ts +29 -0
- package/script/src/wow/game_data/playable_race.js +31 -0
- package/script/src/wow/game_data/power_type.d.ts +21 -0
- package/script/src/wow/game_data/power_type.js +31 -0
- package/script/src/wow/game_data/profession.d.ts +85 -0
- package/script/src/wow/game_data/profession.js +88 -0
- package/script/src/wow/game_data/pvp_season.d.ts +99 -0
- package/script/src/wow/game_data/pvp_season.js +74 -0
- package/script/src/wow/game_data/pvp_tier.d.ts +40 -0
- package/script/src/wow/game_data/pvp_tier.js +45 -0
- package/script/src/wow/game_data/quest.d.ts +114 -0
- package/script/src/wow/game_data/quest.js +112 -0
- package/script/src/wow/game_data/realm.d.ts +42 -0
- package/script/src/wow/game_data/realm.js +42 -0
- package/script/src/wow/game_data/region.d.ts +24 -0
- package/script/src/wow/game_data/region.js +31 -0
- package/script/src/wow/game_data/reputations.d.ts +50 -0
- package/script/src/wow/game_data/reputations.js +58 -0
- package/script/src/wow/game_data/spell.d.ts +33 -0
- package/script/src/wow/game_data/spell.js +43 -0
- package/script/src/wow/game_data/talent.d.ts +129 -0
- package/script/src/wow/game_data/talent.js +100 -0
- package/script/src/wow/game_data/tech_talent.d.ts +70 -0
- package/script/src/wow/game_data/tech_talent.js +72 -0
- package/script/src/wow/game_data/title.d.ts +25 -0
- package/script/src/wow/game_data/title.js +31 -0
- package/script/src/wow/game_data/token.d.ts +16 -0
- package/script/src/wow/game_data/token.js +23 -0
- package/script/src/wow/game_data/toy.d.ts +24 -0
- package/script/src/wow/game_data/toy.js +31 -0
- package/script/src/wow/index.d.ts +53 -0
- package/script/src/wow/index.js +228 -0
- package/script/src/wow/profile/character_achievements.d.ts +87 -0
- package/script/src/wow/profile/character_achievements.js +34 -0
- package/script/src/wow/profile/character_appearance.d.ts +75 -0
- package/script/src/wow/profile/character_appearance.js +19 -0
- package/script/src/wow/profile/character_collections.d.ts +92 -0
- package/script/src/wow/profile/character_collections.js +79 -0
- package/script/src/wow/profile/character_encounters.d.ts +77 -0
- package/script/src/wow/profile/character_encounters.js +49 -0
- package/script/src/wow/profile/character_equipment.d.ts +132 -0
- package/script/src/wow/profile/character_equipment.js +19 -0
- package/script/src/wow/profile/character_hunter_pets.d.ts +21 -0
- package/script/src/wow/profile/character_hunter_pets.js +19 -0
- package/script/src/wow/profile/character_media.d.ts +13 -0
- package/script/src/wow/profile/character_media.js +19 -0
- package/script/src/wow/profile/character_mythic_keystone_profile.d.ts +58 -0
- package/script/src/wow/profile/character_mythic_keystone_profile.js +37 -0
- package/script/src/wow/profile/character_professions.d.ts +26 -0
- package/script/src/wow/profile/character_professions.js +19 -0
- package/script/src/wow/profile/character_profile.d.ts +82 -0
- package/script/src/wow/profile/character_profile.js +45 -0
- package/script/src/wow/profile/character_pvp.d.ts +51 -0
- package/script/src/wow/profile/character_pvp.js +35 -0
- package/script/src/wow/profile/character_quests.d.ts +28 -0
- package/script/src/wow/profile/character_quests.js +34 -0
- package/script/src/wow/profile/character_reputations.d.ts +22 -0
- package/script/src/wow/profile/character_reputations.js +19 -0
- package/script/src/wow/profile/character_soulbinds.d.ts +30 -0
- package/script/src/wow/profile/character_soulbinds.js +19 -0
- package/script/src/wow/profile/character_specializations.d.ts +44 -0
- package/script/src/wow/profile/character_specializations.js +19 -0
- package/script/src/wow/profile/character_statistics.d.ts +116 -0
- package/script/src/wow/profile/character_statistics.js +19 -0
- package/script/src/wow/profile/character_titles.d.ts +13 -0
- package/script/src/wow/profile/character_titles.js +19 -0
- package/script/src/wow/profile/guild.d.ts +117 -0
- package/script/src/wow/profile/guild.js +64 -0
- package/script/src/wow/search.d.ts +21 -0
- package/script/src/wow/search.js +34 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Character, KeyId, KeyNameId, LinkSelfHref } from "../../shared/index.js";
|
|
2
|
+
export interface MythicRating {
|
|
3
|
+
color: {
|
|
4
|
+
r: number;
|
|
5
|
+
g: number;
|
|
6
|
+
b: number;
|
|
7
|
+
a: number;
|
|
8
|
+
};
|
|
9
|
+
rating: number;
|
|
10
|
+
}
|
|
11
|
+
export interface CharacterMythicKeystoneProfile extends LinkSelfHref {
|
|
12
|
+
current_period: {
|
|
13
|
+
period: KeyId;
|
|
14
|
+
};
|
|
15
|
+
seasons: KeyId[];
|
|
16
|
+
character: Character;
|
|
17
|
+
current_mythic_rating: MythicRating;
|
|
18
|
+
}
|
|
19
|
+
export interface CharacterMythicKeystoneSeasonDetails extends LinkSelfHref {
|
|
20
|
+
season: KeyId;
|
|
21
|
+
best_runs: {
|
|
22
|
+
completed_timestamp: number;
|
|
23
|
+
duration: number;
|
|
24
|
+
keystone_level: number;
|
|
25
|
+
keystone_affixes: KeyNameId[];
|
|
26
|
+
members: {
|
|
27
|
+
character: Character;
|
|
28
|
+
specialization: KeyNameId;
|
|
29
|
+
race: KeyNameId;
|
|
30
|
+
equipped_item_level: number;
|
|
31
|
+
}[];
|
|
32
|
+
dungeon: KeyNameId;
|
|
33
|
+
is_completed_within_time: boolean;
|
|
34
|
+
mythic_rating: MythicRating;
|
|
35
|
+
map_rating: MythicRating;
|
|
36
|
+
}[];
|
|
37
|
+
character: Character;
|
|
38
|
+
mythic_rating: MythicRating;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Returns the Mythic Keystone profile index for a character.
|
|
42
|
+
*
|
|
43
|
+
* @param realmSlug - The slug of the realm.
|
|
44
|
+
* @param characterName - The lowercase name of the character.
|
|
45
|
+
* @returns A promise that resolves to an object representing a Mythic Keystone profile.
|
|
46
|
+
*/
|
|
47
|
+
export declare function characterMythicKeystoneProfile(realmSlug: string, characterName: string): Promise<CharacterMythicKeystoneProfile>;
|
|
48
|
+
/**
|
|
49
|
+
* Returns the Mythic Keystone season details for a character.
|
|
50
|
+
*
|
|
51
|
+
* Returns a 404 Not Found for characters that have not yet completed a Mythic Keystone dungeon for the specified season.
|
|
52
|
+
*
|
|
53
|
+
* @param realmSlug - The slug of the realm.
|
|
54
|
+
* @param characterName - The lowercase name of the character.
|
|
55
|
+
* @param seasonId - The lowercase name of the character.
|
|
56
|
+
* @returns A promise that resolves to an object representing a Mythic Keystone season details.
|
|
57
|
+
*/
|
|
58
|
+
export declare function characterMythicKeystoneSeasonDetails(realmSlug: string, characterName: string, seasonId: number): Promise<CharacterMythicKeystoneSeasonDetails>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.characterMythicKeystoneSeasonDetails = exports.characterMythicKeystoneProfile = void 0;
|
|
4
|
+
const index_js_1 = require("../../shared/index.js");
|
|
5
|
+
/**
|
|
6
|
+
* Returns the Mythic Keystone profile index for a character.
|
|
7
|
+
*
|
|
8
|
+
* @param realmSlug - The slug of the realm.
|
|
9
|
+
* @param characterName - The lowercase name of the character.
|
|
10
|
+
* @returns A promise that resolves to an object representing a Mythic Keystone profile.
|
|
11
|
+
*/
|
|
12
|
+
async function characterMythicKeystoneProfile(realmSlug, characterName) {
|
|
13
|
+
return await (0, index_js_1.request)({
|
|
14
|
+
method: "GET",
|
|
15
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/mythic-keystone-profile`,
|
|
16
|
+
namespace: "profile",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
exports.characterMythicKeystoneProfile = characterMythicKeystoneProfile;
|
|
20
|
+
/**
|
|
21
|
+
* Returns the Mythic Keystone season details for a character.
|
|
22
|
+
*
|
|
23
|
+
* Returns a 404 Not Found for characters that have not yet completed a Mythic Keystone dungeon for the specified season.
|
|
24
|
+
*
|
|
25
|
+
* @param realmSlug - The slug of the realm.
|
|
26
|
+
* @param characterName - The lowercase name of the character.
|
|
27
|
+
* @param seasonId - The lowercase name of the character.
|
|
28
|
+
* @returns A promise that resolves to an object representing a Mythic Keystone season details.
|
|
29
|
+
*/
|
|
30
|
+
async function characterMythicKeystoneSeasonDetails(realmSlug, characterName, seasonId) {
|
|
31
|
+
return await (0, index_js_1.request)({
|
|
32
|
+
method: "GET",
|
|
33
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/mythic-keystone-profile/season/${seasonId}`,
|
|
34
|
+
namespace: "profile",
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
exports.characterMythicKeystoneSeasonDetails = characterMythicKeystoneSeasonDetails;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Character, KeyNameId, LinkSelfHref, NameId } from "../../shared/index.js";
|
|
2
|
+
export interface Tier {
|
|
3
|
+
skill_points: number;
|
|
4
|
+
max_skill_points: number;
|
|
5
|
+
tier: NameId;
|
|
6
|
+
known_recipes: KeyNameId[];
|
|
7
|
+
}
|
|
8
|
+
export interface Profession {
|
|
9
|
+
profession: KeyNameId;
|
|
10
|
+
skill_points?: number;
|
|
11
|
+
max_skill_points?: number;
|
|
12
|
+
tiers?: Tier[];
|
|
13
|
+
}
|
|
14
|
+
export interface CharacterProfessions extends LinkSelfHref {
|
|
15
|
+
character: Character;
|
|
16
|
+
primaries: Profession[];
|
|
17
|
+
secondaries: Profession[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Returns a summary of professions for a character.
|
|
21
|
+
*
|
|
22
|
+
* @param realmSlug - The slug of the realm.
|
|
23
|
+
* @param characterName - The lowercase name of the character.
|
|
24
|
+
* @returns A promise that resolves to an object representing a summary of professions for a character.
|
|
25
|
+
*/
|
|
26
|
+
export declare function characterProfessions(realmSlug: string, characterName: string): Promise<CharacterProfessions>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.characterProfessions = void 0;
|
|
4
|
+
const index_js_1 = require("../../shared/index.js");
|
|
5
|
+
/**
|
|
6
|
+
* Returns a summary of professions for a character.
|
|
7
|
+
*
|
|
8
|
+
* @param realmSlug - The slug of the realm.
|
|
9
|
+
* @param characterName - The lowercase name of the character.
|
|
10
|
+
* @returns A promise that resolves to an object representing a summary of professions for a character.
|
|
11
|
+
*/
|
|
12
|
+
async function characterProfessions(realmSlug, characterName) {
|
|
13
|
+
return await (0, index_js_1.request)({
|
|
14
|
+
method: "GET",
|
|
15
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/professions`,
|
|
16
|
+
namespace: "profile",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
exports.characterProfessions = characterProfessions;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
|
|
2
|
+
export interface Href {
|
|
3
|
+
href: string;
|
|
4
|
+
}
|
|
5
|
+
export interface Realm extends KeyNameId {
|
|
6
|
+
slug: string;
|
|
7
|
+
}
|
|
8
|
+
export interface CharacterProfile extends LinkSelfHref {
|
|
9
|
+
id: number;
|
|
10
|
+
name: LocalizedString;
|
|
11
|
+
gender: TypeName;
|
|
12
|
+
faction: TypeName;
|
|
13
|
+
race: KeyNameId;
|
|
14
|
+
character_class: KeyNameId;
|
|
15
|
+
active_spec: KeyNameId;
|
|
16
|
+
realm: Realm;
|
|
17
|
+
guild: {
|
|
18
|
+
key: Href;
|
|
19
|
+
name: LocalizedString;
|
|
20
|
+
id: number;
|
|
21
|
+
realm: Realm;
|
|
22
|
+
faction: TypeName;
|
|
23
|
+
};
|
|
24
|
+
level: number;
|
|
25
|
+
experience: number;
|
|
26
|
+
achievement_points: number;
|
|
27
|
+
achievements: Href;
|
|
28
|
+
titles: Href;
|
|
29
|
+
pvp_summary: Href;
|
|
30
|
+
encounters: Href;
|
|
31
|
+
media: Href;
|
|
32
|
+
last_login_timestamp: number;
|
|
33
|
+
average_item_level: number;
|
|
34
|
+
equipped_item_level: number;
|
|
35
|
+
specializations: Href;
|
|
36
|
+
statistics: Href;
|
|
37
|
+
mythic_keystone_profile: Href;
|
|
38
|
+
equipment: Href;
|
|
39
|
+
appearance: Href;
|
|
40
|
+
collections: Href;
|
|
41
|
+
reputations: Href;
|
|
42
|
+
quests: Href;
|
|
43
|
+
achievements_statistics: Href;
|
|
44
|
+
professions: Href;
|
|
45
|
+
covenant_progress: {
|
|
46
|
+
chosen_covenant: KeyNameId;
|
|
47
|
+
renown_level: number;
|
|
48
|
+
soulbinds: Href;
|
|
49
|
+
};
|
|
50
|
+
name_search: string;
|
|
51
|
+
}
|
|
52
|
+
export interface CharacterProfileStatus extends LinkSelfHref {
|
|
53
|
+
id: number;
|
|
54
|
+
is_valid: boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Returns a profile summary for a character.
|
|
58
|
+
*
|
|
59
|
+
* @param realmSlug - The slug of the realm.
|
|
60
|
+
* @param characterName - The lowercase name of the character.
|
|
61
|
+
* @returns A promise that resolves to an object representing a profile summary.
|
|
62
|
+
*/
|
|
63
|
+
export declare function characterProfile(realmSlug: string, characterName: string): Promise<CharacterProfile>;
|
|
64
|
+
/**
|
|
65
|
+
* Returns the status and a unique ID for a character. A client should delete information about a character from their application if any of the following conditions occur:
|
|
66
|
+
*
|
|
67
|
+
* an HTTP 404 Not Found error is returned
|
|
68
|
+
* the is_valid value is false
|
|
69
|
+
* the returned character ID doesn't match the previously recorded value for the character
|
|
70
|
+
*
|
|
71
|
+
* The following example illustrates how to use this endpoint:
|
|
72
|
+
*
|
|
73
|
+
* A client requests and stores information about a character, including its unique character ID and the timestamp of the request.
|
|
74
|
+
* After 30 days, the client makes a request to the status endpoint to verify if the character information is still valid.
|
|
75
|
+
* If character cannot be found, is not valid, or the characters IDs do not match, the client removes the information from their application.
|
|
76
|
+
* If the character is valid and the character IDs match, the client retains the data for another 30 days.
|
|
77
|
+
*
|
|
78
|
+
* @param realmSlug - The slug of the realm.
|
|
79
|
+
* @param characterName - The lowercase name of the character.
|
|
80
|
+
* @returns A promise that resolves to an object representing a profile summary status.
|
|
81
|
+
*/
|
|
82
|
+
export declare function characterProfileStatus(realmSlug: string, characterName: string): Promise<CharacterProfileStatus>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.characterProfileStatus = exports.characterProfile = void 0;
|
|
4
|
+
const index_js_1 = require("../../shared/index.js");
|
|
5
|
+
/**
|
|
6
|
+
* Returns a profile summary for a character.
|
|
7
|
+
*
|
|
8
|
+
* @param realmSlug - The slug of the realm.
|
|
9
|
+
* @param characterName - The lowercase name of the character.
|
|
10
|
+
* @returns A promise that resolves to an object representing a profile summary.
|
|
11
|
+
*/
|
|
12
|
+
async function characterProfile(realmSlug, characterName) {
|
|
13
|
+
return await (0, index_js_1.request)({
|
|
14
|
+
method: "GET",
|
|
15
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}`,
|
|
16
|
+
namespace: "profile",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
exports.characterProfile = characterProfile;
|
|
20
|
+
/**
|
|
21
|
+
* Returns the status and a unique ID for a character. A client should delete information about a character from their application if any of the following conditions occur:
|
|
22
|
+
*
|
|
23
|
+
* an HTTP 404 Not Found error is returned
|
|
24
|
+
* the is_valid value is false
|
|
25
|
+
* the returned character ID doesn't match the previously recorded value for the character
|
|
26
|
+
*
|
|
27
|
+
* The following example illustrates how to use this endpoint:
|
|
28
|
+
*
|
|
29
|
+
* A client requests and stores information about a character, including its unique character ID and the timestamp of the request.
|
|
30
|
+
* After 30 days, the client makes a request to the status endpoint to verify if the character information is still valid.
|
|
31
|
+
* If character cannot be found, is not valid, or the characters IDs do not match, the client removes the information from their application.
|
|
32
|
+
* If the character is valid and the character IDs match, the client retains the data for another 30 days.
|
|
33
|
+
*
|
|
34
|
+
* @param realmSlug - The slug of the realm.
|
|
35
|
+
* @param characterName - The lowercase name of the character.
|
|
36
|
+
* @returns A promise that resolves to an object representing a profile summary status.
|
|
37
|
+
*/
|
|
38
|
+
async function characterProfileStatus(realmSlug, characterName) {
|
|
39
|
+
return await (0, index_js_1.request)({
|
|
40
|
+
method: "GET",
|
|
41
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/status`,
|
|
42
|
+
namespace: "profile",
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
exports.characterProfileStatus = characterProfileStatus;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { Character, KeyId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
|
|
2
|
+
export interface MatchStatistic {
|
|
3
|
+
played: number;
|
|
4
|
+
won: number;
|
|
5
|
+
lost: number;
|
|
6
|
+
}
|
|
7
|
+
export interface CharacterPvpBracketStatistics extends LinkSelfHref {
|
|
8
|
+
character: Character;
|
|
9
|
+
faction: TypeName;
|
|
10
|
+
bracket: {
|
|
11
|
+
id: number;
|
|
12
|
+
type: string;
|
|
13
|
+
};
|
|
14
|
+
rating: number;
|
|
15
|
+
season: KeyId;
|
|
16
|
+
tier: KeyId;
|
|
17
|
+
season_match_statistics: MatchStatistic;
|
|
18
|
+
weekly_match_statistics: MatchStatistic;
|
|
19
|
+
}
|
|
20
|
+
export interface CharacterPvpSummary extends LinkSelfHref {
|
|
21
|
+
brackets: {
|
|
22
|
+
href: string;
|
|
23
|
+
}[];
|
|
24
|
+
honor_level: number;
|
|
25
|
+
pvp_map_statistics: {
|
|
26
|
+
world_map: {
|
|
27
|
+
name: LocalizedString;
|
|
28
|
+
id: number;
|
|
29
|
+
};
|
|
30
|
+
match_statistics: MatchStatistic;
|
|
31
|
+
}[];
|
|
32
|
+
honorable_kills: number;
|
|
33
|
+
character: Character;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Returns the PvP bracket statistics for a character.
|
|
37
|
+
*
|
|
38
|
+
* @param realmSlug - The slug of the realm.
|
|
39
|
+
* @param characterName - The lowercase name of the character.
|
|
40
|
+
* @param pvpBracket - The PvP bracket type.
|
|
41
|
+
* @returns A promise that resolves to an object representing the PvP bracket statistics for a character.
|
|
42
|
+
*/
|
|
43
|
+
export declare function characterPvpBracketStatistics(realmSlug: string, characterName: string, pvpBracket: string): Promise<CharacterPvpBracketStatistics>;
|
|
44
|
+
/**
|
|
45
|
+
* Returns a PvP summary for a character.
|
|
46
|
+
*
|
|
47
|
+
* @param realmSlug - The slug of the realm.
|
|
48
|
+
* @param characterName - The lowercase name of the character.
|
|
49
|
+
* @returns A promise that resolves to an object representing the PvP summary for a character.
|
|
50
|
+
*/
|
|
51
|
+
export declare function characterPvpSummary(realmSlug: string, characterName: string): Promise<CharacterPvpSummary>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.characterPvpSummary = exports.characterPvpBracketStatistics = void 0;
|
|
4
|
+
const index_js_1 = require("../../shared/index.js");
|
|
5
|
+
/**
|
|
6
|
+
* Returns the PvP bracket statistics for a character.
|
|
7
|
+
*
|
|
8
|
+
* @param realmSlug - The slug of the realm.
|
|
9
|
+
* @param characterName - The lowercase name of the character.
|
|
10
|
+
* @param pvpBracket - The PvP bracket type.
|
|
11
|
+
* @returns A promise that resolves to an object representing the PvP bracket statistics for a character.
|
|
12
|
+
*/
|
|
13
|
+
async function characterPvpBracketStatistics(realmSlug, characterName, pvpBracket) {
|
|
14
|
+
return await (0, index_js_1.request)({
|
|
15
|
+
method: "GET",
|
|
16
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/pvp-bracket/${pvpBracket}`,
|
|
17
|
+
namespace: "profile",
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
exports.characterPvpBracketStatistics = characterPvpBracketStatistics;
|
|
21
|
+
/**
|
|
22
|
+
* Returns a PvP summary for a character.
|
|
23
|
+
*
|
|
24
|
+
* @param realmSlug - The slug of the realm.
|
|
25
|
+
* @param characterName - The lowercase name of the character.
|
|
26
|
+
* @returns A promise that resolves to an object representing the PvP summary for a character.
|
|
27
|
+
*/
|
|
28
|
+
async function characterPvpSummary(realmSlug, characterName) {
|
|
29
|
+
return await (0, index_js_1.request)({
|
|
30
|
+
method: "GET",
|
|
31
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/pvp-summary`,
|
|
32
|
+
namespace: "profile",
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
exports.characterPvpSummary = characterPvpSummary;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Character, KeyNameId, LinkSelfHref } from "../../shared/index.js";
|
|
2
|
+
export interface CharacterQuests extends LinkSelfHref {
|
|
3
|
+
character: Character;
|
|
4
|
+
in_progress: KeyNameId[];
|
|
5
|
+
completed: {
|
|
6
|
+
href: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export interface CharacterCompletedQuests extends LinkSelfHref {
|
|
10
|
+
character: Character;
|
|
11
|
+
quests: KeyNameId[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Returns a character's active quests as well as a link to the character's completed quests.
|
|
15
|
+
*
|
|
16
|
+
* @param realmSlug - The slug of the realm.
|
|
17
|
+
* @param characterName - The lowercase name of the character.
|
|
18
|
+
* @returns A promise that resolves to an object representing a character's active quests as well as a link to the character's completed quests.
|
|
19
|
+
*/
|
|
20
|
+
export declare function characterQuests(realmSlug: string, characterName: string): Promise<CharacterQuests>;
|
|
21
|
+
/**
|
|
22
|
+
* Returns a list of quests that a character has completed.
|
|
23
|
+
*
|
|
24
|
+
* @param realmSlug - The slug of the realm.
|
|
25
|
+
* @param characterName - The lowercase name of the character.
|
|
26
|
+
* @returns A promise that resolves to an object representing a list of quests that a character has completed.
|
|
27
|
+
*/
|
|
28
|
+
export declare function characterCompletedQuests(realmSlug: string, characterName: string): Promise<CharacterCompletedQuests>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.characterCompletedQuests = exports.characterQuests = void 0;
|
|
4
|
+
const index_js_1 = require("../../shared/index.js");
|
|
5
|
+
/**
|
|
6
|
+
* Returns a character's active quests as well as a link to the character's completed quests.
|
|
7
|
+
*
|
|
8
|
+
* @param realmSlug - The slug of the realm.
|
|
9
|
+
* @param characterName - The lowercase name of the character.
|
|
10
|
+
* @returns A promise that resolves to an object representing a character's active quests as well as a link to the character's completed quests.
|
|
11
|
+
*/
|
|
12
|
+
async function characterQuests(realmSlug, characterName) {
|
|
13
|
+
return await (0, index_js_1.request)({
|
|
14
|
+
method: "GET",
|
|
15
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/quests`,
|
|
16
|
+
namespace: "profile",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
exports.characterQuests = characterQuests;
|
|
20
|
+
/**
|
|
21
|
+
* Returns a list of quests that a character has completed.
|
|
22
|
+
*
|
|
23
|
+
* @param realmSlug - The slug of the realm.
|
|
24
|
+
* @param characterName - The lowercase name of the character.
|
|
25
|
+
* @returns A promise that resolves to an object representing a list of quests that a character has completed.
|
|
26
|
+
*/
|
|
27
|
+
async function characterCompletedQuests(realmSlug, characterName) {
|
|
28
|
+
return await (0, index_js_1.request)({
|
|
29
|
+
method: "GET",
|
|
30
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/quests/completed`,
|
|
31
|
+
namespace: "profile",
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
exports.characterCompletedQuests = characterCompletedQuests;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Character, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
|
|
2
|
+
export interface CharacterReputations extends LinkSelfHref {
|
|
3
|
+
character: Character;
|
|
4
|
+
reputations: {
|
|
5
|
+
faction: KeyNameId;
|
|
6
|
+
standing: {
|
|
7
|
+
raw: number;
|
|
8
|
+
value: number;
|
|
9
|
+
max: number;
|
|
10
|
+
tier: number;
|
|
11
|
+
name: LocalizedString;
|
|
12
|
+
};
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Returns a summary of a character's reputations.
|
|
17
|
+
*
|
|
18
|
+
* @param realmSlug - The slug of the realm.
|
|
19
|
+
* @param characterName - The lowercase name of the character.
|
|
20
|
+
* @returns A promise that resolves to an object representing a character's reputations.
|
|
21
|
+
*/
|
|
22
|
+
export declare function characterReputations(realmSlug: string, characterName: string): Promise<CharacterReputations>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.characterReputations = void 0;
|
|
4
|
+
const index_js_1 = require("../../shared/index.js");
|
|
5
|
+
/**
|
|
6
|
+
* Returns a summary of a character's reputations.
|
|
7
|
+
*
|
|
8
|
+
* @param realmSlug - The slug of the realm.
|
|
9
|
+
* @param characterName - The lowercase name of the character.
|
|
10
|
+
* @returns A promise that resolves to an object representing a character's reputations.
|
|
11
|
+
*/
|
|
12
|
+
async function characterReputations(realmSlug, characterName) {
|
|
13
|
+
return await (0, index_js_1.request)({
|
|
14
|
+
method: "GET",
|
|
15
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/reputations`,
|
|
16
|
+
namespace: "profile",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
exports.characterReputations = characterReputations;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Character, KeyNameId, LinkSelfHref, TypeName } from "../../shared/index.js";
|
|
2
|
+
export interface CharacterSoulbinds extends LinkSelfHref {
|
|
3
|
+
character: Character;
|
|
4
|
+
chosen_covenant: KeyNameId;
|
|
5
|
+
renown_level: number;
|
|
6
|
+
soulbinds: {
|
|
7
|
+
soulbind: KeyNameId;
|
|
8
|
+
traits?: {
|
|
9
|
+
trait?: KeyNameId;
|
|
10
|
+
conduit_socket?: {
|
|
11
|
+
type: TypeName;
|
|
12
|
+
socket: {
|
|
13
|
+
conduit: KeyNameId;
|
|
14
|
+
rank: number;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
tier: number;
|
|
18
|
+
display_order: number;
|
|
19
|
+
}[];
|
|
20
|
+
is_active?: boolean;
|
|
21
|
+
}[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns a character's soulbinds.
|
|
25
|
+
*
|
|
26
|
+
* @param realmSlug - The slug of the realm.
|
|
27
|
+
* @param characterName - The lowercase name of the character.
|
|
28
|
+
* @returns A promise that resolves to an object representing a character's soulbinds.
|
|
29
|
+
*/
|
|
30
|
+
export declare function characterSoulbinds(realmSlug: string, characterName: string): Promise<CharacterSoulbinds>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.characterSoulbinds = void 0;
|
|
4
|
+
const index_js_1 = require("../../shared/index.js");
|
|
5
|
+
/**
|
|
6
|
+
* Returns a character's soulbinds.
|
|
7
|
+
*
|
|
8
|
+
* @param realmSlug - The slug of the realm.
|
|
9
|
+
* @param characterName - The lowercase name of the character.
|
|
10
|
+
* @returns A promise that resolves to an object representing a character's soulbinds.
|
|
11
|
+
*/
|
|
12
|
+
async function characterSoulbinds(realmSlug, characterName) {
|
|
13
|
+
return await (0, index_js_1.request)({
|
|
14
|
+
method: "GET",
|
|
15
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/soulbinds`,
|
|
16
|
+
namespace: "profile",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
exports.characterSoulbinds = characterSoulbinds;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { Character, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
|
|
2
|
+
export interface Detail {
|
|
3
|
+
talent: KeyNameId;
|
|
4
|
+
spell_tooltip: {
|
|
5
|
+
spell: KeyNameId;
|
|
6
|
+
description: LocalizedString;
|
|
7
|
+
cast_time: LocalizedString;
|
|
8
|
+
power_cost?: LocalizedString;
|
|
9
|
+
cooldown?: LocalizedString;
|
|
10
|
+
range?: LocalizedString;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface Talent {
|
|
14
|
+
id: number;
|
|
15
|
+
rank: number;
|
|
16
|
+
tooltip: Detail;
|
|
17
|
+
default_points?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface CharacterSpecializations extends LinkSelfHref {
|
|
20
|
+
specializations: {
|
|
21
|
+
specialization: KeyNameId;
|
|
22
|
+
glyphs?: KeyNameId[];
|
|
23
|
+
pvp_talent_slots: {
|
|
24
|
+
selected: Detail;
|
|
25
|
+
slot_number: number;
|
|
26
|
+
}[];
|
|
27
|
+
loadouts: {
|
|
28
|
+
is_active: boolean;
|
|
29
|
+
talent_loadout_code: string;
|
|
30
|
+
selected_class_talents: Talent[];
|
|
31
|
+
selected_spec_talents: Talent[];
|
|
32
|
+
}[];
|
|
33
|
+
}[];
|
|
34
|
+
active_specialization: KeyNameId;
|
|
35
|
+
character: Character;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Returns a summary of a character's specializations.
|
|
39
|
+
*
|
|
40
|
+
* @param realmSlug - The slug of the realm.
|
|
41
|
+
* @param characterName - The lowercase name of the character.
|
|
42
|
+
* @returns A promise that resolves to an object representing a summary of a character's specializations.
|
|
43
|
+
*/
|
|
44
|
+
export declare function characterSpecializations(realmSlug: string, characterName: string): Promise<CharacterSpecializations>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.characterSpecializations = void 0;
|
|
4
|
+
const index_js_1 = require("../../shared/index.js");
|
|
5
|
+
/**
|
|
6
|
+
* Returns a summary of a character's specializations.
|
|
7
|
+
*
|
|
8
|
+
* @param realmSlug - The slug of the realm.
|
|
9
|
+
* @param characterName - The lowercase name of the character.
|
|
10
|
+
* @returns A promise that resolves to an object representing a summary of a character's specializations.
|
|
11
|
+
*/
|
|
12
|
+
async function characterSpecializations(realmSlug, characterName) {
|
|
13
|
+
return await (0, index_js_1.request)({
|
|
14
|
+
method: "GET",
|
|
15
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/specializations`,
|
|
16
|
+
namespace: "profile",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
exports.characterSpecializations = characterSpecializations;
|