hypixel-api-reborn 11.3.5 → 12.0.0-1
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/README.md +0 -63
- package/dist/API/getAchievements.d.ts +10 -0
- package/dist/API/getAchievements.js +22 -0
- package/dist/API/getAchievements.js.map +1 -0
- package/dist/API/getActiveHouses.d.ts +10 -0
- package/dist/API/getActiveHouses.js +22 -0
- package/dist/API/getActiveHouses.js.map +1 -0
- package/dist/API/getBoosters.d.ts +10 -0
- package/dist/API/getBoosters.js +22 -0
- package/dist/API/getBoosters.js.map +1 -0
- package/dist/API/getChallenges.d.ts +10 -0
- package/dist/API/getChallenges.js +22 -0
- package/dist/API/getChallenges.js.map +1 -0
- package/dist/API/getGameCounts.d.ts +10 -0
- package/dist/API/getGameCounts.js +22 -0
- package/dist/API/getGameCounts.js.map +1 -0
- package/dist/API/getGuild.d.ts +10 -0
- package/dist/API/getGuild.js +36 -0
- package/dist/API/getGuild.js.map +1 -0
- package/dist/API/getGuildAchievements.d.ts +10 -0
- package/dist/API/getGuildAchievements.js +22 -0
- package/dist/API/getGuildAchievements.js.map +1 -0
- package/dist/API/getHouse.d.ts +10 -0
- package/dist/API/getHouse.js +24 -0
- package/dist/API/getHouse.js.map +1 -0
- package/dist/API/getLeaderboards.d.ts +9 -0
- package/dist/API/getLeaderboards.js +32 -0
- package/dist/API/getLeaderboards.js.map +1 -0
- package/dist/API/getPlayer.d.ts +10 -0
- package/dist/API/getPlayer.js +37 -0
- package/dist/API/getPlayer.js.map +1 -0
- package/dist/API/getPlayerHouses.d.ts +10 -0
- package/dist/API/getPlayerHouses.js +25 -0
- package/dist/API/getPlayerHouses.js.map +1 -0
- package/dist/API/getQuests.d.ts +10 -0
- package/dist/API/getQuests.js +22 -0
- package/dist/API/getQuests.js.map +1 -0
- package/dist/API/getRecentGames.d.ts +10 -0
- package/dist/API/getRecentGames.js +25 -0
- package/dist/API/getRecentGames.js.map +1 -0
- package/dist/API/getSkyblockAuction.d.ts +10 -0
- package/dist/API/getSkyblockAuction.js +38 -0
- package/dist/API/getSkyblockAuction.js.map +1 -0
- package/dist/API/getSkyblockAuctions.d.ts +24 -0
- package/dist/API/getSkyblockAuctions.js +57 -0
- package/dist/API/getSkyblockAuctions.js.map +1 -0
- package/dist/API/getSkyblockAuctionsByPlayer.d.ts +10 -0
- package/dist/API/getSkyblockAuctionsByPlayer.js +25 -0
- package/dist/API/getSkyblockAuctionsByPlayer.js.map +1 -0
- package/dist/API/getSkyblockBazaar.d.ts +10 -0
- package/dist/API/getSkyblockBazaar.js +22 -0
- package/dist/API/getSkyblockBazaar.js.map +1 -0
- package/dist/API/getSkyblockBingo.d.ts +10 -0
- package/dist/API/getSkyblockBingo.js +22 -0
- package/dist/API/getSkyblockBingo.js.map +1 -0
- package/dist/API/getSkyblockFireSales.d.ts +10 -0
- package/dist/API/getSkyblockFireSales.js +22 -0
- package/dist/API/getSkyblockFireSales.js.map +1 -0
- package/dist/API/getSkyblockGarden.d.ts +10 -0
- package/dist/API/getSkyblockGarden.js +24 -0
- package/dist/API/getSkyblockGarden.js.map +1 -0
- package/dist/API/getSkyblockGovernment.d.ts +10 -0
- package/dist/API/getSkyblockGovernment.js +22 -0
- package/dist/API/getSkyblockGovernment.js.map +1 -0
- package/dist/API/getSkyblockMember.d.ts +10 -0
- package/dist/API/getSkyblockMember.js +46 -0
- package/dist/API/getSkyblockMember.js.map +1 -0
- package/dist/API/getSkyblockMuseum.d.ts +10 -0
- package/dist/API/getSkyblockMuseum.js +25 -0
- package/dist/API/getSkyblockMuseum.js.map +1 -0
- package/dist/API/getSkyblockNews.d.ts +10 -0
- package/dist/API/getSkyblockNews.js +22 -0
- package/dist/API/getSkyblockNews.js.map +1 -0
- package/dist/API/getSkyblockProfiles.d.ts +10 -0
- package/dist/API/getSkyblockProfiles.js +47 -0
- package/dist/API/getSkyblockProfiles.js.map +1 -0
- package/dist/API/getStatus.d.ts +10 -0
- package/dist/API/getStatus.js +23 -0
- package/dist/API/getStatus.js.map +1 -0
- package/dist/API/getWatchdogStats.d.ts +10 -0
- package/dist/API/getWatchdogStats.js +22 -0
- package/dist/API/getWatchdogStats.js.map +1 -0
- package/dist/API/index.d.ts +57 -0
- package/dist/API/index.js +62 -0
- package/dist/API/index.js.map +1 -0
- package/dist/Client.d.ts +29 -0
- package/dist/Client.js +76 -0
- package/dist/Client.js.map +1 -0
- package/dist/Errors.d.ts +27 -0
- package/dist/Errors.js +31 -0
- package/dist/Errors.js.map +1 -0
- package/dist/Private/CacheHandler.d.ts +14 -0
- package/dist/Private/CacheHandler.js +37 -0
- package/dist/Private/CacheHandler.js.map +1 -0
- package/dist/Private/Endpoint.d.ts +7 -0
- package/dist/Private/Endpoint.js +13 -0
- package/dist/Private/Endpoint.js.map +1 -0
- package/dist/Private/RateLimit.d.ts +13 -0
- package/dist/Private/RateLimit.js +33 -0
- package/dist/Private/RateLimit.js.map +1 -0
- package/dist/Private/Requests.d.ts +29 -0
- package/dist/Private/Requests.js +112 -0
- package/dist/Private/Requests.js.map +1 -0
- package/dist/Private/Updater.d.ts +11 -0
- package/dist/Private/Updater.js +47 -0
- package/dist/Private/Updater.js.map +1 -0
- package/dist/index.d.ts +115 -0
- package/dist/index.js +132 -0
- package/dist/index.js.map +1 -0
- package/dist/structures/Boosters/Booster.d.ts +17 -0
- package/dist/structures/Boosters/Booster.js +44 -0
- package/dist/structures/Boosters/Booster.js.map +1 -0
- package/dist/structures/Color.d.ts +9 -0
- package/dist/structures/Color.js +76 -0
- package/dist/structures/Color.js.map +1 -0
- package/dist/structures/Game.d.ts +16 -0
- package/dist/structures/Game.js +35 -0
- package/dist/structures/Game.js.map +1 -0
- package/dist/structures/GameCounts.d.ts +7 -0
- package/dist/structures/GameCounts.js +29 -0
- package/dist/structures/GameCounts.js.map +1 -0
- package/dist/structures/Guild/Guild.d.ts +39 -0
- package/dist/structures/Guild/Guild.js +67 -0
- package/dist/structures/Guild/Guild.js.map +1 -0
- package/dist/structures/Guild/GuildMember.d.ts +15 -0
- package/dist/structures/Guild/GuildMember.js +33 -0
- package/dist/structures/Guild/GuildMember.js.map +1 -0
- package/dist/structures/Guild/GuildRank.d.ts +11 -0
- package/dist/structures/Guild/GuildRank.js +23 -0
- package/dist/structures/Guild/GuildRank.js.map +1 -0
- package/dist/structures/House.d.ts +12 -0
- package/dist/structures/House.js +25 -0
- package/dist/structures/House.js.map +1 -0
- package/dist/structures/ItemBytes.d.ts +7 -0
- package/dist/structures/ItemBytes.js +17 -0
- package/dist/structures/ItemBytes.js.map +1 -0
- package/dist/structures/Leaderboard.d.ts +8 -0
- package/dist/structures/Leaderboard.js +16 -0
- package/dist/structures/Leaderboard.js.map +1 -0
- package/dist/structures/MiniGames/Arcade.d.ts +234 -0
- package/dist/structures/MiniGames/Arcade.js +466 -0
- package/dist/structures/MiniGames/Arcade.js.map +1 -0
- package/dist/structures/MiniGames/ArenaBrawl.d.ts +26 -0
- package/dist/structures/MiniGames/ArenaBrawl.js +54 -0
- package/dist/structures/MiniGames/ArenaBrawl.js.map +1 -0
- package/dist/structures/MiniGames/BedWars.d.ts +116 -0
- package/dist/structures/MiniGames/BedWars.js +300 -0
- package/dist/structures/MiniGames/BedWars.js.map +1 -0
- package/dist/structures/MiniGames/BlitzSurvivalGames.d.ts +87 -0
- package/dist/structures/MiniGames/BlitzSurvivalGames.js +176 -0
- package/dist/structures/MiniGames/BlitzSurvivalGames.js.map +1 -0
- package/dist/structures/MiniGames/BuildBattle.d.ts +18 -0
- package/dist/structures/MiniGames/BuildBattle.js +33 -0
- package/dist/structures/MiniGames/BuildBattle.js.map +1 -0
- package/dist/structures/MiniGames/CopsAndCrims.d.ts +67 -0
- package/dist/structures/MiniGames/CopsAndCrims.js +132 -0
- package/dist/structures/MiniGames/CopsAndCrims.js.map +1 -0
- package/dist/structures/MiniGames/Duels.d.ts +188 -0
- package/dist/structures/MiniGames/Duels.js +473 -0
- package/dist/structures/MiniGames/Duels.js.map +1 -0
- package/dist/structures/MiniGames/MegaWalls.d.ts +99 -0
- package/dist/structures/MiniGames/MegaWalls.js +200 -0
- package/dist/structures/MiniGames/MegaWalls.js.map +1 -0
- package/dist/structures/MiniGames/MurderMystery.d.ts +44 -0
- package/dist/structures/MiniGames/MurderMystery.js +90 -0
- package/dist/structures/MiniGames/MurderMystery.js.map +1 -0
- package/dist/structures/MiniGames/Paintball.d.ts +19 -0
- package/dist/structures/MiniGames/Paintball.js +42 -0
- package/dist/structures/MiniGames/Paintball.js.map +1 -0
- package/dist/structures/MiniGames/Pit.d.ts +41 -0
- package/dist/structures/MiniGames/Pit.js +138 -0
- package/dist/structures/MiniGames/Pit.js.map +1 -0
- package/dist/structures/MiniGames/PitInventoryItem.d.ts +10 -0
- package/dist/structures/MiniGames/PitInventoryItem.js +20 -0
- package/dist/structures/MiniGames/PitInventoryItem.js.map +1 -0
- package/dist/structures/MiniGames/Quakecraft.d.ts +35 -0
- package/dist/structures/MiniGames/Quakecraft.js +74 -0
- package/dist/structures/MiniGames/Quakecraft.js.map +1 -0
- package/dist/structures/MiniGames/SkyWars.d.ts +112 -0
- package/dist/structures/MiniGames/SkyWars.js +272 -0
- package/dist/structures/MiniGames/SkyWars.js.map +1 -0
- package/dist/structures/MiniGames/SmashHeroes.d.ts +58 -0
- package/dist/structures/MiniGames/SmashHeroes.js +116 -0
- package/dist/structures/MiniGames/SmashHeroes.js.map +1 -0
- package/dist/structures/MiniGames/SpeedUHC.d.ts +36 -0
- package/dist/structures/MiniGames/SpeedUHC.js +74 -0
- package/dist/structures/MiniGames/SpeedUHC.js.map +1 -0
- package/dist/structures/MiniGames/TNTGames.d.ts +66 -0
- package/dist/structures/MiniGames/TNTGames.js +126 -0
- package/dist/structures/MiniGames/TNTGames.js.map +1 -0
- package/dist/structures/MiniGames/TurboKartRacers.d.ts +31 -0
- package/dist/structures/MiniGames/TurboKartRacers.js +60 -0
- package/dist/structures/MiniGames/TurboKartRacers.js.map +1 -0
- package/dist/structures/MiniGames/UHC.d.ts +31 -0
- package/dist/structures/MiniGames/UHC.js +115 -0
- package/dist/structures/MiniGames/UHC.js.map +1 -0
- package/dist/structures/MiniGames/VampireZ.d.ts +21 -0
- package/dist/structures/MiniGames/VampireZ.js +44 -0
- package/dist/structures/MiniGames/VampireZ.js.map +1 -0
- package/dist/structures/MiniGames/Walls.d.ts +12 -0
- package/dist/structures/MiniGames/Walls.js +28 -0
- package/dist/structures/MiniGames/Walls.js.map +1 -0
- package/dist/structures/MiniGames/Warlords.d.ts +40 -0
- package/dist/structures/MiniGames/Warlords.js +82 -0
- package/dist/structures/MiniGames/Warlords.js.map +1 -0
- package/dist/structures/MiniGames/WoolWars.d.ts +49 -0
- package/dist/structures/MiniGames/WoolWars.js +87 -0
- package/dist/structures/MiniGames/WoolWars.js.map +1 -0
- package/dist/structures/Pet.d.ts +19 -0
- package/dist/structures/Pet.js +41 -0
- package/dist/structures/Pet.js.map +1 -0
- package/dist/structures/Pets.d.ts +38 -0
- package/dist/structures/Pets.js +20 -0
- package/dist/structures/Pets.js.map +1 -0
- package/dist/structures/Player.d.ts +73 -0
- package/dist/structures/Player.js +158 -0
- package/dist/structures/Player.js.map +1 -0
- package/dist/structures/PlayerCosmetics.d.ts +26 -0
- package/dist/structures/PlayerCosmetics.js +120 -0
- package/dist/structures/PlayerCosmetics.js.map +1 -0
- package/dist/structures/RecentGame.d.ts +13 -0
- package/dist/structures/RecentGame.js +30 -0
- package/dist/structures/RecentGame.js.map +1 -0
- package/dist/structures/ServerInfo.d.ts +20 -0
- package/dist/structures/ServerInfo.js +34 -0
- package/dist/structures/ServerInfo.js.map +1 -0
- package/dist/structures/SkyBlock/Auctions/Auction.d.ts +22 -0
- package/dist/structures/SkyBlock/Auctions/Auction.js +45 -0
- package/dist/structures/SkyBlock/Auctions/Auction.js.map +1 -0
- package/dist/structures/SkyBlock/Auctions/AuctionInfo.d.ts +10 -0
- package/dist/structures/SkyBlock/Auctions/AuctionInfo.js +21 -0
- package/dist/structures/SkyBlock/Auctions/AuctionInfo.js.map +1 -0
- package/dist/structures/SkyBlock/Auctions/BaseAuction.d.ts +11 -0
- package/dist/structures/SkyBlock/Auctions/BaseAuction.js +25 -0
- package/dist/structures/SkyBlock/Auctions/BaseAuction.js.map +1 -0
- package/dist/structures/SkyBlock/Auctions/Bid.d.ts +11 -0
- package/dist/structures/SkyBlock/Auctions/Bid.js +23 -0
- package/dist/structures/SkyBlock/Auctions/Bid.js.map +1 -0
- package/dist/structures/SkyBlock/Bazzar/Order.d.ts +9 -0
- package/dist/structures/SkyBlock/Bazzar/Order.js +19 -0
- package/dist/structures/SkyBlock/Bazzar/Order.js.map +1 -0
- package/dist/structures/SkyBlock/Bazzar/Product.d.ts +19 -0
- package/dist/structures/SkyBlock/Bazzar/Product.js +33 -0
- package/dist/structures/SkyBlock/Bazzar/Product.js.map +1 -0
- package/dist/structures/SkyBlock/News/SkyblockNews.d.ts +10 -0
- package/dist/structures/SkyBlock/News/SkyblockNews.js +35 -0
- package/dist/structures/SkyBlock/News/SkyblockNews.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockGarden.d.ts +60 -0
- package/dist/structures/SkyBlock/SkyblockGarden.js +65 -0
- package/dist/structures/SkyBlock/SkyblockGarden.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockInventoryItem.d.ts +38 -0
- package/dist/structures/SkyBlock/SkyblockInventoryItem.js +83 -0
- package/dist/structures/SkyBlock/SkyblockInventoryItem.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockMember.d.ts +80 -0
- package/dist/structures/SkyBlock/SkyblockMember.js +288 -0
- package/dist/structures/SkyBlock/SkyblockMember.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockMuseum.d.ts +10 -0
- package/dist/structures/SkyBlock/SkyblockMuseum.js +35 -0
- package/dist/structures/SkyBlock/SkyblockMuseum.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockMuseumItem.d.ts +11 -0
- package/dist/structures/SkyBlock/SkyblockMuseumItem.js +30 -0
- package/dist/structures/SkyBlock/SkyblockMuseumItem.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockPet.d.ts +15 -0
- package/dist/structures/SkyBlock/SkyblockPet.js +33 -0
- package/dist/structures/SkyBlock/SkyblockPet.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockProfile.d.ts +14 -0
- package/dist/structures/SkyBlock/SkyblockProfile.js +42 -0
- package/dist/structures/SkyBlock/SkyblockProfile.js.map +1 -0
- package/dist/structures/SkyBlock/Static/Bingo.d.ts +16 -0
- package/dist/structures/SkyBlock/Static/Bingo.js +52 -0
- package/dist/structures/SkyBlock/Static/Bingo.js.map +1 -0
- package/dist/structures/SkyBlock/Static/BingoData.d.ts +10 -0
- package/dist/structures/SkyBlock/Static/BingoData.js +25 -0
- package/dist/structures/SkyBlock/Static/BingoData.js.map +1 -0
- package/dist/structures/SkyBlock/Static/Candidate.d.ts +11 -0
- package/dist/structures/SkyBlock/Static/Candidate.js +25 -0
- package/dist/structures/SkyBlock/Static/Candidate.js.map +1 -0
- package/dist/structures/SkyBlock/Static/FireSale.d.ts +12 -0
- package/dist/structures/SkyBlock/Static/FireSale.js +25 -0
- package/dist/structures/SkyBlock/Static/FireSale.js.map +1 -0
- package/dist/structures/SkyBlock/Static/Government.d.ts +13 -0
- package/dist/structures/SkyBlock/Static/Government.js +39 -0
- package/dist/structures/SkyBlock/Static/Government.js.map +1 -0
- package/dist/structures/SkyBlock/Static/Perk.d.ts +6 -0
- package/dist/structures/SkyBlock/Static/Perk.js +12 -0
- package/dist/structures/SkyBlock/Static/Perk.js.map +1 -0
- package/dist/structures/Static/Achievement.d.ts +14 -0
- package/dist/structures/Static/Achievement.js +50 -0
- package/dist/structures/Static/Achievement.js.map +1 -0
- package/dist/structures/Static/AchievementTier.d.ts +7 -0
- package/dist/structures/Static/AchievementTier.js +17 -0
- package/dist/structures/Static/AchievementTier.js.map +1 -0
- package/dist/structures/Static/Achievements.d.ts +9 -0
- package/dist/structures/Static/Achievements.js +21 -0
- package/dist/structures/Static/Achievements.js.map +1 -0
- package/dist/structures/Static/Challenges.d.ts +9 -0
- package/dist/structures/Static/Challenges.js +21 -0
- package/dist/structures/Static/Challenges.js.map +1 -0
- package/dist/structures/Static/GameAchievements.d.ts +10 -0
- package/dist/structures/Static/GameAchievements.js +20 -0
- package/dist/structures/Static/GameAchievements.js.map +1 -0
- package/dist/structures/Static/GameChallenges.d.ts +13 -0
- package/dist/structures/Static/GameChallenges.js +21 -0
- package/dist/structures/Static/GameChallenges.js.map +1 -0
- package/dist/structures/Static/GameQuests.d.ts +8 -0
- package/dist/structures/Static/GameQuests.js +16 -0
- package/dist/structures/Static/GameQuests.js.map +1 -0
- package/dist/structures/Static/GuildAchievements.d.ts +8 -0
- package/dist/structures/Static/GuildAchievements.js +21 -0
- package/dist/structures/Static/GuildAchievements.js.map +1 -0
- package/dist/structures/Static/Quest.d.ts +20 -0
- package/dist/structures/Static/Quest.js +27 -0
- package/dist/structures/Static/Quest.js.map +1 -0
- package/dist/structures/Static/Quests.d.ts +9 -0
- package/dist/structures/Static/Quests.js +21 -0
- package/dist/structures/Static/Quests.js.map +1 -0
- package/dist/structures/Status.d.ts +10 -0
- package/dist/structures/Status.js +23 -0
- package/dist/structures/Status.js.map +1 -0
- package/dist/structures/Watchdog/Stats.d.ts +9 -0
- package/dist/structures/Watchdog/Stats.js +18 -0
- package/dist/structures/Watchdog/Stats.js.map +1 -0
- package/dist/utils/Constants.d.ts +1017 -0
- package/dist/utils/Constants.js +2197 -0
- package/dist/utils/Constants.js.map +1 -0
- package/dist/utils/Guild.d.ts +15 -0
- package/dist/utils/Guild.js +85 -0
- package/dist/utils/Guild.js.map +1 -0
- package/dist/utils/Player.d.ts +8 -0
- package/dist/utils/Player.js +98 -0
- package/dist/utils/Player.js.map +1 -0
- package/dist/utils/SkyblockUtils.d.ts +131 -0
- package/dist/utils/SkyblockUtils.js +394 -0
- package/dist/utils/SkyblockUtils.js.map +1 -0
- package/dist/utils/divide.d.ts +1 -0
- package/dist/utils/divide.js +10 -0
- package/dist/utils/divide.js.map +1 -0
- package/dist/utils/isGuildID.d.ts +1 -0
- package/dist/utils/isGuildID.js +7 -0
- package/dist/utils/isGuildID.js.map +1 -0
- package/dist/utils/isUUID.d.ts +1 -0
- package/dist/utils/isUUID.js +9 -0
- package/dist/utils/isUUID.js.map +1 -0
- package/dist/utils/oscillation.d.ts +2 -0
- package/dist/utils/oscillation.js +15 -0
- package/dist/utils/oscillation.js.map +1 -0
- package/dist/utils/removeSnakeCase.d.ts +3 -0
- package/dist/utils/removeSnakeCase.js +20 -0
- package/dist/utils/removeSnakeCase.js.map +1 -0
- package/dist/utils/romanize.d.ts +1 -0
- package/dist/utils/romanize.js +45 -0
- package/dist/utils/romanize.js.map +1 -0
- package/package.json +33 -23
- package/.prettierrc +0 -13
- package/eslint.config.mjs +0 -71
- package/src/API/getAPIStatus.js +0 -8
- package/src/API/getAchievements.js +0 -7
- package/src/API/getBoosters.js +0 -7
- package/src/API/getChallenges.js +0 -7
- package/src/API/getGameCounts.js +0 -7
- package/src/API/getGuild.js +0 -19
- package/src/API/getGuildAchievements.js +0 -7
- package/src/API/getLeaderboards.js +0 -15
- package/src/API/getPlayer.js +0 -23
- package/src/API/getQuests.js +0 -7
- package/src/API/getRecentGames.js +0 -14
- package/src/API/getServerInfo.js +0 -71
- package/src/API/getStatus.js +0 -9
- package/src/API/getWatchdogStats.js +0 -7
- package/src/API/housing/getActiveHouses.js +0 -7
- package/src/API/housing/getHouse.js +0 -9
- package/src/API/housing/getPlayerHouses.js +0 -11
- package/src/API/index.js +0 -35
- package/src/API/skyblock/getAuction.js +0 -21
- package/src/API/skyblock/getAuctions.js +0 -74
- package/src/API/skyblock/getAuctionsByPlayer.js +0 -11
- package/src/API/skyblock/getBazaar.js +0 -8
- package/src/API/skyblock/getBingo.js +0 -7
- package/src/API/skyblock/getBingoByPlayer.js +0 -14
- package/src/API/skyblock/getEndedAuctions.js +0 -11
- package/src/API/skyblock/getFireSales.js +0 -7
- package/src/API/skyblock/getGarden.js +0 -11
- package/src/API/skyblock/getGovernment.js +0 -7
- package/src/API/skyblock/getMember.js +0 -35
- package/src/API/skyblock/getMuseum.js +0 -15
- package/src/API/skyblock/getNews.js +0 -7
- package/src/API/skyblock/getProfiles.js +0 -49
- package/src/Client.js +0 -547
- package/src/Errors.js +0 -66
- package/src/Private/defaultCache.js +0 -77
- package/src/Private/rateLimit.js +0 -83
- package/src/Private/requests.js +0 -76
- package/src/Private/updater.js +0 -34
- package/src/Private/uuidCache.js +0 -30
- package/src/Private/validate.js +0 -108
- package/src/index.js +0 -96
- package/src/structures/APIIncident.js +0 -71
- package/src/structures/APIStatus.js +0 -46
- package/src/structures/Boosters/Booster.js +0 -84
- package/src/structures/Color.js +0 -174
- package/src/structures/Game.js +0 -166
- package/src/structures/GameCounts.js +0 -151
- package/src/structures/Guild/Guild.js +0 -191
- package/src/structures/Guild/GuildMember.js +0 -66
- package/src/structures/Guild/GuildRank.js +0 -48
- package/src/structures/House.js +0 -54
- package/src/structures/ItemBytes.js +0 -33
- package/src/structures/Leaderboard.js +0 -31
- package/src/structures/MiniGames/Arcade.js +0 -986
- package/src/structures/MiniGames/ArenaBrawl.js +0 -118
- package/src/structures/MiniGames/BedWars.js +0 -554
- package/src/structures/MiniGames/BlitzSurvivalGames.js +0 -424
- package/src/structures/MiniGames/BuildBattle.js +0 -64
- package/src/structures/MiniGames/CopsAndCrims.js +0 -318
- package/src/structures/MiniGames/Duels.js +0 -1013
- package/src/structures/MiniGames/MegaWalls.js +0 -478
- package/src/structures/MiniGames/MurderMystery.js +0 -214
- package/src/structures/MiniGames/Paintball.js +0 -87
- package/src/structures/MiniGames/Pit.js +0 -247
- package/src/structures/MiniGames/PitInventoryItem.js +0 -43
- package/src/structures/MiniGames/Quakecraft.js +0 -164
- package/src/structures/MiniGames/SkyWars.js +0 -669
- package/src/structures/MiniGames/SmashHeroes.js +0 -272
- package/src/structures/MiniGames/SpeedUHC.js +0 -168
- package/src/structures/MiniGames/TNTGames.js +0 -285
- package/src/structures/MiniGames/TurboKartRacers.js +0 -141
- package/src/structures/MiniGames/UHC.js +0 -194
- package/src/structures/MiniGames/VampireZ.js +0 -93
- package/src/structures/MiniGames/Walls.js +0 -52
- package/src/structures/MiniGames/Warlords.js +0 -187
- package/src/structures/MiniGames/WoolGames.js +0 -405
- package/src/structures/Pet.js +0 -96
- package/src/structures/Pets.js +0 -64
- package/src/structures/Player.js +0 -346
- package/src/structures/PlayerCosmetics.js +0 -155
- package/src/structures/RecentGame.js +0 -57
- package/src/structures/ServerInfo.js +0 -78
- package/src/structures/SkyBlock/Auctions/Auction.js +0 -106
- package/src/structures/SkyBlock/Auctions/AuctionInfo.js +0 -56
- package/src/structures/SkyBlock/Auctions/BaseAuction.js +0 -46
- package/src/structures/SkyBlock/Auctions/Bid.js +0 -49
- package/src/structures/SkyBlock/Auctions/PartialAuction.js +0 -26
- package/src/structures/SkyBlock/Bazzar/Order.js +0 -38
- package/src/structures/SkyBlock/Bazzar/Product.js +0 -53
- package/src/structures/SkyBlock/News/SkyblockNews.js +0 -60
- package/src/structures/SkyBlock/PlayerBingo.js +0 -49
- package/src/structures/SkyBlock/SkyblockGarden.js +0 -146
- package/src/structures/SkyBlock/SkyblockInventoryItem.js +0 -168
- package/src/structures/SkyBlock/SkyblockMember.js +0 -591
- package/src/structures/SkyBlock/SkyblockMuseum.js +0 -60
- package/src/structures/SkyBlock/SkyblockMuseumItem.js +0 -54
- package/src/structures/SkyBlock/SkyblockPet.js +0 -71
- package/src/structures/SkyBlock/SkyblockProfile.js +0 -81
- package/src/structures/SkyBlock/Static/Bingo.js +0 -101
- package/src/structures/SkyBlock/Static/BingoData.js +0 -45
- package/src/structures/SkyBlock/Static/Candidate.js +0 -50
- package/src/structures/SkyBlock/Static/FireSale.js +0 -55
- package/src/structures/SkyBlock/Static/Government.js +0 -79
- package/src/structures/SkyBlock/Static/Perk.js +0 -23
- package/src/structures/Static/Achievement.js +0 -87
- package/src/structures/Static/AchievementTier.js +0 -33
- package/src/structures/Static/Achievements.js +0 -30
- package/src/structures/Static/Challenges.js +0 -29
- package/src/structures/Static/GameAchievements.js +0 -36
- package/src/structures/Static/GameChallenges.js +0 -40
- package/src/structures/Static/GameQuests.js +0 -24
- package/src/structures/Static/GuildAchievements.js +0 -34
- package/src/structures/Static/Quest.js +0 -66
- package/src/structures/Static/Quests.js +0 -31
- package/src/structures/Status.js +0 -41
- package/src/structures/Watchdog/Stats.js +0 -36
- package/src/utils/Constants.js +0 -3241
- package/src/utils/Guild.js +0 -90
- package/src/utils/Player.js +0 -112
- package/src/utils/SkyblockUtils.js +0 -667
- package/src/utils/arrayTools.js +0 -4
- package/src/utils/divide.js +0 -5
- package/src/utils/index.js +0 -14
- package/src/utils/isGuildID.js +0 -3
- package/src/utils/isUUID.js +0 -5
- package/src/utils/oscillation.js +0 -17
- package/src/utils/removeSnakeCase.js +0 -33
- package/src/utils/rgbToHexColor.js +0 -8
- package/src/utils/romanize.js +0 -42
- package/src/utils/toUuid.js +0 -24
- package/src/utils/varInt.js +0 -17
- package/typings/index.d.ts +0 -4332
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Auction from '../structures/SkyBlock/Auctions/Auction';
|
|
2
|
+
import Client from '../Client';
|
|
3
|
+
import Endpoint from '../Private/Endpoint';
|
|
4
|
+
import { AuctionRequestOptions } from './API';
|
|
5
|
+
declare class getSkyblockAction extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(type: 'profile' | 'player' | 'auction', query: string, options?: AuctionRequestOptions): Promise<Auction[]>;
|
|
9
|
+
}
|
|
10
|
+
export default getSkyblockAction;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const Auction_1 = __importDefault(require("../structures/SkyBlock/Auctions/Auction"));
|
|
7
|
+
const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
|
|
8
|
+
class getSkyblockAction extends Endpoint_1.default {
|
|
9
|
+
client;
|
|
10
|
+
constructor(client) {
|
|
11
|
+
super(client);
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
async execute(type, query, options) {
|
|
15
|
+
let filter;
|
|
16
|
+
if ('profile' === type) {
|
|
17
|
+
filter = 'profile';
|
|
18
|
+
}
|
|
19
|
+
else if ('player' === type) {
|
|
20
|
+
query = await this.client.requests.toUUID(query);
|
|
21
|
+
filter = 'player';
|
|
22
|
+
}
|
|
23
|
+
else if ('auction' === type) {
|
|
24
|
+
filter = 'uuid';
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error(this.client.errors.BAD_AUCTION_FILTER);
|
|
28
|
+
}
|
|
29
|
+
if (!query)
|
|
30
|
+
throw new Error(this.client.errors.NO_NICKNAME_UUID);
|
|
31
|
+
const res = await this.client.requests.request(`/skyblock/auction?${filter}=${query}`, options);
|
|
32
|
+
if (res.options.raw)
|
|
33
|
+
return res.data;
|
|
34
|
+
return res.data.auctions.map((a) => new Auction_1.default(a, options?.includeItemBytes ?? false));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.default = getSkyblockAction;
|
|
38
|
+
//# sourceMappingURL=getSkyblockAuction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSkyblockAuction.js","sourceRoot":"","sources":["../../src/API/getSkyblockAuction.ts"],"names":[],"mappings":";;;;;AAAA,sFAA8D;AAE9D,mEAA2C;AAG3C,MAAM,iBAAkB,SAAQ,kBAAQ;IAC7B,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CACX,IAAsC,EACtC,KAAa,EACb,OAA+B;QAE/B,IAAI,MAAM,CAAC;QACX,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;YACvB,MAAM,GAAG,SAAS,CAAC;QACrB,CAAC;aAAM,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;YAC7B,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACjD,MAAM,GAAG,QAAQ,CAAC;QACpB,CAAC;aAAM,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;YAC9B,MAAM,GAAG,MAAM,CAAC;QAClB,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;QACzD,CAAC;QACD,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACjE,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,qBAAqB,MAAM,IAAI,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QAChG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,IAAI,iBAAO,CAAC,CAAC,EAAE,OAAO,EAAE,gBAAgB,IAAI,KAAK,CAAC,CAAC,CAAC;IAC/F,CAAC;CACF;AAED,kBAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import Auction from '../structures/SkyBlock/Auctions/Auction';
|
|
2
|
+
import AuctionInfo from '../structures/SkyBlock/Auctions/AuctionInfo';
|
|
3
|
+
import Client from '../Client';
|
|
4
|
+
import Endpoint from '../Private/Endpoint';
|
|
5
|
+
import { AuctionRequestOptions } from './API';
|
|
6
|
+
declare class getSkyblockAuctions extends Endpoint {
|
|
7
|
+
readonly client: Client;
|
|
8
|
+
options: AuctionRequestOptions;
|
|
9
|
+
constructor(client: Client);
|
|
10
|
+
execute(query: number | '*', options?: AuctionRequestOptions): Promise<{
|
|
11
|
+
info: AuctionInfo;
|
|
12
|
+
auctions: Auction[];
|
|
13
|
+
}>;
|
|
14
|
+
getAllPages(): Promise<{
|
|
15
|
+
info: AuctionInfo;
|
|
16
|
+
auctions: Auction[];
|
|
17
|
+
}>;
|
|
18
|
+
getPage(page: number): Promise<{
|
|
19
|
+
info: AuctionInfo;
|
|
20
|
+
auctions: Auction[];
|
|
21
|
+
}>;
|
|
22
|
+
private parseOptions;
|
|
23
|
+
}
|
|
24
|
+
export default getSkyblockAuctions;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const Auction_1 = __importDefault(require("../structures/SkyBlock/Auctions/Auction"));
|
|
7
|
+
const AuctionInfo_1 = __importDefault(require("../structures/SkyBlock/Auctions/AuctionInfo"));
|
|
8
|
+
const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
|
|
9
|
+
class getSkyblockAuctions extends Endpoint_1.default {
|
|
10
|
+
client;
|
|
11
|
+
constructor(client) {
|
|
12
|
+
super(client);
|
|
13
|
+
this.client = client;
|
|
14
|
+
}
|
|
15
|
+
async execute(query, options) {
|
|
16
|
+
if (!query)
|
|
17
|
+
throw new Error(this.client.errors.INVALID_OPTION_VALUE);
|
|
18
|
+
if ('number' === typeof query && 0 >= query)
|
|
19
|
+
throw new Error(this.client.errors.INVALID_OPTION_VALUE);
|
|
20
|
+
if ('number' !== typeof query && '*' !== query)
|
|
21
|
+
throw new Error(this.client.errors.INVALID_OPTION_VALUE);
|
|
22
|
+
this.options = this.parseOptions(options);
|
|
23
|
+
if ('*' === query)
|
|
24
|
+
return await this.getAllPages();
|
|
25
|
+
return await this.getPage(query);
|
|
26
|
+
}
|
|
27
|
+
async getAllPages() {
|
|
28
|
+
const page = 0;
|
|
29
|
+
const { info, auctions } = await this.getPage(page);
|
|
30
|
+
const pages = info.totalPages;
|
|
31
|
+
const requests = [];
|
|
32
|
+
for (let i = 1; i < pages; i++) {
|
|
33
|
+
requests.push(this.getPage(i));
|
|
34
|
+
}
|
|
35
|
+
const results = await Promise.all(requests);
|
|
36
|
+
results.forEach(({ auctions: newAuctions }) => {
|
|
37
|
+
auctions.push(...newAuctions);
|
|
38
|
+
});
|
|
39
|
+
return { info, auctions };
|
|
40
|
+
}
|
|
41
|
+
async getPage(page) {
|
|
42
|
+
const res = await this.client.requests.request(`/skyblock/auctions?page=${page}`, this.options);
|
|
43
|
+
return {
|
|
44
|
+
info: new AuctionInfo_1.default(res.data),
|
|
45
|
+
auctions: res.data.auctions.map((a) => new Auction_1.default(a))
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
parseOptions(options) {
|
|
49
|
+
return {
|
|
50
|
+
includeItemBytes: options?.includeItemBytes ?? false,
|
|
51
|
+
noCache: options?.noCache ?? false,
|
|
52
|
+
raw: options?.raw ?? false
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.default = getSkyblockAuctions;
|
|
57
|
+
//# sourceMappingURL=getSkyblockAuctions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSkyblockAuctions.js","sourceRoot":"","sources":["../../src/API/getSkyblockAuctions.ts"],"names":[],"mappings":";;;;;AAAA,sFAA8D;AAC9D,8FAAsE;AAEtE,mEAA2C;AAG3C,MAAM,mBAAoB,SAAQ,kBAAQ;IAC/B,MAAM,CAAS;IAExB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CACX,KAAmB,EACnB,OAA+B;QAE/B,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;QACrE,IAAI,QAAQ,KAAK,OAAO,KAAK,IAAI,CAAC,IAAI,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;QACtG,IAAI,QAAQ,KAAK,OAAO,KAAK,IAAI,GAAG,KAAK,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;QACzG,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC1C,IAAI,GAAG,KAAK,KAAK;YAAE,OAAO,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;QACnD,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,WAAW;QACf,MAAM,IAAI,GAAG,CAAC,CAAC;QACf,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACpD,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC;QAC9B,MAAM,QAAQ,GAAG,EAAE,CAAC;QACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;YAC/B,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QACjC,CAAC;QACD,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC5C,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,EAAE;YAC5C,QAAQ,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC;QAChC,CAAC,CAAC,CAAC;QACH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,IAAY;QACxB,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,2BAA2B,IAAI,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAChG,OAAO;YACL,IAAI,EAAE,IAAI,qBAAW,CAAC,GAAG,CAAC,IAAI,CAAC;YAC/B,QAAQ,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,IAAI,iBAAO,CAAC,CAAC,CAAC,CAAC;SAC5D,CAAC;IACJ,CAAC;IAEO,YAAY,CAAC,OAAY;QAC/B,OAAO;YACL,gBAAgB,EAAE,OAAO,EAAE,gBAAgB,IAAI,KAAK;YACpD,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,KAAK;YAClC,GAAG,EAAE,OAAO,EAAE,GAAG,IAAI,KAAK;SAC3B,CAAC;IACJ,CAAC;CACF;AAED,kBAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Auction from '../structures/SkyBlock/Auctions/Auction';
|
|
2
|
+
import Client from '../Client';
|
|
3
|
+
import Endpoint from '../Private/Endpoint';
|
|
4
|
+
import { AuctionRequestOptions } from './API';
|
|
5
|
+
declare class getSkyblockActionsByPlayer extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(query: string, options?: AuctionRequestOptions): Promise<Auction[]>;
|
|
9
|
+
}
|
|
10
|
+
export default getSkyblockActionsByPlayer;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const Auction_1 = __importDefault(require("../structures/SkyBlock/Auctions/Auction"));
|
|
7
|
+
const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
|
|
8
|
+
class getSkyblockActionsByPlayer extends Endpoint_1.default {
|
|
9
|
+
client;
|
|
10
|
+
constructor(client) {
|
|
11
|
+
super(client);
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
async execute(query, options) {
|
|
15
|
+
if (!query)
|
|
16
|
+
throw new Error(this.client.errors.NO_NICKNAME_UUID);
|
|
17
|
+
query = await this.client.requests.toUUID(query);
|
|
18
|
+
const res = await this.client.requests.request(`/skyblock/auction?player=${query}`);
|
|
19
|
+
if (res.options.raw)
|
|
20
|
+
return res.data;
|
|
21
|
+
return res.data.auctions.map((a) => new Auction_1.default(a, options?.includeItemBytes ?? false));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = getSkyblockActionsByPlayer;
|
|
25
|
+
//# sourceMappingURL=getSkyblockAuctionsByPlayer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSkyblockAuctionsByPlayer.js","sourceRoot":"","sources":["../../src/API/getSkyblockAuctionsByPlayer.ts"],"names":[],"mappings":";;;;;AAAA,sFAA8D;AAE9D,mEAA2C;AAG3C,MAAM,0BAA2B,SAAQ,kBAAQ;IACtC,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,KAAa,EAAE,OAA+B;QAC1D,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACjE,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACjD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,4BAA4B,KAAK,EAAE,CAAC,CAAC;QACpF,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,IAAI,iBAAO,CAAC,CAAC,EAAE,OAAO,EAAE,gBAAgB,IAAI,KAAK,CAAC,CAAC,CAAC;IAC/F,CAAC;CACF;AAED,kBAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Client from '../Client';
|
|
2
|
+
import Endpoint from '../Private/Endpoint';
|
|
3
|
+
import Product from '../structures/SkyBlock/Bazzar/Product';
|
|
4
|
+
import { RequestOptions } from '../Private/Requests';
|
|
5
|
+
declare class getSkyblockBazaar extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(options?: RequestOptions): Promise<Product[]>;
|
|
9
|
+
}
|
|
10
|
+
export default getSkyblockBazaar;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
|
|
7
|
+
const Product_1 = __importDefault(require("../structures/SkyBlock/Bazzar/Product"));
|
|
8
|
+
class getSkyblockBazaar extends Endpoint_1.default {
|
|
9
|
+
client;
|
|
10
|
+
constructor(client) {
|
|
11
|
+
super(client);
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
async execute(options) {
|
|
15
|
+
const res = await this.client.requests.request('/skyblock/bazaar', options);
|
|
16
|
+
if (res.options.raw)
|
|
17
|
+
return res.data;
|
|
18
|
+
return Object.keys(res.data.products).map((x) => new Product_1.default(res.data.products[x]));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = getSkyblockBazaar;
|
|
22
|
+
//# sourceMappingURL=getSkyblockBazaar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSkyblockBazaar.js","sourceRoot":"","sources":["../../src/API/getSkyblockBazaar.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,oFAA4D;AAG5D,MAAM,iBAAkB,SAAQ,kBAAQ;IAC7B,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,OAAwB;QACpC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;QAC5E,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,iBAAO,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACtF,CAAC;CACF;AAED,kBAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import BingoData from '../structures/SkyBlock/Static/BingoData';
|
|
2
|
+
import Client from '../Client';
|
|
3
|
+
import Endpoint from '../Private/Endpoint';
|
|
4
|
+
import { RequestOptions } from '../Private/Requests';
|
|
5
|
+
declare class getSkyblockBingo extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(options?: RequestOptions): Promise<BingoData>;
|
|
9
|
+
}
|
|
10
|
+
export default getSkyblockBingo;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const BingoData_1 = __importDefault(require("../structures/SkyBlock/Static/BingoData"));
|
|
7
|
+
const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
|
|
8
|
+
class getSkyblockBingo extends Endpoint_1.default {
|
|
9
|
+
client;
|
|
10
|
+
constructor(client) {
|
|
11
|
+
super(client);
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
async execute(options) {
|
|
15
|
+
const res = await this.client.requests.request('/resources/skyblock/bingo', options);
|
|
16
|
+
if (res.options.raw)
|
|
17
|
+
return res.data;
|
|
18
|
+
return new BingoData_1.default(res.data);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = getSkyblockBingo;
|
|
22
|
+
//# sourceMappingURL=getSkyblockBingo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSkyblockBingo.js","sourceRoot":"","sources":["../../src/API/getSkyblockBingo.ts"],"names":[],"mappings":";;;;;AAAA,wFAAgE;AAEhE,mEAA2C;AAG3C,MAAM,gBAAiB,SAAQ,kBAAQ;IAC5B,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,OAAwB;QACpC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;QACrF,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,IAAI,mBAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;CACF;AAED,kBAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Client from '../Client';
|
|
2
|
+
import Endpoint from '../Private/Endpoint';
|
|
3
|
+
import FireSale from '../structures/SkyBlock/Static/FireSale';
|
|
4
|
+
import { RequestOptions } from '../Private/Requests';
|
|
5
|
+
declare class getSkyblockFireSales extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(options?: RequestOptions): Promise<FireSale[]>;
|
|
9
|
+
}
|
|
10
|
+
export default getSkyblockFireSales;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
|
|
7
|
+
const FireSale_1 = __importDefault(require("../structures/SkyBlock/Static/FireSale"));
|
|
8
|
+
class getSkyblockFireSales extends Endpoint_1.default {
|
|
9
|
+
client;
|
|
10
|
+
constructor(client) {
|
|
11
|
+
super(client);
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
async execute(options) {
|
|
15
|
+
const res = await this.client.requests.request('/skyblock/firesales', options);
|
|
16
|
+
if (res.options.raw)
|
|
17
|
+
return res.data;
|
|
18
|
+
return res.data.sales.map((a) => new FireSale_1.default(a));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = getSkyblockFireSales;
|
|
22
|
+
//# sourceMappingURL=getSkyblockFireSales.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSkyblockFireSales.js","sourceRoot":"","sources":["../../src/API/getSkyblockFireSales.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,sFAA8D;AAG9D,MAAM,oBAAqB,SAAQ,kBAAQ;IAChC,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,OAAwB;QACpC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;QAC/E,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,IAAI,kBAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACzD,CAAC;CACF;AAED,kBAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Client from '../Client';
|
|
2
|
+
import Endpoint from '../Private/Endpoint';
|
|
3
|
+
import SkyblockGarden from '../structures/SkyBlock/SkyblockGarden';
|
|
4
|
+
import { RequestOptions } from '../Private/Requests';
|
|
5
|
+
declare class getSkyblockGarden extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(profileId: string, options?: RequestOptions): Promise<SkyblockGarden>;
|
|
9
|
+
}
|
|
10
|
+
export default getSkyblockGarden;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
|
|
7
|
+
const SkyblockGarden_1 = __importDefault(require("../structures/SkyBlock/SkyblockGarden"));
|
|
8
|
+
class getSkyblockGarden extends Endpoint_1.default {
|
|
9
|
+
client;
|
|
10
|
+
constructor(client) {
|
|
11
|
+
super(client);
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
async execute(profileId, options) {
|
|
15
|
+
if (!profileId)
|
|
16
|
+
throw new Error(this.client.errors.NO_UUID);
|
|
17
|
+
const res = await this.client.requests.request(`/skyblock/garden?profile=${profileId}`, options);
|
|
18
|
+
if (res.options.raw)
|
|
19
|
+
return res.data;
|
|
20
|
+
return new SkyblockGarden_1.default(res.data);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.default = getSkyblockGarden;
|
|
24
|
+
//# sourceMappingURL=getSkyblockGarden.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSkyblockGarden.js","sourceRoot":"","sources":["../../src/API/getSkyblockGarden.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,2FAAmE;AAGnE,MAAM,iBAAkB,SAAQ,kBAAQ;IAC7B,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,SAAiB,EAAE,OAAwB;QACvD,IAAI,CAAC,SAAS;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC5D,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,4BAA4B,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;QACjG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,IAAI,wBAAc,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;CACF;AAED,kBAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Client from '../Client.js';
|
|
2
|
+
import Endpoint from '../Private/Endpoint.js';
|
|
3
|
+
import GovernmentData from '../structures/SkyBlock/Static/Government.js';
|
|
4
|
+
import { RequestOptions } from '../Private/Requests';
|
|
5
|
+
declare class getSkyblockGovernment extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(options?: RequestOptions): Promise<GovernmentData>;
|
|
9
|
+
}
|
|
10
|
+
export default getSkyblockGovernment;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const Endpoint_js_1 = __importDefault(require("../Private/Endpoint.js"));
|
|
7
|
+
const Government_js_1 = __importDefault(require("../structures/SkyBlock/Static/Government.js"));
|
|
8
|
+
class getSkyblockGovernment extends Endpoint_js_1.default {
|
|
9
|
+
client;
|
|
10
|
+
constructor(client) {
|
|
11
|
+
super(client);
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
async execute(options) {
|
|
15
|
+
const res = await this.client.requests.request('/resources/skyblock/election', options);
|
|
16
|
+
if (res.options.raw)
|
|
17
|
+
return res.data;
|
|
18
|
+
return new Government_js_1.default(res.data);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = getSkyblockGovernment;
|
|
22
|
+
//# sourceMappingURL=getSkyblockGovernment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSkyblockGovernment.js","sourceRoot":"","sources":["../../src/API/getSkyblockGovernment.ts"],"names":[],"mappings":";;;;;AACA,yEAA8C;AAC9C,gGAAyE;AAGzE,MAAM,qBAAsB,SAAQ,qBAAQ;IACjC,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,OAAwB;QACpC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,8BAA8B,EAAE,OAAO,CAAC,CAAC;QACxF,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,IAAI,uBAAc,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;CACF;AAED,kBAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Client from '../Client';
|
|
2
|
+
import Endpoint from '../Private/Endpoint';
|
|
3
|
+
import SkyblockMember from '../structures/SkyBlock/SkyblockMember';
|
|
4
|
+
import { SkyblockRequestOptions } from './API';
|
|
5
|
+
declare class getSkyblockMember extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(query: string, options?: SkyblockRequestOptions): Promise<Map<string, SkyblockMember>>;
|
|
9
|
+
}
|
|
10
|
+
export default getSkyblockMember;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
|
|
7
|
+
const SkyblockMember_1 = __importDefault(require("../structures/SkyBlock/SkyblockMember"));
|
|
8
|
+
class getSkyblockMember extends Endpoint_1.default {
|
|
9
|
+
client;
|
|
10
|
+
constructor(client) {
|
|
11
|
+
super(client);
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
async execute(query, options) {
|
|
15
|
+
if (!query)
|
|
16
|
+
throw new Error(this.client.errors.NO_NICKNAME_UUID);
|
|
17
|
+
query = await this.client.requests.toUUID(query);
|
|
18
|
+
const res = await this.client.requests.request(`/skyblock/profiles?uuid=${query}`, options);
|
|
19
|
+
if (res.options.raw)
|
|
20
|
+
return res.data;
|
|
21
|
+
if (!res.data.profiles || !res.data.profiles.length)
|
|
22
|
+
throw new Error(this.client.errors.NO_SKYBLOCK_PROFILES);
|
|
23
|
+
const memberByProfileName = new Map();
|
|
24
|
+
for (const profile of res.data.profiles) {
|
|
25
|
+
memberByProfileName.set(profile.cute_name, new SkyblockMember_1.default({
|
|
26
|
+
uuid: query,
|
|
27
|
+
profileId: profile.profile_id,
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
29
|
+
// @ts-expect-error
|
|
30
|
+
garden: options?.garden ? await this.client.getSkyblockGarden(profile.profile_id) : null,
|
|
31
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
32
|
+
// @ts-expect-error
|
|
33
|
+
museum: options?.garden ? await this.client.getSkyblockMuseum(query, profile.profile_id) : null,
|
|
34
|
+
profileName: profile.cute_name,
|
|
35
|
+
gameMode: profile.game_mode || null,
|
|
36
|
+
m: profile.members[query],
|
|
37
|
+
banking: profile.banking,
|
|
38
|
+
communityUpgrades: profile.community_upgrades,
|
|
39
|
+
selected: profile.selected
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
return memberByProfileName;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.default = getSkyblockMember;
|
|
46
|
+
//# sourceMappingURL=getSkyblockMember.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSkyblockMember.js","sourceRoot":"","sources":["../../src/API/getSkyblockMember.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,2FAAmE;AAGnE,MAAM,iBAAkB,SAAQ,kBAAQ;IAC7B,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,KAAa,EAAE,OAAgC;QAC3D,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACjE,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACjD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,2BAA2B,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QAC5F,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;QAC9G,MAAM,mBAAmB,GAAG,IAAI,GAAG,EAAE,CAAC;QACtC,KAAK,MAAM,OAAO,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACxC,mBAAmB,CAAC,GAAG,CACrB,OAAO,CAAC,SAAS,EACjB,IAAI,wBAAc,CAAC;gBACjB,IAAI,EAAE,KAAK;gBACX,SAAS,EAAE,OAAO,CAAC,UAAU;gBAC7B,6DAA6D;gBAC7D,mBAAmB;gBACnB,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI;gBACxF,6DAA6D;gBAC7D,mBAAmB;gBACnB,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI;gBAC/F,WAAW,EAAE,OAAO,CAAC,SAAS;gBAC9B,QAAQ,EAAE,OAAO,CAAC,SAAS,IAAI,IAAI;gBACnC,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;gBACzB,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,iBAAiB,EAAE,OAAO,CAAC,kBAAkB;gBAC7C,QAAQ,EAAE,OAAO,CAAC,QAAQ;aAC3B,CAAC,CACH,CAAC;QACJ,CAAC;QACD,OAAO,mBAAmB,CAAC;IAC7B,CAAC;CACF;AAED,kBAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Client from '../Client';
|
|
2
|
+
import Endpoint from '../Private/Endpoint';
|
|
3
|
+
import SkyblockMuseum from '../structures/SkyBlock/SkyblockMuseum';
|
|
4
|
+
import { RequestOptions } from '../Private/Requests';
|
|
5
|
+
declare class getSkyblockMuseum extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(query: string, profileId: string, options?: RequestOptions): Promise<SkyblockMuseum>;
|
|
9
|
+
}
|
|
10
|
+
export default getSkyblockMuseum;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
|
|
7
|
+
const SkyblockMuseum_1 = __importDefault(require("../structures/SkyBlock/SkyblockMuseum"));
|
|
8
|
+
class getSkyblockMuseum extends Endpoint_1.default {
|
|
9
|
+
client;
|
|
10
|
+
constructor(client) {
|
|
11
|
+
super(client);
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
async execute(query, profileId, options) {
|
|
15
|
+
if (!query)
|
|
16
|
+
throw new Error(this.client.errors.NO_NICKNAME_UUID);
|
|
17
|
+
query = await this.client.requests.toUUID(query);
|
|
18
|
+
const res = await this.client.requests.request(`/skyblock/museum?uuid=${query}&profile=${profileId}`, options);
|
|
19
|
+
if (res.options.raw)
|
|
20
|
+
return res.data;
|
|
21
|
+
return new SkyblockMuseum_1.default({ uuid: query, m: res.data, profileId: profileId });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = getSkyblockMuseum;
|
|
25
|
+
//# sourceMappingURL=getSkyblockMuseum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSkyblockMuseum.js","sourceRoot":"","sources":["../../src/API/getSkyblockMuseum.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,2FAAmE;AAGnE,MAAM,iBAAkB,SAAQ,kBAAQ;IAC7B,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,KAAa,EAAE,SAAiB,EAAE,OAAwB;QACtE,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACjE,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACjD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,yBAAyB,KAAK,YAAY,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;QAC/G,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,IAAI,wBAAc,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC;IAChF,CAAC;CACF;AAED,kBAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Client from '../Client';
|
|
2
|
+
import Endpoint from '../Private/Endpoint';
|
|
3
|
+
import SkyblockNews from '../structures/SkyBlock/News/SkyblockNews';
|
|
4
|
+
import { RequestOptions } from '../Private/Requests';
|
|
5
|
+
declare class getSkyblockNews extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(options?: RequestOptions): Promise<SkyblockNews[]>;
|
|
9
|
+
}
|
|
10
|
+
export default getSkyblockNews;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
|
|
7
|
+
const SkyblockNews_1 = __importDefault(require("../structures/SkyBlock/News/SkyblockNews"));
|
|
8
|
+
class getSkyblockNews extends Endpoint_1.default {
|
|
9
|
+
client;
|
|
10
|
+
constructor(client) {
|
|
11
|
+
super(client);
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
async execute(options) {
|
|
15
|
+
const res = await this.client.requests.request('/skyblock/news', options);
|
|
16
|
+
if (res.options.raw)
|
|
17
|
+
return res.data;
|
|
18
|
+
return res.data.items.map((i) => new SkyblockNews_1.default(i));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = getSkyblockNews;
|
|
22
|
+
//# sourceMappingURL=getSkyblockNews.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSkyblockNews.js","sourceRoot":"","sources":["../../src/API/getSkyblockNews.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,4FAAoE;AAGpE,MAAM,eAAgB,SAAQ,kBAAQ;IAC3B,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,OAAwB;QACpC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;QAC1E,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,IAAI,sBAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7D,CAAC;CACF;AAED,kBAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Client from '../Client';
|
|
2
|
+
import Endpoint from '../Private/Endpoint';
|
|
3
|
+
import SkyblockProfile from '../structures/SkyBlock/SkyblockProfile';
|
|
4
|
+
import { SkyblockRequestOptions } from './API';
|
|
5
|
+
declare class getSkyblockProfiles extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(query: string, options?: SkyblockRequestOptions): Promise<SkyblockProfile[]>;
|
|
9
|
+
}
|
|
10
|
+
export default getSkyblockProfiles;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
|
|
7
|
+
const SkyblockProfile_1 = __importDefault(require("../structures/SkyBlock/SkyblockProfile"));
|
|
8
|
+
class getSkyblockProfiles extends Endpoint_1.default {
|
|
9
|
+
client;
|
|
10
|
+
constructor(client) {
|
|
11
|
+
super(client);
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
async execute(query, options) {
|
|
15
|
+
if (!query)
|
|
16
|
+
throw new Error(this.client.errors.NO_NICKNAME_UUID);
|
|
17
|
+
query = await this.client.requests.toUUID(query);
|
|
18
|
+
const res = await this.client.requests.request(`/skyblock/profiles?uuid=${query}`, options);
|
|
19
|
+
if (res.options.raw)
|
|
20
|
+
return res.data;
|
|
21
|
+
if (!res.data.profiles || !res.data.profiles.length)
|
|
22
|
+
throw new Error(this.client.errors.NO_SKYBLOCK_PROFILES);
|
|
23
|
+
const profiles = [];
|
|
24
|
+
for (let i = 0; i < res.data.profiles.length; i++) {
|
|
25
|
+
profiles.push({
|
|
26
|
+
uuid: query,
|
|
27
|
+
profileId: res.data.profiles[i].profile_id,
|
|
28
|
+
profileName: res.data.profiles[i].cute_name,
|
|
29
|
+
gameMode: res.data.profiles[i].game_mode || null,
|
|
30
|
+
m: res.data.profiles[i].members[query],
|
|
31
|
+
banking: res.data.profiles[i].banking,
|
|
32
|
+
communityUpgrades: res.data.profiles[i].community_upgrades,
|
|
33
|
+
selected: res.data.profiles[i].selected,
|
|
34
|
+
members: res.data.profiles[i].members,
|
|
35
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
36
|
+
// @ts-expect-error
|
|
37
|
+
garden: options?.garden ? await this.client.getSkyblockGarden(res.data.profiles[i].profile_id) : null,
|
|
38
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
39
|
+
// @ts-expect-error
|
|
40
|
+
museum: options?.garden ? await this.client.getSkyblockMuseum(query, res.data.profiles[i].profile_id) : null
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
return profiles.map((p) => new SkyblockProfile_1.default(p));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.default = getSkyblockProfiles;
|
|
47
|
+
//# sourceMappingURL=getSkyblockProfiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSkyblockProfiles.js","sourceRoot":"","sources":["../../src/API/getSkyblockProfiles.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,6FAAqE;AAGrE,MAAM,mBAAoB,SAAQ,kBAAQ;IAC/B,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,KAAa,EAAE,OAAgC;QAC3D,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACjE,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACjD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,2BAA2B,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QAC5F,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;QAC9G,MAAM,QAAQ,GAAG,EAAE,CAAC;QACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAClD,QAAQ,CAAC,IAAI,CAAC;gBACZ,IAAI,EAAE,KAAK;gBACX,SAAS,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,UAAU;gBAC1C,WAAW,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;gBAC3C,QAAQ,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,IAAI;gBAChD,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;gBACtC,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO;gBACrC,iBAAiB,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,kBAAkB;gBAC1D,QAAQ,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ;gBACvC,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO;gBACrC,6DAA6D;gBAC7D,mBAAmB;gBACnB,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI;gBACrG,6DAA6D;gBAC7D,mBAAmB;gBACnB,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI;aAC7G,CAAC,CAAC;QACL,CAAC;QACD,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,yBAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IACrD,CAAC;CACF;AAED,kBAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Client from '../Client';
|
|
2
|
+
import Endpoint from '../Private/Endpoint';
|
|
3
|
+
import Status from '../structures/Status';
|
|
4
|
+
import { RequestOptions } from '../Private/Requests';
|
|
5
|
+
declare class getStatus extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(query: string, options?: RequestOptions): Promise<Status>;
|
|
9
|
+
}
|
|
10
|
+
export default getStatus;
|