@pinta365/blizzard_api 0.4.0 → 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,102 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { Href, KeyId, NamedRef } from "../../shared/index.js";
|
|
3
|
+
import type { Search, SearchParameters } from "../search.js";
|
|
4
|
+
export interface AppearanceSlot {
|
|
5
|
+
type: string;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ItemAppearance {
|
|
9
|
+
"_links": {
|
|
10
|
+
self: Href;
|
|
11
|
+
};
|
|
12
|
+
id: number;
|
|
13
|
+
slot: AppearanceSlot;
|
|
14
|
+
item_class: NamedRef;
|
|
15
|
+
item_subclass: NamedRef;
|
|
16
|
+
item_display_info_id: number;
|
|
17
|
+
items: NamedRef[];
|
|
18
|
+
media: KeyId;
|
|
19
|
+
}
|
|
20
|
+
export interface ItemAppearanceSets {
|
|
21
|
+
"_links": {
|
|
22
|
+
self: Href;
|
|
23
|
+
};
|
|
24
|
+
appearance_sets: NamedRef[];
|
|
25
|
+
}
|
|
26
|
+
export interface ItemAppearanceSet {
|
|
27
|
+
"_links": {
|
|
28
|
+
self: Href;
|
|
29
|
+
};
|
|
30
|
+
id: number;
|
|
31
|
+
set_name: string;
|
|
32
|
+
appearances: KeyId[];
|
|
33
|
+
}
|
|
34
|
+
export interface ItemAppearanceSlotRef {
|
|
35
|
+
key: Href;
|
|
36
|
+
}
|
|
37
|
+
export interface ItemAppearanceSlots {
|
|
38
|
+
"_links": {
|
|
39
|
+
self: Href;
|
|
40
|
+
};
|
|
41
|
+
slots: ItemAppearanceSlotRef[];
|
|
42
|
+
}
|
|
43
|
+
export interface ItemAppearanceSlot {
|
|
44
|
+
"_links": {
|
|
45
|
+
self: Href;
|
|
46
|
+
};
|
|
47
|
+
appearances: KeyId[];
|
|
48
|
+
}
|
|
49
|
+
export interface ItemAppearanceSearchResult {
|
|
50
|
+
key: Href;
|
|
51
|
+
data: {
|
|
52
|
+
id: number;
|
|
53
|
+
item_display_info_id: number;
|
|
54
|
+
slot: {
|
|
55
|
+
type: string;
|
|
56
|
+
name: string | Record<string, string>;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export interface ItemAppearanceSearch extends Search {
|
|
61
|
+
results: ItemAppearanceSearchResult[];
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Returns an item appearance by ID.
|
|
65
|
+
*
|
|
66
|
+
* @param appearanceId - The unique identifier for the item appearance by ID.
|
|
67
|
+
* @returns A promise that resolves to an object representing details about an item appearance.
|
|
68
|
+
*/
|
|
69
|
+
export declare function itemAppearance(ctx: ApiContext, appearanceId: number): Promise<ItemAppearance>;
|
|
70
|
+
/**
|
|
71
|
+
* Returns a index of item appearance sets.
|
|
72
|
+
*
|
|
73
|
+
* @returns A promise that resolves to an object representing a list of the index of item appearance sets.
|
|
74
|
+
*/
|
|
75
|
+
export declare function itemAppearanceSets(ctx: ApiContext): Promise<ItemAppearanceSets>;
|
|
76
|
+
/**
|
|
77
|
+
* Returns an item appearance set by ID.
|
|
78
|
+
*
|
|
79
|
+
* @param appearanceSetId - The unique identifier for the item appearance set by ID.
|
|
80
|
+
* @returns A promise that resolves to an object representing details about an item appearance set.
|
|
81
|
+
*/
|
|
82
|
+
export declare function itemAppearanceSet(ctx: ApiContext, appearanceSetId: number): Promise<ItemAppearanceSet>;
|
|
83
|
+
/**
|
|
84
|
+
* Returns a index of item appearance slots.
|
|
85
|
+
*
|
|
86
|
+
* @returns A promise that resolves to an object representing a list of the index of item appearance slots.
|
|
87
|
+
*/
|
|
88
|
+
export declare function itemAppearanceSlots(ctx: ApiContext): Promise<ItemAppearanceSlots>;
|
|
89
|
+
/**
|
|
90
|
+
* Returns an item appearance slot by slot type.
|
|
91
|
+
*
|
|
92
|
+
* @param slotType - The slot type (e.g. "HEAD", "SHOULDER", "BODY").
|
|
93
|
+
* @returns A promise that resolves to an object representing details about an item appearance slot.
|
|
94
|
+
*/
|
|
95
|
+
export declare function itemAppearanceSlot(ctx: ApiContext, slotType: string): Promise<ItemAppearanceSlot>;
|
|
96
|
+
/**
|
|
97
|
+
* Performs a search of item appearances.
|
|
98
|
+
*
|
|
99
|
+
* @param searchParameters - Object containing search parameters.
|
|
100
|
+
* @returns A promise that resolves to an object representing details about an item appearance search.
|
|
101
|
+
*/
|
|
102
|
+
export declare function searchItemAppearance(ctx: ApiContext, searchParameters: SearchParameters): Promise<ItemAppearanceSearch>;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { search } from "../search.js";
|
|
2
|
+
/**
|
|
3
|
+
* Returns an item appearance by ID.
|
|
4
|
+
*
|
|
5
|
+
* @param appearanceId - The unique identifier for the item appearance by ID.
|
|
6
|
+
* @returns A promise that resolves to an object representing details about an item appearance.
|
|
7
|
+
*/
|
|
8
|
+
export async function itemAppearance(ctx, appearanceId) {
|
|
9
|
+
return await ctx.request({
|
|
10
|
+
method: "GET",
|
|
11
|
+
url: `/data/wow/item-appearance/${appearanceId}`,
|
|
12
|
+
namespace: "static",
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Returns a index of item appearance sets.
|
|
17
|
+
*
|
|
18
|
+
* @returns A promise that resolves to an object representing a list of the index of item appearance sets.
|
|
19
|
+
*/
|
|
20
|
+
export async function itemAppearanceSets(ctx) {
|
|
21
|
+
return await ctx.request({
|
|
22
|
+
method: "GET",
|
|
23
|
+
url: "/data/wow/item-appearance/set/index",
|
|
24
|
+
namespace: "static",
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Returns an item appearance set by ID.
|
|
29
|
+
*
|
|
30
|
+
* @param appearanceSetId - The unique identifier for the item appearance set by ID.
|
|
31
|
+
* @returns A promise that resolves to an object representing details about an item appearance set.
|
|
32
|
+
*/
|
|
33
|
+
export async function itemAppearanceSet(ctx, appearanceSetId) {
|
|
34
|
+
return await ctx.request({
|
|
35
|
+
method: "GET",
|
|
36
|
+
url: `/data/wow/item-appearance/set/${appearanceSetId}`,
|
|
37
|
+
namespace: "static",
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Returns a index of item appearance slots.
|
|
42
|
+
*
|
|
43
|
+
* @returns A promise that resolves to an object representing a list of the index of item appearance slots.
|
|
44
|
+
*/
|
|
45
|
+
export async function itemAppearanceSlots(ctx) {
|
|
46
|
+
return await ctx.request({
|
|
47
|
+
method: "GET",
|
|
48
|
+
url: "/data/wow/item-appearance/slot/index",
|
|
49
|
+
namespace: "static",
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Returns an item appearance slot by slot type.
|
|
54
|
+
*
|
|
55
|
+
* @param slotType - The slot type (e.g. "HEAD", "SHOULDER", "BODY").
|
|
56
|
+
* @returns A promise that resolves to an object representing details about an item appearance slot.
|
|
57
|
+
*/
|
|
58
|
+
export async function itemAppearanceSlot(ctx, slotType) {
|
|
59
|
+
return await ctx.request({
|
|
60
|
+
method: "GET",
|
|
61
|
+
url: `/data/wow/item-appearance/slot/${slotType}`,
|
|
62
|
+
namespace: "static",
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Performs a search of item appearances.
|
|
67
|
+
*
|
|
68
|
+
* @param searchParameters - Object containing search parameters.
|
|
69
|
+
* @returns A promise that resolves to an object representing details about an item appearance search.
|
|
70
|
+
*/
|
|
71
|
+
export async function searchItemAppearance(ctx, searchParameters) {
|
|
72
|
+
return await search(ctx, "/item-appearance", "static", searchParameters);
|
|
73
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { Asset, KeyId, KeyNameId, LinkSelfHref, LocalizedString, NamedRef, NameId, TypeName } from "../../shared/index.js";
|
|
3
|
+
import type { Search, SearchParameters } from "../search.js";
|
|
4
|
+
export interface JournalExpansions extends LinkSelfHref {
|
|
5
|
+
tiers: KeyNameId[];
|
|
6
|
+
}
|
|
7
|
+
export interface JournalExpansion extends LinkSelfHref {
|
|
8
|
+
id: number;
|
|
9
|
+
name: LocalizedString;
|
|
10
|
+
dungeons: KeyNameId[];
|
|
11
|
+
raids: KeyNameId[];
|
|
12
|
+
world_bosses: NamedRef[];
|
|
13
|
+
}
|
|
14
|
+
export interface JournalEncounters extends LinkSelfHref {
|
|
15
|
+
encounters: KeyNameId[];
|
|
16
|
+
}
|
|
17
|
+
export interface EncounterSection {
|
|
18
|
+
id: number;
|
|
19
|
+
title: string;
|
|
20
|
+
body_text?: string;
|
|
21
|
+
sections?: EncounterSection[];
|
|
22
|
+
spell?: KeyNameId;
|
|
23
|
+
creature_display?: KeyId;
|
|
24
|
+
}
|
|
25
|
+
export interface JournalEncounter extends LinkSelfHref {
|
|
26
|
+
id: number;
|
|
27
|
+
name: LocalizedString;
|
|
28
|
+
description: LocalizedString;
|
|
29
|
+
creatures: {
|
|
30
|
+
id: number;
|
|
31
|
+
name: LocalizedString;
|
|
32
|
+
creature_display: KeyId;
|
|
33
|
+
}[];
|
|
34
|
+
items: {
|
|
35
|
+
id: number;
|
|
36
|
+
item: KeyNameId;
|
|
37
|
+
}[];
|
|
38
|
+
sections: EncounterSection[];
|
|
39
|
+
instance: KeyNameId;
|
|
40
|
+
category: {
|
|
41
|
+
type: string;
|
|
42
|
+
};
|
|
43
|
+
modes: TypeName[];
|
|
44
|
+
}
|
|
45
|
+
export interface JournalInstances extends LinkSelfHref {
|
|
46
|
+
instances: KeyNameId[];
|
|
47
|
+
}
|
|
48
|
+
export interface JournalInstance extends LinkSelfHref {
|
|
49
|
+
id: number;
|
|
50
|
+
name: LocalizedString;
|
|
51
|
+
map: NameId;
|
|
52
|
+
area?: NameId;
|
|
53
|
+
description: LocalizedString;
|
|
54
|
+
encounters: KeyNameId[];
|
|
55
|
+
expansion: KeyNameId;
|
|
56
|
+
location?: NameId;
|
|
57
|
+
modes: {
|
|
58
|
+
mode: TypeName;
|
|
59
|
+
players: number;
|
|
60
|
+
is_tracked: boolean;
|
|
61
|
+
}[];
|
|
62
|
+
media: KeyId;
|
|
63
|
+
minimum_level: number;
|
|
64
|
+
order_index: number;
|
|
65
|
+
category: {
|
|
66
|
+
type: string;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export interface JournalInstanceMedia extends LinkSelfHref {
|
|
70
|
+
assets: Asset[];
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Returns an index of journal expansions.
|
|
74
|
+
*
|
|
75
|
+
* @returns A promise that resolves to an object representing a list of journal expansions.
|
|
76
|
+
*/
|
|
77
|
+
export declare function journalExpansions(ctx: ApiContext): Promise<JournalExpansions>;
|
|
78
|
+
/**
|
|
79
|
+
* Returns a journal expansion by ID.
|
|
80
|
+
*
|
|
81
|
+
* @param journalExpansionId - The unique identifier for the journal expansion.
|
|
82
|
+
* @returns A promise that resolves to an object representing details about a journal expansion.
|
|
83
|
+
*/
|
|
84
|
+
export declare function journalExpansion(ctx: ApiContext, journalExpansionId: number): Promise<JournalExpansion>;
|
|
85
|
+
/**
|
|
86
|
+
* Returns an index of journal encounters.
|
|
87
|
+
*
|
|
88
|
+
* @returns A promise that resolves to an object representing a list of journal expansions.
|
|
89
|
+
*/
|
|
90
|
+
export declare function journalEncounters(ctx: ApiContext): Promise<JournalEncounters>;
|
|
91
|
+
/**
|
|
92
|
+
* Returns a journal encounter by ID.
|
|
93
|
+
*
|
|
94
|
+
* @param journalEncounterId - The unique identifier for the journal encounter.
|
|
95
|
+
* @returns A promise that resolves to an object representing details about a journal encounter.
|
|
96
|
+
*/
|
|
97
|
+
export declare function journalEncounter(ctx: ApiContext, journalEncounterId: number): Promise<JournalEncounter>;
|
|
98
|
+
/**
|
|
99
|
+
* Performs a search of journal encounters.
|
|
100
|
+
*
|
|
101
|
+
* @param SearchParameters - Object containing search parameters.
|
|
102
|
+
* @returns A promise that resolves to an object representing details about a journal encounter search.
|
|
103
|
+
*/
|
|
104
|
+
export declare function searchJournalEncounter(ctx: ApiContext, searchParameters: SearchParameters): Promise<Search>;
|
|
105
|
+
/**
|
|
106
|
+
* Returns an index of journal instances.
|
|
107
|
+
*
|
|
108
|
+
* @returns A promise that resolves to an object representing a list of journal instances.
|
|
109
|
+
*/
|
|
110
|
+
export declare function journalInstances(ctx: ApiContext): Promise<JournalInstances>;
|
|
111
|
+
/**
|
|
112
|
+
* Returns a journal instances by ID.
|
|
113
|
+
*
|
|
114
|
+
* @param journalInstanceId - The unique identifier for the journal instances.
|
|
115
|
+
* @returns A promise that resolves to an object representing details about a journal instances.
|
|
116
|
+
*/
|
|
117
|
+
export declare function journalInstance(ctx: ApiContext, journalInstanceId: number): Promise<JournalInstance>;
|
|
118
|
+
/**
|
|
119
|
+
* Returns media for a journal instance by ID.
|
|
120
|
+
*
|
|
121
|
+
* @param journalInstanceId - The unique identifier for the journal instance
|
|
122
|
+
* @returns A promise that resolves to an object representing media details about a journal instance.
|
|
123
|
+
*/
|
|
124
|
+
export declare function journalInstanceMedia(ctx: ApiContext, journalInstanceId: number): Promise<JournalInstanceMedia>;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { search } from "../search.js";
|
|
2
|
+
/**
|
|
3
|
+
* Returns an index of journal expansions.
|
|
4
|
+
*
|
|
5
|
+
* @returns A promise that resolves to an object representing a list of journal expansions.
|
|
6
|
+
*/
|
|
7
|
+
export async function journalExpansions(ctx) {
|
|
8
|
+
return await ctx.request({
|
|
9
|
+
method: "GET",
|
|
10
|
+
url: "/data/wow/journal-expansion/index",
|
|
11
|
+
namespace: "static",
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns a journal expansion by ID.
|
|
16
|
+
*
|
|
17
|
+
* @param journalExpansionId - The unique identifier for the journal expansion.
|
|
18
|
+
* @returns A promise that resolves to an object representing details about a journal expansion.
|
|
19
|
+
*/
|
|
20
|
+
export async function journalExpansion(ctx, journalExpansionId) {
|
|
21
|
+
return await ctx.request({
|
|
22
|
+
method: "GET",
|
|
23
|
+
url: `/data/wow/journal-expansion/${journalExpansionId}`,
|
|
24
|
+
namespace: "static",
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Returns an index of journal encounters.
|
|
29
|
+
*
|
|
30
|
+
* @returns A promise that resolves to an object representing a list of journal expansions.
|
|
31
|
+
*/
|
|
32
|
+
export async function journalEncounters(ctx) {
|
|
33
|
+
return await ctx.request({
|
|
34
|
+
method: "GET",
|
|
35
|
+
url: "/data/wow/journal-encounter/index",
|
|
36
|
+
namespace: "static",
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Returns a journal encounter by ID.
|
|
41
|
+
*
|
|
42
|
+
* @param journalEncounterId - The unique identifier for the journal encounter.
|
|
43
|
+
* @returns A promise that resolves to an object representing details about a journal encounter.
|
|
44
|
+
*/
|
|
45
|
+
export async function journalEncounter(ctx, journalEncounterId) {
|
|
46
|
+
return await ctx.request({
|
|
47
|
+
method: "GET",
|
|
48
|
+
url: `/data/wow/journal-encounter/${journalEncounterId}`,
|
|
49
|
+
namespace: "static",
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Performs a search of journal encounters.
|
|
54
|
+
*
|
|
55
|
+
* @param SearchParameters - Object containing search parameters.
|
|
56
|
+
* @returns A promise that resolves to an object representing details about a journal encounter search.
|
|
57
|
+
*/
|
|
58
|
+
export async function searchJournalEncounter(ctx, searchParameters) {
|
|
59
|
+
return await search(ctx, "/journal-encounter", "static", searchParameters);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Returns an index of journal instances.
|
|
63
|
+
*
|
|
64
|
+
* @returns A promise that resolves to an object representing a list of journal instances.
|
|
65
|
+
*/
|
|
66
|
+
export async function journalInstances(ctx) {
|
|
67
|
+
return await ctx.request({
|
|
68
|
+
method: "GET",
|
|
69
|
+
url: "/data/wow/journal-instance/index",
|
|
70
|
+
namespace: "static",
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Returns a journal instances by ID.
|
|
75
|
+
*
|
|
76
|
+
* @param journalInstanceId - The unique identifier for the journal instances.
|
|
77
|
+
* @returns A promise that resolves to an object representing details about a journal instances.
|
|
78
|
+
*/
|
|
79
|
+
export async function journalInstance(ctx, journalInstanceId) {
|
|
80
|
+
return await ctx.request({
|
|
81
|
+
method: "GET",
|
|
82
|
+
url: `/data/wow/journal-instance/${journalInstanceId}`,
|
|
83
|
+
namespace: "static",
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Returns media for a journal instance by ID.
|
|
88
|
+
*
|
|
89
|
+
* @param journalInstanceId - The unique identifier for the journal instance
|
|
90
|
+
* @returns A promise that resolves to an object representing media details about a journal instance.
|
|
91
|
+
*/
|
|
92
|
+
export async function journalInstanceMedia(ctx, journalInstanceId) {
|
|
93
|
+
return await ctx.request({
|
|
94
|
+
method: "GET",
|
|
95
|
+
url: `/data/wow/media/journal-instance/${journalInstanceId}`,
|
|
96
|
+
namespace: "static",
|
|
97
|
+
});
|
|
98
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { Asset, Href, KeyId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
|
|
3
|
+
export interface KeystoneAffixes extends LinkSelfHref {
|
|
4
|
+
affixes: {
|
|
5
|
+
key: Href;
|
|
6
|
+
name: string | null;
|
|
7
|
+
id: number;
|
|
8
|
+
}[];
|
|
9
|
+
}
|
|
10
|
+
export interface KeystoneAffix extends LinkSelfHref {
|
|
11
|
+
id: number;
|
|
12
|
+
name: LocalizedString;
|
|
13
|
+
description: LocalizedString;
|
|
14
|
+
media: KeyId;
|
|
15
|
+
}
|
|
16
|
+
export interface KeystoneAffixMedia extends LinkSelfHref {
|
|
17
|
+
assets: Asset[];
|
|
18
|
+
id: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Returns an index of mythic keystone affixes.
|
|
22
|
+
*
|
|
23
|
+
* @returns A promise that resolves to an object representing a list of the mythic keystone affixes.
|
|
24
|
+
*/
|
|
25
|
+
export declare function keystoneAffixes(ctx: ApiContext): Promise<KeystoneAffixes>;
|
|
26
|
+
/**
|
|
27
|
+
* Returns a mythic keystone affix by ID.
|
|
28
|
+
*
|
|
29
|
+
* @param keystoneAffixId - The unique identifier for the mythic keystone affix
|
|
30
|
+
* @returns A promise that resolves to an object representing details about a mythic keystone affix by ID.
|
|
31
|
+
*/
|
|
32
|
+
export declare function keystoneAffix(ctx: ApiContext, keystoneAffixId: number): Promise<KeystoneAffix>;
|
|
33
|
+
/**
|
|
34
|
+
* Returns media for a mythic keystone affix by ID.
|
|
35
|
+
*
|
|
36
|
+
* @param keystoneAffixId - The unique identifier for the mythic keystone affix
|
|
37
|
+
* @returns A promise that resolves to an object representing media details about a mythic keystone affix.
|
|
38
|
+
*/
|
|
39
|
+
export declare function keystoneAffixMedia(ctx: ApiContext, keystoneAffixId: number): Promise<KeystoneAffixMedia>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns an index of mythic keystone affixes.
|
|
3
|
+
*
|
|
4
|
+
* @returns A promise that resolves to an object representing a list of the mythic keystone affixes.
|
|
5
|
+
*/
|
|
6
|
+
export async function keystoneAffixes(ctx) {
|
|
7
|
+
return await ctx.request({
|
|
8
|
+
method: "GET",
|
|
9
|
+
url: "/data/wow/keystone-affix/index",
|
|
10
|
+
namespace: "static",
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Returns a mythic keystone affix by ID.
|
|
15
|
+
*
|
|
16
|
+
* @param keystoneAffixId - The unique identifier for the mythic keystone affix
|
|
17
|
+
* @returns A promise that resolves to an object representing details about a mythic keystone affix by ID.
|
|
18
|
+
*/
|
|
19
|
+
export async function keystoneAffix(ctx, keystoneAffixId) {
|
|
20
|
+
return await ctx.request({
|
|
21
|
+
method: "GET",
|
|
22
|
+
url: `/data/wow/keystone-affix/${keystoneAffixId}`,
|
|
23
|
+
namespace: "static",
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Returns media for a mythic keystone affix by ID.
|
|
28
|
+
*
|
|
29
|
+
* @param keystoneAffixId - The unique identifier for the mythic keystone affix
|
|
30
|
+
* @returns A promise that resolves to an object representing media details about a mythic keystone affix.
|
|
31
|
+
*/
|
|
32
|
+
export async function keystoneAffixMedia(ctx, keystoneAffixId) {
|
|
33
|
+
return await ctx.request({
|
|
34
|
+
method: "GET",
|
|
35
|
+
url: `/data/wow/media/keystone-affix/${keystoneAffixId}`,
|
|
36
|
+
namespace: "static",
|
|
37
|
+
});
|
|
38
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { Search, SearchParameters } from "../search.js";
|
|
3
|
+
/**
|
|
4
|
+
* Performs a search of media.
|
|
5
|
+
*
|
|
6
|
+
* @param SearchParameters - Object containing search parameters.
|
|
7
|
+
* @returns A promise that resolves to an object representing details about a media search.
|
|
8
|
+
*/
|
|
9
|
+
export declare function searchMedia(ctx: ApiContext, searchParameters: SearchParameters): Promise<Search>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { search } from "../search.js";
|
|
2
|
+
/**
|
|
3
|
+
* Performs a search of media.
|
|
4
|
+
*
|
|
5
|
+
* @param SearchParameters - Object containing search parameters.
|
|
6
|
+
* @returns A promise that resolves to an object representing details about a media search.
|
|
7
|
+
*/
|
|
8
|
+
export async function searchMedia(ctx, searchParameters) {
|
|
9
|
+
return await search(ctx, "/media", "static", searchParameters);
|
|
10
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { Href, KeyNameId, LinkSelfHref, LocalizedString } from "../../shared/index.js";
|
|
3
|
+
export interface ModifiedCraftingParents extends LinkSelfHref {
|
|
4
|
+
categories: {
|
|
5
|
+
href: string;
|
|
6
|
+
};
|
|
7
|
+
slot_types: {
|
|
8
|
+
href: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface ModifiedCraftingCategories extends LinkSelfHref {
|
|
12
|
+
categories: {
|
|
13
|
+
key: Href;
|
|
14
|
+
name?: string;
|
|
15
|
+
id: number;
|
|
16
|
+
}[];
|
|
17
|
+
}
|
|
18
|
+
export interface ModifiedCraftingCategory extends LinkSelfHref {
|
|
19
|
+
id: number;
|
|
20
|
+
name: LocalizedString;
|
|
21
|
+
}
|
|
22
|
+
export interface ModifiedCraftingSlotTypes extends LinkSelfHref {
|
|
23
|
+
slot_types: {
|
|
24
|
+
key: Href;
|
|
25
|
+
name?: string;
|
|
26
|
+
id: number;
|
|
27
|
+
}[];
|
|
28
|
+
}
|
|
29
|
+
export interface ModifiedCraftingSlotType extends LinkSelfHref {
|
|
30
|
+
id: number;
|
|
31
|
+
description: LocalizedString;
|
|
32
|
+
compatible_categories: KeyNameId[];
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Returns the parent index for Modified Crafting.
|
|
36
|
+
*
|
|
37
|
+
* @returns A promise that resolves to an object representing a list of the parent index for Modified Crafting.
|
|
38
|
+
*/
|
|
39
|
+
export declare function modifiedCraftingParents(ctx: ApiContext): Promise<ModifiedCraftingParents>;
|
|
40
|
+
/**
|
|
41
|
+
* Returns the index of Modified Crafting categories.
|
|
42
|
+
*
|
|
43
|
+
* @returns A promise that resolves to an object representing a list of the index of Modified Crafting categories.
|
|
44
|
+
*/
|
|
45
|
+
export declare function modifiedCraftingCategories(ctx: ApiContext): Promise<ModifiedCraftingCategories>;
|
|
46
|
+
/**
|
|
47
|
+
* Returns a Modified Crafting category by ID.
|
|
48
|
+
*
|
|
49
|
+
* @param categoryId - The unique identifier for the Modified Crafting category
|
|
50
|
+
* @returns A promise that resolves to an object representing details about a Modified Crafting category.
|
|
51
|
+
*/
|
|
52
|
+
export declare function modifiedCraftingCategory(ctx: ApiContext, categoryId: number): Promise<ModifiedCraftingCategory>;
|
|
53
|
+
/**
|
|
54
|
+
* Returns the index of Modified Crafting reagent slot types.
|
|
55
|
+
*
|
|
56
|
+
* @returns A promise that resolves to an object representing a list of the index of Modified Crafting reagent slot types
|
|
57
|
+
*/
|
|
58
|
+
export declare function modifiedCraftingSlotTypes(ctx: ApiContext): Promise<ModifiedCraftingSlotTypes>;
|
|
59
|
+
/**
|
|
60
|
+
* Returns a Modified Crafting reagent slot type by ID.
|
|
61
|
+
*
|
|
62
|
+
* @param slotTypeId - The unique identifier for the Modified Crafting reagent slot type
|
|
63
|
+
* @returns A promise that resolves to an object representing details about a Modified Crafting reagent slot type by ID.
|
|
64
|
+
*/
|
|
65
|
+
export declare function modifiedCraftingSlotType(ctx: ApiContext, slotTypeId: number): Promise<ModifiedCraftingSlotType>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the parent index for Modified Crafting.
|
|
3
|
+
*
|
|
4
|
+
* @returns A promise that resolves to an object representing a list of the parent index for Modified Crafting.
|
|
5
|
+
*/
|
|
6
|
+
export async function modifiedCraftingParents(ctx) {
|
|
7
|
+
return await ctx.request({
|
|
8
|
+
method: "GET",
|
|
9
|
+
url: "/data/wow/modified-crafting/index",
|
|
10
|
+
namespace: "static",
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Returns the index of Modified Crafting categories.
|
|
15
|
+
*
|
|
16
|
+
* @returns A promise that resolves to an object representing a list of the index of Modified Crafting categories.
|
|
17
|
+
*/
|
|
18
|
+
export async function modifiedCraftingCategories(ctx) {
|
|
19
|
+
return await ctx.request({
|
|
20
|
+
method: "GET",
|
|
21
|
+
url: "/data/wow/modified-crafting/category/index",
|
|
22
|
+
namespace: "static",
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Returns a Modified Crafting category by ID.
|
|
27
|
+
*
|
|
28
|
+
* @param categoryId - The unique identifier for the Modified Crafting category
|
|
29
|
+
* @returns A promise that resolves to an object representing details about a Modified Crafting category.
|
|
30
|
+
*/
|
|
31
|
+
export async function modifiedCraftingCategory(ctx, categoryId) {
|
|
32
|
+
return await ctx.request({
|
|
33
|
+
method: "GET",
|
|
34
|
+
url: `/data/wow/modified-crafting/category/${categoryId}`,
|
|
35
|
+
namespace: "static",
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Returns the index of Modified Crafting reagent slot types.
|
|
40
|
+
*
|
|
41
|
+
* @returns A promise that resolves to an object representing a list of the index of Modified Crafting reagent slot types
|
|
42
|
+
*/
|
|
43
|
+
export async function modifiedCraftingSlotTypes(ctx) {
|
|
44
|
+
return await ctx.request({
|
|
45
|
+
method: "GET",
|
|
46
|
+
url: "/data/wow/modified-crafting/reagent-slot-type/index",
|
|
47
|
+
namespace: "static",
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Returns a Modified Crafting reagent slot type by ID.
|
|
52
|
+
*
|
|
53
|
+
* @param slotTypeId - The unique identifier for the Modified Crafting reagent slot type
|
|
54
|
+
* @returns A promise that resolves to an object representing details about a Modified Crafting reagent slot type by ID.
|
|
55
|
+
*/
|
|
56
|
+
export async function modifiedCraftingSlotType(ctx, slotTypeId) {
|
|
57
|
+
return await ctx.request({
|
|
58
|
+
method: "GET",
|
|
59
|
+
url: `/data/wow/modified-crafting/reagent-slot-type/${slotTypeId}`,
|
|
60
|
+
namespace: "static",
|
|
61
|
+
});
|
|
62
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ApiContext } from "../../shared/index.js";
|
|
2
|
+
import type { KeyId, KeyNameId, LinkSelfHref, LocalizedString, TypeName } from "../../shared/index.js";
|
|
3
|
+
import type { Search, SearchParameters } from "../search.js";
|
|
4
|
+
export interface Mounts extends LinkSelfHref {
|
|
5
|
+
mounts: KeyNameId[];
|
|
6
|
+
}
|
|
7
|
+
export interface Mount extends LinkSelfHref {
|
|
8
|
+
id: number;
|
|
9
|
+
name: LocalizedString;
|
|
10
|
+
creature_displays: KeyId[];
|
|
11
|
+
description: LocalizedString;
|
|
12
|
+
source: TypeName;
|
|
13
|
+
faction?: TypeName;
|
|
14
|
+
should_exclude_if_uncollected?: boolean;
|
|
15
|
+
requirements?: {
|
|
16
|
+
faction: TypeName;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Returns a index of mounts.
|
|
21
|
+
*
|
|
22
|
+
* @returns A promise that resolves to an object representing a list of the index of mounts.
|
|
23
|
+
*/
|
|
24
|
+
export declare function mounts(ctx: ApiContext): Promise<Mounts>;
|
|
25
|
+
/**
|
|
26
|
+
* Returns a mount by ID.
|
|
27
|
+
*
|
|
28
|
+
* @param mountId - The unique identifier for the mount by ID.
|
|
29
|
+
* @returns A promise that resolves to an object representing details about a mount.
|
|
30
|
+
*/
|
|
31
|
+
export declare function mount(ctx: ApiContext, mountId: number): Promise<Mount>;
|
|
32
|
+
/**
|
|
33
|
+
* Performs a search of mounts.
|
|
34
|
+
*
|
|
35
|
+
* @param searchParameters - Object containing search parameters.
|
|
36
|
+
* @returns A promise that resolves to an object representing details about a mount search.
|
|
37
|
+
*/
|
|
38
|
+
export declare function searchMount(ctx: ApiContext, searchParameters: SearchParameters): Promise<Search>;
|