hypixel-api-reborn 11.3.4 → 12.0.0-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/.editorconfig +12 -0
- package/.github/ISSUE_TEMPLATE/Bug_report.md +9 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +25 -0
- package/.github/SECURITY.md +21 -0
- package/.github/labels.yml +24 -0
- package/.github/workflows/ci-cd.yml +126 -0
- package/.vscode/extensions.json +10 -0
- 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/package.json +66 -0
- package/dist/src/API/getAchievements.js +16 -0
- package/dist/src/API/getAchievements.test.js +74 -0
- package/dist/src/API/getActiveHouses.js +16 -0
- package/dist/src/API/getActiveHouses.test.js +43 -0
- package/dist/src/API/getBoosters.js +16 -0
- package/dist/src/API/getBoosters.test.js +72 -0
- package/dist/src/API/getChallenges.js +16 -0
- package/dist/src/API/getChallenges.test.js +51 -0
- package/dist/src/API/getGameCounts.js +16 -0
- package/dist/src/API/getGameCounts.test.js +26 -0
- package/dist/src/API/getGuild.js +30 -0
- package/dist/src/API/getGuild.test.js +508 -0
- package/dist/src/API/getGuildAchievements.js +16 -0
- package/dist/src/API/getGuildAchievements.test.js +51 -0
- package/dist/src/API/getHouse.js +18 -0
- package/dist/src/API/getHouse.test.js +51 -0
- package/dist/src/API/getLeaderboards.js +23 -0
- package/dist/src/API/getLeaderboards.test.js +55 -0
- package/dist/src/API/getPlayer.js +31 -0
- package/dist/src/API/getPlayer.test.js +290 -0
- package/dist/src/API/getPlayerHouses.js +19 -0
- package/dist/src/API/getPlayerHouses.test.js +50 -0
- package/dist/src/API/getQuests.js +16 -0
- package/dist/src/API/getQuests.test.js +48 -0
- package/dist/src/API/getRecentGames.js +19 -0
- package/dist/src/API/getRecentGames.test.js +52 -0
- package/dist/src/API/getSkyblockAuction.js +32 -0
- package/dist/src/API/getSkyblockAuction.test.js +382 -0
- package/dist/src/API/getSkyblockAuctions.js +51 -0
- package/dist/src/API/getSkyblockAuctions.test.js +366 -0
- package/dist/src/API/getSkyblockAuctionsByPlayer.js +19 -0
- package/dist/src/API/getSkyblockAuctionsByPlayer.test.js +207 -0
- package/dist/src/API/getSkyblockBazaar.js +16 -0
- package/dist/src/API/getSkyblockBazaar.test.js +51 -0
- package/dist/src/API/getSkyblockBingo.js +16 -0
- package/dist/src/API/getSkyblockBingo.test.js +40 -0
- package/dist/src/API/getSkyblockFireSales.js +16 -0
- package/dist/src/API/getSkyblockFireSales.test.js +55 -0
- package/dist/src/API/getSkyblockGarden.js +18 -0
- package/dist/src/API/getSkyblockGarden.test.js +43 -0
- package/dist/src/API/getSkyblockGovernment.js +16 -0
- package/dist/src/API/getSkyblockGovernment.test.js +60 -0
- package/dist/src/API/getSkyblockMember.js +40 -0
- package/dist/src/API/getSkyblockMember.test.js +648 -0
- package/dist/src/API/getSkyblockMuseum.js +19 -0
- package/dist/src/API/getSkyblockMuseum.test.js +78 -0
- package/dist/src/API/getSkyblockNews.js +16 -0
- package/dist/src/API/getSkyblockNews.test.js +35 -0
- package/dist/src/API/getSkyblockProfiles.js +41 -0
- package/dist/src/API/getSkyblockProfiles.test.js +121 -0
- package/dist/src/API/getStatus.js +17 -0
- package/dist/src/API/getStatus.test.js +57 -0
- package/dist/src/API/getWatchdogStats.js +16 -0
- package/dist/src/API/getWatchdogStats.test.js +37 -0
- package/dist/src/API/index.js +56 -0
- package/dist/src/Client.js +70 -0
- package/dist/src/Client.test.js +115 -0
- package/dist/src/Errors.js +28 -0
- package/dist/src/Private/CacheHandler.js +31 -0
- package/dist/src/Private/CacheHandler.test.js +37 -0
- package/dist/src/Private/Endpoint.js +10 -0
- package/dist/src/Private/Endpoint.test.js +17 -0
- package/dist/src/Private/RateLimit.js +30 -0
- package/dist/src/Private/RateLimit.test.js +73 -0
- package/dist/src/Private/Requests.js +106 -0
- package/dist/src/Private/Requests.test.js +48 -0
- package/dist/src/Private/Updater.js +41 -0
- package/dist/src/Private/Updater.test.js +52 -0
- package/dist/src/index.js +34 -0
- package/dist/src/structures/Boosters/Booster.js +38 -0
- package/dist/src/structures/Boosters/Booster.test.js +7 -0
- package/dist/src/structures/Color.js +73 -0
- package/dist/src/structures/Color.test.js +23 -0
- package/dist/src/structures/Game.js +31 -0
- package/dist/src/structures/GameCounts.js +23 -0
- package/dist/src/structures/Guild/Guild.js +61 -0
- package/dist/src/structures/Guild/GuildMember.js +30 -0
- package/dist/src/structures/Guild/GuildRank.js +20 -0
- package/dist/src/structures/House.js +22 -0
- package/dist/src/structures/House.test.js +24 -0
- package/dist/src/structures/ItemBytes.js +10 -0
- package/dist/src/structures/Leaderboard.js +17 -0
- package/dist/src/structures/Leaderboard.test.js +25 -0
- package/dist/src/structures/MiniGames/Arcade.js +437 -0
- package/dist/src/structures/MiniGames/Arcade.test.js +643 -0
- package/dist/src/structures/MiniGames/ArenaBrawl.js +48 -0
- package/dist/src/structures/MiniGames/ArenaBrawl.test.js +120 -0
- package/dist/src/structures/MiniGames/BedWars.js +299 -0
- package/dist/src/structures/MiniGames/BedWars.test.js +936 -0
- package/dist/src/structures/MiniGames/BlitzSurvivalGames.js +170 -0
- package/dist/src/structures/MiniGames/BlitzSurvivalGames.test.js +2238 -0
- package/dist/src/structures/MiniGames/BuildBattle.js +27 -0
- package/dist/src/structures/MiniGames/BuildBattle.test.js +42 -0
- package/dist/src/structures/MiniGames/CopsAndCrims.js +126 -0
- package/dist/src/structures/MiniGames/CopsAndCrims.test.js +162 -0
- package/dist/src/structures/MiniGames/Duels.js +466 -0
- package/dist/src/structures/MiniGames/Duels.test.js +1853 -0
- package/dist/src/structures/MiniGames/MegaWalls.js +194 -0
- package/dist/src/structures/MiniGames/MegaWalls.test.js +4790 -0
- package/dist/src/structures/MiniGames/MurderMystery.js +84 -0
- package/dist/src/structures/MiniGames/MurderMystery.test.js +241 -0
- package/dist/src/structures/MiniGames/Paintball.js +36 -0
- package/dist/src/structures/MiniGames/Paintball.test.js +51 -0
- package/dist/src/structures/MiniGames/Pit.js +124 -0
- package/dist/src/structures/MiniGames/Pit.test.js +218 -0
- package/dist/src/structures/MiniGames/PitInventoryItem.js +19 -0
- package/dist/src/structures/MiniGames/Quakecraft.js +68 -0
- package/dist/src/structures/MiniGames/Quakecraft.test.js +105 -0
- package/dist/src/structures/MiniGames/SkyWars.js +264 -0
- package/dist/src/structures/MiniGames/Skywars.test.js +413 -0
- package/dist/src/structures/MiniGames/SmashHeroes.js +110 -0
- package/dist/src/structures/MiniGames/SmashHeroes.test.js +647 -0
- package/dist/src/structures/MiniGames/SpeedUHC.js +72 -0
- package/dist/src/structures/MiniGames/SpeedUHC.test.js +245 -0
- package/dist/src/structures/MiniGames/TNTGames.js +120 -0
- package/dist/src/structures/MiniGames/TNTGames.test.js +139 -0
- package/dist/src/structures/MiniGames/TurboKartRacers.js +57 -0
- package/dist/src/structures/MiniGames/TurboKartRacers.test.js +140 -0
- package/dist/src/structures/MiniGames/UHC.js +109 -0
- package/dist/src/structures/MiniGames/UHC.test.js +180 -0
- package/dist/src/structures/MiniGames/VampireZ.js +38 -0
- package/dist/src/structures/MiniGames/VampireZ.test.js +59 -0
- package/dist/src/structures/MiniGames/Walls.js +22 -0
- package/dist/src/structures/MiniGames/Walls.test.js +32 -0
- package/dist/src/structures/MiniGames/Warlords.js +76 -0
- package/dist/src/structures/MiniGames/Warlords.test.js +405 -0
- package/dist/src/structures/MiniGames/WoolWars.js +81 -0
- package/dist/src/structures/MiniGames/WoolWars.test.js +251 -0
- package/dist/src/structures/Pet.js +38 -0
- package/dist/src/structures/Pets.js +14 -0
- package/dist/src/structures/Player.js +147 -0
- package/dist/src/structures/Player.test.js +96 -0
- package/dist/src/structures/PlayerCosmetics.js +53 -0
- package/dist/src/structures/RecentGame.js +25 -0
- package/dist/src/structures/SkyBlock/Auctions/Auction.js +39 -0
- package/dist/src/structures/SkyBlock/Auctions/AuctionInfo.js +15 -0
- package/dist/src/structures/SkyBlock/Auctions/BaseAuction.js +19 -0
- package/dist/src/structures/SkyBlock/Auctions/BaseAuction.test.js +20 -0
- package/dist/src/structures/SkyBlock/Auctions/Bid.js +20 -0
- package/dist/src/structures/SkyBlock/Bazaar/Order.js +16 -0
- package/dist/src/structures/SkyBlock/Bazaar/Order.test.js +23 -0
- package/dist/src/structures/SkyBlock/Bazaar/Product.js +23 -0
- package/dist/src/structures/SkyBlock/Bazaar/Product.test.js +46 -0
- package/dist/src/structures/SkyBlock/News/SkyblockNews.js +32 -0
- package/dist/src/structures/SkyBlock/SkyblockGarden.js +62 -0
- package/dist/src/structures/SkyBlock/SkyblockGarden.test.js +22 -0
- package/dist/src/structures/SkyBlock/SkyblockInventoryItem.js +78 -0
- package/dist/src/structures/SkyBlock/SkyblockMember.js +406 -0
- package/dist/src/structures/SkyBlock/SkyblockMember.test.js +71 -0
- package/dist/src/structures/SkyBlock/SkyblockMuseum.js +29 -0
- package/dist/src/structures/SkyBlock/SkyblockMuseumItem.js +24 -0
- package/dist/src/structures/SkyBlock/SkyblockPet.js +27 -0
- package/dist/src/structures/SkyBlock/SkyblockProfile.js +36 -0
- package/dist/src/structures/SkyBlock/Static/Bingo.js +49 -0
- package/dist/src/structures/SkyBlock/Static/BingoData.js +19 -0
- package/dist/src/structures/SkyBlock/Static/Candidate.js +19 -0
- package/dist/src/structures/SkyBlock/Static/FireSale.js +22 -0
- package/dist/src/structures/SkyBlock/Static/Government.js +33 -0
- package/dist/src/structures/SkyBlock/Static/Perk.js +9 -0
- package/dist/src/structures/Static/Achievement.js +44 -0
- package/dist/src/structures/Static/AchievementTier.js +14 -0
- package/dist/src/structures/Static/Achievements.js +15 -0
- package/dist/src/structures/Static/Challenges.js +15 -0
- package/dist/src/structures/Static/GameAchievements.js +14 -0
- package/dist/src/structures/Static/GameChallenges.js +18 -0
- package/dist/src/structures/Static/GameQuests.js +10 -0
- package/dist/src/structures/Static/GuildAchievements.js +15 -0
- package/dist/src/structures/Static/Quest.js +24 -0
- package/dist/src/structures/Static/Quests.js +15 -0
- package/dist/src/structures/Status.js +17 -0
- package/dist/src/structures/Status.test.js +18 -0
- package/dist/src/structures/WatchdogStats.js +15 -0
- package/dist/src/structures/WatchdogStats.test.js +23 -0
- package/dist/src/utils/Constants.js +2170 -0
- package/dist/src/utils/Guild.js +71 -0
- package/dist/src/utils/Player.js +88 -0
- package/dist/src/utils/Player.test.js +82 -0
- package/dist/src/utils/SkyblockUtils.js +342 -0
- package/dist/src/utils/SkyblockUtils.test.js +8 -0
- package/dist/src/utils/divide.js +6 -0
- package/dist/src/utils/divide.test.js +12 -0
- package/dist/src/utils/isGuildID.js +3 -0
- package/dist/src/utils/isGuildID.test.js +16 -0
- package/dist/src/utils/isUUID.js +5 -0
- package/dist/src/utils/isUUID.test.js +31 -0
- package/dist/src/utils/oscillation.js +13 -0
- package/dist/src/utils/oscillation.test.js +17 -0
- package/dist/src/utils/removeSnakeCase.js +14 -0
- package/dist/src/utils/romanize.js +41 -0
- package/dist/src/utils/romanize.test.js +8 -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/{eslint.config.mjs → eslint.config.js} +16 -14
- package/package.json +32 -25
- package/renovate.json +21 -0
- package/src/API/API.d.ts +16 -0
- package/src/API/getAchievements.test.ts +81 -0
- package/src/API/getAchievements.ts +20 -0
- package/src/API/getActiveHouses.test.ts +45 -0
- package/src/API/getActiveHouses.ts +20 -0
- package/src/API/getBoosters.test.ts +53 -0
- package/src/API/getBoosters.ts +20 -0
- package/src/API/getChallenges.test.ts +54 -0
- package/src/API/getChallenges.ts +19 -0
- package/src/API/getGameCounts.test.ts +28 -0
- package/src/API/getGameCounts.ts +20 -0
- package/src/API/getGuild.test.ts +478 -0
- package/src/API/getGuild.ts +35 -0
- package/src/API/getGuildAchievements.test.ts +59 -0
- package/src/API/getGuildAchievements.ts +20 -0
- package/src/API/getHouse.test.ts +55 -0
- package/src/API/getHouse.ts +21 -0
- package/src/API/getLeaderboards.test.ts +41 -0
- package/src/API/getLeaderboards.ts +30 -0
- package/src/API/getPlayer.test.ts +494 -0
- package/src/API/getPlayer.ts +33 -0
- package/src/API/getPlayerHouses.test.ts +53 -0
- package/src/API/getPlayerHouses.ts +22 -0
- package/src/API/getQuests.test.ts +51 -0
- package/src/API/getQuests.ts +20 -0
- package/src/API/getRecentGames.test.ts +51 -0
- package/src/API/getRecentGames.ts +22 -0
- package/src/API/getSkyblockAuction.test.ts +293 -0
- package/src/API/getSkyblockAuction.ts +36 -0
- package/src/API/getSkyblockAuctions.test.ts +346 -0
- package/src/API/getSkyblockAuctions.ts +59 -0
- package/src/API/getSkyblockAuctionsByPlayer.test.ts +249 -0
- package/src/API/getSkyblockAuctionsByPlayer.ts +22 -0
- package/src/API/getSkyblockBazaar.test.ts +52 -0
- package/src/API/getSkyblockBazaar.ts +20 -0
- package/src/API/getSkyblockBingo.test.ts +42 -0
- package/src/API/getSkyblockBingo.ts +20 -0
- package/src/API/getSkyblockFireSales.test.ts +43 -0
- package/src/API/getSkyblockFireSales.ts +20 -0
- package/src/API/getSkyblockGarden.test.ts +60 -0
- package/src/API/getSkyblockGarden.ts +21 -0
- package/src/API/getSkyblockGovernment.test.ts +78 -0
- package/src/API/getSkyblockGovernment.ts +20 -0
- package/src/API/getSkyblockMember.test.ts +308 -0
- package/src/API/getSkyblockMember.ts +45 -0
- package/src/API/getSkyblockMuseum.test.ts +91 -0
- package/src/API/getSkyblockMuseum.ts +22 -0
- package/src/API/getSkyblockNews.test.ts +45 -0
- package/src/API/getSkyblockNews.ts +20 -0
- package/src/API/getSkyblockProfiles.test.ts +164 -0
- package/src/API/getSkyblockProfiles.ts +43 -0
- package/src/API/getStatus.test.ts +42 -0
- package/src/API/getStatus.ts +21 -0
- package/src/API/getWatchdogStats.test.ts +44 -0
- package/src/API/getWatchdogStats.ts +20 -0
- package/src/API/index.ts +56 -0
- package/src/Client.test.ts +148 -0
- package/src/Client.ts +91 -0
- package/src/Errors.ts +42 -0
- package/src/Private/CacheHandler.test.ts +49 -0
- package/src/Private/CacheHandler.ts +41 -0
- package/src/Private/Endpoint.test.ts +23 -0
- package/src/Private/Endpoint.ts +14 -0
- package/src/Private/RateLimit.test.ts +99 -0
- package/src/Private/RateLimit.ts +38 -0
- package/src/Private/Requests.test.ts +59 -0
- package/src/Private/Requests.ts +128 -0
- package/src/Private/Updater.test.ts +68 -0
- package/src/Private/Updater.ts +48 -0
- package/src/index.ts +119 -0
- package/src/structures/Boosters/Booster.ts +40 -0
- package/src/structures/Color.ts +79 -0
- package/src/structures/Game.ts +147 -0
- package/src/structures/GameCounts.ts +26 -0
- package/src/structures/Guild/Guild.ts +67 -0
- package/src/structures/Guild/GuildMember.ts +33 -0
- package/src/structures/Guild/GuildRank.ts +22 -0
- package/src/structures/House.ts +24 -0
- package/src/structures/ItemBytes.ts +18 -0
- package/src/structures/Leaderboard.ts +14 -0
- package/src/structures/MiniGames/Arcade.ts +460 -0
- package/src/structures/MiniGames/ArenaBrawl.ts +51 -0
- package/src/structures/MiniGames/{BedWars.js → BedWars.ts} +198 -298
- package/src/structures/MiniGames/BlitzSurvivalGames.ts +173 -0
- package/src/structures/MiniGames/BuildBattle.ts +36 -0
- package/src/structures/MiniGames/CopsAndCrims.ts +131 -0
- package/src/structures/MiniGames/{Duels.js → Duels.ts} +200 -737
- package/src/structures/MiniGames/MegaWalls.ts +197 -0
- package/src/structures/MiniGames/MurderMystery.ts +87 -0
- package/src/structures/MiniGames/Paintball.ts +38 -0
- package/src/structures/MiniGames/Pit.ts +139 -0
- package/src/structures/MiniGames/PitInventoryItem.ts +18 -0
- package/src/structures/MiniGames/Quakecraft.ts +70 -0
- package/src/structures/MiniGames/SkyWars.ts +288 -0
- package/src/structures/MiniGames/SmashHeroes.ts +114 -0
- package/src/structures/MiniGames/SpeedUHC.ts +71 -0
- package/src/structures/MiniGames/TNTGames.ts +126 -0
- package/src/structures/MiniGames/TurboKartRacers.ts +59 -0
- package/src/structures/MiniGames/{UHC.js → UHC.ts} +32 -114
- package/src/structures/MiniGames/VampireZ.ts +41 -0
- package/src/structures/MiniGames/Walls.ts +24 -0
- package/src/structures/MiniGames/Warlords.ts +79 -0
- package/src/structures/MiniGames/WoolWars.ts +106 -0
- package/src/structures/Pet.ts +40 -0
- package/src/structures/Pets.ts +46 -0
- package/src/structures/Player.ts +199 -0
- package/src/structures/{PlayerCosmetics.js → PlayerCosmetics.ts} +36 -63
- package/src/structures/RecentGame.ts +27 -0
- package/src/structures/ServerInfo.ts +40 -0
- package/src/structures/SkyBlock/Auctions/Auction.ts +43 -0
- package/src/structures/SkyBlock/Auctions/AuctionInfo.ts +20 -0
- package/src/structures/SkyBlock/Auctions/BaseAuction.ts +22 -0
- package/src/structures/SkyBlock/Auctions/Bid.ts +22 -0
- package/src/structures/SkyBlock/Bazzar/Order.ts +18 -0
- package/src/structures/SkyBlock/Bazzar/Product.ts +40 -0
- package/src/structures/SkyBlock/News/SkyblockNews.ts +35 -0
- package/src/structures/SkyBlock/SkyblockGarden.ts +118 -0
- package/src/structures/SkyBlock/SkyblockInventoryItem.ts +83 -0
- package/src/structures/SkyBlock/SkyblockMember.ts +317 -0
- package/src/structures/SkyBlock/SkyblockMuseum.ts +43 -0
- package/src/structures/SkyBlock/SkyblockMuseumItem.ts +26 -0
- package/src/structures/SkyBlock/SkyblockPet.ts +30 -0
- package/src/structures/SkyBlock/SkyblockProfile.ts +42 -0
- package/src/structures/SkyBlock/Static/Bingo.ts +50 -0
- package/src/structures/SkyBlock/Static/BingoData.ts +21 -0
- package/src/structures/SkyBlock/Static/Candidate.ts +22 -0
- package/src/structures/SkyBlock/Static/FireSale.ts +24 -0
- package/src/structures/SkyBlock/Static/Government.ts +42 -0
- package/src/structures/SkyBlock/Static/Perk.ts +10 -0
- package/src/structures/Static/Achievement.ts +49 -0
- package/src/structures/Static/AchievementTier.ts +18 -0
- package/src/structures/Static/Achievements.ts +20 -0
- package/src/structures/Static/Challenges.ts +20 -0
- package/src/structures/Static/GameAchievements.ts +19 -0
- package/src/structures/Static/GameChallenges.ts +28 -0
- package/src/structures/Static/GameQuests.ts +13 -0
- package/src/structures/Static/GuildAchievements.ts +19 -0
- package/src/structures/Static/Quest.ts +37 -0
- package/src/structures/Static/Quests.ts +20 -0
- package/src/structures/Status.ts +20 -0
- package/src/structures/Watchdog/Stats.ts +16 -0
- package/src/typings/index.d.ts +24 -0
- package/src/utils/{Constants.js → Constants.ts} +201 -1248
- package/src/utils/Guild.ts +90 -0
- package/src/utils/Player.ts +93 -0
- package/src/utils/SkyblockUtils.test.ts +9 -0
- package/src/utils/SkyblockUtils.ts +516 -0
- package/src/utils/divide.test.ts +13 -0
- package/src/utils/{divide.js → divide.ts} +2 -2
- package/src/utils/isGuildID.test.ts +19 -0
- package/src/utils/isGuildID.ts +3 -0
- package/src/utils/isUUID.test.ts +35 -0
- package/src/utils/{isUUID.js → isUUID.ts} +2 -2
- package/src/utils/oscillation.ts +11 -0
- package/src/utils/removeSnakeCase.ts +18 -0
- package/src/utils/romanize.test.ts +9 -0
- package/src/utils/{romanize.js → romanize.ts} +3 -4
- package/tsconfig.json +25 -0
- package/vitest.config.ts +8 -0
- package/vitest.setup.ts +2 -0
- 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 -1058
- package/src/structures/MiniGames/ArenaBrawl.js +0 -118
- 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/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/VampireZ.js +0 -93
- package/src/structures/MiniGames/Walls.js +0 -52
- package/src/structures/MiniGames/Warlords.js +0 -187
- package/src/structures/MiniGames/WoolWars.js +0 -174
- package/src/structures/Pet.js +0 -96
- package/src/structures/Pets.js +0 -64
- package/src/structures/Player.js +0 -346
- 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/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/index.js +0 -14
- package/src/utils/isGuildID.js +0 -3
- package/src/utils/oscillation.js +0 -17
- package/src/utils/removeSnakeCase.js +0 -33
- package/src/utils/rgbToHexColor.js +0 -8
- package/src/utils/toUuid.js +0 -24
- package/src/utils/varInt.js +0 -17
- package/typings/index.d.ts +0 -4297
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { SkyblockSkillLevel, getLevelByXp } from '../../utils/SkyblockUtils';
|
|
2
|
+
|
|
3
|
+
export interface SkyblockGardenVisitorServed {
|
|
4
|
+
total: number;
|
|
5
|
+
unique: number;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface SkyblockGardenVisitor {
|
|
9
|
+
visited: Record<string, number>;
|
|
10
|
+
completed: Record<string, number>;
|
|
11
|
+
served: SkyblockGardenVisitorServed;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface SkyblockGardenComposterUpgrades {
|
|
15
|
+
speed: number;
|
|
16
|
+
multiDrop: number;
|
|
17
|
+
fuelCap: number;
|
|
18
|
+
organicMatterCap: number;
|
|
19
|
+
costReduction: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface SkyblockGardenComposter {
|
|
23
|
+
organicMatter: number;
|
|
24
|
+
fuelUnits: number;
|
|
25
|
+
compostUnits: number;
|
|
26
|
+
compostItems: number;
|
|
27
|
+
conversionTicks: number;
|
|
28
|
+
upgrades: SkyblockGardenComposterUpgrades;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface SkyblockGarenCrops {
|
|
32
|
+
wheat: number;
|
|
33
|
+
carrot: number;
|
|
34
|
+
sugarCane: number;
|
|
35
|
+
potato: number;
|
|
36
|
+
pumpkin: number;
|
|
37
|
+
melon: number;
|
|
38
|
+
cactus: number;
|
|
39
|
+
cocoBeans: number;
|
|
40
|
+
mushroom: number;
|
|
41
|
+
netherWart: number;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface SkyblockGardenCropMilestones {
|
|
45
|
+
wheat: SkyblockSkillLevel;
|
|
46
|
+
carrot: SkyblockSkillLevel;
|
|
47
|
+
sugarCane: SkyblockSkillLevel;
|
|
48
|
+
potato: SkyblockSkillLevel;
|
|
49
|
+
pumpkin: SkyblockSkillLevel;
|
|
50
|
+
melon: SkyblockSkillLevel;
|
|
51
|
+
cactus: SkyblockSkillLevel;
|
|
52
|
+
cocoBeans: SkyblockSkillLevel;
|
|
53
|
+
mushroom: SkyblockSkillLevel;
|
|
54
|
+
netherWart: SkyblockSkillLevel;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
class SkyblockGarden {
|
|
58
|
+
level: SkyblockSkillLevel;
|
|
59
|
+
barnSkin: string;
|
|
60
|
+
unlockedPlots: string[];
|
|
61
|
+
visitors: SkyblockGardenVisitor;
|
|
62
|
+
cropMilestones: SkyblockGardenCropMilestones;
|
|
63
|
+
composter: SkyblockGardenComposter;
|
|
64
|
+
cropUpgrades: SkyblockGarenCrops;
|
|
65
|
+
constructor(data: Record<string, any>) {
|
|
66
|
+
this.level = getLevelByXp(data?.garden?.garden_experience || 0, 'garden');
|
|
67
|
+
this.barnSkin = data.garden?.selected_barn_skin || '';
|
|
68
|
+
this.unlockedPlots = data.garden?.unlocked_plots_ids || [];
|
|
69
|
+
this.visitors = {
|
|
70
|
+
visited: data.garden?.commission_data?.visits || {},
|
|
71
|
+
completed: data.garden?.commission_data?.completed || {},
|
|
72
|
+
served: {
|
|
73
|
+
total: data.garden?.commission_data?.total_completed || 0,
|
|
74
|
+
unique: data.garden?.commission_data?.unique_npcs_served || 0
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
this.cropMilestones = {
|
|
78
|
+
wheat: getLevelByXp(data.garden?.resources_collected?.WHEAT || 0, 'wheat'),
|
|
79
|
+
carrot: getLevelByXp(data.garden?.resources_collected?.CARROT_ITEM || 0, 'carrot'),
|
|
80
|
+
sugarCane: getLevelByXp(data.garden?.resources_collected?.SUGAR_CANE || 0, 'sugarCane'),
|
|
81
|
+
potato: getLevelByXp(data.garden?.resources_collected?.POTATO_ITEM || 0, 'potato'),
|
|
82
|
+
pumpkin: getLevelByXp(data.garden?.resources_collected?.PUMPKIN || 0, 'pumpkin'),
|
|
83
|
+
melon: getLevelByXp(data.garden?.resources_collected?.MELON || 0, 'melon'),
|
|
84
|
+
cactus: getLevelByXp(data.garden?.resources_collected?.CACTUS || 0, 'cactus'),
|
|
85
|
+
cocoBeans: getLevelByXp(data.garden?.resources_collected?.['INK_SACK:3'] || 0, 'cocoBeans'),
|
|
86
|
+
mushroom: getLevelByXp(data.garden?.resources_collected?.MUSHROOM_COLLECTION || 0, 'mushroom'),
|
|
87
|
+
netherWart: getLevelByXp(data.garden?.resources_collected?.NETHER_STALK || 0, 'netherWart')
|
|
88
|
+
};
|
|
89
|
+
this.composter = {
|
|
90
|
+
organicMatter: data.garden?.composter_data?.organic_matter || 0,
|
|
91
|
+
fuelUnits: data.garden?.composter_data?.fuel_units || 0,
|
|
92
|
+
compostUnits: data.garden?.composter_data?.compost_units || 0,
|
|
93
|
+
compostItems: data.garden?.composter_data?.compost_items || 0,
|
|
94
|
+
conversionTicks: data.garden?.composter_data?.conversion_ticks || 0,
|
|
95
|
+
upgrades: {
|
|
96
|
+
speed: data.garden?.composter_data?.upgrades?.speed || 0,
|
|
97
|
+
multiDrop: data.garden?.composter_data?.upgrades?.multi_drop || 0,
|
|
98
|
+
fuelCap: data.garden?.composter_data?.upgrades?.fuel_cap || 0,
|
|
99
|
+
organicMatterCap: data.garden?.composter_data?.upgrades?.organic_matter_cap || 0,
|
|
100
|
+
costReduction: data.garden?.composter_data?.upgrades?.cost_reduction || 0
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
this.cropUpgrades = {
|
|
104
|
+
wheat: data.garden?.crop_upgrade_levels?.WHEAT || 0,
|
|
105
|
+
carrot: data.garden?.crop_upgrade_levels?.CARROT_ITEM || 0,
|
|
106
|
+
sugarCane: data.garden?.crop_upgrade_levels?.SUGAR_CANE || 0,
|
|
107
|
+
potato: data.garden?.crop_upgrade_levels?.POTATO_ITEM || 0,
|
|
108
|
+
pumpkin: data.garden?.crop_upgrade_levels?.PUMPKIN || 0,
|
|
109
|
+
melon: data.garden?.crop_upgrade_levels?.MELON || 0,
|
|
110
|
+
cactus: data.garden?.crop_upgrade_levels?.CACTUS || 0,
|
|
111
|
+
cocoBeans: data.garden?.crop_upgrade_levels?.['INK_SACK:3'] || 0,
|
|
112
|
+
mushroom: data.garden?.crop_upgrade_levels?.MUSHROOM_COLLECTION || 0,
|
|
113
|
+
netherWart: data.garden?.crop_upgrade_levels?.NETHER_STALK || 0
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export default SkyblockGarden;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export type SkyblockGemstoneQuality = 'Rough' | 'Flawed' | 'Fine' | 'Flawless' | 'Perfect';
|
|
2
|
+
import { parseGearScore, parseRarity } from '../../utils/SkyblockUtils';
|
|
3
|
+
|
|
4
|
+
export class SkyblockGemstone {
|
|
5
|
+
type: string;
|
|
6
|
+
quality: SkyblockGemstoneQuality;
|
|
7
|
+
constructor(data: Record<string, any>) {
|
|
8
|
+
this.type = data.type;
|
|
9
|
+
this.quality = data.quality;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class SkyblockInventoryItem {
|
|
14
|
+
itemId: number;
|
|
15
|
+
count: number;
|
|
16
|
+
name: string;
|
|
17
|
+
lore: string;
|
|
18
|
+
loreArray: string[];
|
|
19
|
+
loreForEmbed: string;
|
|
20
|
+
color: string | null;
|
|
21
|
+
enchantments: Record<string, number>;
|
|
22
|
+
reforge: string;
|
|
23
|
+
gemstones: SkyblockGemstone[] | [];
|
|
24
|
+
damage: number;
|
|
25
|
+
rarity: string;
|
|
26
|
+
dungeonStars: number;
|
|
27
|
+
gearScore: number;
|
|
28
|
+
uuid: string;
|
|
29
|
+
soulbound: boolean;
|
|
30
|
+
artOfWar: number;
|
|
31
|
+
rune: object;
|
|
32
|
+
hotPotatoBooks: number;
|
|
33
|
+
recombobulated: boolean;
|
|
34
|
+
attributes: object;
|
|
35
|
+
hecatomb: number;
|
|
36
|
+
champion: number;
|
|
37
|
+
cultivating: number;
|
|
38
|
+
expertise: number;
|
|
39
|
+
compact: number;
|
|
40
|
+
blocksWalked: number;
|
|
41
|
+
constructor(data: Record<string, any>) {
|
|
42
|
+
this.itemId = data?.id || 0;
|
|
43
|
+
this.count = data?.Count || 0;
|
|
44
|
+
this.name =
|
|
45
|
+
null !== data?.tag?.display?.Name
|
|
46
|
+
? data?.tag?.display?.Name?.toString()?.replace(/§([1-9]|[a-f])|§/gm, '')
|
|
47
|
+
: null;
|
|
48
|
+
this.lore = data?.tag?.display?.Lore?.join('\n');
|
|
49
|
+
this.loreArray = data?.tag?.display?.Lore;
|
|
50
|
+
this.loreForEmbed = this?.lore?.replace(/§([0-9]|[a-f])|§/gm, '')?.replace(/<br>/gm, '\n');
|
|
51
|
+
this.color = data?.tag?.ExtraAttributes?.color ?? data?.tag?.display?.color ?? null;
|
|
52
|
+
this.enchantments = data?.tag?.ExtraAttributes?.enchantments ?? null;
|
|
53
|
+
this.reforge = data?.tag?.ExtraAttributes?.modifier ?? null;
|
|
54
|
+
this.gemstones = data?.tag?.ExtraAttributes?.gems
|
|
55
|
+
? Object.entries(data?.tag?.ExtraAttributes?.gems)?.map((gem) => {
|
|
56
|
+
return new SkyblockGemstone({ type: gem[0], quality: gem[1] as SkyblockGemstoneQuality });
|
|
57
|
+
})
|
|
58
|
+
: [];
|
|
59
|
+
this.damage = data?.Damage || 0;
|
|
60
|
+
this.rarity = parseRarity(this?.loreArray[this?.loreArray?.length - 1]);
|
|
61
|
+
this.dungeonStars = data?.tag?.ExtraAttributes?.upgrade_level ?? 0;
|
|
62
|
+
this.gearScore = parseGearScore(this?.loreArray);
|
|
63
|
+
this.uuid = data?.tag?.ExtraAttributes?.uuid ?? '';
|
|
64
|
+
this.soulbound = 1 === data?.tag?.ExtraAttributes?.donated_museum;
|
|
65
|
+
this.artOfWar = data?.tag?.ExtraAttributes?.art_of_war_count ?? 0;
|
|
66
|
+
this.rune = data?.tag?.ExtraAttributes?.runes ?? null;
|
|
67
|
+
this.hotPotatoBooks = data?.tag?.ExtraAttributes?.hot_potato_count ?? 0;
|
|
68
|
+
this.recombobulated = 1 === data?.tag?.ExtraAttributes?.rarity_upgrades;
|
|
69
|
+
this.attributes = data?.tag?.ExtraAttributes?.attributes ?? {};
|
|
70
|
+
this.hecatomb = data?.tag?.ExtraAttributes?.hecatomb_s_runs ?? 0;
|
|
71
|
+
this.champion = data?.tag?.ExtraAttributes?.champion_combat_xp ?? 0;
|
|
72
|
+
this.cultivating = data?.tag?.ExtraAttributes?.farmed_cultivating ?? 0;
|
|
73
|
+
this.expertise = data?.tag?.ExtraAttributes?.expertise_kills ?? 0;
|
|
74
|
+
this.compact = data?.tag?.ExtraAttributes?.compact_blocks ?? 0;
|
|
75
|
+
this.blocksWalked = data?.tag?.ExtraAttributes?.blocks_walked ?? 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
toString(): string {
|
|
79
|
+
return this.name;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export default SkyblockInventoryItem;
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import Constants from '../../utils/Constants';
|
|
2
|
+
import SkyblockGarden from './SkyblockGarden';
|
|
3
|
+
import SkyblockInventoryItem from './SkyblockInventoryItem';
|
|
4
|
+
import SkyblockMuseum from './SkyblockMuseum';
|
|
5
|
+
import SkyblockPet from './SkyblockPet';
|
|
6
|
+
import { NetworthResult, getNetworth } from 'skyhelper-networth';
|
|
7
|
+
import {
|
|
8
|
+
SkyblockMemberChocolateFactoryData,
|
|
9
|
+
SkyblockMemberDungeons,
|
|
10
|
+
SkyblockMemberJacobData,
|
|
11
|
+
SkyblockMemberSkills,
|
|
12
|
+
SkyblockMemberSlayer,
|
|
13
|
+
SkyblockMemberStats,
|
|
14
|
+
SkyblockMemberTrophyFishRank,
|
|
15
|
+
SkyblockSkillLevel,
|
|
16
|
+
decode,
|
|
17
|
+
getBestiaryLevel,
|
|
18
|
+
getChocolateFactory,
|
|
19
|
+
getDungeons,
|
|
20
|
+
getJacobData,
|
|
21
|
+
getLevelByXp,
|
|
22
|
+
getMemberStats,
|
|
23
|
+
getPetLevel,
|
|
24
|
+
getSkills,
|
|
25
|
+
getSlayer,
|
|
26
|
+
getTrophyFishRank
|
|
27
|
+
} from '../../utils/SkyblockUtils';
|
|
28
|
+
import { createFarmingWeightCalculator } from 'farming-weight';
|
|
29
|
+
|
|
30
|
+
export interface SkyblockMemberEquipment {
|
|
31
|
+
gauntlet: SkyblockInventoryItem | null;
|
|
32
|
+
belt: SkyblockInventoryItem | null;
|
|
33
|
+
cloak: SkyblockInventoryItem | null;
|
|
34
|
+
necklace: SkyblockInventoryItem | null;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface SkyblockMemberArmor {
|
|
38
|
+
helmet: SkyblockInventoryItem | null;
|
|
39
|
+
chestplate: SkyblockInventoryItem | null;
|
|
40
|
+
leggings: SkyblockInventoryItem | null;
|
|
41
|
+
boots: SkyblockInventoryItem | null;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
class SkyblockMemberMinion {
|
|
45
|
+
t1: boolean;
|
|
46
|
+
t2: boolean;
|
|
47
|
+
t3: boolean;
|
|
48
|
+
t4: boolean;
|
|
49
|
+
t5: boolean;
|
|
50
|
+
t6: boolean;
|
|
51
|
+
t7: boolean;
|
|
52
|
+
t8: boolean;
|
|
53
|
+
t9: boolean;
|
|
54
|
+
t10: boolean;
|
|
55
|
+
t11: boolean;
|
|
56
|
+
t12: boolean;
|
|
57
|
+
[key: string]: boolean;
|
|
58
|
+
constructor(data: number[]) {
|
|
59
|
+
this.t1 = false;
|
|
60
|
+
this.t2 = false;
|
|
61
|
+
this.t3 = false;
|
|
62
|
+
this.t4 = false;
|
|
63
|
+
this.t5 = false;
|
|
64
|
+
this.t6 = false;
|
|
65
|
+
this.t7 = false;
|
|
66
|
+
this.t8 = false;
|
|
67
|
+
this.t9 = false;
|
|
68
|
+
this.t10 = false;
|
|
69
|
+
this.t11 = false;
|
|
70
|
+
this.t12 = false;
|
|
71
|
+
data.forEach((tier) => {
|
|
72
|
+
if (1 <= tier && 12 >= tier) {
|
|
73
|
+
this[`t${tier}`] = true;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
class SkyblockMemberMinions {
|
|
80
|
+
[key: string]: SkyblockMemberMinion;
|
|
81
|
+
constructor(data: string[]) {
|
|
82
|
+
const parsed = this.#parse(data);
|
|
83
|
+
Object.keys(parsed).forEach((minion) => {
|
|
84
|
+
this[minion] = new SkyblockMemberMinion(parsed[minion]);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
#parse(data: string[]): { [key: string]: number[] } {
|
|
89
|
+
return data.reduce((acc: { [key: string]: number[] }, item: string) => {
|
|
90
|
+
const lastUnderscoreIndex = item.lastIndexOf('_');
|
|
91
|
+
if (-1 === lastUnderscoreIndex) return acc;
|
|
92
|
+
const name = item.substring(0, lastUnderscoreIndex);
|
|
93
|
+
const number = item.substring(lastUnderscoreIndex + 1);
|
|
94
|
+
const num = parseInt(number, 10);
|
|
95
|
+
if (isNaN(num)) return acc;
|
|
96
|
+
if (!acc[name]) acc[name] = [];
|
|
97
|
+
acc[name].push(num);
|
|
98
|
+
return acc;
|
|
99
|
+
}, {});
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
class SkyblockMember {
|
|
104
|
+
uuid: string;
|
|
105
|
+
gameMode: string | null;
|
|
106
|
+
selected: boolean;
|
|
107
|
+
garden: SkyblockGarden | null;
|
|
108
|
+
museum: SkyblockMuseum | null;
|
|
109
|
+
profileName: string;
|
|
110
|
+
profileId: string;
|
|
111
|
+
firstJoinTimestamp: number;
|
|
112
|
+
firstJoinAt: Date;
|
|
113
|
+
experience: number;
|
|
114
|
+
level: number;
|
|
115
|
+
hotm: SkyblockSkillLevel;
|
|
116
|
+
trophyFish: SkyblockMemberTrophyFishRank;
|
|
117
|
+
highestMagicalPower: number;
|
|
118
|
+
fairySouls: number;
|
|
119
|
+
fairyExchanges: number;
|
|
120
|
+
skills: SkyblockMemberSkills;
|
|
121
|
+
bestiary: number;
|
|
122
|
+
slayer: SkyblockMemberSlayer | null;
|
|
123
|
+
dungeons: SkyblockMemberDungeons | null;
|
|
124
|
+
collections: Record<string, number>;
|
|
125
|
+
purse: number;
|
|
126
|
+
stats: SkyblockMemberStats | null;
|
|
127
|
+
pets: SkyblockPet[];
|
|
128
|
+
jacob: SkyblockMemberJacobData;
|
|
129
|
+
chocolate: SkyblockMemberChocolateFactoryData;
|
|
130
|
+
minions: SkyblockMemberMinions;
|
|
131
|
+
getArmor: () => Promise<SkyblockMemberArmor>;
|
|
132
|
+
getWardrobe: () => Promise<SkyblockInventoryItem[]>;
|
|
133
|
+
getEnderChest: () => Promise<SkyblockInventoryItem[]>;
|
|
134
|
+
getInventory: () => Promise<SkyblockInventoryItem[]>;
|
|
135
|
+
getPetScore: () => number;
|
|
136
|
+
getEquipment: () => Promise<SkyblockMemberEquipment>;
|
|
137
|
+
getPersonalVault: () => Promise<SkyblockInventoryItem[]>;
|
|
138
|
+
getNetworth: () => Promise<NetworthResult | null>;
|
|
139
|
+
getFarmingWeight: () => number;
|
|
140
|
+
constructor(data: Record<string, any>) {
|
|
141
|
+
this.uuid = data.uuid;
|
|
142
|
+
this.gameMode = data.gameMode;
|
|
143
|
+
this.selected = data.selected;
|
|
144
|
+
this.garden = data.garden;
|
|
145
|
+
this.museum = data.museum;
|
|
146
|
+
this.profileName = data.profileName;
|
|
147
|
+
this.profileId = data.profileId;
|
|
148
|
+
this.firstJoinTimestamp = data.m.profile?.first_join;
|
|
149
|
+
this.firstJoinAt = new Date(data.m.profile?.first_join);
|
|
150
|
+
this.experience = data.m.leveling?.experience ?? 0;
|
|
151
|
+
this.level = this.experience ? this.experience / 100 : 0;
|
|
152
|
+
this.hotm = getLevelByXp(data.m.mining_core?.experience, 'hotm');
|
|
153
|
+
this.trophyFish = getTrophyFishRank(data.m.trophy_fish?.rewards?.length ?? 0);
|
|
154
|
+
this.highestMagicalPower = data.m.accessory_bag_storage?.highest_magical_power ?? 0;
|
|
155
|
+
this.fairySouls = data.m?.fairy_soul?.total_collected ?? 0;
|
|
156
|
+
this.fairyExchanges = data.m?.fairy_soul?.fairy_exchanges ?? 0;
|
|
157
|
+
this.skills = getSkills(data.m);
|
|
158
|
+
this.bestiary = getBestiaryLevel(data.m);
|
|
159
|
+
this.slayer = getSlayer(data.m);
|
|
160
|
+
this.dungeons = getDungeons(data.m);
|
|
161
|
+
this.collections = data.m.collection ? data.m.collection : null;
|
|
162
|
+
this.purse = data.m?.currencies?.coin_purse ?? 0;
|
|
163
|
+
this.stats = data.m.player_stats ? getMemberStats(data.m.player_stats) : null;
|
|
164
|
+
this.pets = data.m?.pets_data?.pets ? data.m.pets_data.pets.map((pet: any) => new SkyblockPet(pet)) : [];
|
|
165
|
+
this.jacob = getJacobData(data.m);
|
|
166
|
+
this.chocolate = getChocolateFactory(data.m);
|
|
167
|
+
this.minions = new SkyblockMemberMinions(data.m?.player_data?.crafted_generators ?? []);
|
|
168
|
+
this.getArmor = async () => {
|
|
169
|
+
const base64 = data.m.inventory.inv_armor;
|
|
170
|
+
const decoded = await decode(base64.data);
|
|
171
|
+
const armor = {
|
|
172
|
+
helmet: decoded[3].id ? new SkyblockInventoryItem(decoded[3]) : null,
|
|
173
|
+
chestplate: decoded[2].id ? new SkyblockInventoryItem(decoded[2]) : null,
|
|
174
|
+
leggings: decoded[1].id ? new SkyblockInventoryItem(decoded[1]) : null,
|
|
175
|
+
boots: decoded[0].id ? new SkyblockInventoryItem(decoded[0]) : null
|
|
176
|
+
};
|
|
177
|
+
return armor;
|
|
178
|
+
};
|
|
179
|
+
this.getWardrobe = async () => {
|
|
180
|
+
const base64 = data.m?.inventory?.wardrobe_contents?.data;
|
|
181
|
+
if (!base64) return [];
|
|
182
|
+
const decoded = await decode(base64);
|
|
183
|
+
const armor = decoded
|
|
184
|
+
.filter((item) => 0 !== Object.keys(item).length)
|
|
185
|
+
.map((item) => new SkyblockInventoryItem(item));
|
|
186
|
+
return armor;
|
|
187
|
+
};
|
|
188
|
+
this.getEnderChest = async () => {
|
|
189
|
+
let chest = data.m.inventory.ender_chest_contents;
|
|
190
|
+
if (!chest) return [];
|
|
191
|
+
try {
|
|
192
|
+
chest = await decode(chest.data);
|
|
193
|
+
const edited = [];
|
|
194
|
+
for (let i = 0; i < chest.length; i++) {
|
|
195
|
+
if (!chest[i].id) {
|
|
196
|
+
continue;
|
|
197
|
+
}
|
|
198
|
+
edited.push(new SkyblockInventoryItem(chest[i]));
|
|
199
|
+
}
|
|
200
|
+
return edited;
|
|
201
|
+
} catch {
|
|
202
|
+
return [];
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
this.getInventory = async () => {
|
|
206
|
+
let inventory = data.m.inventory.inv_contents;
|
|
207
|
+
if (!inventory) return [];
|
|
208
|
+
try {
|
|
209
|
+
inventory = await decode(inventory.data);
|
|
210
|
+
const edited = [];
|
|
211
|
+
for (let i = 0; i < inventory.length; i++) {
|
|
212
|
+
if (!inventory[i].id) {
|
|
213
|
+
continue;
|
|
214
|
+
}
|
|
215
|
+
edited.push(new SkyblockInventoryItem(inventory[i]));
|
|
216
|
+
}
|
|
217
|
+
return edited;
|
|
218
|
+
} catch {
|
|
219
|
+
return [];
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
this.getPetScore = () => {
|
|
223
|
+
const highestRarity: { [key: string]: any } = {};
|
|
224
|
+
for (const pet of data.m.pets_data.pets) {
|
|
225
|
+
if (
|
|
226
|
+
!(pet.type in highestRarity) ||
|
|
227
|
+
(Constants.petScore as { [key: number]: number })[pet.tier] > highestRarity[pet.type]
|
|
228
|
+
) {
|
|
229
|
+
highestRarity[pet.type] = (Constants.petScore as { [key: number]: number })[pet.tier];
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
const highestLevel: { [key: string]: any } = {};
|
|
233
|
+
for (const pet of data.m.pets_data.pets) {
|
|
234
|
+
const maxLevel = 'GOLDEN_DRAGON' === pet.type ? 200 : 100;
|
|
235
|
+
const petLevel = getPetLevel(pet.exp, pet.tier, maxLevel);
|
|
236
|
+
if (!(pet.type in highestLevel) || petLevel.level > highestLevel[pet.type]) {
|
|
237
|
+
if (petLevel.level < maxLevel) {
|
|
238
|
+
continue;
|
|
239
|
+
}
|
|
240
|
+
highestLevel[pet.type] = 1;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
return (
|
|
244
|
+
Object.values(highestRarity).reduce((a, b) => a + b, 0) + Object.values(highestLevel).reduce((a, b) => a + b, 0)
|
|
245
|
+
);
|
|
246
|
+
};
|
|
247
|
+
this.getEquipment = async () => {
|
|
248
|
+
let equipment = data.m.inventory.equipment_contents;
|
|
249
|
+
if (!equipment) {
|
|
250
|
+
return { gauntlet: null, belt: null, cloak: null, necklace: null };
|
|
251
|
+
}
|
|
252
|
+
try {
|
|
253
|
+
equipment = await decode(equipment.data);
|
|
254
|
+
const playerEquipment = {
|
|
255
|
+
gauntlet: equipment[3].id ? new SkyblockInventoryItem(equipment[3]) : null,
|
|
256
|
+
belt: equipment[2].id ? new SkyblockInventoryItem(equipment[2]) : null,
|
|
257
|
+
cloak: equipment[1].id ? new SkyblockInventoryItem(equipment[1]) : null,
|
|
258
|
+
necklace: equipment[0].id ? new SkyblockInventoryItem(equipment[0]) : null
|
|
259
|
+
};
|
|
260
|
+
return playerEquipment;
|
|
261
|
+
} catch {
|
|
262
|
+
return { gauntlet: null, belt: null, cloak: null, necklace: null };
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
this.getPersonalVault = async () => {
|
|
266
|
+
let vault = data.m.inventory.personal_vault_contents;
|
|
267
|
+
if (!vault) return [];
|
|
268
|
+
try {
|
|
269
|
+
vault = await decode(vault.data);
|
|
270
|
+
const edited = [];
|
|
271
|
+
for (let i = 0; i < vault.length; i++) {
|
|
272
|
+
if (!vault[i].id) {
|
|
273
|
+
continue;
|
|
274
|
+
}
|
|
275
|
+
edited.push(new SkyblockInventoryItem(vault[i]));
|
|
276
|
+
}
|
|
277
|
+
return edited;
|
|
278
|
+
} catch {
|
|
279
|
+
return [];
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
this.getNetworth = async () => {
|
|
283
|
+
try {
|
|
284
|
+
const nw = await getNetworth(data.m, data.banking?.balance ?? 0, {
|
|
285
|
+
onlyNetworth: true,
|
|
286
|
+
v2Endpoint: true,
|
|
287
|
+
cache: true,
|
|
288
|
+
museumData: data.museum?.raw ?? {}
|
|
289
|
+
});
|
|
290
|
+
return nw;
|
|
291
|
+
} catch {
|
|
292
|
+
return null;
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
this.getFarmingWeight = () => {
|
|
296
|
+
try {
|
|
297
|
+
return createFarmingWeightCalculator({
|
|
298
|
+
collection: this.collections,
|
|
299
|
+
farmingXp: this.skills.farming.xp,
|
|
300
|
+
levelCapUpgrade: this.jacob.perks.farmingLevelCap,
|
|
301
|
+
anitaBonusFarmingFortuneLevel: this.jacob.perks.doubleDrops,
|
|
302
|
+
minions: data.m.player_data.crafted_generators,
|
|
303
|
+
contests: Object.values(this.jacob.contests),
|
|
304
|
+
pests: data.m.bestiary.kills
|
|
305
|
+
}).getWeightInfo().totalWeight;
|
|
306
|
+
} catch {
|
|
307
|
+
return 0;
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
toString(): string {
|
|
313
|
+
return this.uuid;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export default SkyblockMember;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import SkyblockMuseumItem from './SkyblockMuseumItem';
|
|
2
|
+
import { decode } from '../../utils/SkyblockUtils';
|
|
3
|
+
|
|
4
|
+
class SkyblockMuseum {
|
|
5
|
+
raw: Record<string, any>;
|
|
6
|
+
value: number;
|
|
7
|
+
appraisal: boolean;
|
|
8
|
+
getItems: () => Promise<SkyblockMuseumItem[]>;
|
|
9
|
+
getSpecial: () => Promise<SkyblockMuseumItem[]>;
|
|
10
|
+
constructor(data: Record<string, any>) {
|
|
11
|
+
this.raw = data.m.members?.[data.uuid] ?? {};
|
|
12
|
+
this.value = data.value;
|
|
13
|
+
this.appraisal = data.appraisal;
|
|
14
|
+
this.getItems = async (): Promise<SkyblockMuseumItem[]> => {
|
|
15
|
+
const items: SkyblockMuseumItem[] = [];
|
|
16
|
+
for (const item of Object.keys(data?.m?.members[data?.uuid]?.items) || {}) {
|
|
17
|
+
items.push(
|
|
18
|
+
new SkyblockMuseumItem(
|
|
19
|
+
item,
|
|
20
|
+
data?.m?.members[data?.uuid]?.items[item],
|
|
21
|
+
await decode(data?.m?.members[data?.uuid]?.items[item]?.items?.data)
|
|
22
|
+
)
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
return items;
|
|
26
|
+
};
|
|
27
|
+
this.getSpecial = async (): Promise<SkyblockMuseumItem[]> => {
|
|
28
|
+
const items: SkyblockMuseumItem[] = [];
|
|
29
|
+
for (const item of Object.keys(data?.m?.members[data?.uuid]?.special || {})) {
|
|
30
|
+
items.push(
|
|
31
|
+
new SkyblockMuseumItem(
|
|
32
|
+
item,
|
|
33
|
+
data?.m?.members[data?.uuid]?.special[item],
|
|
34
|
+
await decode(data?.m?.members[data?.uuid]?.special[item]?.items?.data)
|
|
35
|
+
)
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
return items;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export default SkyblockMuseum;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import SkyblockInventoryItem from './SkyblockInventoryItem';
|
|
2
|
+
|
|
3
|
+
class SkyblockMuseumItem {
|
|
4
|
+
name: string;
|
|
5
|
+
donated: number;
|
|
6
|
+
items: SkyblockInventoryItem[];
|
|
7
|
+
borrowing: boolean;
|
|
8
|
+
featuredSlot: string | null;
|
|
9
|
+
constructor(name: string, data: Record<string, any>, decoded: any[]) {
|
|
10
|
+
this.name = name;
|
|
11
|
+
this.donated = data.donated_time || 0;
|
|
12
|
+
this.featuredSlot = data.featured_slot || null;
|
|
13
|
+
this.borrowing = data.borrowing || false;
|
|
14
|
+
this.items = [];
|
|
15
|
+
decoded.forEach((item) => {
|
|
16
|
+
if (!item.tag) return;
|
|
17
|
+
this.items.push(new SkyblockInventoryItem(item));
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
toString(): string {
|
|
22
|
+
return this.name;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export default SkyblockMuseumItem;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import Constants from '../../utils/Constants';
|
|
2
|
+
import { SkyblockRarity } from '../../utils/SkyblockUtils';
|
|
3
|
+
|
|
4
|
+
class SkyblockPet {
|
|
5
|
+
uuid: string;
|
|
6
|
+
name: string;
|
|
7
|
+
xp: number;
|
|
8
|
+
active: boolean;
|
|
9
|
+
rarity: SkyblockRarity;
|
|
10
|
+
petScore: number;
|
|
11
|
+
heldItem: string | null;
|
|
12
|
+
candyUsed: number;
|
|
13
|
+
skin: string | null;
|
|
14
|
+
constructor(data: Record<string, any>) {
|
|
15
|
+
this.uuid = data.uuid;
|
|
16
|
+
this.name = data.type;
|
|
17
|
+
this.xp = data.exp || 0;
|
|
18
|
+
this.active = Boolean(data.active);
|
|
19
|
+
this.rarity = data.tier;
|
|
20
|
+
this.petScore = (Constants.petScore as { [key: number]: number })[data.tier] || 0;
|
|
21
|
+
this.heldItem = data.heldItem ? data.heldItem.replace(/^PET_ITEM_/, '') : null;
|
|
22
|
+
this.candyUsed = data.candyUsed || 0;
|
|
23
|
+
this.skin = data.skin;
|
|
24
|
+
}
|
|
25
|
+
toString(): string {
|
|
26
|
+
return this.name;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export default SkyblockPet;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import SkyblockMember from './SkyblockMember';
|
|
2
|
+
|
|
3
|
+
class SkyblockProfile {
|
|
4
|
+
profileId: string;
|
|
5
|
+
profileName: string;
|
|
6
|
+
gameMode: string | null;
|
|
7
|
+
banking: object;
|
|
8
|
+
communityUpgrades: object;
|
|
9
|
+
selected: boolean;
|
|
10
|
+
members: SkyblockMember[];
|
|
11
|
+
me: SkyblockMember | undefined;
|
|
12
|
+
constructor(data: Record<string, any>) {
|
|
13
|
+
this.profileId = data.profileId;
|
|
14
|
+
this.profileName = data.profileName;
|
|
15
|
+
this.gameMode = data.gameMode;
|
|
16
|
+
this.banking = data.banking;
|
|
17
|
+
this.communityUpgrades = data.communityUpgrades;
|
|
18
|
+
this.selected = data.selected;
|
|
19
|
+
this.members = Object.keys(data.members).map(
|
|
20
|
+
(uuid) =>
|
|
21
|
+
new SkyblockMember({
|
|
22
|
+
uuid: uuid,
|
|
23
|
+
profileId: this.profileId,
|
|
24
|
+
garden: data.garden,
|
|
25
|
+
museum: data.museum,
|
|
26
|
+
profileName: this.profileName,
|
|
27
|
+
gameMode: this.gameMode,
|
|
28
|
+
m: data.members[uuid],
|
|
29
|
+
banking: this.banking,
|
|
30
|
+
communityUpgrades: this.communityUpgrades,
|
|
31
|
+
selected: this.selected
|
|
32
|
+
})
|
|
33
|
+
);
|
|
34
|
+
this.me = this.members.find((x) => x.uuid === data.uuid);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
toString(): string {
|
|
38
|
+
return this.profileName;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export default SkyblockProfile;
|