@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,177 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { Character, KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
|
|
3
|
+
export interface Rgba {
|
|
4
|
+
r: number;
|
|
5
|
+
g: number;
|
|
6
|
+
b: number;
|
|
7
|
+
a: number;
|
|
8
|
+
}
|
|
9
|
+
export interface EquippedItemWeapon {
|
|
10
|
+
damage: {
|
|
11
|
+
min_value: number;
|
|
12
|
+
max_value: number;
|
|
13
|
+
display_string: LocalizedString;
|
|
14
|
+
damage_class: TypeName;
|
|
15
|
+
};
|
|
16
|
+
attack_speed: {
|
|
17
|
+
value: number;
|
|
18
|
+
display_string: LocalizedString;
|
|
19
|
+
};
|
|
20
|
+
dps: {
|
|
21
|
+
value: number;
|
|
22
|
+
display_string: LocalizedString;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export interface characterEquipments extends LinkSelfHref {
|
|
26
|
+
character: Character;
|
|
27
|
+
equipped_items: {
|
|
28
|
+
item: KeyId;
|
|
29
|
+
description?: LocalizedString;
|
|
30
|
+
limit_category?: string | null;
|
|
31
|
+
modified_crafting_stat?: {
|
|
32
|
+
id: number;
|
|
33
|
+
type: string;
|
|
34
|
+
name: string;
|
|
35
|
+
}[];
|
|
36
|
+
shield_block?: {
|
|
37
|
+
value: number;
|
|
38
|
+
display: {
|
|
39
|
+
display_string: LocalizedString;
|
|
40
|
+
color: Rgba;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
unique_equipped?: string | null;
|
|
44
|
+
weapon?: EquippedItemWeapon;
|
|
45
|
+
sockets?: {
|
|
46
|
+
socket_type: TypeName;
|
|
47
|
+
item: KeyNameId;
|
|
48
|
+
display_string: LocalizedString;
|
|
49
|
+
media: KeyId;
|
|
50
|
+
}[];
|
|
51
|
+
enchantments?: {
|
|
52
|
+
display_string?: LocalizedString;
|
|
53
|
+
source_item?: KeyNameId;
|
|
54
|
+
enchantment_id: number;
|
|
55
|
+
enchantment_slot: {
|
|
56
|
+
id: number;
|
|
57
|
+
type?: string;
|
|
58
|
+
};
|
|
59
|
+
}[];
|
|
60
|
+
slot: TypeName;
|
|
61
|
+
quantity: number;
|
|
62
|
+
context?: number;
|
|
63
|
+
bonus_list?: number[];
|
|
64
|
+
quality: TypeName;
|
|
65
|
+
name: LocalizedString;
|
|
66
|
+
modified_appearance_id?: number;
|
|
67
|
+
media: KeyId;
|
|
68
|
+
item_class: KeyNameId;
|
|
69
|
+
item_subclass: KeyNameId;
|
|
70
|
+
inventory_type: TypeName;
|
|
71
|
+
binding?: TypeName | null;
|
|
72
|
+
armor?: {
|
|
73
|
+
value: number;
|
|
74
|
+
display: {
|
|
75
|
+
display_string: LocalizedString;
|
|
76
|
+
color: Rgba;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
stats?: {
|
|
80
|
+
type: TypeName;
|
|
81
|
+
value: number;
|
|
82
|
+
is_negated?: boolean;
|
|
83
|
+
is_equip_bonus?: boolean;
|
|
84
|
+
display: {
|
|
85
|
+
display_string: LocalizedString;
|
|
86
|
+
color: Rgba;
|
|
87
|
+
};
|
|
88
|
+
}[];
|
|
89
|
+
spells?: {
|
|
90
|
+
spell: KeyNameId;
|
|
91
|
+
description: LocalizedString;
|
|
92
|
+
display_color?: Rgba;
|
|
93
|
+
}[];
|
|
94
|
+
sell_price?: {
|
|
95
|
+
value: number;
|
|
96
|
+
display_strings: {
|
|
97
|
+
header: LocalizedString;
|
|
98
|
+
gold: string;
|
|
99
|
+
silver: string;
|
|
100
|
+
copper: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
requirements?: {
|
|
104
|
+
level: {
|
|
105
|
+
value: number;
|
|
106
|
+
display_string: LocalizedString;
|
|
107
|
+
};
|
|
108
|
+
playable_classes?: {
|
|
109
|
+
links: KeyNameId[];
|
|
110
|
+
display_string: LocalizedString;
|
|
111
|
+
};
|
|
112
|
+
faction?: {
|
|
113
|
+
value: TypeName;
|
|
114
|
+
display_string: LocalizedString;
|
|
115
|
+
};
|
|
116
|
+
reputation?: {
|
|
117
|
+
faction: KeyNameId;
|
|
118
|
+
min_reputation_level: number;
|
|
119
|
+
display_string: LocalizedString;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
set?: {
|
|
123
|
+
item_set: KeyNameId;
|
|
124
|
+
items: {
|
|
125
|
+
item: KeyNameId;
|
|
126
|
+
is_equipped?: boolean;
|
|
127
|
+
}[];
|
|
128
|
+
effects: {
|
|
129
|
+
display_string: LocalizedString;
|
|
130
|
+
required_count: number;
|
|
131
|
+
is_active?: boolean;
|
|
132
|
+
}[];
|
|
133
|
+
display_string: LocalizedString;
|
|
134
|
+
};
|
|
135
|
+
level?: {
|
|
136
|
+
value: number;
|
|
137
|
+
display_string: LocalizedString;
|
|
138
|
+
};
|
|
139
|
+
transmog?: {
|
|
140
|
+
item: KeyNameId;
|
|
141
|
+
display_string: LocalizedString;
|
|
142
|
+
item_modified_appearance_id: number;
|
|
143
|
+
second_item?: KeyNameId;
|
|
144
|
+
second_item_modified_appearance_id?: number;
|
|
145
|
+
};
|
|
146
|
+
durability?: {
|
|
147
|
+
value: number;
|
|
148
|
+
display_string: LocalizedString;
|
|
149
|
+
};
|
|
150
|
+
is_subclass_hidden?: boolean;
|
|
151
|
+
name_description?: {
|
|
152
|
+
display_string: LocalizedString;
|
|
153
|
+
color: Rgba;
|
|
154
|
+
};
|
|
155
|
+
}[];
|
|
156
|
+
equipped_item_sets?: {
|
|
157
|
+
item_set?: KeyNameId;
|
|
158
|
+
items?: {
|
|
159
|
+
item: KeyNameId;
|
|
160
|
+
is_equipped?: boolean;
|
|
161
|
+
}[];
|
|
162
|
+
effects?: {
|
|
163
|
+
display_string: LocalizedString;
|
|
164
|
+
required_count: number;
|
|
165
|
+
is_active?: boolean;
|
|
166
|
+
}[];
|
|
167
|
+
display_string?: LocalizedString;
|
|
168
|
+
}[];
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Returns a summary of the items equipped by a character.
|
|
172
|
+
*
|
|
173
|
+
* @param realmSlug - The slug of the realm.
|
|
174
|
+
* @param characterName - The lowercase name of the character.
|
|
175
|
+
* @returns A promise that resolves to an object representing details about items equipped by a character.
|
|
176
|
+
*/
|
|
177
|
+
export declare function characterEquipments(ctx: ApiContext, realmSlug: string, characterName: string): Promise<characterEquipments>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.characterEquipments = characterEquipments;
|
|
4
|
+
/**
|
|
5
|
+
* Returns a summary of the items equipped by a character.
|
|
6
|
+
*
|
|
7
|
+
* @param realmSlug - The slug of the realm.
|
|
8
|
+
* @param characterName - The lowercase name of the character.
|
|
9
|
+
* @returns A promise that resolves to an object representing details about items equipped by a character.
|
|
10
|
+
*/
|
|
11
|
+
async function characterEquipments(ctx, realmSlug, characterName) {
|
|
12
|
+
return await ctx.request({
|
|
13
|
+
method: "GET",
|
|
14
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/equipment`,
|
|
15
|
+
namespace: "profile",
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module provides the API function for fetching a character's house summary using the Blizzard API.
|
|
3
|
+
*/
|
|
4
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
5
|
+
import type { LinkSelfHref } from "../../shared/index.js";
|
|
6
|
+
export interface CharacterHouse extends LinkSelfHref {
|
|
7
|
+
id?: number;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns a summary of a house a character has built.
|
|
11
|
+
*
|
|
12
|
+
* @param realmSlug - The slug of the realm.
|
|
13
|
+
* @param characterName - The lowercase name of the character.
|
|
14
|
+
* @param houseNumber - The number of the character's house (e.g. 1 for house-1).
|
|
15
|
+
*/
|
|
16
|
+
export declare function characterHouse(ctx: ApiContext, realmSlug: string, characterName: string, houseNumber: number): Promise<CharacterHouse>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This module provides the API function for fetching a character's house summary using the Blizzard API.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.characterHouse = characterHouse;
|
|
7
|
+
/**
|
|
8
|
+
* Returns a summary of a house a character has built.
|
|
9
|
+
*
|
|
10
|
+
* @param realmSlug - The slug of the realm.
|
|
11
|
+
* @param characterName - The lowercase name of the character.
|
|
12
|
+
* @param houseNumber - The number of the character's house (e.g. 1 for house-1).
|
|
13
|
+
*/
|
|
14
|
+
async function characterHouse(ctx, realmSlug, characterName, houseNumber) {
|
|
15
|
+
return await ctx.request({
|
|
16
|
+
method: "GET",
|
|
17
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/house/house-${houseNumber}`,
|
|
18
|
+
namespace: "profile",
|
|
19
|
+
});
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { Character, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
|
|
3
|
+
export interface CharacterHunterPets extends LinkSelfHref {
|
|
4
|
+
character: Character;
|
|
5
|
+
hunter_pets: {
|
|
6
|
+
name: LocalizedString;
|
|
7
|
+
level: number;
|
|
8
|
+
creature: KeyNameId;
|
|
9
|
+
slot: number;
|
|
10
|
+
is_active?: boolean;
|
|
11
|
+
is_summoned?: boolean;
|
|
12
|
+
creature_display: KeyId;
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* If the character is a hunter, returns a summary of the character's hunter pets. Otherwise, returns an HTTP 404 Not Found error.
|
|
17
|
+
*
|
|
18
|
+
* @param realmSlug - The slug of the realm.
|
|
19
|
+
* @param characterName - The lowercase name of the character.
|
|
20
|
+
* @returns A promise that resolves to an object representing a summary of the character's hunter pets.
|
|
21
|
+
*/
|
|
22
|
+
export declare function characterHunterPets(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterHunterPets>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.characterHunterPets = characterHunterPets;
|
|
4
|
+
/**
|
|
5
|
+
* If the character is a hunter, returns a summary of the character's hunter pets. Otherwise, returns an HTTP 404 Not Found error.
|
|
6
|
+
*
|
|
7
|
+
* @param realmSlug - The slug of the realm.
|
|
8
|
+
* @param characterName - The lowercase name of the character.
|
|
9
|
+
* @returns A promise that resolves to an object representing a summary of the character's hunter pets.
|
|
10
|
+
*/
|
|
11
|
+
async function characterHunterPets(ctx, realmSlug, characterName) {
|
|
12
|
+
return await ctx.request({
|
|
13
|
+
method: "GET",
|
|
14
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/hunter-pets`,
|
|
15
|
+
namespace: "profile",
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { Asset, Character, LinkSelfHref } from "../../shared/index.js";
|
|
3
|
+
export interface CharacterMedia extends LinkSelfHref {
|
|
4
|
+
character: Character;
|
|
5
|
+
assets: Asset[];
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Returns a summary of the media assets available for a character (such as an avatar render).
|
|
9
|
+
*
|
|
10
|
+
* @param realmSlug - The slug of the realm.
|
|
11
|
+
* @param characterName - The lowercase name of the character.
|
|
12
|
+
* @returns A promise that resolves to an object representing a summary of the media assets available for a character.
|
|
13
|
+
*/
|
|
14
|
+
export declare function characterMedia(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterMedia>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.characterMedia = characterMedia;
|
|
4
|
+
/**
|
|
5
|
+
* Returns a summary of the media assets available for a character (such as an avatar render).
|
|
6
|
+
*
|
|
7
|
+
* @param realmSlug - The slug of the realm.
|
|
8
|
+
* @param characterName - The lowercase name of the character.
|
|
9
|
+
* @returns A promise that resolves to an object representing a summary of the media assets available for a character.
|
|
10
|
+
*/
|
|
11
|
+
async function characterMedia(ctx, realmSlug, characterName) {
|
|
12
|
+
return await ctx.request({
|
|
13
|
+
method: "GET",
|
|
14
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/character-media`,
|
|
15
|
+
namespace: "profile",
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { Character, Href, KeyId, KeyNameId, LinkSelfHref } from "../../shared/index.js";
|
|
3
|
+
export interface MythicRating {
|
|
4
|
+
color: {
|
|
5
|
+
r: number;
|
|
6
|
+
g: number;
|
|
7
|
+
b: number;
|
|
8
|
+
a: number;
|
|
9
|
+
};
|
|
10
|
+
rating: number;
|
|
11
|
+
}
|
|
12
|
+
export interface MythicKeystoneMemberCharacter {
|
|
13
|
+
name: string;
|
|
14
|
+
id: number;
|
|
15
|
+
realm: {
|
|
16
|
+
key: Href;
|
|
17
|
+
id: number;
|
|
18
|
+
slug: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export interface MythicKeystoneBestRun {
|
|
22
|
+
completed_timestamp: number;
|
|
23
|
+
duration: number;
|
|
24
|
+
keystone_level: number;
|
|
25
|
+
keystone_affixes: KeyNameId[];
|
|
26
|
+
members: {
|
|
27
|
+
character: MythicKeystoneMemberCharacter;
|
|
28
|
+
specialization: KeyNameId;
|
|
29
|
+
race: KeyNameId;
|
|
30
|
+
equipped_item_level: number;
|
|
31
|
+
}[];
|
|
32
|
+
dungeon: KeyNameId;
|
|
33
|
+
is_completed_within_time: boolean;
|
|
34
|
+
mythic_rating: MythicRating;
|
|
35
|
+
map_rating: MythicRating;
|
|
36
|
+
}
|
|
37
|
+
export interface CharacterMythicKeystoneProfile extends LinkSelfHref {
|
|
38
|
+
current_period: {
|
|
39
|
+
period: KeyId;
|
|
40
|
+
best_runs?: MythicKeystoneBestRun[];
|
|
41
|
+
};
|
|
42
|
+
seasons: KeyId[];
|
|
43
|
+
character: Character;
|
|
44
|
+
current_mythic_rating: MythicRating;
|
|
45
|
+
}
|
|
46
|
+
export interface CharacterMythicKeystoneSeasonDetails extends LinkSelfHref {
|
|
47
|
+
season: KeyId;
|
|
48
|
+
best_runs: MythicKeystoneBestRun[];
|
|
49
|
+
character: Character;
|
|
50
|
+
mythic_rating: MythicRating;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Returns the Mythic Keystone profile index for a character.
|
|
54
|
+
*
|
|
55
|
+
* @param realmSlug - The slug of the realm.
|
|
56
|
+
* @param characterName - The lowercase name of the character.
|
|
57
|
+
* @returns A promise that resolves to an object representing a Mythic Keystone profile.
|
|
58
|
+
*/
|
|
59
|
+
export declare function characterMythicKeystoneProfile(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterMythicKeystoneProfile>;
|
|
60
|
+
/**
|
|
61
|
+
* Returns the Mythic Keystone season details for a character.
|
|
62
|
+
*
|
|
63
|
+
* Returns a 404 Not Found for characters that have not yet completed a Mythic Keystone dungeon for the specified season.
|
|
64
|
+
*
|
|
65
|
+
* @param realmSlug - The slug of the realm.
|
|
66
|
+
* @param characterName - The lowercase name of the character.
|
|
67
|
+
* @param seasonId - The lowercase name of the character.
|
|
68
|
+
* @returns A promise that resolves to an object representing a Mythic Keystone season details.
|
|
69
|
+
*/
|
|
70
|
+
export declare function characterMythicKeystoneSeasonDetails(ctx: ApiContext, realmSlug: string, characterName: string, seasonId: number): Promise<CharacterMythicKeystoneSeasonDetails>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.characterMythicKeystoneProfile = characterMythicKeystoneProfile;
|
|
4
|
+
exports.characterMythicKeystoneSeasonDetails = characterMythicKeystoneSeasonDetails;
|
|
5
|
+
/**
|
|
6
|
+
* Returns the Mythic Keystone profile index for a character.
|
|
7
|
+
*
|
|
8
|
+
* @param realmSlug - The slug of the realm.
|
|
9
|
+
* @param characterName - The lowercase name of the character.
|
|
10
|
+
* @returns A promise that resolves to an object representing a Mythic Keystone profile.
|
|
11
|
+
*/
|
|
12
|
+
async function characterMythicKeystoneProfile(ctx, realmSlug, characterName) {
|
|
13
|
+
return await ctx.request({
|
|
14
|
+
method: "GET",
|
|
15
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/mythic-keystone-profile`,
|
|
16
|
+
namespace: "profile",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Returns the Mythic Keystone season details for a character.
|
|
21
|
+
*
|
|
22
|
+
* Returns a 404 Not Found for characters that have not yet completed a Mythic Keystone dungeon for the specified season.
|
|
23
|
+
*
|
|
24
|
+
* @param realmSlug - The slug of the realm.
|
|
25
|
+
* @param characterName - The lowercase name of the character.
|
|
26
|
+
* @param seasonId - The lowercase name of the character.
|
|
27
|
+
* @returns A promise that resolves to an object representing a Mythic Keystone season details.
|
|
28
|
+
*/
|
|
29
|
+
async function characterMythicKeystoneSeasonDetails(ctx, realmSlug, characterName, seasonId) {
|
|
30
|
+
return await ctx.request({
|
|
31
|
+
method: "GET",
|
|
32
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/mythic-keystone-profile/season/${seasonId}`,
|
|
33
|
+
namespace: "profile",
|
|
34
|
+
});
|
|
35
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { Character, KeyNameId, LinkSelfHref, NameId } from "../../shared/index.js";
|
|
3
|
+
export interface Tier {
|
|
4
|
+
skill_points: number;
|
|
5
|
+
max_skill_points: number;
|
|
6
|
+
tier: NameId;
|
|
7
|
+
known_recipes?: KeyNameId[];
|
|
8
|
+
}
|
|
9
|
+
export interface CharacterProfession {
|
|
10
|
+
profession: KeyNameId;
|
|
11
|
+
skill_points?: number;
|
|
12
|
+
max_skill_points?: number;
|
|
13
|
+
tiers?: Tier[];
|
|
14
|
+
}
|
|
15
|
+
export interface CharacterProfessions extends LinkSelfHref {
|
|
16
|
+
character: Character;
|
|
17
|
+
/** Absent when the character has no primary professions. */
|
|
18
|
+
primaries?: CharacterProfession[];
|
|
19
|
+
/** Absent when the character has no secondary professions. */
|
|
20
|
+
secondaries?: CharacterProfession[];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns a summary of professions for a character.
|
|
24
|
+
*
|
|
25
|
+
* @param realmSlug - The slug of the realm.
|
|
26
|
+
* @param characterName - The lowercase name of the character.
|
|
27
|
+
* @returns A promise that resolves to an object representing a summary of professions for a character.
|
|
28
|
+
*/
|
|
29
|
+
export declare function characterProfessions(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterProfessions>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.characterProfessions = characterProfessions;
|
|
4
|
+
/**
|
|
5
|
+
* Returns a summary of professions for a character.
|
|
6
|
+
*
|
|
7
|
+
* @param realmSlug - The slug of the realm.
|
|
8
|
+
* @param characterName - The lowercase name of the character.
|
|
9
|
+
* @returns A promise that resolves to an object representing a summary of professions for a character.
|
|
10
|
+
*/
|
|
11
|
+
async function characterProfessions(ctx, realmSlug, characterName) {
|
|
12
|
+
return await ctx.request({
|
|
13
|
+
method: "GET",
|
|
14
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/professions`,
|
|
15
|
+
namespace: "profile",
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { ApiContext, Href, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
|
|
2
|
+
export interface CharacterRealm extends KeyNameId {
|
|
3
|
+
slug: string;
|
|
4
|
+
}
|
|
5
|
+
export interface CharacterProfile extends LinkSelfHref {
|
|
6
|
+
id: number;
|
|
7
|
+
name: LocalizedString;
|
|
8
|
+
active_title?: {
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
gender: TypeName;
|
|
12
|
+
faction: TypeName;
|
|
13
|
+
race: KeyNameId;
|
|
14
|
+
character_class: KeyNameId;
|
|
15
|
+
active_spec: KeyNameId;
|
|
16
|
+
realm: CharacterRealm;
|
|
17
|
+
guild?: {
|
|
18
|
+
key: Href;
|
|
19
|
+
name: LocalizedString;
|
|
20
|
+
id: number;
|
|
21
|
+
realm: CharacterRealm;
|
|
22
|
+
faction: TypeName;
|
|
23
|
+
};
|
|
24
|
+
level: number;
|
|
25
|
+
experience: number;
|
|
26
|
+
achievement_points: number;
|
|
27
|
+
achievements: Href;
|
|
28
|
+
titles: Href;
|
|
29
|
+
pvp_summary: Href;
|
|
30
|
+
encounters: Href;
|
|
31
|
+
media: Href;
|
|
32
|
+
last_login_timestamp: number;
|
|
33
|
+
average_item_level: number;
|
|
34
|
+
equipped_item_level: number;
|
|
35
|
+
specializations: Href;
|
|
36
|
+
statistics: Href;
|
|
37
|
+
mythic_keystone_profile: Href;
|
|
38
|
+
equipment: Href;
|
|
39
|
+
appearance: Href;
|
|
40
|
+
collections: Href;
|
|
41
|
+
reputations: Href;
|
|
42
|
+
quests: Href;
|
|
43
|
+
achievements_statistics: Href;
|
|
44
|
+
professions: Href;
|
|
45
|
+
covenant_progress?: {
|
|
46
|
+
chosen_covenant: KeyNameId;
|
|
47
|
+
renown_level: number;
|
|
48
|
+
soulbinds: Href;
|
|
49
|
+
};
|
|
50
|
+
name_search: string;
|
|
51
|
+
is_remix: boolean;
|
|
52
|
+
}
|
|
53
|
+
export interface CharacterProfileStatus extends LinkSelfHref {
|
|
54
|
+
id: number;
|
|
55
|
+
is_valid: boolean;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Returns a profile summary for a character.
|
|
59
|
+
*
|
|
60
|
+
* @param realmSlug - The slug of the realm.
|
|
61
|
+
* @param characterName - The lowercase name of the character.
|
|
62
|
+
* @returns A promise that resolves to an object representing a profile summary.
|
|
63
|
+
*/
|
|
64
|
+
export declare function characterProfile(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterProfile>;
|
|
65
|
+
/**
|
|
66
|
+
* Returns the status and a unique ID for a character. A client should delete information about a character from their application if any of the following conditions occur:
|
|
67
|
+
*
|
|
68
|
+
* an HTTP 404 Not Found error is returned
|
|
69
|
+
* the is_valid value is false
|
|
70
|
+
* the returned character ID doesn't match the previously recorded value for the character
|
|
71
|
+
*
|
|
72
|
+
* The following example illustrates how to use this endpoint:
|
|
73
|
+
*
|
|
74
|
+
* A client requests and stores information about a character, including its unique character ID and the timestamp of the request.
|
|
75
|
+
* After 30 days, the client makes a request to the status endpoint to verify if the character information is still valid.
|
|
76
|
+
* If character cannot be found, is not valid, or the characters IDs do not match, the client removes the information from their application.
|
|
77
|
+
* If the character is valid and the character IDs match, the client retains the data for another 30 days.
|
|
78
|
+
*
|
|
79
|
+
* @param realmSlug - The slug of the realm.
|
|
80
|
+
* @param characterName - The lowercase name of the character.
|
|
81
|
+
* @returns A promise that resolves to an object representing a profile summary status.
|
|
82
|
+
*/
|
|
83
|
+
export declare function characterProfileStatus(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterProfileStatus>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.characterProfile = characterProfile;
|
|
4
|
+
exports.characterProfileStatus = characterProfileStatus;
|
|
5
|
+
/**
|
|
6
|
+
* Returns a profile summary for a character.
|
|
7
|
+
*
|
|
8
|
+
* @param realmSlug - The slug of the realm.
|
|
9
|
+
* @param characterName - The lowercase name of the character.
|
|
10
|
+
* @returns A promise that resolves to an object representing a profile summary.
|
|
11
|
+
*/
|
|
12
|
+
async function characterProfile(ctx, realmSlug, characterName) {
|
|
13
|
+
return await ctx.request({
|
|
14
|
+
method: "GET",
|
|
15
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}`,
|
|
16
|
+
namespace: "profile",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Returns the status and a unique ID for a character. A client should delete information about a character from their application if any of the following conditions occur:
|
|
21
|
+
*
|
|
22
|
+
* an HTTP 404 Not Found error is returned
|
|
23
|
+
* the is_valid value is false
|
|
24
|
+
* the returned character ID doesn't match the previously recorded value for the character
|
|
25
|
+
*
|
|
26
|
+
* The following example illustrates how to use this endpoint:
|
|
27
|
+
*
|
|
28
|
+
* A client requests and stores information about a character, including its unique character ID and the timestamp of the request.
|
|
29
|
+
* After 30 days, the client makes a request to the status endpoint to verify if the character information is still valid.
|
|
30
|
+
* If character cannot be found, is not valid, or the characters IDs do not match, the client removes the information from their application.
|
|
31
|
+
* If the character is valid and the character IDs match, the client retains the data for another 30 days.
|
|
32
|
+
*
|
|
33
|
+
* @param realmSlug - The slug of the realm.
|
|
34
|
+
* @param characterName - The lowercase name of the character.
|
|
35
|
+
* @returns A promise that resolves to an object representing a profile summary status.
|
|
36
|
+
*/
|
|
37
|
+
async function characterProfileStatus(ctx, realmSlug, characterName) {
|
|
38
|
+
return await ctx.request({
|
|
39
|
+
method: "GET",
|
|
40
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/status`,
|
|
41
|
+
namespace: "profile",
|
|
42
|
+
});
|
|
43
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { Character, KeyId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
|
|
3
|
+
export interface MatchStatistic {
|
|
4
|
+
played: number;
|
|
5
|
+
won: number;
|
|
6
|
+
lost: number;
|
|
7
|
+
}
|
|
8
|
+
export interface CharacterPvpBracketStatistics extends LinkSelfHref {
|
|
9
|
+
character: Character;
|
|
10
|
+
faction: TypeName;
|
|
11
|
+
bracket: {
|
|
12
|
+
id: number;
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
rating: number;
|
|
16
|
+
season: KeyId;
|
|
17
|
+
tier: KeyId;
|
|
18
|
+
season_match_statistics: MatchStatistic;
|
|
19
|
+
weekly_match_statistics: MatchStatistic;
|
|
20
|
+
}
|
|
21
|
+
export interface CharacterPvpSummary extends LinkSelfHref {
|
|
22
|
+
brackets?: {
|
|
23
|
+
href: string;
|
|
24
|
+
}[];
|
|
25
|
+
honor_level: number;
|
|
26
|
+
pvp_map_statistics?: {
|
|
27
|
+
world_map: {
|
|
28
|
+
name: LocalizedString;
|
|
29
|
+
id: number;
|
|
30
|
+
};
|
|
31
|
+
match_statistics: MatchStatistic;
|
|
32
|
+
}[];
|
|
33
|
+
honorable_kills: number;
|
|
34
|
+
character: Character;
|
|
35
|
+
pvp_rank?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Returns the PvP bracket statistics for a character.
|
|
39
|
+
*
|
|
40
|
+
* @param realmSlug - The slug of the realm.
|
|
41
|
+
* @param characterName - The lowercase name of the character.
|
|
42
|
+
* @param pvpBracket - The PvP bracket type.
|
|
43
|
+
* @returns A promise that resolves to an object representing the PvP bracket statistics for a character.
|
|
44
|
+
*/
|
|
45
|
+
export declare function characterPvpBracketStatistics(ctx: ApiContext, realmSlug: string, characterName: string, pvpBracket: string): Promise<CharacterPvpBracketStatistics>;
|
|
46
|
+
/**
|
|
47
|
+
* Returns a PvP summary for a character.
|
|
48
|
+
*
|
|
49
|
+
* @param realmSlug - The slug of the realm.
|
|
50
|
+
* @param characterName - The lowercase name of the character.
|
|
51
|
+
* @returns A promise that resolves to an object representing the PvP summary for a character.
|
|
52
|
+
*/
|
|
53
|
+
export declare function characterPvpSummary(ctx: ApiContext, realmSlug: string, characterName: string): Promise<CharacterPvpSummary>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.characterPvpBracketStatistics = characterPvpBracketStatistics;
|
|
4
|
+
exports.characterPvpSummary = characterPvpSummary;
|
|
5
|
+
/**
|
|
6
|
+
* Returns the PvP bracket statistics for a character.
|
|
7
|
+
*
|
|
8
|
+
* @param realmSlug - The slug of the realm.
|
|
9
|
+
* @param characterName - The lowercase name of the character.
|
|
10
|
+
* @param pvpBracket - The PvP bracket type.
|
|
11
|
+
* @returns A promise that resolves to an object representing the PvP bracket statistics for a character.
|
|
12
|
+
*/
|
|
13
|
+
async function characterPvpBracketStatistics(ctx, realmSlug, characterName, pvpBracket) {
|
|
14
|
+
return await ctx.request({
|
|
15
|
+
method: "GET",
|
|
16
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/pvp-bracket/${pvpBracket}`,
|
|
17
|
+
namespace: "profile",
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Returns a PvP summary for a character.
|
|
22
|
+
*
|
|
23
|
+
* @param realmSlug - The slug of the realm.
|
|
24
|
+
* @param characterName - The lowercase name of the character.
|
|
25
|
+
* @returns A promise that resolves to an object representing the PvP summary for a character.
|
|
26
|
+
*/
|
|
27
|
+
async function characterPvpSummary(ctx, realmSlug, characterName) {
|
|
28
|
+
return await ctx.request({
|
|
29
|
+
method: "GET",
|
|
30
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/pvp-summary`,
|
|
31
|
+
namespace: "profile",
|
|
32
|
+
});
|
|
33
|
+
}
|