@pinta365/blizzard_api 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -0
- package/README.md +153 -37
- package/esm/mod.d.ts +43 -6
- package/esm/mod.js +69 -6
- package/esm/src/client.d.ts +95 -0
- package/esm/src/client.js +52 -0
- package/esm/src/diablo3/community/act.d.ts +29 -0
- package/esm/src/diablo3/community/act.js +23 -0
- package/esm/src/diablo3/community/artisan.d.ts +50 -0
- package/esm/src/diablo3/community/artisan.js +25 -0
- package/esm/src/diablo3/community/follower.d.ts +25 -0
- package/esm/src/diablo3/community/follower.js +12 -0
- package/esm/src/diablo3/community/hero.d.ts +57 -0
- package/esm/src/diablo3/community/hero.js +25 -0
- package/esm/src/diablo3/community/item.d.ts +48 -0
- package/esm/src/diablo3/community/item.js +12 -0
- package/esm/src/diablo3/community/item_type.d.ts +26 -0
- package/esm/src/diablo3/community/item_type.js +23 -0
- package/esm/src/diablo3/community/profile.d.ts +352 -0
- package/esm/src/diablo3/community/profile.js +61 -0
- package/esm/src/diablo3/game_data/d3.d.ts +127 -0
- package/esm/src/diablo3/game_data/d3.js +72 -0
- package/esm/src/diablo3/index.d.ts +8 -0
- package/esm/src/diablo3/index.js +8 -0
- package/esm/src/diablo3/types.d.ts +8 -0
- package/esm/src/diablo3/types.js +1 -0
- package/esm/src/generated/diablo3_api.d.ts +156 -0
- package/esm/src/generated/diablo3_api.js +2 -0
- package/esm/src/generated/hearthstone_api.d.ts +51 -0
- package/esm/src/generated/hearthstone_api.js +2 -0
- package/esm/src/generated/sc2_api.d.ts +139 -0
- package/esm/src/generated/sc2_api.js +2 -0
- package/esm/src/generated/wow_api.d.ts +1482 -0
- package/esm/src/generated/wow_api.js +2 -0
- package/esm/src/generated/wow_classic_api.d.ts +555 -0
- package/esm/src/generated/wow_classic_api.js +2 -0
- package/esm/src/generated/wow_classic_era_api.d.ts +418 -0
- package/esm/src/generated/wow_classic_era_api.js +2 -0
- package/esm/src/hearthstone/game_data/card_backs.d.ts +31 -0
- package/esm/src/hearthstone/game_data/card_backs.js +22 -0
- package/esm/src/hearthstone/game_data/cards.d.ts +55 -0
- package/esm/src/hearthstone/game_data/cards.js +26 -0
- package/esm/src/hearthstone/game_data/decks.d.ts +29 -0
- package/esm/src/hearthstone/game_data/decks.js +13 -0
- package/esm/src/hearthstone/game_data/metadata.d.ts +82 -0
- package/esm/src/hearthstone/game_data/metadata.js +11 -0
- package/esm/src/hearthstone/index.d.ts +4 -0
- package/esm/src/hearthstone/index.js +4 -0
- package/esm/src/hearthstone/search.d.ts +21 -0
- package/esm/src/hearthstone/search.js +28 -0
- package/esm/src/hearthstone/types.d.ts +5 -0
- package/esm/src/hearthstone/types.js +1 -0
- package/esm/src/shared/bind.d.ts +14 -0
- package/esm/src/shared/bind.js +15 -0
- package/esm/src/shared/context.d.ts +163 -0
- package/esm/src/shared/context.js +304 -0
- package/esm/src/shared/errors.d.ts +53 -0
- package/esm/src/shared/errors.js +95 -0
- package/esm/src/shared/index.d.ts +4 -0
- package/esm/src/shared/index.js +2 -0
- package/esm/src/shared/types.d.ts +133 -0
- package/esm/src/shared/types.js +2 -0
- package/esm/src/starcraft2/community/account.d.ts +19 -0
- package/esm/src/starcraft2/community/account.js +15 -0
- package/esm/src/starcraft2/community/ladder.d.ts +29 -0
- package/esm/src/starcraft2/community/ladder.js +27 -0
- package/esm/src/starcraft2/community/legacy.d.ts +206 -0
- package/esm/src/starcraft2/community/legacy.js +83 -0
- package/esm/src/starcraft2/community/profile.d.ts +255 -0
- package/esm/src/starcraft2/community/profile.js +73 -0
- package/esm/src/starcraft2/game_data/league.d.ts +35 -0
- package/esm/src/starcraft2/game_data/league.js +20 -0
- package/esm/src/starcraft2/index.d.ts +5 -0
- package/esm/src/starcraft2/index.js +5 -0
- package/esm/src/starcraft2/types.d.ts +5 -0
- package/esm/src/starcraft2/types.js +1 -0
- package/esm/src/wow/game_data/achievement.d.ts +87 -0
- package/esm/src/wow/game_data/achievement.js +68 -0
- package/esm/src/wow/game_data/auction_house.d.ts +65 -0
- package/esm/src/wow/game_data/auction_house.js +33 -0
- package/esm/src/wow/game_data/azerite_essence.d.ts +50 -0
- package/esm/src/wow/game_data/azerite_essence.js +48 -0
- package/esm/src/wow/game_data/connected_realm.d.ts +62 -0
- package/esm/src/wow/game_data/connected_realm.js +35 -0
- package/esm/src/wow/game_data/covenant.d.ts +115 -0
- package/esm/src/wow/game_data/covenant.js +88 -0
- package/esm/src/wow/game_data/creature.d.ts +98 -0
- package/esm/src/wow/game_data/creature.js +99 -0
- package/esm/src/wow/game_data/guild_crest.d.ts +56 -0
- package/esm/src/wow/game_data/guild_crest.js +38 -0
- package/esm/src/wow/game_data/heirloom.d.ts +82 -0
- package/esm/src/wow/game_data/heirloom.js +25 -0
- package/esm/src/wow/game_data/housing.d.ts +111 -0
- package/esm/src/wow/game_data/housing.js +124 -0
- package/esm/src/wow/game_data/item.d.ts +183 -0
- package/esm/src/wow/game_data/item.js +100 -0
- package/esm/src/wow/game_data/item_appearance.d.ts +102 -0
- package/esm/src/wow/game_data/item_appearance.js +73 -0
- package/esm/src/wow/game_data/journal.d.ts +124 -0
- package/esm/src/wow/game_data/journal.js +98 -0
- package/esm/src/wow/game_data/keystone_affix.d.ts +39 -0
- package/esm/src/wow/game_data/keystone_affix.js +38 -0
- package/esm/src/wow/game_data/media_search.d.ts +9 -0
- package/esm/src/wow/game_data/media_search.js +10 -0
- package/esm/src/wow/game_data/modified_crafting.d.ts +65 -0
- package/esm/src/wow/game_data/modified_crafting.js +62 -0
- package/esm/src/wow/game_data/mount.d.ts +38 -0
- package/esm/src/wow/game_data/mount.js +35 -0
- package/esm/src/wow/game_data/mythic_keystone_dungeon.d.ts +92 -0
- package/esm/src/wow/game_data/mythic_keystone_dungeon.js +87 -0
- package/esm/src/wow/game_data/mythic_keystone_leaderboard.d.ts +70 -0
- package/esm/src/wow/game_data/mythic_keystone_leaderboard.js +28 -0
- package/esm/src/wow/game_data/mythic_raid_leaderboard.d.ts +36 -0
- package/esm/src/wow/game_data/mythic_raid_leaderboard.js +14 -0
- package/esm/src/wow/game_data/neighborhood.d.ts +36 -0
- package/esm/src/wow/game_data/neighborhood.js +38 -0
- package/esm/src/wow/game_data/pet.d.ts +93 -0
- package/esm/src/wow/game_data/pet.js +76 -0
- package/esm/src/wow/game_data/playable_class.d.ts +58 -0
- package/esm/src/wow/game_data/playable_class.js +51 -0
- package/esm/src/wow/game_data/playable_race.d.ts +31 -0
- package/esm/src/wow/game_data/playable_race.js +25 -0
- package/esm/src/wow/game_data/playable_specialization.d.ts +63 -0
- package/esm/src/wow/game_data/playable_specialization.js +38 -0
- package/esm/src/wow/game_data/power_type.d.ts +22 -0
- package/esm/src/wow/game_data/power_type.js +25 -0
- package/esm/src/wow/game_data/profession.d.ts +88 -0
- package/esm/src/wow/game_data/profession.js +78 -0
- package/esm/src/wow/game_data/pvp_season.d.ts +108 -0
- package/esm/src/wow/game_data/pvp_season.js +66 -0
- package/esm/src/wow/game_data/pvp_tier.d.ts +41 -0
- package/esm/src/wow/game_data/pvp_tier.js +38 -0
- package/esm/src/wow/game_data/quest.d.ts +116 -0
- package/esm/src/wow/game_data/quest.js +100 -0
- package/esm/src/wow/game_data/realm.d.ts +43 -0
- package/esm/src/wow/game_data/realm.js +35 -0
- package/esm/src/wow/game_data/region.d.ts +26 -0
- package/esm/src/wow/game_data/region.js +25 -0
- package/esm/src/wow/game_data/reputations.d.ts +57 -0
- package/esm/src/wow/game_data/reputations.js +50 -0
- package/esm/src/wow/game_data/spell.d.ts +34 -0
- package/esm/src/wow/game_data/spell.js +36 -0
- package/esm/src/wow/game_data/talent.d.ts +143 -0
- package/esm/src/wow/game_data/talent.js +89 -0
- package/esm/src/wow/game_data/tech_talent.d.ts +72 -0
- package/esm/src/wow/game_data/tech_talent.js +63 -0
- package/esm/src/wow/game_data/title.d.ts +33 -0
- package/esm/src/wow/game_data/title.js +25 -0
- package/esm/src/wow/game_data/token.d.ts +17 -0
- package/esm/src/wow/game_data/token.js +18 -0
- package/esm/src/wow/game_data/toy.d.ts +25 -0
- package/esm/src/wow/game_data/toy.js +25 -0
- package/esm/src/wow/index.d.ts +59 -0
- package/esm/src/wow/index.js +61 -0
- package/esm/src/wow/profile/account_profile.d.ts +185 -0
- package/esm/src/wow/profile/account_profile.js +132 -0
- package/esm/src/wow/profile/character_achievements.d.ts +88 -0
- package/esm/src/wow/profile/character_achievements.js +28 -0
- package/esm/src/wow/profile/character_appearance.d.ts +79 -0
- package/esm/src/wow/profile/character_appearance.js +14 -0
- package/esm/src/wow/profile/character_collections.d.ts +132 -0
- package/esm/src/wow/profile/character_collections.js +98 -0
- package/esm/src/wow/profile/character_encounters.d.ts +78 -0
- package/esm/src/wow/profile/character_encounters.js +42 -0
- package/esm/src/wow/profile/character_equipment.d.ts +177 -0
- package/esm/src/wow/profile/character_equipment.js +14 -0
- package/esm/src/wow/profile/character_house.d.ts +16 -0
- package/esm/src/wow/profile/character_house.js +17 -0
- package/esm/src/wow/profile/character_hunter_pets.d.ts +22 -0
- package/esm/src/wow/profile/character_hunter_pets.js +14 -0
- package/esm/src/wow/profile/character_media.d.ts +14 -0
- package/esm/src/wow/profile/character_media.js +14 -0
- package/esm/src/wow/profile/character_mythic_keystone_profile.d.ts +70 -0
- package/esm/src/wow/profile/character_mythic_keystone_profile.js +31 -0
- package/esm/src/wow/profile/character_professions.d.ts +29 -0
- package/esm/src/wow/profile/character_professions.js +14 -0
- package/esm/src/wow/profile/character_profile.d.ts +83 -0
- package/esm/src/wow/profile/character_profile.js +39 -0
- package/esm/src/wow/profile/character_pvp.d.ts +53 -0
- package/esm/src/wow/profile/character_pvp.js +29 -0
- package/esm/src/wow/profile/character_quests.d.ts +29 -0
- package/esm/src/wow/profile/character_quests.js +28 -0
- package/esm/src/wow/profile/character_reputations.d.ts +30 -0
- package/esm/src/wow/profile/character_reputations.js +14 -0
- package/esm/src/wow/profile/character_soulbinds.d.ts +31 -0
- package/esm/src/wow/profile/character_soulbinds.js +14 -0
- package/esm/src/wow/profile/character_specializations.d.ts +82 -0
- package/esm/src/wow/profile/character_specializations.js +14 -0
- package/esm/src/wow/profile/character_statistics.d.ts +104 -0
- package/esm/src/wow/profile/character_statistics.js +14 -0
- package/esm/src/wow/profile/character_titles.d.ts +14 -0
- package/esm/src/wow/profile/character_titles.js +14 -0
- package/esm/src/wow/profile/guild.d.ts +150 -0
- package/esm/src/wow/profile/guild.js +56 -0
- package/esm/src/wow/search.d.ts +23 -0
- package/esm/src/wow/search.js +29 -0
- package/esm/src/wow/types.d.ts +58 -0
- package/esm/src/wow/types.js +1 -0
- package/esm/src/wow_classic/auction_house.d.ts +41 -0
- package/esm/src/wow_classic/auction_house.js +31 -0
- package/esm/src/wow_classic/character_specializations.d.ts +45 -0
- package/esm/src/wow_classic/character_specializations.js +18 -0
- package/esm/src/wow_classic/era.d.ts +8 -0
- package/esm/src/wow_classic/era.js +10 -0
- package/esm/src/wow_classic/index.d.ts +15 -0
- package/esm/src/wow_classic/index.js +17 -0
- package/esm/src/wow_classic/profile_overrides.d.ts +125 -0
- package/esm/src/wow_classic/profile_overrides.js +111 -0
- package/esm/src/wow_classic/shared.d.ts +23 -0
- package/esm/src/wow_classic/shared.js +26 -0
- package/esm/src/wow_classic/types.d.ts +3 -0
- package/esm/src/wow_classic/types.js +1 -0
- package/package.json +23 -2
- package/script/mod.d.ts +43 -6
- package/script/mod.js +91 -21
- package/script/src/client.d.ts +95 -0
- package/script/src/client.js +89 -0
- package/script/src/diablo3/community/act.d.ts +29 -0
- package/script/src/diablo3/community/act.js +27 -0
- package/script/src/diablo3/community/artisan.d.ts +50 -0
- package/script/src/diablo3/community/artisan.js +29 -0
- package/script/src/diablo3/community/follower.d.ts +25 -0
- package/script/src/diablo3/community/follower.js +15 -0
- package/script/src/diablo3/community/hero.d.ts +57 -0
- package/script/src/diablo3/community/hero.js +29 -0
- package/script/src/diablo3/community/item.d.ts +48 -0
- package/script/src/diablo3/community/item.js +15 -0
- package/script/src/diablo3/community/item_type.d.ts +26 -0
- package/script/src/diablo3/community/item_type.js +27 -0
- package/script/src/diablo3/community/profile.d.ts +352 -0
- package/script/src/diablo3/community/profile.js +67 -0
- package/script/src/diablo3/game_data/d3.d.ts +127 -0
- package/script/src/diablo3/game_data/d3.js +80 -0
- package/script/src/diablo3/index.d.ts +8 -0
- package/script/src/diablo3/index.js +31 -0
- package/script/src/diablo3/types.d.ts +8 -0
- package/script/src/diablo3/types.js +2 -0
- package/script/src/generated/diablo3_api.d.ts +156 -0
- package/script/src/generated/diablo3_api.js +3 -0
- package/script/src/generated/hearthstone_api.d.ts +51 -0
- package/script/src/generated/hearthstone_api.js +3 -0
- package/script/src/generated/sc2_api.d.ts +139 -0
- package/script/src/generated/sc2_api.js +3 -0
- package/script/src/generated/wow_api.d.ts +1482 -0
- package/script/src/generated/wow_api.js +3 -0
- package/script/src/generated/wow_classic_api.d.ts +555 -0
- package/script/src/generated/wow_classic_api.js +3 -0
- package/script/src/generated/wow_classic_era_api.d.ts +418 -0
- package/script/src/generated/wow_classic_era_api.js +3 -0
- package/script/src/hearthstone/game_data/card_backs.d.ts +31 -0
- package/script/src/hearthstone/game_data/card_backs.js +26 -0
- package/script/src/hearthstone/game_data/cards.d.ts +55 -0
- package/script/src/hearthstone/game_data/cards.js +30 -0
- package/script/src/hearthstone/game_data/decks.d.ts +29 -0
- package/script/src/hearthstone/game_data/decks.js +16 -0
- package/script/src/hearthstone/game_data/metadata.d.ts +82 -0
- package/script/src/hearthstone/game_data/metadata.js +14 -0
- package/script/src/hearthstone/index.d.ts +4 -0
- package/script/src/hearthstone/index.js +13 -0
- package/script/src/hearthstone/search.d.ts +21 -0
- package/script/src/hearthstone/search.js +31 -0
- package/script/src/hearthstone/types.d.ts +5 -0
- package/script/src/hearthstone/types.js +2 -0
- package/script/src/shared/bind.d.ts +14 -0
- package/script/src/shared/bind.js +18 -0
- package/script/src/shared/context.d.ts +163 -0
- package/script/src/shared/context.js +312 -0
- package/script/src/shared/errors.d.ts +53 -0
- package/script/src/shared/errors.js +104 -0
- package/script/src/shared/index.d.ts +4 -0
- package/script/src/shared/index.js +10 -0
- package/script/src/shared/types.d.ts +133 -0
- package/script/src/shared/types.js +3 -0
- package/script/src/starcraft2/community/account.d.ts +19 -0
- package/script/src/starcraft2/community/account.js +18 -0
- package/script/src/starcraft2/community/ladder.d.ts +29 -0
- package/script/src/starcraft2/community/ladder.js +31 -0
- package/script/src/starcraft2/community/legacy.d.ts +206 -0
- package/script/src/starcraft2/community/legacy.js +91 -0
- package/script/src/starcraft2/community/profile.d.ts +255 -0
- package/script/src/starcraft2/community/profile.js +80 -0
- package/script/src/starcraft2/game_data/league.d.ts +35 -0
- package/script/src/starcraft2/game_data/league.js +23 -0
- package/script/src/starcraft2/index.d.ts +5 -0
- package/script/src/starcraft2/index.js +23 -0
- package/script/src/starcraft2/types.d.ts +5 -0
- package/script/src/starcraft2/types.js +2 -0
- package/script/src/wow/game_data/achievement.d.ts +87 -0
- package/script/src/wow/game_data/achievement.js +75 -0
- package/script/src/wow/game_data/auction_house.d.ts +65 -0
- package/script/src/wow/game_data/auction_house.js +37 -0
- package/script/src/wow/game_data/azerite_essence.d.ts +50 -0
- package/script/src/wow/game_data/azerite_essence.js +54 -0
- package/script/src/wow/game_data/connected_realm.d.ts +62 -0
- package/script/src/wow/game_data/connected_realm.js +40 -0
- package/script/src/wow/game_data/covenant.d.ts +115 -0
- package/script/src/wow/game_data/covenant.js +97 -0
- package/script/src/wow/game_data/creature.d.ts +98 -0
- package/script/src/wow/game_data/creature.js +109 -0
- package/script/src/wow/game_data/guild_crest.d.ts +56 -0
- package/script/src/wow/game_data/guild_crest.js +43 -0
- package/script/src/wow/game_data/heirloom.d.ts +82 -0
- package/script/src/wow/game_data/heirloom.js +29 -0
- package/script/src/wow/game_data/housing.d.ts +111 -0
- package/script/src/wow/game_data/housing.js +138 -0
- package/script/src/wow/game_data/item.d.ts +183 -0
- package/script/src/wow/game_data/item.js +110 -0
- package/script/src/wow/game_data/item_appearance.d.ts +102 -0
- package/script/src/wow/game_data/item_appearance.js +81 -0
- package/script/src/wow/game_data/journal.d.ts +124 -0
- package/script/src/wow/game_data/journal.js +108 -0
- package/script/src/wow/game_data/keystone_affix.d.ts +39 -0
- package/script/src/wow/game_data/keystone_affix.js +43 -0
- package/script/src/wow/game_data/media_search.d.ts +9 -0
- package/script/src/wow/game_data/media_search.js +13 -0
- package/script/src/wow/game_data/modified_crafting.d.ts +65 -0
- package/script/src/wow/game_data/modified_crafting.js +69 -0
- package/script/src/wow/game_data/mount.d.ts +38 -0
- package/script/src/wow/game_data/mount.js +40 -0
- package/script/src/wow/game_data/mythic_keystone_dungeon.d.ts +92 -0
- package/script/src/wow/game_data/mythic_keystone_dungeon.js +96 -0
- package/script/src/wow/game_data/mythic_keystone_leaderboard.d.ts +70 -0
- package/script/src/wow/game_data/mythic_keystone_leaderboard.js +32 -0
- package/script/src/wow/game_data/mythic_raid_leaderboard.d.ts +36 -0
- package/script/src/wow/game_data/mythic_raid_leaderboard.js +17 -0
- package/script/src/wow/game_data/neighborhood.d.ts +36 -0
- package/script/src/wow/game_data/neighborhood.js +43 -0
- package/script/src/wow/game_data/pet.d.ts +93 -0
- package/script/src/wow/game_data/pet.js +84 -0
- package/script/src/wow/game_data/playable_class.d.ts +58 -0
- package/script/src/wow/game_data/playable_class.js +57 -0
- package/script/src/wow/game_data/playable_race.d.ts +31 -0
- package/script/src/wow/game_data/playable_race.js +29 -0
- package/script/src/wow/game_data/playable_specialization.d.ts +63 -0
- package/script/src/wow/game_data/playable_specialization.js +43 -0
- package/script/src/wow/game_data/power_type.d.ts +22 -0
- package/script/src/wow/game_data/power_type.js +29 -0
- package/script/src/wow/game_data/profession.d.ts +88 -0
- package/script/src/wow/game_data/profession.js +86 -0
- package/script/src/wow/game_data/pvp_season.d.ts +108 -0
- package/script/src/wow/game_data/pvp_season.js +73 -0
- package/script/src/wow/game_data/pvp_tier.d.ts +41 -0
- package/script/src/wow/game_data/pvp_tier.js +43 -0
- package/script/src/wow/game_data/quest.d.ts +116 -0
- package/script/src/wow/game_data/quest.js +110 -0
- package/script/src/wow/game_data/realm.d.ts +43 -0
- package/script/src/wow/game_data/realm.js +40 -0
- package/script/src/wow/game_data/region.d.ts +26 -0
- package/script/src/wow/game_data/region.js +29 -0
- package/script/src/wow/game_data/reputations.d.ts +57 -0
- package/script/src/wow/game_data/reputations.js +56 -0
- package/script/src/wow/game_data/spell.d.ts +34 -0
- package/script/src/wow/game_data/spell.js +41 -0
- package/script/src/wow/game_data/talent.d.ts +143 -0
- package/script/src/wow/game_data/talent.js +98 -0
- package/script/src/wow/game_data/tech_talent.d.ts +72 -0
- package/script/src/wow/game_data/tech_talent.js +70 -0
- package/script/src/wow/game_data/title.d.ts +33 -0
- package/script/src/wow/game_data/title.js +29 -0
- package/script/src/wow/game_data/token.d.ts +17 -0
- package/script/src/wow/game_data/token.js +21 -0
- package/script/src/wow/game_data/toy.d.ts +25 -0
- package/script/src/wow/game_data/toy.js +29 -0
- package/script/src/wow/index.d.ts +59 -0
- package/script/src/wow/index.js +272 -0
- package/script/src/wow/profile/account_profile.d.ts +185 -0
- package/script/src/wow/profile/account_profile.js +143 -0
- package/script/src/wow/profile/character_achievements.d.ts +88 -0
- package/script/src/wow/profile/character_achievements.js +32 -0
- package/script/src/wow/profile/character_appearance.d.ts +79 -0
- package/script/src/wow/profile/character_appearance.js +17 -0
- package/script/src/wow/profile/character_collections.d.ts +132 -0
- package/script/src/wow/profile/character_collections.js +107 -0
- package/script/src/wow/profile/character_encounters.d.ts +78 -0
- package/script/src/wow/profile/character_encounters.js +47 -0
- package/script/src/wow/profile/character_equipment.d.ts +177 -0
- package/script/src/wow/profile/character_equipment.js +17 -0
- package/script/src/wow/profile/character_house.d.ts +16 -0
- package/script/src/wow/profile/character_house.js +20 -0
- package/script/src/wow/profile/character_hunter_pets.d.ts +22 -0
- package/script/src/wow/profile/character_hunter_pets.js +17 -0
- package/script/src/wow/profile/character_media.d.ts +14 -0
- package/script/src/wow/profile/character_media.js +17 -0
- package/script/src/wow/profile/character_mythic_keystone_profile.d.ts +70 -0
- package/script/src/wow/profile/character_mythic_keystone_profile.js +35 -0
- package/script/src/wow/profile/character_professions.d.ts +29 -0
- package/script/src/wow/profile/character_professions.js +17 -0
- package/script/src/wow/profile/character_profile.d.ts +83 -0
- package/script/src/wow/profile/character_profile.js +43 -0
- package/script/src/wow/profile/character_pvp.d.ts +53 -0
- package/script/src/wow/profile/character_pvp.js +33 -0
- package/script/src/wow/profile/character_quests.d.ts +29 -0
- package/script/src/wow/profile/character_quests.js +32 -0
- package/script/src/wow/profile/character_reputations.d.ts +30 -0
- package/script/src/wow/profile/character_reputations.js +17 -0
- package/script/src/wow/profile/character_soulbinds.d.ts +31 -0
- package/script/src/wow/profile/character_soulbinds.js +17 -0
- package/script/src/wow/profile/character_specializations.d.ts +82 -0
- package/script/src/wow/profile/character_specializations.js +17 -0
- package/script/src/wow/profile/character_statistics.d.ts +104 -0
- package/script/src/wow/profile/character_statistics.js +17 -0
- package/script/src/wow/profile/character_titles.d.ts +14 -0
- package/script/src/wow/profile/character_titles.js +17 -0
- package/script/src/wow/profile/guild.d.ts +150 -0
- package/script/src/wow/profile/guild.js +62 -0
- package/script/src/wow/search.d.ts +23 -0
- package/script/src/wow/search.js +32 -0
- package/script/src/wow/types.d.ts +58 -0
- package/script/src/wow/types.js +2 -0
- package/script/src/wow_classic/auction_house.d.ts +41 -0
- package/script/src/wow_classic/auction_house.js +35 -0
- package/script/src/wow_classic/character_specializations.d.ts +45 -0
- package/script/src/wow_classic/character_specializations.js +21 -0
- package/script/src/wow_classic/era.d.ts +8 -0
- package/script/src/wow_classic/era.js +30 -0
- package/script/src/wow_classic/index.d.ts +15 -0
- package/script/src/wow_classic/index.js +55 -0
- package/script/src/wow_classic/profile_overrides.d.ts +125 -0
- package/script/src/wow_classic/profile_overrides.js +123 -0
- package/script/src/wow_classic/shared.d.ts +23 -0
- package/script/src/wow_classic/shared.js +81 -0
- package/script/src/wow_classic/types.d.ts +3 -0
- package/script/src/wow_classic/types.js +2 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, NamedRef, NameId, TypeName } from "../../shared/index.js";
|
|
3
|
+
export interface Covenants extends LinkSelfHref {
|
|
4
|
+
covenants: KeyNameId[];
|
|
5
|
+
}
|
|
6
|
+
export interface CovenantAbilitySpellTooltip {
|
|
7
|
+
spell: KeyNameId;
|
|
8
|
+
description: LocalizedString;
|
|
9
|
+
cast_time: string;
|
|
10
|
+
power_cost?: string | number | null;
|
|
11
|
+
range?: string;
|
|
12
|
+
cooldown?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface SignatureAbility {
|
|
15
|
+
id: number;
|
|
16
|
+
spell_tooltip: CovenantAbilitySpellTooltip;
|
|
17
|
+
}
|
|
18
|
+
export interface ClassAbility {
|
|
19
|
+
id: number;
|
|
20
|
+
playable_class: KeyNameId;
|
|
21
|
+
spell_tooltip: CovenantAbilitySpellTooltip;
|
|
22
|
+
}
|
|
23
|
+
export interface Covenant extends LinkSelfHref {
|
|
24
|
+
id: number;
|
|
25
|
+
name: LocalizedString;
|
|
26
|
+
description: LocalizedString;
|
|
27
|
+
signature_ability: SignatureAbility;
|
|
28
|
+
class_abilities: ClassAbility[];
|
|
29
|
+
renown_rewards: {
|
|
30
|
+
level: number;
|
|
31
|
+
reward: NamedRef;
|
|
32
|
+
}[];
|
|
33
|
+
soulbinds?: NamedRef[];
|
|
34
|
+
media: KeyId;
|
|
35
|
+
}
|
|
36
|
+
export interface CovenantMedia extends LinkSelfHref {
|
|
37
|
+
assets: Asset[];
|
|
38
|
+
}
|
|
39
|
+
export interface CovenantSoulbinds extends LinkSelfHref {
|
|
40
|
+
soulbinds: KeyNameId[];
|
|
41
|
+
}
|
|
42
|
+
export interface CovenantSoulbind extends LinkSelfHref {
|
|
43
|
+
id: number;
|
|
44
|
+
name: LocalizedString;
|
|
45
|
+
covenant: KeyNameId;
|
|
46
|
+
creature: KeyNameId;
|
|
47
|
+
follower: NameId;
|
|
48
|
+
talent_tree: KeyNameId;
|
|
49
|
+
}
|
|
50
|
+
export interface CovenantConduits extends LinkSelfHref {
|
|
51
|
+
conduits: KeyNameId[];
|
|
52
|
+
}
|
|
53
|
+
export interface CovenantConduitSpellTooltip {
|
|
54
|
+
spell: KeyNameId;
|
|
55
|
+
description: LocalizedString;
|
|
56
|
+
cast_time: string;
|
|
57
|
+
}
|
|
58
|
+
export interface CovenantConduitRank {
|
|
59
|
+
id: number;
|
|
60
|
+
tier: number;
|
|
61
|
+
spell_tooltip: CovenantConduitSpellTooltip;
|
|
62
|
+
}
|
|
63
|
+
export interface CovenantConduit extends LinkSelfHref {
|
|
64
|
+
id: number;
|
|
65
|
+
name: LocalizedString;
|
|
66
|
+
item: KeyNameId;
|
|
67
|
+
socket_type: TypeName;
|
|
68
|
+
ranks: CovenantConduitRank[];
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Returns an index of Covenants.
|
|
72
|
+
*
|
|
73
|
+
* @returns A promise that resolves to an object representing a list of all Covenants.
|
|
74
|
+
*/
|
|
75
|
+
export declare function covenants(ctx: ApiContext): Promise<Covenants>;
|
|
76
|
+
/**
|
|
77
|
+
* Returns details about a Covenant
|
|
78
|
+
*
|
|
79
|
+
* @param covenantId - The unique identifier for the Covenant
|
|
80
|
+
* @returns A promise that resolves to an object representing details about a Covenant.
|
|
81
|
+
*/
|
|
82
|
+
export declare function covenant(ctx: ApiContext, covenantId: number): Promise<Covenant>;
|
|
83
|
+
/**
|
|
84
|
+
* Returns media details about a Covenant
|
|
85
|
+
*
|
|
86
|
+
* @param covenantId - The unique identifier for the Covenant.
|
|
87
|
+
* @returns A promise that resolves to an object representing media details about a Covenant.
|
|
88
|
+
*/
|
|
89
|
+
export declare function azeriteEssenceMedia(ctx: ApiContext, covenantId: number): Promise<CovenantMedia>;
|
|
90
|
+
/**
|
|
91
|
+
* Returns an index of Covenant Soulbinds.
|
|
92
|
+
*
|
|
93
|
+
* @returns A promise that resolves to an object representing a list of all Covenant Soulbinds.
|
|
94
|
+
*/
|
|
95
|
+
export declare function covenantSoulbinds(ctx: ApiContext): Promise<CovenantSoulbinds>;
|
|
96
|
+
/**
|
|
97
|
+
* Returns details about a Covenant Soulbind
|
|
98
|
+
*
|
|
99
|
+
* @param soulbindId - The unique identifier for the Covenant Soulbind
|
|
100
|
+
* @returns A promise that resolves to an object representing details about a Covenant Soulbind.
|
|
101
|
+
*/
|
|
102
|
+
export declare function covenantSoulbind(ctx: ApiContext, soulbindId: number): Promise<CovenantSoulbind>;
|
|
103
|
+
/**
|
|
104
|
+
* Returns an index of Covenant Conduits.
|
|
105
|
+
*
|
|
106
|
+
* @returns A promise that resolves to an object representing a list of all Covenant Conduits.
|
|
107
|
+
*/
|
|
108
|
+
export declare function covenantConduits(ctx: ApiContext): Promise<CovenantConduits>;
|
|
109
|
+
/**
|
|
110
|
+
* Returns details about a Covenant Conduit
|
|
111
|
+
*
|
|
112
|
+
* @param conduitId - The unique identifier for the Covenant Conduit
|
|
113
|
+
* @returns A promise that resolves to an object representing details about a Covenant Conduit.
|
|
114
|
+
*/
|
|
115
|
+
export declare function covenantConduit(ctx: ApiContext, conduitId: number): Promise<CovenantConduit>;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.covenants = covenants;
|
|
4
|
+
exports.covenant = covenant;
|
|
5
|
+
exports.azeriteEssenceMedia = azeriteEssenceMedia;
|
|
6
|
+
exports.covenantSoulbinds = covenantSoulbinds;
|
|
7
|
+
exports.covenantSoulbind = covenantSoulbind;
|
|
8
|
+
exports.covenantConduits = covenantConduits;
|
|
9
|
+
exports.covenantConduit = covenantConduit;
|
|
10
|
+
/**
|
|
11
|
+
* Returns an index of Covenants.
|
|
12
|
+
*
|
|
13
|
+
* @returns A promise that resolves to an object representing a list of all Covenants.
|
|
14
|
+
*/
|
|
15
|
+
async function covenants(ctx) {
|
|
16
|
+
return await ctx.request({
|
|
17
|
+
method: "GET",
|
|
18
|
+
url: "/data/wow/covenant/index",
|
|
19
|
+
namespace: "static",
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns details about a Covenant
|
|
24
|
+
*
|
|
25
|
+
* @param covenantId - The unique identifier for the Covenant
|
|
26
|
+
* @returns A promise that resolves to an object representing details about a Covenant.
|
|
27
|
+
*/
|
|
28
|
+
async function covenant(ctx, covenantId) {
|
|
29
|
+
return await ctx.request({
|
|
30
|
+
method: "GET",
|
|
31
|
+
url: `/data/wow/covenant/${covenantId}`,
|
|
32
|
+
namespace: "static",
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Returns media details about a Covenant
|
|
37
|
+
*
|
|
38
|
+
* @param covenantId - The unique identifier for the Covenant.
|
|
39
|
+
* @returns A promise that resolves to an object representing media details about a Covenant.
|
|
40
|
+
*/
|
|
41
|
+
async function azeriteEssenceMedia(ctx, covenantId) {
|
|
42
|
+
return await ctx.request({
|
|
43
|
+
method: "GET",
|
|
44
|
+
url: `/data/wow/media/covenant/${covenantId}`,
|
|
45
|
+
namespace: "static",
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Returns an index of Covenant Soulbinds.
|
|
50
|
+
*
|
|
51
|
+
* @returns A promise that resolves to an object representing a list of all Covenant Soulbinds.
|
|
52
|
+
*/
|
|
53
|
+
async function covenantSoulbinds(ctx) {
|
|
54
|
+
return await ctx.request({
|
|
55
|
+
method: "GET",
|
|
56
|
+
url: "/data/wow/covenant/soulbind/index",
|
|
57
|
+
namespace: "static",
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Returns details about a Covenant Soulbind
|
|
62
|
+
*
|
|
63
|
+
* @param soulbindId - The unique identifier for the Covenant Soulbind
|
|
64
|
+
* @returns A promise that resolves to an object representing details about a Covenant Soulbind.
|
|
65
|
+
*/
|
|
66
|
+
async function covenantSoulbind(ctx, soulbindId) {
|
|
67
|
+
return await ctx.request({
|
|
68
|
+
method: "GET",
|
|
69
|
+
url: `/data/wow/covenant/soulbind/${soulbindId}`,
|
|
70
|
+
namespace: "static",
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Returns an index of Covenant Conduits.
|
|
75
|
+
*
|
|
76
|
+
* @returns A promise that resolves to an object representing a list of all Covenant Conduits.
|
|
77
|
+
*/
|
|
78
|
+
async function covenantConduits(ctx) {
|
|
79
|
+
return await ctx.request({
|
|
80
|
+
method: "GET",
|
|
81
|
+
url: "/data/wow/covenant/conduit/index",
|
|
82
|
+
namespace: "static",
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Returns details about a Covenant Conduit
|
|
87
|
+
*
|
|
88
|
+
* @param conduitId - The unique identifier for the Covenant Conduit
|
|
89
|
+
* @returns A promise that resolves to an object representing details about a Covenant Conduit.
|
|
90
|
+
*/
|
|
91
|
+
async function covenantConduit(ctx, conduitId) {
|
|
92
|
+
return await ctx.request({
|
|
93
|
+
method: "GET",
|
|
94
|
+
url: `/data/wow/covenant/conduit/${conduitId}`,
|
|
95
|
+
namespace: "static",
|
|
96
|
+
});
|
|
97
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
|
|
3
|
+
import type { Search, SearchParameters } from "../search.js";
|
|
4
|
+
export interface CreatureFamilies extends LinkSelfHref {
|
|
5
|
+
creature_families: KeyNameId[];
|
|
6
|
+
}
|
|
7
|
+
export interface CreatureFamily extends LinkSelfHref {
|
|
8
|
+
id: number;
|
|
9
|
+
name: LocalizedString;
|
|
10
|
+
specialization?: KeyNameId;
|
|
11
|
+
media: KeyId;
|
|
12
|
+
}
|
|
13
|
+
export interface CreatureTypes extends LinkSelfHref {
|
|
14
|
+
creature_types: KeyNameId[];
|
|
15
|
+
}
|
|
16
|
+
export interface CreatureType extends LinkSelfHref {
|
|
17
|
+
id: number;
|
|
18
|
+
name: LocalizedString;
|
|
19
|
+
}
|
|
20
|
+
export interface Creature extends LinkSelfHref {
|
|
21
|
+
id: number;
|
|
22
|
+
name: LocalizedString;
|
|
23
|
+
type: KeyNameId;
|
|
24
|
+
family?: KeyNameId;
|
|
25
|
+
creature_displays: KeyId[];
|
|
26
|
+
is_tameable: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface CreatureDisplayAssets {
|
|
29
|
+
key: string;
|
|
30
|
+
value: string;
|
|
31
|
+
}
|
|
32
|
+
export interface CreatureDisplayMedia extends LinkSelfHref {
|
|
33
|
+
assets: CreatureDisplayAssets[];
|
|
34
|
+
id: number;
|
|
35
|
+
}
|
|
36
|
+
export interface CreatureFamilyAssets {
|
|
37
|
+
key: string;
|
|
38
|
+
value: string;
|
|
39
|
+
file_data_id: number;
|
|
40
|
+
}
|
|
41
|
+
export interface CreatureFamilyMedia extends LinkSelfHref {
|
|
42
|
+
assets: CreatureFamilyAssets[];
|
|
43
|
+
id: number;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Returns an index of creature families.
|
|
47
|
+
*
|
|
48
|
+
* @returns A promise that resolves to an object representing a list of all creature families.
|
|
49
|
+
*/
|
|
50
|
+
export declare function creatureFamilies(ctx: ApiContext): Promise<CreatureFamilies>;
|
|
51
|
+
/**
|
|
52
|
+
* Returns details about a creature family
|
|
53
|
+
*
|
|
54
|
+
* @param creatureFamilyId - The unique identifier for the creature family
|
|
55
|
+
* @returns A promise that resolves to an object representing details about a creature family.
|
|
56
|
+
*/
|
|
57
|
+
export declare function creatureFamily(ctx: ApiContext, creatureFamilyId: number): Promise<CreatureFamily>;
|
|
58
|
+
/**
|
|
59
|
+
* Returns an index of creature types.
|
|
60
|
+
*
|
|
61
|
+
* @returns A promise that resolves to an object representing a list of all creature types.
|
|
62
|
+
*/
|
|
63
|
+
export declare function creatureTypes(ctx: ApiContext): Promise<CreatureTypes>;
|
|
64
|
+
/**
|
|
65
|
+
* Returns details about a creature types
|
|
66
|
+
*
|
|
67
|
+
* @param creatureTypeId - The unique identifier for the creature types
|
|
68
|
+
* @returns A promise that resolves to an object representing details about a creature types.
|
|
69
|
+
*/
|
|
70
|
+
export declare function creatureType(ctx: ApiContext, creatureTypeId: number): Promise<CreatureType>;
|
|
71
|
+
/**
|
|
72
|
+
* Returns details about a creature
|
|
73
|
+
*
|
|
74
|
+
* @param creatureId - The unique identifier for the creature
|
|
75
|
+
* @returns A promise that resolves to an object representing details about a creature.
|
|
76
|
+
*/
|
|
77
|
+
export declare function creature(ctx: ApiContext, creatureId: number): Promise<Creature>;
|
|
78
|
+
/**
|
|
79
|
+
* Performs a search of creatures.
|
|
80
|
+
*
|
|
81
|
+
* @param SearchParameters - Object containing search parameters.
|
|
82
|
+
* @returns A promise that resolves to an object representing details about a creature search.
|
|
83
|
+
*/
|
|
84
|
+
export declare function searchCreature(ctx: ApiContext, searchParameters: SearchParameters): Promise<Search>;
|
|
85
|
+
/**
|
|
86
|
+
* Returns media details about a specific Creature display
|
|
87
|
+
*
|
|
88
|
+
* @param creatureDisplayId - The unique identifier Creature display Id.
|
|
89
|
+
* @returns A promise that resolves to an object representing media details about a Creature display.
|
|
90
|
+
*/
|
|
91
|
+
export declare function creatureDisplayMedia(ctx: ApiContext, creatureDisplayId: number): Promise<CreatureDisplayMedia>;
|
|
92
|
+
/**
|
|
93
|
+
* Returns media details about a specific Creature family
|
|
94
|
+
*
|
|
95
|
+
* @param creatureFamilyId - The unique identifier Creature family Id.
|
|
96
|
+
* @returns A promise that resolves to an object representing media details about a Creature family.
|
|
97
|
+
*/
|
|
98
|
+
export declare function creatureFamilyMedia(ctx: ApiContext, creatureFamilyId: number): Promise<CreatureFamilyMedia>;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.creatureFamilies = creatureFamilies;
|
|
4
|
+
exports.creatureFamily = creatureFamily;
|
|
5
|
+
exports.creatureTypes = creatureTypes;
|
|
6
|
+
exports.creatureType = creatureType;
|
|
7
|
+
exports.creature = creature;
|
|
8
|
+
exports.searchCreature = searchCreature;
|
|
9
|
+
exports.creatureDisplayMedia = creatureDisplayMedia;
|
|
10
|
+
exports.creatureFamilyMedia = creatureFamilyMedia;
|
|
11
|
+
const search_js_1 = require("../search.js");
|
|
12
|
+
/**
|
|
13
|
+
* Returns an index of creature families.
|
|
14
|
+
*
|
|
15
|
+
* @returns A promise that resolves to an object representing a list of all creature families.
|
|
16
|
+
*/
|
|
17
|
+
async function creatureFamilies(ctx) {
|
|
18
|
+
return await ctx.request({
|
|
19
|
+
method: "GET",
|
|
20
|
+
url: "/data/wow/creature-family/index",
|
|
21
|
+
namespace: "static",
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns details about a creature family
|
|
26
|
+
*
|
|
27
|
+
* @param creatureFamilyId - The unique identifier for the creature family
|
|
28
|
+
* @returns A promise that resolves to an object representing details about a creature family.
|
|
29
|
+
*/
|
|
30
|
+
async function creatureFamily(ctx, creatureFamilyId) {
|
|
31
|
+
return await ctx.request({
|
|
32
|
+
method: "GET",
|
|
33
|
+
url: `/data/wow/creature-family/${creatureFamilyId}`,
|
|
34
|
+
namespace: "static",
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Returns an index of creature types.
|
|
39
|
+
*
|
|
40
|
+
* @returns A promise that resolves to an object representing a list of all creature types.
|
|
41
|
+
*/
|
|
42
|
+
async function creatureTypes(ctx) {
|
|
43
|
+
return await ctx.request({
|
|
44
|
+
method: "GET",
|
|
45
|
+
url: "/data/wow/creature-type/index",
|
|
46
|
+
namespace: "static",
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Returns details about a creature types
|
|
51
|
+
*
|
|
52
|
+
* @param creatureTypeId - The unique identifier for the creature types
|
|
53
|
+
* @returns A promise that resolves to an object representing details about a creature types.
|
|
54
|
+
*/
|
|
55
|
+
async function creatureType(ctx, creatureTypeId) {
|
|
56
|
+
return await ctx.request({
|
|
57
|
+
method: "GET",
|
|
58
|
+
url: `/data/wow/creature-type/${creatureTypeId}`,
|
|
59
|
+
namespace: "static",
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Returns details about a creature
|
|
64
|
+
*
|
|
65
|
+
* @param creatureId - The unique identifier for the creature
|
|
66
|
+
* @returns A promise that resolves to an object representing details about a creature.
|
|
67
|
+
*/
|
|
68
|
+
async function creature(ctx, creatureId) {
|
|
69
|
+
return await ctx.request({
|
|
70
|
+
method: "GET",
|
|
71
|
+
url: `/data/wow/creature/${creatureId}`,
|
|
72
|
+
namespace: "static",
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Performs a search of creatures.
|
|
77
|
+
*
|
|
78
|
+
* @param SearchParameters - Object containing search parameters.
|
|
79
|
+
* @returns A promise that resolves to an object representing details about a creature search.
|
|
80
|
+
*/
|
|
81
|
+
async function searchCreature(ctx, searchParameters) {
|
|
82
|
+
return await (0, search_js_1.search)(ctx, "/creature", "static", searchParameters);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Returns media details about a specific Creature display
|
|
86
|
+
*
|
|
87
|
+
* @param creatureDisplayId - The unique identifier Creature display Id.
|
|
88
|
+
* @returns A promise that resolves to an object representing media details about a Creature display.
|
|
89
|
+
*/
|
|
90
|
+
async function creatureDisplayMedia(ctx, creatureDisplayId) {
|
|
91
|
+
return await ctx.request({
|
|
92
|
+
method: "GET",
|
|
93
|
+
url: `/data/wow/media/creature-display/${creatureDisplayId}`,
|
|
94
|
+
namespace: "static",
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Returns media details about a specific Creature family
|
|
99
|
+
*
|
|
100
|
+
* @param creatureFamilyId - The unique identifier Creature family Id.
|
|
101
|
+
* @returns A promise that resolves to an object representing media details about a Creature family.
|
|
102
|
+
*/
|
|
103
|
+
async function creatureFamilyMedia(ctx, creatureFamilyId) {
|
|
104
|
+
return await ctx.request({
|
|
105
|
+
method: "GET",
|
|
106
|
+
url: `/data/wow/media/creature-family/${creatureFamilyId}`,
|
|
107
|
+
namespace: "static",
|
|
108
|
+
});
|
|
109
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { Asset, KeyId, LinkSelfHref } from "../../shared/index.js";
|
|
3
|
+
export interface Emblem {
|
|
4
|
+
id: number;
|
|
5
|
+
media: KeyId;
|
|
6
|
+
}
|
|
7
|
+
export interface Border {
|
|
8
|
+
id: number;
|
|
9
|
+
media: KeyId;
|
|
10
|
+
}
|
|
11
|
+
export interface IdRgba {
|
|
12
|
+
id: number;
|
|
13
|
+
rgba: {
|
|
14
|
+
r: number;
|
|
15
|
+
g: number;
|
|
16
|
+
b: number;
|
|
17
|
+
a: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export interface GuildCrests extends LinkSelfHref {
|
|
21
|
+
emblems: Emblem[];
|
|
22
|
+
borders: Border[];
|
|
23
|
+
colors: {
|
|
24
|
+
emblems?: IdRgba[];
|
|
25
|
+
borders?: IdRgba[];
|
|
26
|
+
backgrounds?: IdRgba[];
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export interface GuildCrestBorder extends LinkSelfHref {
|
|
30
|
+
assets: Asset[];
|
|
31
|
+
id: number;
|
|
32
|
+
}
|
|
33
|
+
export interface GuildCrestEmblem extends LinkSelfHref {
|
|
34
|
+
assets: Asset[];
|
|
35
|
+
id: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Returns the Guild Crest Components Index
|
|
39
|
+
*
|
|
40
|
+
* @returns A promise that resolves to an object representing a list of all Guild Crest Components.
|
|
41
|
+
*/
|
|
42
|
+
export declare function guildCrests(ctx: ApiContext): Promise<GuildCrests>;
|
|
43
|
+
/**
|
|
44
|
+
* Returns a Guild Crest Border Media
|
|
45
|
+
*
|
|
46
|
+
* @param borderId - The unique identifier for the Covenant
|
|
47
|
+
* @returns A promise that resolves to an object representing details about a Guild Crest Border Media.
|
|
48
|
+
*/
|
|
49
|
+
export declare function guildCrestBorder(ctx: ApiContext, borderId: number): Promise<GuildCrestBorder>;
|
|
50
|
+
/**
|
|
51
|
+
* Returns a Crest Emblem Media
|
|
52
|
+
*
|
|
53
|
+
* @param emblemId - The unique identifier for the Crest Emblem Media
|
|
54
|
+
* @returns A promise that resolves to an object representing details about a Crest Emblem Media.
|
|
55
|
+
*/
|
|
56
|
+
export declare function guildCrestEmblem(ctx: ApiContext, emblemId: number): Promise<GuildCrestEmblem>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.guildCrests = guildCrests;
|
|
4
|
+
exports.guildCrestBorder = guildCrestBorder;
|
|
5
|
+
exports.guildCrestEmblem = guildCrestEmblem;
|
|
6
|
+
/**
|
|
7
|
+
* Returns the Guild Crest Components Index
|
|
8
|
+
*
|
|
9
|
+
* @returns A promise that resolves to an object representing a list of all Guild Crest Components.
|
|
10
|
+
*/
|
|
11
|
+
async function guildCrests(ctx) {
|
|
12
|
+
return await ctx.request({
|
|
13
|
+
method: "GET",
|
|
14
|
+
url: "/data/wow/guild-crest/index",
|
|
15
|
+
namespace: "static",
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Returns a Guild Crest Border Media
|
|
20
|
+
*
|
|
21
|
+
* @param borderId - The unique identifier for the Covenant
|
|
22
|
+
* @returns A promise that resolves to an object representing details about a Guild Crest Border Media.
|
|
23
|
+
*/
|
|
24
|
+
async function guildCrestBorder(ctx, borderId) {
|
|
25
|
+
return await ctx.request({
|
|
26
|
+
method: "GET",
|
|
27
|
+
url: `/data/wow/media/guild-crest/border/${borderId}`,
|
|
28
|
+
namespace: "static",
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Returns a Crest Emblem Media
|
|
33
|
+
*
|
|
34
|
+
* @param emblemId - The unique identifier for the Crest Emblem Media
|
|
35
|
+
* @returns A promise that resolves to an object representing details about a Crest Emblem Media.
|
|
36
|
+
*/
|
|
37
|
+
async function guildCrestEmblem(ctx, emblemId) {
|
|
38
|
+
return await ctx.request({
|
|
39
|
+
method: "GET",
|
|
40
|
+
url: `/data/wow/media/guild-crest/emblem/${emblemId}`,
|
|
41
|
+
namespace: "static",
|
|
42
|
+
});
|
|
43
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
|
|
3
|
+
export interface Heirlooms extends LinkSelfHref {
|
|
4
|
+
heirlooms: KeyNameId[];
|
|
5
|
+
}
|
|
6
|
+
export interface ValueDisplayString {
|
|
7
|
+
value: number;
|
|
8
|
+
display_string: LocalizedString;
|
|
9
|
+
}
|
|
10
|
+
export interface UpgradeStats {
|
|
11
|
+
type: TypeName;
|
|
12
|
+
value: number;
|
|
13
|
+
is_negated?: boolean;
|
|
14
|
+
is_equip_bonus?: boolean;
|
|
15
|
+
display: {
|
|
16
|
+
display_string: LocalizedString;
|
|
17
|
+
color: {
|
|
18
|
+
r: number;
|
|
19
|
+
g: number;
|
|
20
|
+
b: number;
|
|
21
|
+
a: number;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export interface Upgrade {
|
|
26
|
+
item: {
|
|
27
|
+
item: KeyId;
|
|
28
|
+
context: number;
|
|
29
|
+
bonus_list: number[];
|
|
30
|
+
quality: TypeName;
|
|
31
|
+
name: LocalizedString;
|
|
32
|
+
media: KeyId;
|
|
33
|
+
item_class: KeyNameId;
|
|
34
|
+
item_subclass: KeyNameId;
|
|
35
|
+
inventory_type: TypeName;
|
|
36
|
+
binding: TypeName;
|
|
37
|
+
weapon: {
|
|
38
|
+
damage: {
|
|
39
|
+
min_value: number;
|
|
40
|
+
max_value: number;
|
|
41
|
+
display_string: LocalizedString;
|
|
42
|
+
damage_class: TypeName;
|
|
43
|
+
};
|
|
44
|
+
attack_speed: ValueDisplayString;
|
|
45
|
+
dps: ValueDisplayString;
|
|
46
|
+
};
|
|
47
|
+
stats: UpgradeStats[];
|
|
48
|
+
upgrades: {
|
|
49
|
+
value: number;
|
|
50
|
+
max_value: number;
|
|
51
|
+
display_string: LocalizedString;
|
|
52
|
+
};
|
|
53
|
+
requirements: {
|
|
54
|
+
level: {
|
|
55
|
+
display_string: LocalizedString;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
level: ValueDisplayString;
|
|
59
|
+
};
|
|
60
|
+
level: number;
|
|
61
|
+
}
|
|
62
|
+
export interface Heirloom extends LinkSelfHref {
|
|
63
|
+
id: number;
|
|
64
|
+
item: KeyNameId;
|
|
65
|
+
source: TypeName;
|
|
66
|
+
source_description: LocalizedString;
|
|
67
|
+
upgrades: Upgrade[];
|
|
68
|
+
media: KeyId;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Returns the Heirloom Index
|
|
72
|
+
*
|
|
73
|
+
* @returns A promise that resolves to an object representing a list of all Heirlooms.
|
|
74
|
+
*/
|
|
75
|
+
export declare function heirlooms(ctx: ApiContext): Promise<Heirlooms>;
|
|
76
|
+
/**
|
|
77
|
+
* Returns a Heirloom
|
|
78
|
+
*
|
|
79
|
+
* @param heirloomId - The unique identifier for the Heirloom
|
|
80
|
+
* @returns A promise that resolves to an object representing details about a Heirloom.
|
|
81
|
+
*/
|
|
82
|
+
export declare function heirloom(ctx: ApiContext, heirloomId: number): Promise<Heirloom>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.heirlooms = heirlooms;
|
|
4
|
+
exports.heirloom = heirloom;
|
|
5
|
+
/**
|
|
6
|
+
* Returns the Heirloom Index
|
|
7
|
+
*
|
|
8
|
+
* @returns A promise that resolves to an object representing a list of all Heirlooms.
|
|
9
|
+
*/
|
|
10
|
+
async function heirlooms(ctx) {
|
|
11
|
+
return await ctx.request({
|
|
12
|
+
method: "GET",
|
|
13
|
+
url: "/data/wow/heirloom/index",
|
|
14
|
+
namespace: "static",
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Returns a Heirloom
|
|
19
|
+
*
|
|
20
|
+
* @param heirloomId - The unique identifier for the Heirloom
|
|
21
|
+
* @returns A promise that resolves to an object representing details about a Heirloom.
|
|
22
|
+
*/
|
|
23
|
+
async function heirloom(ctx, heirloomId) {
|
|
24
|
+
return await ctx.request({
|
|
25
|
+
method: "GET",
|
|
26
|
+
url: `/data/wow/heirloom/${heirloomId}`,
|
|
27
|
+
namespace: "static",
|
|
28
|
+
});
|
|
29
|
+
}
|