@pinta365/blizzard_api 0.3.6 → 0.3.9
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/README.md +1 -0
- package/esm/mod.d.ts +4 -2
- package/esm/mod.js +4 -2
- package/package.json +1 -1
- package/script/mod.d.ts +4 -2
- package/script/mod.js +8 -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 -43
- 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 -47
- 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,85 +0,0 @@
|
|
|
1
|
-
import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
|
|
2
|
-
export interface Professions extends LinkSelfHref {
|
|
3
|
-
professions: KeyNameId[];
|
|
4
|
-
}
|
|
5
|
-
export interface Profession extends LinkSelfHref {
|
|
6
|
-
id: number;
|
|
7
|
-
name: LocalizedString;
|
|
8
|
-
description: LocalizedString;
|
|
9
|
-
type: TypeName;
|
|
10
|
-
media: KeyId;
|
|
11
|
-
skill_tiers: KeyNameId[];
|
|
12
|
-
}
|
|
13
|
-
export interface ProfessionMedia extends LinkSelfHref {
|
|
14
|
-
assets: Asset[];
|
|
15
|
-
id: number;
|
|
16
|
-
}
|
|
17
|
-
export interface ProfessionSkillTier extends LinkSelfHref {
|
|
18
|
-
id: number;
|
|
19
|
-
name: LocalizedString;
|
|
20
|
-
minimum_skill_level: number;
|
|
21
|
-
maximum_skill_level: number;
|
|
22
|
-
categories: {
|
|
23
|
-
name: LocalizedString;
|
|
24
|
-
recipes: KeyNameId[];
|
|
25
|
-
}[];
|
|
26
|
-
}
|
|
27
|
-
export interface ProfessionRecipie extends LinkSelfHref {
|
|
28
|
-
id: number;
|
|
29
|
-
name: LocalizedString;
|
|
30
|
-
media: KeyId;
|
|
31
|
-
crafted_item: KeyNameId;
|
|
32
|
-
reagents: {
|
|
33
|
-
reagent: KeyNameId;
|
|
34
|
-
quantity: number;
|
|
35
|
-
}[];
|
|
36
|
-
crafted_quantity: {
|
|
37
|
-
value: number;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export interface professionRecipieMedia extends LinkSelfHref {
|
|
41
|
-
assets: Asset[];
|
|
42
|
-
id: number;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Returns an index of professions.
|
|
46
|
-
*
|
|
47
|
-
* @returns A promise that resolves to an object representing a list of professions.
|
|
48
|
-
*/
|
|
49
|
-
export declare function professions(): Promise<Professions>;
|
|
50
|
-
/**
|
|
51
|
-
* Returns a profession by ID.
|
|
52
|
-
*
|
|
53
|
-
* @param professionId - The unique identifier for the profession.
|
|
54
|
-
* @returns A promise that resolves to an object representing details about a profession.
|
|
55
|
-
*/
|
|
56
|
-
export declare function profession(professionId: number): Promise<Profession>;
|
|
57
|
-
/**
|
|
58
|
-
* Returns media for a profession by ID.
|
|
59
|
-
*
|
|
60
|
-
* @param professionId - The unique identifier for the profession
|
|
61
|
-
* @returns A promise that resolves to an object representing media details about a profession.
|
|
62
|
-
*/
|
|
63
|
-
export declare function professionMedia(professionId: number): Promise<ProfessionMedia>;
|
|
64
|
-
/**
|
|
65
|
-
* Returns a skill tier for a profession by ID.
|
|
66
|
-
*
|
|
67
|
-
* @param professionId - The unique identifier for the profession
|
|
68
|
-
* @param skillTierId - The unique identifier for the skill tier
|
|
69
|
-
* @returns A promise that resolves to an object representing details about a skill tier.
|
|
70
|
-
*/
|
|
71
|
-
export declare function professionSkillTier(professionId: number, skillTierId: number): Promise<ProfessionSkillTier>;
|
|
72
|
-
/**
|
|
73
|
-
* Returns a recipe by ID.
|
|
74
|
-
*
|
|
75
|
-
* @param recipeId - The unique identifier for the recipe.
|
|
76
|
-
* @returns A promise that resolves to an object representing details about a recipe.
|
|
77
|
-
*/
|
|
78
|
-
export declare function professionRecipie(recipeId: number): Promise<ProfessionRecipie>;
|
|
79
|
-
/**
|
|
80
|
-
* Returns media for a recipe by ID.
|
|
81
|
-
*
|
|
82
|
-
* @param recipeId - The unique identifier for the recipe
|
|
83
|
-
* @returns A promise that resolves to an object representing media details about a recipe.
|
|
84
|
-
*/
|
|
85
|
-
export declare function professionRecipieMedia(recipeId: number): Promise<professionRecipieMedia>;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.professionRecipieMedia = exports.professionRecipie = exports.professionSkillTier = exports.professionMedia = exports.profession = exports.professions = void 0;
|
|
4
|
-
const index_js_1 = require("../../shared/index.js");
|
|
5
|
-
/**
|
|
6
|
-
* Returns an index of professions.
|
|
7
|
-
*
|
|
8
|
-
* @returns A promise that resolves to an object representing a list of professions.
|
|
9
|
-
*/
|
|
10
|
-
async function professions() {
|
|
11
|
-
return await (0, index_js_1.request)({
|
|
12
|
-
method: "GET",
|
|
13
|
-
url: "/data/wow/profession/index",
|
|
14
|
-
namespace: "static",
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
exports.professions = professions;
|
|
18
|
-
/**
|
|
19
|
-
* Returns a profession by ID.
|
|
20
|
-
*
|
|
21
|
-
* @param professionId - The unique identifier for the profession.
|
|
22
|
-
* @returns A promise that resolves to an object representing details about a profession.
|
|
23
|
-
*/
|
|
24
|
-
async function profession(professionId) {
|
|
25
|
-
return await (0, index_js_1.request)({
|
|
26
|
-
method: "GET",
|
|
27
|
-
url: `/data/wow/profession/${professionId}`,
|
|
28
|
-
namespace: "static",
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
exports.profession = profession;
|
|
32
|
-
/**
|
|
33
|
-
* Returns media for a profession by ID.
|
|
34
|
-
*
|
|
35
|
-
* @param professionId - The unique identifier for the profession
|
|
36
|
-
* @returns A promise that resolves to an object representing media details about a profession.
|
|
37
|
-
*/
|
|
38
|
-
async function professionMedia(professionId) {
|
|
39
|
-
return await (0, index_js_1.request)({
|
|
40
|
-
method: "GET",
|
|
41
|
-
url: `/data/wow/media/profession/${professionId}`,
|
|
42
|
-
namespace: "static",
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
exports.professionMedia = professionMedia;
|
|
46
|
-
/**
|
|
47
|
-
* Returns a skill tier for a profession by ID.
|
|
48
|
-
*
|
|
49
|
-
* @param professionId - The unique identifier for the profession
|
|
50
|
-
* @param skillTierId - The unique identifier for the skill tier
|
|
51
|
-
* @returns A promise that resolves to an object representing details about a skill tier.
|
|
52
|
-
*/
|
|
53
|
-
async function professionSkillTier(professionId, skillTierId) {
|
|
54
|
-
return await (0, index_js_1.request)({
|
|
55
|
-
method: "GET",
|
|
56
|
-
url: `/data/wow/profession/${professionId}/skill-tier/${skillTierId}`,
|
|
57
|
-
namespace: "static",
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
exports.professionSkillTier = professionSkillTier;
|
|
61
|
-
/**
|
|
62
|
-
* Returns a recipe by ID.
|
|
63
|
-
*
|
|
64
|
-
* @param recipeId - The unique identifier for the recipe.
|
|
65
|
-
* @returns A promise that resolves to an object representing details about a recipe.
|
|
66
|
-
*/
|
|
67
|
-
async function professionRecipie(recipeId) {
|
|
68
|
-
return await (0, index_js_1.request)({
|
|
69
|
-
method: "GET",
|
|
70
|
-
url: `/data/wow/recipe/${recipeId}`,
|
|
71
|
-
namespace: "static",
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
exports.professionRecipie = professionRecipie;
|
|
75
|
-
/**
|
|
76
|
-
* Returns media for a recipe by ID.
|
|
77
|
-
*
|
|
78
|
-
* @param recipeId - The unique identifier for the recipe
|
|
79
|
-
* @returns A promise that resolves to an object representing media details about a recipe.
|
|
80
|
-
*/
|
|
81
|
-
async function professionRecipieMedia(recipeId) {
|
|
82
|
-
return await (0, index_js_1.request)({
|
|
83
|
-
method: "GET",
|
|
84
|
-
url: `/data/wow/media/recipe/${recipeId}`,
|
|
85
|
-
namespace: "static",
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
exports.professionRecipieMedia = professionRecipieMedia;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import type { KeyId, KeyNameId, LinkSelfHref, TypeName } from "../../shared/index.js";
|
|
2
|
-
export interface PvpSeasons extends LinkSelfHref {
|
|
3
|
-
seasons: KeyId[];
|
|
4
|
-
current_season: KeyId;
|
|
5
|
-
}
|
|
6
|
-
export interface PvpSeason extends LinkSelfHref {
|
|
7
|
-
id: number;
|
|
8
|
-
leaderboards: {
|
|
9
|
-
href: string;
|
|
10
|
-
};
|
|
11
|
-
rewards: {
|
|
12
|
-
href: string;
|
|
13
|
-
};
|
|
14
|
-
season_start_timestamp: number;
|
|
15
|
-
season_end_timestamp: number;
|
|
16
|
-
}
|
|
17
|
-
export interface PvpSeasonLeaderboards extends LinkSelfHref {
|
|
18
|
-
season: KeyId;
|
|
19
|
-
leaderboards: KeyNameId[];
|
|
20
|
-
}
|
|
21
|
-
export interface PvpSeasonLeaderboard extends LinkSelfHref {
|
|
22
|
-
season: KeyId;
|
|
23
|
-
name: string;
|
|
24
|
-
bracket: {
|
|
25
|
-
id: number;
|
|
26
|
-
type: string;
|
|
27
|
-
};
|
|
28
|
-
entries: {
|
|
29
|
-
character: {
|
|
30
|
-
name: string;
|
|
31
|
-
id: number;
|
|
32
|
-
realm: {
|
|
33
|
-
key: {
|
|
34
|
-
href: string;
|
|
35
|
-
};
|
|
36
|
-
id: number;
|
|
37
|
-
slug: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
faction: {
|
|
41
|
-
type: string;
|
|
42
|
-
};
|
|
43
|
-
rank: number;
|
|
44
|
-
rating: number;
|
|
45
|
-
season_match_statistics: {
|
|
46
|
-
played: number;
|
|
47
|
-
won: number;
|
|
48
|
-
lost: number;
|
|
49
|
-
};
|
|
50
|
-
tier: KeyId;
|
|
51
|
-
}[];
|
|
52
|
-
}
|
|
53
|
-
export interface PvpSeasonRewards extends LinkSelfHref {
|
|
54
|
-
season: KeyId;
|
|
55
|
-
rewards: {
|
|
56
|
-
bracket: {
|
|
57
|
-
id: number;
|
|
58
|
-
type: string;
|
|
59
|
-
};
|
|
60
|
-
achievement: KeyNameId;
|
|
61
|
-
rating_cutoff: number;
|
|
62
|
-
faction: TypeName;
|
|
63
|
-
}[];
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Returns an index of PvP seasons.
|
|
67
|
-
*
|
|
68
|
-
* @returns A promise that resolves to an object representing a list of PvP seasons.
|
|
69
|
-
*/
|
|
70
|
-
export declare function pvpSeasons(): Promise<PvpSeasons>;
|
|
71
|
-
/**
|
|
72
|
-
* Returns a PvP season by ID.
|
|
73
|
-
*
|
|
74
|
-
* @param pvpSeasonId - The unique identifier for the PvP season.
|
|
75
|
-
* @returns A promise that resolves to an object representing details about a PvP season.
|
|
76
|
-
*/
|
|
77
|
-
export declare function pvpSeason(pvpSeasonId: number): Promise<PvpSeason>;
|
|
78
|
-
/**
|
|
79
|
-
* Returns an index of PvP leaderboards for a PvP season.
|
|
80
|
-
*
|
|
81
|
-
* @param pvpSeasonId - The unique identifier for the PvP season.
|
|
82
|
-
* @returns A promise that resolves to an object representing details about the PvP leaderboards.
|
|
83
|
-
*/
|
|
84
|
-
export declare function pvpSeasonLeaderboards(pvpSeasonId: number): Promise<PvpSeasonLeaderboards>;
|
|
85
|
-
/**
|
|
86
|
-
* Returns the PvP leaderboard of a specific PvP bracket for a PvP season.
|
|
87
|
-
*
|
|
88
|
-
* @param pvpSeasonId - The unique identifier for the PvP season.
|
|
89
|
-
* @param pvpBracket - The unique identifier for the PvP bracket.
|
|
90
|
-
* @returns A promise that resolves to an object representing details about the PvP bracket.
|
|
91
|
-
*/
|
|
92
|
-
export declare function pvpSeasonLeaderboard(pvpSeasonId: number, pvpBracket: number): Promise<PvpSeasonLeaderboard>;
|
|
93
|
-
/**
|
|
94
|
-
* Returns an index of PvP rewards for a PvP season.
|
|
95
|
-
*
|
|
96
|
-
* @param pvpSeasonId - The unique identifier for the PvP season.
|
|
97
|
-
* @returns A promise that resolves to an object representing details about the PvP rewards.
|
|
98
|
-
*/
|
|
99
|
-
export declare function pvpSeasonRewards(pvpSeasonId: number): Promise<PvpSeasonRewards>;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.pvpSeasonRewards = exports.pvpSeasonLeaderboard = exports.pvpSeasonLeaderboards = exports.pvpSeason = exports.pvpSeasons = void 0;
|
|
4
|
-
const index_js_1 = require("../../shared/index.js");
|
|
5
|
-
/**
|
|
6
|
-
* Returns an index of PvP seasons.
|
|
7
|
-
*
|
|
8
|
-
* @returns A promise that resolves to an object representing a list of PvP seasons.
|
|
9
|
-
*/
|
|
10
|
-
async function pvpSeasons() {
|
|
11
|
-
return await (0, index_js_1.request)({
|
|
12
|
-
method: "GET",
|
|
13
|
-
url: "/data/wow/pvp-season/index",
|
|
14
|
-
namespace: "dynamic",
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
exports.pvpSeasons = pvpSeasons;
|
|
18
|
-
/**
|
|
19
|
-
* Returns a PvP season by ID.
|
|
20
|
-
*
|
|
21
|
-
* @param pvpSeasonId - The unique identifier for the PvP season.
|
|
22
|
-
* @returns A promise that resolves to an object representing details about a PvP season.
|
|
23
|
-
*/
|
|
24
|
-
async function pvpSeason(pvpSeasonId) {
|
|
25
|
-
return await (0, index_js_1.request)({
|
|
26
|
-
method: "GET",
|
|
27
|
-
url: `/data/wow/pvp-season/${pvpSeasonId}`,
|
|
28
|
-
namespace: "dynamic",
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
exports.pvpSeason = pvpSeason;
|
|
32
|
-
/**
|
|
33
|
-
* Returns an index of PvP leaderboards for a PvP season.
|
|
34
|
-
*
|
|
35
|
-
* @param pvpSeasonId - The unique identifier for the PvP season.
|
|
36
|
-
* @returns A promise that resolves to an object representing details about the PvP leaderboards.
|
|
37
|
-
*/
|
|
38
|
-
async function pvpSeasonLeaderboards(pvpSeasonId) {
|
|
39
|
-
return await (0, index_js_1.request)({
|
|
40
|
-
method: "GET",
|
|
41
|
-
url: `/data/wow/pvp-season/${pvpSeasonId}/pvp-leaderboard/index`,
|
|
42
|
-
namespace: "dynamic",
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
exports.pvpSeasonLeaderboards = pvpSeasonLeaderboards;
|
|
46
|
-
/**
|
|
47
|
-
* Returns the PvP leaderboard of a specific PvP bracket for a PvP season.
|
|
48
|
-
*
|
|
49
|
-
* @param pvpSeasonId - The unique identifier for the PvP season.
|
|
50
|
-
* @param pvpBracket - The unique identifier for the PvP bracket.
|
|
51
|
-
* @returns A promise that resolves to an object representing details about the PvP bracket.
|
|
52
|
-
*/
|
|
53
|
-
async function pvpSeasonLeaderboard(pvpSeasonId, pvpBracket) {
|
|
54
|
-
return await (0, index_js_1.request)({
|
|
55
|
-
method: "GET",
|
|
56
|
-
url: `/data/wow/pvp-season/${pvpSeasonId}/pvp-leaderboard/${pvpBracket}`,
|
|
57
|
-
namespace: "dynamic",
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
exports.pvpSeasonLeaderboard = pvpSeasonLeaderboard;
|
|
61
|
-
/**
|
|
62
|
-
* Returns an index of PvP rewards for a PvP season.
|
|
63
|
-
*
|
|
64
|
-
* @param pvpSeasonId - The unique identifier for the PvP season.
|
|
65
|
-
* @returns A promise that resolves to an object representing details about the PvP rewards.
|
|
66
|
-
*/
|
|
67
|
-
async function pvpSeasonRewards(pvpSeasonId) {
|
|
68
|
-
return await (0, index_js_1.request)({
|
|
69
|
-
method: "GET",
|
|
70
|
-
url: `/data/wow/pvp-season/${pvpSeasonId}/pvp-leaderboard/index`,
|
|
71
|
-
namespace: "dynamic",
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
exports.pvpSeasonRewards = pvpSeasonRewards;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
|
|
2
|
-
export interface PvpTierMedia extends LinkSelfHref {
|
|
3
|
-
assets: Asset[];
|
|
4
|
-
id: number;
|
|
5
|
-
}
|
|
6
|
-
export interface PvpTiers extends LinkSelfHref {
|
|
7
|
-
tiers: KeyNameId[];
|
|
8
|
-
}
|
|
9
|
-
export interface PvpTier extends LinkSelfHref {
|
|
10
|
-
id: number;
|
|
11
|
-
name: LocalizedString;
|
|
12
|
-
min_rating: number;
|
|
13
|
-
max_rating: number;
|
|
14
|
-
media: KeyId;
|
|
15
|
-
bracket: {
|
|
16
|
-
id: number;
|
|
17
|
-
type: string;
|
|
18
|
-
};
|
|
19
|
-
rating_type: number;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Returns media for a PvP tier by ID.
|
|
23
|
-
*
|
|
24
|
-
* @param pvpTierId - The unique identifier for the PvP tier
|
|
25
|
-
* @returns A promise that resolves to an object representing media details about a PvP tier.
|
|
26
|
-
*/
|
|
27
|
-
export declare function pvpTierMedia(pvpTierId: number): Promise<PvpTierMedia>;
|
|
28
|
-
/**
|
|
29
|
-
* Returns an index of PvP tiers.
|
|
30
|
-
*
|
|
31
|
-
* @returns A promise that resolves to an object representing a list of PvP tiers.
|
|
32
|
-
*/
|
|
33
|
-
export declare function pvpTiers(): Promise<PvpTiers>;
|
|
34
|
-
/**
|
|
35
|
-
* Returns a PvP tier by ID.
|
|
36
|
-
*
|
|
37
|
-
* @param pvpTierId - The unique identifier for the PvP tier.
|
|
38
|
-
* @returns A promise that resolves to an object representing details about a PvP tier.
|
|
39
|
-
*/
|
|
40
|
-
export declare function pvpTier(pvpTierId: number): Promise<PvpTier>;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.pvpTier = exports.pvpTiers = exports.pvpTierMedia = void 0;
|
|
4
|
-
const index_js_1 = require("../../shared/index.js");
|
|
5
|
-
/**
|
|
6
|
-
* Returns media for a PvP tier by ID.
|
|
7
|
-
*
|
|
8
|
-
* @param pvpTierId - The unique identifier for the PvP tier
|
|
9
|
-
* @returns A promise that resolves to an object representing media details about a PvP tier.
|
|
10
|
-
*/
|
|
11
|
-
async function pvpTierMedia(pvpTierId) {
|
|
12
|
-
return await (0, index_js_1.request)({
|
|
13
|
-
method: "GET",
|
|
14
|
-
url: `/data/wow/media/pvp-tier/${pvpTierId}`,
|
|
15
|
-
namespace: "static",
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
exports.pvpTierMedia = pvpTierMedia;
|
|
19
|
-
/**
|
|
20
|
-
* Returns an index of PvP tiers.
|
|
21
|
-
*
|
|
22
|
-
* @returns A promise that resolves to an object representing a list of PvP tiers.
|
|
23
|
-
*/
|
|
24
|
-
async function pvpTiers() {
|
|
25
|
-
return await (0, index_js_1.request)({
|
|
26
|
-
method: "GET",
|
|
27
|
-
url: "/data/wow/pvp-tier/index",
|
|
28
|
-
namespace: "static",
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
exports.pvpTiers = pvpTiers;
|
|
32
|
-
/**
|
|
33
|
-
* Returns a PvP tier by ID.
|
|
34
|
-
*
|
|
35
|
-
* @param pvpTierId - The unique identifier for the PvP tier.
|
|
36
|
-
* @returns A promise that resolves to an object representing details about a PvP tier.
|
|
37
|
-
*/
|
|
38
|
-
async function pvpTier(pvpTierId) {
|
|
39
|
-
return await (0, index_js_1.request)({
|
|
40
|
-
method: "GET",
|
|
41
|
-
url: `/data/wow/pvp-tier/${pvpTierId}`,
|
|
42
|
-
namespace: "static",
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
exports.pvpTier = pvpTier;
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import type { KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
|
|
2
|
-
export interface Quests extends LinkSelfHref {
|
|
3
|
-
categories: {
|
|
4
|
-
href: string;
|
|
5
|
-
};
|
|
6
|
-
areas: {
|
|
7
|
-
href: string;
|
|
8
|
-
};
|
|
9
|
-
types: {
|
|
10
|
-
href: string;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export interface Quest extends LinkSelfHref {
|
|
14
|
-
id: number;
|
|
15
|
-
title: LocalizedString;
|
|
16
|
-
area: KeyNameId;
|
|
17
|
-
description: LocalizedString;
|
|
18
|
-
requirements: {
|
|
19
|
-
min_character_level: number;
|
|
20
|
-
max_character_level: number;
|
|
21
|
-
faction: TypeName;
|
|
22
|
-
};
|
|
23
|
-
rewards: {
|
|
24
|
-
experience: number;
|
|
25
|
-
reputations: {
|
|
26
|
-
reward: KeyNameId;
|
|
27
|
-
value: number;
|
|
28
|
-
}[];
|
|
29
|
-
money: {
|
|
30
|
-
value: number;
|
|
31
|
-
units: {
|
|
32
|
-
gold: number;
|
|
33
|
-
silver: number;
|
|
34
|
-
copper: number;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
export interface QuestCategories extends LinkSelfHref {
|
|
40
|
-
categories: KeyNameId[];
|
|
41
|
-
}
|
|
42
|
-
export interface QuestCategory extends LinkSelfHref {
|
|
43
|
-
id: number;
|
|
44
|
-
category: LocalizedString;
|
|
45
|
-
quests: KeyNameId[];
|
|
46
|
-
}
|
|
47
|
-
export interface QuestAreas extends LinkSelfHref {
|
|
48
|
-
areas: KeyNameId[];
|
|
49
|
-
}
|
|
50
|
-
export interface QuestArea extends LinkSelfHref {
|
|
51
|
-
id: number;
|
|
52
|
-
area: LocalizedString;
|
|
53
|
-
quests: KeyNameId[];
|
|
54
|
-
}
|
|
55
|
-
export interface QuestTypes extends LinkSelfHref {
|
|
56
|
-
types: KeyNameId[];
|
|
57
|
-
}
|
|
58
|
-
export interface QuestType extends LinkSelfHref {
|
|
59
|
-
id: number;
|
|
60
|
-
type: LocalizedString;
|
|
61
|
-
quests: KeyNameId[];
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Returns the parent index for quests.
|
|
65
|
-
*
|
|
66
|
-
* @returns A promise that resolves to an object representing a list of quests.
|
|
67
|
-
*/
|
|
68
|
-
export declare function quests(): Promise<Quests>;
|
|
69
|
-
/**
|
|
70
|
-
* Returns a quest by ID.
|
|
71
|
-
*
|
|
72
|
-
* @param questId - The unique identifier for the quest.
|
|
73
|
-
* @returns A promise that resolves to an object representing details about a quest.
|
|
74
|
-
*/
|
|
75
|
-
export declare function quest(questId: number): Promise<Quest>;
|
|
76
|
-
/**
|
|
77
|
-
* Returns an index of quest categories (such as quests for a specific class, profession, or storyline).
|
|
78
|
-
*
|
|
79
|
-
* @returns A promise that resolves to an object representing a list of quest categories.
|
|
80
|
-
*/
|
|
81
|
-
export declare function questCategories(): Promise<QuestCategories>;
|
|
82
|
-
/**
|
|
83
|
-
* Returns a quest category by ID.
|
|
84
|
-
*
|
|
85
|
-
* @param questCategoryId - The unique identifier for the quest category.
|
|
86
|
-
* @returns A promise that resolves to an object representing details about a quest category.
|
|
87
|
-
*/
|
|
88
|
-
export declare function questCategory(questCategoryId: number): Promise<QuestCategory>;
|
|
89
|
-
/**
|
|
90
|
-
* Returns an index of quest areas.
|
|
91
|
-
*
|
|
92
|
-
* @returns A promise that resolves to an object representing a list of quest areas.
|
|
93
|
-
*/
|
|
94
|
-
export declare function questAreas(): Promise<QuestAreas>;
|
|
95
|
-
/**
|
|
96
|
-
* Returns a quest area by ID.
|
|
97
|
-
*
|
|
98
|
-
* @param questAreaId - The unique identifier for the quest area.
|
|
99
|
-
* @returns A promise that resolves to an object representing details about a quest area.
|
|
100
|
-
*/
|
|
101
|
-
export declare function questArea(questAreaId: number): Promise<QuestArea>;
|
|
102
|
-
/**
|
|
103
|
-
* Returns an index of quest types (such as PvP quests, raid quests, or account quests).
|
|
104
|
-
*
|
|
105
|
-
* @returns A promise that resolves to an object representing a list of quest types.
|
|
106
|
-
*/
|
|
107
|
-
export declare function questTypes(): Promise<QuestTypes>;
|
|
108
|
-
/**
|
|
109
|
-
* Returns a quest type by ID.
|
|
110
|
-
*
|
|
111
|
-
* @param questTypeId - The unique identifier for the quest type.
|
|
112
|
-
* @returns A promise that resolves to an object representing details about a quest type.
|
|
113
|
-
*/
|
|
114
|
-
export declare function questType(questTypeId: number): Promise<QuestType>;
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.questType = exports.questTypes = exports.questArea = exports.questAreas = exports.questCategory = exports.questCategories = exports.quest = exports.quests = void 0;
|
|
4
|
-
const index_js_1 = require("../../shared/index.js");
|
|
5
|
-
/**
|
|
6
|
-
* Returns the parent index for quests.
|
|
7
|
-
*
|
|
8
|
-
* @returns A promise that resolves to an object representing a list of quests.
|
|
9
|
-
*/
|
|
10
|
-
async function quests() {
|
|
11
|
-
return await (0, index_js_1.request)({
|
|
12
|
-
method: "GET",
|
|
13
|
-
url: "/data/wow/quest/index",
|
|
14
|
-
namespace: "static",
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
exports.quests = quests;
|
|
18
|
-
/**
|
|
19
|
-
* Returns a quest by ID.
|
|
20
|
-
*
|
|
21
|
-
* @param questId - The unique identifier for the quest.
|
|
22
|
-
* @returns A promise that resolves to an object representing details about a quest.
|
|
23
|
-
*/
|
|
24
|
-
async function quest(questId) {
|
|
25
|
-
return await (0, index_js_1.request)({
|
|
26
|
-
method: "GET",
|
|
27
|
-
url: `/data/wow/quest/${questId}`,
|
|
28
|
-
namespace: "static",
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
exports.quest = quest;
|
|
32
|
-
/**
|
|
33
|
-
* Returns an index of quest categories (such as quests for a specific class, profession, or storyline).
|
|
34
|
-
*
|
|
35
|
-
* @returns A promise that resolves to an object representing a list of quest categories.
|
|
36
|
-
*/
|
|
37
|
-
async function questCategories() {
|
|
38
|
-
return await (0, index_js_1.request)({
|
|
39
|
-
method: "GET",
|
|
40
|
-
url: "/data/wow/quest/category/index",
|
|
41
|
-
namespace: "static",
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
exports.questCategories = questCategories;
|
|
45
|
-
/**
|
|
46
|
-
* Returns a quest category by ID.
|
|
47
|
-
*
|
|
48
|
-
* @param questCategoryId - The unique identifier for the quest category.
|
|
49
|
-
* @returns A promise that resolves to an object representing details about a quest category.
|
|
50
|
-
*/
|
|
51
|
-
async function questCategory(questCategoryId) {
|
|
52
|
-
return await (0, index_js_1.request)({
|
|
53
|
-
method: "GET",
|
|
54
|
-
url: `/data/wow/quest/category/${questCategoryId}`,
|
|
55
|
-
namespace: "static",
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
exports.questCategory = questCategory;
|
|
59
|
-
/**
|
|
60
|
-
* Returns an index of quest areas.
|
|
61
|
-
*
|
|
62
|
-
* @returns A promise that resolves to an object representing a list of quest areas.
|
|
63
|
-
*/
|
|
64
|
-
async function questAreas() {
|
|
65
|
-
return await (0, index_js_1.request)({
|
|
66
|
-
method: "GET",
|
|
67
|
-
url: "/data/wow/quest/area/index",
|
|
68
|
-
namespace: "static",
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
exports.questAreas = questAreas;
|
|
72
|
-
/**
|
|
73
|
-
* Returns a quest area by ID.
|
|
74
|
-
*
|
|
75
|
-
* @param questAreaId - The unique identifier for the quest area.
|
|
76
|
-
* @returns A promise that resolves to an object representing details about a quest area.
|
|
77
|
-
*/
|
|
78
|
-
async function questArea(questAreaId) {
|
|
79
|
-
return await (0, index_js_1.request)({
|
|
80
|
-
method: "GET",
|
|
81
|
-
url: `/data/wow/quest/area/${questAreaId}`,
|
|
82
|
-
namespace: "static",
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
exports.questArea = questArea;
|
|
86
|
-
/**
|
|
87
|
-
* Returns an index of quest types (such as PvP quests, raid quests, or account quests).
|
|
88
|
-
*
|
|
89
|
-
* @returns A promise that resolves to an object representing a list of quest types.
|
|
90
|
-
*/
|
|
91
|
-
async function questTypes() {
|
|
92
|
-
return await (0, index_js_1.request)({
|
|
93
|
-
method: "GET",
|
|
94
|
-
url: "/data/wow/quest/type/index",
|
|
95
|
-
namespace: "static",
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
exports.questTypes = questTypes;
|
|
99
|
-
/**
|
|
100
|
-
* Returns a quest type by ID.
|
|
101
|
-
*
|
|
102
|
-
* @param questTypeId - The unique identifier for the quest type.
|
|
103
|
-
* @returns A promise that resolves to an object representing details about a quest type.
|
|
104
|
-
*/
|
|
105
|
-
async function questType(questTypeId) {
|
|
106
|
-
return await (0, index_js_1.request)({
|
|
107
|
-
method: "GET",
|
|
108
|
-
url: `/data/wow/quest/type/${questTypeId}`,
|
|
109
|
-
namespace: "static",
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
exports.questType = questType;
|