@pinta365/blizzard_api 0.3.9 → 0.5.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 +145 -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,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,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mythicKeystoneDungeons = mythicKeystoneDungeons;
|
|
4
|
+
exports.mythicKeystoneDungeon = mythicKeystoneDungeon;
|
|
5
|
+
exports.mythicKeystoneIndex = mythicKeystoneIndex;
|
|
6
|
+
exports.mythicKeystonePeriods = mythicKeystonePeriods;
|
|
7
|
+
exports.mythicKeystonePeriod = mythicKeystonePeriod;
|
|
8
|
+
exports.mythicKeystoneSeasons = mythicKeystoneSeasons;
|
|
9
|
+
exports.mythicKeystoneSeason = mythicKeystoneSeason;
|
|
10
|
+
/**
|
|
11
|
+
* Returns an index of Mythic Keystone dungeons.
|
|
12
|
+
*
|
|
13
|
+
* @returns A promise that resolves to an object representing a list of the Mythic Keystone dungeons.
|
|
14
|
+
*/
|
|
15
|
+
async function mythicKeystoneDungeons(ctx) {
|
|
16
|
+
return await ctx.request({
|
|
17
|
+
method: "GET",
|
|
18
|
+
url: "/data/wow/mythic-keystone/dungeon/index",
|
|
19
|
+
namespace: "dynamic",
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns a Mythic Keystone dungeon by ID.
|
|
24
|
+
*
|
|
25
|
+
* @param dungeonId - The unique identifier for the Mythic Keystone dungeon
|
|
26
|
+
* @returns A promise that resolves to an object representing details about a Mythic Keystone dungeon by ID.
|
|
27
|
+
*/
|
|
28
|
+
async function mythicKeystoneDungeon(ctx, dungeonId) {
|
|
29
|
+
return await ctx.request({
|
|
30
|
+
method: "GET",
|
|
31
|
+
url: `/data/wow/mythic-keystone/dungeon/${dungeonId}`,
|
|
32
|
+
namespace: "dynamic",
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Returns an index of links to other documents related to Mythic Keystone dungeons.
|
|
37
|
+
*
|
|
38
|
+
* @returns A promise that resolves to an object representing a index of links to other documents related to Mythic Keystone dungeons.
|
|
39
|
+
*/
|
|
40
|
+
async function mythicKeystoneIndex(ctx) {
|
|
41
|
+
return await ctx.request({
|
|
42
|
+
method: "GET",
|
|
43
|
+
url: "/data/wow/mythic-keystone/index",
|
|
44
|
+
namespace: "dynamic",
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Returns an index of Mythic Keystone periods.
|
|
49
|
+
*
|
|
50
|
+
* @returns A promise that resolves to an object representing a index of Mythic Keystone periods.
|
|
51
|
+
*/
|
|
52
|
+
async function mythicKeystonePeriods(ctx) {
|
|
53
|
+
return await ctx.request({
|
|
54
|
+
method: "GET",
|
|
55
|
+
url: "/data/wow/mythic-keystone/period/index",
|
|
56
|
+
namespace: "dynamic",
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Returns a Mythic Keystone period by ID.
|
|
61
|
+
*
|
|
62
|
+
* @param periodId - The unique identifier for the Mythic Keystone period
|
|
63
|
+
* @returns A promise that resolves to an object representing details about a Mythic Keystone period by ID.
|
|
64
|
+
*/
|
|
65
|
+
async function mythicKeystonePeriod(ctx, periodId) {
|
|
66
|
+
return await ctx.request({
|
|
67
|
+
method: "GET",
|
|
68
|
+
url: `/data/wow/mythic-keystone/period/${periodId}`,
|
|
69
|
+
namespace: "dynamic",
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Returns an index of Mythic Keystone seasons.
|
|
74
|
+
*
|
|
75
|
+
* @returns A promise that resolves to an object representing a index of Mythic Keystone seasons
|
|
76
|
+
*/
|
|
77
|
+
async function mythicKeystoneSeasons(ctx) {
|
|
78
|
+
return await ctx.request({
|
|
79
|
+
method: "GET",
|
|
80
|
+
url: "/data/wow/mythic-keystone/season/index",
|
|
81
|
+
namespace: "dynamic",
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Returns a Mythic Keystone season by ID.
|
|
86
|
+
*
|
|
87
|
+
* @param seasonId - The unique identifier for the Mythic Keystone season
|
|
88
|
+
* @returns A promise that resolves to an object representing details about a Mythic Keystone season by ID.
|
|
89
|
+
*/
|
|
90
|
+
async function mythicKeystoneSeason(ctx, seasonId) {
|
|
91
|
+
return await ctx.request({
|
|
92
|
+
method: "GET",
|
|
93
|
+
url: `/data/wow/mythic-keystone/season/${seasonId}`,
|
|
94
|
+
namespace: "dynamic",
|
|
95
|
+
});
|
|
96
|
+
}
|
|
@@ -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,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mythicKeystoneLeaderboards = mythicKeystoneLeaderboards;
|
|
4
|
+
exports.mythicKeystoneLeaderboard = mythicKeystoneLeaderboard;
|
|
5
|
+
/**
|
|
6
|
+
* Returns an index of Mythic Keystone Leaderboard dungeon instances for a connected realm.
|
|
7
|
+
*
|
|
8
|
+
* @param connectedRealmId - The unique identifier for the connected realm
|
|
9
|
+
* @returns A promise that resolves to an object representing an index of Mythic Keystone Leaderboard dungeon instances for a connected realm.
|
|
10
|
+
*/
|
|
11
|
+
async function mythicKeystoneLeaderboards(ctx, connectedRealmId) {
|
|
12
|
+
return await ctx.request({
|
|
13
|
+
method: "GET",
|
|
14
|
+
url: `/data/wow/connected-realm/${connectedRealmId}/mythic-leaderboard/index`,
|
|
15
|
+
namespace: "dynamic",
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Returns a weekly Mythic Keystone Leaderboard by period.
|
|
20
|
+
*
|
|
21
|
+
* @param connectedRealmId - The unique identifier for the connected realm
|
|
22
|
+
* @param dungeonId - The unique identifier for the dungeon
|
|
23
|
+
* @param period - The unique identifier for the period
|
|
24
|
+
* @returns A promise that resolves to an object representing details about a weekly Mythic Keystone Leaderboard by period.
|
|
25
|
+
*/
|
|
26
|
+
async function mythicKeystoneLeaderboard(ctx, connectedRealmId, dungeonId, period) {
|
|
27
|
+
return await ctx.request({
|
|
28
|
+
method: "GET",
|
|
29
|
+
url: `/data/wow/connected-realm/${connectedRealmId}/mythic-leaderboard/${dungeonId}/period/${period}`,
|
|
30
|
+
namespace: "dynamic",
|
|
31
|
+
});
|
|
32
|
+
}
|
|
@@ -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,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mythicRaidLeaderboard = mythicRaidLeaderboard;
|
|
4
|
+
/**
|
|
5
|
+
* Returns the leaderboard for a given raid and faction.
|
|
6
|
+
*
|
|
7
|
+
* @param raid - The slug of the raid (e.g. "uldir", "nyalotha-the-waking-city").
|
|
8
|
+
* @param faction - The faction, "alliance" or "horde".
|
|
9
|
+
* @returns A promise that resolves to an object representing the leaderboard for a given raid and faction.
|
|
10
|
+
*/
|
|
11
|
+
async function mythicRaidLeaderboard(ctx, raid, faction) {
|
|
12
|
+
return await ctx.request({
|
|
13
|
+
method: "GET",
|
|
14
|
+
url: `/data/wow/leaderboard/hall-of-fame/${raid}/${faction}`,
|
|
15
|
+
namespace: "dynamic",
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -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,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This module provides interfaces and API function definitions for fetching World of Warcraft neighborhood map data using the Blizzard API.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.neighborhoodMaps = neighborhoodMaps;
|
|
7
|
+
exports.neighborhoodMap = neighborhoodMap;
|
|
8
|
+
exports.neighborhood = neighborhood;
|
|
9
|
+
/**
|
|
10
|
+
* Returns an index of neighborhood maps.
|
|
11
|
+
*/
|
|
12
|
+
async function neighborhoodMaps(ctx) {
|
|
13
|
+
return await ctx.request({
|
|
14
|
+
method: "GET",
|
|
15
|
+
url: "/data/wow/neighborhood-map/index",
|
|
16
|
+
namespace: "dynamic",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Returns a neighborhood map by ID.
|
|
21
|
+
*
|
|
22
|
+
* @param neighborhoodMapId - The ID of the neighborhood map.
|
|
23
|
+
*/
|
|
24
|
+
async function neighborhoodMap(ctx, neighborhoodMapId) {
|
|
25
|
+
return await ctx.request({
|
|
26
|
+
method: "GET",
|
|
27
|
+
url: `/data/wow/neighborhood-map/${neighborhoodMapId}`,
|
|
28
|
+
namespace: "dynamic",
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Returns a neighborhood by ID within a neighborhood map.
|
|
33
|
+
*
|
|
34
|
+
* @param neighborhoodMapId - The ID of the neighborhood map.
|
|
35
|
+
* @param neighborhoodId - The ID of the neighborhood.
|
|
36
|
+
*/
|
|
37
|
+
async function neighborhood(ctx, neighborhoodMapId, neighborhoodId) {
|
|
38
|
+
return await ctx.request({
|
|
39
|
+
method: "GET",
|
|
40
|
+
url: `/data/wow/neighborhood-map/${neighborhoodMapId}/neighborhood/${neighborhoodId}`,
|
|
41
|
+
namespace: "dynamic",
|
|
42
|
+
});
|
|
43
|
+
}
|
|
@@ -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,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pets = pets;
|
|
4
|
+
exports.pet = pet;
|
|
5
|
+
exports.petMedia = petMedia;
|
|
6
|
+
exports.petAbilities = petAbilities;
|
|
7
|
+
exports.petAbility = petAbility;
|
|
8
|
+
exports.petAbilityMedia = petAbilityMedia;
|
|
9
|
+
/**
|
|
10
|
+
* Returns an index of battle pets.
|
|
11
|
+
*
|
|
12
|
+
* @returns A promise that resolves to an object representing a list of the index of battle pets.
|
|
13
|
+
*/
|
|
14
|
+
async function pets(ctx) {
|
|
15
|
+
return await ctx.request({
|
|
16
|
+
method: "GET",
|
|
17
|
+
url: "/data/wow/pet/index",
|
|
18
|
+
namespace: "static",
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns a battle pet by ID.
|
|
23
|
+
*
|
|
24
|
+
* @param petId - The unique identifier for the battle pet
|
|
25
|
+
* @returns A promise that resolves to an object representing details about a battle pet.
|
|
26
|
+
*/
|
|
27
|
+
async function pet(ctx, petId) {
|
|
28
|
+
return await ctx.request({
|
|
29
|
+
method: "GET",
|
|
30
|
+
url: `/data/wow/pet/${petId}`,
|
|
31
|
+
namespace: "static",
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Returns media for a battle pet by ID.
|
|
36
|
+
*
|
|
37
|
+
* @param petId - The unique identifier for the battle pet
|
|
38
|
+
* @returns A promise that resolves to an object representing media details about a battle pet.
|
|
39
|
+
*/
|
|
40
|
+
async function petMedia(ctx, petId) {
|
|
41
|
+
return await ctx.request({
|
|
42
|
+
method: "GET",
|
|
43
|
+
url: `/data/wow/media/pet/${petId}`,
|
|
44
|
+
namespace: "static",
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Returns an index of pet abilities.
|
|
49
|
+
*
|
|
50
|
+
* @returns A promise that resolves to an object representing a list of the index of pet abilities.
|
|
51
|
+
*/
|
|
52
|
+
async function petAbilities(ctx) {
|
|
53
|
+
return await ctx.request({
|
|
54
|
+
method: "GET",
|
|
55
|
+
url: "/data/wow/pet-ability/index",
|
|
56
|
+
namespace: "static",
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Returns a pet ability by ID.
|
|
61
|
+
*
|
|
62
|
+
* @param petAbilityId - The unique identifier for the battle pet ability
|
|
63
|
+
* @returns A promise that resolves to an object representing details about a battle pet ability.
|
|
64
|
+
*/
|
|
65
|
+
async function petAbility(ctx, petAbilityId) {
|
|
66
|
+
return await ctx.request({
|
|
67
|
+
method: "GET",
|
|
68
|
+
url: `/data/wow/pet-ability/${petAbilityId}`,
|
|
69
|
+
namespace: "static",
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Returns media for a battle pet by ID.
|
|
74
|
+
*
|
|
75
|
+
* @param petAbilityId - The unique identifier for the battle pet
|
|
76
|
+
* @returns A promise that resolves to an object representing media details about a battle pet.
|
|
77
|
+
*/
|
|
78
|
+
async function petAbilityMedia(ctx, petAbilityId) {
|
|
79
|
+
return await ctx.request({
|
|
80
|
+
method: "GET",
|
|
81
|
+
url: `/data/wow/media/pet-ability/${petAbilityId}`,
|
|
82
|
+
namespace: "static",
|
|
83
|
+
});
|
|
84
|
+
}
|
|
@@ -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>;
|