@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,50 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
interface Item {
|
|
3
|
+
id: string;
|
|
4
|
+
slug: string;
|
|
5
|
+
name: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
path: string;
|
|
8
|
+
}
|
|
9
|
+
interface Reagent {
|
|
10
|
+
quantity: number;
|
|
11
|
+
item: Item;
|
|
12
|
+
}
|
|
13
|
+
export interface Recipe {
|
|
14
|
+
id: string;
|
|
15
|
+
slug: string;
|
|
16
|
+
name: string;
|
|
17
|
+
cost: number;
|
|
18
|
+
reagents: Reagent[];
|
|
19
|
+
itemProduced: Item;
|
|
20
|
+
}
|
|
21
|
+
interface Tier {
|
|
22
|
+
tier: number;
|
|
23
|
+
trainedRecipes: Recipe[];
|
|
24
|
+
taughtRecipes?: Recipe[];
|
|
25
|
+
}
|
|
26
|
+
interface Training {
|
|
27
|
+
tiers: Tier[];
|
|
28
|
+
}
|
|
29
|
+
export interface Artisan {
|
|
30
|
+
slug: string;
|
|
31
|
+
name: string;
|
|
32
|
+
portrait: string;
|
|
33
|
+
training: Training;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Returns a single artisan by slug.
|
|
37
|
+
*
|
|
38
|
+
* @param artisanSlug - The slug of the artisan to retrieve.
|
|
39
|
+
* @returns A promise that resolves to an object representing the data for a single artisan by slug.
|
|
40
|
+
*/
|
|
41
|
+
export declare function artisan(ctx: ApiContext, artisanSlug: string): Promise<Artisan>;
|
|
42
|
+
/**
|
|
43
|
+
* Returns a single recipe by slug for the specified artisan.
|
|
44
|
+
*
|
|
45
|
+
* @param artisanSlug - The slug of the artisan to retrieve.
|
|
46
|
+
* @param recipeSlug - The slug of the recipe to retrieve.
|
|
47
|
+
* @returns A promise that resolves to an object representing the data for a single recipe by slug for the specified artisan.
|
|
48
|
+
*/
|
|
49
|
+
export declare function artisanRecipe(ctx: ApiContext, artisanSlug: string, recipeSlug: string): Promise<Recipe>;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.artisan = artisan;
|
|
4
|
+
exports.artisanRecipe = artisanRecipe;
|
|
5
|
+
/**
|
|
6
|
+
* Returns a single artisan by slug.
|
|
7
|
+
*
|
|
8
|
+
* @param artisanSlug - The slug of the artisan to retrieve.
|
|
9
|
+
* @returns A promise that resolves to an object representing the data for a single artisan by slug.
|
|
10
|
+
*/
|
|
11
|
+
async function artisan(ctx, artisanSlug) {
|
|
12
|
+
return await ctx.request({
|
|
13
|
+
method: "GET",
|
|
14
|
+
url: `/d3/data/artisan/${artisanSlug}`,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Returns a single recipe by slug for the specified artisan.
|
|
19
|
+
*
|
|
20
|
+
* @param artisanSlug - The slug of the artisan to retrieve.
|
|
21
|
+
* @param recipeSlug - The slug of the recipe to retrieve.
|
|
22
|
+
* @returns A promise that resolves to an object representing the data for a single recipe by slug for the specified artisan.
|
|
23
|
+
*/
|
|
24
|
+
async function artisanRecipe(ctx, artisanSlug, recipeSlug) {
|
|
25
|
+
return await ctx.request({
|
|
26
|
+
method: "GET",
|
|
27
|
+
url: `/d3/data/artisan/${artisanSlug}/recipe/${recipeSlug}`,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
interface FollowerSkill {
|
|
3
|
+
slug: string;
|
|
4
|
+
name: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
level: number;
|
|
7
|
+
tooltipUrl: string;
|
|
8
|
+
description: string;
|
|
9
|
+
descriptionHtml: string;
|
|
10
|
+
}
|
|
11
|
+
export interface Follower {
|
|
12
|
+
slug: string;
|
|
13
|
+
name: string;
|
|
14
|
+
realName: string;
|
|
15
|
+
portrait: string;
|
|
16
|
+
skills: FollowerSkill[];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Returns a single follower by slug.
|
|
20
|
+
*
|
|
21
|
+
* @param followerSlug - The slug of the follower to retrieve.
|
|
22
|
+
* @returns A promise that resolves to an object representing the data for a single follower by slug.
|
|
23
|
+
*/
|
|
24
|
+
export declare function follower(ctx: ApiContext, followerSlug: string): Promise<Follower>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.follower = follower;
|
|
4
|
+
/**
|
|
5
|
+
* Returns a single follower by slug.
|
|
6
|
+
*
|
|
7
|
+
* @param followerSlug - The slug of the follower to retrieve.
|
|
8
|
+
* @returns A promise that resolves to an object representing the data for a single follower by slug.
|
|
9
|
+
*/
|
|
10
|
+
async function follower(ctx, followerSlug) {
|
|
11
|
+
return await ctx.request({
|
|
12
|
+
method: "GET",
|
|
13
|
+
url: `/d3/data/follower/${followerSlug}`,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
export interface SkillRune {
|
|
3
|
+
slug: string;
|
|
4
|
+
type: string;
|
|
5
|
+
name: string;
|
|
6
|
+
level: number;
|
|
7
|
+
description: string;
|
|
8
|
+
descriptionHtml: string;
|
|
9
|
+
}
|
|
10
|
+
export interface HeroSkill {
|
|
11
|
+
slug: string;
|
|
12
|
+
name: string;
|
|
13
|
+
icon: string;
|
|
14
|
+
level: number;
|
|
15
|
+
tooltipUrl: string;
|
|
16
|
+
description: string;
|
|
17
|
+
descriptionHtml: string;
|
|
18
|
+
flavorText?: string;
|
|
19
|
+
runes?: SkillRune[];
|
|
20
|
+
}
|
|
21
|
+
export interface HeroSkillDetail {
|
|
22
|
+
skill: HeroSkill;
|
|
23
|
+
runes: SkillRune[];
|
|
24
|
+
}
|
|
25
|
+
interface SkillCategories {
|
|
26
|
+
slug: string;
|
|
27
|
+
name: string;
|
|
28
|
+
}
|
|
29
|
+
interface Skills {
|
|
30
|
+
active: HeroSkill[];
|
|
31
|
+
passive: HeroSkill[];
|
|
32
|
+
}
|
|
33
|
+
export interface HeroClass {
|
|
34
|
+
slug: string;
|
|
35
|
+
name: string;
|
|
36
|
+
maleName: string;
|
|
37
|
+
femaleName: string;
|
|
38
|
+
icon: string;
|
|
39
|
+
skillCategories: SkillCategories[];
|
|
40
|
+
skills: Skills;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Returns a single character class by slug.
|
|
44
|
+
*
|
|
45
|
+
* @param classSlug - The slug of the character class to retrieve.
|
|
46
|
+
* @returns A promise that resolves to an object representing the data for a single follower by slug.
|
|
47
|
+
*/
|
|
48
|
+
export declare function heroClass(ctx: ApiContext, classSlug: string): Promise<HeroClass>;
|
|
49
|
+
/**
|
|
50
|
+
* Returns a single skill by slug for a specific character class.
|
|
51
|
+
*
|
|
52
|
+
* @param classSlug - The slug of the character class to retrieve.
|
|
53
|
+
* @param skillSlug - The slug of the skill to retrieve.
|
|
54
|
+
* @returns A promise that resolves to an object representing the data for a single skill by slug for a specific character class.
|
|
55
|
+
*/
|
|
56
|
+
export declare function heroSkill(ctx: ApiContext, classSlug: string, skillSlug: string): Promise<HeroSkillDetail>;
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.heroClass = heroClass;
|
|
4
|
+
exports.heroSkill = heroSkill;
|
|
5
|
+
/**
|
|
6
|
+
* Returns a single character class by slug.
|
|
7
|
+
*
|
|
8
|
+
* @param classSlug - The slug of the character class to retrieve.
|
|
9
|
+
* @returns A promise that resolves to an object representing the data for a single follower by slug.
|
|
10
|
+
*/
|
|
11
|
+
async function heroClass(ctx, classSlug) {
|
|
12
|
+
return await ctx.request({
|
|
13
|
+
method: "GET",
|
|
14
|
+
url: `/d3/data/hero/${classSlug}`,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Returns a single skill by slug for a specific character class.
|
|
19
|
+
*
|
|
20
|
+
* @param classSlug - The slug of the character class to retrieve.
|
|
21
|
+
* @param skillSlug - The slug of the skill to retrieve.
|
|
22
|
+
* @returns A promise that resolves to an object representing the data for a single skill by slug for a specific character class.
|
|
23
|
+
*/
|
|
24
|
+
async function heroSkill(ctx, classSlug, skillSlug) {
|
|
25
|
+
return await ctx.request({
|
|
26
|
+
method: "GET",
|
|
27
|
+
url: `/d3/data/hero/${classSlug}/skill/${skillSlug}`,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
interface ItemType {
|
|
3
|
+
twoHanded: boolean;
|
|
4
|
+
id: string;
|
|
5
|
+
}
|
|
6
|
+
interface Attribute {
|
|
7
|
+
textHtml: string;
|
|
8
|
+
text: string;
|
|
9
|
+
}
|
|
10
|
+
interface RandomAffix {
|
|
11
|
+
oneOf: Attribute[];
|
|
12
|
+
}
|
|
13
|
+
export interface Item {
|
|
14
|
+
id: string;
|
|
15
|
+
slug: string;
|
|
16
|
+
name: string;
|
|
17
|
+
icon: string;
|
|
18
|
+
tooltipParams: string;
|
|
19
|
+
requiredLevel: number;
|
|
20
|
+
stackSizeMax: number;
|
|
21
|
+
accountBound: boolean;
|
|
22
|
+
flavorText: string;
|
|
23
|
+
flavorTextHtml: string;
|
|
24
|
+
typeName: string;
|
|
25
|
+
type: ItemType;
|
|
26
|
+
damage: string;
|
|
27
|
+
dps: string;
|
|
28
|
+
damageHtml: string;
|
|
29
|
+
color: string;
|
|
30
|
+
isSeasonRequiredToDrop: boolean;
|
|
31
|
+
seasonRequiredToDrop: number;
|
|
32
|
+
slots: string[];
|
|
33
|
+
attributes: {
|
|
34
|
+
primary: Attribute[];
|
|
35
|
+
secondary: Attribute[];
|
|
36
|
+
other: Attribute[];
|
|
37
|
+
};
|
|
38
|
+
randomAffixes: RandomAffix[];
|
|
39
|
+
setItems: unknown[];
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Returns a single item by item slug and ID.
|
|
43
|
+
*
|
|
44
|
+
* @param itemSlugAndId - The slug and ID of the item to retrieve.
|
|
45
|
+
* @returns A promise that resolves to an object representing the data for a single item by item slug and ID.
|
|
46
|
+
*/
|
|
47
|
+
export declare function item(ctx: ApiContext, itemSlugAndId: string): Promise<Item>;
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.item = item;
|
|
4
|
+
/**
|
|
5
|
+
* Returns a single item by item slug and ID.
|
|
6
|
+
*
|
|
7
|
+
* @param itemSlugAndId - The slug and ID of the item to retrieve.
|
|
8
|
+
* @returns A promise that resolves to an object representing the data for a single item by item slug and ID.
|
|
9
|
+
*/
|
|
10
|
+
async function item(ctx, itemSlugAndId) {
|
|
11
|
+
return await ctx.request({
|
|
12
|
+
method: "GET",
|
|
13
|
+
url: `/d3/data/item/${itemSlugAndId}`,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
export interface ItemTypes {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
path: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ItemType {
|
|
8
|
+
id: string;
|
|
9
|
+
slug: string;
|
|
10
|
+
name: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
path: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns an index of item types.
|
|
16
|
+
*
|
|
17
|
+
* @returns A promise that resolves to an object representing an index of item types.
|
|
18
|
+
*/
|
|
19
|
+
export declare function itemTypes(ctx: ApiContext): Promise<ItemTypes[]>;
|
|
20
|
+
/**
|
|
21
|
+
* Returns a single item type by slug.
|
|
22
|
+
*
|
|
23
|
+
* @param itemTypeSlug - The slug of the item type to retrieve.
|
|
24
|
+
* @returns A promise that resolves to an object representing the data for a single item type by slug.
|
|
25
|
+
*/
|
|
26
|
+
export declare function itemType(ctx: ApiContext, itemTypeSlug: string): Promise<ItemType[]>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.itemTypes = itemTypes;
|
|
4
|
+
exports.itemType = itemType;
|
|
5
|
+
/**
|
|
6
|
+
* Returns an index of item types.
|
|
7
|
+
*
|
|
8
|
+
* @returns A promise that resolves to an object representing an index of item types.
|
|
9
|
+
*/
|
|
10
|
+
async function itemTypes(ctx) {
|
|
11
|
+
return await ctx.request({
|
|
12
|
+
method: "GET",
|
|
13
|
+
url: "/d3/data/item-type/",
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Returns a single item type by slug.
|
|
18
|
+
*
|
|
19
|
+
* @param itemTypeSlug - The slug of the item type to retrieve.
|
|
20
|
+
* @returns A promise that resolves to an object representing the data for a single item type by slug.
|
|
21
|
+
*/
|
|
22
|
+
async function itemType(ctx, itemTypeSlug) {
|
|
23
|
+
return await ctx.request({
|
|
24
|
+
method: "GET",
|
|
25
|
+
url: `/d3/data/item-type/${itemTypeSlug}`,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module provides the Diablo III profile endpoints (account, hero and hero items) using the Blizzard API.
|
|
3
|
+
*/
|
|
4
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
5
|
+
export interface D3ItemType {
|
|
6
|
+
twoHanded: boolean;
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
export interface D3Attributes {
|
|
10
|
+
primary: string[];
|
|
11
|
+
secondary?: string[];
|
|
12
|
+
}
|
|
13
|
+
export interface D3ItemColor {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
icon: string;
|
|
17
|
+
tooltipParams: string;
|
|
18
|
+
}
|
|
19
|
+
export interface D3ItemRef {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
icon: string;
|
|
23
|
+
displayColor: string;
|
|
24
|
+
tooltipParams: string;
|
|
25
|
+
}
|
|
26
|
+
export interface D3Gem {
|
|
27
|
+
item: {
|
|
28
|
+
id: string;
|
|
29
|
+
slug: string;
|
|
30
|
+
name: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
path: string;
|
|
33
|
+
};
|
|
34
|
+
jewelRank?: number;
|
|
35
|
+
jewelSecondaryUnlockRank?: number;
|
|
36
|
+
attributes: string[];
|
|
37
|
+
isGem: boolean;
|
|
38
|
+
isJewel: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface D3ItemSet {
|
|
41
|
+
name: string;
|
|
42
|
+
slug: string;
|
|
43
|
+
description: string;
|
|
44
|
+
descriptionHtml: string;
|
|
45
|
+
}
|
|
46
|
+
export interface D3CraftedBy {
|
|
47
|
+
id: string;
|
|
48
|
+
slug: string;
|
|
49
|
+
name: string;
|
|
50
|
+
cost: number;
|
|
51
|
+
reagents: {
|
|
52
|
+
quantity: number;
|
|
53
|
+
item: {
|
|
54
|
+
id: string;
|
|
55
|
+
slug: string;
|
|
56
|
+
name: string;
|
|
57
|
+
icon: string;
|
|
58
|
+
path: string;
|
|
59
|
+
};
|
|
60
|
+
}[];
|
|
61
|
+
itemProduced: {
|
|
62
|
+
id: string;
|
|
63
|
+
path: string;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export interface D3HeroItem {
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
icon: string;
|
|
70
|
+
displayColor: string;
|
|
71
|
+
tooltipParams: string;
|
|
72
|
+
requiredLevel?: number;
|
|
73
|
+
itemLevel?: number;
|
|
74
|
+
stackSizeMax?: number;
|
|
75
|
+
accountBound?: boolean;
|
|
76
|
+
flavorText?: string;
|
|
77
|
+
typeName?: string;
|
|
78
|
+
type?: D3ItemType;
|
|
79
|
+
armor?: number;
|
|
80
|
+
attacksPerSecond?: number;
|
|
81
|
+
minDamage?: number;
|
|
82
|
+
maxDamage?: number;
|
|
83
|
+
damage?: string;
|
|
84
|
+
dps?: string;
|
|
85
|
+
elementalType?: string;
|
|
86
|
+
slots?: string;
|
|
87
|
+
augmentation?: string;
|
|
88
|
+
attributes?: D3Attributes;
|
|
89
|
+
attributesHtml?: D3Attributes;
|
|
90
|
+
openSockets?: number;
|
|
91
|
+
gems?: D3Gem[];
|
|
92
|
+
set?: D3ItemSet;
|
|
93
|
+
dye?: D3ItemColor;
|
|
94
|
+
transmog?: D3ItemRef;
|
|
95
|
+
dyeColor?: D3ItemColor;
|
|
96
|
+
transmogItem?: D3ItemRef;
|
|
97
|
+
craftedBy?: D3CraftedBy;
|
|
98
|
+
seasonRequiredToDrop?: number;
|
|
99
|
+
isSeasonRequiredToDrop?: boolean;
|
|
100
|
+
}
|
|
101
|
+
export interface D3HeroItems {
|
|
102
|
+
head?: D3HeroItem;
|
|
103
|
+
neck?: D3HeroItem;
|
|
104
|
+
torso?: D3HeroItem;
|
|
105
|
+
shoulders?: D3HeroItem;
|
|
106
|
+
legs?: D3HeroItem;
|
|
107
|
+
waist?: D3HeroItem;
|
|
108
|
+
hands?: D3HeroItem;
|
|
109
|
+
bracers?: D3HeroItem;
|
|
110
|
+
feet?: D3HeroItem;
|
|
111
|
+
leftFinger?: D3HeroItem;
|
|
112
|
+
rightFinger?: D3HeroItem;
|
|
113
|
+
mainHand?: D3HeroItem;
|
|
114
|
+
offHand?: D3HeroItem;
|
|
115
|
+
}
|
|
116
|
+
export interface D3FollowerItems {
|
|
117
|
+
head?: D3HeroItem;
|
|
118
|
+
neck?: D3HeroItem;
|
|
119
|
+
torso?: D3HeroItem;
|
|
120
|
+
shoulders?: D3HeroItem;
|
|
121
|
+
legs?: D3HeroItem;
|
|
122
|
+
waist?: D3HeroItem;
|
|
123
|
+
hands?: D3HeroItem;
|
|
124
|
+
bracers?: D3HeroItem;
|
|
125
|
+
feet?: D3HeroItem;
|
|
126
|
+
leftFinger?: D3HeroItem;
|
|
127
|
+
rightFinger?: D3HeroItem;
|
|
128
|
+
mainHand?: D3HeroItem;
|
|
129
|
+
offHand?: D3HeroItem;
|
|
130
|
+
special?: D3HeroItem;
|
|
131
|
+
}
|
|
132
|
+
export interface D3HeroFollowerItems {
|
|
133
|
+
templar: D3FollowerItems;
|
|
134
|
+
scoundrel: D3FollowerItems;
|
|
135
|
+
enchantress: D3FollowerItems;
|
|
136
|
+
}
|
|
137
|
+
export interface D3Skill {
|
|
138
|
+
slug: string;
|
|
139
|
+
name: string;
|
|
140
|
+
icon: string;
|
|
141
|
+
level: number;
|
|
142
|
+
tooltipUrl: string;
|
|
143
|
+
description: string;
|
|
144
|
+
descriptionHtml: string;
|
|
145
|
+
flavorText?: string;
|
|
146
|
+
}
|
|
147
|
+
export interface D3SkillRune {
|
|
148
|
+
slug: string;
|
|
149
|
+
type: string;
|
|
150
|
+
name: string;
|
|
151
|
+
level: number;
|
|
152
|
+
description: string;
|
|
153
|
+
descriptionHtml: string;
|
|
154
|
+
}
|
|
155
|
+
export interface D3FollowerStats {
|
|
156
|
+
goldFind: number;
|
|
157
|
+
magicFind: number;
|
|
158
|
+
experienceBonus: number;
|
|
159
|
+
}
|
|
160
|
+
export interface D3Follower {
|
|
161
|
+
slug: string;
|
|
162
|
+
level: number;
|
|
163
|
+
items: D3FollowerItems;
|
|
164
|
+
stats: D3FollowerStats;
|
|
165
|
+
skills: D3Skill[];
|
|
166
|
+
}
|
|
167
|
+
export interface D3ActProgress {
|
|
168
|
+
completed: boolean;
|
|
169
|
+
completedQuests: unknown[];
|
|
170
|
+
}
|
|
171
|
+
export interface D3HeroStats {
|
|
172
|
+
life: number;
|
|
173
|
+
damage: number;
|
|
174
|
+
toughness: number;
|
|
175
|
+
healing: number;
|
|
176
|
+
attackSpeed: number;
|
|
177
|
+
armor: number;
|
|
178
|
+
strength: number;
|
|
179
|
+
dexterity: number;
|
|
180
|
+
vitality: number;
|
|
181
|
+
intelligence: number;
|
|
182
|
+
physicalResist: number;
|
|
183
|
+
fireResist: number;
|
|
184
|
+
coldResist: number;
|
|
185
|
+
lightningResist: number;
|
|
186
|
+
poisonResist: number;
|
|
187
|
+
arcaneResist: number;
|
|
188
|
+
blockChance: number;
|
|
189
|
+
blockAmountMin: number;
|
|
190
|
+
blockAmountMax: number;
|
|
191
|
+
goldFind: number;
|
|
192
|
+
critChance: number;
|
|
193
|
+
thorns: number;
|
|
194
|
+
lifeSteal: number;
|
|
195
|
+
lifePerKill: number;
|
|
196
|
+
lifeOnHit: number;
|
|
197
|
+
primaryResource: number;
|
|
198
|
+
secondaryResource: number;
|
|
199
|
+
}
|
|
200
|
+
export interface D3Hero {
|
|
201
|
+
id: number;
|
|
202
|
+
name: string;
|
|
203
|
+
class: string;
|
|
204
|
+
gender: number;
|
|
205
|
+
level: number;
|
|
206
|
+
paragonLevel: number;
|
|
207
|
+
kills: {
|
|
208
|
+
elites: number;
|
|
209
|
+
};
|
|
210
|
+
hardcore: boolean;
|
|
211
|
+
seasonal: boolean;
|
|
212
|
+
seasonCreated: number;
|
|
213
|
+
skills: {
|
|
214
|
+
active: {
|
|
215
|
+
skill: D3Skill;
|
|
216
|
+
rune: D3SkillRune;
|
|
217
|
+
}[];
|
|
218
|
+
passive: {
|
|
219
|
+
skill: D3Skill;
|
|
220
|
+
}[];
|
|
221
|
+
};
|
|
222
|
+
items: D3HeroItems;
|
|
223
|
+
followers: {
|
|
224
|
+
templar: D3Follower;
|
|
225
|
+
scoundrel: D3Follower;
|
|
226
|
+
enchantress: D3Follower;
|
|
227
|
+
};
|
|
228
|
+
legendaryPowers: D3ItemRef[];
|
|
229
|
+
progression: {
|
|
230
|
+
act1: D3ActProgress;
|
|
231
|
+
act2: D3ActProgress;
|
|
232
|
+
act3: D3ActProgress;
|
|
233
|
+
act4: D3ActProgress;
|
|
234
|
+
act5: D3ActProgress;
|
|
235
|
+
};
|
|
236
|
+
alive: boolean;
|
|
237
|
+
lastUpdated: number;
|
|
238
|
+
highestSoloRiftCompleted: number;
|
|
239
|
+
stats: D3HeroStats;
|
|
240
|
+
}
|
|
241
|
+
export interface D3Kills {
|
|
242
|
+
monsters: number;
|
|
243
|
+
elites: number;
|
|
244
|
+
hardcoreMonsters: number;
|
|
245
|
+
}
|
|
246
|
+
export interface D3AccountHero {
|
|
247
|
+
id: number;
|
|
248
|
+
name: string;
|
|
249
|
+
class: string;
|
|
250
|
+
classSlug: string;
|
|
251
|
+
gender: number;
|
|
252
|
+
level: number;
|
|
253
|
+
kills: {
|
|
254
|
+
elites: number;
|
|
255
|
+
};
|
|
256
|
+
paragonLevel: number;
|
|
257
|
+
hardcore: boolean;
|
|
258
|
+
seasonal: boolean;
|
|
259
|
+
dead: boolean;
|
|
260
|
+
"last-updated": number;
|
|
261
|
+
}
|
|
262
|
+
export interface D3FallenHero {
|
|
263
|
+
heroId: number;
|
|
264
|
+
name: string;
|
|
265
|
+
class: string;
|
|
266
|
+
level: number;
|
|
267
|
+
elites: number;
|
|
268
|
+
hardcore: boolean;
|
|
269
|
+
death: {
|
|
270
|
+
killer: number;
|
|
271
|
+
time: number;
|
|
272
|
+
};
|
|
273
|
+
gender: number;
|
|
274
|
+
}
|
|
275
|
+
export interface D3SeasonalProfile {
|
|
276
|
+
seasonId: number;
|
|
277
|
+
paragonLevel: number;
|
|
278
|
+
paragonLevelHardcore: number;
|
|
279
|
+
kills: D3Kills;
|
|
280
|
+
timePlayed: Record<string, number>;
|
|
281
|
+
highestHardcoreLevel: number;
|
|
282
|
+
}
|
|
283
|
+
export interface D3Artisan {
|
|
284
|
+
slug: string;
|
|
285
|
+
level: number;
|
|
286
|
+
}
|
|
287
|
+
export interface D3Account {
|
|
288
|
+
battleTag: string;
|
|
289
|
+
paragonLevel: number;
|
|
290
|
+
paragonLevelHardcore: number;
|
|
291
|
+
paragonLevelSeason: number;
|
|
292
|
+
paragonLevelSeasonHardcore: number;
|
|
293
|
+
guildName: string;
|
|
294
|
+
heroes: D3AccountHero[];
|
|
295
|
+
lastHeroPlayed: number;
|
|
296
|
+
lastUpdated: number;
|
|
297
|
+
kills: D3Kills;
|
|
298
|
+
highestHardcoreLevel: number;
|
|
299
|
+
timePlayed: Record<string, number>;
|
|
300
|
+
progression: {
|
|
301
|
+
act1: boolean;
|
|
302
|
+
act2: boolean;
|
|
303
|
+
act3: boolean;
|
|
304
|
+
act4: boolean;
|
|
305
|
+
act5: boolean;
|
|
306
|
+
};
|
|
307
|
+
fallenHeroes: D3FallenHero[];
|
|
308
|
+
seasonalProfiles: Record<string, D3SeasonalProfile>;
|
|
309
|
+
blacksmith: D3Artisan;
|
|
310
|
+
jeweler: D3Artisan;
|
|
311
|
+
mystic: D3Artisan;
|
|
312
|
+
blacksmithSeason: D3Artisan;
|
|
313
|
+
blacksmithHardcore: D3Artisan;
|
|
314
|
+
blacksmithSeasonHardcore: D3Artisan;
|
|
315
|
+
jewelerSeason: D3Artisan;
|
|
316
|
+
jewelerHardcore: D3Artisan;
|
|
317
|
+
jewelerSeasonHardcore: D3Artisan;
|
|
318
|
+
mysticSeason: D3Artisan;
|
|
319
|
+
mysticHardcore: D3Artisan;
|
|
320
|
+
mysticSeasonHardcore: D3Artisan;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Returns the account profile of a battle tag, including its heroes.
|
|
324
|
+
*
|
|
325
|
+
* @param battleTag - The battle tag, e.g. "Name#1234" (the "#" is sent as "-").
|
|
326
|
+
* @returns A promise that resolves to an object representing the account profile.
|
|
327
|
+
*/
|
|
328
|
+
export declare function account(ctx: ApiContext, battleTag: string): Promise<D3Account>;
|
|
329
|
+
/**
|
|
330
|
+
* Returns a hero of a battle tag.
|
|
331
|
+
*
|
|
332
|
+
* @param battleTag - The battle tag, e.g. "Name#1234" (the "#" is sent as "-").
|
|
333
|
+
* @param heroId - The unique identifier for the hero.
|
|
334
|
+
* @returns A promise that resolves to an object representing the hero.
|
|
335
|
+
*/
|
|
336
|
+
export declare function hero(ctx: ApiContext, battleTag: string, heroId: number): Promise<D3Hero>;
|
|
337
|
+
/**
|
|
338
|
+
* Returns the equipped items of a hero.
|
|
339
|
+
*
|
|
340
|
+
* @param battleTag - The battle tag, e.g. "Name#1234" (the "#" is sent as "-").
|
|
341
|
+
* @param heroId - The unique identifier for the hero.
|
|
342
|
+
* @returns A promise that resolves to an object representing the hero's equipped items.
|
|
343
|
+
*/
|
|
344
|
+
export declare function heroItems(ctx: ApiContext, battleTag: string, heroId: number): Promise<D3HeroItems>;
|
|
345
|
+
/**
|
|
346
|
+
* Returns the items equipped by a hero's followers.
|
|
347
|
+
*
|
|
348
|
+
* @param battleTag - The battle tag, e.g. "Name#1234" (the "#" is sent as "-").
|
|
349
|
+
* @param heroId - The unique identifier for the hero.
|
|
350
|
+
* @returns A promise that resolves to an object representing the hero's follower items.
|
|
351
|
+
*/
|
|
352
|
+
export declare function heroFollowerItems(ctx: ApiContext, battleTag: string, heroId: number): Promise<D3HeroFollowerItems>;
|