@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,272 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Start Search
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.itemSet = exports.itemMedia = exports.itemClasses = exports.itemClass = exports.item = exports.searchRoom = exports.searchFixtureHook = exports.searchFixture = exports.searchDecor = exports.rooms = exports.room = exports.fixtures = exports.fixtureHooks = exports.fixtureHook = exports.fixture = exports.decors = exports.decor = exports.heirlooms = exports.heirloom = exports.guildCrests = exports.guildCrestEmblem = exports.guildCrestBorder = exports.searchCreature = exports.creatureTypes = exports.creatureType = exports.creatureFamilyMedia = exports.creatureFamily = exports.creatureFamilies = exports.creatureDisplayMedia = exports.creature = exports.covenantSoulbinds = exports.covenantSoulbind = exports.covenants = exports.covenantConduits = exports.covenantConduit = exports.covenant = exports.searchConnectedRealm = exports.connectedRealms = exports.connectedRealm = exports.searchAzeriteEssence = exports.azeriteEssences = exports.azeriteEssenceMedia = exports.azeriteEssence = exports.commodities = exports.auctions = exports.achievements = exports.achievementMedia = exports.achievementCategory = exports.achievementCategories = exports.achievement = void 0;
|
|
5
|
+
exports.playableClasses = exports.playableClass = exports.pets = exports.petMedia = exports.petAbilityMedia = exports.petAbility = exports.petAbilities = exports.pet = exports.neighborhoodMaps = exports.neighborhoodMap = exports.neighborhood = exports.mythicRaidLeaderboard = exports.mythicKeystoneLeaderboards = exports.mythicKeystoneLeaderboard = exports.mythicKeystoneSeasons = exports.mythicKeystoneSeason = exports.mythicKeystonePeriods = exports.mythicKeystonePeriod = exports.mythicKeystoneIndex = exports.mythicKeystoneDungeons = exports.mythicKeystoneDungeon = exports.keystoneAffixMedia = exports.keystoneAffixes = exports.keystoneAffix = exports.searchMount = exports.mounts = exports.mount = exports.modifiedCraftingSlotTypes = exports.modifiedCraftingSlotType = exports.modifiedCraftingParents = exports.modifiedCraftingCategory = exports.modifiedCraftingCategories = exports.searchJournalEncounter = exports.journalInstances = exports.journalInstanceMedia = exports.journalInstance = exports.journalExpansions = exports.journalExpansion = exports.journalEncounters = exports.journalEncounter = exports.searchMedia = exports.searchItemAppearance = exports.itemAppearanceSlots = exports.itemAppearanceSlot = exports.itemAppearanceSets = exports.itemAppearanceSet = exports.itemAppearance = exports.searchItem = exports.itemSubclass = exports.itemSets = void 0;
|
|
6
|
+
exports.talent = exports.pvpTalents = exports.pvpTalent = exports.toys = exports.toy = exports.titles = exports.title = exports.spellMedia = exports.spell = exports.searchSpell = exports.reputationTiers = exports.reputationTier = exports.reputationFactions = exports.reputationFaction = exports.regions = exports.region = exports.searchRealm = exports.realms = exports.realm = exports.questTypes = exports.questType = exports.quests = exports.questCategory = exports.questCategories = exports.questAreas = exports.questArea = exports.quest = exports.pvpTiers = exports.pvpTierMedia = exports.pvpTier = exports.pvpSeasons = exports.pvpSeasonRewards = exports.pvpSeasonLeaderboards = exports.pvpSeasonLeaderboard = exports.pvpSeason = exports.professionSkillTier = exports.professions = exports.professionRecipieMedia = exports.professionRecipie = exports.professionMedia = exports.profession = exports.powerTypes = exports.powerType = exports.playableRaces = exports.playableRace = exports.playableSpecializations = exports.playableSpecializationMedia = exports.playableSpecialization = exports.playableClassPvpTalentSlots = exports.playableClassMedia = void 0;
|
|
7
|
+
exports.characterTitles = exports.characterStatistics = exports.characterSpecializations = exports.characterSoulbinds = exports.characterReputations = exports.characterQuests = exports.characterCompletedQuests = exports.characterPvpSummary = exports.characterPvpBracketStatistics = exports.characterProfileStatus = exports.characterProfile = exports.characterProfessions = exports.characterMythicKeystoneSeasonDetails = exports.characterMythicKeystoneProfile = exports.characterMedia = exports.characterHunterPets = exports.characterEquipments = exports.characterEncounters = exports.characterEncounterRaids = exports.characterEncounterDungeons = exports.characterHouse = exports.characterCollectionTypes = exports.characterCollectionTransmogs = exports.characterCollectionToys = exports.characterCollectionPets = exports.characterCollectionMounts = exports.characterCollectionHeirlooms = exports.characterCollectionDecor = exports.characterAppearanceSummary = exports.protectedCharacterProfile = exports.accountTransmogsCollection = exports.accountToysCollection = exports.accountProfileSummary = exports.accountPetsCollection = exports.accountMountsCollection = exports.accountHeirloomsCollection = exports.accountDecorCollection = exports.accountCollectionsIndex = exports.characterAchievementSummary = exports.characterAchievementStatistics = exports.token = exports.techTalentTrees = exports.techTalentTree = exports.techTalents = exports.techTalentMedia = exports.techTalent = exports.talentTrees = exports.talentTreeNodes = exports.talentTree = exports.talents = void 0;
|
|
8
|
+
exports.guildRoster = exports.guildActivity = exports.guildAchievements = exports.guild = void 0;
|
|
9
|
+
// Start Game Data APIs
|
|
10
|
+
var achievement_js_1 = require("./game_data/achievement.js");
|
|
11
|
+
Object.defineProperty(exports, "achievement", { enumerable: true, get: function () { return achievement_js_1.achievement; } });
|
|
12
|
+
Object.defineProperty(exports, "achievementCategories", { enumerable: true, get: function () { return achievement_js_1.achievementCategories; } });
|
|
13
|
+
Object.defineProperty(exports, "achievementCategory", { enumerable: true, get: function () { return achievement_js_1.achievementCategory; } });
|
|
14
|
+
Object.defineProperty(exports, "achievementMedia", { enumerable: true, get: function () { return achievement_js_1.achievementMedia; } });
|
|
15
|
+
Object.defineProperty(exports, "achievements", { enumerable: true, get: function () { return achievement_js_1.achievements; } });
|
|
16
|
+
var auction_house_js_1 = require("./game_data/auction_house.js");
|
|
17
|
+
Object.defineProperty(exports, "auctions", { enumerable: true, get: function () { return auction_house_js_1.auctions; } });
|
|
18
|
+
Object.defineProperty(exports, "commodities", { enumerable: true, get: function () { return auction_house_js_1.commodities; } });
|
|
19
|
+
var azerite_essence_js_1 = require("./game_data/azerite_essence.js");
|
|
20
|
+
Object.defineProperty(exports, "azeriteEssence", { enumerable: true, get: function () { return azerite_essence_js_1.azeriteEssence; } });
|
|
21
|
+
Object.defineProperty(exports, "azeriteEssenceMedia", { enumerable: true, get: function () { return azerite_essence_js_1.azeriteEssenceMedia; } });
|
|
22
|
+
Object.defineProperty(exports, "azeriteEssences", { enumerable: true, get: function () { return azerite_essence_js_1.azeriteEssences; } });
|
|
23
|
+
Object.defineProperty(exports, "searchAzeriteEssence", { enumerable: true, get: function () { return azerite_essence_js_1.searchAzeriteEssence; } });
|
|
24
|
+
var connected_realm_js_1 = require("./game_data/connected_realm.js");
|
|
25
|
+
Object.defineProperty(exports, "connectedRealm", { enumerable: true, get: function () { return connected_realm_js_1.connectedRealm; } });
|
|
26
|
+
Object.defineProperty(exports, "connectedRealms", { enumerable: true, get: function () { return connected_realm_js_1.connectedRealms; } });
|
|
27
|
+
Object.defineProperty(exports, "searchConnectedRealm", { enumerable: true, get: function () { return connected_realm_js_1.searchConnectedRealm; } });
|
|
28
|
+
var covenant_js_1 = require("./game_data/covenant.js");
|
|
29
|
+
Object.defineProperty(exports, "covenant", { enumerable: true, get: function () { return covenant_js_1.covenant; } });
|
|
30
|
+
Object.defineProperty(exports, "covenantConduit", { enumerable: true, get: function () { return covenant_js_1.covenantConduit; } });
|
|
31
|
+
Object.defineProperty(exports, "covenantConduits", { enumerable: true, get: function () { return covenant_js_1.covenantConduits; } });
|
|
32
|
+
Object.defineProperty(exports, "covenants", { enumerable: true, get: function () { return covenant_js_1.covenants; } });
|
|
33
|
+
Object.defineProperty(exports, "covenantSoulbind", { enumerable: true, get: function () { return covenant_js_1.covenantSoulbind; } });
|
|
34
|
+
Object.defineProperty(exports, "covenantSoulbinds", { enumerable: true, get: function () { return covenant_js_1.covenantSoulbinds; } });
|
|
35
|
+
var creature_js_1 = require("./game_data/creature.js");
|
|
36
|
+
Object.defineProperty(exports, "creature", { enumerable: true, get: function () { return creature_js_1.creature; } });
|
|
37
|
+
Object.defineProperty(exports, "creatureDisplayMedia", { enumerable: true, get: function () { return creature_js_1.creatureDisplayMedia; } });
|
|
38
|
+
Object.defineProperty(exports, "creatureFamilies", { enumerable: true, get: function () { return creature_js_1.creatureFamilies; } });
|
|
39
|
+
Object.defineProperty(exports, "creatureFamily", { enumerable: true, get: function () { return creature_js_1.creatureFamily; } });
|
|
40
|
+
Object.defineProperty(exports, "creatureFamilyMedia", { enumerable: true, get: function () { return creature_js_1.creatureFamilyMedia; } });
|
|
41
|
+
Object.defineProperty(exports, "creatureType", { enumerable: true, get: function () { return creature_js_1.creatureType; } });
|
|
42
|
+
Object.defineProperty(exports, "creatureTypes", { enumerable: true, get: function () { return creature_js_1.creatureTypes; } });
|
|
43
|
+
Object.defineProperty(exports, "searchCreature", { enumerable: true, get: function () { return creature_js_1.searchCreature; } });
|
|
44
|
+
var guild_crest_js_1 = require("./game_data/guild_crest.js");
|
|
45
|
+
Object.defineProperty(exports, "guildCrestBorder", { enumerable: true, get: function () { return guild_crest_js_1.guildCrestBorder; } });
|
|
46
|
+
Object.defineProperty(exports, "guildCrestEmblem", { enumerable: true, get: function () { return guild_crest_js_1.guildCrestEmblem; } });
|
|
47
|
+
Object.defineProperty(exports, "guildCrests", { enumerable: true, get: function () { return guild_crest_js_1.guildCrests; } });
|
|
48
|
+
var heirloom_js_1 = require("./game_data/heirloom.js");
|
|
49
|
+
Object.defineProperty(exports, "heirloom", { enumerable: true, get: function () { return heirloom_js_1.heirloom; } });
|
|
50
|
+
Object.defineProperty(exports, "heirlooms", { enumerable: true, get: function () { return heirloom_js_1.heirlooms; } });
|
|
51
|
+
var housing_js_1 = require("./game_data/housing.js");
|
|
52
|
+
Object.defineProperty(exports, "decor", { enumerable: true, get: function () { return housing_js_1.decor; } });
|
|
53
|
+
Object.defineProperty(exports, "decors", { enumerable: true, get: function () { return housing_js_1.decors; } });
|
|
54
|
+
Object.defineProperty(exports, "fixture", { enumerable: true, get: function () { return housing_js_1.fixture; } });
|
|
55
|
+
Object.defineProperty(exports, "fixtureHook", { enumerable: true, get: function () { return housing_js_1.fixtureHook; } });
|
|
56
|
+
Object.defineProperty(exports, "fixtureHooks", { enumerable: true, get: function () { return housing_js_1.fixtureHooks; } });
|
|
57
|
+
Object.defineProperty(exports, "fixtures", { enumerable: true, get: function () { return housing_js_1.fixtures; } });
|
|
58
|
+
Object.defineProperty(exports, "room", { enumerable: true, get: function () { return housing_js_1.room; } });
|
|
59
|
+
Object.defineProperty(exports, "rooms", { enumerable: true, get: function () { return housing_js_1.rooms; } });
|
|
60
|
+
Object.defineProperty(exports, "searchDecor", { enumerable: true, get: function () { return housing_js_1.searchDecor; } });
|
|
61
|
+
Object.defineProperty(exports, "searchFixture", { enumerable: true, get: function () { return housing_js_1.searchFixture; } });
|
|
62
|
+
Object.defineProperty(exports, "searchFixtureHook", { enumerable: true, get: function () { return housing_js_1.searchFixtureHook; } });
|
|
63
|
+
Object.defineProperty(exports, "searchRoom", { enumerable: true, get: function () { return housing_js_1.searchRoom; } });
|
|
64
|
+
var item_js_1 = require("./game_data/item.js");
|
|
65
|
+
Object.defineProperty(exports, "item", { enumerable: true, get: function () { return item_js_1.item; } });
|
|
66
|
+
Object.defineProperty(exports, "itemClass", { enumerable: true, get: function () { return item_js_1.itemClass; } });
|
|
67
|
+
Object.defineProperty(exports, "itemClasses", { enumerable: true, get: function () { return item_js_1.itemClasses; } });
|
|
68
|
+
Object.defineProperty(exports, "itemMedia", { enumerable: true, get: function () { return item_js_1.itemMedia; } });
|
|
69
|
+
Object.defineProperty(exports, "itemSet", { enumerable: true, get: function () { return item_js_1.itemSet; } });
|
|
70
|
+
Object.defineProperty(exports, "itemSets", { enumerable: true, get: function () { return item_js_1.itemSets; } });
|
|
71
|
+
Object.defineProperty(exports, "itemSubclass", { enumerable: true, get: function () { return item_js_1.itemSubclass; } });
|
|
72
|
+
Object.defineProperty(exports, "searchItem", { enumerable: true, get: function () { return item_js_1.searchItem; } });
|
|
73
|
+
var item_appearance_js_1 = require("./game_data/item_appearance.js");
|
|
74
|
+
Object.defineProperty(exports, "itemAppearance", { enumerable: true, get: function () { return item_appearance_js_1.itemAppearance; } });
|
|
75
|
+
Object.defineProperty(exports, "itemAppearanceSet", { enumerable: true, get: function () { return item_appearance_js_1.itemAppearanceSet; } });
|
|
76
|
+
Object.defineProperty(exports, "itemAppearanceSets", { enumerable: true, get: function () { return item_appearance_js_1.itemAppearanceSets; } });
|
|
77
|
+
Object.defineProperty(exports, "itemAppearanceSlot", { enumerable: true, get: function () { return item_appearance_js_1.itemAppearanceSlot; } });
|
|
78
|
+
Object.defineProperty(exports, "itemAppearanceSlots", { enumerable: true, get: function () { return item_appearance_js_1.itemAppearanceSlots; } });
|
|
79
|
+
Object.defineProperty(exports, "searchItemAppearance", { enumerable: true, get: function () { return item_appearance_js_1.searchItemAppearance; } });
|
|
80
|
+
var media_search_js_1 = require("./game_data/media_search.js");
|
|
81
|
+
Object.defineProperty(exports, "searchMedia", { enumerable: true, get: function () { return media_search_js_1.searchMedia; } });
|
|
82
|
+
var journal_js_1 = require("./game_data/journal.js");
|
|
83
|
+
Object.defineProperty(exports, "journalEncounter", { enumerable: true, get: function () { return journal_js_1.journalEncounter; } });
|
|
84
|
+
Object.defineProperty(exports, "journalEncounters", { enumerable: true, get: function () { return journal_js_1.journalEncounters; } });
|
|
85
|
+
Object.defineProperty(exports, "journalExpansion", { enumerable: true, get: function () { return journal_js_1.journalExpansion; } });
|
|
86
|
+
Object.defineProperty(exports, "journalExpansions", { enumerable: true, get: function () { return journal_js_1.journalExpansions; } });
|
|
87
|
+
Object.defineProperty(exports, "journalInstance", { enumerable: true, get: function () { return journal_js_1.journalInstance; } });
|
|
88
|
+
Object.defineProperty(exports, "journalInstanceMedia", { enumerable: true, get: function () { return journal_js_1.journalInstanceMedia; } });
|
|
89
|
+
Object.defineProperty(exports, "journalInstances", { enumerable: true, get: function () { return journal_js_1.journalInstances; } });
|
|
90
|
+
Object.defineProperty(exports, "searchJournalEncounter", { enumerable: true, get: function () { return journal_js_1.searchJournalEncounter; } });
|
|
91
|
+
var modified_crafting_js_1 = require("./game_data/modified_crafting.js");
|
|
92
|
+
Object.defineProperty(exports, "modifiedCraftingCategories", { enumerable: true, get: function () { return modified_crafting_js_1.modifiedCraftingCategories; } });
|
|
93
|
+
Object.defineProperty(exports, "modifiedCraftingCategory", { enumerable: true, get: function () { return modified_crafting_js_1.modifiedCraftingCategory; } });
|
|
94
|
+
Object.defineProperty(exports, "modifiedCraftingParents", { enumerable: true, get: function () { return modified_crafting_js_1.modifiedCraftingParents; } });
|
|
95
|
+
Object.defineProperty(exports, "modifiedCraftingSlotType", { enumerable: true, get: function () { return modified_crafting_js_1.modifiedCraftingSlotType; } });
|
|
96
|
+
Object.defineProperty(exports, "modifiedCraftingSlotTypes", { enumerable: true, get: function () { return modified_crafting_js_1.modifiedCraftingSlotTypes; } });
|
|
97
|
+
var mount_js_1 = require("./game_data/mount.js");
|
|
98
|
+
Object.defineProperty(exports, "mount", { enumerable: true, get: function () { return mount_js_1.mount; } });
|
|
99
|
+
Object.defineProperty(exports, "mounts", { enumerable: true, get: function () { return mount_js_1.mounts; } });
|
|
100
|
+
Object.defineProperty(exports, "searchMount", { enumerable: true, get: function () { return mount_js_1.searchMount; } });
|
|
101
|
+
var keystone_affix_js_1 = require("./game_data/keystone_affix.js");
|
|
102
|
+
Object.defineProperty(exports, "keystoneAffix", { enumerable: true, get: function () { return keystone_affix_js_1.keystoneAffix; } });
|
|
103
|
+
Object.defineProperty(exports, "keystoneAffixes", { enumerable: true, get: function () { return keystone_affix_js_1.keystoneAffixes; } });
|
|
104
|
+
Object.defineProperty(exports, "keystoneAffixMedia", { enumerable: true, get: function () { return keystone_affix_js_1.keystoneAffixMedia; } });
|
|
105
|
+
var mythic_keystone_dungeon_js_1 = require("./game_data/mythic_keystone_dungeon.js");
|
|
106
|
+
Object.defineProperty(exports, "mythicKeystoneDungeon", { enumerable: true, get: function () { return mythic_keystone_dungeon_js_1.mythicKeystoneDungeon; } });
|
|
107
|
+
Object.defineProperty(exports, "mythicKeystoneDungeons", { enumerable: true, get: function () { return mythic_keystone_dungeon_js_1.mythicKeystoneDungeons; } });
|
|
108
|
+
Object.defineProperty(exports, "mythicKeystoneIndex", { enumerable: true, get: function () { return mythic_keystone_dungeon_js_1.mythicKeystoneIndex; } });
|
|
109
|
+
Object.defineProperty(exports, "mythicKeystonePeriod", { enumerable: true, get: function () { return mythic_keystone_dungeon_js_1.mythicKeystonePeriod; } });
|
|
110
|
+
Object.defineProperty(exports, "mythicKeystonePeriods", { enumerable: true, get: function () { return mythic_keystone_dungeon_js_1.mythicKeystonePeriods; } });
|
|
111
|
+
Object.defineProperty(exports, "mythicKeystoneSeason", { enumerable: true, get: function () { return mythic_keystone_dungeon_js_1.mythicKeystoneSeason; } });
|
|
112
|
+
Object.defineProperty(exports, "mythicKeystoneSeasons", { enumerable: true, get: function () { return mythic_keystone_dungeon_js_1.mythicKeystoneSeasons; } });
|
|
113
|
+
var mythic_keystone_leaderboard_js_1 = require("./game_data/mythic_keystone_leaderboard.js");
|
|
114
|
+
Object.defineProperty(exports, "mythicKeystoneLeaderboard", { enumerable: true, get: function () { return mythic_keystone_leaderboard_js_1.mythicKeystoneLeaderboard; } });
|
|
115
|
+
Object.defineProperty(exports, "mythicKeystoneLeaderboards", { enumerable: true, get: function () { return mythic_keystone_leaderboard_js_1.mythicKeystoneLeaderboards; } });
|
|
116
|
+
var mythic_raid_leaderboard_js_1 = require("./game_data/mythic_raid_leaderboard.js");
|
|
117
|
+
Object.defineProperty(exports, "mythicRaidLeaderboard", { enumerable: true, get: function () { return mythic_raid_leaderboard_js_1.mythicRaidLeaderboard; } });
|
|
118
|
+
var neighborhood_js_1 = require("./game_data/neighborhood.js");
|
|
119
|
+
Object.defineProperty(exports, "neighborhood", { enumerable: true, get: function () { return neighborhood_js_1.neighborhood; } });
|
|
120
|
+
Object.defineProperty(exports, "neighborhoodMap", { enumerable: true, get: function () { return neighborhood_js_1.neighborhoodMap; } });
|
|
121
|
+
Object.defineProperty(exports, "neighborhoodMaps", { enumerable: true, get: function () { return neighborhood_js_1.neighborhoodMaps; } });
|
|
122
|
+
var pet_js_1 = require("./game_data/pet.js");
|
|
123
|
+
Object.defineProperty(exports, "pet", { enumerable: true, get: function () { return pet_js_1.pet; } });
|
|
124
|
+
Object.defineProperty(exports, "petAbilities", { enumerable: true, get: function () { return pet_js_1.petAbilities; } });
|
|
125
|
+
Object.defineProperty(exports, "petAbility", { enumerable: true, get: function () { return pet_js_1.petAbility; } });
|
|
126
|
+
Object.defineProperty(exports, "petAbilityMedia", { enumerable: true, get: function () { return pet_js_1.petAbilityMedia; } });
|
|
127
|
+
Object.defineProperty(exports, "petMedia", { enumerable: true, get: function () { return pet_js_1.petMedia; } });
|
|
128
|
+
Object.defineProperty(exports, "pets", { enumerable: true, get: function () { return pet_js_1.pets; } });
|
|
129
|
+
var playable_class_js_1 = require("./game_data/playable_class.js");
|
|
130
|
+
Object.defineProperty(exports, "playableClass", { enumerable: true, get: function () { return playable_class_js_1.playableClass; } });
|
|
131
|
+
Object.defineProperty(exports, "playableClasses", { enumerable: true, get: function () { return playable_class_js_1.playableClasses; } });
|
|
132
|
+
Object.defineProperty(exports, "playableClassMedia", { enumerable: true, get: function () { return playable_class_js_1.playableClassMedia; } });
|
|
133
|
+
Object.defineProperty(exports, "playableClassPvpTalentSlots", { enumerable: true, get: function () { return playable_class_js_1.playableClassPvpTalentSlots; } });
|
|
134
|
+
var playable_specialization_js_1 = require("./game_data/playable_specialization.js");
|
|
135
|
+
Object.defineProperty(exports, "playableSpecialization", { enumerable: true, get: function () { return playable_specialization_js_1.playableSpecialization; } });
|
|
136
|
+
Object.defineProperty(exports, "playableSpecializationMedia", { enumerable: true, get: function () { return playable_specialization_js_1.playableSpecializationMedia; } });
|
|
137
|
+
Object.defineProperty(exports, "playableSpecializations", { enumerable: true, get: function () { return playable_specialization_js_1.playableSpecializations; } });
|
|
138
|
+
var playable_race_js_1 = require("./game_data/playable_race.js");
|
|
139
|
+
Object.defineProperty(exports, "playableRace", { enumerable: true, get: function () { return playable_race_js_1.playableRace; } });
|
|
140
|
+
Object.defineProperty(exports, "playableRaces", { enumerable: true, get: function () { return playable_race_js_1.playableRaces; } });
|
|
141
|
+
var power_type_js_1 = require("./game_data/power_type.js");
|
|
142
|
+
Object.defineProperty(exports, "powerType", { enumerable: true, get: function () { return power_type_js_1.powerType; } });
|
|
143
|
+
Object.defineProperty(exports, "powerTypes", { enumerable: true, get: function () { return power_type_js_1.powerTypes; } });
|
|
144
|
+
var profession_js_1 = require("./game_data/profession.js");
|
|
145
|
+
Object.defineProperty(exports, "profession", { enumerable: true, get: function () { return profession_js_1.profession; } });
|
|
146
|
+
Object.defineProperty(exports, "professionMedia", { enumerable: true, get: function () { return profession_js_1.professionMedia; } });
|
|
147
|
+
Object.defineProperty(exports, "professionRecipie", { enumerable: true, get: function () { return profession_js_1.professionRecipie; } });
|
|
148
|
+
Object.defineProperty(exports, "professionRecipieMedia", { enumerable: true, get: function () { return profession_js_1.professionRecipieMedia; } });
|
|
149
|
+
Object.defineProperty(exports, "professions", { enumerable: true, get: function () { return profession_js_1.professions; } });
|
|
150
|
+
Object.defineProperty(exports, "professionSkillTier", { enumerable: true, get: function () { return profession_js_1.professionSkillTier; } });
|
|
151
|
+
var pvp_season_js_1 = require("./game_data/pvp_season.js");
|
|
152
|
+
Object.defineProperty(exports, "pvpSeason", { enumerable: true, get: function () { return pvp_season_js_1.pvpSeason; } });
|
|
153
|
+
Object.defineProperty(exports, "pvpSeasonLeaderboard", { enumerable: true, get: function () { return pvp_season_js_1.pvpSeasonLeaderboard; } });
|
|
154
|
+
Object.defineProperty(exports, "pvpSeasonLeaderboards", { enumerable: true, get: function () { return pvp_season_js_1.pvpSeasonLeaderboards; } });
|
|
155
|
+
Object.defineProperty(exports, "pvpSeasonRewards", { enumerable: true, get: function () { return pvp_season_js_1.pvpSeasonRewards; } });
|
|
156
|
+
Object.defineProperty(exports, "pvpSeasons", { enumerable: true, get: function () { return pvp_season_js_1.pvpSeasons; } });
|
|
157
|
+
var pvp_tier_js_1 = require("./game_data/pvp_tier.js");
|
|
158
|
+
Object.defineProperty(exports, "pvpTier", { enumerable: true, get: function () { return pvp_tier_js_1.pvpTier; } });
|
|
159
|
+
Object.defineProperty(exports, "pvpTierMedia", { enumerable: true, get: function () { return pvp_tier_js_1.pvpTierMedia; } });
|
|
160
|
+
Object.defineProperty(exports, "pvpTiers", { enumerable: true, get: function () { return pvp_tier_js_1.pvpTiers; } });
|
|
161
|
+
var quest_js_1 = require("./game_data/quest.js");
|
|
162
|
+
Object.defineProperty(exports, "quest", { enumerable: true, get: function () { return quest_js_1.quest; } });
|
|
163
|
+
Object.defineProperty(exports, "questArea", { enumerable: true, get: function () { return quest_js_1.questArea; } });
|
|
164
|
+
Object.defineProperty(exports, "questAreas", { enumerable: true, get: function () { return quest_js_1.questAreas; } });
|
|
165
|
+
Object.defineProperty(exports, "questCategories", { enumerable: true, get: function () { return quest_js_1.questCategories; } });
|
|
166
|
+
Object.defineProperty(exports, "questCategory", { enumerable: true, get: function () { return quest_js_1.questCategory; } });
|
|
167
|
+
Object.defineProperty(exports, "quests", { enumerable: true, get: function () { return quest_js_1.quests; } });
|
|
168
|
+
Object.defineProperty(exports, "questType", { enumerable: true, get: function () { return quest_js_1.questType; } });
|
|
169
|
+
Object.defineProperty(exports, "questTypes", { enumerable: true, get: function () { return quest_js_1.questTypes; } });
|
|
170
|
+
var realm_js_1 = require("./game_data/realm.js");
|
|
171
|
+
Object.defineProperty(exports, "realm", { enumerable: true, get: function () { return realm_js_1.realm; } });
|
|
172
|
+
Object.defineProperty(exports, "realms", { enumerable: true, get: function () { return realm_js_1.realms; } });
|
|
173
|
+
Object.defineProperty(exports, "searchRealm", { enumerable: true, get: function () { return realm_js_1.searchRealm; } });
|
|
174
|
+
var region_js_1 = require("./game_data/region.js");
|
|
175
|
+
Object.defineProperty(exports, "region", { enumerable: true, get: function () { return region_js_1.region; } });
|
|
176
|
+
Object.defineProperty(exports, "regions", { enumerable: true, get: function () { return region_js_1.regions; } });
|
|
177
|
+
var reputations_js_1 = require("./game_data/reputations.js");
|
|
178
|
+
Object.defineProperty(exports, "reputationFaction", { enumerable: true, get: function () { return reputations_js_1.reputationFaction; } });
|
|
179
|
+
Object.defineProperty(exports, "reputationFactions", { enumerable: true, get: function () { return reputations_js_1.reputationFactions; } });
|
|
180
|
+
Object.defineProperty(exports, "reputationTier", { enumerable: true, get: function () { return reputations_js_1.reputationTier; } });
|
|
181
|
+
Object.defineProperty(exports, "reputationTiers", { enumerable: true, get: function () { return reputations_js_1.reputationTiers; } });
|
|
182
|
+
var spell_js_1 = require("./game_data/spell.js");
|
|
183
|
+
Object.defineProperty(exports, "searchSpell", { enumerable: true, get: function () { return spell_js_1.searchSpell; } });
|
|
184
|
+
Object.defineProperty(exports, "spell", { enumerable: true, get: function () { return spell_js_1.spell; } });
|
|
185
|
+
Object.defineProperty(exports, "spellMedia", { enumerable: true, get: function () { return spell_js_1.spellMedia; } });
|
|
186
|
+
var title_js_1 = require("./game_data/title.js");
|
|
187
|
+
Object.defineProperty(exports, "title", { enumerable: true, get: function () { return title_js_1.title; } });
|
|
188
|
+
Object.defineProperty(exports, "titles", { enumerable: true, get: function () { return title_js_1.titles; } });
|
|
189
|
+
var toy_js_1 = require("./game_data/toy.js");
|
|
190
|
+
Object.defineProperty(exports, "toy", { enumerable: true, get: function () { return toy_js_1.toy; } });
|
|
191
|
+
Object.defineProperty(exports, "toys", { enumerable: true, get: function () { return toy_js_1.toys; } });
|
|
192
|
+
var talent_js_1 = require("./game_data/talent.js");
|
|
193
|
+
Object.defineProperty(exports, "pvpTalent", { enumerable: true, get: function () { return talent_js_1.pvpTalent; } });
|
|
194
|
+
Object.defineProperty(exports, "pvpTalents", { enumerable: true, get: function () { return talent_js_1.pvpTalents; } });
|
|
195
|
+
Object.defineProperty(exports, "talent", { enumerable: true, get: function () { return talent_js_1.talent; } });
|
|
196
|
+
Object.defineProperty(exports, "talents", { enumerable: true, get: function () { return talent_js_1.talents; } });
|
|
197
|
+
Object.defineProperty(exports, "talentTree", { enumerable: true, get: function () { return talent_js_1.talentTree; } });
|
|
198
|
+
Object.defineProperty(exports, "talentTreeNodes", { enumerable: true, get: function () { return talent_js_1.talentTreeNodes; } });
|
|
199
|
+
Object.defineProperty(exports, "talentTrees", { enumerable: true, get: function () { return talent_js_1.talentTrees; } });
|
|
200
|
+
var tech_talent_js_1 = require("./game_data/tech_talent.js");
|
|
201
|
+
Object.defineProperty(exports, "techTalent", { enumerable: true, get: function () { return tech_talent_js_1.techTalent; } });
|
|
202
|
+
Object.defineProperty(exports, "techTalentMedia", { enumerable: true, get: function () { return tech_talent_js_1.techTalentMedia; } });
|
|
203
|
+
Object.defineProperty(exports, "techTalents", { enumerable: true, get: function () { return tech_talent_js_1.techTalents; } });
|
|
204
|
+
Object.defineProperty(exports, "techTalentTree", { enumerable: true, get: function () { return tech_talent_js_1.techTalentTree; } });
|
|
205
|
+
Object.defineProperty(exports, "techTalentTrees", { enumerable: true, get: function () { return tech_talent_js_1.techTalentTrees; } });
|
|
206
|
+
var token_js_1 = require("./game_data/token.js");
|
|
207
|
+
Object.defineProperty(exports, "token", { enumerable: true, get: function () { return token_js_1.token; } });
|
|
208
|
+
// Start Profile APIs
|
|
209
|
+
var character_achievements_js_1 = require("./profile/character_achievements.js");
|
|
210
|
+
Object.defineProperty(exports, "characterAchievementStatistics", { enumerable: true, get: function () { return character_achievements_js_1.characterAchievementStatistics; } });
|
|
211
|
+
Object.defineProperty(exports, "characterAchievementSummary", { enumerable: true, get: function () { return character_achievements_js_1.characterAchievementSummary; } });
|
|
212
|
+
var account_profile_js_1 = require("./profile/account_profile.js");
|
|
213
|
+
Object.defineProperty(exports, "accountCollectionsIndex", { enumerable: true, get: function () { return account_profile_js_1.accountCollectionsIndex; } });
|
|
214
|
+
Object.defineProperty(exports, "accountDecorCollection", { enumerable: true, get: function () { return account_profile_js_1.accountDecorCollection; } });
|
|
215
|
+
Object.defineProperty(exports, "accountHeirloomsCollection", { enumerable: true, get: function () { return account_profile_js_1.accountHeirloomsCollection; } });
|
|
216
|
+
Object.defineProperty(exports, "accountMountsCollection", { enumerable: true, get: function () { return account_profile_js_1.accountMountsCollection; } });
|
|
217
|
+
Object.defineProperty(exports, "accountPetsCollection", { enumerable: true, get: function () { return account_profile_js_1.accountPetsCollection; } });
|
|
218
|
+
Object.defineProperty(exports, "accountProfileSummary", { enumerable: true, get: function () { return account_profile_js_1.accountProfileSummary; } });
|
|
219
|
+
Object.defineProperty(exports, "accountToysCollection", { enumerable: true, get: function () { return account_profile_js_1.accountToysCollection; } });
|
|
220
|
+
Object.defineProperty(exports, "accountTransmogsCollection", { enumerable: true, get: function () { return account_profile_js_1.accountTransmogsCollection; } });
|
|
221
|
+
Object.defineProperty(exports, "protectedCharacterProfile", { enumerable: true, get: function () { return account_profile_js_1.protectedCharacterProfile; } });
|
|
222
|
+
var character_appearance_js_1 = require("./profile/character_appearance.js");
|
|
223
|
+
Object.defineProperty(exports, "characterAppearanceSummary", { enumerable: true, get: function () { return character_appearance_js_1.characterAppearanceSummary; } });
|
|
224
|
+
var character_collections_js_1 = require("./profile/character_collections.js");
|
|
225
|
+
Object.defineProperty(exports, "characterCollectionDecor", { enumerable: true, get: function () { return character_collections_js_1.characterCollectionDecor; } });
|
|
226
|
+
Object.defineProperty(exports, "characterCollectionHeirlooms", { enumerable: true, get: function () { return character_collections_js_1.characterCollectionHeirlooms; } });
|
|
227
|
+
Object.defineProperty(exports, "characterCollectionMounts", { enumerable: true, get: function () { return character_collections_js_1.characterCollectionMounts; } });
|
|
228
|
+
Object.defineProperty(exports, "characterCollectionPets", { enumerable: true, get: function () { return character_collections_js_1.characterCollectionPets; } });
|
|
229
|
+
Object.defineProperty(exports, "characterCollectionToys", { enumerable: true, get: function () { return character_collections_js_1.characterCollectionToys; } });
|
|
230
|
+
Object.defineProperty(exports, "characterCollectionTransmogs", { enumerable: true, get: function () { return character_collections_js_1.characterCollectionTransmogs; } });
|
|
231
|
+
Object.defineProperty(exports, "characterCollectionTypes", { enumerable: true, get: function () { return character_collections_js_1.characterCollectionTypes; } });
|
|
232
|
+
var character_house_js_1 = require("./profile/character_house.js");
|
|
233
|
+
Object.defineProperty(exports, "characterHouse", { enumerable: true, get: function () { return character_house_js_1.characterHouse; } });
|
|
234
|
+
var character_encounters_js_1 = require("./profile/character_encounters.js");
|
|
235
|
+
Object.defineProperty(exports, "characterEncounterDungeons", { enumerable: true, get: function () { return character_encounters_js_1.characterEncounterDungeons; } });
|
|
236
|
+
Object.defineProperty(exports, "characterEncounterRaids", { enumerable: true, get: function () { return character_encounters_js_1.characterEncounterRaids; } });
|
|
237
|
+
Object.defineProperty(exports, "characterEncounters", { enumerable: true, get: function () { return character_encounters_js_1.characterEncounters; } });
|
|
238
|
+
var character_equipment_js_1 = require("./profile/character_equipment.js");
|
|
239
|
+
Object.defineProperty(exports, "characterEquipments", { enumerable: true, get: function () { return character_equipment_js_1.characterEquipments; } });
|
|
240
|
+
var character_hunter_pets_js_1 = require("./profile/character_hunter_pets.js");
|
|
241
|
+
Object.defineProperty(exports, "characterHunterPets", { enumerable: true, get: function () { return character_hunter_pets_js_1.characterHunterPets; } });
|
|
242
|
+
var character_media_js_1 = require("./profile/character_media.js");
|
|
243
|
+
Object.defineProperty(exports, "characterMedia", { enumerable: true, get: function () { return character_media_js_1.characterMedia; } });
|
|
244
|
+
var character_mythic_keystone_profile_js_1 = require("./profile/character_mythic_keystone_profile.js");
|
|
245
|
+
Object.defineProperty(exports, "characterMythicKeystoneProfile", { enumerable: true, get: function () { return character_mythic_keystone_profile_js_1.characterMythicKeystoneProfile; } });
|
|
246
|
+
Object.defineProperty(exports, "characterMythicKeystoneSeasonDetails", { enumerable: true, get: function () { return character_mythic_keystone_profile_js_1.characterMythicKeystoneSeasonDetails; } });
|
|
247
|
+
var character_professions_js_1 = require("./profile/character_professions.js");
|
|
248
|
+
Object.defineProperty(exports, "characterProfessions", { enumerable: true, get: function () { return character_professions_js_1.characterProfessions; } });
|
|
249
|
+
var character_profile_js_1 = require("./profile/character_profile.js");
|
|
250
|
+
Object.defineProperty(exports, "characterProfile", { enumerable: true, get: function () { return character_profile_js_1.characterProfile; } });
|
|
251
|
+
Object.defineProperty(exports, "characterProfileStatus", { enumerable: true, get: function () { return character_profile_js_1.characterProfileStatus; } });
|
|
252
|
+
var character_pvp_js_1 = require("./profile/character_pvp.js");
|
|
253
|
+
Object.defineProperty(exports, "characterPvpBracketStatistics", { enumerable: true, get: function () { return character_pvp_js_1.characterPvpBracketStatistics; } });
|
|
254
|
+
Object.defineProperty(exports, "characterPvpSummary", { enumerable: true, get: function () { return character_pvp_js_1.characterPvpSummary; } });
|
|
255
|
+
var character_quests_js_1 = require("./profile/character_quests.js");
|
|
256
|
+
Object.defineProperty(exports, "characterCompletedQuests", { enumerable: true, get: function () { return character_quests_js_1.characterCompletedQuests; } });
|
|
257
|
+
Object.defineProperty(exports, "characterQuests", { enumerable: true, get: function () { return character_quests_js_1.characterQuests; } });
|
|
258
|
+
var character_reputations_js_1 = require("./profile/character_reputations.js");
|
|
259
|
+
Object.defineProperty(exports, "characterReputations", { enumerable: true, get: function () { return character_reputations_js_1.characterReputations; } });
|
|
260
|
+
var character_soulbinds_js_1 = require("./profile/character_soulbinds.js");
|
|
261
|
+
Object.defineProperty(exports, "characterSoulbinds", { enumerable: true, get: function () { return character_soulbinds_js_1.characterSoulbinds; } });
|
|
262
|
+
var character_specializations_js_1 = require("./profile/character_specializations.js");
|
|
263
|
+
Object.defineProperty(exports, "characterSpecializations", { enumerable: true, get: function () { return character_specializations_js_1.characterSpecializations; } });
|
|
264
|
+
var character_statistics_js_1 = require("./profile/character_statistics.js");
|
|
265
|
+
Object.defineProperty(exports, "characterStatistics", { enumerable: true, get: function () { return character_statistics_js_1.characterStatistics; } });
|
|
266
|
+
var character_titles_js_1 = require("./profile/character_titles.js");
|
|
267
|
+
Object.defineProperty(exports, "characterTitles", { enumerable: true, get: function () { return character_titles_js_1.characterTitles; } });
|
|
268
|
+
var guild_js_1 = require("./profile/guild.js");
|
|
269
|
+
Object.defineProperty(exports, "guild", { enumerable: true, get: function () { return guild_js_1.guild; } });
|
|
270
|
+
Object.defineProperty(exports, "guildAchievements", { enumerable: true, get: function () { return guild_js_1.guildAchievements; } });
|
|
271
|
+
Object.defineProperty(exports, "guildActivity", { enumerable: true, get: function () { return guild_js_1.guildActivity; } });
|
|
272
|
+
Object.defineProperty(exports, "guildRoster", { enumerable: true, get: function () { return guild_js_1.guildRoster; } });
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module provides the WoW Account Profile API. These endpoints require a user access token with the
|
|
3
|
+
* `wow.profile` scope, acquired via the authorization code flow: use `client.forUser(token).wow.*`.
|
|
4
|
+
*/
|
|
5
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
6
|
+
import type { Href, KeyNameId, LinkSelfHref, TypeName } from "../../shared/index.js";
|
|
7
|
+
import type { CollectedHeirloom, CollectedPet, CollectedToy, DecorItem } from "./character_collections.js";
|
|
8
|
+
export interface AccountCharacter {
|
|
9
|
+
character: Href;
|
|
10
|
+
protected_character: Href;
|
|
11
|
+
name: string;
|
|
12
|
+
id: number;
|
|
13
|
+
realm: KeyNameId & {
|
|
14
|
+
slug: string;
|
|
15
|
+
};
|
|
16
|
+
playable_class: KeyNameId;
|
|
17
|
+
playable_race: KeyNameId;
|
|
18
|
+
gender: TypeName;
|
|
19
|
+
faction: TypeName;
|
|
20
|
+
level: number;
|
|
21
|
+
}
|
|
22
|
+
export interface AccountProfileSummary extends LinkSelfHref {
|
|
23
|
+
id: number;
|
|
24
|
+
wow_accounts: {
|
|
25
|
+
id: number;
|
|
26
|
+
characters: AccountCharacter[];
|
|
27
|
+
}[];
|
|
28
|
+
collections: Href;
|
|
29
|
+
}
|
|
30
|
+
export interface ProtectedCharacterProfile extends LinkSelfHref {
|
|
31
|
+
id: number;
|
|
32
|
+
name: string;
|
|
33
|
+
money: number;
|
|
34
|
+
character: {
|
|
35
|
+
key: Href;
|
|
36
|
+
name: string;
|
|
37
|
+
id: number;
|
|
38
|
+
realm: KeyNameId & {
|
|
39
|
+
slug: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
protected_stats: {
|
|
43
|
+
total_number_deaths: number;
|
|
44
|
+
total_gold_gained: number;
|
|
45
|
+
total_gold_lost: number;
|
|
46
|
+
total_item_value_gained: number;
|
|
47
|
+
level_number_deaths: number;
|
|
48
|
+
level_gold_gained: number;
|
|
49
|
+
level_gold_lost: number;
|
|
50
|
+
level_item_value_gained: number;
|
|
51
|
+
};
|
|
52
|
+
position: {
|
|
53
|
+
zone: {
|
|
54
|
+
name: string;
|
|
55
|
+
id: number;
|
|
56
|
+
};
|
|
57
|
+
map: {
|
|
58
|
+
name: string;
|
|
59
|
+
id: number;
|
|
60
|
+
};
|
|
61
|
+
x: number;
|
|
62
|
+
y: number;
|
|
63
|
+
z: number;
|
|
64
|
+
facing: number;
|
|
65
|
+
};
|
|
66
|
+
bind_position: {
|
|
67
|
+
zone: {
|
|
68
|
+
name: string;
|
|
69
|
+
id: number;
|
|
70
|
+
};
|
|
71
|
+
map: {
|
|
72
|
+
name: string;
|
|
73
|
+
id: number;
|
|
74
|
+
};
|
|
75
|
+
x: number;
|
|
76
|
+
y: number;
|
|
77
|
+
z: number;
|
|
78
|
+
facing: number;
|
|
79
|
+
};
|
|
80
|
+
wow_account: number;
|
|
81
|
+
}
|
|
82
|
+
export interface AccountCollectionsIndex extends LinkSelfHref {
|
|
83
|
+
pets: Href;
|
|
84
|
+
mounts: Href;
|
|
85
|
+
heirlooms: Href;
|
|
86
|
+
toys: Href;
|
|
87
|
+
transmogs: Href;
|
|
88
|
+
decor?: Href;
|
|
89
|
+
}
|
|
90
|
+
export interface AccountMount {
|
|
91
|
+
mount: KeyNameId;
|
|
92
|
+
is_favorite?: boolean;
|
|
93
|
+
is_useable?: boolean;
|
|
94
|
+
}
|
|
95
|
+
export interface AccountMountsCollection extends LinkSelfHref {
|
|
96
|
+
mounts: AccountMount[];
|
|
97
|
+
}
|
|
98
|
+
export interface AccountPetsCollection extends LinkSelfHref {
|
|
99
|
+
pets: CollectedPet[];
|
|
100
|
+
unlocked_battle_pet_slots: number;
|
|
101
|
+
}
|
|
102
|
+
export interface AccountToysCollection extends LinkSelfHref {
|
|
103
|
+
toys: CollectedToy[];
|
|
104
|
+
}
|
|
105
|
+
export interface AccountHeirloomsCollection extends LinkSelfHref {
|
|
106
|
+
heirlooms: CollectedHeirloom[];
|
|
107
|
+
}
|
|
108
|
+
export interface AccountTransmogsCollection extends LinkSelfHref {
|
|
109
|
+
appearance_sets: KeyNameId[];
|
|
110
|
+
slots: {
|
|
111
|
+
slot: TypeName;
|
|
112
|
+
appearances: {
|
|
113
|
+
key: Href;
|
|
114
|
+
id: number;
|
|
115
|
+
}[];
|
|
116
|
+
}[];
|
|
117
|
+
}
|
|
118
|
+
export interface AccountDecorCollection extends LinkSelfHref {
|
|
119
|
+
decor_collected: DecorItem[];
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Returns a profile summary for an account, including its WoW accounts and characters.
|
|
123
|
+
* Requires a user access token (client.forUser(token)).
|
|
124
|
+
*
|
|
125
|
+
* @returns A promise that resolves to an object representing the account profile summary.
|
|
126
|
+
*/
|
|
127
|
+
export declare function accountProfileSummary(ctx: ApiContext): Promise<AccountProfileSummary>;
|
|
128
|
+
/**
|
|
129
|
+
* Returns a protected profile summary for a character (money, deaths, position, ...).
|
|
130
|
+
* Requires a user access token (client.forUser(token)).
|
|
131
|
+
*
|
|
132
|
+
* @param realmId - The ID of the character's realm.
|
|
133
|
+
* @param characterId - The ID of the character.
|
|
134
|
+
* @returns A promise that resolves to an object representing the protected character profile.
|
|
135
|
+
*/
|
|
136
|
+
export declare function protectedCharacterProfile(ctx: ApiContext, realmId: number, characterId: number): Promise<ProtectedCharacterProfile>;
|
|
137
|
+
/**
|
|
138
|
+
* Returns an index of collection types for an account.
|
|
139
|
+
* Requires a user access token (client.forUser(token)).
|
|
140
|
+
*
|
|
141
|
+
* @returns A promise that resolves to an object with links to the account's collections.
|
|
142
|
+
*/
|
|
143
|
+
export declare function accountCollectionsIndex(ctx: ApiContext): Promise<AccountCollectionsIndex>;
|
|
144
|
+
/**
|
|
145
|
+
* Returns the mounts collected by an account.
|
|
146
|
+
* Requires a user access token (client.forUser(token)).
|
|
147
|
+
*
|
|
148
|
+
* @returns A promise that resolves to an object representing the account's mounts.
|
|
149
|
+
*/
|
|
150
|
+
export declare function accountMountsCollection(ctx: ApiContext): Promise<AccountMountsCollection>;
|
|
151
|
+
/**
|
|
152
|
+
* Returns the battle pets collected by an account.
|
|
153
|
+
* Requires a user access token (client.forUser(token)).
|
|
154
|
+
*
|
|
155
|
+
* @returns A promise that resolves to an object representing the account's pets.
|
|
156
|
+
*/
|
|
157
|
+
export declare function accountPetsCollection(ctx: ApiContext): Promise<AccountPetsCollection>;
|
|
158
|
+
/**
|
|
159
|
+
* Returns the toys collected by an account.
|
|
160
|
+
* Requires a user access token (client.forUser(token)).
|
|
161
|
+
*
|
|
162
|
+
* @returns A promise that resolves to an object representing the account's toys.
|
|
163
|
+
*/
|
|
164
|
+
export declare function accountToysCollection(ctx: ApiContext): Promise<AccountToysCollection>;
|
|
165
|
+
/**
|
|
166
|
+
* Returns the heirlooms collected by an account.
|
|
167
|
+
* Requires a user access token (client.forUser(token)).
|
|
168
|
+
*
|
|
169
|
+
* @returns A promise that resolves to an object representing the account's heirlooms.
|
|
170
|
+
*/
|
|
171
|
+
export declare function accountHeirloomsCollection(ctx: ApiContext): Promise<AccountHeirloomsCollection>;
|
|
172
|
+
/**
|
|
173
|
+
* Returns the transmog appearances and sets collected by an account.
|
|
174
|
+
* Requires a user access token (client.forUser(token)).
|
|
175
|
+
*
|
|
176
|
+
* @returns A promise that resolves to an object representing the account's transmogs.
|
|
177
|
+
*/
|
|
178
|
+
export declare function accountTransmogsCollection(ctx: ApiContext): Promise<AccountTransmogsCollection>;
|
|
179
|
+
/**
|
|
180
|
+
* Returns the housing decor collected by an account.
|
|
181
|
+
* Requires a user access token (client.forUser(token)).
|
|
182
|
+
*
|
|
183
|
+
* @returns A promise that resolves to an object representing the account's decor.
|
|
184
|
+
*/
|
|
185
|
+
export declare function accountDecorCollection(ctx: ApiContext): Promise<AccountDecorCollection>;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This module provides the WoW Account Profile API. These endpoints require a user access token with the
|
|
4
|
+
* `wow.profile` scope, acquired via the authorization code flow: use `client.forUser(token).wow.*`.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.accountProfileSummary = accountProfileSummary;
|
|
8
|
+
exports.protectedCharacterProfile = protectedCharacterProfile;
|
|
9
|
+
exports.accountCollectionsIndex = accountCollectionsIndex;
|
|
10
|
+
exports.accountMountsCollection = accountMountsCollection;
|
|
11
|
+
exports.accountPetsCollection = accountPetsCollection;
|
|
12
|
+
exports.accountToysCollection = accountToysCollection;
|
|
13
|
+
exports.accountHeirloomsCollection = accountHeirloomsCollection;
|
|
14
|
+
exports.accountTransmogsCollection = accountTransmogsCollection;
|
|
15
|
+
exports.accountDecorCollection = accountDecorCollection;
|
|
16
|
+
/**
|
|
17
|
+
* Returns a profile summary for an account, including its WoW accounts and characters.
|
|
18
|
+
* Requires a user access token (client.forUser(token)).
|
|
19
|
+
*
|
|
20
|
+
* @returns A promise that resolves to an object representing the account profile summary.
|
|
21
|
+
*/
|
|
22
|
+
async function accountProfileSummary(ctx) {
|
|
23
|
+
return await ctx.request({
|
|
24
|
+
method: "GET",
|
|
25
|
+
url: "/profile/user/wow",
|
|
26
|
+
namespace: "profile",
|
|
27
|
+
auth: "user",
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Returns a protected profile summary for a character (money, deaths, position, ...).
|
|
32
|
+
* Requires a user access token (client.forUser(token)).
|
|
33
|
+
*
|
|
34
|
+
* @param realmId - The ID of the character's realm.
|
|
35
|
+
* @param characterId - The ID of the character.
|
|
36
|
+
* @returns A promise that resolves to an object representing the protected character profile.
|
|
37
|
+
*/
|
|
38
|
+
async function protectedCharacterProfile(ctx, realmId, characterId) {
|
|
39
|
+
return await ctx.request({
|
|
40
|
+
method: "GET",
|
|
41
|
+
url: `/profile/user/wow/protected-character/${realmId}-${characterId}`,
|
|
42
|
+
namespace: "profile",
|
|
43
|
+
auth: "user",
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Returns an index of collection types for an account.
|
|
48
|
+
* Requires a user access token (client.forUser(token)).
|
|
49
|
+
*
|
|
50
|
+
* @returns A promise that resolves to an object with links to the account's collections.
|
|
51
|
+
*/
|
|
52
|
+
async function accountCollectionsIndex(ctx) {
|
|
53
|
+
return await ctx.request({
|
|
54
|
+
method: "GET",
|
|
55
|
+
url: "/profile/user/wow/collections",
|
|
56
|
+
namespace: "profile",
|
|
57
|
+
auth: "user",
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Returns the mounts collected by an account.
|
|
62
|
+
* Requires a user access token (client.forUser(token)).
|
|
63
|
+
*
|
|
64
|
+
* @returns A promise that resolves to an object representing the account's mounts.
|
|
65
|
+
*/
|
|
66
|
+
async function accountMountsCollection(ctx) {
|
|
67
|
+
return await ctx.request({
|
|
68
|
+
method: "GET",
|
|
69
|
+
url: "/profile/user/wow/collections/mounts",
|
|
70
|
+
namespace: "profile",
|
|
71
|
+
auth: "user",
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Returns the battle pets collected by an account.
|
|
76
|
+
* Requires a user access token (client.forUser(token)).
|
|
77
|
+
*
|
|
78
|
+
* @returns A promise that resolves to an object representing the account's pets.
|
|
79
|
+
*/
|
|
80
|
+
async function accountPetsCollection(ctx) {
|
|
81
|
+
return await ctx.request({
|
|
82
|
+
method: "GET",
|
|
83
|
+
url: "/profile/user/wow/collections/pets",
|
|
84
|
+
namespace: "profile",
|
|
85
|
+
auth: "user",
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Returns the toys collected by an account.
|
|
90
|
+
* Requires a user access token (client.forUser(token)).
|
|
91
|
+
*
|
|
92
|
+
* @returns A promise that resolves to an object representing the account's toys.
|
|
93
|
+
*/
|
|
94
|
+
async function accountToysCollection(ctx) {
|
|
95
|
+
return await ctx.request({
|
|
96
|
+
method: "GET",
|
|
97
|
+
url: "/profile/user/wow/collections/toys",
|
|
98
|
+
namespace: "profile",
|
|
99
|
+
auth: "user",
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Returns the heirlooms collected by an account.
|
|
104
|
+
* Requires a user access token (client.forUser(token)).
|
|
105
|
+
*
|
|
106
|
+
* @returns A promise that resolves to an object representing the account's heirlooms.
|
|
107
|
+
*/
|
|
108
|
+
async function accountHeirloomsCollection(ctx) {
|
|
109
|
+
return await ctx.request({
|
|
110
|
+
method: "GET",
|
|
111
|
+
url: "/profile/user/wow/collections/heirlooms",
|
|
112
|
+
namespace: "profile",
|
|
113
|
+
auth: "user",
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Returns the transmog appearances and sets collected by an account.
|
|
118
|
+
* Requires a user access token (client.forUser(token)).
|
|
119
|
+
*
|
|
120
|
+
* @returns A promise that resolves to an object representing the account's transmogs.
|
|
121
|
+
*/
|
|
122
|
+
async function accountTransmogsCollection(ctx) {
|
|
123
|
+
return await ctx.request({
|
|
124
|
+
method: "GET",
|
|
125
|
+
url: "/profile/user/wow/collections/transmogs",
|
|
126
|
+
namespace: "profile",
|
|
127
|
+
auth: "user",
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Returns the housing decor collected by an account.
|
|
132
|
+
* Requires a user access token (client.forUser(token)).
|
|
133
|
+
*
|
|
134
|
+
* @returns A promise that resolves to an object representing the account's decor.
|
|
135
|
+
*/
|
|
136
|
+
async function accountDecorCollection(ctx) {
|
|
137
|
+
return await ctx.request({
|
|
138
|
+
method: "GET",
|
|
139
|
+
url: "/profile/user/wow/collections/decor",
|
|
140
|
+
namespace: "profile",
|
|
141
|
+
auth: "user",
|
|
142
|
+
});
|
|
143
|
+
}
|