@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,56 @@
|
|
|
1
|
+
import type { KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
|
|
2
|
+
export interface ModifiedCraftingParents extends LinkSelfHref {
|
|
3
|
+
categories: {
|
|
4
|
+
href: string;
|
|
5
|
+
};
|
|
6
|
+
slot_types: {
|
|
7
|
+
href: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface ModifiedCraftingCategories extends LinkSelfHref {
|
|
11
|
+
categories: KeyNameId;
|
|
12
|
+
}
|
|
13
|
+
export interface ModifiedCraftingCategory extends LinkSelfHref {
|
|
14
|
+
id: number;
|
|
15
|
+
name: LocalizedString;
|
|
16
|
+
}
|
|
17
|
+
export interface ModifiedCraftingSlotTypes extends LinkSelfHref {
|
|
18
|
+
slot_types: KeyNameId[];
|
|
19
|
+
}
|
|
20
|
+
export interface ModifiedCraftingSlotType extends LinkSelfHref {
|
|
21
|
+
id: number;
|
|
22
|
+
description: LocalizedString;
|
|
23
|
+
compatible_categories: KeyNameId[];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Returns the parent index for Modified Crafting.
|
|
27
|
+
*
|
|
28
|
+
* @returns A promise that resolves to an object representing a list of the parent index for Modified Crafting.
|
|
29
|
+
*/
|
|
30
|
+
export declare function modifiedCraftingParents(): Promise<ModifiedCraftingParents>;
|
|
31
|
+
/**
|
|
32
|
+
* Returns the index of Modified Crafting categories.
|
|
33
|
+
*
|
|
34
|
+
* @returns A promise that resolves to an object representing a list of the index of Modified Crafting categories.
|
|
35
|
+
*/
|
|
36
|
+
export declare function modifiedCraftingCategories(): Promise<ModifiedCraftingCategories>;
|
|
37
|
+
/**
|
|
38
|
+
* Returns a Modified Crafting category by ID.
|
|
39
|
+
*
|
|
40
|
+
* @param categoryId - The unique identifier for the Modified Crafting category
|
|
41
|
+
* @returns A promise that resolves to an object representing details about a Modified Crafting category.
|
|
42
|
+
*/
|
|
43
|
+
export declare function modifiedCraftingCategory(categoryId: number): Promise<ModifiedCraftingCategory>;
|
|
44
|
+
/**
|
|
45
|
+
* Returns the index of Modified Crafting reagent slot types.
|
|
46
|
+
*
|
|
47
|
+
* @returns A promise that resolves to an object representing a list of the index of Modified Crafting reagent slot types
|
|
48
|
+
*/
|
|
49
|
+
export declare function modifiedCraftingSlotTypes(): Promise<ModifiedCraftingSlotTypes>;
|
|
50
|
+
/**
|
|
51
|
+
* Returns a Modified Crafting reagent slot type by ID.
|
|
52
|
+
*
|
|
53
|
+
* @param slotTypeId - The unique identifier for the Modified Crafting reagent slot type
|
|
54
|
+
* @returns A promise that resolves to an object representing details about a Modified Crafting reagent slot type by ID.
|
|
55
|
+
*/
|
|
56
|
+
export declare function modifiedCraftingSlotType(slotTypeId: number): Promise<ModifiedCraftingSlotType>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { request } from "../../shared/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Returns the parent index for Modified Crafting.
|
|
4
|
+
*
|
|
5
|
+
* @returns A promise that resolves to an object representing a list of the parent index for Modified Crafting.
|
|
6
|
+
*/
|
|
7
|
+
export async function modifiedCraftingParents() {
|
|
8
|
+
return await request({
|
|
9
|
+
method: "GET",
|
|
10
|
+
url: "/data/wow/modified-crafting/index",
|
|
11
|
+
namespace: "static",
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns the index of Modified Crafting categories.
|
|
16
|
+
*
|
|
17
|
+
* @returns A promise that resolves to an object representing a list of the index of Modified Crafting categories.
|
|
18
|
+
*/
|
|
19
|
+
export async function modifiedCraftingCategories() {
|
|
20
|
+
return await request({
|
|
21
|
+
method: "GET",
|
|
22
|
+
url: "/data/wow/modified-crafting/category/index",
|
|
23
|
+
namespace: "static",
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Returns a Modified Crafting category by ID.
|
|
28
|
+
*
|
|
29
|
+
* @param categoryId - The unique identifier for the Modified Crafting category
|
|
30
|
+
* @returns A promise that resolves to an object representing details about a Modified Crafting category.
|
|
31
|
+
*/
|
|
32
|
+
export async function modifiedCraftingCategory(categoryId) {
|
|
33
|
+
return await request({
|
|
34
|
+
method: "GET",
|
|
35
|
+
url: `/data/wow/modified-crafting/category/${categoryId}`,
|
|
36
|
+
namespace: "static",
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Returns the index of Modified Crafting reagent slot types.
|
|
41
|
+
*
|
|
42
|
+
* @returns A promise that resolves to an object representing a list of the index of Modified Crafting reagent slot types
|
|
43
|
+
*/
|
|
44
|
+
export async function modifiedCraftingSlotTypes() {
|
|
45
|
+
return await request({
|
|
46
|
+
method: "GET",
|
|
47
|
+
url: "/data/wow/modified-crafting/reagent-slot-type/index",
|
|
48
|
+
namespace: "static",
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Returns a Modified Crafting reagent slot type by ID.
|
|
53
|
+
*
|
|
54
|
+
* @param slotTypeId - The unique identifier for the Modified Crafting reagent slot type
|
|
55
|
+
* @returns A promise that resolves to an object representing details about a Modified Crafting reagent slot type by ID.
|
|
56
|
+
*/
|
|
57
|
+
export async function modifiedCraftingSlotType(slotTypeId) {
|
|
58
|
+
return await request({
|
|
59
|
+
method: "GET",
|
|
60
|
+
url: `/data/wow/modified-crafting/reagent-slot-type/${slotTypeId}`,
|
|
61
|
+
namespace: "static",
|
|
62
|
+
});
|
|
63
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
|
|
2
|
+
export interface Mounts extends LinkSelfHref {
|
|
3
|
+
mounts: KeyNameId[];
|
|
4
|
+
}
|
|
5
|
+
export interface Mount extends LinkSelfHref {
|
|
6
|
+
id: number;
|
|
7
|
+
name: LocalizedString;
|
|
8
|
+
creature_displays: KeyId[];
|
|
9
|
+
description: LocalizedString;
|
|
10
|
+
source: TypeName;
|
|
11
|
+
faction?: TypeName;
|
|
12
|
+
should_exclude_if_uncollected?: boolean;
|
|
13
|
+
requirements?: {
|
|
14
|
+
faction: TypeName;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Returns a index of mounts.
|
|
19
|
+
*
|
|
20
|
+
* @returns A promise that resolves to an object representing a list of the index of mounts.
|
|
21
|
+
*/
|
|
22
|
+
export declare function mounts(): Promise<Mounts>;
|
|
23
|
+
/**
|
|
24
|
+
* Returns a mount by ID.
|
|
25
|
+
*
|
|
26
|
+
* @param mountId - The unique identifier for the mount by ID.
|
|
27
|
+
* @returns A promise that resolves to an object representing details about a mount.
|
|
28
|
+
*/
|
|
29
|
+
export declare function mount(mountId: number): Promise<Mount>;
|
|
30
|
+
export declare function searchMount(): void;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { request } from "../../shared/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Returns a index of mounts.
|
|
4
|
+
*
|
|
5
|
+
* @returns A promise that resolves to an object representing a list of the index of mounts.
|
|
6
|
+
*/
|
|
7
|
+
export async function mounts() {
|
|
8
|
+
return await request({
|
|
9
|
+
method: "GET",
|
|
10
|
+
url: "/data/wow/mount/index",
|
|
11
|
+
namespace: "static",
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns a mount by ID.
|
|
16
|
+
*
|
|
17
|
+
* @param mountId - The unique identifier for the mount by ID.
|
|
18
|
+
* @returns A promise that resolves to an object representing details about a mount.
|
|
19
|
+
*/
|
|
20
|
+
export async function mount(mountId) {
|
|
21
|
+
return await request({
|
|
22
|
+
method: "GET",
|
|
23
|
+
url: `/data/wow/mount/${mountId}`,
|
|
24
|
+
namespace: "static",
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export function searchMount() {
|
|
28
|
+
//TODO: Placeholder for the mount Search, will probably be using ./search.ts
|
|
29
|
+
throw new Error("Not implemented yet!");
|
|
30
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString, NameId } from "../../shared/index.js";
|
|
2
|
+
export interface MythicKeystoneDungeons extends LinkSelfHref {
|
|
3
|
+
dungeons: KeyNameId[];
|
|
4
|
+
}
|
|
5
|
+
export interface MythicKeystoneDungeon extends LinkSelfHref {
|
|
6
|
+
id: number;
|
|
7
|
+
name: LocalizedString;
|
|
8
|
+
map: NameId;
|
|
9
|
+
zone: {
|
|
10
|
+
slug: string;
|
|
11
|
+
};
|
|
12
|
+
dungeon: KeyNameId;
|
|
13
|
+
keystone_updates: {
|
|
14
|
+
upgrade_level: number;
|
|
15
|
+
qualifying_duration: number;
|
|
16
|
+
}[];
|
|
17
|
+
is_traacked: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface MythicKeystoneIndex extends LinkSelfHref {
|
|
20
|
+
seasons: {
|
|
21
|
+
href: string;
|
|
22
|
+
};
|
|
23
|
+
dungeons: {
|
|
24
|
+
href: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export interface MythicKeystonePeriods extends LinkSelfHref {
|
|
28
|
+
periods: KeyId[];
|
|
29
|
+
current_period: KeyId;
|
|
30
|
+
}
|
|
31
|
+
export interface MythicKeystonePeriod extends LinkSelfHref {
|
|
32
|
+
id: number;
|
|
33
|
+
start_timestamp: number;
|
|
34
|
+
end_timestamp: number;
|
|
35
|
+
}
|
|
36
|
+
export interface MythicKeystoneSeason extends LinkSelfHref {
|
|
37
|
+
id: number;
|
|
38
|
+
start_timestamp: number;
|
|
39
|
+
end_timestamp?: number;
|
|
40
|
+
periods: KeyId[];
|
|
41
|
+
season_name: LocalizedString;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns an index of Mythic Keystone dungeons.
|
|
45
|
+
*
|
|
46
|
+
* @returns A promise that resolves to an object representing a list of the Mythic Keystone dungeons.
|
|
47
|
+
*/
|
|
48
|
+
export declare function mythicKeystoneDungeons(): Promise<MythicKeystoneDungeons>;
|
|
49
|
+
/**
|
|
50
|
+
* Returns a Mythic Keystone dungeon by ID.
|
|
51
|
+
*
|
|
52
|
+
* @param dungeonId - The unique identifier for the Mythic Keystone dungeon
|
|
53
|
+
* @returns A promise that resolves to an object representing details about a Mythic Keystone dungeon by ID.
|
|
54
|
+
*/
|
|
55
|
+
export declare function mythicKeystoneDungeon(dungeonId: number): Promise<MythicKeystoneDungeon>;
|
|
56
|
+
/**
|
|
57
|
+
* Returns an index of links to other documents related to Mythic Keystone dungeons.
|
|
58
|
+
*
|
|
59
|
+
* @returns A promise that resolves to an object representing a index of links to other documents related to Mythic Keystone dungeons.
|
|
60
|
+
*/
|
|
61
|
+
export declare function mythicKeystoneIndex(): Promise<MythicKeystoneIndex>;
|
|
62
|
+
/**
|
|
63
|
+
* Returns an index of Mythic Keystone periods.
|
|
64
|
+
*
|
|
65
|
+
* @returns A promise that resolves to an object representing a index of Mythic Keystone periods.
|
|
66
|
+
*/
|
|
67
|
+
export declare function mythicKeystonePeriods(): Promise<MythicKeystonePeriods>;
|
|
68
|
+
/**
|
|
69
|
+
* Returns a Mythic Keystone period by ID.
|
|
70
|
+
*
|
|
71
|
+
* @param periodId - The unique identifier for the Mythic Keystone period
|
|
72
|
+
* @returns A promise that resolves to an object representing details about a Mythic Keystone period by ID.
|
|
73
|
+
*/
|
|
74
|
+
export declare function mythicKeystonePeriod(periodId: number): Promise<MythicKeystonePeriod>;
|
|
75
|
+
export interface MythicKeystoneSeasons extends LinkSelfHref {
|
|
76
|
+
"seasons": KeyId[];
|
|
77
|
+
"current_season": KeyId;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Returns an index of Mythic Keystone seasons.
|
|
81
|
+
*
|
|
82
|
+
* @returns A promise that resolves to an object representing a index of Mythic Keystone seasons
|
|
83
|
+
*/
|
|
84
|
+
export declare function mythicKeystoneSeasons(): Promise<MythicKeystoneSeasons>;
|
|
85
|
+
/**
|
|
86
|
+
* Returns a Mythic Keystone season by ID.
|
|
87
|
+
*
|
|
88
|
+
* @param seasonId - The unique identifier for the Mythic Keystone season
|
|
89
|
+
* @returns A promise that resolves to an object representing details about a Mythic Keystone season by ID.
|
|
90
|
+
*/
|
|
91
|
+
export declare function mythicKeystoneSeason(seasonId: number): Promise<MythicKeystoneSeason>;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { request } from "../../shared/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Returns an index of Mythic Keystone dungeons.
|
|
4
|
+
*
|
|
5
|
+
* @returns A promise that resolves to an object representing a list of the Mythic Keystone dungeons.
|
|
6
|
+
*/
|
|
7
|
+
export async function mythicKeystoneDungeons() {
|
|
8
|
+
return await request({
|
|
9
|
+
method: "GET",
|
|
10
|
+
url: "/data/wow/mythic-keystone/dungeon/index",
|
|
11
|
+
namespace: "dynamic",
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns a Mythic Keystone dungeon by ID.
|
|
16
|
+
*
|
|
17
|
+
* @param dungeonId - The unique identifier for the Mythic Keystone dungeon
|
|
18
|
+
* @returns A promise that resolves to an object representing details about a Mythic Keystone dungeon by ID.
|
|
19
|
+
*/
|
|
20
|
+
export async function mythicKeystoneDungeon(dungeonId) {
|
|
21
|
+
return await request({
|
|
22
|
+
method: "GET",
|
|
23
|
+
url: `/data/wow/mythic-keystone/dungeon/${dungeonId}`,
|
|
24
|
+
namespace: "dynamic",
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Returns an index of links to other documents related to Mythic Keystone dungeons.
|
|
29
|
+
*
|
|
30
|
+
* @returns A promise that resolves to an object representing a index of links to other documents related to Mythic Keystone dungeons.
|
|
31
|
+
*/
|
|
32
|
+
export async function mythicKeystoneIndex() {
|
|
33
|
+
return await request({
|
|
34
|
+
method: "GET",
|
|
35
|
+
url: "/data/wow/mythic-keystone/index",
|
|
36
|
+
namespace: "dynamic",
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Returns an index of Mythic Keystone periods.
|
|
41
|
+
*
|
|
42
|
+
* @returns A promise that resolves to an object representing a index of Mythic Keystone periods.
|
|
43
|
+
*/
|
|
44
|
+
export async function mythicKeystonePeriods() {
|
|
45
|
+
return await request({
|
|
46
|
+
method: "GET",
|
|
47
|
+
url: "/data/wow/mythic-keystone/period/index",
|
|
48
|
+
namespace: "dynamic",
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Returns a Mythic Keystone period by ID.
|
|
53
|
+
*
|
|
54
|
+
* @param periodId - The unique identifier for the Mythic Keystone period
|
|
55
|
+
* @returns A promise that resolves to an object representing details about a Mythic Keystone period by ID.
|
|
56
|
+
*/
|
|
57
|
+
export async function mythicKeystonePeriod(periodId) {
|
|
58
|
+
return await request({
|
|
59
|
+
method: "GET",
|
|
60
|
+
url: `/data/wow/mythic-keystone/period/${periodId}`,
|
|
61
|
+
namespace: "dynamic",
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Returns an index of Mythic Keystone seasons.
|
|
66
|
+
*
|
|
67
|
+
* @returns A promise that resolves to an object representing a index of Mythic Keystone seasons
|
|
68
|
+
*/
|
|
69
|
+
export async function mythicKeystoneSeasons() {
|
|
70
|
+
return await request({
|
|
71
|
+
method: "GET",
|
|
72
|
+
url: "/data/wow/mythic-keystone/season/index",
|
|
73
|
+
namespace: "dynamic",
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Returns a Mythic Keystone season by ID.
|
|
78
|
+
*
|
|
79
|
+
* @param seasonId - The unique identifier for the Mythic Keystone season
|
|
80
|
+
* @returns A promise that resolves to an object representing details about a Mythic Keystone season by ID.
|
|
81
|
+
*/
|
|
82
|
+
export async function mythicKeystoneSeason(seasonId) {
|
|
83
|
+
return await request({
|
|
84
|
+
method: "GET",
|
|
85
|
+
url: `/data/wow/mythic-keystone/season/${seasonId}`,
|
|
86
|
+
namespace: "dynamic",
|
|
87
|
+
});
|
|
88
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString, NameId } from "../../shared/index.js";
|
|
2
|
+
export interface MythicKeystoneLeaderboards extends LinkSelfHref {
|
|
3
|
+
current_leaderboards: KeyNameId[];
|
|
4
|
+
}
|
|
5
|
+
export interface MythicKeystoneLeaderboard extends LinkSelfHref {
|
|
6
|
+
map: NameId;
|
|
7
|
+
period: number;
|
|
8
|
+
period_start_timestamp: number;
|
|
9
|
+
period_end_timestamp: number;
|
|
10
|
+
connected_realm: {
|
|
11
|
+
href: string;
|
|
12
|
+
};
|
|
13
|
+
leading_groups: {
|
|
14
|
+
ranking: number;
|
|
15
|
+
duration: number;
|
|
16
|
+
completed_timestamp: number;
|
|
17
|
+
keystone_level: number;
|
|
18
|
+
members: {
|
|
19
|
+
profile: {
|
|
20
|
+
name: string;
|
|
21
|
+
id: number;
|
|
22
|
+
realm: {
|
|
23
|
+
key: {
|
|
24
|
+
href: string;
|
|
25
|
+
};
|
|
26
|
+
id: number;
|
|
27
|
+
slug: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
faction: {
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
specialization: KeyId;
|
|
34
|
+
}[];
|
|
35
|
+
}[];
|
|
36
|
+
keystone_affixes: {
|
|
37
|
+
keystone_affix: KeyNameId;
|
|
38
|
+
starting_level: number;
|
|
39
|
+
}[];
|
|
40
|
+
map_challenge_mode_id: number;
|
|
41
|
+
name: LocalizedString;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns an index of Mythic Keystone Leaderboard dungeon instances for a connected realm.
|
|
45
|
+
*
|
|
46
|
+
* @param connectedRealmId - The unique identifier for the connected realm
|
|
47
|
+
* @returns A promise that resolves to an object representing an index of Mythic Keystone Leaderboard dungeon instances for a connected realm.
|
|
48
|
+
*/
|
|
49
|
+
export declare function mythicKeystoneLeaderboards(connectedRealmId: number): Promise<MythicKeystoneLeaderboards>;
|
|
50
|
+
/**
|
|
51
|
+
* Returns a weekly Mythic Keystone Leaderboard by period.
|
|
52
|
+
*
|
|
53
|
+
* @param connectedRealmId - The unique identifier for the connected realm
|
|
54
|
+
* @param dungeonId - The unique identifier for the dungeon
|
|
55
|
+
* @param period - The unique identifier for the period
|
|
56
|
+
* @returns A promise that resolves to an object representing details about a weekly Mythic Keystone Leaderboard by period.
|
|
57
|
+
*/
|
|
58
|
+
export declare function mythicKeystoneLeaderboard(connectedRealmId: number, dungeonId: number, period: number): Promise<MythicKeystoneLeaderboard>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { request } from "../../shared/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Returns an index of Mythic Keystone Leaderboard dungeon instances for a connected realm.
|
|
4
|
+
*
|
|
5
|
+
* @param connectedRealmId - The unique identifier for the connected realm
|
|
6
|
+
* @returns A promise that resolves to an object representing an index of Mythic Keystone Leaderboard dungeon instances for a connected realm.
|
|
7
|
+
*/
|
|
8
|
+
export async function mythicKeystoneLeaderboards(connectedRealmId) {
|
|
9
|
+
return await request({
|
|
10
|
+
method: "GET",
|
|
11
|
+
url: `/data/wow/connected-realm/${connectedRealmId}/mythic-leaderboard/index`,
|
|
12
|
+
namespace: "dynamic",
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Returns a weekly Mythic Keystone Leaderboard by period.
|
|
17
|
+
*
|
|
18
|
+
* @param connectedRealmId - The unique identifier for the connected realm
|
|
19
|
+
* @param dungeonId - The unique identifier for the dungeon
|
|
20
|
+
* @param period - The unique identifier for the period
|
|
21
|
+
* @returns A promise that resolves to an object representing details about a weekly Mythic Keystone Leaderboard by period.
|
|
22
|
+
*/
|
|
23
|
+
export async function mythicKeystoneLeaderboard(connectedRealmId, dungeonId, period) {
|
|
24
|
+
return await request({
|
|
25
|
+
method: "GET",
|
|
26
|
+
url: `/data/wow/connected-realm/${connectedRealmId}/mythic-leaderboard/${dungeonId}/period/${period}`,
|
|
27
|
+
namespace: "dynamic",
|
|
28
|
+
});
|
|
29
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { KeyNameId, LinkSelfHref } from "../../shared/index.js";
|
|
2
|
+
export interface MythicRaidLeaderboard extends LinkSelfHref {
|
|
3
|
+
slug: string;
|
|
4
|
+
criteria_type: string;
|
|
5
|
+
entries: {
|
|
6
|
+
guild: {
|
|
7
|
+
name: string;
|
|
8
|
+
id: number;
|
|
9
|
+
realm: {
|
|
10
|
+
name: null;
|
|
11
|
+
id: number;
|
|
12
|
+
slug: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
faction: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
timestamp: number;
|
|
19
|
+
region: string;
|
|
20
|
+
rank: number;
|
|
21
|
+
}[];
|
|
22
|
+
journal_instance: KeyNameId;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns the leaderboard for a given raid and faction.
|
|
26
|
+
*
|
|
27
|
+
* @param raid - The unique identifier for the raid
|
|
28
|
+
* @param faction - The unique identifier for the faction
|
|
29
|
+
* @returns A promise that resolves to an object representing the leaderboard for a given raid and faction.
|
|
30
|
+
*/
|
|
31
|
+
export declare function mythicRaidLeaderboard(raid: number, faction: number): Promise<MythicRaidLeaderboard>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { request } from "../../shared/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Returns the leaderboard for a given raid and faction.
|
|
4
|
+
*
|
|
5
|
+
* @param raid - The unique identifier for the raid
|
|
6
|
+
* @param faction - The unique identifier for the faction
|
|
7
|
+
* @returns A promise that resolves to an object representing the leaderboard for a given raid and faction.
|
|
8
|
+
*/
|
|
9
|
+
export async function mythicRaidLeaderboard(raid, faction) {
|
|
10
|
+
return await request({
|
|
11
|
+
method: "GET",
|
|
12
|
+
url: `/data/wow/leaderboard/hall-of-fame/${raid}/${faction}`,
|
|
13
|
+
namespace: "dynamic",
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
|
|
2
|
+
export interface Pets extends LinkSelfHref {
|
|
3
|
+
pets: KeyNameId[];
|
|
4
|
+
}
|
|
5
|
+
export interface Pet extends LinkSelfHref {
|
|
6
|
+
id: number;
|
|
7
|
+
name: LocalizedString;
|
|
8
|
+
battle_pet_type: {
|
|
9
|
+
id: number;
|
|
10
|
+
type: string;
|
|
11
|
+
name: LocalizedString;
|
|
12
|
+
};
|
|
13
|
+
description: LocalizedString;
|
|
14
|
+
is_capturable: boolean;
|
|
15
|
+
is_tradable: boolean;
|
|
16
|
+
is_battlepet: boolean;
|
|
17
|
+
is_alliance_only: boolean;
|
|
18
|
+
is_horde_only: boolean;
|
|
19
|
+
abilities: {
|
|
20
|
+
ability: KeyNameId;
|
|
21
|
+
slot: number;
|
|
22
|
+
required_level: number;
|
|
23
|
+
}[];
|
|
24
|
+
source: TypeName;
|
|
25
|
+
icon: string;
|
|
26
|
+
creature: KeyNameId;
|
|
27
|
+
is_random_creature_display: boolean;
|
|
28
|
+
media: KeyId;
|
|
29
|
+
}
|
|
30
|
+
export interface PetMedia extends LinkSelfHref {
|
|
31
|
+
assets: Asset[];
|
|
32
|
+
id: number;
|
|
33
|
+
}
|
|
34
|
+
export interface PetAbilities extends LinkSelfHref {
|
|
35
|
+
abilities: KeyNameId[];
|
|
36
|
+
}
|
|
37
|
+
export interface PetAbility extends LinkSelfHref {
|
|
38
|
+
id: number;
|
|
39
|
+
name: LocalizedString;
|
|
40
|
+
battle_pet_type: {
|
|
41
|
+
id: number;
|
|
42
|
+
type: string;
|
|
43
|
+
name: LocalizedString;
|
|
44
|
+
};
|
|
45
|
+
rounds: number;
|
|
46
|
+
media: KeyId;
|
|
47
|
+
}
|
|
48
|
+
export interface PetAbilityMedia extends LinkSelfHref {
|
|
49
|
+
assets: Asset[];
|
|
50
|
+
id: number;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Returns an index of battle pets.
|
|
54
|
+
*
|
|
55
|
+
* @returns A promise that resolves to an object representing a list of the index of battle pets.
|
|
56
|
+
*/
|
|
57
|
+
export declare function pets(): Promise<Pets>;
|
|
58
|
+
/**
|
|
59
|
+
* Returns a battle pet by ID.
|
|
60
|
+
*
|
|
61
|
+
* @param petId - The unique identifier for the battle pet
|
|
62
|
+
* @returns A promise that resolves to an object representing details about a battle pet.
|
|
63
|
+
*/
|
|
64
|
+
export declare function pet(petId: number): Promise<Pet>;
|
|
65
|
+
/**
|
|
66
|
+
* Returns media for a battle pet by ID.
|
|
67
|
+
*
|
|
68
|
+
* @param petId - The unique identifier for the battle pet
|
|
69
|
+
* @returns A promise that resolves to an object representing media details about a battle pet.
|
|
70
|
+
*/
|
|
71
|
+
export declare function petMedia(petId: number): Promise<PetMedia>;
|
|
72
|
+
/**
|
|
73
|
+
* Returns an index of pet abilities.
|
|
74
|
+
*
|
|
75
|
+
* @returns A promise that resolves to an object representing a list of the index of pet abilities.
|
|
76
|
+
*/
|
|
77
|
+
export declare function petAbilities(): Promise<PetAbilities>;
|
|
78
|
+
/**
|
|
79
|
+
* Returns a pet ability by ID.
|
|
80
|
+
*
|
|
81
|
+
* @param petAbilityId - The unique identifier for the battle pet ability
|
|
82
|
+
* @returns A promise that resolves to an object representing details about a battle pet ability.
|
|
83
|
+
*/
|
|
84
|
+
export declare function petAbility(petAbilityId: number): Promise<PetAbility>;
|
|
85
|
+
/**
|
|
86
|
+
* Returns media for a battle pet by ID.
|
|
87
|
+
*
|
|
88
|
+
* @param petAbilityId - The unique identifier for the battle pet
|
|
89
|
+
* @returns A promise that resolves to an object representing media details about a battle pet.
|
|
90
|
+
*/
|
|
91
|
+
export declare function petAbilityMedia(petAbilityId: number): Promise<PetAbilityMedia>;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { request } from "../../shared/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Returns an index of battle pets.
|
|
4
|
+
*
|
|
5
|
+
* @returns A promise that resolves to an object representing a list of the index of battle pets.
|
|
6
|
+
*/
|
|
7
|
+
export async function pets() {
|
|
8
|
+
return await request({
|
|
9
|
+
method: "GET",
|
|
10
|
+
url: "/data/wow/pet/index",
|
|
11
|
+
namespace: "static",
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns a battle pet by ID.
|
|
16
|
+
*
|
|
17
|
+
* @param petId - The unique identifier for the battle pet
|
|
18
|
+
* @returns A promise that resolves to an object representing details about a battle pet.
|
|
19
|
+
*/
|
|
20
|
+
export async function pet(petId) {
|
|
21
|
+
return await request({
|
|
22
|
+
method: "GET",
|
|
23
|
+
url: `/data/wow/pet/${petId}`,
|
|
24
|
+
namespace: "static",
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Returns media for a battle pet by ID.
|
|
29
|
+
*
|
|
30
|
+
* @param petId - The unique identifier for the battle pet
|
|
31
|
+
* @returns A promise that resolves to an object representing media details about a battle pet.
|
|
32
|
+
*/
|
|
33
|
+
export async function petMedia(petId) {
|
|
34
|
+
return await request({
|
|
35
|
+
method: "GET",
|
|
36
|
+
url: `/data/wow/media/pet/${petId}`,
|
|
37
|
+
namespace: "static",
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Returns an index of pet abilities.
|
|
42
|
+
*
|
|
43
|
+
* @returns A promise that resolves to an object representing a list of the index of pet abilities.
|
|
44
|
+
*/
|
|
45
|
+
export async function petAbilities() {
|
|
46
|
+
return await request({
|
|
47
|
+
method: "GET",
|
|
48
|
+
url: "/data/wow/pet-ability/index",
|
|
49
|
+
namespace: "static",
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Returns a pet ability by ID.
|
|
54
|
+
*
|
|
55
|
+
* @param petAbilityId - The unique identifier for the battle pet ability
|
|
56
|
+
* @returns A promise that resolves to an object representing details about a battle pet ability.
|
|
57
|
+
*/
|
|
58
|
+
export async function petAbility(petAbilityId) {
|
|
59
|
+
return await request({
|
|
60
|
+
method: "GET",
|
|
61
|
+
url: `/data/wow/pet-ability/${petAbilityId}`,
|
|
62
|
+
namespace: "static",
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Returns media for a battle pet by ID.
|
|
67
|
+
*
|
|
68
|
+
* @param petAbilityId - The unique identifier for the battle pet
|
|
69
|
+
* @returns A promise that resolves to an object representing media details about a battle pet.
|
|
70
|
+
*/
|
|
71
|
+
export async function petAbilityMedia(petAbilityId) {
|
|
72
|
+
return await request({
|
|
73
|
+
method: "GET",
|
|
74
|
+
url: `/data/wow/media/pet-ability${petAbilityId}`,
|
|
75
|
+
namespace: "static",
|
|
76
|
+
});
|
|
77
|
+
}
|