@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,35 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { LinkSelfHref } from "../../shared/index.js";
|
|
3
|
+
export interface League extends LinkSelfHref {
|
|
4
|
+
key: {
|
|
5
|
+
league_id: number;
|
|
6
|
+
season_id: number;
|
|
7
|
+
queue_id: number;
|
|
8
|
+
team_type: number;
|
|
9
|
+
};
|
|
10
|
+
tier: {
|
|
11
|
+
id: number;
|
|
12
|
+
min_rating?: number;
|
|
13
|
+
max_rating?: number;
|
|
14
|
+
division: {
|
|
15
|
+
id: number;
|
|
16
|
+
ladder_id: number;
|
|
17
|
+
member_count: number;
|
|
18
|
+
}[];
|
|
19
|
+
}[];
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns data for the specified season, queue, team, and league.
|
|
23
|
+
*
|
|
24
|
+
* Notes from the battle.net docs:
|
|
25
|
+
* queueId: the standard available queueIds are: 1=WoL 1v1, 2=WoL 2v2, 3=WoL 3v3, 4=WoL 4v4, 101=HotS 1v1, 102=HotS 2v2, 103=HotS 3v3, 104=HotS 4v4, 201=LotV 1v1, 202=LotV 2v2, 203=LotV 3v3, 204=LotV 4v4, 206=LotV Archon. Note that other available queues may not be listed here.
|
|
26
|
+
* teamType: there are two available teamTypes: 0=arranged, 1=random.
|
|
27
|
+
* leagueId: available leagueIds are: 0=Bronze, 1=Silver, 2=Gold, 3=Platinum, 4=Diamond, 5=Master, 6=Grandmaster.
|
|
28
|
+
*
|
|
29
|
+
* @param seasonId - The season ID of the data to retrieve.
|
|
30
|
+
* @param queueId - The queue ID of the data to retrieve.
|
|
31
|
+
* @param teamType - The team type of the data to retrieve.
|
|
32
|
+
* @param leagueId - The league ID of the data to retrieve.
|
|
33
|
+
* @returns A promise that resolves to an object representing the data for a league.
|
|
34
|
+
*/
|
|
35
|
+
export declare function leagueData(ctx: ApiContext, seasonId: number, queueId: number, teamType: number, leagueId: number): Promise<League>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.leagueData = leagueData;
|
|
4
|
+
/**
|
|
5
|
+
* Returns data for the specified season, queue, team, and league.
|
|
6
|
+
*
|
|
7
|
+
* Notes from the battle.net docs:
|
|
8
|
+
* queueId: the standard available queueIds are: 1=WoL 1v1, 2=WoL 2v2, 3=WoL 3v3, 4=WoL 4v4, 101=HotS 1v1, 102=HotS 2v2, 103=HotS 3v3, 104=HotS 4v4, 201=LotV 1v1, 202=LotV 2v2, 203=LotV 3v3, 204=LotV 4v4, 206=LotV Archon. Note that other available queues may not be listed here.
|
|
9
|
+
* teamType: there are two available teamTypes: 0=arranged, 1=random.
|
|
10
|
+
* leagueId: available leagueIds are: 0=Bronze, 1=Silver, 2=Gold, 3=Platinum, 4=Diamond, 5=Master, 6=Grandmaster.
|
|
11
|
+
*
|
|
12
|
+
* @param seasonId - The season ID of the data to retrieve.
|
|
13
|
+
* @param queueId - The queue ID of the data to retrieve.
|
|
14
|
+
* @param teamType - The team type of the data to retrieve.
|
|
15
|
+
* @param leagueId - The league ID of the data to retrieve.
|
|
16
|
+
* @returns A promise that resolves to an object representing the data for a league.
|
|
17
|
+
*/
|
|
18
|
+
async function leagueData(ctx, seasonId, queueId, teamType, leagueId) {
|
|
19
|
+
return await ctx.request({
|
|
20
|
+
method: "GET",
|
|
21
|
+
url: `/data/sc2/league/${seasonId}/${queueId}/${teamType}/${leagueId}`,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { leagueData } from "./game_data/league.js";
|
|
2
|
+
export { ladder, ladderSummary, metadataProfile, profile, staticProfile } from "./community/profile.js";
|
|
3
|
+
export { grandmasterLeaderboard, season } from "./community/ladder.js";
|
|
4
|
+
export { player } from "./community/account.js";
|
|
5
|
+
export { legacyAchievements, legacyLadder, legacyLadders, legacyMatches, legacyProfile, legacyRewards, } from "./community/legacy.js";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.legacyRewards = exports.legacyProfile = exports.legacyMatches = exports.legacyLadders = exports.legacyLadder = exports.legacyAchievements = exports.player = exports.season = exports.grandmasterLeaderboard = exports.staticProfile = exports.profile = exports.metadataProfile = exports.ladderSummary = exports.ladder = exports.leagueData = void 0;
|
|
4
|
+
var league_js_1 = require("./game_data/league.js");
|
|
5
|
+
Object.defineProperty(exports, "leagueData", { enumerable: true, get: function () { return league_js_1.leagueData; } });
|
|
6
|
+
var profile_js_1 = require("./community/profile.js");
|
|
7
|
+
Object.defineProperty(exports, "ladder", { enumerable: true, get: function () { return profile_js_1.ladder; } });
|
|
8
|
+
Object.defineProperty(exports, "ladderSummary", { enumerable: true, get: function () { return profile_js_1.ladderSummary; } });
|
|
9
|
+
Object.defineProperty(exports, "metadataProfile", { enumerable: true, get: function () { return profile_js_1.metadataProfile; } });
|
|
10
|
+
Object.defineProperty(exports, "profile", { enumerable: true, get: function () { return profile_js_1.profile; } });
|
|
11
|
+
Object.defineProperty(exports, "staticProfile", { enumerable: true, get: function () { return profile_js_1.staticProfile; } });
|
|
12
|
+
var ladder_js_1 = require("./community/ladder.js");
|
|
13
|
+
Object.defineProperty(exports, "grandmasterLeaderboard", { enumerable: true, get: function () { return ladder_js_1.grandmasterLeaderboard; } });
|
|
14
|
+
Object.defineProperty(exports, "season", { enumerable: true, get: function () { return ladder_js_1.season; } });
|
|
15
|
+
var account_js_1 = require("./community/account.js");
|
|
16
|
+
Object.defineProperty(exports, "player", { enumerable: true, get: function () { return account_js_1.player; } });
|
|
17
|
+
var legacy_js_1 = require("./community/legacy.js");
|
|
18
|
+
Object.defineProperty(exports, "legacyAchievements", { enumerable: true, get: function () { return legacy_js_1.legacyAchievements; } });
|
|
19
|
+
Object.defineProperty(exports, "legacyLadder", { enumerable: true, get: function () { return legacy_js_1.legacyLadder; } });
|
|
20
|
+
Object.defineProperty(exports, "legacyLadders", { enumerable: true, get: function () { return legacy_js_1.legacyLadders; } });
|
|
21
|
+
Object.defineProperty(exports, "legacyMatches", { enumerable: true, get: function () { return legacy_js_1.legacyMatches; } });
|
|
22
|
+
Object.defineProperty(exports, "legacyProfile", { enumerable: true, get: function () { return legacy_js_1.legacyProfile; } });
|
|
23
|
+
Object.defineProperty(exports, "legacyRewards", { enumerable: true, get: function () { return legacy_js_1.legacyRewards; } });
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { Sc2Player } from "./community/account.js";
|
|
2
|
+
export type { Sc2GrandmasterLeaderboard, Sc2Season } from "./community/ladder.js";
|
|
3
|
+
export type { Sc2LegacyAchievement, Sc2LegacyAchievementCategory, Sc2LegacyAchievements, Sc2LegacyAchievementsSummary, Sc2LegacyCareer, Sc2LegacyCharacter, Sc2LegacyIcon, Sc2LegacyLadder, Sc2LegacyLadderGroup, Sc2LegacyLadders, Sc2LegacyMatch, Sc2LegacyMatches, Sc2LegacyProfile, Sc2LegacyReward, Sc2LegacyRewards, Sc2LegacySeason, Sc2LegacySwarmLevel, Sc2LegacySwarmLevels, } from "./community/legacy.js";
|
|
4
|
+
export type { Sc2Career, Sc2CategoryPointProgress, Sc2EarnedAchievement, Sc2EarnedReward, Sc2Ladder, Sc2LadderMembership, Sc2LadderShowcaseEntry, Sc2LadderSummary, Sc2LadderTeam, Sc2LadderTeamMember, Sc2PlacementMatch, Sc2PlayerProfile, Sc2ProfileMetadata, Sc2ProfileSummary, Sc2SeasonSnapshotEntry, Sc2StaticAchievement, Sc2StaticCategory, Sc2StaticCriterion, Sc2StaticProfile, Sc2StaticReward, Sc2SwarmLevel, Sc2SwarmLevels, } from "./community/profile.js";
|
|
5
|
+
export type { League } from "./game_data/league.js";
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module provides interfaces and API function definitions for fetching World of Warcraft achievement data using the Blizzard API.
|
|
3
|
+
*
|
|
4
|
+
* @author Pinta <https://github.com/Pinta365>
|
|
5
|
+
*/
|
|
6
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
7
|
+
import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, NamedRef } from "../../shared/index.js";
|
|
8
|
+
export interface AchievementCategories extends LinkSelfHref {
|
|
9
|
+
categories: KeyNameId[];
|
|
10
|
+
root_categories: NamedRef[];
|
|
11
|
+
guild_categories: NamedRef[];
|
|
12
|
+
}
|
|
13
|
+
export interface AggregatesByFaction {
|
|
14
|
+
alliance: {
|
|
15
|
+
quantity: number;
|
|
16
|
+
points: number;
|
|
17
|
+
};
|
|
18
|
+
horde: {
|
|
19
|
+
quantity: number;
|
|
20
|
+
points: number;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface AchievementCategory extends LinkSelfHref {
|
|
24
|
+
id: number;
|
|
25
|
+
name: LocalizedString;
|
|
26
|
+
achievements?: KeyNameId[];
|
|
27
|
+
parent_category?: KeyNameId;
|
|
28
|
+
is_guild_category: boolean;
|
|
29
|
+
aggregates_by_faction: AggregatesByFaction;
|
|
30
|
+
display_order: number;
|
|
31
|
+
}
|
|
32
|
+
export interface Achievements extends LinkSelfHref {
|
|
33
|
+
achievements: KeyNameId[];
|
|
34
|
+
}
|
|
35
|
+
export interface Achievement extends LinkSelfHref {
|
|
36
|
+
id: number;
|
|
37
|
+
category: KeyNameId;
|
|
38
|
+
name: LocalizedString;
|
|
39
|
+
description: LocalizedString;
|
|
40
|
+
points: number;
|
|
41
|
+
is_account_wide: boolean;
|
|
42
|
+
criteria?: {
|
|
43
|
+
id: number;
|
|
44
|
+
description: LocalizedString;
|
|
45
|
+
amount: number;
|
|
46
|
+
};
|
|
47
|
+
next_achievement?: KeyNameId;
|
|
48
|
+
media: KeyId;
|
|
49
|
+
display_order: number;
|
|
50
|
+
}
|
|
51
|
+
export interface AchievementMedia extends LinkSelfHref {
|
|
52
|
+
assets: Asset[];
|
|
53
|
+
id: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Fetches and returns an index of achievement categories.
|
|
57
|
+
*
|
|
58
|
+
* @returns A promise that resolves to an object representing the index of achievement categories.
|
|
59
|
+
*/
|
|
60
|
+
export declare function achievementCategories(ctx: ApiContext): Promise<AchievementCategories>;
|
|
61
|
+
/**
|
|
62
|
+
* Fetches and returns details of a specific achievement category identified by its ID.
|
|
63
|
+
*
|
|
64
|
+
* @param achievementCategoryId - The unique identifier of the achievement category to retrieve.
|
|
65
|
+
* @returns A promise that resolves to an object representing the achievement category details.
|
|
66
|
+
*/
|
|
67
|
+
export declare function achievementCategory(ctx: ApiContext, achievementCategoryId: number): Promise<AchievementCategory>;
|
|
68
|
+
/**
|
|
69
|
+
* Fetches and returns an index of achievements.
|
|
70
|
+
*
|
|
71
|
+
* @returns A promise that resolves to an object representing the index of achievements.
|
|
72
|
+
*/
|
|
73
|
+
export declare function achievements(ctx: ApiContext): Promise<Achievements>;
|
|
74
|
+
/**
|
|
75
|
+
* Fetches and returns details of a specific achievement identified by its ID.
|
|
76
|
+
*
|
|
77
|
+
* @param achievementId - The unique identifier of the achievement to retrieve.
|
|
78
|
+
* @returns A promise that resolves to an object representing the achievement details.
|
|
79
|
+
*/
|
|
80
|
+
export declare function achievement(ctx: ApiContext, achievementId: number): Promise<Achievement>;
|
|
81
|
+
/**
|
|
82
|
+
* Fetches and returns media details for a specific achievement identified by its ID.
|
|
83
|
+
*
|
|
84
|
+
* @param achievementId - The unique identifier of the achievement to retrieve media details for.
|
|
85
|
+
* @returns A promise that resolves to an object representing the achievement media details.
|
|
86
|
+
*/
|
|
87
|
+
export declare function achievementMedia(ctx: ApiContext, achievementId: number): Promise<AchievementMedia>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This module provides interfaces and API function definitions for fetching World of Warcraft achievement data using the Blizzard API.
|
|
4
|
+
*
|
|
5
|
+
* @author Pinta <https://github.com/Pinta365>
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.achievementCategories = achievementCategories;
|
|
9
|
+
exports.achievementCategory = achievementCategory;
|
|
10
|
+
exports.achievements = achievements;
|
|
11
|
+
exports.achievement = achievement;
|
|
12
|
+
exports.achievementMedia = achievementMedia;
|
|
13
|
+
/**
|
|
14
|
+
* Fetches and returns an index of achievement categories.
|
|
15
|
+
*
|
|
16
|
+
* @returns A promise that resolves to an object representing the index of achievement categories.
|
|
17
|
+
*/
|
|
18
|
+
async function achievementCategories(ctx) {
|
|
19
|
+
return await ctx.request({
|
|
20
|
+
method: "GET",
|
|
21
|
+
url: "/data/wow/achievement-category/index",
|
|
22
|
+
namespace: "static",
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Fetches and returns details of a specific achievement category identified by its ID.
|
|
27
|
+
*
|
|
28
|
+
* @param achievementCategoryId - The unique identifier of the achievement category to retrieve.
|
|
29
|
+
* @returns A promise that resolves to an object representing the achievement category details.
|
|
30
|
+
*/
|
|
31
|
+
async function achievementCategory(ctx, achievementCategoryId) {
|
|
32
|
+
return await ctx.request({
|
|
33
|
+
method: "GET",
|
|
34
|
+
url: `/data/wow/achievement-category/${achievementCategoryId}`,
|
|
35
|
+
namespace: "static",
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Fetches and returns an index of achievements.
|
|
40
|
+
*
|
|
41
|
+
* @returns A promise that resolves to an object representing the index of achievements.
|
|
42
|
+
*/
|
|
43
|
+
async function achievements(ctx) {
|
|
44
|
+
return await ctx.request({
|
|
45
|
+
method: "GET",
|
|
46
|
+
url: "/data/wow/achievement/index",
|
|
47
|
+
namespace: "static",
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Fetches and returns details of a specific achievement identified by its ID.
|
|
52
|
+
*
|
|
53
|
+
* @param achievementId - The unique identifier of the achievement to retrieve.
|
|
54
|
+
* @returns A promise that resolves to an object representing the achievement details.
|
|
55
|
+
*/
|
|
56
|
+
async function achievement(ctx, achievementId) {
|
|
57
|
+
return await ctx.request({
|
|
58
|
+
method: "GET",
|
|
59
|
+
url: `/data/wow/achievement/${achievementId}`,
|
|
60
|
+
namespace: "static",
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Fetches and returns media details for a specific achievement identified by its ID.
|
|
65
|
+
*
|
|
66
|
+
* @param achievementId - The unique identifier of the achievement to retrieve media details for.
|
|
67
|
+
* @returns A promise that resolves to an object representing the achievement media details.
|
|
68
|
+
*/
|
|
69
|
+
async function achievementMedia(ctx, achievementId) {
|
|
70
|
+
return await ctx.request({
|
|
71
|
+
method: "GET",
|
|
72
|
+
url: `/data/wow/media/achievement/${achievementId}`,
|
|
73
|
+
namespace: "static",
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { LinkSelfHref } from "../../shared/index.js";
|
|
3
|
+
export interface AuctionItem {
|
|
4
|
+
id: number;
|
|
5
|
+
modifiers?: {
|
|
6
|
+
type: number;
|
|
7
|
+
value: number;
|
|
8
|
+
}[];
|
|
9
|
+
pet_breed_id?: number;
|
|
10
|
+
pet_level?: number;
|
|
11
|
+
pet_quality_id?: number;
|
|
12
|
+
pet_species_id?: number;
|
|
13
|
+
bonus_lists?: number[];
|
|
14
|
+
context?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface AuctionListing {
|
|
17
|
+
id: number;
|
|
18
|
+
item: AuctionItem;
|
|
19
|
+
bid?: number;
|
|
20
|
+
buyout?: number;
|
|
21
|
+
quantity: number;
|
|
22
|
+
time_left: string;
|
|
23
|
+
}
|
|
24
|
+
export interface Auctions extends LinkSelfHref {
|
|
25
|
+
connected_realm: {
|
|
26
|
+
href: string;
|
|
27
|
+
};
|
|
28
|
+
auctions: AuctionListing[];
|
|
29
|
+
commodities: {
|
|
30
|
+
href: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export interface commodity {
|
|
34
|
+
"id": number;
|
|
35
|
+
"item": {
|
|
36
|
+
"id": number;
|
|
37
|
+
};
|
|
38
|
+
"quantity": number;
|
|
39
|
+
"unit_price": number;
|
|
40
|
+
"time_left": string;
|
|
41
|
+
}
|
|
42
|
+
export interface Commodities extends LinkSelfHref {
|
|
43
|
+
auctions: commodity[];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Returns all active auctions for a connected realm.
|
|
47
|
+
*
|
|
48
|
+
* Auction house data updates at a set interval. The value was initially set at 1 hour; however, it might change over time without notice.
|
|
49
|
+
*
|
|
50
|
+
* NOTE: Depending on the number of active auctions on the specified connected realm, the response from this endpoint may be rather large.
|
|
51
|
+
*
|
|
52
|
+
* @param connectedRealmId - The id of the connected realm to return auctions from.
|
|
53
|
+
* @returns A promise that resolves to an object representing the auctions being listed.
|
|
54
|
+
*/
|
|
55
|
+
export declare function auctions(ctx: ApiContext, connectedRealmId: number): Promise<Auctions>;
|
|
56
|
+
/**
|
|
57
|
+
* Returns all active auctions for commodity items for the entire game region.
|
|
58
|
+
*
|
|
59
|
+
* Auction house data updates at a set interval. The value was initially set at 1 hour; however, it might change over time without notice.
|
|
60
|
+
*
|
|
61
|
+
* NOTE: Depending on the number of active auctions on the specified region, the response from this endpoint may be rather large.
|
|
62
|
+
*
|
|
63
|
+
* @returns A promise that resolves to an object representing the commodities being listed.
|
|
64
|
+
*/
|
|
65
|
+
export declare function commodities(ctx: ApiContext): Promise<Commodities>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.auctions = auctions;
|
|
4
|
+
exports.commodities = commodities;
|
|
5
|
+
/**
|
|
6
|
+
* Returns all active auctions for a connected realm.
|
|
7
|
+
*
|
|
8
|
+
* Auction house data updates at a set interval. The value was initially set at 1 hour; however, it might change over time without notice.
|
|
9
|
+
*
|
|
10
|
+
* NOTE: Depending on the number of active auctions on the specified connected realm, the response from this endpoint may be rather large.
|
|
11
|
+
*
|
|
12
|
+
* @param connectedRealmId - The id of the connected realm to return auctions from.
|
|
13
|
+
* @returns A promise that resolves to an object representing the auctions being listed.
|
|
14
|
+
*/
|
|
15
|
+
async function auctions(ctx, connectedRealmId) {
|
|
16
|
+
return await ctx.request({
|
|
17
|
+
method: "GET",
|
|
18
|
+
url: `/data/wow/connected-realm/${connectedRealmId}/auctions`,
|
|
19
|
+
namespace: "dynamic",
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns all active auctions for commodity items for the entire game region.
|
|
24
|
+
*
|
|
25
|
+
* Auction house data updates at a set interval. The value was initially set at 1 hour; however, it might change over time without notice.
|
|
26
|
+
*
|
|
27
|
+
* NOTE: Depending on the number of active auctions on the specified region, the response from this endpoint may be rather large.
|
|
28
|
+
*
|
|
29
|
+
* @returns A promise that resolves to an object representing the commodities being listed.
|
|
30
|
+
*/
|
|
31
|
+
async function commodities(ctx) {
|
|
32
|
+
return await ctx.request({
|
|
33
|
+
method: "GET",
|
|
34
|
+
url: "/data/wow/auctions/commodities",
|
|
35
|
+
namespace: "dynamic",
|
|
36
|
+
});
|
|
37
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
|
|
3
|
+
import type { Search, SearchParameters } from "../search.js";
|
|
4
|
+
export interface AzeriteEssences extends LinkSelfHref {
|
|
5
|
+
azerite_essences: KeyNameId[];
|
|
6
|
+
}
|
|
7
|
+
export interface AzeritePower {
|
|
8
|
+
id: number;
|
|
9
|
+
rank: number;
|
|
10
|
+
main_power_spell: KeyNameId;
|
|
11
|
+
passive_power_spell: KeyNameId;
|
|
12
|
+
}
|
|
13
|
+
export interface AzeriteEssenceDetails extends LinkSelfHref {
|
|
14
|
+
id: number;
|
|
15
|
+
name: LocalizedString;
|
|
16
|
+
allowed_specializations: KeyNameId[];
|
|
17
|
+
powers: AzeritePower[];
|
|
18
|
+
media: KeyId;
|
|
19
|
+
}
|
|
20
|
+
export interface AzeritEessenceMedia extends LinkSelfHref {
|
|
21
|
+
assets: Asset[];
|
|
22
|
+
id: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns Azerite Essences Index
|
|
26
|
+
*
|
|
27
|
+
* @returns A promise that resolves to an object representing a list of all Azerite Essences.
|
|
28
|
+
*/
|
|
29
|
+
export declare function azeriteEssences(ctx: ApiContext): Promise<AzeriteEssences>;
|
|
30
|
+
/**
|
|
31
|
+
* Returns details about a specific Azerite Essence Id
|
|
32
|
+
*
|
|
33
|
+
* @param azeriteEssenceId - The unique identifier Azerite Essence.
|
|
34
|
+
* @returns A promise that resolves to an object representing details about an Azerite Essences.
|
|
35
|
+
*/
|
|
36
|
+
export declare function azeriteEssence(ctx: ApiContext, azeriteEssenceId: number): Promise<AzeriteEssenceDetails>;
|
|
37
|
+
/**
|
|
38
|
+
* Performs a search of azerite essences.
|
|
39
|
+
*
|
|
40
|
+
* @param SearchParameters - Object containing search parameters.
|
|
41
|
+
* @returns A promise that resolves to an object representing details about a Azerite Essences search.
|
|
42
|
+
*/
|
|
43
|
+
export declare function searchAzeriteEssence(ctx: ApiContext, searchParameters: SearchParameters): Promise<Search>;
|
|
44
|
+
/**
|
|
45
|
+
* Returns media details about a specific Azerite Essence Id
|
|
46
|
+
*
|
|
47
|
+
* @param azeriteEssenceId - The unique identifier Azerite Essence.
|
|
48
|
+
* @returns A promise that resolves to an object representing media details about an Azerite Essences.
|
|
49
|
+
*/
|
|
50
|
+
export declare function azeriteEssenceMedia(ctx: ApiContext, azeriteEssenceId: number): Promise<AzeritEessenceMedia>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.azeriteEssences = azeriteEssences;
|
|
4
|
+
exports.azeriteEssence = azeriteEssence;
|
|
5
|
+
exports.searchAzeriteEssence = searchAzeriteEssence;
|
|
6
|
+
exports.azeriteEssenceMedia = azeriteEssenceMedia;
|
|
7
|
+
const search_js_1 = require("../search.js");
|
|
8
|
+
/**
|
|
9
|
+
* Returns Azerite Essences Index
|
|
10
|
+
*
|
|
11
|
+
* @returns A promise that resolves to an object representing a list of all Azerite Essences.
|
|
12
|
+
*/
|
|
13
|
+
async function azeriteEssences(ctx) {
|
|
14
|
+
return await ctx.request({
|
|
15
|
+
method: "GET",
|
|
16
|
+
url: "/data/wow/azerite-essence/index",
|
|
17
|
+
namespace: "static",
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Returns details about a specific Azerite Essence Id
|
|
22
|
+
*
|
|
23
|
+
* @param azeriteEssenceId - The unique identifier Azerite Essence.
|
|
24
|
+
* @returns A promise that resolves to an object representing details about an Azerite Essences.
|
|
25
|
+
*/
|
|
26
|
+
async function azeriteEssence(ctx, azeriteEssenceId) {
|
|
27
|
+
return await ctx.request({
|
|
28
|
+
method: "GET",
|
|
29
|
+
url: `/data/wow/azerite-essence/${azeriteEssenceId}`,
|
|
30
|
+
namespace: "static",
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Performs a search of azerite essences.
|
|
35
|
+
*
|
|
36
|
+
* @param SearchParameters - Object containing search parameters.
|
|
37
|
+
* @returns A promise that resolves to an object representing details about a Azerite Essences search.
|
|
38
|
+
*/
|
|
39
|
+
async function searchAzeriteEssence(ctx, searchParameters) {
|
|
40
|
+
return await (0, search_js_1.search)(ctx, "/azerite-essence", "static", searchParameters);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Returns media details about a specific Azerite Essence Id
|
|
44
|
+
*
|
|
45
|
+
* @param azeriteEssenceId - The unique identifier Azerite Essence.
|
|
46
|
+
* @returns A promise that resolves to an object representing media details about an Azerite Essences.
|
|
47
|
+
*/
|
|
48
|
+
async function azeriteEssenceMedia(ctx, azeriteEssenceId) {
|
|
49
|
+
return await ctx.request({
|
|
50
|
+
method: "GET",
|
|
51
|
+
url: `/data/wow/media/azerite-essence/${azeriteEssenceId}`,
|
|
52
|
+
namespace: "static",
|
|
53
|
+
});
|
|
54
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
|
|
3
|
+
import type { Search, SearchParameters } from "../search.js";
|
|
4
|
+
export interface ConnectedRealms extends LinkSelfHref {
|
|
5
|
+
connected_realms: {
|
|
6
|
+
href: string;
|
|
7
|
+
}[];
|
|
8
|
+
}
|
|
9
|
+
export interface ConnectedRealmRealm {
|
|
10
|
+
id: number;
|
|
11
|
+
region: KeyNameId;
|
|
12
|
+
connected_realm: {
|
|
13
|
+
href: string;
|
|
14
|
+
};
|
|
15
|
+
name: LocalizedString;
|
|
16
|
+
category: LocalizedString;
|
|
17
|
+
locale: string;
|
|
18
|
+
timezone: string;
|
|
19
|
+
type: TypeName;
|
|
20
|
+
is_tournament: boolean;
|
|
21
|
+
slug: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ConnectedRealm extends LinkSelfHref {
|
|
24
|
+
id: number;
|
|
25
|
+
has_queue: boolean;
|
|
26
|
+
status: TypeName;
|
|
27
|
+
population: TypeName;
|
|
28
|
+
realms: ConnectedRealmRealm[];
|
|
29
|
+
mythic_leaderboards: {
|
|
30
|
+
href: string;
|
|
31
|
+
};
|
|
32
|
+
auctions: {
|
|
33
|
+
href: string;
|
|
34
|
+
};
|
|
35
|
+
pvp_season?: {
|
|
36
|
+
href: string;
|
|
37
|
+
};
|
|
38
|
+
realm_locked_status?: {
|
|
39
|
+
is_locked_for_pct: boolean;
|
|
40
|
+
is_locked_for_new_characters: boolean;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns the Connected Realms Index
|
|
45
|
+
*
|
|
46
|
+
* @returns A promise that resolves to an object representing a list of all Connected Realms.
|
|
47
|
+
*/
|
|
48
|
+
export declare function connectedRealms(ctx: ApiContext): Promise<ConnectedRealms>;
|
|
49
|
+
/**
|
|
50
|
+
* Returns details about a Connected Realms Id
|
|
51
|
+
*
|
|
52
|
+
* @param connectedRealmId - The unique identifier Connected Realms.
|
|
53
|
+
* @returns A promise that resolves to an object representing details about an Connected Realms.
|
|
54
|
+
*/
|
|
55
|
+
export declare function connectedRealm(ctx: ApiContext, connectedRealmId: number): Promise<ConnectedRealm>;
|
|
56
|
+
/**
|
|
57
|
+
* Performs a search of connected realms.
|
|
58
|
+
*
|
|
59
|
+
* @param SearchParameters - Object containing search parameters.
|
|
60
|
+
* @returns A promise that resolves to an object representing details about the connected realms search.
|
|
61
|
+
*/
|
|
62
|
+
export declare function searchConnectedRealm(ctx: ApiContext, searchParameters: SearchParameters): Promise<Search>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.connectedRealms = connectedRealms;
|
|
4
|
+
exports.connectedRealm = connectedRealm;
|
|
5
|
+
exports.searchConnectedRealm = searchConnectedRealm;
|
|
6
|
+
const search_js_1 = require("../search.js");
|
|
7
|
+
/**
|
|
8
|
+
* Returns the Connected Realms Index
|
|
9
|
+
*
|
|
10
|
+
* @returns A promise that resolves to an object representing a list of all Connected Realms.
|
|
11
|
+
*/
|
|
12
|
+
async function connectedRealms(ctx) {
|
|
13
|
+
return await ctx.request({
|
|
14
|
+
method: "GET",
|
|
15
|
+
url: "/data/wow/connected-realm/index",
|
|
16
|
+
namespace: "dynamic",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Returns details about a Connected Realms Id
|
|
21
|
+
*
|
|
22
|
+
* @param connectedRealmId - The unique identifier Connected Realms.
|
|
23
|
+
* @returns A promise that resolves to an object representing details about an Connected Realms.
|
|
24
|
+
*/
|
|
25
|
+
async function connectedRealm(ctx, connectedRealmId) {
|
|
26
|
+
return await ctx.request({
|
|
27
|
+
method: "GET",
|
|
28
|
+
url: `/data/wow/connected-realm/${connectedRealmId}`,
|
|
29
|
+
namespace: "dynamic",
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Performs a search of connected realms.
|
|
34
|
+
*
|
|
35
|
+
* @param SearchParameters - Object containing search parameters.
|
|
36
|
+
* @returns A promise that resolves to an object representing details about the connected realms search.
|
|
37
|
+
*/
|
|
38
|
+
async function searchConnectedRealm(ctx, searchParameters) {
|
|
39
|
+
return await (0, search_js_1.search)(ctx, "/connected-realm", "dynamic", searchParameters);
|
|
40
|
+
}
|