@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,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module provides interfaces and API function definitions for fetching World of Warcraft achievement data using the Blizzard API.
|
|
3
|
+
*
|
|
4
|
+
* @author Pinta <https://github.com/Pinta365>
|
|
5
|
+
*/
|
|
6
|
+
import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
|
|
7
|
+
export interface AchievementCategories extends LinkSelfHref {
|
|
8
|
+
categories: KeyNameId[];
|
|
9
|
+
}
|
|
10
|
+
export interface AggregatesByFaction {
|
|
11
|
+
alliance: {
|
|
12
|
+
quantity: number;
|
|
13
|
+
points: number;
|
|
14
|
+
};
|
|
15
|
+
horde: {
|
|
16
|
+
quantity: number;
|
|
17
|
+
points: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export interface AchievementCategory extends LinkSelfHref {
|
|
21
|
+
id: number;
|
|
22
|
+
name: LocalizedString;
|
|
23
|
+
achievements: KeyNameId[];
|
|
24
|
+
parent_category: KeyNameId;
|
|
25
|
+
is_guild_category: boolean;
|
|
26
|
+
aggregates_by_faction: AggregatesByFaction;
|
|
27
|
+
display_order: number;
|
|
28
|
+
}
|
|
29
|
+
export interface Achievements extends LinkSelfHref {
|
|
30
|
+
achievements: KeyNameId[];
|
|
31
|
+
}
|
|
32
|
+
export interface Achievement extends LinkSelfHref {
|
|
33
|
+
id: number;
|
|
34
|
+
category: KeyNameId;
|
|
35
|
+
name: LocalizedString;
|
|
36
|
+
description: LocalizedString;
|
|
37
|
+
points: number;
|
|
38
|
+
is_account_wide: boolean;
|
|
39
|
+
criteria: {
|
|
40
|
+
id: number;
|
|
41
|
+
description: LocalizedString;
|
|
42
|
+
amount: number;
|
|
43
|
+
};
|
|
44
|
+
next_achievement: KeyNameId;
|
|
45
|
+
media: KeyId;
|
|
46
|
+
display_order: number;
|
|
47
|
+
}
|
|
48
|
+
export interface AchievementMedia extends LinkSelfHref {
|
|
49
|
+
assets: Asset[];
|
|
50
|
+
id: number;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Fetches and returns an index of achievement categories.
|
|
54
|
+
*
|
|
55
|
+
* @returns A promise that resolves to an object representing the index of achievement categories.
|
|
56
|
+
*/
|
|
57
|
+
export declare function achievementCategories(): Promise<AchievementCategories>;
|
|
58
|
+
/**
|
|
59
|
+
* Fetches and returns details of a specific achievement category identified by its ID.
|
|
60
|
+
*
|
|
61
|
+
* @param achievementCategoryId - The unique identifier of the achievement category to retrieve.
|
|
62
|
+
* @returns A promise that resolves to an object representing the achievement category details.
|
|
63
|
+
*/
|
|
64
|
+
export declare function achievementCategory(achievementCategoryId: number): Promise<AchievementCategory>;
|
|
65
|
+
/**
|
|
66
|
+
* Fetches and returns an index of achievements.
|
|
67
|
+
*
|
|
68
|
+
* @returns A promise that resolves to an object representing the index of achievements.
|
|
69
|
+
*/
|
|
70
|
+
export declare function achievements(): Promise<Achievements>;
|
|
71
|
+
/**
|
|
72
|
+
* Fetches and returns details of a specific achievement identified by its ID.
|
|
73
|
+
*
|
|
74
|
+
* @param achievementId - The unique identifier of the achievement to retrieve.
|
|
75
|
+
* @returns A promise that resolves to an object representing the achievement details.
|
|
76
|
+
*/
|
|
77
|
+
export declare function achievement(achievementId: number): Promise<Achievement>;
|
|
78
|
+
/**
|
|
79
|
+
* Fetches and returns media details for a specific achievement identified by its ID.
|
|
80
|
+
*
|
|
81
|
+
* @param achievementId - The unique identifier of the achievement to retrieve media details for.
|
|
82
|
+
* @returns A promise that resolves to an object representing the achievement media details.
|
|
83
|
+
*/
|
|
84
|
+
export declare function achievementMedia(achievementId: number): Promise<AchievementMedia>;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This module provides interfaces and API function definitions for fetching World of Warcraft achievement data using the Blizzard API.
|
|
4
|
+
*
|
|
5
|
+
* @author Pinta <https://github.com/Pinta365>
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.achievementMedia = exports.achievement = exports.achievements = exports.achievementCategory = exports.achievementCategories = void 0;
|
|
9
|
+
const index_js_1 = require("../../shared/index.js");
|
|
10
|
+
/**
|
|
11
|
+
* Fetches and returns an index of achievement categories.
|
|
12
|
+
*
|
|
13
|
+
* @returns A promise that resolves to an object representing the index of achievement categories.
|
|
14
|
+
*/
|
|
15
|
+
async function achievementCategories() {
|
|
16
|
+
return await (0, index_js_1.request)({
|
|
17
|
+
method: "GET",
|
|
18
|
+
url: "/data/wow/achievement-category/index",
|
|
19
|
+
namespace: "static",
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
exports.achievementCategories = achievementCategories;
|
|
23
|
+
/**
|
|
24
|
+
* Fetches and returns details of a specific achievement category identified by its ID.
|
|
25
|
+
*
|
|
26
|
+
* @param achievementCategoryId - The unique identifier of the achievement category to retrieve.
|
|
27
|
+
* @returns A promise that resolves to an object representing the achievement category details.
|
|
28
|
+
*/
|
|
29
|
+
async function achievementCategory(achievementCategoryId) {
|
|
30
|
+
return await (0, index_js_1.request)({
|
|
31
|
+
method: "GET",
|
|
32
|
+
url: `/data/wow/achievement-category/${achievementCategoryId}`,
|
|
33
|
+
namespace: "static",
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
exports.achievementCategory = achievementCategory;
|
|
37
|
+
/**
|
|
38
|
+
* Fetches and returns an index of achievements.
|
|
39
|
+
*
|
|
40
|
+
* @returns A promise that resolves to an object representing the index of achievements.
|
|
41
|
+
*/
|
|
42
|
+
async function achievements() {
|
|
43
|
+
return await (0, index_js_1.request)({
|
|
44
|
+
method: "GET",
|
|
45
|
+
url: "/data/wow/achievement/index",
|
|
46
|
+
namespace: "static",
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
exports.achievements = achievements;
|
|
50
|
+
/**
|
|
51
|
+
* Fetches and returns details of a specific achievement identified by its ID.
|
|
52
|
+
*
|
|
53
|
+
* @param achievementId - The unique identifier of the achievement to retrieve.
|
|
54
|
+
* @returns A promise that resolves to an object representing the achievement details.
|
|
55
|
+
*/
|
|
56
|
+
async function achievement(achievementId) {
|
|
57
|
+
return await (0, index_js_1.request)({
|
|
58
|
+
method: "GET",
|
|
59
|
+
url: `/data/wow/achievement/${achievementId}`,
|
|
60
|
+
namespace: "static",
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
exports.achievement = achievement;
|
|
64
|
+
/**
|
|
65
|
+
* Fetches and returns media details for a specific achievement identified by its ID.
|
|
66
|
+
*
|
|
67
|
+
* @param achievementId - The unique identifier of the achievement to retrieve media details for.
|
|
68
|
+
* @returns A promise that resolves to an object representing the achievement media details.
|
|
69
|
+
*/
|
|
70
|
+
async function achievementMedia(achievementId) {
|
|
71
|
+
return await (0, index_js_1.request)({
|
|
72
|
+
method: "GET",
|
|
73
|
+
url: `/data/wow/media/achievement/${achievementId}`,
|
|
74
|
+
namespace: "static",
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
exports.achievementMedia = achievementMedia;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { LinkSelfHref } from "../../shared/index.js";
|
|
2
|
+
export interface AuctionItem {
|
|
3
|
+
id: number;
|
|
4
|
+
modifiers?: {
|
|
5
|
+
type: number;
|
|
6
|
+
value: number;
|
|
7
|
+
}[];
|
|
8
|
+
pet_breed_id?: number;
|
|
9
|
+
pet_level?: number;
|
|
10
|
+
pet_quality_id?: number;
|
|
11
|
+
pet_species_id?: number;
|
|
12
|
+
bonus_lists?: number[];
|
|
13
|
+
context?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface AuctionListing {
|
|
16
|
+
id: number;
|
|
17
|
+
item: AuctionItem;
|
|
18
|
+
bid?: number;
|
|
19
|
+
buyout?: number;
|
|
20
|
+
quantity: number;
|
|
21
|
+
time_left: "SHORT" | "MEDIUM" | "LONG" | "VERY_LONG";
|
|
22
|
+
}
|
|
23
|
+
export interface Auctions extends LinkSelfHref {
|
|
24
|
+
connected_realm: {
|
|
25
|
+
href: string;
|
|
26
|
+
};
|
|
27
|
+
auctions: AuctionListing[];
|
|
28
|
+
commodities: {
|
|
29
|
+
href: string;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export interface commodity {
|
|
33
|
+
"id": number;
|
|
34
|
+
"item": {
|
|
35
|
+
"id": number;
|
|
36
|
+
};
|
|
37
|
+
"quantity": number;
|
|
38
|
+
"unit_price": number;
|
|
39
|
+
"time_left": "SHORT" | "MEDIUM" | "LONG" | "VERY_LONG";
|
|
40
|
+
}
|
|
41
|
+
export interface Commodities extends LinkSelfHref {
|
|
42
|
+
auctions: commodity[];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Returns all active auctions for a connected realm.
|
|
46
|
+
*
|
|
47
|
+
* Auction house data updates at a set interval. The value was initially set at 1 hour; however, it might change over time without notice.
|
|
48
|
+
*
|
|
49
|
+
* NOTE: Depending on the number of active auctions on the specified connected realm, the response from this endpoint may be rather large.
|
|
50
|
+
*
|
|
51
|
+
* @param connectedRealmId - The id of the connected realm to return auctions from.
|
|
52
|
+
* @returns A promise that resolves to an object representing the auctions being listed.
|
|
53
|
+
*/
|
|
54
|
+
export declare function auctions(connectedRealmId: number): Promise<Auctions>;
|
|
55
|
+
/**
|
|
56
|
+
* Returns all active auctions for commodity items for the entire game region.
|
|
57
|
+
*
|
|
58
|
+
* Auction house data updates at a set interval. The value was initially set at 1 hour; however, it might change over time without notice.
|
|
59
|
+
*
|
|
60
|
+
* NOTE: Depending on the number of active auctions on the specified region, the response from this endpoint may be rather large.
|
|
61
|
+
*
|
|
62
|
+
* @returns A promise that resolves to an object representing the commodities being listed.
|
|
63
|
+
*/
|
|
64
|
+
export declare function commodities(): Promise<Commodities>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.commodities = exports.auctions = void 0;
|
|
4
|
+
const index_js_1 = require("../../shared/index.js");
|
|
5
|
+
/**
|
|
6
|
+
* Returns all active auctions for a connected realm.
|
|
7
|
+
*
|
|
8
|
+
* Auction house data updates at a set interval. The value was initially set at 1 hour; however, it might change over time without notice.
|
|
9
|
+
*
|
|
10
|
+
* NOTE: Depending on the number of active auctions on the specified connected realm, the response from this endpoint may be rather large.
|
|
11
|
+
*
|
|
12
|
+
* @param connectedRealmId - The id of the connected realm to return auctions from.
|
|
13
|
+
* @returns A promise that resolves to an object representing the auctions being listed.
|
|
14
|
+
*/
|
|
15
|
+
async function auctions(connectedRealmId) {
|
|
16
|
+
return await (0, index_js_1.request)({
|
|
17
|
+
method: "GET",
|
|
18
|
+
url: `/data/wow/connected-realm/${connectedRealmId}/auctions`,
|
|
19
|
+
namespace: "dynamic",
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
exports.auctions = auctions;
|
|
23
|
+
/**
|
|
24
|
+
* Returns all active auctions for commodity items for the entire game region.
|
|
25
|
+
*
|
|
26
|
+
* Auction house data updates at a set interval. The value was initially set at 1 hour; however, it might change over time without notice.
|
|
27
|
+
*
|
|
28
|
+
* NOTE: Depending on the number of active auctions on the specified region, the response from this endpoint may be rather large.
|
|
29
|
+
*
|
|
30
|
+
* @returns A promise that resolves to an object representing the commodities being listed.
|
|
31
|
+
*/
|
|
32
|
+
async function commodities() {
|
|
33
|
+
return await (0, index_js_1.request)({
|
|
34
|
+
method: "GET",
|
|
35
|
+
url: "/data/wow/auctions/commodities",
|
|
36
|
+
namespace: "dynamic",
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
exports.commodities = commodities;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
|
|
2
|
+
import type { Search, SearchParameters } from "../search.js";
|
|
3
|
+
export interface AzeriteEssences extends LinkSelfHref {
|
|
4
|
+
azerite_essences: KeyNameId[];
|
|
5
|
+
}
|
|
6
|
+
export interface AzeritePower {
|
|
7
|
+
id: number;
|
|
8
|
+
rank: number;
|
|
9
|
+
main_power_spell: KeyNameId;
|
|
10
|
+
passive_power_spell: KeyNameId;
|
|
11
|
+
}
|
|
12
|
+
export interface AzeriteEssenceDetails extends LinkSelfHref {
|
|
13
|
+
id: number;
|
|
14
|
+
name: LocalizedString;
|
|
15
|
+
allowed_specializations: KeyNameId[];
|
|
16
|
+
powers: AzeritePower[];
|
|
17
|
+
media: KeyId;
|
|
18
|
+
}
|
|
19
|
+
export interface AzeritEessenceMedia extends LinkSelfHref {
|
|
20
|
+
assets: Asset[];
|
|
21
|
+
id: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns Azerite Essences Index
|
|
25
|
+
*
|
|
26
|
+
* @returns A promise that resolves to an object representing a list of all Azerite Essences.
|
|
27
|
+
*/
|
|
28
|
+
export declare function azeriteEssences(): Promise<AzeriteEssences>;
|
|
29
|
+
/**
|
|
30
|
+
* Returns details about a specific Azerite Essence Id
|
|
31
|
+
*
|
|
32
|
+
* @param azeriteEssenceId - The unique identifier Azerite Essence.
|
|
33
|
+
* @returns A promise that resolves to an object representing details about an Azerite Essences.
|
|
34
|
+
*/
|
|
35
|
+
export declare function azeriteEssence(azeriteEssenceId: number): Promise<AzeriteEssenceDetails>;
|
|
36
|
+
/**
|
|
37
|
+
* Performs a search of azerite essences.
|
|
38
|
+
*
|
|
39
|
+
* @param SearchParameters - Object containing search parameters.
|
|
40
|
+
* @returns A promise that resolves to an object representing details about a Azerite Essences search.
|
|
41
|
+
*/
|
|
42
|
+
export declare function searchAzeriteEssence(searchParameters: SearchParameters): Promise<Search>;
|
|
43
|
+
/**
|
|
44
|
+
* Returns media details about a specific Azerite Essence Id
|
|
45
|
+
*
|
|
46
|
+
* @param azeriteEssenceId - The unique identifier Azerite Essence.
|
|
47
|
+
* @returns A promise that resolves to an object representing media details about an Azerite Essences.
|
|
48
|
+
*/
|
|
49
|
+
export declare function azeriteEssenceMedia(azeriteEssenceId: number): Promise<AzeritEessenceMedia>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.azeriteEssenceMedia = exports.searchAzeriteEssence = exports.azeriteEssence = exports.azeriteEssences = void 0;
|
|
4
|
+
const index_js_1 = require("../../shared/index.js");
|
|
5
|
+
const search_js_1 = require("../search.js");
|
|
6
|
+
/**
|
|
7
|
+
* Returns Azerite Essences Index
|
|
8
|
+
*
|
|
9
|
+
* @returns A promise that resolves to an object representing a list of all Azerite Essences.
|
|
10
|
+
*/
|
|
11
|
+
async function azeriteEssences() {
|
|
12
|
+
return await (0, index_js_1.request)({
|
|
13
|
+
method: "GET",
|
|
14
|
+
url: "/data/wow/azerite-essence/index",
|
|
15
|
+
namespace: "static",
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
exports.azeriteEssences = azeriteEssences;
|
|
19
|
+
/**
|
|
20
|
+
* Returns details about a specific Azerite Essence Id
|
|
21
|
+
*
|
|
22
|
+
* @param azeriteEssenceId - The unique identifier Azerite Essence.
|
|
23
|
+
* @returns A promise that resolves to an object representing details about an Azerite Essences.
|
|
24
|
+
*/
|
|
25
|
+
async function azeriteEssence(azeriteEssenceId) {
|
|
26
|
+
return await (0, index_js_1.request)({
|
|
27
|
+
method: "GET",
|
|
28
|
+
url: `/data/wow/azerite-essence/${azeriteEssenceId}`,
|
|
29
|
+
namespace: "static",
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
exports.azeriteEssence = azeriteEssence;
|
|
33
|
+
/**
|
|
34
|
+
* Performs a search of azerite essences.
|
|
35
|
+
*
|
|
36
|
+
* @param SearchParameters - Object containing search parameters.
|
|
37
|
+
* @returns A promise that resolves to an object representing details about a Azerite Essences search.
|
|
38
|
+
*/
|
|
39
|
+
async function searchAzeriteEssence(searchParameters) {
|
|
40
|
+
return await (0, search_js_1.search)("/azerite-essence", "static", searchParameters);
|
|
41
|
+
}
|
|
42
|
+
exports.searchAzeriteEssence = searchAzeriteEssence;
|
|
43
|
+
/**
|
|
44
|
+
* Returns media details about a specific Azerite Essence Id
|
|
45
|
+
*
|
|
46
|
+
* @param azeriteEssenceId - The unique identifier Azerite Essence.
|
|
47
|
+
* @returns A promise that resolves to an object representing media details about an Azerite Essences.
|
|
48
|
+
*/
|
|
49
|
+
async function azeriteEssenceMedia(azeriteEssenceId) {
|
|
50
|
+
return await (0, index_js_1.request)({
|
|
51
|
+
method: "GET",
|
|
52
|
+
url: `/data/wow/media/azerite-essence/${azeriteEssenceId}`,
|
|
53
|
+
namespace: "static",
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
exports.azeriteEssenceMedia = azeriteEssenceMedia;
|
|
@@ -0,0 +1,54 @@
|
|
|
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>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.searchConnectedRealm = exports.connectedRealm = exports.connectedRealms = void 0;
|
|
4
|
+
const index_js_1 = require("../../shared/index.js");
|
|
5
|
+
const search_js_1 = require("../search.js");
|
|
6
|
+
/**
|
|
7
|
+
* Returns the Connected Realms Index
|
|
8
|
+
*
|
|
9
|
+
* @returns A promise that resolves to an object representing a list of all Connected Realms.
|
|
10
|
+
*/
|
|
11
|
+
async function connectedRealms() {
|
|
12
|
+
return await (0, index_js_1.request)({
|
|
13
|
+
method: "GET",
|
|
14
|
+
url: "/data/wow/connected-realm/index",
|
|
15
|
+
namespace: "dynamic",
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
exports.connectedRealms = connectedRealms;
|
|
19
|
+
/**
|
|
20
|
+
* Returns details about a Connected Realms Id
|
|
21
|
+
*
|
|
22
|
+
* @param connectedRealmId - The unique identifier Azerite Essence.
|
|
23
|
+
* @returns A promise that resolves to an object representing details about an Azerite Essences.
|
|
24
|
+
*/
|
|
25
|
+
async function connectedRealm(connectedRealmId) {
|
|
26
|
+
return await (0, index_js_1.request)({
|
|
27
|
+
method: "GET",
|
|
28
|
+
url: `/data/wow/connected-realm/${connectedRealmId}`,
|
|
29
|
+
namespace: "dynamic",
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
exports.connectedRealm = connectedRealm;
|
|
33
|
+
/**
|
|
34
|
+
* Performs a search of connected realms.
|
|
35
|
+
*
|
|
36
|
+
* @param SearchParameters - Object containing search parameters.
|
|
37
|
+
* @returns A promise that resolves to an object representing details about the connected realms search.
|
|
38
|
+
*/
|
|
39
|
+
async function searchConnectedRealm(searchParameters) {
|
|
40
|
+
return await (0, search_js_1.search)("/connected-realm", "dynamic", searchParameters);
|
|
41
|
+
}
|
|
42
|
+
exports.searchConnectedRealm = searchConnectedRealm;
|
|
@@ -0,0 +1,108 @@
|
|
|
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>;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.covenantConduit = exports.covenantConduits = exports.covenantSoulbind = exports.covenantSoulbinds = exports.azeriteEssenceMedia = exports.covenant = exports.covenants = void 0;
|
|
4
|
+
const index_js_1 = require("../../shared/index.js");
|
|
5
|
+
/**
|
|
6
|
+
* Returns an index of Covenants.
|
|
7
|
+
*
|
|
8
|
+
* @returns A promise that resolves to an object representing a list of all Covenants.
|
|
9
|
+
*/
|
|
10
|
+
async function covenants() {
|
|
11
|
+
return await (0, index_js_1.request)({
|
|
12
|
+
method: "GET",
|
|
13
|
+
url: "/data/wow/covenant/index",
|
|
14
|
+
namespace: "static",
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
exports.covenants = covenants;
|
|
18
|
+
/**
|
|
19
|
+
* Returns details about a Covenant
|
|
20
|
+
*
|
|
21
|
+
* @param covenantId - The unique identifier for the Covenant
|
|
22
|
+
* @returns A promise that resolves to an object representing details about a Covenant.
|
|
23
|
+
*/
|
|
24
|
+
async function covenant(covenantId) {
|
|
25
|
+
return await (0, index_js_1.request)({
|
|
26
|
+
method: "GET",
|
|
27
|
+
url: `/data/wow/covenant/${covenantId}`,
|
|
28
|
+
namespace: "static",
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
exports.covenant = covenant;
|
|
32
|
+
/**
|
|
33
|
+
* Returns media details about a Covenant
|
|
34
|
+
*
|
|
35
|
+
* @param covenantId - The unique identifier for the Covenant.
|
|
36
|
+
* @returns A promise that resolves to an object representing media details about a Covenant.
|
|
37
|
+
*/
|
|
38
|
+
async function azeriteEssenceMedia(covenantId) {
|
|
39
|
+
return await (0, index_js_1.request)({
|
|
40
|
+
method: "GET",
|
|
41
|
+
url: `/data/wow/media/covenant/${covenantId}`,
|
|
42
|
+
namespace: "static",
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
exports.azeriteEssenceMedia = azeriteEssenceMedia;
|
|
46
|
+
/**
|
|
47
|
+
* Returns an index of Covenant Soulbinds.
|
|
48
|
+
*
|
|
49
|
+
* @returns A promise that resolves to an object representing a list of all Covenant Soulbinds.
|
|
50
|
+
*/
|
|
51
|
+
async function covenantSoulbinds() {
|
|
52
|
+
return await (0, index_js_1.request)({
|
|
53
|
+
method: "GET",
|
|
54
|
+
url: "/data/wow/covenant/soulbind/index",
|
|
55
|
+
namespace: "static",
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
exports.covenantSoulbinds = covenantSoulbinds;
|
|
59
|
+
/**
|
|
60
|
+
* Returns details about a Covenant Soulbind
|
|
61
|
+
*
|
|
62
|
+
* @param soulbindId - The unique identifier for the Covenant Soulbind
|
|
63
|
+
* @returns A promise that resolves to an object representing details about a Covenant Soulbind.
|
|
64
|
+
*/
|
|
65
|
+
async function covenantSoulbind(soulbindId) {
|
|
66
|
+
return await (0, index_js_1.request)({
|
|
67
|
+
method: "GET",
|
|
68
|
+
url: `/data/wow/covenant/soulbind/${soulbindId}`,
|
|
69
|
+
namespace: "static",
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
exports.covenantSoulbind = covenantSoulbind;
|
|
73
|
+
/**
|
|
74
|
+
* Returns an index of Covenant Conduits.
|
|
75
|
+
*
|
|
76
|
+
* @returns A promise that resolves to an object representing a list of all Covenant Conduits.
|
|
77
|
+
*/
|
|
78
|
+
async function covenantConduits() {
|
|
79
|
+
return await (0, index_js_1.request)({
|
|
80
|
+
method: "GET",
|
|
81
|
+
url: "/data/wow/covenant/conduit/index",
|
|
82
|
+
namespace: "static",
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
exports.covenantConduits = covenantConduits;
|
|
86
|
+
/**
|
|
87
|
+
* Returns details about a Covenant Conduit
|
|
88
|
+
*
|
|
89
|
+
* @param conduitId - The unique identifier for the Covenant Conduit
|
|
90
|
+
* @returns A promise that resolves to an object representing details about a Covenant Conduit.
|
|
91
|
+
*/
|
|
92
|
+
async function covenantConduit(conduitId) {
|
|
93
|
+
return await (0, index_js_1.request)({
|
|
94
|
+
method: "GET",
|
|
95
|
+
url: `/data/wow/covenant/conduit/${conduitId}`,
|
|
96
|
+
namespace: "static",
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
exports.covenantConduit = covenantConduit;
|