@pinta365/blizzard_api 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -0
- package/README.md +153 -37
- package/esm/mod.d.ts +43 -6
- package/esm/mod.js +69 -6
- package/esm/src/client.d.ts +95 -0
- package/esm/src/client.js +52 -0
- package/esm/src/diablo3/community/act.d.ts +29 -0
- package/esm/src/diablo3/community/act.js +23 -0
- package/esm/src/diablo3/community/artisan.d.ts +50 -0
- package/esm/src/diablo3/community/artisan.js +25 -0
- package/esm/src/diablo3/community/follower.d.ts +25 -0
- package/esm/src/diablo3/community/follower.js +12 -0
- package/esm/src/diablo3/community/hero.d.ts +57 -0
- package/esm/src/diablo3/community/hero.js +25 -0
- package/esm/src/diablo3/community/item.d.ts +48 -0
- package/esm/src/diablo3/community/item.js +12 -0
- package/esm/src/diablo3/community/item_type.d.ts +26 -0
- package/esm/src/diablo3/community/item_type.js +23 -0
- package/esm/src/diablo3/community/profile.d.ts +352 -0
- package/esm/src/diablo3/community/profile.js +61 -0
- package/esm/src/diablo3/game_data/d3.d.ts +127 -0
- package/esm/src/diablo3/game_data/d3.js +72 -0
- package/esm/src/diablo3/index.d.ts +8 -0
- package/esm/src/diablo3/index.js +8 -0
- package/esm/src/diablo3/types.d.ts +8 -0
- package/esm/src/diablo3/types.js +1 -0
- package/esm/src/generated/diablo3_api.d.ts +156 -0
- package/esm/src/generated/diablo3_api.js +2 -0
- package/esm/src/generated/hearthstone_api.d.ts +51 -0
- package/esm/src/generated/hearthstone_api.js +2 -0
- package/esm/src/generated/sc2_api.d.ts +139 -0
- package/esm/src/generated/sc2_api.js +2 -0
- package/esm/src/generated/wow_api.d.ts +1482 -0
- package/esm/src/generated/wow_api.js +2 -0
- package/esm/src/generated/wow_classic_api.d.ts +555 -0
- package/esm/src/generated/wow_classic_api.js +2 -0
- package/esm/src/generated/wow_classic_era_api.d.ts +418 -0
- package/esm/src/generated/wow_classic_era_api.js +2 -0
- package/esm/src/hearthstone/game_data/card_backs.d.ts +31 -0
- package/esm/src/hearthstone/game_data/card_backs.js +22 -0
- package/esm/src/hearthstone/game_data/cards.d.ts +55 -0
- package/esm/src/hearthstone/game_data/cards.js +26 -0
- package/esm/src/hearthstone/game_data/decks.d.ts +29 -0
- package/esm/src/hearthstone/game_data/decks.js +13 -0
- package/esm/src/hearthstone/game_data/metadata.d.ts +82 -0
- package/esm/src/hearthstone/game_data/metadata.js +11 -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 +21 -0
- package/esm/src/hearthstone/search.js +28 -0
- package/esm/src/hearthstone/types.d.ts +5 -0
- package/esm/src/hearthstone/types.js +1 -0
- package/esm/src/shared/bind.d.ts +14 -0
- package/esm/src/shared/bind.js +15 -0
- package/esm/src/shared/context.d.ts +163 -0
- package/esm/src/shared/context.js +304 -0
- package/esm/src/shared/errors.d.ts +53 -0
- package/esm/src/shared/errors.js +95 -0
- package/esm/src/shared/index.d.ts +4 -0
- package/esm/src/shared/index.js +2 -0
- package/esm/src/shared/types.d.ts +133 -0
- package/esm/src/shared/types.js +2 -0
- package/esm/src/starcraft2/community/account.d.ts +19 -0
- package/esm/src/starcraft2/community/account.js +15 -0
- package/esm/src/starcraft2/community/ladder.d.ts +29 -0
- package/esm/src/starcraft2/community/ladder.js +27 -0
- package/esm/src/starcraft2/community/legacy.d.ts +206 -0
- package/esm/src/starcraft2/community/legacy.js +83 -0
- package/esm/src/starcraft2/community/profile.d.ts +255 -0
- package/esm/src/starcraft2/community/profile.js +73 -0
- package/esm/src/starcraft2/game_data/league.d.ts +35 -0
- package/esm/src/starcraft2/game_data/league.js +20 -0
- package/esm/src/starcraft2/index.d.ts +5 -0
- package/esm/src/starcraft2/index.js +5 -0
- package/esm/src/starcraft2/types.d.ts +5 -0
- package/esm/src/starcraft2/types.js +1 -0
- package/esm/src/wow/game_data/achievement.d.ts +87 -0
- package/esm/src/wow/game_data/achievement.js +68 -0
- package/esm/src/wow/game_data/auction_house.d.ts +65 -0
- package/esm/src/wow/game_data/auction_house.js +33 -0
- package/esm/src/wow/game_data/azerite_essence.d.ts +50 -0
- package/esm/src/wow/game_data/azerite_essence.js +48 -0
- package/esm/src/wow/game_data/connected_realm.d.ts +62 -0
- package/esm/src/wow/game_data/connected_realm.js +35 -0
- package/esm/src/wow/game_data/covenant.d.ts +115 -0
- package/esm/src/wow/game_data/covenant.js +88 -0
- package/esm/src/wow/game_data/creature.d.ts +98 -0
- package/esm/src/wow/game_data/creature.js +99 -0
- package/esm/src/wow/game_data/guild_crest.d.ts +56 -0
- package/esm/src/wow/game_data/guild_crest.js +38 -0
- package/esm/src/wow/game_data/heirloom.d.ts +82 -0
- package/esm/src/wow/game_data/heirloom.js +25 -0
- package/esm/src/wow/game_data/housing.d.ts +111 -0
- package/esm/src/wow/game_data/housing.js +124 -0
- package/esm/src/wow/game_data/item.d.ts +183 -0
- package/esm/src/wow/game_data/item.js +100 -0
- package/esm/src/wow/game_data/item_appearance.d.ts +102 -0
- package/esm/src/wow/game_data/item_appearance.js +73 -0
- package/esm/src/wow/game_data/journal.d.ts +124 -0
- package/esm/src/wow/game_data/journal.js +98 -0
- package/esm/src/wow/game_data/keystone_affix.d.ts +39 -0
- package/esm/src/wow/game_data/keystone_affix.js +38 -0
- package/esm/src/wow/game_data/media_search.d.ts +9 -0
- package/esm/src/wow/game_data/media_search.js +10 -0
- package/esm/src/wow/game_data/modified_crafting.d.ts +65 -0
- package/esm/src/wow/game_data/modified_crafting.js +62 -0
- package/esm/src/wow/game_data/mount.d.ts +38 -0
- package/esm/src/wow/game_data/mount.js +35 -0
- package/esm/src/wow/game_data/mythic_keystone_dungeon.d.ts +92 -0
- package/esm/src/wow/game_data/mythic_keystone_dungeon.js +87 -0
- package/esm/src/wow/game_data/mythic_keystone_leaderboard.d.ts +70 -0
- package/esm/src/wow/game_data/mythic_keystone_leaderboard.js +28 -0
- package/esm/src/wow/game_data/mythic_raid_leaderboard.d.ts +36 -0
- package/esm/src/wow/game_data/mythic_raid_leaderboard.js +14 -0
- package/esm/src/wow/game_data/neighborhood.d.ts +36 -0
- package/esm/src/wow/game_data/neighborhood.js +38 -0
- package/esm/src/wow/game_data/pet.d.ts +93 -0
- package/esm/src/wow/game_data/pet.js +76 -0
- package/esm/src/wow/game_data/playable_class.d.ts +58 -0
- package/esm/src/wow/game_data/playable_class.js +51 -0
- package/esm/src/wow/game_data/playable_race.d.ts +31 -0
- package/esm/src/wow/game_data/playable_race.js +25 -0
- package/esm/src/wow/game_data/playable_specialization.d.ts +63 -0
- package/esm/src/wow/game_data/playable_specialization.js +38 -0
- package/esm/src/wow/game_data/power_type.d.ts +22 -0
- package/esm/src/wow/game_data/power_type.js +25 -0
- package/esm/src/wow/game_data/profession.d.ts +88 -0
- package/esm/src/wow/game_data/profession.js +78 -0
- package/esm/src/wow/game_data/pvp_season.d.ts +108 -0
- package/esm/src/wow/game_data/pvp_season.js +66 -0
- package/esm/src/wow/game_data/pvp_tier.d.ts +41 -0
- package/esm/src/wow/game_data/pvp_tier.js +38 -0
- package/esm/src/wow/game_data/quest.d.ts +116 -0
- package/esm/src/wow/game_data/quest.js +100 -0
- package/esm/src/wow/game_data/realm.d.ts +43 -0
- package/esm/src/wow/game_data/realm.js +35 -0
- package/esm/src/wow/game_data/region.d.ts +26 -0
- package/esm/src/wow/game_data/region.js +25 -0
- package/esm/src/wow/game_data/reputations.d.ts +57 -0
- package/esm/src/wow/game_data/reputations.js +50 -0
- package/esm/src/wow/game_data/spell.d.ts +34 -0
- package/esm/src/wow/game_data/spell.js +36 -0
- package/esm/src/wow/game_data/talent.d.ts +143 -0
- package/esm/src/wow/game_data/talent.js +89 -0
- package/esm/src/wow/game_data/tech_talent.d.ts +72 -0
- package/esm/src/wow/game_data/tech_talent.js +63 -0
- package/esm/src/wow/game_data/title.d.ts +33 -0
- package/esm/src/wow/game_data/title.js +25 -0
- package/esm/src/wow/game_data/token.d.ts +17 -0
- package/esm/src/wow/game_data/token.js +18 -0
- package/esm/src/wow/game_data/toy.d.ts +25 -0
- package/esm/src/wow/game_data/toy.js +25 -0
- package/esm/src/wow/index.d.ts +59 -0
- package/esm/src/wow/index.js +61 -0
- package/esm/src/wow/profile/account_profile.d.ts +185 -0
- package/esm/src/wow/profile/account_profile.js +132 -0
- package/esm/src/wow/profile/character_achievements.d.ts +88 -0
- package/esm/src/wow/profile/character_achievements.js +28 -0
- package/esm/src/wow/profile/character_appearance.d.ts +79 -0
- package/esm/src/wow/profile/character_appearance.js +14 -0
- package/esm/src/wow/profile/character_collections.d.ts +132 -0
- package/esm/src/wow/profile/character_collections.js +98 -0
- package/esm/src/wow/profile/character_encounters.d.ts +78 -0
- package/esm/src/wow/profile/character_encounters.js +42 -0
- package/esm/src/wow/profile/character_equipment.d.ts +177 -0
- package/esm/src/wow/profile/character_equipment.js +14 -0
- package/esm/src/wow/profile/character_house.d.ts +16 -0
- package/esm/src/wow/profile/character_house.js +17 -0
- package/esm/src/wow/profile/character_hunter_pets.d.ts +22 -0
- package/esm/src/wow/profile/character_hunter_pets.js +14 -0
- package/esm/src/wow/profile/character_media.d.ts +14 -0
- package/esm/src/wow/profile/character_media.js +14 -0
- package/esm/src/wow/profile/character_mythic_keystone_profile.d.ts +70 -0
- package/esm/src/wow/profile/character_mythic_keystone_profile.js +31 -0
- package/esm/src/wow/profile/character_professions.d.ts +29 -0
- package/esm/src/wow/profile/character_professions.js +14 -0
- package/esm/src/wow/profile/character_profile.d.ts +83 -0
- package/esm/src/wow/profile/character_profile.js +39 -0
- package/esm/src/wow/profile/character_pvp.d.ts +53 -0
- package/esm/src/wow/profile/character_pvp.js +29 -0
- package/esm/src/wow/profile/character_quests.d.ts +29 -0
- package/esm/src/wow/profile/character_quests.js +28 -0
- package/esm/src/wow/profile/character_reputations.d.ts +30 -0
- package/esm/src/wow/profile/character_reputations.js +14 -0
- package/esm/src/wow/profile/character_soulbinds.d.ts +31 -0
- package/esm/src/wow/profile/character_soulbinds.js +14 -0
- package/esm/src/wow/profile/character_specializations.d.ts +82 -0
- package/esm/src/wow/profile/character_specializations.js +14 -0
- package/esm/src/wow/profile/character_statistics.d.ts +104 -0
- package/esm/src/wow/profile/character_statistics.js +14 -0
- package/esm/src/wow/profile/character_titles.d.ts +14 -0
- package/esm/src/wow/profile/character_titles.js +14 -0
- package/esm/src/wow/profile/guild.d.ts +150 -0
- package/esm/src/wow/profile/guild.js +56 -0
- package/esm/src/wow/search.d.ts +23 -0
- package/esm/src/wow/search.js +29 -0
- package/esm/src/wow/types.d.ts +58 -0
- package/esm/src/wow/types.js +1 -0
- package/esm/src/wow_classic/auction_house.d.ts +41 -0
- package/esm/src/wow_classic/auction_house.js +31 -0
- package/esm/src/wow_classic/character_specializations.d.ts +45 -0
- package/esm/src/wow_classic/character_specializations.js +18 -0
- package/esm/src/wow_classic/era.d.ts +8 -0
- package/esm/src/wow_classic/era.js +10 -0
- package/esm/src/wow_classic/index.d.ts +15 -0
- package/esm/src/wow_classic/index.js +17 -0
- package/esm/src/wow_classic/profile_overrides.d.ts +125 -0
- package/esm/src/wow_classic/profile_overrides.js +111 -0
- package/esm/src/wow_classic/shared.d.ts +23 -0
- package/esm/src/wow_classic/shared.js +26 -0
- package/esm/src/wow_classic/types.d.ts +3 -0
- package/esm/src/wow_classic/types.js +1 -0
- package/package.json +23 -2
- package/script/mod.d.ts +43 -6
- package/script/mod.js +91 -21
- package/script/src/client.d.ts +95 -0
- package/script/src/client.js +89 -0
- package/script/src/diablo3/community/act.d.ts +29 -0
- package/script/src/diablo3/community/act.js +27 -0
- package/script/src/diablo3/community/artisan.d.ts +50 -0
- package/script/src/diablo3/community/artisan.js +29 -0
- package/script/src/diablo3/community/follower.d.ts +25 -0
- package/script/src/diablo3/community/follower.js +15 -0
- package/script/src/diablo3/community/hero.d.ts +57 -0
- package/script/src/diablo3/community/hero.js +29 -0
- package/script/src/diablo3/community/item.d.ts +48 -0
- package/script/src/diablo3/community/item.js +15 -0
- package/script/src/diablo3/community/item_type.d.ts +26 -0
- package/script/src/diablo3/community/item_type.js +27 -0
- package/script/src/diablo3/community/profile.d.ts +352 -0
- package/script/src/diablo3/community/profile.js +67 -0
- package/script/src/diablo3/game_data/d3.d.ts +127 -0
- package/script/src/diablo3/game_data/d3.js +80 -0
- package/script/src/diablo3/index.d.ts +8 -0
- package/script/src/diablo3/index.js +31 -0
- package/script/src/diablo3/types.d.ts +8 -0
- package/script/src/diablo3/types.js +2 -0
- package/script/src/generated/diablo3_api.d.ts +156 -0
- package/script/src/generated/diablo3_api.js +3 -0
- package/script/src/generated/hearthstone_api.d.ts +51 -0
- package/script/src/generated/hearthstone_api.js +3 -0
- package/script/src/generated/sc2_api.d.ts +139 -0
- package/script/src/generated/sc2_api.js +3 -0
- package/script/src/generated/wow_api.d.ts +1482 -0
- package/script/src/generated/wow_api.js +3 -0
- package/script/src/generated/wow_classic_api.d.ts +555 -0
- package/script/src/generated/wow_classic_api.js +3 -0
- package/script/src/generated/wow_classic_era_api.d.ts +418 -0
- package/script/src/generated/wow_classic_era_api.js +3 -0
- package/script/src/hearthstone/game_data/card_backs.d.ts +31 -0
- package/script/src/hearthstone/game_data/card_backs.js +26 -0
- package/script/src/hearthstone/game_data/cards.d.ts +55 -0
- package/script/src/hearthstone/game_data/cards.js +30 -0
- package/script/src/hearthstone/game_data/decks.d.ts +29 -0
- package/script/src/hearthstone/game_data/decks.js +16 -0
- package/script/src/hearthstone/game_data/metadata.d.ts +82 -0
- package/script/src/hearthstone/game_data/metadata.js +14 -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 +21 -0
- package/script/src/hearthstone/search.js +31 -0
- package/script/src/hearthstone/types.d.ts +5 -0
- package/script/src/hearthstone/types.js +2 -0
- package/script/src/shared/bind.d.ts +14 -0
- package/script/src/shared/bind.js +18 -0
- package/script/src/shared/context.d.ts +163 -0
- package/script/src/shared/context.js +312 -0
- package/script/src/shared/errors.d.ts +53 -0
- package/script/src/shared/errors.js +104 -0
- package/script/src/shared/index.d.ts +4 -0
- package/script/src/shared/index.js +10 -0
- package/script/src/shared/types.d.ts +133 -0
- package/script/src/shared/types.js +3 -0
- package/script/src/starcraft2/community/account.d.ts +19 -0
- package/script/src/starcraft2/community/account.js +18 -0
- package/script/src/starcraft2/community/ladder.d.ts +29 -0
- package/script/src/starcraft2/community/ladder.js +31 -0
- package/script/src/starcraft2/community/legacy.d.ts +206 -0
- package/script/src/starcraft2/community/legacy.js +91 -0
- package/script/src/starcraft2/community/profile.d.ts +255 -0
- package/script/src/starcraft2/community/profile.js +80 -0
- package/script/src/starcraft2/game_data/league.d.ts +35 -0
- package/script/src/starcraft2/game_data/league.js +23 -0
- package/script/src/starcraft2/index.d.ts +5 -0
- package/script/src/starcraft2/index.js +23 -0
- package/script/src/starcraft2/types.d.ts +5 -0
- package/script/src/starcraft2/types.js +2 -0
- package/script/src/wow/game_data/achievement.d.ts +87 -0
- package/script/src/wow/game_data/achievement.js +75 -0
- package/script/src/wow/game_data/auction_house.d.ts +65 -0
- package/script/src/wow/game_data/auction_house.js +37 -0
- package/script/src/wow/game_data/azerite_essence.d.ts +50 -0
- package/script/src/wow/game_data/azerite_essence.js +54 -0
- package/script/src/wow/game_data/connected_realm.d.ts +62 -0
- package/script/src/wow/game_data/connected_realm.js +40 -0
- package/script/src/wow/game_data/covenant.d.ts +115 -0
- package/script/src/wow/game_data/covenant.js +97 -0
- package/script/src/wow/game_data/creature.d.ts +98 -0
- package/script/src/wow/game_data/creature.js +109 -0
- package/script/src/wow/game_data/guild_crest.d.ts +56 -0
- package/script/src/wow/game_data/guild_crest.js +43 -0
- package/script/src/wow/game_data/heirloom.d.ts +82 -0
- package/script/src/wow/game_data/heirloom.js +29 -0
- package/script/src/wow/game_data/housing.d.ts +111 -0
- package/script/src/wow/game_data/housing.js +138 -0
- package/script/src/wow/game_data/item.d.ts +183 -0
- package/script/src/wow/game_data/item.js +110 -0
- package/script/src/wow/game_data/item_appearance.d.ts +102 -0
- package/script/src/wow/game_data/item_appearance.js +81 -0
- package/script/src/wow/game_data/journal.d.ts +124 -0
- package/script/src/wow/game_data/journal.js +108 -0
- package/script/src/wow/game_data/keystone_affix.d.ts +39 -0
- package/script/src/wow/game_data/keystone_affix.js +43 -0
- package/script/src/wow/game_data/media_search.d.ts +9 -0
- package/script/src/wow/game_data/media_search.js +13 -0
- package/script/src/wow/game_data/modified_crafting.d.ts +65 -0
- package/script/src/wow/game_data/modified_crafting.js +69 -0
- package/script/src/wow/game_data/mount.d.ts +38 -0
- package/script/src/wow/game_data/mount.js +40 -0
- package/script/src/wow/game_data/mythic_keystone_dungeon.d.ts +92 -0
- package/script/src/wow/game_data/mythic_keystone_dungeon.js +96 -0
- package/script/src/wow/game_data/mythic_keystone_leaderboard.d.ts +70 -0
- package/script/src/wow/game_data/mythic_keystone_leaderboard.js +32 -0
- package/script/src/wow/game_data/mythic_raid_leaderboard.d.ts +36 -0
- package/script/src/wow/game_data/mythic_raid_leaderboard.js +17 -0
- package/script/src/wow/game_data/neighborhood.d.ts +36 -0
- package/script/src/wow/game_data/neighborhood.js +43 -0
- package/script/src/wow/game_data/pet.d.ts +93 -0
- package/script/src/wow/game_data/pet.js +84 -0
- package/script/src/wow/game_data/playable_class.d.ts +58 -0
- package/script/src/wow/game_data/playable_class.js +57 -0
- package/script/src/wow/game_data/playable_race.d.ts +31 -0
- package/script/src/wow/game_data/playable_race.js +29 -0
- package/script/src/wow/game_data/playable_specialization.d.ts +63 -0
- package/script/src/wow/game_data/playable_specialization.js +43 -0
- package/script/src/wow/game_data/power_type.d.ts +22 -0
- package/script/src/wow/game_data/power_type.js +29 -0
- package/script/src/wow/game_data/profession.d.ts +88 -0
- package/script/src/wow/game_data/profession.js +86 -0
- package/script/src/wow/game_data/pvp_season.d.ts +108 -0
- package/script/src/wow/game_data/pvp_season.js +73 -0
- package/script/src/wow/game_data/pvp_tier.d.ts +41 -0
- package/script/src/wow/game_data/pvp_tier.js +43 -0
- package/script/src/wow/game_data/quest.d.ts +116 -0
- package/script/src/wow/game_data/quest.js +110 -0
- package/script/src/wow/game_data/realm.d.ts +43 -0
- package/script/src/wow/game_data/realm.js +40 -0
- package/script/src/wow/game_data/region.d.ts +26 -0
- package/script/src/wow/game_data/region.js +29 -0
- package/script/src/wow/game_data/reputations.d.ts +57 -0
- package/script/src/wow/game_data/reputations.js +56 -0
- package/script/src/wow/game_data/spell.d.ts +34 -0
- package/script/src/wow/game_data/spell.js +41 -0
- package/script/src/wow/game_data/talent.d.ts +143 -0
- package/script/src/wow/game_data/talent.js +98 -0
- package/script/src/wow/game_data/tech_talent.d.ts +72 -0
- package/script/src/wow/game_data/tech_talent.js +70 -0
- package/script/src/wow/game_data/title.d.ts +33 -0
- package/script/src/wow/game_data/title.js +29 -0
- package/script/src/wow/game_data/token.d.ts +17 -0
- package/script/src/wow/game_data/token.js +21 -0
- package/script/src/wow/game_data/toy.d.ts +25 -0
- package/script/src/wow/game_data/toy.js +29 -0
- package/script/src/wow/index.d.ts +59 -0
- package/script/src/wow/index.js +272 -0
- package/script/src/wow/profile/account_profile.d.ts +185 -0
- package/script/src/wow/profile/account_profile.js +143 -0
- package/script/src/wow/profile/character_achievements.d.ts +88 -0
- package/script/src/wow/profile/character_achievements.js +32 -0
- package/script/src/wow/profile/character_appearance.d.ts +79 -0
- package/script/src/wow/profile/character_appearance.js +17 -0
- package/script/src/wow/profile/character_collections.d.ts +132 -0
- package/script/src/wow/profile/character_collections.js +107 -0
- package/script/src/wow/profile/character_encounters.d.ts +78 -0
- package/script/src/wow/profile/character_encounters.js +47 -0
- package/script/src/wow/profile/character_equipment.d.ts +177 -0
- package/script/src/wow/profile/character_equipment.js +17 -0
- package/script/src/wow/profile/character_house.d.ts +16 -0
- package/script/src/wow/profile/character_house.js +20 -0
- package/script/src/wow/profile/character_hunter_pets.d.ts +22 -0
- package/script/src/wow/profile/character_hunter_pets.js +17 -0
- package/script/src/wow/profile/character_media.d.ts +14 -0
- package/script/src/wow/profile/character_media.js +17 -0
- package/script/src/wow/profile/character_mythic_keystone_profile.d.ts +70 -0
- package/script/src/wow/profile/character_mythic_keystone_profile.js +35 -0
- package/script/src/wow/profile/character_professions.d.ts +29 -0
- package/script/src/wow/profile/character_professions.js +17 -0
- package/script/src/wow/profile/character_profile.d.ts +83 -0
- package/script/src/wow/profile/character_profile.js +43 -0
- package/script/src/wow/profile/character_pvp.d.ts +53 -0
- package/script/src/wow/profile/character_pvp.js +33 -0
- package/script/src/wow/profile/character_quests.d.ts +29 -0
- package/script/src/wow/profile/character_quests.js +32 -0
- package/script/src/wow/profile/character_reputations.d.ts +30 -0
- package/script/src/wow/profile/character_reputations.js +17 -0
- package/script/src/wow/profile/character_soulbinds.d.ts +31 -0
- package/script/src/wow/profile/character_soulbinds.js +17 -0
- package/script/src/wow/profile/character_specializations.d.ts +82 -0
- package/script/src/wow/profile/character_specializations.js +17 -0
- package/script/src/wow/profile/character_statistics.d.ts +104 -0
- package/script/src/wow/profile/character_statistics.js +17 -0
- package/script/src/wow/profile/character_titles.d.ts +14 -0
- package/script/src/wow/profile/character_titles.js +17 -0
- package/script/src/wow/profile/guild.d.ts +150 -0
- package/script/src/wow/profile/guild.js +62 -0
- package/script/src/wow/search.d.ts +23 -0
- package/script/src/wow/search.js +32 -0
- package/script/src/wow/types.d.ts +58 -0
- package/script/src/wow/types.js +2 -0
- package/script/src/wow_classic/auction_house.d.ts +41 -0
- package/script/src/wow_classic/auction_house.js +35 -0
- package/script/src/wow_classic/character_specializations.d.ts +45 -0
- package/script/src/wow_classic/character_specializations.js +21 -0
- package/script/src/wow_classic/era.d.ts +8 -0
- package/script/src/wow_classic/era.js +30 -0
- package/script/src/wow_classic/index.d.ts +15 -0
- package/script/src/wow_classic/index.js +55 -0
- package/script/src/wow_classic/profile_overrides.d.ts +125 -0
- package/script/src/wow_classic/profile_overrides.js +123 -0
- package/script/src/wow_classic/shared.d.ts +23 -0
- package/script/src/wow_classic/shared.js +81 -0
- package/script/src/wow_classic/types.d.ts +3 -0
- package/script/src/wow_classic/types.js +2 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { search } from "../search.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(ctx) {
|
|
8
|
+
return await ctx.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(ctx, mountId) {
|
|
21
|
+
return await ctx.request({
|
|
22
|
+
method: "GET",
|
|
23
|
+
url: `/data/wow/mount/${mountId}`,
|
|
24
|
+
namespace: "static",
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Performs a search of mounts.
|
|
29
|
+
*
|
|
30
|
+
* @param searchParameters - Object containing search parameters.
|
|
31
|
+
* @returns A promise that resolves to an object representing details about a mount search.
|
|
32
|
+
*/
|
|
33
|
+
export async function searchMount(ctx, searchParameters) {
|
|
34
|
+
return await search(ctx, "/mount", "static", searchParameters);
|
|
35
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString, NameId } from "../../shared/index.js";
|
|
3
|
+
export interface MythicKeystoneDungeons extends LinkSelfHref {
|
|
4
|
+
dungeons: KeyNameId[];
|
|
5
|
+
}
|
|
6
|
+
export interface MythicKeystoneDungeon extends LinkSelfHref {
|
|
7
|
+
id: number;
|
|
8
|
+
name: LocalizedString;
|
|
9
|
+
map: NameId;
|
|
10
|
+
zone: {
|
|
11
|
+
slug: string;
|
|
12
|
+
};
|
|
13
|
+
dungeon: KeyNameId;
|
|
14
|
+
keystone_upgrades: {
|
|
15
|
+
upgrade_level: number;
|
|
16
|
+
qualifying_duration: number;
|
|
17
|
+
}[];
|
|
18
|
+
is_tracked: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface MythicKeystoneIndex extends LinkSelfHref {
|
|
21
|
+
seasons: {
|
|
22
|
+
href: string;
|
|
23
|
+
};
|
|
24
|
+
dungeons: {
|
|
25
|
+
href: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export interface MythicKeystonePeriods extends LinkSelfHref {
|
|
29
|
+
periods: KeyId[];
|
|
30
|
+
current_period: KeyId;
|
|
31
|
+
}
|
|
32
|
+
export interface MythicKeystonePeriod extends LinkSelfHref {
|
|
33
|
+
id: number;
|
|
34
|
+
start_timestamp: number;
|
|
35
|
+
end_timestamp: number;
|
|
36
|
+
}
|
|
37
|
+
export interface MythicKeystoneSeason extends LinkSelfHref {
|
|
38
|
+
id: number;
|
|
39
|
+
start_timestamp: number;
|
|
40
|
+
end_timestamp?: number;
|
|
41
|
+
periods: KeyId[];
|
|
42
|
+
season_name: LocalizedString | null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Returns an index of Mythic Keystone dungeons.
|
|
46
|
+
*
|
|
47
|
+
* @returns A promise that resolves to an object representing a list of the Mythic Keystone dungeons.
|
|
48
|
+
*/
|
|
49
|
+
export declare function mythicKeystoneDungeons(ctx: ApiContext): Promise<MythicKeystoneDungeons>;
|
|
50
|
+
/**
|
|
51
|
+
* Returns a Mythic Keystone dungeon by ID.
|
|
52
|
+
*
|
|
53
|
+
* @param dungeonId - The unique identifier for the Mythic Keystone dungeon
|
|
54
|
+
* @returns A promise that resolves to an object representing details about a Mythic Keystone dungeon by ID.
|
|
55
|
+
*/
|
|
56
|
+
export declare function mythicKeystoneDungeon(ctx: ApiContext, dungeonId: number): Promise<MythicKeystoneDungeon>;
|
|
57
|
+
/**
|
|
58
|
+
* Returns an index of links to other documents related to Mythic Keystone dungeons.
|
|
59
|
+
*
|
|
60
|
+
* @returns A promise that resolves to an object representing a index of links to other documents related to Mythic Keystone dungeons.
|
|
61
|
+
*/
|
|
62
|
+
export declare function mythicKeystoneIndex(ctx: ApiContext): Promise<MythicKeystoneIndex>;
|
|
63
|
+
/**
|
|
64
|
+
* Returns an index of Mythic Keystone periods.
|
|
65
|
+
*
|
|
66
|
+
* @returns A promise that resolves to an object representing a index of Mythic Keystone periods.
|
|
67
|
+
*/
|
|
68
|
+
export declare function mythicKeystonePeriods(ctx: ApiContext): Promise<MythicKeystonePeriods>;
|
|
69
|
+
/**
|
|
70
|
+
* Returns a Mythic Keystone period by ID.
|
|
71
|
+
*
|
|
72
|
+
* @param periodId - The unique identifier for the Mythic Keystone period
|
|
73
|
+
* @returns A promise that resolves to an object representing details about a Mythic Keystone period by ID.
|
|
74
|
+
*/
|
|
75
|
+
export declare function mythicKeystonePeriod(ctx: ApiContext, periodId: number): Promise<MythicKeystonePeriod>;
|
|
76
|
+
export interface MythicKeystoneSeasons extends LinkSelfHref {
|
|
77
|
+
"seasons": KeyId[];
|
|
78
|
+
"current_season": KeyId;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Returns an index of Mythic Keystone seasons.
|
|
82
|
+
*
|
|
83
|
+
* @returns A promise that resolves to an object representing a index of Mythic Keystone seasons
|
|
84
|
+
*/
|
|
85
|
+
export declare function mythicKeystoneSeasons(ctx: ApiContext): Promise<MythicKeystoneSeasons>;
|
|
86
|
+
/**
|
|
87
|
+
* Returns a Mythic Keystone season by ID.
|
|
88
|
+
*
|
|
89
|
+
* @param seasonId - The unique identifier for the Mythic Keystone season
|
|
90
|
+
* @returns A promise that resolves to an object representing details about a Mythic Keystone season by ID.
|
|
91
|
+
*/
|
|
92
|
+
export declare function mythicKeystoneSeason(ctx: ApiContext, seasonId: number): Promise<MythicKeystoneSeason>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns an index of Mythic Keystone dungeons.
|
|
3
|
+
*
|
|
4
|
+
* @returns A promise that resolves to an object representing a list of the Mythic Keystone dungeons.
|
|
5
|
+
*/
|
|
6
|
+
export async function mythicKeystoneDungeons(ctx) {
|
|
7
|
+
return await ctx.request({
|
|
8
|
+
method: "GET",
|
|
9
|
+
url: "/data/wow/mythic-keystone/dungeon/index",
|
|
10
|
+
namespace: "dynamic",
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Returns a Mythic Keystone dungeon by ID.
|
|
15
|
+
*
|
|
16
|
+
* @param dungeonId - The unique identifier for the Mythic Keystone dungeon
|
|
17
|
+
* @returns A promise that resolves to an object representing details about a Mythic Keystone dungeon by ID.
|
|
18
|
+
*/
|
|
19
|
+
export async function mythicKeystoneDungeon(ctx, dungeonId) {
|
|
20
|
+
return await ctx.request({
|
|
21
|
+
method: "GET",
|
|
22
|
+
url: `/data/wow/mythic-keystone/dungeon/${dungeonId}`,
|
|
23
|
+
namespace: "dynamic",
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Returns an index of links to other documents related to Mythic Keystone dungeons.
|
|
28
|
+
*
|
|
29
|
+
* @returns A promise that resolves to an object representing a index of links to other documents related to Mythic Keystone dungeons.
|
|
30
|
+
*/
|
|
31
|
+
export async function mythicKeystoneIndex(ctx) {
|
|
32
|
+
return await ctx.request({
|
|
33
|
+
method: "GET",
|
|
34
|
+
url: "/data/wow/mythic-keystone/index",
|
|
35
|
+
namespace: "dynamic",
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Returns an index of Mythic Keystone periods.
|
|
40
|
+
*
|
|
41
|
+
* @returns A promise that resolves to an object representing a index of Mythic Keystone periods.
|
|
42
|
+
*/
|
|
43
|
+
export async function mythicKeystonePeriods(ctx) {
|
|
44
|
+
return await ctx.request({
|
|
45
|
+
method: "GET",
|
|
46
|
+
url: "/data/wow/mythic-keystone/period/index",
|
|
47
|
+
namespace: "dynamic",
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Returns a Mythic Keystone period by ID.
|
|
52
|
+
*
|
|
53
|
+
* @param periodId - The unique identifier for the Mythic Keystone period
|
|
54
|
+
* @returns A promise that resolves to an object representing details about a Mythic Keystone period by ID.
|
|
55
|
+
*/
|
|
56
|
+
export async function mythicKeystonePeriod(ctx, periodId) {
|
|
57
|
+
return await ctx.request({
|
|
58
|
+
method: "GET",
|
|
59
|
+
url: `/data/wow/mythic-keystone/period/${periodId}`,
|
|
60
|
+
namespace: "dynamic",
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Returns an index of Mythic Keystone seasons.
|
|
65
|
+
*
|
|
66
|
+
* @returns A promise that resolves to an object representing a index of Mythic Keystone seasons
|
|
67
|
+
*/
|
|
68
|
+
export async function mythicKeystoneSeasons(ctx) {
|
|
69
|
+
return await ctx.request({
|
|
70
|
+
method: "GET",
|
|
71
|
+
url: "/data/wow/mythic-keystone/season/index",
|
|
72
|
+
namespace: "dynamic",
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Returns a Mythic Keystone season by ID.
|
|
77
|
+
*
|
|
78
|
+
* @param seasonId - The unique identifier for the Mythic Keystone season
|
|
79
|
+
* @returns A promise that resolves to an object representing details about a Mythic Keystone season by ID.
|
|
80
|
+
*/
|
|
81
|
+
export async function mythicKeystoneSeason(ctx, seasonId) {
|
|
82
|
+
return await ctx.request({
|
|
83
|
+
method: "GET",
|
|
84
|
+
url: `/data/wow/mythic-keystone/season/${seasonId}`,
|
|
85
|
+
namespace: "dynamic",
|
|
86
|
+
});
|
|
87
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString, NameId } from "../../shared/index.js";
|
|
3
|
+
export interface MythicKeystoneLeaderboards extends LinkSelfHref {
|
|
4
|
+
current_leaderboards?: KeyNameId[];
|
|
5
|
+
}
|
|
6
|
+
export interface MythicLeaderboardRating {
|
|
7
|
+
color: {
|
|
8
|
+
r: number;
|
|
9
|
+
g: number;
|
|
10
|
+
b: number;
|
|
11
|
+
a: number;
|
|
12
|
+
};
|
|
13
|
+
rating: number;
|
|
14
|
+
}
|
|
15
|
+
export interface MythicKeystoneLeaderboard extends LinkSelfHref {
|
|
16
|
+
map: NameId;
|
|
17
|
+
period: number;
|
|
18
|
+
period_start_timestamp: number;
|
|
19
|
+
period_end_timestamp: number;
|
|
20
|
+
connected_realm: {
|
|
21
|
+
href: string;
|
|
22
|
+
};
|
|
23
|
+
leading_groups: {
|
|
24
|
+
ranking: number;
|
|
25
|
+
duration: number;
|
|
26
|
+
completed_timestamp: number;
|
|
27
|
+
keystone_level: number;
|
|
28
|
+
mythic_rating?: MythicLeaderboardRating;
|
|
29
|
+
members: {
|
|
30
|
+
profile: {
|
|
31
|
+
name: string;
|
|
32
|
+
id: number;
|
|
33
|
+
realm: {
|
|
34
|
+
key: {
|
|
35
|
+
href: string;
|
|
36
|
+
};
|
|
37
|
+
id: number;
|
|
38
|
+
slug: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
faction: {
|
|
42
|
+
type: string;
|
|
43
|
+
};
|
|
44
|
+
specialization: KeyId;
|
|
45
|
+
}[];
|
|
46
|
+
}[];
|
|
47
|
+
keystone_affixes: {
|
|
48
|
+
keystone_affix: KeyNameId;
|
|
49
|
+
starting_level: number;
|
|
50
|
+
max_level?: number;
|
|
51
|
+
}[];
|
|
52
|
+
map_challenge_mode_id: number;
|
|
53
|
+
name: LocalizedString;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Returns an index of Mythic Keystone Leaderboard dungeon instances for a connected realm.
|
|
57
|
+
*
|
|
58
|
+
* @param connectedRealmId - The unique identifier for the connected realm
|
|
59
|
+
* @returns A promise that resolves to an object representing an index of Mythic Keystone Leaderboard dungeon instances for a connected realm.
|
|
60
|
+
*/
|
|
61
|
+
export declare function mythicKeystoneLeaderboards(ctx: ApiContext, connectedRealmId: number): Promise<MythicKeystoneLeaderboards>;
|
|
62
|
+
/**
|
|
63
|
+
* Returns a weekly Mythic Keystone Leaderboard by period.
|
|
64
|
+
*
|
|
65
|
+
* @param connectedRealmId - The unique identifier for the connected realm
|
|
66
|
+
* @param dungeonId - The unique identifier for the dungeon
|
|
67
|
+
* @param period - The unique identifier for the period
|
|
68
|
+
* @returns A promise that resolves to an object representing details about a weekly Mythic Keystone Leaderboard by period.
|
|
69
|
+
*/
|
|
70
|
+
export declare function mythicKeystoneLeaderboard(ctx: ApiContext, connectedRealmId: number, dungeonId: number, period: number): Promise<MythicKeystoneLeaderboard>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns an index of Mythic Keystone Leaderboard dungeon instances for a connected realm.
|
|
3
|
+
*
|
|
4
|
+
* @param connectedRealmId - The unique identifier for the connected realm
|
|
5
|
+
* @returns A promise that resolves to an object representing an index of Mythic Keystone Leaderboard dungeon instances for a connected realm.
|
|
6
|
+
*/
|
|
7
|
+
export async function mythicKeystoneLeaderboards(ctx, connectedRealmId) {
|
|
8
|
+
return await ctx.request({
|
|
9
|
+
method: "GET",
|
|
10
|
+
url: `/data/wow/connected-realm/${connectedRealmId}/mythic-leaderboard/index`,
|
|
11
|
+
namespace: "dynamic",
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns a weekly Mythic Keystone Leaderboard by period.
|
|
16
|
+
*
|
|
17
|
+
* @param connectedRealmId - The unique identifier for the connected realm
|
|
18
|
+
* @param dungeonId - The unique identifier for the dungeon
|
|
19
|
+
* @param period - The unique identifier for the period
|
|
20
|
+
* @returns A promise that resolves to an object representing details about a weekly Mythic Keystone Leaderboard by period.
|
|
21
|
+
*/
|
|
22
|
+
export async function mythicKeystoneLeaderboard(ctx, connectedRealmId, dungeonId, period) {
|
|
23
|
+
return await ctx.request({
|
|
24
|
+
method: "GET",
|
|
25
|
+
url: `/data/wow/connected-realm/${connectedRealmId}/mythic-leaderboard/${dungeonId}/period/${period}`,
|
|
26
|
+
namespace: "dynamic",
|
|
27
|
+
});
|
|
28
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { Href, LinkSelfHref } from "../../shared/index.js";
|
|
3
|
+
export interface MythicRaidLeaderboard extends LinkSelfHref {
|
|
4
|
+
slug: string;
|
|
5
|
+
criteria_type: string;
|
|
6
|
+
entries: {
|
|
7
|
+
guild: {
|
|
8
|
+
name: string;
|
|
9
|
+
id: number;
|
|
10
|
+
realm: {
|
|
11
|
+
name: null;
|
|
12
|
+
id: number;
|
|
13
|
+
slug: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
faction: {
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
timestamp: number;
|
|
20
|
+
region: string;
|
|
21
|
+
rank: number;
|
|
22
|
+
}[];
|
|
23
|
+
journal_instance: {
|
|
24
|
+
key: Href;
|
|
25
|
+
name: string | null;
|
|
26
|
+
id: number;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Returns the leaderboard for a given raid and faction.
|
|
31
|
+
*
|
|
32
|
+
* @param raid - The slug of the raid (e.g. "uldir", "nyalotha-the-waking-city").
|
|
33
|
+
* @param faction - The faction, "alliance" or "horde".
|
|
34
|
+
* @returns A promise that resolves to an object representing the leaderboard for a given raid and faction.
|
|
35
|
+
*/
|
|
36
|
+
export declare function mythicRaidLeaderboard(ctx: ApiContext, raid: string, faction: "alliance" | "horde"): Promise<MythicRaidLeaderboard>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the leaderboard for a given raid and faction.
|
|
3
|
+
*
|
|
4
|
+
* @param raid - The slug of the raid (e.g. "uldir", "nyalotha-the-waking-city").
|
|
5
|
+
* @param faction - The faction, "alliance" or "horde".
|
|
6
|
+
* @returns A promise that resolves to an object representing the leaderboard for a given raid and faction.
|
|
7
|
+
*/
|
|
8
|
+
export async function mythicRaidLeaderboard(ctx, raid, faction) {
|
|
9
|
+
return await ctx.request({
|
|
10
|
+
method: "GET",
|
|
11
|
+
url: `/data/wow/leaderboard/hall-of-fame/${raid}/${faction}`,
|
|
12
|
+
namespace: "dynamic",
|
|
13
|
+
});
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module provides interfaces and API function definitions for fetching World of Warcraft neighborhood map data using the Blizzard API.
|
|
3
|
+
*/
|
|
4
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
5
|
+
import type { LinkSelfHref, NamedRef } from "../../shared/index.js";
|
|
6
|
+
export interface NeighborhoodMaps extends LinkSelfHref {
|
|
7
|
+
maps: NamedRef[];
|
|
8
|
+
}
|
|
9
|
+
export interface NeighborhoodMap extends LinkSelfHref {
|
|
10
|
+
id: number;
|
|
11
|
+
name: string;
|
|
12
|
+
}
|
|
13
|
+
export interface Neighborhood extends LinkSelfHref {
|
|
14
|
+
id: number;
|
|
15
|
+
/** The neighborhood map this neighborhood belongs to. */
|
|
16
|
+
neighborhood_map: NamedRef;
|
|
17
|
+
/** Plot/address identifier (e.g. "63-74-67"). */
|
|
18
|
+
neighborhood_name: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Returns an index of neighborhood maps.
|
|
22
|
+
*/
|
|
23
|
+
export declare function neighborhoodMaps(ctx: ApiContext): Promise<NeighborhoodMaps>;
|
|
24
|
+
/**
|
|
25
|
+
* Returns a neighborhood map by ID.
|
|
26
|
+
*
|
|
27
|
+
* @param neighborhoodMapId - The ID of the neighborhood map.
|
|
28
|
+
*/
|
|
29
|
+
export declare function neighborhoodMap(ctx: ApiContext, neighborhoodMapId: number): Promise<NeighborhoodMap>;
|
|
30
|
+
/**
|
|
31
|
+
* Returns a neighborhood by ID within a neighborhood map.
|
|
32
|
+
*
|
|
33
|
+
* @param neighborhoodMapId - The ID of the neighborhood map.
|
|
34
|
+
* @param neighborhoodId - The ID of the neighborhood.
|
|
35
|
+
*/
|
|
36
|
+
export declare function neighborhood(ctx: ApiContext, neighborhoodMapId: number, neighborhoodId: number): Promise<Neighborhood>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module provides interfaces and API function definitions for fetching World of Warcraft neighborhood map data using the Blizzard API.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Returns an index of neighborhood maps.
|
|
6
|
+
*/
|
|
7
|
+
export async function neighborhoodMaps(ctx) {
|
|
8
|
+
return await ctx.request({
|
|
9
|
+
method: "GET",
|
|
10
|
+
url: "/data/wow/neighborhood-map/index",
|
|
11
|
+
namespace: "dynamic",
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns a neighborhood map by ID.
|
|
16
|
+
*
|
|
17
|
+
* @param neighborhoodMapId - The ID of the neighborhood map.
|
|
18
|
+
*/
|
|
19
|
+
export async function neighborhoodMap(ctx, neighborhoodMapId) {
|
|
20
|
+
return await ctx.request({
|
|
21
|
+
method: "GET",
|
|
22
|
+
url: `/data/wow/neighborhood-map/${neighborhoodMapId}`,
|
|
23
|
+
namespace: "dynamic",
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Returns a neighborhood by ID within a neighborhood map.
|
|
28
|
+
*
|
|
29
|
+
* @param neighborhoodMapId - The ID of the neighborhood map.
|
|
30
|
+
* @param neighborhoodId - The ID of the neighborhood.
|
|
31
|
+
*/
|
|
32
|
+
export async function neighborhood(ctx, neighborhoodMapId, neighborhoodId) {
|
|
33
|
+
return await ctx.request({
|
|
34
|
+
method: "GET",
|
|
35
|
+
url: `/data/wow/neighborhood-map/${neighborhoodMapId}/neighborhood/${neighborhoodId}`,
|
|
36
|
+
namespace: "dynamic",
|
|
37
|
+
});
|
|
38
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
|
|
3
|
+
export interface Pets extends LinkSelfHref {
|
|
4
|
+
pets: KeyNameId[];
|
|
5
|
+
}
|
|
6
|
+
export interface Pet extends LinkSelfHref {
|
|
7
|
+
id: number;
|
|
8
|
+
name: LocalizedString;
|
|
9
|
+
battle_pet_type: {
|
|
10
|
+
id: number;
|
|
11
|
+
type: string;
|
|
12
|
+
name: LocalizedString;
|
|
13
|
+
};
|
|
14
|
+
description: LocalizedString;
|
|
15
|
+
is_capturable: boolean;
|
|
16
|
+
is_tradable: boolean;
|
|
17
|
+
is_battlepet: boolean;
|
|
18
|
+
is_alliance_only: boolean;
|
|
19
|
+
is_horde_only: boolean;
|
|
20
|
+
abilities: {
|
|
21
|
+
ability: KeyNameId;
|
|
22
|
+
slot: number;
|
|
23
|
+
required_level: number;
|
|
24
|
+
}[];
|
|
25
|
+
source: TypeName;
|
|
26
|
+
icon: string;
|
|
27
|
+
creature: KeyNameId;
|
|
28
|
+
is_random_creature_display: boolean;
|
|
29
|
+
should_exclude_if_uncollected: boolean;
|
|
30
|
+
media: KeyId;
|
|
31
|
+
}
|
|
32
|
+
export interface PetMedia extends LinkSelfHref {
|
|
33
|
+
assets: Asset[];
|
|
34
|
+
id: number;
|
|
35
|
+
}
|
|
36
|
+
export interface PetAbilities extends LinkSelfHref {
|
|
37
|
+
abilities: KeyNameId[];
|
|
38
|
+
}
|
|
39
|
+
export interface PetAbility extends LinkSelfHref {
|
|
40
|
+
id: number;
|
|
41
|
+
name: LocalizedString;
|
|
42
|
+
battle_pet_type: {
|
|
43
|
+
id: number;
|
|
44
|
+
type: string;
|
|
45
|
+
name: LocalizedString;
|
|
46
|
+
};
|
|
47
|
+
rounds: number;
|
|
48
|
+
media: KeyId;
|
|
49
|
+
}
|
|
50
|
+
export interface PetAbilityMedia extends LinkSelfHref {
|
|
51
|
+
assets: Asset[];
|
|
52
|
+
id: number;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Returns an index of battle pets.
|
|
56
|
+
*
|
|
57
|
+
* @returns A promise that resolves to an object representing a list of the index of battle pets.
|
|
58
|
+
*/
|
|
59
|
+
export declare function pets(ctx: ApiContext): Promise<Pets>;
|
|
60
|
+
/**
|
|
61
|
+
* Returns a battle pet by ID.
|
|
62
|
+
*
|
|
63
|
+
* @param petId - The unique identifier for the battle pet
|
|
64
|
+
* @returns A promise that resolves to an object representing details about a battle pet.
|
|
65
|
+
*/
|
|
66
|
+
export declare function pet(ctx: ApiContext, petId: number): Promise<Pet>;
|
|
67
|
+
/**
|
|
68
|
+
* Returns media for a battle pet by ID.
|
|
69
|
+
*
|
|
70
|
+
* @param petId - The unique identifier for the battle pet
|
|
71
|
+
* @returns A promise that resolves to an object representing media details about a battle pet.
|
|
72
|
+
*/
|
|
73
|
+
export declare function petMedia(ctx: ApiContext, petId: number): Promise<PetMedia>;
|
|
74
|
+
/**
|
|
75
|
+
* Returns an index of pet abilities.
|
|
76
|
+
*
|
|
77
|
+
* @returns A promise that resolves to an object representing a list of the index of pet abilities.
|
|
78
|
+
*/
|
|
79
|
+
export declare function petAbilities(ctx: ApiContext): Promise<PetAbilities>;
|
|
80
|
+
/**
|
|
81
|
+
* Returns a pet ability by ID.
|
|
82
|
+
*
|
|
83
|
+
* @param petAbilityId - The unique identifier for the battle pet ability
|
|
84
|
+
* @returns A promise that resolves to an object representing details about a battle pet ability.
|
|
85
|
+
*/
|
|
86
|
+
export declare function petAbility(ctx: ApiContext, petAbilityId: number): Promise<PetAbility>;
|
|
87
|
+
/**
|
|
88
|
+
* Returns media for a battle pet by ID.
|
|
89
|
+
*
|
|
90
|
+
* @param petAbilityId - The unique identifier for the battle pet
|
|
91
|
+
* @returns A promise that resolves to an object representing media details about a battle pet.
|
|
92
|
+
*/
|
|
93
|
+
export declare function petAbilityMedia(ctx: ApiContext, petAbilityId: number): Promise<PetAbilityMedia>;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns an index of battle pets.
|
|
3
|
+
*
|
|
4
|
+
* @returns A promise that resolves to an object representing a list of the index of battle pets.
|
|
5
|
+
*/
|
|
6
|
+
export async function pets(ctx) {
|
|
7
|
+
return await ctx.request({
|
|
8
|
+
method: "GET",
|
|
9
|
+
url: "/data/wow/pet/index",
|
|
10
|
+
namespace: "static",
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Returns a battle pet by ID.
|
|
15
|
+
*
|
|
16
|
+
* @param petId - The unique identifier for the battle pet
|
|
17
|
+
* @returns A promise that resolves to an object representing details about a battle pet.
|
|
18
|
+
*/
|
|
19
|
+
export async function pet(ctx, petId) {
|
|
20
|
+
return await ctx.request({
|
|
21
|
+
method: "GET",
|
|
22
|
+
url: `/data/wow/pet/${petId}`,
|
|
23
|
+
namespace: "static",
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Returns media for a battle pet by ID.
|
|
28
|
+
*
|
|
29
|
+
* @param petId - The unique identifier for the battle pet
|
|
30
|
+
* @returns A promise that resolves to an object representing media details about a battle pet.
|
|
31
|
+
*/
|
|
32
|
+
export async function petMedia(ctx, petId) {
|
|
33
|
+
return await ctx.request({
|
|
34
|
+
method: "GET",
|
|
35
|
+
url: `/data/wow/media/pet/${petId}`,
|
|
36
|
+
namespace: "static",
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Returns an index of pet abilities.
|
|
41
|
+
*
|
|
42
|
+
* @returns A promise that resolves to an object representing a list of the index of pet abilities.
|
|
43
|
+
*/
|
|
44
|
+
export async function petAbilities(ctx) {
|
|
45
|
+
return await ctx.request({
|
|
46
|
+
method: "GET",
|
|
47
|
+
url: "/data/wow/pet-ability/index",
|
|
48
|
+
namespace: "static",
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Returns a pet ability by ID.
|
|
53
|
+
*
|
|
54
|
+
* @param petAbilityId - The unique identifier for the battle pet ability
|
|
55
|
+
* @returns A promise that resolves to an object representing details about a battle pet ability.
|
|
56
|
+
*/
|
|
57
|
+
export async function petAbility(ctx, petAbilityId) {
|
|
58
|
+
return await ctx.request({
|
|
59
|
+
method: "GET",
|
|
60
|
+
url: `/data/wow/pet-ability/${petAbilityId}`,
|
|
61
|
+
namespace: "static",
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Returns media for a battle pet by ID.
|
|
66
|
+
*
|
|
67
|
+
* @param petAbilityId - The unique identifier for the battle pet
|
|
68
|
+
* @returns A promise that resolves to an object representing media details about a battle pet.
|
|
69
|
+
*/
|
|
70
|
+
export async function petAbilityMedia(ctx, petAbilityId) {
|
|
71
|
+
return await ctx.request({
|
|
72
|
+
method: "GET",
|
|
73
|
+
url: `/data/wow/media/pet-ability/${petAbilityId}`,
|
|
74
|
+
namespace: "static",
|
|
75
|
+
});
|
|
76
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
|
|
3
|
+
export interface PlayableClasses extends LinkSelfHref {
|
|
4
|
+
classes: KeyNameId[];
|
|
5
|
+
}
|
|
6
|
+
export interface PlayableClass extends LinkSelfHref {
|
|
7
|
+
id: number;
|
|
8
|
+
name: LocalizedString;
|
|
9
|
+
gender_name: {
|
|
10
|
+
male: LocalizedString;
|
|
11
|
+
female: LocalizedString;
|
|
12
|
+
};
|
|
13
|
+
power_type: KeyNameId;
|
|
14
|
+
specializations?: KeyNameId[];
|
|
15
|
+
media: KeyId;
|
|
16
|
+
pvp_talent_slots: {
|
|
17
|
+
href: string;
|
|
18
|
+
};
|
|
19
|
+
playable_races: KeyNameId[];
|
|
20
|
+
additional_power_types?: KeyNameId[];
|
|
21
|
+
}
|
|
22
|
+
export interface PlayableClassMedia extends LinkSelfHref {
|
|
23
|
+
assets: Asset[];
|
|
24
|
+
id: number;
|
|
25
|
+
}
|
|
26
|
+
export interface PlayableClassPvpTalentSlots extends LinkSelfHref {
|
|
27
|
+
talent_slots: {
|
|
28
|
+
slot_number: number;
|
|
29
|
+
unlock_player_level: number;
|
|
30
|
+
}[];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Returns an index of playable classes.
|
|
34
|
+
*
|
|
35
|
+
* @returns A promise that resolves to an object representing a list of the index of playable classes.
|
|
36
|
+
*/
|
|
37
|
+
export declare function playableClasses(ctx: ApiContext): Promise<PlayableClasses>;
|
|
38
|
+
/**
|
|
39
|
+
* Returns a playable class by ID.
|
|
40
|
+
*
|
|
41
|
+
* @param classId - The unique identifier for the playable class
|
|
42
|
+
* @returns A promise that resolves to an object representing details about a playable class.
|
|
43
|
+
*/
|
|
44
|
+
export declare function playableClass(ctx: ApiContext, classId: number): Promise<PlayableClass>;
|
|
45
|
+
/**
|
|
46
|
+
* Returns media for a playable class by ID.
|
|
47
|
+
*
|
|
48
|
+
* @param playableClassId - The unique identifier for the playable class
|
|
49
|
+
* @returns A promise that resolves to an object representing media details about a playable class.
|
|
50
|
+
*/
|
|
51
|
+
export declare function playableClassMedia(ctx: ApiContext, playableClassId: number): Promise<PlayableClassMedia>;
|
|
52
|
+
/**
|
|
53
|
+
* Returns the PvP talent slots for a playable class by ID.
|
|
54
|
+
*
|
|
55
|
+
* @param classId - The unique identifier for the playable class
|
|
56
|
+
* @returns A promise that resolves to an object representing PvP talent slots for a playable class.
|
|
57
|
+
*/
|
|
58
|
+
export declare function playableClassPvpTalentSlots(ctx: ApiContext, classId: number): Promise<PlayableClassPvpTalentSlots>;
|