@pinta365/blizzard_api 0.3.7 → 0.4.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/esm/mod.d.ts +3 -2
- package/esm/mod.js +3 -2
- package/package.json +1 -1
- package/script/mod.d.ts +3 -2
- package/script/mod.js +6 -1
- package/esm/src/hearthstone/game_data/card_backs.d.ts +0 -22
- package/esm/src/hearthstone/game_data/card_backs.js +0 -23
- package/esm/src/hearthstone/game_data/cards.d.ts +0 -37
- package/esm/src/hearthstone/game_data/cards.js +0 -27
- package/esm/src/hearthstone/game_data/decks.d.ts +0 -88
- package/esm/src/hearthstone/game_data/decks.js +0 -14
- package/esm/src/hearthstone/game_data/metadata.d.ts +0 -95
- package/esm/src/hearthstone/game_data/metadata.js +0 -12
- package/esm/src/hearthstone/index.d.ts +0 -4
- package/esm/src/hearthstone/index.js +0 -4
- package/esm/src/hearthstone/search.d.ts +0 -20
- package/esm/src/hearthstone/search.js +0 -29
- package/esm/src/shared/auth.d.ts +0 -24
- package/esm/src/shared/auth.js +0 -58
- package/esm/src/shared/config.d.ts +0 -40
- package/esm/src/shared/config.js +0 -48
- package/esm/src/shared/errors.d.ts +0 -44
- package/esm/src/shared/errors.js +0 -83
- package/esm/src/shared/index.d.ts +0 -4
- package/esm/src/shared/index.js +0 -3
- package/esm/src/shared/request.d.ts +0 -13
- package/esm/src/shared/request.js +0 -46
- package/esm/src/shared/types.d.ts +0 -120
- package/esm/src/shared/types.js +0 -2
- package/esm/src/starcraft2/game_data/league.d.ts +0 -32
- package/esm/src/starcraft2/game_data/league.js +0 -21
- package/esm/src/starcraft2/index.d.ts +0 -1
- package/esm/src/starcraft2/index.js +0 -1
- package/esm/src/wow/game_data/achievement.d.ts +0 -84
- package/esm/src/wow/game_data/achievement.js +0 -69
- package/esm/src/wow/game_data/auction_house.d.ts +0 -64
- package/esm/src/wow/game_data/auction_house.js +0 -34
- package/esm/src/wow/game_data/azerite_essence.d.ts +0 -49
- package/esm/src/wow/game_data/azerite_essence.js +0 -49
- package/esm/src/wow/game_data/connected_realm.d.ts +0 -54
- package/esm/src/wow/game_data/connected_realm.js +0 -36
- package/esm/src/wow/game_data/covenant.d.ts +0 -108
- package/esm/src/wow/game_data/covenant.js +0 -89
- package/esm/src/wow/game_data/creature.d.ts +0 -97
- package/esm/src/wow/game_data/creature.js +0 -100
- package/esm/src/wow/game_data/guild_crest.d.ts +0 -55
- package/esm/src/wow/game_data/guild_crest.js +0 -39
- package/esm/src/wow/game_data/heirloom.d.ts +0 -79
- package/esm/src/wow/game_data/heirloom.js +0 -26
- package/esm/src/wow/game_data/item.d.ts +0 -166
- package/esm/src/wow/game_data/item.js +0 -101
- package/esm/src/wow/game_data/journal.d.ts +0 -121
- package/esm/src/wow/game_data/journal.js +0 -99
- package/esm/src/wow/game_data/keystone_affix.d.ts +0 -34
- package/esm/src/wow/game_data/keystone_affix.js +0 -39
- package/esm/src/wow/game_data/media_search.d.ts +0 -8
- package/esm/src/wow/game_data/media_search.js +0 -10
- package/esm/src/wow/game_data/modified_crafting.d.ts +0 -56
- package/esm/src/wow/game_data/modified_crafting.js +0 -63
- package/esm/src/wow/game_data/mount.d.ts +0 -30
- package/esm/src/wow/game_data/mount.js +0 -30
- package/esm/src/wow/game_data/mythic_keystone_dungeon.d.ts +0 -91
- package/esm/src/wow/game_data/mythic_keystone_dungeon.js +0 -88
- package/esm/src/wow/game_data/mythic_keystone_leaderboard.d.ts +0 -58
- package/esm/src/wow/game_data/mythic_keystone_leaderboard.js +0 -29
- package/esm/src/wow/game_data/mythic_raid_leaderboard.d.ts +0 -31
- package/esm/src/wow/game_data/mythic_raid_leaderboard.js +0 -15
- package/esm/src/wow/game_data/pet.d.ts +0 -91
- package/esm/src/wow/game_data/pet.js +0 -77
- package/esm/src/wow/game_data/playable_class.d.ts +0 -57
- package/esm/src/wow/game_data/playable_class.js +0 -52
- package/esm/src/wow/game_data/playable_race.d.ts +0 -29
- package/esm/src/wow/game_data/playable_race.js +0 -26
- package/esm/src/wow/game_data/power_type.d.ts +0 -21
- package/esm/src/wow/game_data/power_type.js +0 -26
- package/esm/src/wow/game_data/profession.d.ts +0 -85
- package/esm/src/wow/game_data/profession.js +0 -79
- package/esm/src/wow/game_data/pvp_season.d.ts +0 -99
- package/esm/src/wow/game_data/pvp_season.js +0 -66
- package/esm/src/wow/game_data/pvp_tier.d.ts +0 -40
- package/esm/src/wow/game_data/pvp_tier.js +0 -39
- package/esm/src/wow/game_data/quest.d.ts +0 -114
- package/esm/src/wow/game_data/quest.js +0 -101
- package/esm/src/wow/game_data/realm.d.ts +0 -42
- package/esm/src/wow/game_data/realm.js +0 -36
- package/esm/src/wow/game_data/region.d.ts +0 -24
- package/esm/src/wow/game_data/region.js +0 -26
- package/esm/src/wow/game_data/reputations.d.ts +0 -50
- package/esm/src/wow/game_data/reputations.js +0 -51
- package/esm/src/wow/game_data/spell.d.ts +0 -33
- package/esm/src/wow/game_data/spell.js +0 -37
- package/esm/src/wow/game_data/talent.d.ts +0 -129
- package/esm/src/wow/game_data/talent.js +0 -90
- package/esm/src/wow/game_data/tech_talent.d.ts +0 -70
- package/esm/src/wow/game_data/tech_talent.js +0 -64
- package/esm/src/wow/game_data/title.d.ts +0 -25
- package/esm/src/wow/game_data/title.js +0 -26
- package/esm/src/wow/game_data/token.d.ts +0 -16
- package/esm/src/wow/game_data/token.js +0 -19
- package/esm/src/wow/game_data/toy.d.ts +0 -24
- package/esm/src/wow/game_data/toy.js +0 -26
- package/esm/src/wow/index.d.ts +0 -53
- package/esm/src/wow/index.js +0 -55
- package/esm/src/wow/profile/character_achievements.d.ts +0 -87
- package/esm/src/wow/profile/character_achievements.js +0 -29
- package/esm/src/wow/profile/character_appearance.d.ts +0 -75
- package/esm/src/wow/profile/character_appearance.js +0 -15
- package/esm/src/wow/profile/character_collections.d.ts +0 -92
- package/esm/src/wow/profile/character_collections.js +0 -71
- package/esm/src/wow/profile/character_encounters.d.ts +0 -77
- package/esm/src/wow/profile/character_encounters.js +0 -43
- package/esm/src/wow/profile/character_equipment.d.ts +0 -132
- package/esm/src/wow/profile/character_equipment.js +0 -15
- package/esm/src/wow/profile/character_hunter_pets.d.ts +0 -21
- package/esm/src/wow/profile/character_hunter_pets.js +0 -15
- package/esm/src/wow/profile/character_media.d.ts +0 -13
- package/esm/src/wow/profile/character_media.js +0 -15
- package/esm/src/wow/profile/character_mythic_keystone_profile.d.ts +0 -58
- package/esm/src/wow/profile/character_mythic_keystone_profile.js +0 -32
- package/esm/src/wow/profile/character_professions.d.ts +0 -26
- package/esm/src/wow/profile/character_professions.js +0 -15
- package/esm/src/wow/profile/character_profile.d.ts +0 -82
- package/esm/src/wow/profile/character_profile.js +0 -40
- package/esm/src/wow/profile/character_pvp.d.ts +0 -51
- package/esm/src/wow/profile/character_pvp.js +0 -30
- package/esm/src/wow/profile/character_quests.d.ts +0 -28
- package/esm/src/wow/profile/character_quests.js +0 -29
- package/esm/src/wow/profile/character_reputations.d.ts +0 -22
- package/esm/src/wow/profile/character_reputations.js +0 -15
- package/esm/src/wow/profile/character_soulbinds.d.ts +0 -30
- package/esm/src/wow/profile/character_soulbinds.js +0 -15
- package/esm/src/wow/profile/character_specializations.d.ts +0 -44
- package/esm/src/wow/profile/character_specializations.js +0 -15
- package/esm/src/wow/profile/character_statistics.d.ts +0 -116
- package/esm/src/wow/profile/character_statistics.js +0 -15
- package/esm/src/wow/profile/character_titles.d.ts +0 -13
- package/esm/src/wow/profile/character_titles.js +0 -15
- package/esm/src/wow/profile/guild.d.ts +0 -117
- package/esm/src/wow/profile/guild.js +0 -57
- package/esm/src/wow/search.d.ts +0 -21
- package/esm/src/wow/search.js +0 -30
- package/script/src/hearthstone/game_data/card_backs.d.ts +0 -22
- package/script/src/hearthstone/game_data/card_backs.js +0 -28
- package/script/src/hearthstone/game_data/cards.d.ts +0 -37
- package/script/src/hearthstone/game_data/cards.js +0 -32
- package/script/src/hearthstone/game_data/decks.d.ts +0 -88
- package/script/src/hearthstone/game_data/decks.js +0 -18
- package/script/src/hearthstone/game_data/metadata.d.ts +0 -95
- package/script/src/hearthstone/game_data/metadata.js +0 -16
- package/script/src/hearthstone/index.d.ts +0 -4
- package/script/src/hearthstone/index.js +0 -13
- package/script/src/hearthstone/search.d.ts +0 -20
- package/script/src/hearthstone/search.js +0 -33
- package/script/src/shared/auth.d.ts +0 -24
- package/script/src/shared/auth.js +0 -63
- package/script/src/shared/config.d.ts +0 -40
- package/script/src/shared/config.js +0 -55
- package/script/src/shared/errors.d.ts +0 -44
- package/script/src/shared/errors.js +0 -91
- package/script/src/shared/index.d.ts +0 -4
- package/script/src/shared/index.js +0 -9
- package/script/src/shared/request.d.ts +0 -13
- package/script/src/shared/request.js +0 -50
- package/script/src/shared/types.d.ts +0 -120
- package/script/src/shared/types.js +0 -3
- package/script/src/starcraft2/game_data/league.d.ts +0 -32
- package/script/src/starcraft2/game_data/league.js +0 -25
- package/script/src/starcraft2/index.d.ts +0 -1
- package/script/src/starcraft2/index.js +0 -5
- package/script/src/wow/game_data/achievement.d.ts +0 -84
- package/script/src/wow/game_data/achievement.js +0 -77
- package/script/src/wow/game_data/auction_house.d.ts +0 -64
- package/script/src/wow/game_data/auction_house.js +0 -39
- package/script/src/wow/game_data/azerite_essence.d.ts +0 -49
- package/script/src/wow/game_data/azerite_essence.js +0 -56
- package/script/src/wow/game_data/connected_realm.d.ts +0 -54
- package/script/src/wow/game_data/connected_realm.js +0 -42
- package/script/src/wow/game_data/covenant.d.ts +0 -108
- package/script/src/wow/game_data/covenant.js +0 -99
- package/script/src/wow/game_data/creature.d.ts +0 -97
- package/script/src/wow/game_data/creature.js +0 -111
- package/script/src/wow/game_data/guild_crest.d.ts +0 -55
- package/script/src/wow/game_data/guild_crest.js +0 -45
- package/script/src/wow/game_data/heirloom.d.ts +0 -79
- package/script/src/wow/game_data/heirloom.js +0 -31
- package/script/src/wow/game_data/item.d.ts +0 -166
- package/script/src/wow/game_data/item.js +0 -112
- package/script/src/wow/game_data/journal.d.ts +0 -121
- package/script/src/wow/game_data/journal.js +0 -110
- package/script/src/wow/game_data/keystone_affix.d.ts +0 -34
- package/script/src/wow/game_data/keystone_affix.js +0 -45
- package/script/src/wow/game_data/media_search.d.ts +0 -8
- package/script/src/wow/game_data/media_search.js +0 -14
- package/script/src/wow/game_data/modified_crafting.d.ts +0 -56
- package/script/src/wow/game_data/modified_crafting.js +0 -71
- package/script/src/wow/game_data/mount.d.ts +0 -30
- package/script/src/wow/game_data/mount.js +0 -36
- package/script/src/wow/game_data/mythic_keystone_dungeon.d.ts +0 -91
- package/script/src/wow/game_data/mythic_keystone_dungeon.js +0 -98
- package/script/src/wow/game_data/mythic_keystone_leaderboard.d.ts +0 -58
- package/script/src/wow/game_data/mythic_keystone_leaderboard.js +0 -34
- package/script/src/wow/game_data/mythic_raid_leaderboard.d.ts +0 -31
- package/script/src/wow/game_data/mythic_raid_leaderboard.js +0 -19
- package/script/src/wow/game_data/pet.d.ts +0 -91
- package/script/src/wow/game_data/pet.js +0 -86
- package/script/src/wow/game_data/playable_class.d.ts +0 -57
- package/script/src/wow/game_data/playable_class.js +0 -59
- package/script/src/wow/game_data/playable_race.d.ts +0 -29
- package/script/src/wow/game_data/playable_race.js +0 -31
- package/script/src/wow/game_data/power_type.d.ts +0 -21
- package/script/src/wow/game_data/power_type.js +0 -31
- package/script/src/wow/game_data/profession.d.ts +0 -85
- package/script/src/wow/game_data/profession.js +0 -88
- package/script/src/wow/game_data/pvp_season.d.ts +0 -99
- package/script/src/wow/game_data/pvp_season.js +0 -74
- package/script/src/wow/game_data/pvp_tier.d.ts +0 -40
- package/script/src/wow/game_data/pvp_tier.js +0 -45
- package/script/src/wow/game_data/quest.d.ts +0 -114
- package/script/src/wow/game_data/quest.js +0 -112
- package/script/src/wow/game_data/realm.d.ts +0 -42
- package/script/src/wow/game_data/realm.js +0 -42
- package/script/src/wow/game_data/region.d.ts +0 -24
- package/script/src/wow/game_data/region.js +0 -31
- package/script/src/wow/game_data/reputations.d.ts +0 -50
- package/script/src/wow/game_data/reputations.js +0 -58
- package/script/src/wow/game_data/spell.d.ts +0 -33
- package/script/src/wow/game_data/spell.js +0 -43
- package/script/src/wow/game_data/talent.d.ts +0 -129
- package/script/src/wow/game_data/talent.js +0 -100
- package/script/src/wow/game_data/tech_talent.d.ts +0 -70
- package/script/src/wow/game_data/tech_talent.js +0 -72
- package/script/src/wow/game_data/title.d.ts +0 -25
- package/script/src/wow/game_data/title.js +0 -31
- package/script/src/wow/game_data/token.d.ts +0 -16
- package/script/src/wow/game_data/token.js +0 -23
- package/script/src/wow/game_data/toy.d.ts +0 -24
- package/script/src/wow/game_data/toy.js +0 -31
- package/script/src/wow/index.d.ts +0 -53
- package/script/src/wow/index.js +0 -228
- package/script/src/wow/profile/character_achievements.d.ts +0 -87
- package/script/src/wow/profile/character_achievements.js +0 -34
- package/script/src/wow/profile/character_appearance.d.ts +0 -75
- package/script/src/wow/profile/character_appearance.js +0 -19
- package/script/src/wow/profile/character_collections.d.ts +0 -92
- package/script/src/wow/profile/character_collections.js +0 -79
- package/script/src/wow/profile/character_encounters.d.ts +0 -77
- package/script/src/wow/profile/character_encounters.js +0 -49
- package/script/src/wow/profile/character_equipment.d.ts +0 -132
- package/script/src/wow/profile/character_equipment.js +0 -19
- package/script/src/wow/profile/character_hunter_pets.d.ts +0 -21
- package/script/src/wow/profile/character_hunter_pets.js +0 -19
- package/script/src/wow/profile/character_media.d.ts +0 -13
- package/script/src/wow/profile/character_media.js +0 -19
- package/script/src/wow/profile/character_mythic_keystone_profile.d.ts +0 -58
- package/script/src/wow/profile/character_mythic_keystone_profile.js +0 -37
- package/script/src/wow/profile/character_professions.d.ts +0 -26
- package/script/src/wow/profile/character_professions.js +0 -19
- package/script/src/wow/profile/character_profile.d.ts +0 -82
- package/script/src/wow/profile/character_profile.js +0 -45
- package/script/src/wow/profile/character_pvp.d.ts +0 -51
- package/script/src/wow/profile/character_pvp.js +0 -35
- package/script/src/wow/profile/character_quests.d.ts +0 -28
- package/script/src/wow/profile/character_quests.js +0 -34
- package/script/src/wow/profile/character_reputations.d.ts +0 -22
- package/script/src/wow/profile/character_reputations.js +0 -19
- package/script/src/wow/profile/character_soulbinds.d.ts +0 -30
- package/script/src/wow/profile/character_soulbinds.js +0 -19
- package/script/src/wow/profile/character_specializations.d.ts +0 -44
- package/script/src/wow/profile/character_specializations.js +0 -19
- package/script/src/wow/profile/character_statistics.d.ts +0 -116
- package/script/src/wow/profile/character_statistics.js +0 -19
- package/script/src/wow/profile/character_titles.d.ts +0 -13
- package/script/src/wow/profile/character_titles.js +0 -19
- package/script/src/wow/profile/guild.d.ts +0 -117
- package/script/src/wow/profile/guild.js +0 -64
- package/script/src/wow/search.d.ts +0 -21
- package/script/src/wow/search.js +0 -34
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { request } from "../../shared/index.js";
|
|
2
|
-
import { search } from "../search.js";
|
|
3
|
-
/**
|
|
4
|
-
* Returns Azerite Essences Index
|
|
5
|
-
*
|
|
6
|
-
* @returns A promise that resolves to an object representing a list of all Azerite Essences.
|
|
7
|
-
*/
|
|
8
|
-
export async function azeriteEssences() {
|
|
9
|
-
return await request({
|
|
10
|
-
method: "GET",
|
|
11
|
-
url: "/data/wow/azerite-essence/index",
|
|
12
|
-
namespace: "static",
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Returns details about a specific Azerite Essence Id
|
|
17
|
-
*
|
|
18
|
-
* @param azeriteEssenceId - The unique identifier Azerite Essence.
|
|
19
|
-
* @returns A promise that resolves to an object representing details about an Azerite Essences.
|
|
20
|
-
*/
|
|
21
|
-
export async function azeriteEssence(azeriteEssenceId) {
|
|
22
|
-
return await request({
|
|
23
|
-
method: "GET",
|
|
24
|
-
url: `/data/wow/azerite-essence/${azeriteEssenceId}`,
|
|
25
|
-
namespace: "static",
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Performs a search of azerite essences.
|
|
30
|
-
*
|
|
31
|
-
* @param SearchParameters - Object containing search parameters.
|
|
32
|
-
* @returns A promise that resolves to an object representing details about a Azerite Essences search.
|
|
33
|
-
*/
|
|
34
|
-
export async function searchAzeriteEssence(searchParameters) {
|
|
35
|
-
return await search("/azerite-essence", "static", searchParameters);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Returns media details about a specific Azerite Essence Id
|
|
39
|
-
*
|
|
40
|
-
* @param azeriteEssenceId - The unique identifier Azerite Essence.
|
|
41
|
-
* @returns A promise that resolves to an object representing media details about an Azerite Essences.
|
|
42
|
-
*/
|
|
43
|
-
export async function azeriteEssenceMedia(azeriteEssenceId) {
|
|
44
|
-
return await request({
|
|
45
|
-
method: "GET",
|
|
46
|
-
url: `/data/wow/media/azerite-essence/${azeriteEssenceId}`,
|
|
47
|
-
namespace: "static",
|
|
48
|
-
});
|
|
49
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
|
|
2
|
-
import type { Search, SearchParameters } from "../search.js";
|
|
3
|
-
export interface ConnectedRealms extends LinkSelfHref {
|
|
4
|
-
connected_realms: {
|
|
5
|
-
href: string;
|
|
6
|
-
}[];
|
|
7
|
-
}
|
|
8
|
-
export interface Realm {
|
|
9
|
-
id: number;
|
|
10
|
-
region: KeyNameId;
|
|
11
|
-
connected_realm: {
|
|
12
|
-
href: string;
|
|
13
|
-
};
|
|
14
|
-
name: LocalizedString;
|
|
15
|
-
category: LocalizedString;
|
|
16
|
-
locale: string;
|
|
17
|
-
timezone: string;
|
|
18
|
-
type: TypeName;
|
|
19
|
-
is_tournament: boolean;
|
|
20
|
-
slug: string;
|
|
21
|
-
}
|
|
22
|
-
export interface ConnectedRealm extends LinkSelfHref {
|
|
23
|
-
id: number;
|
|
24
|
-
has_queue: boolean;
|
|
25
|
-
status: TypeName;
|
|
26
|
-
population: TypeName;
|
|
27
|
-
realms: Realm[];
|
|
28
|
-
mythic_leaderboards: {
|
|
29
|
-
href: string;
|
|
30
|
-
};
|
|
31
|
-
auctions: {
|
|
32
|
-
href: string;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Returns the Connected Realms Index
|
|
37
|
-
*
|
|
38
|
-
* @returns A promise that resolves to an object representing a list of all Connected Realms.
|
|
39
|
-
*/
|
|
40
|
-
export declare function connectedRealms(): Promise<ConnectedRealms>;
|
|
41
|
-
/**
|
|
42
|
-
* Returns details about a Connected Realms Id
|
|
43
|
-
*
|
|
44
|
-
* @param connectedRealmId - The unique identifier Azerite Essence.
|
|
45
|
-
* @returns A promise that resolves to an object representing details about an Azerite Essences.
|
|
46
|
-
*/
|
|
47
|
-
export declare function connectedRealm(connectedRealmId: number): Promise<ConnectedRealm>;
|
|
48
|
-
/**
|
|
49
|
-
* Performs a search of connected realms.
|
|
50
|
-
*
|
|
51
|
-
* @param SearchParameters - Object containing search parameters.
|
|
52
|
-
* @returns A promise that resolves to an object representing details about the connected realms search.
|
|
53
|
-
*/
|
|
54
|
-
export declare function searchConnectedRealm(searchParameters: SearchParameters): Promise<Search>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { request } from "../../shared/index.js";
|
|
2
|
-
import { search } from "../search.js";
|
|
3
|
-
/**
|
|
4
|
-
* Returns the Connected Realms Index
|
|
5
|
-
*
|
|
6
|
-
* @returns A promise that resolves to an object representing a list of all Connected Realms.
|
|
7
|
-
*/
|
|
8
|
-
export async function connectedRealms() {
|
|
9
|
-
return await request({
|
|
10
|
-
method: "GET",
|
|
11
|
-
url: "/data/wow/connected-realm/index",
|
|
12
|
-
namespace: "dynamic",
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Returns details about a Connected Realms Id
|
|
17
|
-
*
|
|
18
|
-
* @param connectedRealmId - The unique identifier Azerite Essence.
|
|
19
|
-
* @returns A promise that resolves to an object representing details about an Azerite Essences.
|
|
20
|
-
*/
|
|
21
|
-
export async function connectedRealm(connectedRealmId) {
|
|
22
|
-
return await request({
|
|
23
|
-
method: "GET",
|
|
24
|
-
url: `/data/wow/connected-realm/${connectedRealmId}`,
|
|
25
|
-
namespace: "dynamic",
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Performs a search of connected realms.
|
|
30
|
-
*
|
|
31
|
-
* @param SearchParameters - Object containing search parameters.
|
|
32
|
-
* @returns A promise that resolves to an object representing details about the connected realms search.
|
|
33
|
-
*/
|
|
34
|
-
export async function searchConnectedRealm(searchParameters) {
|
|
35
|
-
return await search("/connected-realm", "dynamic", searchParameters);
|
|
36
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import type { Asset, KeyNameId, LinkSelfHref, LocalizedString, NameId, TypeName } from "../../shared/index.js";
|
|
2
|
-
export interface Covenants extends LinkSelfHref {
|
|
3
|
-
covenants: KeyNameId[];
|
|
4
|
-
}
|
|
5
|
-
export interface SpellTooltip {
|
|
6
|
-
spell: KeyNameId;
|
|
7
|
-
description: LocalizedString;
|
|
8
|
-
cast_time: string;
|
|
9
|
-
power_cost: number | null;
|
|
10
|
-
range: string;
|
|
11
|
-
cooldown: string;
|
|
12
|
-
}
|
|
13
|
-
export interface SignatureAbility {
|
|
14
|
-
id: number;
|
|
15
|
-
spell_tooltip: SpellTooltip;
|
|
16
|
-
}
|
|
17
|
-
export interface ClassAbility {
|
|
18
|
-
id: number;
|
|
19
|
-
playable_class: KeyNameId;
|
|
20
|
-
spell_tooltip: SpellTooltip;
|
|
21
|
-
}
|
|
22
|
-
export interface Covenant extends LinkSelfHref {
|
|
23
|
-
id: number;
|
|
24
|
-
name: LocalizedString;
|
|
25
|
-
description: LocalizedString;
|
|
26
|
-
signature_ability: SignatureAbility;
|
|
27
|
-
class_abilities: ClassAbility[];
|
|
28
|
-
}
|
|
29
|
-
export interface CovenantMedia extends LinkSelfHref {
|
|
30
|
-
assets: Asset[];
|
|
31
|
-
}
|
|
32
|
-
export interface CovenantSoulbinds extends LinkSelfHref {
|
|
33
|
-
soulbinds: KeyNameId;
|
|
34
|
-
}
|
|
35
|
-
export interface CovenantSoulbind extends LinkSelfHref {
|
|
36
|
-
id: number;
|
|
37
|
-
name: LocalizedString;
|
|
38
|
-
covenant: KeyNameId;
|
|
39
|
-
creature: KeyNameId;
|
|
40
|
-
follower: NameId;
|
|
41
|
-
talent_tree: KeyNameId;
|
|
42
|
-
}
|
|
43
|
-
export interface CovenantConduits extends LinkSelfHref {
|
|
44
|
-
conduits: KeyNameId;
|
|
45
|
-
}
|
|
46
|
-
export interface SpellTooltip {
|
|
47
|
-
spell: KeyNameId;
|
|
48
|
-
description: LocalizedString;
|
|
49
|
-
cast_time: string;
|
|
50
|
-
}
|
|
51
|
-
export interface Rank {
|
|
52
|
-
id: number;
|
|
53
|
-
tier: number;
|
|
54
|
-
spell_tooltip: SpellTooltip;
|
|
55
|
-
}
|
|
56
|
-
export interface CovenantConduit extends LinkSelfHref {
|
|
57
|
-
id: number;
|
|
58
|
-
name: LocalizedString;
|
|
59
|
-
item: KeyNameId;
|
|
60
|
-
socket_type: TypeName;
|
|
61
|
-
ranks: Rank[];
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Returns an index of Covenants.
|
|
65
|
-
*
|
|
66
|
-
* @returns A promise that resolves to an object representing a list of all Covenants.
|
|
67
|
-
*/
|
|
68
|
-
export declare function covenants(): Promise<Covenants>;
|
|
69
|
-
/**
|
|
70
|
-
* Returns details about a Covenant
|
|
71
|
-
*
|
|
72
|
-
* @param covenantId - The unique identifier for the Covenant
|
|
73
|
-
* @returns A promise that resolves to an object representing details about a Covenant.
|
|
74
|
-
*/
|
|
75
|
-
export declare function covenant(covenantId: number): Promise<Covenant>;
|
|
76
|
-
/**
|
|
77
|
-
* Returns media details about a Covenant
|
|
78
|
-
*
|
|
79
|
-
* @param covenantId - The unique identifier for the Covenant.
|
|
80
|
-
* @returns A promise that resolves to an object representing media details about a Covenant.
|
|
81
|
-
*/
|
|
82
|
-
export declare function azeriteEssenceMedia(covenantId: number): Promise<CovenantMedia>;
|
|
83
|
-
/**
|
|
84
|
-
* Returns an index of Covenant Soulbinds.
|
|
85
|
-
*
|
|
86
|
-
* @returns A promise that resolves to an object representing a list of all Covenant Soulbinds.
|
|
87
|
-
*/
|
|
88
|
-
export declare function covenantSoulbinds(): Promise<CovenantSoulbinds>;
|
|
89
|
-
/**
|
|
90
|
-
* Returns details about a Covenant Soulbind
|
|
91
|
-
*
|
|
92
|
-
* @param soulbindId - The unique identifier for the Covenant Soulbind
|
|
93
|
-
* @returns A promise that resolves to an object representing details about a Covenant Soulbind.
|
|
94
|
-
*/
|
|
95
|
-
export declare function covenantSoulbind(soulbindId: number): Promise<CovenantSoulbind>;
|
|
96
|
-
/**
|
|
97
|
-
* Returns an index of Covenant Conduits.
|
|
98
|
-
*
|
|
99
|
-
* @returns A promise that resolves to an object representing a list of all Covenant Conduits.
|
|
100
|
-
*/
|
|
101
|
-
export declare function covenantConduits(): Promise<CovenantConduits>;
|
|
102
|
-
/**
|
|
103
|
-
* Returns details about a Covenant Conduit
|
|
104
|
-
*
|
|
105
|
-
* @param conduitId - The unique identifier for the Covenant Conduit
|
|
106
|
-
* @returns A promise that resolves to an object representing details about a Covenant Conduit.
|
|
107
|
-
*/
|
|
108
|
-
export declare function covenantConduit(conduitId: number): Promise<CovenantConduit>;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { request } from "../../shared/index.js";
|
|
2
|
-
/**
|
|
3
|
-
* Returns an index of Covenants.
|
|
4
|
-
*
|
|
5
|
-
* @returns A promise that resolves to an object representing a list of all Covenants.
|
|
6
|
-
*/
|
|
7
|
-
export async function covenants() {
|
|
8
|
-
return await request({
|
|
9
|
-
method: "GET",
|
|
10
|
-
url: "/data/wow/covenant/index",
|
|
11
|
-
namespace: "static",
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Returns details about a Covenant
|
|
16
|
-
*
|
|
17
|
-
* @param covenantId - The unique identifier for the Covenant
|
|
18
|
-
* @returns A promise that resolves to an object representing details about a Covenant.
|
|
19
|
-
*/
|
|
20
|
-
export async function covenant(covenantId) {
|
|
21
|
-
return await request({
|
|
22
|
-
method: "GET",
|
|
23
|
-
url: `/data/wow/covenant/${covenantId}`,
|
|
24
|
-
namespace: "static",
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Returns media details about a Covenant
|
|
29
|
-
*
|
|
30
|
-
* @param covenantId - The unique identifier for the Covenant.
|
|
31
|
-
* @returns A promise that resolves to an object representing media details about a Covenant.
|
|
32
|
-
*/
|
|
33
|
-
export async function azeriteEssenceMedia(covenantId) {
|
|
34
|
-
return await request({
|
|
35
|
-
method: "GET",
|
|
36
|
-
url: `/data/wow/media/covenant/${covenantId}`,
|
|
37
|
-
namespace: "static",
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Returns an index of Covenant Soulbinds.
|
|
42
|
-
*
|
|
43
|
-
* @returns A promise that resolves to an object representing a list of all Covenant Soulbinds.
|
|
44
|
-
*/
|
|
45
|
-
export async function covenantSoulbinds() {
|
|
46
|
-
return await request({
|
|
47
|
-
method: "GET",
|
|
48
|
-
url: "/data/wow/covenant/soulbind/index",
|
|
49
|
-
namespace: "static",
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Returns details about a Covenant Soulbind
|
|
54
|
-
*
|
|
55
|
-
* @param soulbindId - The unique identifier for the Covenant Soulbind
|
|
56
|
-
* @returns A promise that resolves to an object representing details about a Covenant Soulbind.
|
|
57
|
-
*/
|
|
58
|
-
export async function covenantSoulbind(soulbindId) {
|
|
59
|
-
return await request({
|
|
60
|
-
method: "GET",
|
|
61
|
-
url: `/data/wow/covenant/soulbind/${soulbindId}`,
|
|
62
|
-
namespace: "static",
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Returns an index of Covenant Conduits.
|
|
67
|
-
*
|
|
68
|
-
* @returns A promise that resolves to an object representing a list of all Covenant Conduits.
|
|
69
|
-
*/
|
|
70
|
-
export async function covenantConduits() {
|
|
71
|
-
return await request({
|
|
72
|
-
method: "GET",
|
|
73
|
-
url: "/data/wow/covenant/conduit/index",
|
|
74
|
-
namespace: "static",
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Returns details about a Covenant Conduit
|
|
79
|
-
*
|
|
80
|
-
* @param conduitId - The unique identifier for the Covenant Conduit
|
|
81
|
-
* @returns A promise that resolves to an object representing details about a Covenant Conduit.
|
|
82
|
-
*/
|
|
83
|
-
export async function covenantConduit(conduitId) {
|
|
84
|
-
return await request({
|
|
85
|
-
method: "GET",
|
|
86
|
-
url: `/data/wow/covenant/conduit/${conduitId}`,
|
|
87
|
-
namespace: "static",
|
|
88
|
-
});
|
|
89
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
|
|
2
|
-
import type { Search, SearchParameters } from "../search.js";
|
|
3
|
-
export interface CreatureFamilies extends LinkSelfHref {
|
|
4
|
-
creature_families: KeyNameId[];
|
|
5
|
-
}
|
|
6
|
-
export interface CreatureFamily extends LinkSelfHref {
|
|
7
|
-
id: number;
|
|
8
|
-
name: LocalizedString;
|
|
9
|
-
specialization: KeyNameId;
|
|
10
|
-
media: KeyId;
|
|
11
|
-
}
|
|
12
|
-
export interface CreatureTypes extends LinkSelfHref {
|
|
13
|
-
creature_types: KeyNameId[];
|
|
14
|
-
}
|
|
15
|
-
export interface CreatureType extends LinkSelfHref {
|
|
16
|
-
id: number;
|
|
17
|
-
name: LocalizedString;
|
|
18
|
-
}
|
|
19
|
-
export interface Creature extends LinkSelfHref {
|
|
20
|
-
id: number;
|
|
21
|
-
name: LocalizedString;
|
|
22
|
-
type: KeyNameId;
|
|
23
|
-
family: KeyNameId;
|
|
24
|
-
creature_displays: KeyId[];
|
|
25
|
-
is_tameable: boolean;
|
|
26
|
-
}
|
|
27
|
-
export interface CreatureDisplayAssets {
|
|
28
|
-
key: string;
|
|
29
|
-
value: string;
|
|
30
|
-
}
|
|
31
|
-
export interface CreatureDisplayMedia extends LinkSelfHref {
|
|
32
|
-
assets: CreatureDisplayAssets[];
|
|
33
|
-
id: number;
|
|
34
|
-
}
|
|
35
|
-
export interface CreatureFamilyAssets {
|
|
36
|
-
key: string;
|
|
37
|
-
value: string;
|
|
38
|
-
file_data_id: number;
|
|
39
|
-
}
|
|
40
|
-
export interface CreatureFamilyMedia extends LinkSelfHref {
|
|
41
|
-
assets: CreatureFamilyAssets[];
|
|
42
|
-
id: number;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Returns an index of creature families.
|
|
46
|
-
*
|
|
47
|
-
* @returns A promise that resolves to an object representing a list of all creature families.
|
|
48
|
-
*/
|
|
49
|
-
export declare function creatureFamilies(): Promise<CreatureFamilies>;
|
|
50
|
-
/**
|
|
51
|
-
* Returns details about a creature family
|
|
52
|
-
*
|
|
53
|
-
* @param creatureFamilyId - The unique identifier for the creature family
|
|
54
|
-
* @returns A promise that resolves to an object representing details about a creature family.
|
|
55
|
-
*/
|
|
56
|
-
export declare function creatureFamily(creatureFamilyId: number): Promise<CreatureFamily>;
|
|
57
|
-
/**
|
|
58
|
-
* Returns an index of creature types.
|
|
59
|
-
*
|
|
60
|
-
* @returns A promise that resolves to an object representing a list of all creature types.
|
|
61
|
-
*/
|
|
62
|
-
export declare function creatureTypes(): Promise<CreatureTypes>;
|
|
63
|
-
/**
|
|
64
|
-
* Returns details about a creature types
|
|
65
|
-
*
|
|
66
|
-
* @param creatureTypeId - The unique identifier for the creature types
|
|
67
|
-
* @returns A promise that resolves to an object representing details about a creature types.
|
|
68
|
-
*/
|
|
69
|
-
export declare function creatureType(creatureTypeId: number): Promise<CreatureType>;
|
|
70
|
-
/**
|
|
71
|
-
* Returns details about a creature
|
|
72
|
-
*
|
|
73
|
-
* @param creatureId - The unique identifier for the creature
|
|
74
|
-
* @returns A promise that resolves to an object representing details about a creature.
|
|
75
|
-
*/
|
|
76
|
-
export declare function creature(creatureId: number): Promise<Creature>;
|
|
77
|
-
/**
|
|
78
|
-
* Performs a search of creatures.
|
|
79
|
-
*
|
|
80
|
-
* @param SearchParameters - Object containing search parameters.
|
|
81
|
-
* @returns A promise that resolves to an object representing details about a creature search.
|
|
82
|
-
*/
|
|
83
|
-
export declare function searchCreature(searchParameters: SearchParameters): Promise<Search>;
|
|
84
|
-
/**
|
|
85
|
-
* Returns media details about a specific Creature display
|
|
86
|
-
*
|
|
87
|
-
* @param creatureDisplayId - The unique identifier Creature display Id.
|
|
88
|
-
* @returns A promise that resolves to an object representing media details about a Creature display.
|
|
89
|
-
*/
|
|
90
|
-
export declare function creatureDisplayMedia(creatureDisplayId: number): Promise<CreatureDisplayMedia>;
|
|
91
|
-
/**
|
|
92
|
-
* Returns media details about a specific Creature family
|
|
93
|
-
*
|
|
94
|
-
* @param creatureFamilyId - The unique identifier Creature family Id.
|
|
95
|
-
* @returns A promise that resolves to an object representing media details about a Creature family.
|
|
96
|
-
*/
|
|
97
|
-
export declare function creatureFamilyMedia(creatureFamilyId: number): Promise<CreatureFamilyMedia>;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { request } from "../../shared/index.js";
|
|
2
|
-
import { search } from "../search.js";
|
|
3
|
-
/**
|
|
4
|
-
* Returns an index of creature families.
|
|
5
|
-
*
|
|
6
|
-
* @returns A promise that resolves to an object representing a list of all creature families.
|
|
7
|
-
*/
|
|
8
|
-
export async function creatureFamilies() {
|
|
9
|
-
return await request({
|
|
10
|
-
method: "GET",
|
|
11
|
-
url: "/data/wow/creature-family/index",
|
|
12
|
-
namespace: "static",
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Returns details about a creature family
|
|
17
|
-
*
|
|
18
|
-
* @param creatureFamilyId - The unique identifier for the creature family
|
|
19
|
-
* @returns A promise that resolves to an object representing details about a creature family.
|
|
20
|
-
*/
|
|
21
|
-
export async function creatureFamily(creatureFamilyId) {
|
|
22
|
-
return await request({
|
|
23
|
-
method: "GET",
|
|
24
|
-
url: `/data/wow/creature-family/${creatureFamilyId}`,
|
|
25
|
-
namespace: "static",
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Returns an index of creature types.
|
|
30
|
-
*
|
|
31
|
-
* @returns A promise that resolves to an object representing a list of all creature types.
|
|
32
|
-
*/
|
|
33
|
-
export async function creatureTypes() {
|
|
34
|
-
return await request({
|
|
35
|
-
method: "GET",
|
|
36
|
-
url: "/data/wow/creature-type/index",
|
|
37
|
-
namespace: "static",
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Returns details about a creature types
|
|
42
|
-
*
|
|
43
|
-
* @param creatureTypeId - The unique identifier for the creature types
|
|
44
|
-
* @returns A promise that resolves to an object representing details about a creature types.
|
|
45
|
-
*/
|
|
46
|
-
export async function creatureType(creatureTypeId) {
|
|
47
|
-
return await request({
|
|
48
|
-
method: "GET",
|
|
49
|
-
url: `/data/wow/creature-type/${creatureTypeId}`,
|
|
50
|
-
namespace: "static",
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Returns details about a creature
|
|
55
|
-
*
|
|
56
|
-
* @param creatureId - The unique identifier for the creature
|
|
57
|
-
* @returns A promise that resolves to an object representing details about a creature.
|
|
58
|
-
*/
|
|
59
|
-
export async function creature(creatureId) {
|
|
60
|
-
return await request({
|
|
61
|
-
method: "GET",
|
|
62
|
-
url: `/data/wow/creature/${creatureId}`,
|
|
63
|
-
namespace: "static",
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Performs a search of creatures.
|
|
68
|
-
*
|
|
69
|
-
* @param SearchParameters - Object containing search parameters.
|
|
70
|
-
* @returns A promise that resolves to an object representing details about a creature search.
|
|
71
|
-
*/
|
|
72
|
-
export async function searchCreature(searchParameters) {
|
|
73
|
-
return await search("/creature", "static", searchParameters);
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Returns media details about a specific Creature display
|
|
77
|
-
*
|
|
78
|
-
* @param creatureDisplayId - The unique identifier Creature display Id.
|
|
79
|
-
* @returns A promise that resolves to an object representing media details about a Creature display.
|
|
80
|
-
*/
|
|
81
|
-
export async function creatureDisplayMedia(creatureDisplayId) {
|
|
82
|
-
return await request({
|
|
83
|
-
method: "GET",
|
|
84
|
-
url: `/data/wow/media/creature-display/${creatureDisplayId}`,
|
|
85
|
-
namespace: "static",
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Returns media details about a specific Creature family
|
|
90
|
-
*
|
|
91
|
-
* @param creatureFamilyId - The unique identifier Creature family Id.
|
|
92
|
-
* @returns A promise that resolves to an object representing media details about a Creature family.
|
|
93
|
-
*/
|
|
94
|
-
export async function creatureFamilyMedia(creatureFamilyId) {
|
|
95
|
-
return await request({
|
|
96
|
-
method: "GET",
|
|
97
|
-
url: `/data/wow/media/creature-family/${creatureFamilyId}`,
|
|
98
|
-
namespace: "static",
|
|
99
|
-
});
|
|
100
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { Asset, KeyId, LinkSelfHref } from "../../shared/index.js";
|
|
2
|
-
export interface Emblem {
|
|
3
|
-
id: number;
|
|
4
|
-
media: KeyId[];
|
|
5
|
-
}
|
|
6
|
-
export interface Border {
|
|
7
|
-
id: number;
|
|
8
|
-
media: KeyId[];
|
|
9
|
-
}
|
|
10
|
-
export interface IdRgba {
|
|
11
|
-
id: number;
|
|
12
|
-
rgba: {
|
|
13
|
-
r: number;
|
|
14
|
-
g: number;
|
|
15
|
-
b: number;
|
|
16
|
-
a: number;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export interface GuildCrests extends LinkSelfHref {
|
|
20
|
-
emblems: Emblem[];
|
|
21
|
-
borders: Border[];
|
|
22
|
-
colors: {
|
|
23
|
-
emblems: IdRgba[];
|
|
24
|
-
borders: IdRgba[];
|
|
25
|
-
backgrounds: IdRgba[];
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export interface GuildCrestBorder extends LinkSelfHref {
|
|
29
|
-
assets: Asset[];
|
|
30
|
-
id: number;
|
|
31
|
-
}
|
|
32
|
-
export interface GuildCrestEmblem extends LinkSelfHref {
|
|
33
|
-
assets: Asset[];
|
|
34
|
-
id: number;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Returns the Guild Crest Components Index
|
|
38
|
-
*
|
|
39
|
-
* @returns A promise that resolves to an object representing a list of all Guild Crest Components.
|
|
40
|
-
*/
|
|
41
|
-
export declare function guildCrests(): Promise<GuildCrests>;
|
|
42
|
-
/**
|
|
43
|
-
* Returns a Guild Crest Border Media
|
|
44
|
-
*
|
|
45
|
-
* @param borderId - The unique identifier for the Covenant
|
|
46
|
-
* @returns A promise that resolves to an object representing details about a Guild Crest Border Media.
|
|
47
|
-
*/
|
|
48
|
-
export declare function guildCrestBorder(borderId: number): Promise<GuildCrestBorder>;
|
|
49
|
-
/**
|
|
50
|
-
* Returns a Crest Emblem Media
|
|
51
|
-
*
|
|
52
|
-
* @param emblemId - The unique identifier for the Crest Emblem Media
|
|
53
|
-
* @returns A promise that resolves to an object representing details about a Crest Emblem Media.
|
|
54
|
-
*/
|
|
55
|
-
export declare function guildCrestEmblem(emblemId: number): Promise<GuildCrestEmblem>;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { request } from "../../shared/index.js";
|
|
2
|
-
/**
|
|
3
|
-
* Returns the Guild Crest Components Index
|
|
4
|
-
*
|
|
5
|
-
* @returns A promise that resolves to an object representing a list of all Guild Crest Components.
|
|
6
|
-
*/
|
|
7
|
-
export async function guildCrests() {
|
|
8
|
-
return await request({
|
|
9
|
-
method: "GET",
|
|
10
|
-
url: "/data/wow/guild-crest/index",
|
|
11
|
-
namespace: "static",
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Returns a Guild Crest Border Media
|
|
16
|
-
*
|
|
17
|
-
* @param borderId - The unique identifier for the Covenant
|
|
18
|
-
* @returns A promise that resolves to an object representing details about a Guild Crest Border Media.
|
|
19
|
-
*/
|
|
20
|
-
export async function guildCrestBorder(borderId) {
|
|
21
|
-
return await request({
|
|
22
|
-
method: "GET",
|
|
23
|
-
url: `/data/wow/media/guild-crest/border/${borderId}`,
|
|
24
|
-
namespace: "static",
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Returns a Crest Emblem Media
|
|
29
|
-
*
|
|
30
|
-
* @param emblemId - The unique identifier for the Crest Emblem Media
|
|
31
|
-
* @returns A promise that resolves to an object representing details about a Crest Emblem Media.
|
|
32
|
-
*/
|
|
33
|
-
export async function guildCrestEmblem(emblemId) {
|
|
34
|
-
return await request({
|
|
35
|
-
method: "GET",
|
|
36
|
-
url: `/data/wow/media/guild-crest/emblem/${emblemId}`,
|
|
37
|
-
namespace: "static",
|
|
38
|
-
});
|
|
39
|
-
}
|