@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,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.itemAppearance = itemAppearance;
|
|
4
|
+
exports.itemAppearanceSets = itemAppearanceSets;
|
|
5
|
+
exports.itemAppearanceSet = itemAppearanceSet;
|
|
6
|
+
exports.itemAppearanceSlots = itemAppearanceSlots;
|
|
7
|
+
exports.itemAppearanceSlot = itemAppearanceSlot;
|
|
8
|
+
exports.searchItemAppearance = searchItemAppearance;
|
|
9
|
+
const search_js_1 = require("../search.js");
|
|
10
|
+
/**
|
|
11
|
+
* Returns an item appearance by ID.
|
|
12
|
+
*
|
|
13
|
+
* @param appearanceId - The unique identifier for the item appearance by ID.
|
|
14
|
+
* @returns A promise that resolves to an object representing details about an item appearance.
|
|
15
|
+
*/
|
|
16
|
+
async function itemAppearance(ctx, appearanceId) {
|
|
17
|
+
return await ctx.request({
|
|
18
|
+
method: "GET",
|
|
19
|
+
url: `/data/wow/item-appearance/${appearanceId}`,
|
|
20
|
+
namespace: "static",
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns a index of item appearance sets.
|
|
25
|
+
*
|
|
26
|
+
* @returns A promise that resolves to an object representing a list of the index of item appearance sets.
|
|
27
|
+
*/
|
|
28
|
+
async function itemAppearanceSets(ctx) {
|
|
29
|
+
return await ctx.request({
|
|
30
|
+
method: "GET",
|
|
31
|
+
url: "/data/wow/item-appearance/set/index",
|
|
32
|
+
namespace: "static",
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Returns an item appearance set by ID.
|
|
37
|
+
*
|
|
38
|
+
* @param appearanceSetId - The unique identifier for the item appearance set by ID.
|
|
39
|
+
* @returns A promise that resolves to an object representing details about an item appearance set.
|
|
40
|
+
*/
|
|
41
|
+
async function itemAppearanceSet(ctx, appearanceSetId) {
|
|
42
|
+
return await ctx.request({
|
|
43
|
+
method: "GET",
|
|
44
|
+
url: `/data/wow/item-appearance/set/${appearanceSetId}`,
|
|
45
|
+
namespace: "static",
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Returns a index of item appearance slots.
|
|
50
|
+
*
|
|
51
|
+
* @returns A promise that resolves to an object representing a list of the index of item appearance slots.
|
|
52
|
+
*/
|
|
53
|
+
async function itemAppearanceSlots(ctx) {
|
|
54
|
+
return await ctx.request({
|
|
55
|
+
method: "GET",
|
|
56
|
+
url: "/data/wow/item-appearance/slot/index",
|
|
57
|
+
namespace: "static",
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Returns an item appearance slot by slot type.
|
|
62
|
+
*
|
|
63
|
+
* @param slotType - The slot type (e.g. "HEAD", "SHOULDER", "BODY").
|
|
64
|
+
* @returns A promise that resolves to an object representing details about an item appearance slot.
|
|
65
|
+
*/
|
|
66
|
+
async function itemAppearanceSlot(ctx, slotType) {
|
|
67
|
+
return await ctx.request({
|
|
68
|
+
method: "GET",
|
|
69
|
+
url: `/data/wow/item-appearance/slot/${slotType}`,
|
|
70
|
+
namespace: "static",
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Performs a search of item appearances.
|
|
75
|
+
*
|
|
76
|
+
* @param searchParameters - Object containing search parameters.
|
|
77
|
+
* @returns A promise that resolves to an object representing details about an item appearance search.
|
|
78
|
+
*/
|
|
79
|
+
async function searchItemAppearance(ctx, searchParameters) {
|
|
80
|
+
return await (0, search_js_1.search)(ctx, "/item-appearance", "static", searchParameters);
|
|
81
|
+
}
|
|
@@ -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,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.journalExpansions = journalExpansions;
|
|
4
|
+
exports.journalExpansion = journalExpansion;
|
|
5
|
+
exports.journalEncounters = journalEncounters;
|
|
6
|
+
exports.journalEncounter = journalEncounter;
|
|
7
|
+
exports.searchJournalEncounter = searchJournalEncounter;
|
|
8
|
+
exports.journalInstances = journalInstances;
|
|
9
|
+
exports.journalInstance = journalInstance;
|
|
10
|
+
exports.journalInstanceMedia = journalInstanceMedia;
|
|
11
|
+
const search_js_1 = require("../search.js");
|
|
12
|
+
/**
|
|
13
|
+
* Returns an index of journal expansions.
|
|
14
|
+
*
|
|
15
|
+
* @returns A promise that resolves to an object representing a list of journal expansions.
|
|
16
|
+
*/
|
|
17
|
+
async function journalExpansions(ctx) {
|
|
18
|
+
return await ctx.request({
|
|
19
|
+
method: "GET",
|
|
20
|
+
url: "/data/wow/journal-expansion/index",
|
|
21
|
+
namespace: "static",
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns a journal expansion by ID.
|
|
26
|
+
*
|
|
27
|
+
* @param journalExpansionId - The unique identifier for the journal expansion.
|
|
28
|
+
* @returns A promise that resolves to an object representing details about a journal expansion.
|
|
29
|
+
*/
|
|
30
|
+
async function journalExpansion(ctx, journalExpansionId) {
|
|
31
|
+
return await ctx.request({
|
|
32
|
+
method: "GET",
|
|
33
|
+
url: `/data/wow/journal-expansion/${journalExpansionId}`,
|
|
34
|
+
namespace: "static",
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Returns an index of journal encounters.
|
|
39
|
+
*
|
|
40
|
+
* @returns A promise that resolves to an object representing a list of journal expansions.
|
|
41
|
+
*/
|
|
42
|
+
async function journalEncounters(ctx) {
|
|
43
|
+
return await ctx.request({
|
|
44
|
+
method: "GET",
|
|
45
|
+
url: "/data/wow/journal-encounter/index",
|
|
46
|
+
namespace: "static",
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Returns a journal encounter by ID.
|
|
51
|
+
*
|
|
52
|
+
* @param journalEncounterId - The unique identifier for the journal encounter.
|
|
53
|
+
* @returns A promise that resolves to an object representing details about a journal encounter.
|
|
54
|
+
*/
|
|
55
|
+
async function journalEncounter(ctx, journalEncounterId) {
|
|
56
|
+
return await ctx.request({
|
|
57
|
+
method: "GET",
|
|
58
|
+
url: `/data/wow/journal-encounter/${journalEncounterId}`,
|
|
59
|
+
namespace: "static",
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Performs a search of journal encounters.
|
|
64
|
+
*
|
|
65
|
+
* @param SearchParameters - Object containing search parameters.
|
|
66
|
+
* @returns A promise that resolves to an object representing details about a journal encounter search.
|
|
67
|
+
*/
|
|
68
|
+
async function searchJournalEncounter(ctx, searchParameters) {
|
|
69
|
+
return await (0, search_js_1.search)(ctx, "/journal-encounter", "static", searchParameters);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Returns an index of journal instances.
|
|
73
|
+
*
|
|
74
|
+
* @returns A promise that resolves to an object representing a list of journal instances.
|
|
75
|
+
*/
|
|
76
|
+
async function journalInstances(ctx) {
|
|
77
|
+
return await ctx.request({
|
|
78
|
+
method: "GET",
|
|
79
|
+
url: "/data/wow/journal-instance/index",
|
|
80
|
+
namespace: "static",
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Returns a journal instances by ID.
|
|
85
|
+
*
|
|
86
|
+
* @param journalInstanceId - The unique identifier for the journal instances.
|
|
87
|
+
* @returns A promise that resolves to an object representing details about a journal instances.
|
|
88
|
+
*/
|
|
89
|
+
async function journalInstance(ctx, journalInstanceId) {
|
|
90
|
+
return await ctx.request({
|
|
91
|
+
method: "GET",
|
|
92
|
+
url: `/data/wow/journal-instance/${journalInstanceId}`,
|
|
93
|
+
namespace: "static",
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Returns media for a journal instance by ID.
|
|
98
|
+
*
|
|
99
|
+
* @param journalInstanceId - The unique identifier for the journal instance
|
|
100
|
+
* @returns A promise that resolves to an object representing media details about a journal instance.
|
|
101
|
+
*/
|
|
102
|
+
async function journalInstanceMedia(ctx, journalInstanceId) {
|
|
103
|
+
return await ctx.request({
|
|
104
|
+
method: "GET",
|
|
105
|
+
url: `/data/wow/media/journal-instance/${journalInstanceId}`,
|
|
106
|
+
namespace: "static",
|
|
107
|
+
});
|
|
108
|
+
}
|
|
@@ -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,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.keystoneAffixes = keystoneAffixes;
|
|
4
|
+
exports.keystoneAffix = keystoneAffix;
|
|
5
|
+
exports.keystoneAffixMedia = keystoneAffixMedia;
|
|
6
|
+
/**
|
|
7
|
+
* Returns an index of mythic keystone affixes.
|
|
8
|
+
*
|
|
9
|
+
* @returns A promise that resolves to an object representing a list of the mythic keystone affixes.
|
|
10
|
+
*/
|
|
11
|
+
async function keystoneAffixes(ctx) {
|
|
12
|
+
return await ctx.request({
|
|
13
|
+
method: "GET",
|
|
14
|
+
url: "/data/wow/keystone-affix/index",
|
|
15
|
+
namespace: "static",
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Returns a mythic keystone affix by ID.
|
|
20
|
+
*
|
|
21
|
+
* @param keystoneAffixId - The unique identifier for the mythic keystone affix
|
|
22
|
+
* @returns A promise that resolves to an object representing details about a mythic keystone affix by ID.
|
|
23
|
+
*/
|
|
24
|
+
async function keystoneAffix(ctx, keystoneAffixId) {
|
|
25
|
+
return await ctx.request({
|
|
26
|
+
method: "GET",
|
|
27
|
+
url: `/data/wow/keystone-affix/${keystoneAffixId}`,
|
|
28
|
+
namespace: "static",
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Returns media for a mythic keystone affix by ID.
|
|
33
|
+
*
|
|
34
|
+
* @param keystoneAffixId - The unique identifier for the mythic keystone affix
|
|
35
|
+
* @returns A promise that resolves to an object representing media details about a mythic keystone affix.
|
|
36
|
+
*/
|
|
37
|
+
async function keystoneAffixMedia(ctx, keystoneAffixId) {
|
|
38
|
+
return await ctx.request({
|
|
39
|
+
method: "GET",
|
|
40
|
+
url: `/data/wow/media/keystone-affix/${keystoneAffixId}`,
|
|
41
|
+
namespace: "static",
|
|
42
|
+
});
|
|
43
|
+
}
|
|
@@ -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,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.searchMedia = searchMedia;
|
|
4
|
+
const search_js_1 = require("../search.js");
|
|
5
|
+
/**
|
|
6
|
+
* Performs a search of media.
|
|
7
|
+
*
|
|
8
|
+
* @param SearchParameters - Object containing search parameters.
|
|
9
|
+
* @returns A promise that resolves to an object representing details about a media search.
|
|
10
|
+
*/
|
|
11
|
+
async function searchMedia(ctx, searchParameters) {
|
|
12
|
+
return await (0, search_js_1.search)(ctx, "/media", "static", searchParameters);
|
|
13
|
+
}
|
|
@@ -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,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.modifiedCraftingParents = modifiedCraftingParents;
|
|
4
|
+
exports.modifiedCraftingCategories = modifiedCraftingCategories;
|
|
5
|
+
exports.modifiedCraftingCategory = modifiedCraftingCategory;
|
|
6
|
+
exports.modifiedCraftingSlotTypes = modifiedCraftingSlotTypes;
|
|
7
|
+
exports.modifiedCraftingSlotType = modifiedCraftingSlotType;
|
|
8
|
+
/**
|
|
9
|
+
* Returns the parent index for Modified Crafting.
|
|
10
|
+
*
|
|
11
|
+
* @returns A promise that resolves to an object representing a list of the parent index for Modified Crafting.
|
|
12
|
+
*/
|
|
13
|
+
async function modifiedCraftingParents(ctx) {
|
|
14
|
+
return await ctx.request({
|
|
15
|
+
method: "GET",
|
|
16
|
+
url: "/data/wow/modified-crafting/index",
|
|
17
|
+
namespace: "static",
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Returns the index of Modified Crafting categories.
|
|
22
|
+
*
|
|
23
|
+
* @returns A promise that resolves to an object representing a list of the index of Modified Crafting categories.
|
|
24
|
+
*/
|
|
25
|
+
async function modifiedCraftingCategories(ctx) {
|
|
26
|
+
return await ctx.request({
|
|
27
|
+
method: "GET",
|
|
28
|
+
url: "/data/wow/modified-crafting/category/index",
|
|
29
|
+
namespace: "static",
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Returns a Modified Crafting category by ID.
|
|
34
|
+
*
|
|
35
|
+
* @param categoryId - The unique identifier for the Modified Crafting category
|
|
36
|
+
* @returns A promise that resolves to an object representing details about a Modified Crafting category.
|
|
37
|
+
*/
|
|
38
|
+
async function modifiedCraftingCategory(ctx, categoryId) {
|
|
39
|
+
return await ctx.request({
|
|
40
|
+
method: "GET",
|
|
41
|
+
url: `/data/wow/modified-crafting/category/${categoryId}`,
|
|
42
|
+
namespace: "static",
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Returns the index of Modified Crafting reagent slot types.
|
|
47
|
+
*
|
|
48
|
+
* @returns A promise that resolves to an object representing a list of the index of Modified Crafting reagent slot types
|
|
49
|
+
*/
|
|
50
|
+
async function modifiedCraftingSlotTypes(ctx) {
|
|
51
|
+
return await ctx.request({
|
|
52
|
+
method: "GET",
|
|
53
|
+
url: "/data/wow/modified-crafting/reagent-slot-type/index",
|
|
54
|
+
namespace: "static",
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Returns a Modified Crafting reagent slot type by ID.
|
|
59
|
+
*
|
|
60
|
+
* @param slotTypeId - The unique identifier for the Modified Crafting reagent slot type
|
|
61
|
+
* @returns A promise that resolves to an object representing details about a Modified Crafting reagent slot type by ID.
|
|
62
|
+
*/
|
|
63
|
+
async function modifiedCraftingSlotType(ctx, slotTypeId) {
|
|
64
|
+
return await ctx.request({
|
|
65
|
+
method: "GET",
|
|
66
|
+
url: `/data/wow/modified-crafting/reagent-slot-type/${slotTypeId}`,
|
|
67
|
+
namespace: "static",
|
|
68
|
+
});
|
|
69
|
+
}
|
|
@@ -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>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mounts = mounts;
|
|
4
|
+
exports.mount = mount;
|
|
5
|
+
exports.searchMount = searchMount;
|
|
6
|
+
const search_js_1 = require("../search.js");
|
|
7
|
+
/**
|
|
8
|
+
* Returns a index of mounts.
|
|
9
|
+
*
|
|
10
|
+
* @returns A promise that resolves to an object representing a list of the index of mounts.
|
|
11
|
+
*/
|
|
12
|
+
async function mounts(ctx) {
|
|
13
|
+
return await ctx.request({
|
|
14
|
+
method: "GET",
|
|
15
|
+
url: "/data/wow/mount/index",
|
|
16
|
+
namespace: "static",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Returns a mount by ID.
|
|
21
|
+
*
|
|
22
|
+
* @param mountId - The unique identifier for the mount by ID.
|
|
23
|
+
* @returns A promise that resolves to an object representing details about a mount.
|
|
24
|
+
*/
|
|
25
|
+
async function mount(ctx, mountId) {
|
|
26
|
+
return await ctx.request({
|
|
27
|
+
method: "GET",
|
|
28
|
+
url: `/data/wow/mount/${mountId}`,
|
|
29
|
+
namespace: "static",
|
|
30
|
+
});
|
|
31
|
+
}
|
|
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
|
+
async function searchMount(ctx, searchParameters) {
|
|
39
|
+
return await (0, search_js_1.search)(ctx, "/mount", "static", searchParameters);
|
|
40
|
+
}
|