@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,150 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { Character, Href, KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
|
|
3
|
+
export interface GuildCrestRgba {
|
|
4
|
+
r: number;
|
|
5
|
+
g: number;
|
|
6
|
+
b: number;
|
|
7
|
+
a: number;
|
|
8
|
+
}
|
|
9
|
+
export interface CrestAsset {
|
|
10
|
+
id?: number;
|
|
11
|
+
media?: KeyId;
|
|
12
|
+
color: {
|
|
13
|
+
id: number;
|
|
14
|
+
rgba?: GuildCrestRgba;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface GuildReference {
|
|
18
|
+
key: Href;
|
|
19
|
+
name: string;
|
|
20
|
+
id: number;
|
|
21
|
+
realm: {
|
|
22
|
+
key: Href;
|
|
23
|
+
name: LocalizedString;
|
|
24
|
+
id: number;
|
|
25
|
+
slug: string;
|
|
26
|
+
};
|
|
27
|
+
faction: TypeName;
|
|
28
|
+
}
|
|
29
|
+
export interface Guild extends LinkSelfHref {
|
|
30
|
+
key?: Href;
|
|
31
|
+
id: number;
|
|
32
|
+
name: string;
|
|
33
|
+
faction: TypeName;
|
|
34
|
+
achievement_points?: number;
|
|
35
|
+
member_count?: number;
|
|
36
|
+
realm: {
|
|
37
|
+
key: Href;
|
|
38
|
+
name: LocalizedString;
|
|
39
|
+
id: number;
|
|
40
|
+
slug: string;
|
|
41
|
+
};
|
|
42
|
+
crest?: {
|
|
43
|
+
emblem: CrestAsset;
|
|
44
|
+
border: CrestAsset;
|
|
45
|
+
background: CrestAsset;
|
|
46
|
+
};
|
|
47
|
+
roster?: Href;
|
|
48
|
+
achievements?: Href;
|
|
49
|
+
created_timestamp?: number;
|
|
50
|
+
activity?: Href;
|
|
51
|
+
name_search: string;
|
|
52
|
+
}
|
|
53
|
+
export interface GuildActivity extends LinkSelfHref {
|
|
54
|
+
guild: GuildReference;
|
|
55
|
+
activities?: {
|
|
56
|
+
character_achievement?: {
|
|
57
|
+
character: Character;
|
|
58
|
+
achievement: KeyNameId;
|
|
59
|
+
};
|
|
60
|
+
encounter_completed?: {
|
|
61
|
+
encounter: KeyNameId;
|
|
62
|
+
mode: TypeName;
|
|
63
|
+
};
|
|
64
|
+
activity: {
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
67
|
+
timestamp: number;
|
|
68
|
+
}[];
|
|
69
|
+
}
|
|
70
|
+
export interface Critiera {
|
|
71
|
+
id: number;
|
|
72
|
+
amount?: number;
|
|
73
|
+
is_completed: boolean;
|
|
74
|
+
child_criteria?: Critiera[];
|
|
75
|
+
}
|
|
76
|
+
export interface GuildAchievements extends LinkSelfHref {
|
|
77
|
+
guild: GuildReference;
|
|
78
|
+
total_quantity: number;
|
|
79
|
+
total_points: number;
|
|
80
|
+
achievements: {
|
|
81
|
+
id: number;
|
|
82
|
+
achievement: KeyNameId;
|
|
83
|
+
criteria?: Critiera;
|
|
84
|
+
completed_timestamp?: number;
|
|
85
|
+
}[];
|
|
86
|
+
category_progress?: {
|
|
87
|
+
category: KeyNameId;
|
|
88
|
+
quantity: number;
|
|
89
|
+
points: number;
|
|
90
|
+
}[];
|
|
91
|
+
recent_events?: {
|
|
92
|
+
achievement: KeyNameId;
|
|
93
|
+
timestamp: number;
|
|
94
|
+
}[];
|
|
95
|
+
}
|
|
96
|
+
export interface GuildRosterMemberCharacter {
|
|
97
|
+
key: Href;
|
|
98
|
+
name: string;
|
|
99
|
+
id: number;
|
|
100
|
+
realm: {
|
|
101
|
+
key: Href;
|
|
102
|
+
id: number;
|
|
103
|
+
slug: string;
|
|
104
|
+
};
|
|
105
|
+
level: number;
|
|
106
|
+
playable_class: KeyId;
|
|
107
|
+
playable_race: KeyId;
|
|
108
|
+
faction: {
|
|
109
|
+
type: string;
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
export interface GuildRoster extends LinkSelfHref {
|
|
113
|
+
guild: GuildReference;
|
|
114
|
+
members: {
|
|
115
|
+
character: GuildRosterMemberCharacter;
|
|
116
|
+
rank: number;
|
|
117
|
+
}[];
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Returns a single guild by its name and realm.
|
|
121
|
+
*
|
|
122
|
+
* @param realmSlug - The slug of the realm.
|
|
123
|
+
* @param nameSlug - The slug of the guild.
|
|
124
|
+
* @returns A promise that resolves to an object representing a single guild by its name and realm.
|
|
125
|
+
*/
|
|
126
|
+
export declare function guild(ctx: ApiContext, realmSlug: string, nameSlug: string): Promise<Guild>;
|
|
127
|
+
/**
|
|
128
|
+
* Returns a single guild's activity by name and realm.
|
|
129
|
+
*
|
|
130
|
+
* @param realmSlug - The slug of the realm.
|
|
131
|
+
* @param nameSlug - The slug of the guild.
|
|
132
|
+
* @returns A promise that resolves to an object representing a single guild's activity by its name and realm.
|
|
133
|
+
*/
|
|
134
|
+
export declare function guildActivity(ctx: ApiContext, realmSlug: string, nameSlug: string): Promise<GuildActivity>;
|
|
135
|
+
/**
|
|
136
|
+
* Returns a single guild's achievements by name and realm.
|
|
137
|
+
*
|
|
138
|
+
* @param realmSlug - The slug of the realm.
|
|
139
|
+
* @param nameSlug - The slug of the guild.
|
|
140
|
+
* @returns A promise that resolves to an object representing a single guild's achievements by its name and realm.
|
|
141
|
+
*/
|
|
142
|
+
export declare function guildAchievements(ctx: ApiContext, realmSlug: string, nameSlug: string): Promise<GuildAchievements>;
|
|
143
|
+
/**
|
|
144
|
+
* Returns a single guild's roster by its name and realm.
|
|
145
|
+
*
|
|
146
|
+
* @param realmSlug - The slug of the realm.
|
|
147
|
+
* @param nameSlug - The slug of the guild.
|
|
148
|
+
* @returns A promise that resolves to an object representing a single guild's roster by its name and realm.
|
|
149
|
+
*/
|
|
150
|
+
export declare function guildRoster(ctx: ApiContext, realmSlug: string, nameSlug: string): Promise<GuildRoster>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a single guild by its name and realm.
|
|
3
|
+
*
|
|
4
|
+
* @param realmSlug - The slug of the realm.
|
|
5
|
+
* @param nameSlug - The slug of the guild.
|
|
6
|
+
* @returns A promise that resolves to an object representing a single guild by its name and realm.
|
|
7
|
+
*/
|
|
8
|
+
export async function guild(ctx, realmSlug, nameSlug) {
|
|
9
|
+
return await ctx.request({
|
|
10
|
+
method: "GET",
|
|
11
|
+
url: `/data/wow/guild/${realmSlug}/${nameSlug}`,
|
|
12
|
+
namespace: "profile",
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Returns a single guild's activity by name and realm.
|
|
17
|
+
*
|
|
18
|
+
* @param realmSlug - The slug of the realm.
|
|
19
|
+
* @param nameSlug - The slug of the guild.
|
|
20
|
+
* @returns A promise that resolves to an object representing a single guild's activity by its name and realm.
|
|
21
|
+
*/
|
|
22
|
+
export async function guildActivity(ctx, realmSlug, nameSlug) {
|
|
23
|
+
return await ctx.request({
|
|
24
|
+
method: "GET",
|
|
25
|
+
url: `/data/wow/guild/${realmSlug}/${nameSlug}/activity`,
|
|
26
|
+
namespace: "profile",
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Returns a single guild's achievements by name and realm.
|
|
31
|
+
*
|
|
32
|
+
* @param realmSlug - The slug of the realm.
|
|
33
|
+
* @param nameSlug - The slug of the guild.
|
|
34
|
+
* @returns A promise that resolves to an object representing a single guild's achievements by its name and realm.
|
|
35
|
+
*/
|
|
36
|
+
export async function guildAchievements(ctx, realmSlug, nameSlug) {
|
|
37
|
+
return await ctx.request({
|
|
38
|
+
method: "GET",
|
|
39
|
+
url: `/data/wow/guild/${realmSlug}/${nameSlug}/achievements`,
|
|
40
|
+
namespace: "profile",
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns a single guild's roster by its name and realm.
|
|
45
|
+
*
|
|
46
|
+
* @param realmSlug - The slug of the realm.
|
|
47
|
+
* @param nameSlug - The slug of the guild.
|
|
48
|
+
* @returns A promise that resolves to an object representing a single guild's roster by its name and realm.
|
|
49
|
+
*/
|
|
50
|
+
export async function guildRoster(ctx, realmSlug, nameSlug) {
|
|
51
|
+
return await ctx.request({
|
|
52
|
+
method: "GET",
|
|
53
|
+
url: `/data/wow/guild/${realmSlug}/${nameSlug}/roster`,
|
|
54
|
+
namespace: "profile",
|
|
55
|
+
});
|
|
56
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ApiContext } from "../shared/index.js";
|
|
2
|
+
import type { Namespaces } from "../shared/index.js";
|
|
3
|
+
export interface SearchParameters {
|
|
4
|
+
searchFields?: Record<string | symbol, string | number>;
|
|
5
|
+
orderBy?: string;
|
|
6
|
+
page?: number;
|
|
7
|
+
pageSize?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface Search {
|
|
10
|
+
page: number;
|
|
11
|
+
pageSize: number;
|
|
12
|
+
maxPageSize: number;
|
|
13
|
+
pageCount: number;
|
|
14
|
+
resultCountCapped?: boolean;
|
|
15
|
+
results: unknown[];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Performs a search.
|
|
19
|
+
*
|
|
20
|
+
* @param SearchParameters - Object containing search parameters.
|
|
21
|
+
* @returns A promise that resolves to an object representing details about the search.
|
|
22
|
+
*/
|
|
23
|
+
export declare function search(ctx: ApiContext, url: string, namespace: Namespaces, searchParameters: SearchParameters): Promise<Search>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Performs a search.
|
|
3
|
+
*
|
|
4
|
+
* @param SearchParameters - Object containing search parameters.
|
|
5
|
+
* @returns A promise that resolves to an object representing details about the search.
|
|
6
|
+
*/
|
|
7
|
+
export async function search(ctx, url, namespace, searchParameters) {
|
|
8
|
+
const searchFields = searchParameters.searchFields
|
|
9
|
+
? Object.fromEntries(Object.entries(searchParameters.searchFields).map(([key, value]) => [key, value.toString()]))
|
|
10
|
+
: undefined;
|
|
11
|
+
const qs = {
|
|
12
|
+
...searchFields,
|
|
13
|
+
};
|
|
14
|
+
if (searchParameters.orderBy) {
|
|
15
|
+
qs.orderby = searchParameters.orderBy;
|
|
16
|
+
}
|
|
17
|
+
if (searchParameters.page !== undefined) {
|
|
18
|
+
qs._page = searchParameters.page;
|
|
19
|
+
}
|
|
20
|
+
if (searchParameters.pageSize !== undefined) {
|
|
21
|
+
qs._pageSize = searchParameters.pageSize;
|
|
22
|
+
}
|
|
23
|
+
return await ctx.request({
|
|
24
|
+
method: "GET",
|
|
25
|
+
url: `/data/wow/search${url}`,
|
|
26
|
+
qs,
|
|
27
|
+
namespace,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export type { Achievement, AchievementCategories, AchievementCategory, AchievementMedia, Achievements, AggregatesByFaction, } from "./game_data/achievement.js";
|
|
2
|
+
export type { AuctionItem, AuctionListing, Auctions, Commodities, commodity } from "./game_data/auction_house.js";
|
|
3
|
+
export type { AzeriteEssenceDetails, AzeritEessenceMedia, AzeriteEssences, AzeritePower, } from "./game_data/azerite_essence.js";
|
|
4
|
+
export type { ConnectedRealm, ConnectedRealmRealm, ConnectedRealms } from "./game_data/connected_realm.js";
|
|
5
|
+
export type { ClassAbility, Covenant, CovenantAbilitySpellTooltip, CovenantConduit, CovenantConduitRank, CovenantConduits, CovenantConduitSpellTooltip, CovenantMedia, Covenants, CovenantSoulbind, CovenantSoulbinds, SignatureAbility, } from "./game_data/covenant.js";
|
|
6
|
+
export type { Creature, CreatureDisplayAssets, CreatureDisplayMedia, CreatureFamilies, CreatureFamily, CreatureFamilyAssets, CreatureFamilyMedia, CreatureType, CreatureTypes, } from "./game_data/creature.js";
|
|
7
|
+
export type { Border, Emblem, GuildCrestBorder, GuildCrestEmblem, GuildCrests, IdRgba, } from "./game_data/guild_crest.js";
|
|
8
|
+
export type { Heirloom, Heirlooms, Upgrade, UpgradeStats, ValueDisplayString } from "./game_data/heirloom.js";
|
|
9
|
+
export type { Decor, Decors, Fixture, FixtureHook, FixtureHooks, Fixtures, Room, Rooms } from "./game_data/housing.js";
|
|
10
|
+
export type { Item, ItemClass, ItemClasses, ItemMedia, ItemSet, ItemSets, ItemSubclass } from "./game_data/item.js";
|
|
11
|
+
export type { AppearanceSlot, ItemAppearance, ItemAppearanceSearch, ItemAppearanceSearchResult, ItemAppearanceSet, ItemAppearanceSets, ItemAppearanceSlot, ItemAppearanceSlotRef, ItemAppearanceSlots, } from "./game_data/item_appearance.js";
|
|
12
|
+
export type { EncounterSection, JournalEncounter, JournalEncounters, JournalExpansion, JournalExpansions, JournalInstance, JournalInstanceMedia, JournalInstances, } from "./game_data/journal.js";
|
|
13
|
+
export type { KeystoneAffix, KeystoneAffixes, KeystoneAffixMedia } from "./game_data/keystone_affix.js";
|
|
14
|
+
export type { ModifiedCraftingCategories, ModifiedCraftingCategory, ModifiedCraftingParents, ModifiedCraftingSlotType, ModifiedCraftingSlotTypes, } from "./game_data/modified_crafting.js";
|
|
15
|
+
export type { Mount, Mounts } from "./game_data/mount.js";
|
|
16
|
+
export type { MythicKeystoneDungeon, MythicKeystoneDungeons, MythicKeystoneIndex, MythicKeystonePeriod, MythicKeystonePeriods, MythicKeystoneSeason, MythicKeystoneSeasons, } from "./game_data/mythic_keystone_dungeon.js";
|
|
17
|
+
export type { MythicKeystoneLeaderboard, MythicKeystoneLeaderboards, MythicLeaderboardRating, } from "./game_data/mythic_keystone_leaderboard.js";
|
|
18
|
+
export type { MythicRaidLeaderboard } from "./game_data/mythic_raid_leaderboard.js";
|
|
19
|
+
export type { Neighborhood, NeighborhoodMap, NeighborhoodMaps } from "./game_data/neighborhood.js";
|
|
20
|
+
export type { Pet, PetAbilities, PetAbility, PetAbilityMedia, PetMedia, Pets } from "./game_data/pet.js";
|
|
21
|
+
export type { PlayableClass, PlayableClasses, PlayableClassMedia, PlayableClassPvpTalentSlots, } from "./game_data/playable_class.js";
|
|
22
|
+
export type { PlayableRace, PlayableRaces } from "./game_data/playable_race.js";
|
|
23
|
+
export type { PlayableSpecialization, PlayableSpecializationMedia, PlayableSpecializations, } from "./game_data/playable_specialization.js";
|
|
24
|
+
export type { PowerType, PowerTypes } from "./game_data/power_type.js";
|
|
25
|
+
export type { Profession, ProfessionMedia, ProfessionRecipie, professionRecipieMedia, Professions, ProfessionSkillTier, } from "./game_data/profession.js";
|
|
26
|
+
export type { PvpSeason, PvpSeasonLeaderboard, PvpSeasonLeaderboards, PvpSeasonRewards, PvpSeasons, } from "./game_data/pvp_season.js";
|
|
27
|
+
export type { PvpTier, PvpTierMedia, PvpTiers } from "./game_data/pvp_tier.js";
|
|
28
|
+
export type { Quest, QuestArea, QuestAreas, QuestCategories, QuestCategory, Quests, QuestType, QuestTypes, } from "./game_data/quest.js";
|
|
29
|
+
export type { Realm, RealmList, Realms } from "./game_data/realm.js";
|
|
30
|
+
export type { Region, Regions } from "./game_data/region.js";
|
|
31
|
+
export type { ReputationFaction, ReputationFactions, ReputationTier, ReputationTiers, } from "./game_data/reputations.js";
|
|
32
|
+
export type { Spell, SpellMedia } from "./game_data/spell.js";
|
|
33
|
+
export type { HeroTalentTree, NodeType, PvpTalent, PvpTalents, Rank, SpellTooltip, Talent, TalentNode, Talents, TalentTree, TalentTreeNodes, TalentTrees, Tooltip, } from "./game_data/talent.js";
|
|
34
|
+
export type { TechTalent, TechTalentMedia, TechTalents, TechTalentTree, TechTalentTreeRef, TechTalentTrees, } from "./game_data/tech_talent.js";
|
|
35
|
+
export type { Title, Titles } from "./game_data/title.js";
|
|
36
|
+
export type { WowToken } from "./game_data/token.js";
|
|
37
|
+
export type { Toy, Toys } from "./game_data/toy.js";
|
|
38
|
+
export type { AccountCharacter, AccountCollectionsIndex, AccountDecorCollection, AccountHeirloomsCollection, AccountMount, AccountMountsCollection, AccountPetsCollection, AccountProfileSummary, AccountToysCollection, AccountTransmogsCollection, ProtectedCharacterProfile, } from "./profile/account_profile.js";
|
|
39
|
+
export type { AchievementCriteria, AchievementStatistic, AchievementsubCategory, CharacterAchievementStatistics, CharacterAchievementSummary, } from "./profile/character_achievements.js";
|
|
40
|
+
export type { CharacterAppearanceSummary } from "./profile/character_appearance.js";
|
|
41
|
+
export type { CharacterCollectionDecor, CharacterCollectionHeirlooms, CharacterCollectionMounts, CharacterCollectionPets, CharacterCollectionToys, CharacterCollectionTransmogs, CharacterCollectionTypes, CollectedHeirloom, CollectedMount, CollectedPet, CollectedToy, DecorItem, TransmogrifiedSlot, } from "./profile/character_collections.js";
|
|
42
|
+
export type { CharacterEncounterDungeons, CharacterEncounterRaids, CharacterEncounters, } from "./profile/character_encounters.js";
|
|
43
|
+
export type { characterEquipments, EquippedItemWeapon, Rgba } from "./profile/character_equipment.js";
|
|
44
|
+
export type { CharacterHouse } from "./profile/character_house.js";
|
|
45
|
+
export type { CharacterHunterPets } from "./profile/character_hunter_pets.js";
|
|
46
|
+
export type { CharacterMedia } from "./profile/character_media.js";
|
|
47
|
+
export type { CharacterMythicKeystoneProfile, CharacterMythicKeystoneSeasonDetails, MythicKeystoneBestRun, MythicKeystoneMemberCharacter, MythicRating, } from "./profile/character_mythic_keystone_profile.js";
|
|
48
|
+
export type { CharacterProfession, CharacterProfessions, Tier } from "./profile/character_professions.js";
|
|
49
|
+
export type { CharacterProfile, CharacterProfileStatus, CharacterRealm } from "./profile/character_profile.js";
|
|
50
|
+
export type { CharacterPvpBracketStatistics, CharacterPvpSummary, MatchStatistic } from "./profile/character_pvp.js";
|
|
51
|
+
export type { CharacterCompletedQuests, CharacterQuests } from "./profile/character_quests.js";
|
|
52
|
+
export type { CharacterReputations } from "./profile/character_reputations.js";
|
|
53
|
+
export type { CharacterSoulbinds } from "./profile/character_soulbinds.js";
|
|
54
|
+
export type { CharacterSpecializations, CharacterSpecializationTalent, ClassicSpecializationTalent, Detail, } from "./profile/character_specializations.js";
|
|
55
|
+
export type { CharacterStatistics, StatRating, StatRatingBonus } from "./profile/character_statistics.js";
|
|
56
|
+
export type { CharacterTitles } from "./profile/character_titles.js";
|
|
57
|
+
export type { CrestAsset, Critiera, Guild, GuildAchievements, GuildActivity, GuildCrestRgba, GuildReference, GuildRoster, GuildRosterMemberCharacter, } from "./profile/guild.js";
|
|
58
|
+
export type { Search, SearchParameters } from "./search.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module provides the Classic Era auction house endpoints. Classic Era realms have separate Alliance, Horde and
|
|
3
|
+
* neutral auction houses, so auctions are listed per auction house instead of per connected realm.
|
|
4
|
+
*/
|
|
5
|
+
import type { ApiContext } from "../shared/index.js";
|
|
6
|
+
import type { Href, LinkSelfHref, NamedRef } from "../shared/index.js";
|
|
7
|
+
export interface AuctionHouses extends LinkSelfHref {
|
|
8
|
+
auctions: NamedRef[];
|
|
9
|
+
}
|
|
10
|
+
export interface AuctionHouseAuctions extends LinkSelfHref {
|
|
11
|
+
connected_realm: Href;
|
|
12
|
+
auctions: {
|
|
13
|
+
id: number;
|
|
14
|
+
item: {
|
|
15
|
+
id: number;
|
|
16
|
+
rand?: number;
|
|
17
|
+
seed?: number;
|
|
18
|
+
};
|
|
19
|
+
bid?: number;
|
|
20
|
+
buyout?: number;
|
|
21
|
+
quantity: number;
|
|
22
|
+
time_left: string;
|
|
23
|
+
}[];
|
|
24
|
+
id: number;
|
|
25
|
+
name: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Returns an index of the auction houses (Alliance, Horde, neutral) of a Classic Era connected realm.
|
|
29
|
+
*
|
|
30
|
+
* @param connectedRealmId - The ID of the connected realm.
|
|
31
|
+
* @returns A promise that resolves to an object listing the auction houses.
|
|
32
|
+
*/
|
|
33
|
+
export declare function auctionHouses(ctx: ApiContext, connectedRealmId: number): Promise<AuctionHouses>;
|
|
34
|
+
/**
|
|
35
|
+
* Returns all active auctions of one auction house of a Classic Era connected realm.
|
|
36
|
+
*
|
|
37
|
+
* @param connectedRealmId - The ID of the connected realm.
|
|
38
|
+
* @param auctionHouseId - The ID of the auction house, from auctionHouses().
|
|
39
|
+
* @returns A promise that resolves to an object listing the auctions.
|
|
40
|
+
*/
|
|
41
|
+
export declare function auctionHouse(ctx: ApiContext, connectedRealmId: number, auctionHouseId: number): Promise<AuctionHouseAuctions>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module provides the Classic Era auction house endpoints. Classic Era realms have separate Alliance, Horde and
|
|
3
|
+
* neutral auction houses, so auctions are listed per auction house instead of per connected realm.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Returns an index of the auction houses (Alliance, Horde, neutral) of a Classic Era connected realm.
|
|
7
|
+
*
|
|
8
|
+
* @param connectedRealmId - The ID of the connected realm.
|
|
9
|
+
* @returns A promise that resolves to an object listing the auction houses.
|
|
10
|
+
*/
|
|
11
|
+
export async function auctionHouses(ctx, connectedRealmId) {
|
|
12
|
+
return await ctx.request({
|
|
13
|
+
method: "GET",
|
|
14
|
+
url: `/data/wow/connected-realm/${connectedRealmId}/auctions/index`,
|
|
15
|
+
namespace: "dynamic",
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Returns all active auctions of one auction house of a Classic Era connected realm.
|
|
20
|
+
*
|
|
21
|
+
* @param connectedRealmId - The ID of the connected realm.
|
|
22
|
+
* @param auctionHouseId - The ID of the auction house, from auctionHouses().
|
|
23
|
+
* @returns A promise that resolves to an object listing the auctions.
|
|
24
|
+
*/
|
|
25
|
+
export async function auctionHouse(ctx, connectedRealmId, auctionHouseId) {
|
|
26
|
+
return await ctx.request({
|
|
27
|
+
method: "GET",
|
|
28
|
+
url: `/data/wow/connected-realm/${connectedRealmId}/auctions/${auctionHouseId}`,
|
|
29
|
+
namespace: "dynamic",
|
|
30
|
+
});
|
|
31
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module provides the Classic Era character specializations endpoint. Era characters have talent trees with
|
|
3
|
+
* points spent per tree (and dual-spec groups) instead of Retail's loadouts, so the response has its own shape.
|
|
4
|
+
*/
|
|
5
|
+
import type { ApiContext } from "../shared/index.js";
|
|
6
|
+
import type { Character, Href } from "../shared/index.js";
|
|
7
|
+
export interface ClassicEraTalent {
|
|
8
|
+
talent: {
|
|
9
|
+
id: number;
|
|
10
|
+
};
|
|
11
|
+
spell_tooltip: {
|
|
12
|
+
spell: {
|
|
13
|
+
name: string;
|
|
14
|
+
id: number;
|
|
15
|
+
};
|
|
16
|
+
description: string;
|
|
17
|
+
cast_time: string;
|
|
18
|
+
power_cost?: string | null;
|
|
19
|
+
range?: string;
|
|
20
|
+
cooldown?: string;
|
|
21
|
+
};
|
|
22
|
+
talent_rank: number;
|
|
23
|
+
}
|
|
24
|
+
export interface ClassicEraCharacterSpecializations {
|
|
25
|
+
_links: {
|
|
26
|
+
self: Href;
|
|
27
|
+
};
|
|
28
|
+
character: Character;
|
|
29
|
+
specialization_groups: {
|
|
30
|
+
is_active: boolean;
|
|
31
|
+
specializations: {
|
|
32
|
+
specialization_name: string;
|
|
33
|
+
spent_points: number;
|
|
34
|
+
talents: ClassicEraTalent[];
|
|
35
|
+
}[];
|
|
36
|
+
}[];
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Returns a summary of a character's talent trees (Classic Era).
|
|
40
|
+
*
|
|
41
|
+
* @param realmSlug - The slug of the realm.
|
|
42
|
+
* @param characterName - The lowercase name of the character.
|
|
43
|
+
* @returns A promise that resolves to an object representing the character's talent groups.
|
|
44
|
+
*/
|
|
45
|
+
export declare function characterSpecializations(ctx: ApiContext, realmSlug: string, characterName: string): Promise<ClassicEraCharacterSpecializations>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module provides the Classic Era character specializations endpoint. Era characters have talent trees with
|
|
3
|
+
* points spent per tree (and dual-spec groups) instead of Retail's loadouts, so the response has its own shape.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Returns a summary of a character's talent trees (Classic Era).
|
|
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 the character's talent groups.
|
|
11
|
+
*/
|
|
12
|
+
export async function characterSpecializations(ctx, realmSlug, characterName) {
|
|
13
|
+
return await ctx.request({
|
|
14
|
+
method: "GET",
|
|
15
|
+
url: `/profile/wow/character/${realmSlug}/${characterName}/specializations`,
|
|
16
|
+
namespace: "profile",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* World of Warcraft Classic Era endpoints (Era, Season of Discovery, Hardcore, Anniversary), namespace variant
|
|
3
|
+
* "classic1x". The client binds them to a "classic1x" context.
|
|
4
|
+
* Verified against the live API (EU) on 2026-09-30.
|
|
5
|
+
*/
|
|
6
|
+
export * from "./shared.js";
|
|
7
|
+
export { auctionHouse, auctionHouses } from "./auction_house.js";
|
|
8
|
+
export { characterSpecializations } from "./character_specializations.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* World of Warcraft Classic Era endpoints (Era, Season of Discovery, Hardcore, Anniversary), namespace variant
|
|
3
|
+
* "classic1x". The client binds them to a "classic1x" context.
|
|
4
|
+
* Verified against the live API (EU) on 2026-09-30.
|
|
5
|
+
*/
|
|
6
|
+
export * from "./shared.js";
|
|
7
|
+
// Game Data APIs
|
|
8
|
+
export { auctionHouse, auctionHouses } from "./auction_house.js";
|
|
9
|
+
// Profile APIs
|
|
10
|
+
export { characterSpecializations } from "./character_specializations.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* World of Warcraft Classic (progression) endpoints, namespace variant "classic".
|
|
3
|
+
* These are the Retail endpoint functions that the Classic API supports; the client binds them to a "classic" context.
|
|
4
|
+
* Verified against the live API (EU) on 2026-09-30.
|
|
5
|
+
*/
|
|
6
|
+
export * from "./shared.js";
|
|
7
|
+
export { auctions } from "../wow/game_data/auction_house.js";
|
|
8
|
+
export { mythicKeystonePeriod, mythicKeystonePeriods, mythicKeystoneSeason, mythicKeystoneSeasons, } from "../wow/game_data/mythic_keystone_dungeon.js";
|
|
9
|
+
export { mythicKeystoneLeaderboard, mythicKeystoneLeaderboards } from "../wow/game_data/mythic_keystone_leaderboard.js";
|
|
10
|
+
export { playableSpecialization, playableSpecializationMedia, playableSpecializations, } from "../wow/game_data/playable_specialization.js";
|
|
11
|
+
export { pvpSeason, pvpSeasonLeaderboard, pvpSeasonLeaderboards, pvpSeasonRewards, pvpSeasons, } from "../wow/game_data/pvp_season.js";
|
|
12
|
+
export { token } from "../wow/game_data/token.js";
|
|
13
|
+
export { characterAchievementStatistics } from "../wow/profile/character_achievements.js";
|
|
14
|
+
export { characterPvpBracketStatistics } from "../wow/profile/character_pvp.js";
|
|
15
|
+
export { characterAchievementSummary, characterSpecializations, commodities } from "./profile_overrides.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* World of Warcraft Classic (progression) endpoints, namespace variant "classic".
|
|
3
|
+
* These are the Retail endpoint functions that the Classic API supports; the client binds them to a "classic" context.
|
|
4
|
+
* Verified against the live API (EU) on 2026-09-30.
|
|
5
|
+
*/
|
|
6
|
+
export * from "./shared.js";
|
|
7
|
+
// Game Data APIs
|
|
8
|
+
export { auctions } from "../wow/game_data/auction_house.js";
|
|
9
|
+
export { mythicKeystonePeriod, mythicKeystonePeriods, mythicKeystoneSeason, mythicKeystoneSeasons, } from "../wow/game_data/mythic_keystone_dungeon.js";
|
|
10
|
+
export { mythicKeystoneLeaderboard, mythicKeystoneLeaderboards } from "../wow/game_data/mythic_keystone_leaderboard.js";
|
|
11
|
+
export { playableSpecialization, playableSpecializationMedia, playableSpecializations, } from "../wow/game_data/playable_specialization.js";
|
|
12
|
+
export { pvpSeason, pvpSeasonLeaderboard, pvpSeasonLeaderboards, pvpSeasonRewards, pvpSeasons, } from "../wow/game_data/pvp_season.js";
|
|
13
|
+
export { token } from "../wow/game_data/token.js";
|
|
14
|
+
// Profile APIs
|
|
15
|
+
export { characterAchievementStatistics } from "../wow/profile/character_achievements.js";
|
|
16
|
+
export { characterPvpBracketStatistics } from "../wow/profile/character_pvp.js";
|
|
17
|
+
export { characterAchievementSummary, characterSpecializations, commodities } from "./profile_overrides.js";
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Classic versions of Retail endpoints whose Classic responses lack fields that Retail always returns.
|
|
3
|
+
* Each one makes the same request as the Retail endpoint, but returns a type where those fields are optional,
|
|
4
|
+
* so the Retail types can keep them required.
|
|
5
|
+
* Verified against the live API (EU) on 2026-10-01.
|
|
6
|
+
*/
|
|
7
|
+
import type { ApiContext } from "../shared/index.js";
|
|
8
|
+
import type { AchievementCategories } from "../wow/game_data/achievement.js";
|
|
9
|
+
import type { Commodities } from "../wow/game_data/auction_house.js";
|
|
10
|
+
import type { ConnectedRealm } from "../wow/game_data/connected_realm.js";
|
|
11
|
+
import type { CharacterAchievementSummary } from "../wow/profile/character_achievements.js";
|
|
12
|
+
import type { CharacterAppearanceSummary } from "../wow/profile/character_appearance.js";
|
|
13
|
+
import type { CharacterProfile } from "../wow/profile/character_profile.js";
|
|
14
|
+
import type { CharacterPvpSummary } from "../wow/profile/character_pvp.js";
|
|
15
|
+
import type { CharacterSpecializations } from "../wow/profile/character_specializations.js";
|
|
16
|
+
import type { CharacterStatistics } from "../wow/profile/character_statistics.js";
|
|
17
|
+
import type { GuildAchievements } from "../wow/profile/guild.js";
|
|
18
|
+
/** Makes the keys K of T optional. */
|
|
19
|
+
type WithOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
20
|
+
/** Character profile as returned for Classic: Retail-only links and fields are optional. */
|
|
21
|
+
export interface ClassicCharacterProfile extends WithOptional<CharacterProfile, "active_spec" | "achievement_points" | "achievements" | "encounters" | "mythic_keystone_profile" | "collections" | "quests" | "achievements_statistics" | "professions" | "name_search" | "is_remix"> {
|
|
22
|
+
}
|
|
23
|
+
/** Character appearance as returned for Classic (no active specialization on Era). */
|
|
24
|
+
export interface ClassicCharacterAppearanceSummary extends WithOptional<CharacterAppearanceSummary, "active_spec"> {
|
|
25
|
+
}
|
|
26
|
+
/** Character PvP summary as returned for Classic (no honor level). */
|
|
27
|
+
export interface ClassicCharacterPvpSummary extends WithOptional<CharacterPvpSummary, "honor_level"> {
|
|
28
|
+
}
|
|
29
|
+
/** Character achievement summary as returned for Classic (no statistics link). */
|
|
30
|
+
export interface ClassicCharacterAchievementSummary extends WithOptional<CharacterAchievementSummary, "statistics"> {
|
|
31
|
+
}
|
|
32
|
+
/** Character statistics as returned for Classic: Retail-only secondary stats are optional. */
|
|
33
|
+
export interface ClassicCharacterStatistics extends WithOptional<CharacterStatistics, "speed" | "melee_haste" | "mastery" | "bonus_armor" | "lifesteal" | "versatility" | "versatility_damage_done_bonus" | "versatility_healing_done_bonus" | "versatility_damage_taken_bonus" | "avoidance" | "ranged_haste" | "spell_haste"> {
|
|
34
|
+
}
|
|
35
|
+
/** Character specializations as returned for Classic progression (talent groups instead of loadouts). */
|
|
36
|
+
export interface ClassicCharacterSpecializations extends WithOptional<CharacterSpecializations, "specializations"> {
|
|
37
|
+
}
|
|
38
|
+
/** Guild achievements as returned for Classic (totals and achievements may be missing). */
|
|
39
|
+
export interface ClassicGuildAchievements extends WithOptional<GuildAchievements, "total_quantity" | "total_points" | "achievements"> {
|
|
40
|
+
}
|
|
41
|
+
/** Connected realm as returned for Classic (no mythic leaderboards link). */
|
|
42
|
+
export interface ClassicConnectedRealm extends WithOptional<ConnectedRealm, "mythic_leaderboards"> {
|
|
43
|
+
}
|
|
44
|
+
/** Achievement categories as returned for Classic (no guild categories on Era). */
|
|
45
|
+
export interface ClassicAchievementCategories extends WithOptional<AchievementCategories, "guild_categories"> {
|
|
46
|
+
}
|
|
47
|
+
/** Commodities as returned for Classic (the auctions list can be missing). */
|
|
48
|
+
export interface ClassicCommodities extends WithOptional<Commodities, "auctions"> {
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Returns a profile summary for a character.
|
|
52
|
+
*
|
|
53
|
+
* @param realmSlug - The slug of the realm.
|
|
54
|
+
* @param characterName - The lowercase name of the character.
|
|
55
|
+
* @returns A promise that resolves to an object representing a profile summary for a character.
|
|
56
|
+
*/
|
|
57
|
+
export declare function characterProfile(ctx: ApiContext, realmSlug: string, characterName: string): Promise<ClassicCharacterProfile>;
|
|
58
|
+
/**
|
|
59
|
+
* Returns a summary of a character's appearance settings.
|
|
60
|
+
*
|
|
61
|
+
* @param realmSlug - The slug of the realm.
|
|
62
|
+
* @param characterName - The lowercase name of the character.
|
|
63
|
+
* @returns A promise that resolves to an object representing a summary of a character's appearance settings.
|
|
64
|
+
*/
|
|
65
|
+
export declare function characterAppearanceSummary(ctx: ApiContext, realmSlug: string, characterName: string): Promise<ClassicCharacterAppearanceSummary>;
|
|
66
|
+
/**
|
|
67
|
+
* Returns a PvP summary for a character.
|
|
68
|
+
*
|
|
69
|
+
* @param realmSlug - The slug of the realm.
|
|
70
|
+
* @param characterName - The lowercase name of the character.
|
|
71
|
+
* @returns A promise that resolves to an object representing a PvP summary for a character.
|
|
72
|
+
*/
|
|
73
|
+
export declare function characterPvpSummary(ctx: ApiContext, realmSlug: string, characterName: string): Promise<ClassicCharacterPvpSummary>;
|
|
74
|
+
/**
|
|
75
|
+
* Returns a summary of the achievements a character has completed.
|
|
76
|
+
*
|
|
77
|
+
* @param realmSlug - The slug of the realm.
|
|
78
|
+
* @param characterName - The lowercase name of the character.
|
|
79
|
+
* @returns A promise that resolves to an object representing a summary of the achievements a character has completed.
|
|
80
|
+
*/
|
|
81
|
+
export declare function characterAchievementSummary(ctx: ApiContext, realmSlug: string, characterName: string): Promise<ClassicCharacterAchievementSummary>;
|
|
82
|
+
/**
|
|
83
|
+
* Returns a statistics summary for a character.
|
|
84
|
+
*
|
|
85
|
+
* @param realmSlug - The slug of the realm.
|
|
86
|
+
* @param characterName - The lowercase name of the character.
|
|
87
|
+
* @returns A promise that resolves to an object representing a statistics summary for a character.
|
|
88
|
+
*/
|
|
89
|
+
export declare function characterStatistics(ctx: ApiContext, realmSlug: string, characterName: string): Promise<ClassicCharacterStatistics>;
|
|
90
|
+
/**
|
|
91
|
+
* Returns a summary of a character's specializations.
|
|
92
|
+
*
|
|
93
|
+
* @param realmSlug - The slug of the realm.
|
|
94
|
+
* @param characterName - The lowercase name of the character.
|
|
95
|
+
* @returns A promise that resolves to an object representing a summary of a character's specializations.
|
|
96
|
+
*/
|
|
97
|
+
export declare function characterSpecializations(ctx: ApiContext, realmSlug: string, characterName: string): Promise<ClassicCharacterSpecializations>;
|
|
98
|
+
/**
|
|
99
|
+
* Returns a single guild's achievements by name.
|
|
100
|
+
*
|
|
101
|
+
* @param realmSlug - The slug of the realm.
|
|
102
|
+
* @param nameSlug - The slug of the guild.
|
|
103
|
+
* @returns A promise that resolves to an object representing a guild's achievements.
|
|
104
|
+
*/
|
|
105
|
+
export declare function guildAchievements(ctx: ApiContext, realmSlug: string, nameSlug: string): Promise<ClassicGuildAchievements>;
|
|
106
|
+
/**
|
|
107
|
+
* Returns a connected realm by ID.
|
|
108
|
+
*
|
|
109
|
+
* @param connectedRealmId - The ID of the connected realm.
|
|
110
|
+
* @returns A promise that resolves to an object representing details about a connected realm.
|
|
111
|
+
*/
|
|
112
|
+
export declare function connectedRealm(ctx: ApiContext, connectedRealmId: number): Promise<ClassicConnectedRealm>;
|
|
113
|
+
/**
|
|
114
|
+
* Returns an index of achievement categories.
|
|
115
|
+
*
|
|
116
|
+
* @returns A promise that resolves to an object representing a list of the index of achievement categories.
|
|
117
|
+
*/
|
|
118
|
+
export declare function achievementCategories(ctx: ApiContext): Promise<ClassicAchievementCategories>;
|
|
119
|
+
/**
|
|
120
|
+
* Returns all active auctions for commodity items for the entire game region.
|
|
121
|
+
*
|
|
122
|
+
* @returns A promise that resolves to an object representing the region's commodity auctions.
|
|
123
|
+
*/
|
|
124
|
+
export declare function commodities(ctx: ApiContext): Promise<ClassicCommodities>;
|
|
125
|
+
export {};
|