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,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;
|
|
@@ -0,0 +1,23 @@
|
|
|
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 Status_1 = __importDefault(require("../structures/Status"));
|
|
8
|
+
class getStatus extends Endpoint_1.default {
|
|
9
|
+
client;
|
|
10
|
+
constructor(client) {
|
|
11
|
+
super(client);
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
async execute(query, options) {
|
|
15
|
+
query = await this.client.requests.toUUID(query);
|
|
16
|
+
const res = await this.client.requests.request(`/status?uuid=${query}`, options);
|
|
17
|
+
if (res.options.raw)
|
|
18
|
+
return res.data;
|
|
19
|
+
return new Status_1.default(res.data.session);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.default = getStatus;
|
|
23
|
+
//# sourceMappingURL=getStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStatus.js","sourceRoot":"","sources":["../../src/API/getStatus.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,kEAA0C;AAG1C,MAAM,SAAU,SAAQ,kBAAQ;IACrB,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,OAAwB;QACnD,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,gBAAgB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QACjF,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,IAAI,gBAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;CACF;AAED,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Client from '../Client';
|
|
2
|
+
import Endpoint from '../Private/Endpoint';
|
|
3
|
+
import WatchdogStats from '../structures/Watchdog/Stats';
|
|
4
|
+
import { RequestOptions } from '../Private/Requests';
|
|
5
|
+
declare class getWatchdogStats extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(options?: RequestOptions): Promise<WatchdogStats>;
|
|
9
|
+
}
|
|
10
|
+
export default getWatchdogStats;
|
|
@@ -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 Stats_1 = __importDefault(require("../structures/Watchdog/Stats"));
|
|
8
|
+
class getWatchdogStats 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('/punishmentstats', options);
|
|
16
|
+
if (res.options.raw)
|
|
17
|
+
return res.data;
|
|
18
|
+
return new Stats_1.default(res.data);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = getWatchdogStats;
|
|
22
|
+
//# sourceMappingURL=getWatchdogStats.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWatchdogStats.js","sourceRoot":"","sources":["../../src/API/getWatchdogStats.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,yEAAyD;AAGzD,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,kBAAkB,EAAE,OAAO,CAAC,CAAC;QAC5E,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,IAAI,eAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;CACF;AAED,kBAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import getAchievements from './getAchievements';
|
|
2
|
+
import getActiveHouses from './getActiveHouses';
|
|
3
|
+
import getBoosters from './getBoosters';
|
|
4
|
+
import getChallenges from './getChallenges';
|
|
5
|
+
import getGameCounts from './getGameCounts';
|
|
6
|
+
import getGuild from './getGuild';
|
|
7
|
+
import getGuildAchievements from './getGuildAchievements';
|
|
8
|
+
import getHouse from './getHouse';
|
|
9
|
+
import getLeaderboards from './getLeaderboards';
|
|
10
|
+
import getPlayer from './getPlayer';
|
|
11
|
+
import getPlayerHouses from './getPlayerHouses';
|
|
12
|
+
import getQuests from './getQuests';
|
|
13
|
+
import getRecentGames from './getRecentGames';
|
|
14
|
+
import getSkyblockAuction from './getSkyblockAuction';
|
|
15
|
+
import getSkyblockAuctions from './getSkyblockAuctions';
|
|
16
|
+
import getSkyblockAuctionsByPlayer from './getSkyblockAuctionsByPlayer';
|
|
17
|
+
import getSkyblockBazaar from './getSkyblockBazaar';
|
|
18
|
+
import getSkyblockBingo from './getSkyblockBingo';
|
|
19
|
+
import getSkyblockFireSales from './getSkyblockFireSales';
|
|
20
|
+
import getSkyblockGarden from './getSkyblockGarden';
|
|
21
|
+
import getSkyblockGovernment from './getSkyblockGovernment';
|
|
22
|
+
import getSkyblockMember from './getSkyblockMember';
|
|
23
|
+
import getSkyblockMuseum from './getSkyblockMuseum';
|
|
24
|
+
import getSkyblockNews from './getSkyblockNews';
|
|
25
|
+
import getSkyblockProfiles from './getSkyblockProfiles';
|
|
26
|
+
import getStatus from './getStatus';
|
|
27
|
+
import getWatchdogStats from './getWatchdogStats';
|
|
28
|
+
declare const _default: {
|
|
29
|
+
getAchievements: typeof getAchievements;
|
|
30
|
+
getActiveHouses: typeof getActiveHouses;
|
|
31
|
+
getBoosters: typeof getBoosters;
|
|
32
|
+
getChallenges: typeof getChallenges;
|
|
33
|
+
getGameCounts: typeof getGameCounts;
|
|
34
|
+
getGuild: typeof getGuild;
|
|
35
|
+
getGuildAchievements: typeof getGuildAchievements;
|
|
36
|
+
getHouse: typeof getHouse;
|
|
37
|
+
getLeaderboards: typeof getLeaderboards;
|
|
38
|
+
getPlayer: typeof getPlayer;
|
|
39
|
+
getPlayerHouses: typeof getPlayerHouses;
|
|
40
|
+
getQuests: typeof getQuests;
|
|
41
|
+
getRecentGames: typeof getRecentGames;
|
|
42
|
+
getSkyblockAuction: typeof getSkyblockAuction;
|
|
43
|
+
getSkyblockAuctions: typeof getSkyblockAuctions;
|
|
44
|
+
getSkyblockAuctionsByPlayer: typeof getSkyblockAuctionsByPlayer;
|
|
45
|
+
getSkyblockBazaar: typeof getSkyblockBazaar;
|
|
46
|
+
getSkyblockBingo: typeof getSkyblockBingo;
|
|
47
|
+
getSkyblockFireSales: typeof getSkyblockFireSales;
|
|
48
|
+
getSkyblockGarden: typeof getSkyblockGarden;
|
|
49
|
+
getSkyblockGovernment: typeof getSkyblockGovernment;
|
|
50
|
+
getSkyblockMember: typeof getSkyblockMember;
|
|
51
|
+
getSkyblockMuseum: typeof getSkyblockMuseum;
|
|
52
|
+
getSkyblockNews: typeof getSkyblockNews;
|
|
53
|
+
getSkyblockProfiles: typeof getSkyblockProfiles;
|
|
54
|
+
getStatus: typeof getStatus;
|
|
55
|
+
getWatchdogStats: typeof getWatchdogStats;
|
|
56
|
+
};
|
|
57
|
+
export default _default;
|
|
@@ -0,0 +1,62 @@
|
|
|
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 getAchievements_1 = __importDefault(require("./getAchievements"));
|
|
7
|
+
const getActiveHouses_1 = __importDefault(require("./getActiveHouses"));
|
|
8
|
+
const getBoosters_1 = __importDefault(require("./getBoosters"));
|
|
9
|
+
const getChallenges_1 = __importDefault(require("./getChallenges"));
|
|
10
|
+
const getGameCounts_1 = __importDefault(require("./getGameCounts"));
|
|
11
|
+
const getGuild_1 = __importDefault(require("./getGuild"));
|
|
12
|
+
const getGuildAchievements_1 = __importDefault(require("./getGuildAchievements"));
|
|
13
|
+
const getHouse_1 = __importDefault(require("./getHouse"));
|
|
14
|
+
const getLeaderboards_1 = __importDefault(require("./getLeaderboards"));
|
|
15
|
+
const getPlayer_1 = __importDefault(require("./getPlayer"));
|
|
16
|
+
const getPlayerHouses_1 = __importDefault(require("./getPlayerHouses"));
|
|
17
|
+
const getQuests_1 = __importDefault(require("./getQuests"));
|
|
18
|
+
const getRecentGames_1 = __importDefault(require("./getRecentGames"));
|
|
19
|
+
const getSkyblockAuction_1 = __importDefault(require("./getSkyblockAuction"));
|
|
20
|
+
const getSkyblockAuctions_1 = __importDefault(require("./getSkyblockAuctions"));
|
|
21
|
+
const getSkyblockAuctionsByPlayer_1 = __importDefault(require("./getSkyblockAuctionsByPlayer"));
|
|
22
|
+
const getSkyblockBazaar_1 = __importDefault(require("./getSkyblockBazaar"));
|
|
23
|
+
const getSkyblockBingo_1 = __importDefault(require("./getSkyblockBingo"));
|
|
24
|
+
const getSkyblockFireSales_1 = __importDefault(require("./getSkyblockFireSales"));
|
|
25
|
+
const getSkyblockGarden_1 = __importDefault(require("./getSkyblockGarden"));
|
|
26
|
+
const getSkyblockGovernment_1 = __importDefault(require("./getSkyblockGovernment"));
|
|
27
|
+
const getSkyblockMember_1 = __importDefault(require("./getSkyblockMember"));
|
|
28
|
+
const getSkyblockMuseum_1 = __importDefault(require("./getSkyblockMuseum"));
|
|
29
|
+
const getSkyblockNews_1 = __importDefault(require("./getSkyblockNews"));
|
|
30
|
+
const getSkyblockProfiles_1 = __importDefault(require("./getSkyblockProfiles"));
|
|
31
|
+
const getStatus_1 = __importDefault(require("./getStatus"));
|
|
32
|
+
const getWatchdogStats_1 = __importDefault(require("./getWatchdogStats"));
|
|
33
|
+
exports.default = {
|
|
34
|
+
getAchievements: getAchievements_1.default,
|
|
35
|
+
getActiveHouses: getActiveHouses_1.default,
|
|
36
|
+
getBoosters: getBoosters_1.default,
|
|
37
|
+
getChallenges: getChallenges_1.default,
|
|
38
|
+
getGameCounts: getGameCounts_1.default,
|
|
39
|
+
getGuild: getGuild_1.default,
|
|
40
|
+
getGuildAchievements: getGuildAchievements_1.default,
|
|
41
|
+
getHouse: getHouse_1.default,
|
|
42
|
+
getLeaderboards: getLeaderboards_1.default,
|
|
43
|
+
getPlayer: getPlayer_1.default,
|
|
44
|
+
getPlayerHouses: getPlayerHouses_1.default,
|
|
45
|
+
getQuests: getQuests_1.default,
|
|
46
|
+
getRecentGames: getRecentGames_1.default,
|
|
47
|
+
getSkyblockAuction: getSkyblockAuction_1.default,
|
|
48
|
+
getSkyblockAuctions: getSkyblockAuctions_1.default,
|
|
49
|
+
getSkyblockAuctionsByPlayer: getSkyblockAuctionsByPlayer_1.default,
|
|
50
|
+
getSkyblockBazaar: getSkyblockBazaar_1.default,
|
|
51
|
+
getSkyblockBingo: getSkyblockBingo_1.default,
|
|
52
|
+
getSkyblockFireSales: getSkyblockFireSales_1.default,
|
|
53
|
+
getSkyblockGarden: getSkyblockGarden_1.default,
|
|
54
|
+
getSkyblockGovernment: getSkyblockGovernment_1.default,
|
|
55
|
+
getSkyblockMember: getSkyblockMember_1.default,
|
|
56
|
+
getSkyblockMuseum: getSkyblockMuseum_1.default,
|
|
57
|
+
getSkyblockNews: getSkyblockNews_1.default,
|
|
58
|
+
getSkyblockProfiles: getSkyblockProfiles_1.default,
|
|
59
|
+
getStatus: getStatus_1.default,
|
|
60
|
+
getWatchdogStats: getWatchdogStats_1.default
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/API/index.ts"],"names":[],"mappings":";;;;;AAAA,wEAAgD;AAChD,wEAAgD;AAChD,gEAAwC;AACxC,oEAA4C;AAC5C,oEAA4C;AAC5C,0DAAkC;AAClC,kFAA0D;AAC1D,0DAAkC;AAClC,wEAAgD;AAChD,4DAAoC;AACpC,wEAAgD;AAChD,4DAAoC;AACpC,sEAA8C;AAC9C,8EAAsD;AACtD,gFAAwD;AACxD,gGAAwE;AACxE,4EAAoD;AACpD,0EAAkD;AAClD,kFAA0D;AAC1D,4EAAoD;AACpD,oFAA4D;AAC5D,4EAAoD;AACpD,4EAAoD;AACpD,wEAAgD;AAChD,gFAAwD;AACxD,4DAAoC;AACpC,0EAAkD;AAClD,kBAAe;IACb,eAAe,EAAf,yBAAe;IACf,eAAe,EAAf,yBAAe;IACf,WAAW,EAAX,qBAAW;IACX,aAAa,EAAb,uBAAa;IACb,aAAa,EAAb,uBAAa;IACb,QAAQ,EAAR,kBAAQ;IACR,oBAAoB,EAApB,8BAAoB;IACpB,QAAQ,EAAR,kBAAQ;IACR,eAAe,EAAf,yBAAe;IACf,SAAS,EAAT,mBAAS;IACT,eAAe,EAAf,yBAAe;IACf,SAAS,EAAT,mBAAS;IACT,cAAc,EAAd,wBAAc;IACd,kBAAkB,EAAlB,4BAAkB;IAClB,mBAAmB,EAAnB,6BAAmB;IACnB,2BAA2B,EAA3B,qCAA2B;IAC3B,iBAAiB,EAAjB,2BAAiB;IACjB,gBAAgB,EAAhB,0BAAgB;IAChB,oBAAoB,EAApB,8BAAoB;IACpB,iBAAiB,EAAjB,2BAAiB;IACjB,qBAAqB,EAArB,+BAAqB;IACrB,iBAAiB,EAAjB,2BAAiB;IACjB,iBAAiB,EAAjB,2BAAiB;IACjB,eAAe,EAAf,yBAAe;IACf,mBAAmB,EAAnB,6BAAmB;IACnB,SAAS,EAAT,mBAAS;IACT,gBAAgB,EAAhB,0BAAgB;CACjB,CAAC"}
|
package/dist/Client.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import CacheHandler from './Private/CacheHandler';
|
|
2
|
+
import Errors from './Errors';
|
|
3
|
+
import RateLimit from './Private/RateLimit';
|
|
4
|
+
import Requests from './Private/Requests';
|
|
5
|
+
import Updater from './Private/Updater';
|
|
6
|
+
export interface ClientOptions {
|
|
7
|
+
cache?: boolean;
|
|
8
|
+
cacheTime?: number;
|
|
9
|
+
cacheMaxKeys?: number;
|
|
10
|
+
cacheCheckPeriod?: number;
|
|
11
|
+
rateLimit?: 'AUTO' | 'NONE';
|
|
12
|
+
silent?: boolean;
|
|
13
|
+
checkForUpdates?: boolean;
|
|
14
|
+
checkForUpdatesInterval?: number;
|
|
15
|
+
}
|
|
16
|
+
declare class Client {
|
|
17
|
+
options: ClientOptions;
|
|
18
|
+
requests: Requests;
|
|
19
|
+
cacheHandler: CacheHandler;
|
|
20
|
+
updater: Updater;
|
|
21
|
+
errors: Errors;
|
|
22
|
+
rateLimit: RateLimit;
|
|
23
|
+
readonly key: string;
|
|
24
|
+
interval: NodeJS.Timeout;
|
|
25
|
+
constructor(key: string, options?: ClientOptions);
|
|
26
|
+
destroy(): void;
|
|
27
|
+
private parasOptions;
|
|
28
|
+
}
|
|
29
|
+
export default Client;
|
package/dist/Client.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
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 API_1 = __importDefault(require("./API"));
|
|
7
|
+
const CacheHandler_1 = __importDefault(require("./Private/CacheHandler"));
|
|
8
|
+
const Errors_1 = __importDefault(require("./Errors"));
|
|
9
|
+
const RateLimit_1 = __importDefault(require("./Private/RateLimit"));
|
|
10
|
+
const Requests_1 = __importDefault(require("./Private/Requests"));
|
|
11
|
+
const Updater_1 = __importDefault(require("./Private/Updater"));
|
|
12
|
+
const clients = [];
|
|
13
|
+
class Client {
|
|
14
|
+
key;
|
|
15
|
+
constructor(key, options) {
|
|
16
|
+
this.key = key;
|
|
17
|
+
this.errors = new Errors_1.default();
|
|
18
|
+
if (!this.key.length)
|
|
19
|
+
throw new Error(this.errors.NO_API_KEY);
|
|
20
|
+
this.options = this.parasOptions(options);
|
|
21
|
+
this.requests = new Requests_1.default(this);
|
|
22
|
+
this.cacheHandler = new CacheHandler_1.default(this);
|
|
23
|
+
this.updater = new Updater_1.default(this);
|
|
24
|
+
this.rateLimit = new RateLimit_1.default(this);
|
|
25
|
+
if ('NONE' !== this.options.rateLimit)
|
|
26
|
+
this.rateLimit.initialize();
|
|
27
|
+
for (const func in API_1.default) {
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
29
|
+
// @ts-expect-error
|
|
30
|
+
const endpoint = new API_1.default[func](this);
|
|
31
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
32
|
+
// @ts-expect-error
|
|
33
|
+
this[func] = endpoint.execute.bind(endpoint);
|
|
34
|
+
}
|
|
35
|
+
if (clients.find((x) => x.key === key)) {
|
|
36
|
+
// eslint-disable-next-line no-console
|
|
37
|
+
console.warn(this.errors.MULTIPLE_INSTANCES);
|
|
38
|
+
const found = clients.find((x) => x.key === key);
|
|
39
|
+
if (found) {
|
|
40
|
+
this.destroy();
|
|
41
|
+
Object.assign(this, found);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (this.options.checkForUpdates) {
|
|
47
|
+
this.interval = setInterval(() => {
|
|
48
|
+
this.updater.checkForUpdates();
|
|
49
|
+
}, 1000 * 60 * (this.options.checkForUpdatesInterval ?? 60));
|
|
50
|
+
}
|
|
51
|
+
clients.push(this);
|
|
52
|
+
}
|
|
53
|
+
destroy() {
|
|
54
|
+
const clientIndex = clients.findIndex((client) => client.key === this.key);
|
|
55
|
+
if (-1 !== clientIndex)
|
|
56
|
+
clients.splice(clientIndex, 1);
|
|
57
|
+
if (this.interval)
|
|
58
|
+
clearInterval(this.interval);
|
|
59
|
+
if (this.rateLimit.interval)
|
|
60
|
+
clearInterval(this.rateLimit.interval);
|
|
61
|
+
}
|
|
62
|
+
parasOptions(options) {
|
|
63
|
+
return {
|
|
64
|
+
cache: options?.cache ?? true,
|
|
65
|
+
cacheTime: options?.cacheTime ?? 300,
|
|
66
|
+
cacheMaxKeys: options?.cacheMaxKeys ?? -1,
|
|
67
|
+
cacheCheckPeriod: options?.cacheCheckPeriod ?? 180,
|
|
68
|
+
rateLimit: options?.rateLimit ?? 'AUTO',
|
|
69
|
+
silent: options?.silent ?? false,
|
|
70
|
+
checkForUpdates: options?.checkForUpdates ?? true,
|
|
71
|
+
checkForUpdatesInterval: options?.checkForUpdatesInterval ?? 60
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.default = Client;
|
|
76
|
+
//# sourceMappingURL=Client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Client.js","sourceRoot":"","sources":["../src/Client.ts"],"names":[],"mappings":";;;;;AAAA,gDAAwB;AACxB,0EAAkD;AAClD,sDAA8B;AAC9B,oEAA4C;AAC5C,kEAA0C;AAC1C,gEAAwC;AAaxC,MAAM,OAAO,GAAa,EAAE,CAAC;AAE7B,MAAM,MAAM;IAOD,GAAG,CAAS;IAErB,YAAY,GAAW,EAAE,OAAuB;QAC9C,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,IAAI,gBAAM,EAAE,CAAC;QAC3B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAC9D,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC1C,IAAI,CAAC,QAAQ,GAAG,IAAI,kBAAQ,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,YAAY,GAAG,IAAI,sBAAY,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAS,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,MAAM,KAAK,IAAI,CAAC,OAAO,CAAC,SAAS;YAAE,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC;QACnE,KAAK,MAAM,IAAI,IAAI,aAAG,EAAE,CAAC;YACvB,6DAA6D;YAC7D,mBAAmB;YACnB,MAAM,QAAQ,GAAG,IAAI,aAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;YACrC,6DAA6D;YAC7D,mBAAmB;YACnB,IAAI,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC/C,CAAC;QACD,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,EAAE,CAAC;YACvC,sCAAsC;YACtC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;YAC7C,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC;YACjD,IAAI,KAAK,EAAE,CAAC;gBACV,IAAI,CAAC,OAAO,EAAE,CAAC;gBACf,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBAC3B,OAAO;YACT,CAAC;YACD,OAAO;QACT,CAAC;QACD,IAAI,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC;YACjC,IAAI,CAAC,QAAQ,GAAG,WAAW,CACzB,GAAG,EAAE;gBACH,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC;YACjC,CAAC,EACD,IAAI,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,uBAAuB,IAAI,EAAE,CAAC,CACzD,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC;IAED,OAAO;QACL,MAAM,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC;QAC3E,IAAI,CAAC,CAAC,KAAK,WAAW;YAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QACvD,IAAI,IAAI,CAAC,QAAQ;YAAE,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAChD,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ;YAAE,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACtE,CAAC;IAEO,YAAY,CAAC,OAAuB;QAC1C,OAAO;YACL,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,IAAI;YAC7B,SAAS,EAAE,OAAO,EAAE,SAAS,IAAI,GAAG;YACpC,YAAY,EAAE,OAAO,EAAE,YAAY,IAAI,CAAC,CAAC;YACzC,gBAAgB,EAAE,OAAO,EAAE,gBAAgB,IAAI,GAAG;YAClD,SAAS,EAAE,OAAO,EAAE,SAAS,IAAI,MAAM;YACvC,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,KAAK;YAChC,eAAe,EAAE,OAAO,EAAE,eAAe,IAAI,IAAI;YACjD,uBAAuB,EAAE,OAAO,EAAE,uBAAuB,IAAI,EAAE;SAChE,CAAC;IACJ,CAAC;CACF;AAED,kBAAe,MAAM,CAAC"}
|
package/dist/Errors.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare class Errors {
|
|
2
|
+
INVALID_API_KEY: string;
|
|
3
|
+
NO_API_KEY: string;
|
|
4
|
+
ERROR_CODE_CAUSE: string;
|
|
5
|
+
ERROR_STATUSTEXT: string;
|
|
6
|
+
NO_NICKNAME_UUID: string;
|
|
7
|
+
NO_UUID: string;
|
|
8
|
+
UUID_NICKNAME_MUST_BE_A_STRING: string;
|
|
9
|
+
MALFORMED_UUID: string;
|
|
10
|
+
PLAYER_HAS_NEVER_LOGGED: string;
|
|
11
|
+
NO_GUILD_QUERY: string;
|
|
12
|
+
INVALID_GUILD_ID: string;
|
|
13
|
+
INVALID_GUILD_SEARCH_PARAMETER: string;
|
|
14
|
+
SOMETHING_WENT_WRONG: string;
|
|
15
|
+
GUILD_DOES_NOT_EXIST: string;
|
|
16
|
+
PAGE_INDEX_ERROR: string;
|
|
17
|
+
INVALID_OPTION_VALUE: string;
|
|
18
|
+
UPDATER_REQUEST_NOT_OK: string;
|
|
19
|
+
MULTIPLE_INSTANCES: string;
|
|
20
|
+
UNEXPECTED_ERROR: string;
|
|
21
|
+
RATE_LIMIT_EXCEEDED: string;
|
|
22
|
+
NO_SKYBLOCK_PROFILES: string;
|
|
23
|
+
BAD_AUCTION_FILTER: string;
|
|
24
|
+
NOT_IMPLEMENTED: string;
|
|
25
|
+
RATE_LIMIT_INIT_ERROR: string;
|
|
26
|
+
}
|
|
27
|
+
export default Errors;
|
package/dist/Errors.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/* eslint-disable max-len */
|
|
4
|
+
class Errors {
|
|
5
|
+
INVALID_API_KEY = '[Hypixel-API-Reborn] Invalid API Key! For help join our Discord Server https://discord.gg/NSEBNMM';
|
|
6
|
+
NO_API_KEY = '[Hypixel-API-Reborn] No API Key specified! For help join our Discord Server https://discord.gg/NSEBNMM';
|
|
7
|
+
ERROR_CODE_CAUSE = '[Hypixel-API-Reborn] Code: {code} - {cause}! For help join our Discord Server https://discord.gg/NSEBNMM';
|
|
8
|
+
ERROR_STATUSTEXT = '[Hypixel-API-Reborn] {statustext}! For help join our Discord Server https://discord.gg/NSEBNMM';
|
|
9
|
+
NO_NICKNAME_UUID = '[Hypixel-API-Reborn] No nickname or uuid specified.';
|
|
10
|
+
NO_UUID = '[Hypixel-API-Reborn] No uuid specified.';
|
|
11
|
+
UUID_NICKNAME_MUST_BE_A_STRING = '[Hypixel-API-Reborn] Nickname or uuid must be a string.';
|
|
12
|
+
MALFORMED_UUID = '[Hypixel-API-Reborn] Malformed UUID!';
|
|
13
|
+
PLAYER_HAS_NEVER_LOGGED = '[Hypixel-API-Reborn] Player has never logged into Hypixel.';
|
|
14
|
+
NO_GUILD_QUERY = '[Hypixel-API-Reborn] No guild search query specified.';
|
|
15
|
+
INVALID_GUILD_ID = '[Hypixel-API-Reborn] Specified Guild ID is invalid.';
|
|
16
|
+
INVALID_GUILD_SEARCH_PARAMETER = "[Hypixel-API-Reborn] getGuild() searchParameter must be 'id'; 'guild' or 'player'.";
|
|
17
|
+
SOMETHING_WENT_WRONG = '[Hypixel-API-Reborn] Something went wrong. {cause}';
|
|
18
|
+
GUILD_DOES_NOT_EXIST = '[Hypixel-API-Reborn] Guild does not exist.';
|
|
19
|
+
PAGE_INDEX_ERROR = '[Hypixel-API-Reborn] Invalid page index. Must be an integer, an array of 2 integers, or a keyword. For help join our Discord Server https://discord.gg/NSEBNMM';
|
|
20
|
+
INVALID_OPTION_VALUE = '[Hypixel-API-Reborn] Invalid option value! For help join our Discord Server https://discord.gg/NSEBNMM';
|
|
21
|
+
UPDATER_REQUEST_NOT_OK = '[Hypixel-API-Reborn] Something went wrong while checking for updates.';
|
|
22
|
+
MULTIPLE_INSTANCES = '[Hypixel-API-Reborn] Multiple instances of hypixel-api-reborn are found so we merged them for you. Please refrain from spawning multiple instances in the future. For more information, join our Discord Server https://discord.gg/NSEBNMM.';
|
|
23
|
+
UNEXPECTED_ERROR = "[Hypixel-API-Reborn] The data provided to hypixel API is malformed and thus not recognized by hypixel, but this shouldn't be your fault. Please report this error in our Discord Server https://discord.gg/NSEBNMM or GitHub. ";
|
|
24
|
+
RATE_LIMIT_EXCEEDED = "[Hypixel-API-Reborn] The rate limitations on your API Key has been exceeded. There might be an outage (Check Hypixel's status page), or you simply did too many requests in a short time. Hint: Enable rate limit options! They can help you avoid this error! For help join our Discord Server https://discord.gg/NSEBNMM";
|
|
25
|
+
NO_SKYBLOCK_PROFILES = '[Hypixel-API-Reborn] The player has no skyblock profiles.';
|
|
26
|
+
BAD_AUCTION_FILTER = '[Hypixel-API-Reborn] Unexpected filter for Client#getSkyblockAuction. Expected one of "PLAYER", "AUCTION", "PROFILE", but got something else.';
|
|
27
|
+
NOT_IMPLEMENTED = '[Hypixel-API-Reborn] Endpoint execute method is not implemented yet! Please report this https://discord.gg/NSEBNMM';
|
|
28
|
+
RATE_LIMIT_INIT_ERROR = '[hypixel-api-reborn] An error happened whilst initializing rate limit. We strongly recommend restarting the code as this can lead to desynchronization.';
|
|
29
|
+
}
|
|
30
|
+
exports.default = Errors;
|
|
31
|
+
//# sourceMappingURL=Errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../src/Errors.ts"],"names":[],"mappings":";;AAAA,4BAA4B;AAC5B,MAAM,MAAM;IACV,eAAe,GACb,mGAAmG,CAAC;IACtG,UAAU,GACR,wGAAwG,CAAC;IAC3G,gBAAgB,GACd,0GAA0G,CAAC;IAC7G,gBAAgB,GACd,gGAAgG,CAAC;IACnG,gBAAgB,GAAW,qDAAqD,CAAC;IACjF,OAAO,GAAW,yCAAyC,CAAC;IAC5D,8BAA8B,GAAW,yDAAyD,CAAC;IACnG,cAAc,GAAW,sCAAsC,CAAC;IAChE,uBAAuB,GAAW,4DAA4D,CAAC;IAC/F,cAAc,GAAW,uDAAuD,CAAC;IACjF,gBAAgB,GAAW,qDAAqD,CAAC;IACjF,8BAA8B,GAC5B,oFAAoF,CAAC;IACvF,oBAAoB,GAAW,oDAAoD,CAAC;IACpF,oBAAoB,GAAW,4CAA4C,CAAC;IAC5E,gBAAgB,GACd,gKAAgK,CAAC;IACnK,oBAAoB,GAClB,wGAAwG,CAAC;IAC3G,sBAAsB,GAAW,uEAAuE,CAAC;IACzG,kBAAkB,GAChB,6OAA6O,CAAC;IAChP,gBAAgB,GACd,gOAAgO,CAAC;IACnO,mBAAmB,GACjB,4TAA4T,CAAC;IAC/T,oBAAoB,GAAW,2DAA2D,CAAC;IAC3F,kBAAkB,GAChB,+IAA+I,CAAC;IAClJ,eAAe,GACb,oHAAoH,CAAC;IACvH,qBAAqB,GACnB,yJAAyJ,CAAC;CAC7J;AAED,kBAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Client from '../Client';
|
|
2
|
+
import NodeCache from 'node-cache';
|
|
3
|
+
declare class CacheHandler {
|
|
4
|
+
readonly client: Client;
|
|
5
|
+
cache: NodeCache;
|
|
6
|
+
constructor(client: Client);
|
|
7
|
+
set(key: string, value: any): any;
|
|
8
|
+
has(key: string): boolean;
|
|
9
|
+
get(key: string): any;
|
|
10
|
+
keys(): string[];
|
|
11
|
+
size(): number;
|
|
12
|
+
clear(): void;
|
|
13
|
+
}
|
|
14
|
+
export default CacheHandler;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 node_cache_1 = __importDefault(require("node-cache"));
|
|
7
|
+
class CacheHandler {
|
|
8
|
+
client;
|
|
9
|
+
constructor(client) {
|
|
10
|
+
this.client = client;
|
|
11
|
+
this.cache = new node_cache_1.default({
|
|
12
|
+
stdTTL: this.client.options.cacheTime,
|
|
13
|
+
maxKeys: this.client.options.cacheMaxKeys,
|
|
14
|
+
checkperiod: this.client.options.cacheCheckPeriod
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
set(key, value) {
|
|
18
|
+
return this.cache.set(key, value);
|
|
19
|
+
}
|
|
20
|
+
has(key) {
|
|
21
|
+
return this.cache.has(key);
|
|
22
|
+
}
|
|
23
|
+
get(key) {
|
|
24
|
+
return this.cache.get(key);
|
|
25
|
+
}
|
|
26
|
+
keys() {
|
|
27
|
+
return this.cache.keys();
|
|
28
|
+
}
|
|
29
|
+
size() {
|
|
30
|
+
return this.cache.keys().length;
|
|
31
|
+
}
|
|
32
|
+
clear() {
|
|
33
|
+
this.cache.flushAll();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.default = CacheHandler;
|
|
37
|
+
//# sourceMappingURL=CacheHandler.js.map
|