hypixel-api-reborn 11.3.5 → 12.0.0-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -63
- package/dist/API/getAchievements.d.ts +10 -0
- package/dist/API/getAchievements.js +22 -0
- package/dist/API/getAchievements.js.map +1 -0
- package/dist/API/getActiveHouses.d.ts +10 -0
- package/dist/API/getActiveHouses.js +22 -0
- package/dist/API/getActiveHouses.js.map +1 -0
- package/dist/API/getBoosters.d.ts +10 -0
- package/dist/API/getBoosters.js +22 -0
- package/dist/API/getBoosters.js.map +1 -0
- package/dist/API/getChallenges.d.ts +10 -0
- package/dist/API/getChallenges.js +22 -0
- package/dist/API/getChallenges.js.map +1 -0
- package/dist/API/getGameCounts.d.ts +10 -0
- package/dist/API/getGameCounts.js +22 -0
- package/dist/API/getGameCounts.js.map +1 -0
- package/dist/API/getGuild.d.ts +10 -0
- package/dist/API/getGuild.js +36 -0
- package/dist/API/getGuild.js.map +1 -0
- package/dist/API/getGuildAchievements.d.ts +10 -0
- package/dist/API/getGuildAchievements.js +22 -0
- package/dist/API/getGuildAchievements.js.map +1 -0
- package/dist/API/getHouse.d.ts +10 -0
- package/dist/API/getHouse.js +24 -0
- package/dist/API/getHouse.js.map +1 -0
- package/dist/API/getLeaderboards.d.ts +9 -0
- package/dist/API/getLeaderboards.js +32 -0
- package/dist/API/getLeaderboards.js.map +1 -0
- package/dist/API/getPlayer.d.ts +10 -0
- package/dist/API/getPlayer.js +37 -0
- package/dist/API/getPlayer.js.map +1 -0
- package/dist/API/getPlayerHouses.d.ts +10 -0
- package/dist/API/getPlayerHouses.js +25 -0
- package/dist/API/getPlayerHouses.js.map +1 -0
- package/dist/API/getQuests.d.ts +10 -0
- package/dist/API/getQuests.js +22 -0
- package/dist/API/getQuests.js.map +1 -0
- package/dist/API/getRecentGames.d.ts +10 -0
- package/dist/API/getRecentGames.js +25 -0
- package/dist/API/getRecentGames.js.map +1 -0
- package/dist/API/getSkyblockAuction.d.ts +10 -0
- package/dist/API/getSkyblockAuction.js +38 -0
- package/dist/API/getSkyblockAuction.js.map +1 -0
- package/dist/API/getSkyblockAuctions.d.ts +24 -0
- package/dist/API/getSkyblockAuctions.js +57 -0
- package/dist/API/getSkyblockAuctions.js.map +1 -0
- package/dist/API/getSkyblockAuctionsByPlayer.d.ts +10 -0
- package/dist/API/getSkyblockAuctionsByPlayer.js +25 -0
- package/dist/API/getSkyblockAuctionsByPlayer.js.map +1 -0
- package/dist/API/getSkyblockBazaar.d.ts +10 -0
- package/dist/API/getSkyblockBazaar.js +22 -0
- package/dist/API/getSkyblockBazaar.js.map +1 -0
- package/dist/API/getSkyblockBingo.d.ts +10 -0
- package/dist/API/getSkyblockBingo.js +22 -0
- package/dist/API/getSkyblockBingo.js.map +1 -0
- package/dist/API/getSkyblockFireSales.d.ts +10 -0
- package/dist/API/getSkyblockFireSales.js +22 -0
- package/dist/API/getSkyblockFireSales.js.map +1 -0
- package/dist/API/getSkyblockGarden.d.ts +10 -0
- package/dist/API/getSkyblockGarden.js +24 -0
- package/dist/API/getSkyblockGarden.js.map +1 -0
- package/dist/API/getSkyblockGovernment.d.ts +10 -0
- package/dist/API/getSkyblockGovernment.js +22 -0
- package/dist/API/getSkyblockGovernment.js.map +1 -0
- package/dist/API/getSkyblockMember.d.ts +10 -0
- package/dist/API/getSkyblockMember.js +46 -0
- package/dist/API/getSkyblockMember.js.map +1 -0
- package/dist/API/getSkyblockMuseum.d.ts +10 -0
- package/dist/API/getSkyblockMuseum.js +25 -0
- package/dist/API/getSkyblockMuseum.js.map +1 -0
- package/dist/API/getSkyblockNews.d.ts +10 -0
- package/dist/API/getSkyblockNews.js +22 -0
- package/dist/API/getSkyblockNews.js.map +1 -0
- package/dist/API/getSkyblockProfiles.d.ts +10 -0
- package/dist/API/getSkyblockProfiles.js +47 -0
- package/dist/API/getSkyblockProfiles.js.map +1 -0
- package/dist/API/getStatus.d.ts +10 -0
- package/dist/API/getStatus.js +23 -0
- package/dist/API/getStatus.js.map +1 -0
- package/dist/API/getWatchdogStats.d.ts +10 -0
- package/dist/API/getWatchdogStats.js +22 -0
- package/dist/API/getWatchdogStats.js.map +1 -0
- package/dist/API/index.d.ts +57 -0
- package/dist/API/index.js +62 -0
- package/dist/API/index.js.map +1 -0
- package/dist/Client.d.ts +29 -0
- package/dist/Client.js +76 -0
- package/dist/Client.js.map +1 -0
- package/dist/Errors.d.ts +27 -0
- package/dist/Errors.js +31 -0
- package/dist/Errors.js.map +1 -0
- package/dist/Private/CacheHandler.d.ts +14 -0
- package/dist/Private/CacheHandler.js +37 -0
- package/dist/Private/CacheHandler.js.map +1 -0
- package/dist/Private/Endpoint.d.ts +7 -0
- package/dist/Private/Endpoint.js +13 -0
- package/dist/Private/Endpoint.js.map +1 -0
- package/dist/Private/RateLimit.d.ts +13 -0
- package/dist/Private/RateLimit.js +33 -0
- package/dist/Private/RateLimit.js.map +1 -0
- package/dist/Private/Requests.d.ts +29 -0
- package/dist/Private/Requests.js +112 -0
- package/dist/Private/Requests.js.map +1 -0
- package/dist/Private/Updater.d.ts +11 -0
- package/dist/Private/Updater.js +47 -0
- package/dist/Private/Updater.js.map +1 -0
- package/dist/index.d.ts +115 -0
- package/dist/index.js +132 -0
- package/dist/index.js.map +1 -0
- package/dist/structures/Boosters/Booster.d.ts +17 -0
- package/dist/structures/Boosters/Booster.js +44 -0
- package/dist/structures/Boosters/Booster.js.map +1 -0
- package/dist/structures/Color.d.ts +9 -0
- package/dist/structures/Color.js +76 -0
- package/dist/structures/Color.js.map +1 -0
- package/dist/structures/Game.d.ts +16 -0
- package/dist/structures/Game.js +35 -0
- package/dist/structures/Game.js.map +1 -0
- package/dist/structures/GameCounts.d.ts +7 -0
- package/dist/structures/GameCounts.js +29 -0
- package/dist/structures/GameCounts.js.map +1 -0
- package/dist/structures/Guild/Guild.d.ts +39 -0
- package/dist/structures/Guild/Guild.js +67 -0
- package/dist/structures/Guild/Guild.js.map +1 -0
- package/dist/structures/Guild/GuildMember.d.ts +15 -0
- package/dist/structures/Guild/GuildMember.js +33 -0
- package/dist/structures/Guild/GuildMember.js.map +1 -0
- package/dist/structures/Guild/GuildRank.d.ts +11 -0
- package/dist/structures/Guild/GuildRank.js +23 -0
- package/dist/structures/Guild/GuildRank.js.map +1 -0
- package/dist/structures/House.d.ts +12 -0
- package/dist/structures/House.js +25 -0
- package/dist/structures/House.js.map +1 -0
- package/dist/structures/ItemBytes.d.ts +7 -0
- package/dist/structures/ItemBytes.js +17 -0
- package/dist/structures/ItemBytes.js.map +1 -0
- package/dist/structures/Leaderboard.d.ts +8 -0
- package/dist/structures/Leaderboard.js +16 -0
- package/dist/structures/Leaderboard.js.map +1 -0
- package/dist/structures/MiniGames/Arcade.d.ts +234 -0
- package/dist/structures/MiniGames/Arcade.js +466 -0
- package/dist/structures/MiniGames/Arcade.js.map +1 -0
- package/dist/structures/MiniGames/ArenaBrawl.d.ts +26 -0
- package/dist/structures/MiniGames/ArenaBrawl.js +54 -0
- package/dist/structures/MiniGames/ArenaBrawl.js.map +1 -0
- package/dist/structures/MiniGames/BedWars.d.ts +116 -0
- package/dist/structures/MiniGames/BedWars.js +300 -0
- package/dist/structures/MiniGames/BedWars.js.map +1 -0
- package/dist/structures/MiniGames/BlitzSurvivalGames.d.ts +87 -0
- package/dist/structures/MiniGames/BlitzSurvivalGames.js +176 -0
- package/dist/structures/MiniGames/BlitzSurvivalGames.js.map +1 -0
- package/dist/structures/MiniGames/BuildBattle.d.ts +18 -0
- package/dist/structures/MiniGames/BuildBattle.js +33 -0
- package/dist/structures/MiniGames/BuildBattle.js.map +1 -0
- package/dist/structures/MiniGames/CopsAndCrims.d.ts +67 -0
- package/dist/structures/MiniGames/CopsAndCrims.js +132 -0
- package/dist/structures/MiniGames/CopsAndCrims.js.map +1 -0
- package/dist/structures/MiniGames/Duels.d.ts +188 -0
- package/dist/structures/MiniGames/Duels.js +473 -0
- package/dist/structures/MiniGames/Duels.js.map +1 -0
- package/dist/structures/MiniGames/MegaWalls.d.ts +99 -0
- package/dist/structures/MiniGames/MegaWalls.js +200 -0
- package/dist/structures/MiniGames/MegaWalls.js.map +1 -0
- package/dist/structures/MiniGames/MurderMystery.d.ts +44 -0
- package/dist/structures/MiniGames/MurderMystery.js +90 -0
- package/dist/structures/MiniGames/MurderMystery.js.map +1 -0
- package/dist/structures/MiniGames/Paintball.d.ts +19 -0
- package/dist/structures/MiniGames/Paintball.js +42 -0
- package/dist/structures/MiniGames/Paintball.js.map +1 -0
- package/dist/structures/MiniGames/Pit.d.ts +41 -0
- package/dist/structures/MiniGames/Pit.js +138 -0
- package/dist/structures/MiniGames/Pit.js.map +1 -0
- package/dist/structures/MiniGames/PitInventoryItem.d.ts +10 -0
- package/dist/structures/MiniGames/PitInventoryItem.js +20 -0
- package/dist/structures/MiniGames/PitInventoryItem.js.map +1 -0
- package/dist/structures/MiniGames/Quakecraft.d.ts +35 -0
- package/dist/structures/MiniGames/Quakecraft.js +74 -0
- package/dist/structures/MiniGames/Quakecraft.js.map +1 -0
- package/dist/structures/MiniGames/SkyWars.d.ts +112 -0
- package/dist/structures/MiniGames/SkyWars.js +272 -0
- package/dist/structures/MiniGames/SkyWars.js.map +1 -0
- package/dist/structures/MiniGames/SmashHeroes.d.ts +58 -0
- package/dist/structures/MiniGames/SmashHeroes.js +116 -0
- package/dist/structures/MiniGames/SmashHeroes.js.map +1 -0
- package/dist/structures/MiniGames/SpeedUHC.d.ts +36 -0
- package/dist/structures/MiniGames/SpeedUHC.js +74 -0
- package/dist/structures/MiniGames/SpeedUHC.js.map +1 -0
- package/dist/structures/MiniGames/TNTGames.d.ts +66 -0
- package/dist/structures/MiniGames/TNTGames.js +126 -0
- package/dist/structures/MiniGames/TNTGames.js.map +1 -0
- package/dist/structures/MiniGames/TurboKartRacers.d.ts +31 -0
- package/dist/structures/MiniGames/TurboKartRacers.js +60 -0
- package/dist/structures/MiniGames/TurboKartRacers.js.map +1 -0
- package/dist/structures/MiniGames/UHC.d.ts +31 -0
- package/dist/structures/MiniGames/UHC.js +115 -0
- package/dist/structures/MiniGames/UHC.js.map +1 -0
- package/dist/structures/MiniGames/VampireZ.d.ts +21 -0
- package/dist/structures/MiniGames/VampireZ.js +44 -0
- package/dist/structures/MiniGames/VampireZ.js.map +1 -0
- package/dist/structures/MiniGames/Walls.d.ts +12 -0
- package/dist/structures/MiniGames/Walls.js +28 -0
- package/dist/structures/MiniGames/Walls.js.map +1 -0
- package/dist/structures/MiniGames/Warlords.d.ts +40 -0
- package/dist/structures/MiniGames/Warlords.js +82 -0
- package/dist/structures/MiniGames/Warlords.js.map +1 -0
- package/dist/structures/MiniGames/WoolWars.d.ts +49 -0
- package/dist/structures/MiniGames/WoolWars.js +87 -0
- package/dist/structures/MiniGames/WoolWars.js.map +1 -0
- package/dist/structures/Pet.d.ts +19 -0
- package/dist/structures/Pet.js +41 -0
- package/dist/structures/Pet.js.map +1 -0
- package/dist/structures/Pets.d.ts +38 -0
- package/dist/structures/Pets.js +20 -0
- package/dist/structures/Pets.js.map +1 -0
- package/dist/structures/Player.d.ts +73 -0
- package/dist/structures/Player.js +158 -0
- package/dist/structures/Player.js.map +1 -0
- package/dist/structures/PlayerCosmetics.d.ts +26 -0
- package/dist/structures/PlayerCosmetics.js +120 -0
- package/dist/structures/PlayerCosmetics.js.map +1 -0
- package/dist/structures/RecentGame.d.ts +13 -0
- package/dist/structures/RecentGame.js +30 -0
- package/dist/structures/RecentGame.js.map +1 -0
- package/dist/structures/ServerInfo.d.ts +20 -0
- package/dist/structures/ServerInfo.js +34 -0
- package/dist/structures/ServerInfo.js.map +1 -0
- package/dist/structures/SkyBlock/Auctions/Auction.d.ts +22 -0
- package/dist/structures/SkyBlock/Auctions/Auction.js +45 -0
- package/dist/structures/SkyBlock/Auctions/Auction.js.map +1 -0
- package/dist/structures/SkyBlock/Auctions/AuctionInfo.d.ts +10 -0
- package/dist/structures/SkyBlock/Auctions/AuctionInfo.js +21 -0
- package/dist/structures/SkyBlock/Auctions/AuctionInfo.js.map +1 -0
- package/dist/structures/SkyBlock/Auctions/BaseAuction.d.ts +11 -0
- package/dist/structures/SkyBlock/Auctions/BaseAuction.js +25 -0
- package/dist/structures/SkyBlock/Auctions/BaseAuction.js.map +1 -0
- package/dist/structures/SkyBlock/Auctions/Bid.d.ts +11 -0
- package/dist/structures/SkyBlock/Auctions/Bid.js +23 -0
- package/dist/structures/SkyBlock/Auctions/Bid.js.map +1 -0
- package/dist/structures/SkyBlock/Bazzar/Order.d.ts +9 -0
- package/dist/structures/SkyBlock/Bazzar/Order.js +19 -0
- package/dist/structures/SkyBlock/Bazzar/Order.js.map +1 -0
- package/dist/structures/SkyBlock/Bazzar/Product.d.ts +19 -0
- package/dist/structures/SkyBlock/Bazzar/Product.js +33 -0
- package/dist/structures/SkyBlock/Bazzar/Product.js.map +1 -0
- package/dist/structures/SkyBlock/News/SkyblockNews.d.ts +10 -0
- package/dist/structures/SkyBlock/News/SkyblockNews.js +35 -0
- package/dist/structures/SkyBlock/News/SkyblockNews.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockGarden.d.ts +60 -0
- package/dist/structures/SkyBlock/SkyblockGarden.js +65 -0
- package/dist/structures/SkyBlock/SkyblockGarden.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockInventoryItem.d.ts +38 -0
- package/dist/structures/SkyBlock/SkyblockInventoryItem.js +83 -0
- package/dist/structures/SkyBlock/SkyblockInventoryItem.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockMember.d.ts +80 -0
- package/dist/structures/SkyBlock/SkyblockMember.js +288 -0
- package/dist/structures/SkyBlock/SkyblockMember.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockMuseum.d.ts +10 -0
- package/dist/structures/SkyBlock/SkyblockMuseum.js +35 -0
- package/dist/structures/SkyBlock/SkyblockMuseum.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockMuseumItem.d.ts +11 -0
- package/dist/structures/SkyBlock/SkyblockMuseumItem.js +30 -0
- package/dist/structures/SkyBlock/SkyblockMuseumItem.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockPet.d.ts +15 -0
- package/dist/structures/SkyBlock/SkyblockPet.js +33 -0
- package/dist/structures/SkyBlock/SkyblockPet.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockProfile.d.ts +14 -0
- package/dist/structures/SkyBlock/SkyblockProfile.js +42 -0
- package/dist/structures/SkyBlock/SkyblockProfile.js.map +1 -0
- package/dist/structures/SkyBlock/Static/Bingo.d.ts +16 -0
- package/dist/structures/SkyBlock/Static/Bingo.js +52 -0
- package/dist/structures/SkyBlock/Static/Bingo.js.map +1 -0
- package/dist/structures/SkyBlock/Static/BingoData.d.ts +10 -0
- package/dist/structures/SkyBlock/Static/BingoData.js +25 -0
- package/dist/structures/SkyBlock/Static/BingoData.js.map +1 -0
- package/dist/structures/SkyBlock/Static/Candidate.d.ts +11 -0
- package/dist/structures/SkyBlock/Static/Candidate.js +25 -0
- package/dist/structures/SkyBlock/Static/Candidate.js.map +1 -0
- package/dist/structures/SkyBlock/Static/FireSale.d.ts +12 -0
- package/dist/structures/SkyBlock/Static/FireSale.js +25 -0
- package/dist/structures/SkyBlock/Static/FireSale.js.map +1 -0
- package/dist/structures/SkyBlock/Static/Government.d.ts +13 -0
- package/dist/structures/SkyBlock/Static/Government.js +39 -0
- package/dist/structures/SkyBlock/Static/Government.js.map +1 -0
- package/dist/structures/SkyBlock/Static/Perk.d.ts +6 -0
- package/dist/structures/SkyBlock/Static/Perk.js +12 -0
- package/dist/structures/SkyBlock/Static/Perk.js.map +1 -0
- package/dist/structures/Static/Achievement.d.ts +14 -0
- package/dist/structures/Static/Achievement.js +50 -0
- package/dist/structures/Static/Achievement.js.map +1 -0
- package/dist/structures/Static/AchievementTier.d.ts +7 -0
- package/dist/structures/Static/AchievementTier.js +17 -0
- package/dist/structures/Static/AchievementTier.js.map +1 -0
- package/dist/structures/Static/Achievements.d.ts +9 -0
- package/dist/structures/Static/Achievements.js +21 -0
- package/dist/structures/Static/Achievements.js.map +1 -0
- package/dist/structures/Static/Challenges.d.ts +9 -0
- package/dist/structures/Static/Challenges.js +21 -0
- package/dist/structures/Static/Challenges.js.map +1 -0
- package/dist/structures/Static/GameAchievements.d.ts +10 -0
- package/dist/structures/Static/GameAchievements.js +20 -0
- package/dist/structures/Static/GameAchievements.js.map +1 -0
- package/dist/structures/Static/GameChallenges.d.ts +13 -0
- package/dist/structures/Static/GameChallenges.js +21 -0
- package/dist/structures/Static/GameChallenges.js.map +1 -0
- package/dist/structures/Static/GameQuests.d.ts +8 -0
- package/dist/structures/Static/GameQuests.js +16 -0
- package/dist/structures/Static/GameQuests.js.map +1 -0
- package/dist/structures/Static/GuildAchievements.d.ts +8 -0
- package/dist/structures/Static/GuildAchievements.js +21 -0
- package/dist/structures/Static/GuildAchievements.js.map +1 -0
- package/dist/structures/Static/Quest.d.ts +20 -0
- package/dist/structures/Static/Quest.js +27 -0
- package/dist/structures/Static/Quest.js.map +1 -0
- package/dist/structures/Static/Quests.d.ts +9 -0
- package/dist/structures/Static/Quests.js +21 -0
- package/dist/structures/Static/Quests.js.map +1 -0
- package/dist/structures/Status.d.ts +10 -0
- package/dist/structures/Status.js +23 -0
- package/dist/structures/Status.js.map +1 -0
- package/dist/structures/Watchdog/Stats.d.ts +9 -0
- package/dist/structures/Watchdog/Stats.js +18 -0
- package/dist/structures/Watchdog/Stats.js.map +1 -0
- package/dist/utils/Constants.d.ts +1017 -0
- package/dist/utils/Constants.js +2197 -0
- package/dist/utils/Constants.js.map +1 -0
- package/dist/utils/Guild.d.ts +15 -0
- package/dist/utils/Guild.js +85 -0
- package/dist/utils/Guild.js.map +1 -0
- package/dist/utils/Player.d.ts +8 -0
- package/dist/utils/Player.js +98 -0
- package/dist/utils/Player.js.map +1 -0
- package/dist/utils/SkyblockUtils.d.ts +131 -0
- package/dist/utils/SkyblockUtils.js +394 -0
- package/dist/utils/SkyblockUtils.js.map +1 -0
- package/dist/utils/divide.d.ts +1 -0
- package/dist/utils/divide.js +10 -0
- package/dist/utils/divide.js.map +1 -0
- package/dist/utils/isGuildID.d.ts +1 -0
- package/dist/utils/isGuildID.js +7 -0
- package/dist/utils/isGuildID.js.map +1 -0
- package/dist/utils/isUUID.d.ts +1 -0
- package/dist/utils/isUUID.js +9 -0
- package/dist/utils/isUUID.js.map +1 -0
- package/dist/utils/oscillation.d.ts +2 -0
- package/dist/utils/oscillation.js +15 -0
- package/dist/utils/oscillation.js.map +1 -0
- package/dist/utils/removeSnakeCase.d.ts +3 -0
- package/dist/utils/removeSnakeCase.js +20 -0
- package/dist/utils/removeSnakeCase.js.map +1 -0
- package/dist/utils/romanize.d.ts +1 -0
- package/dist/utils/romanize.js +45 -0
- package/dist/utils/romanize.js.map +1 -0
- package/package.json +33 -23
- package/.prettierrc +0 -13
- package/eslint.config.mjs +0 -71
- package/src/API/getAPIStatus.js +0 -8
- package/src/API/getAchievements.js +0 -7
- package/src/API/getBoosters.js +0 -7
- package/src/API/getChallenges.js +0 -7
- package/src/API/getGameCounts.js +0 -7
- package/src/API/getGuild.js +0 -19
- package/src/API/getGuildAchievements.js +0 -7
- package/src/API/getLeaderboards.js +0 -15
- package/src/API/getPlayer.js +0 -23
- package/src/API/getQuests.js +0 -7
- package/src/API/getRecentGames.js +0 -14
- package/src/API/getServerInfo.js +0 -71
- package/src/API/getStatus.js +0 -9
- package/src/API/getWatchdogStats.js +0 -7
- package/src/API/housing/getActiveHouses.js +0 -7
- package/src/API/housing/getHouse.js +0 -9
- package/src/API/housing/getPlayerHouses.js +0 -11
- package/src/API/index.js +0 -35
- package/src/API/skyblock/getAuction.js +0 -21
- package/src/API/skyblock/getAuctions.js +0 -74
- package/src/API/skyblock/getAuctionsByPlayer.js +0 -11
- package/src/API/skyblock/getBazaar.js +0 -8
- package/src/API/skyblock/getBingo.js +0 -7
- package/src/API/skyblock/getBingoByPlayer.js +0 -14
- package/src/API/skyblock/getEndedAuctions.js +0 -11
- package/src/API/skyblock/getFireSales.js +0 -7
- package/src/API/skyblock/getGarden.js +0 -11
- package/src/API/skyblock/getGovernment.js +0 -7
- package/src/API/skyblock/getMember.js +0 -35
- package/src/API/skyblock/getMuseum.js +0 -15
- package/src/API/skyblock/getNews.js +0 -7
- package/src/API/skyblock/getProfiles.js +0 -49
- package/src/Client.js +0 -547
- package/src/Errors.js +0 -66
- package/src/Private/defaultCache.js +0 -77
- package/src/Private/rateLimit.js +0 -83
- package/src/Private/requests.js +0 -76
- package/src/Private/updater.js +0 -34
- package/src/Private/uuidCache.js +0 -30
- package/src/Private/validate.js +0 -108
- package/src/index.js +0 -96
- package/src/structures/APIIncident.js +0 -71
- package/src/structures/APIStatus.js +0 -46
- package/src/structures/Boosters/Booster.js +0 -84
- package/src/structures/Color.js +0 -174
- package/src/structures/Game.js +0 -166
- package/src/structures/GameCounts.js +0 -151
- package/src/structures/Guild/Guild.js +0 -191
- package/src/structures/Guild/GuildMember.js +0 -66
- package/src/structures/Guild/GuildRank.js +0 -48
- package/src/structures/House.js +0 -54
- package/src/structures/ItemBytes.js +0 -33
- package/src/structures/Leaderboard.js +0 -31
- package/src/structures/MiniGames/Arcade.js +0 -986
- package/src/structures/MiniGames/ArenaBrawl.js +0 -118
- package/src/structures/MiniGames/BedWars.js +0 -554
- package/src/structures/MiniGames/BlitzSurvivalGames.js +0 -424
- package/src/structures/MiniGames/BuildBattle.js +0 -64
- package/src/structures/MiniGames/CopsAndCrims.js +0 -318
- package/src/structures/MiniGames/Duels.js +0 -1013
- package/src/structures/MiniGames/MegaWalls.js +0 -478
- package/src/structures/MiniGames/MurderMystery.js +0 -214
- package/src/structures/MiniGames/Paintball.js +0 -87
- package/src/structures/MiniGames/Pit.js +0 -247
- package/src/structures/MiniGames/PitInventoryItem.js +0 -43
- package/src/structures/MiniGames/Quakecraft.js +0 -164
- package/src/structures/MiniGames/SkyWars.js +0 -669
- package/src/structures/MiniGames/SmashHeroes.js +0 -272
- package/src/structures/MiniGames/SpeedUHC.js +0 -168
- package/src/structures/MiniGames/TNTGames.js +0 -285
- package/src/structures/MiniGames/TurboKartRacers.js +0 -141
- package/src/structures/MiniGames/UHC.js +0 -194
- package/src/structures/MiniGames/VampireZ.js +0 -93
- package/src/structures/MiniGames/Walls.js +0 -52
- package/src/structures/MiniGames/Warlords.js +0 -187
- package/src/structures/MiniGames/WoolGames.js +0 -405
- package/src/structures/Pet.js +0 -96
- package/src/structures/Pets.js +0 -64
- package/src/structures/Player.js +0 -346
- package/src/structures/PlayerCosmetics.js +0 -155
- package/src/structures/RecentGame.js +0 -57
- package/src/structures/ServerInfo.js +0 -78
- package/src/structures/SkyBlock/Auctions/Auction.js +0 -106
- package/src/structures/SkyBlock/Auctions/AuctionInfo.js +0 -56
- package/src/structures/SkyBlock/Auctions/BaseAuction.js +0 -46
- package/src/structures/SkyBlock/Auctions/Bid.js +0 -49
- package/src/structures/SkyBlock/Auctions/PartialAuction.js +0 -26
- package/src/structures/SkyBlock/Bazzar/Order.js +0 -38
- package/src/structures/SkyBlock/Bazzar/Product.js +0 -53
- package/src/structures/SkyBlock/News/SkyblockNews.js +0 -60
- package/src/structures/SkyBlock/PlayerBingo.js +0 -49
- package/src/structures/SkyBlock/SkyblockGarden.js +0 -146
- package/src/structures/SkyBlock/SkyblockInventoryItem.js +0 -168
- package/src/structures/SkyBlock/SkyblockMember.js +0 -591
- package/src/structures/SkyBlock/SkyblockMuseum.js +0 -60
- package/src/structures/SkyBlock/SkyblockMuseumItem.js +0 -54
- package/src/structures/SkyBlock/SkyblockPet.js +0 -71
- package/src/structures/SkyBlock/SkyblockProfile.js +0 -81
- package/src/structures/SkyBlock/Static/Bingo.js +0 -101
- package/src/structures/SkyBlock/Static/BingoData.js +0 -45
- package/src/structures/SkyBlock/Static/Candidate.js +0 -50
- package/src/structures/SkyBlock/Static/FireSale.js +0 -55
- package/src/structures/SkyBlock/Static/Government.js +0 -79
- package/src/structures/SkyBlock/Static/Perk.js +0 -23
- package/src/structures/Static/Achievement.js +0 -87
- package/src/structures/Static/AchievementTier.js +0 -33
- package/src/structures/Static/Achievements.js +0 -30
- package/src/structures/Static/Challenges.js +0 -29
- package/src/structures/Static/GameAchievements.js +0 -36
- package/src/structures/Static/GameChallenges.js +0 -40
- package/src/structures/Static/GameQuests.js +0 -24
- package/src/structures/Static/GuildAchievements.js +0 -34
- package/src/structures/Static/Quest.js +0 -66
- package/src/structures/Static/Quests.js +0 -31
- package/src/structures/Status.js +0 -41
- package/src/structures/Watchdog/Stats.js +0 -36
- package/src/utils/Constants.js +0 -3241
- package/src/utils/Guild.js +0 -90
- package/src/utils/Player.js +0 -112
- package/src/utils/SkyblockUtils.js +0 -667
- package/src/utils/arrayTools.js +0 -4
- package/src/utils/divide.js +0 -5
- package/src/utils/index.js +0 -14
- package/src/utils/isGuildID.js +0 -3
- package/src/utils/isUUID.js +0 -5
- package/src/utils/oscillation.js +0 -17
- package/src/utils/removeSnakeCase.js +0 -33
- package/src/utils/rgbToHexColor.js +0 -8
- package/src/utils/romanize.js +0 -42
- package/src/utils/toUuid.js +0 -24
- package/src/utils/varInt.js +0 -17
- package/typings/index.d.ts +0 -4332
package/README.md
CHANGED
|
@@ -1,67 +1,4 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<img src="https://i.imgur.com/cDFoQZU.png?1">
|
|
3
3
|
<h1>Hypixel API • Reborn</h1>
|
|
4
|
-
<a href="https://discord.gg/NSEBNMM"><img src="https://discordapp.com/api/guilds/660416184252104705/embed.png"></a>
|
|
5
|
-
<a href="https://travis-ci.org/StavZ/hypixel-api-reborn"><img src="https://flat.badgen.net/travis/hypixel-api-reborn/hypixel-api-reborn"></a>
|
|
6
|
-
<a href="https://app.codacy.com/gh/Hypixel-API-Reborn/hypixel-api-reborn?utm_source=github.com&utm_medium=referral&utm_content=Hypixel-API-Reborn/hypixel-api-reborn&utm_campaign=Badge_Grade"><img src="https://flat.badgen.net/codacy/grade/71cd7e95499b496cb2dd11c29b9def33/master"></a>
|
|
7
|
-
<img src="https://flat.badgen.net/npm/v/hypixel-api-reborn">
|
|
8
|
-
<img src="https://flat.badgen.net/npm/node/hypixel-api-reborn">
|
|
9
|
-
<img src="https://flat.badgen.net/npm/license/hypixel-api-reborn">
|
|
10
|
-
<a href="https://github.com/Hypixel-API-Reborn/hypixel-api-reborn"><img src="https://flat.badgen.net/github/stars/hypixel-api-reborn/hypixel-api-reborn"></a>
|
|
11
|
-
<a href="https://www.npmjs.com/package/hypixel-api-reborn"><img src="https://nodei.co/npm/hypixel-api-reborn.png?compact=true"></a>
|
|
12
|
-
<h2>A feature-rich Hypixel API wrapper for Node.js</h2>
|
|
13
|
-
<br>
|
|
14
4
|
</div>
|
|
15
|
-
|
|
16
|
-
### Links
|
|
17
|
-
|
|
18
|
-
[Discord Support](https://discord.gg/NSEBNMM) | [Documentation](https://hypixel-api-reborn.github.io/) |
|
|
19
|
-
[NPM](https://www.npmjs.com/package/hypixel-api-reborn) |
|
|
20
|
-
[GitHub](https://github.com/Hypixel-API-Reborn/hypixel-api-reborn) |
|
|
21
|
-
[ToDo](https://github.com/Hypixel-API-Reborn/hypixel-api-reborn/projects/1) |
|
|
22
|
-
[CLI](https://github.com/Hypixel-API-Reborn/cli)
|
|
23
|
-
|
|
24
|
-
#### Requirements
|
|
25
|
-
|
|
26
|
-
**For Node.js users >= v18.18.0** <br> **For TypeScript users >= v3.5**
|
|
27
|
-
|
|
28
|
-
### Installation & Usage
|
|
29
|
-
|
|
30
|
-
```shell
|
|
31
|
-
npm i hypixel-api-reborn
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
```js
|
|
35
|
-
const Hypixel = require('hypixel-api-reborn');
|
|
36
|
-
const hypixel = new Hypixel.Client('API-KEY');
|
|
37
|
-
|
|
38
|
-
// getPlayer
|
|
39
|
-
hypixel
|
|
40
|
-
.getPlayer('StavZDev')
|
|
41
|
-
.then((player) => {
|
|
42
|
-
console.log(player.level); // 141
|
|
43
|
-
})
|
|
44
|
-
.catch((e) => {
|
|
45
|
-
console.error(e);
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
// getGuild
|
|
49
|
-
hypixel
|
|
50
|
-
.getGuild('name', 'The Foundation')
|
|
51
|
-
.then((guild) => {
|
|
52
|
-
console.log(guild.level); // 111
|
|
53
|
-
})
|
|
54
|
-
.catch((e) => {
|
|
55
|
-
console.error(e);
|
|
56
|
-
});
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
For more examples go to our [documentation](https://hypixel-api-reborn.github.io/).
|
|
60
|
-
|
|
61
|
-
## Changelog
|
|
62
|
-
|
|
63
|
-
[v11.0.0](https://github.com/Hypixel-API-Reborn/hypixel-api-reborn/releases/tag/11.0.0)
|
|
64
|
-
|
|
65
|
-
### Try it now
|
|
66
|
-
|
|
67
|
-
**[Code Sandbox](https://codesandbox.io/s/clever-babbage-xqmfw?file=/src/index.js)**
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Achievements from '../structures/Static/Achievements';
|
|
2
|
+
import Client from '../Client';
|
|
3
|
+
import Endpoint from '../Private/Endpoint';
|
|
4
|
+
import { RequestOptions } from '../Private/Requests';
|
|
5
|
+
declare class getAchievements extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(options?: RequestOptions): Promise<Achievements>;
|
|
9
|
+
}
|
|
10
|
+
export default getAchievements;
|
|
@@ -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 Achievements_1 = __importDefault(require("../structures/Static/Achievements"));
|
|
7
|
+
const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
|
|
8
|
+
class getAchievements extends Endpoint_1.default {
|
|
9
|
+
client;
|
|
10
|
+
constructor(client) {
|
|
11
|
+
super(client);
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
async execute(options) {
|
|
15
|
+
const res = await this.client.requests.request('/resources/achievements', options);
|
|
16
|
+
if (res.options.raw)
|
|
17
|
+
return res.data;
|
|
18
|
+
return new Achievements_1.default(res.data);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = getAchievements;
|
|
22
|
+
//# sourceMappingURL=getAchievements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAchievements.js","sourceRoot":"","sources":["../../src/API/getAchievements.ts"],"names":[],"mappings":";;;;;AAAA,qFAA6D;AAE7D,mEAA2C;AAG3C,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,yBAAyB,EAAE,OAAO,CAAC,CAAC;QACnF,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,IAAI,sBAAY,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;CACF;AAED,kBAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Client from '../Client';
|
|
2
|
+
import Endpoint from '../Private/Endpoint';
|
|
3
|
+
import House from '../structures/House';
|
|
4
|
+
import { RequestOptions } from '../Private/Requests';
|
|
5
|
+
declare class getActiveHouses extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(options?: RequestOptions): Promise<House[]>;
|
|
9
|
+
}
|
|
10
|
+
export default getActiveHouses;
|
|
@@ -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 House_1 = __importDefault(require("../structures/House"));
|
|
8
|
+
class getActiveHouses 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('/housing/active', options);
|
|
16
|
+
if (res.options.raw)
|
|
17
|
+
return res.data;
|
|
18
|
+
return res.data.map((b) => new House_1.default(b));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = getActiveHouses;
|
|
22
|
+
//# sourceMappingURL=getActiveHouses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getActiveHouses.js","sourceRoot":"","sources":["../../src/API/getActiveHouses.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,gEAAwC;AAGxC,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,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,IAAI,eAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,CAAC;CACF;AAED,kBAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Booster from '../structures/Boosters/Booster';
|
|
2
|
+
import Client from '../Client';
|
|
3
|
+
import Endpoint from '../Private/Endpoint';
|
|
4
|
+
import { RequestOptions } from '../Private/Requests';
|
|
5
|
+
declare class getBoosters extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(options?: RequestOptions): Promise<Booster[]>;
|
|
9
|
+
}
|
|
10
|
+
export default getBoosters;
|
|
@@ -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 Booster_1 = __importDefault(require("../structures/Boosters/Booster"));
|
|
7
|
+
const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
|
|
8
|
+
class getBoosters 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('/boosters', options);
|
|
16
|
+
if (res.options.raw)
|
|
17
|
+
return res.data;
|
|
18
|
+
return res.data.boosters.map((b) => new Booster_1.default(b)).reverse();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = getBoosters;
|
|
22
|
+
//# sourceMappingURL=getBoosters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBoosters.js","sourceRoot":"","sources":["../../src/API/getBoosters.ts"],"names":[],"mappings":";;;;;AAAA,6EAAqD;AAErD,mEAA2C;AAG3C,MAAM,WAAY,SAAQ,kBAAQ;IACvB,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,WAAW,EAAE,OAAO,CAAC,CAAC;QACrE,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,IAAI,iBAAO,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IACrE,CAAC;CACF;AAED,kBAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Challenges from '../structures/Static/Challenges';
|
|
2
|
+
import Client from '../Client';
|
|
3
|
+
import Endpoint from '../Private/Endpoint';
|
|
4
|
+
import { RequestOptions } from '../Private/Requests';
|
|
5
|
+
declare class getChallenges extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(options?: RequestOptions): Promise<Challenges>;
|
|
9
|
+
}
|
|
10
|
+
export default getChallenges;
|
|
@@ -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 Challenges_1 = __importDefault(require("../structures/Static/Challenges"));
|
|
7
|
+
const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
|
|
8
|
+
class getChallenges extends Endpoint_1.default {
|
|
9
|
+
client;
|
|
10
|
+
constructor(client) {
|
|
11
|
+
super(client);
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
async execute(options) {
|
|
15
|
+
const res = await this.client.requests.request('/resources/challenges', options);
|
|
16
|
+
if (res.options.raw)
|
|
17
|
+
return res.data;
|
|
18
|
+
return new Challenges_1.default(res.data);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = getChallenges;
|
|
22
|
+
//# sourceMappingURL=getChallenges.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getChallenges.js","sourceRoot":"","sources":["../../src/API/getChallenges.ts"],"names":[],"mappings":";;;;;AAAA,iFAAyD;AAEzD,mEAA2C;AAG3C,MAAM,aAAc,SAAQ,kBAAQ;IACzB,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,uBAAuB,EAAE,OAAO,CAAC,CAAC;QACjF,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,IAAI,oBAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;CACF;AACD,kBAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Client from '../Client';
|
|
2
|
+
import Endpoint from '../Private/Endpoint';
|
|
3
|
+
import GameCounts from '../structures/GameCounts';
|
|
4
|
+
import { RequestOptions } from '../Private/Requests';
|
|
5
|
+
declare class getGameCounts extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(options?: RequestOptions): Promise<GameCounts>;
|
|
9
|
+
}
|
|
10
|
+
export default getGameCounts;
|
|
@@ -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 GameCounts_1 = __importDefault(require("../structures/GameCounts"));
|
|
8
|
+
class getGameCounts 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('/counts', options);
|
|
16
|
+
if (res.options.raw)
|
|
17
|
+
return res.data;
|
|
18
|
+
return new GameCounts_1.default(res.data);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = getGameCounts;
|
|
22
|
+
//# sourceMappingURL=getGameCounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGameCounts.js","sourceRoot":"","sources":["../../src/API/getGameCounts.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,0EAAkD;AAGlD,MAAM,aAAc,SAAQ,kBAAQ;IACzB,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,SAAS,EAAE,OAAO,CAAC,CAAC;QACnE,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,IAAI,oBAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;CACF;AAED,kBAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Client from '../Client';
|
|
2
|
+
import Endpoint from '../Private/Endpoint';
|
|
3
|
+
import Guild from '../structures/Guild/Guild';
|
|
4
|
+
import { RequestOptions } from '../Private/Requests';
|
|
5
|
+
declare class getGuild extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(searchParameter: 'id' | 'name' | 'player', query: string, options?: RequestOptions): Promise<Guild | null>;
|
|
9
|
+
}
|
|
10
|
+
export default getGuild;
|
|
@@ -0,0 +1,36 @@
|
|
|
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 Guild_1 = __importDefault(require("../structures/Guild/Guild"));
|
|
8
|
+
const isGuildID_1 = __importDefault(require("../utils/isGuildID"));
|
|
9
|
+
class getGuild extends Endpoint_1.default {
|
|
10
|
+
client;
|
|
11
|
+
constructor(client) {
|
|
12
|
+
super(client);
|
|
13
|
+
this.client = client;
|
|
14
|
+
}
|
|
15
|
+
async execute(searchParameter, query, options) {
|
|
16
|
+
if (!query)
|
|
17
|
+
throw new Error(this.client.errors.NO_GUILD_QUERY);
|
|
18
|
+
if ('id' === searchParameter && !(0, isGuildID_1.default)(query))
|
|
19
|
+
throw new Error(this.client.errors.INVALID_GUILD_ID);
|
|
20
|
+
const isPlayerQuery = 'player' === searchParameter;
|
|
21
|
+
if (isPlayerQuery)
|
|
22
|
+
query = await this.client.requests.toUUID(query);
|
|
23
|
+
if (!['id', 'name', 'player'].includes(searchParameter)) {
|
|
24
|
+
throw new Error(this.client.errors.INVALID_GUILD_SEARCH_PARAMETER);
|
|
25
|
+
}
|
|
26
|
+
const res = await this.client.requests.request(`/guild?${searchParameter}=${encodeURI(query)}`, options);
|
|
27
|
+
if (res.options.raw)
|
|
28
|
+
return res.data;
|
|
29
|
+
if (!res.data.guild && 'player' !== searchParameter) {
|
|
30
|
+
throw new Error(this.client.errors.GUILD_DOES_NOT_EXIST);
|
|
31
|
+
}
|
|
32
|
+
return res.data.guild ? new Guild_1.default(res.data.guild, isPlayerQuery ? query : undefined) : null;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.default = getGuild;
|
|
36
|
+
//# sourceMappingURL=getGuild.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGuild.js","sourceRoot":"","sources":["../../src/API/getGuild.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,sEAA8C;AAC9C,mEAA2C;AAG3C,MAAM,QAAS,SAAQ,kBAAQ;IACpB,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CACX,eAAyC,EACzC,KAAa,EACb,OAAwB;QAExB,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;QAC/D,IAAI,IAAI,KAAK,eAAe,IAAI,CAAC,IAAA,mBAAS,EAAC,KAAK,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACxG,MAAM,aAAa,GAAG,QAAQ,KAAK,eAAe,CAAC;QACnD,IAAI,aAAa;YAAE,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACpE,IAAI,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC;YACxD,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,8BAA8B,CAAC,CAAC;QACrE,CAAC;QACD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,eAAe,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QACzG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,IAAI,QAAQ,KAAK,eAAe,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;QAC3D,CAAC;QACD,OAAO,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,eAAK,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC9F,CAAC;CACF;AAED,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Client from '../Client';
|
|
2
|
+
import Endpoint from '../Private/Endpoint';
|
|
3
|
+
import GuildAchievements from '../structures/Static/GuildAchievements';
|
|
4
|
+
import { RequestOptions } from '../Private/Requests';
|
|
5
|
+
declare class getGuildAchievements extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(options?: RequestOptions): Promise<GuildAchievements>;
|
|
9
|
+
}
|
|
10
|
+
export default getGuildAchievements;
|
|
@@ -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 GuildAchievements_1 = __importDefault(require("../structures/Static/GuildAchievements"));
|
|
8
|
+
class getGuildAchievements extends Endpoint_1.default {
|
|
9
|
+
client;
|
|
10
|
+
constructor(client) {
|
|
11
|
+
super(client);
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
async execute(options) {
|
|
15
|
+
const res = await this.client.requests.request('/resources/guilds/achievements', options);
|
|
16
|
+
if (res.options.raw)
|
|
17
|
+
return res.data;
|
|
18
|
+
return new GuildAchievements_1.default(res.data);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = getGuildAchievements;
|
|
22
|
+
//# sourceMappingURL=getGuildAchievements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGuildAchievements.js","sourceRoot":"","sources":["../../src/API/getGuildAchievements.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,+FAAuE;AAGvE,MAAM,oBAAqB,SAAQ,kBAAQ;IAChC,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,OAAwB;QACpC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC;QAC1F,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,IAAI,2BAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;CACF;AAED,kBAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Client from '../Client';
|
|
2
|
+
import Endpoint from '../Private/Endpoint';
|
|
3
|
+
import House from '../structures/House';
|
|
4
|
+
import { RequestOptions } from '../Private/Requests';
|
|
5
|
+
declare class getHouse extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(query: string, options?: RequestOptions): Promise<House>;
|
|
9
|
+
}
|
|
10
|
+
export default getHouse;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
|
|
7
|
+
const House_1 = __importDefault(require("../structures/House"));
|
|
8
|
+
class getHouse 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_UUID);
|
|
17
|
+
const res = await this.client.requests.request(`/housing/house?house=${query}`, options);
|
|
18
|
+
if (res.options.raw)
|
|
19
|
+
return res.data;
|
|
20
|
+
return new House_1.default(res.data);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.default = getHouse;
|
|
24
|
+
//# sourceMappingURL=getHouse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHouse.js","sourceRoot":"","sources":["../../src/API/getHouse.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,gEAAwC;AAGxC,MAAM,QAAS,SAAQ,kBAAQ;IACpB,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,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACxD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,wBAAwB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QACzF,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,IAAI,eAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;CACF;AAED,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Client from '../Client';
|
|
2
|
+
import Endpoint from '../Private/Endpoint';
|
|
3
|
+
import { RequestOptions } from '../Private/Requests';
|
|
4
|
+
declare class getLeaderboards extends Endpoint {
|
|
5
|
+
readonly client: Client;
|
|
6
|
+
constructor(client: Client);
|
|
7
|
+
execute(options?: RequestOptions): Promise<any>;
|
|
8
|
+
}
|
|
9
|
+
export default getLeaderboards;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 Constants_1 = __importDefault(require("../utils/Constants"));
|
|
7
|
+
const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
|
|
8
|
+
const Leaderboard_1 = __importDefault(require("../structures/Leaderboard"));
|
|
9
|
+
class getLeaderboards extends Endpoint_1.default {
|
|
10
|
+
client;
|
|
11
|
+
constructor(client) {
|
|
12
|
+
super(client);
|
|
13
|
+
this.client = client;
|
|
14
|
+
}
|
|
15
|
+
async execute(options) {
|
|
16
|
+
const res = await this.client.requests.request('/leaderboards', options);
|
|
17
|
+
if (res.options.raw)
|
|
18
|
+
return res.data;
|
|
19
|
+
if (!res.data.leaderboards) {
|
|
20
|
+
throw new Error(this.client.errors.SOMETHING_WENT_WRONG.replace(/{cause}/, 'Try again.'));
|
|
21
|
+
}
|
|
22
|
+
const lbnames = Object.create(Constants_1.default.leaderboardNames);
|
|
23
|
+
for (const name in lbnames) {
|
|
24
|
+
lbnames[name] = res.data.leaderboards[lbnames[name]].length
|
|
25
|
+
? res.data.leaderboards[lbnames[name]].map((lb) => new Leaderboard_1.default(lb))
|
|
26
|
+
: [];
|
|
27
|
+
}
|
|
28
|
+
return lbnames;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.default = getLeaderboards;
|
|
32
|
+
//# sourceMappingURL=getLeaderboards.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLeaderboards.js","sourceRoot":"","sources":["../../src/API/getLeaderboards.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,mEAA2C;AAC3C,4EAAoD;AAGpD,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,eAAe,EAAE,OAAO,CAAC,CAAC;QACzE,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,OAAO,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC;QAC5F,CAAC;QACD,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,mBAAS,CAAC,gBAAgB,CAAC,CAAC;QAC1D,KAAK,MAAM,IAAI,IAAI,OAAO,EAAE,CAAC;YAC3B,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM;gBACzD,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAO,EAAE,EAAE,CAAC,IAAI,qBAAW,CAAC,EAAE,CAAC,CAAC;gBAC5E,CAAC,CAAC,EAAE,CAAC;QACT,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AAED,kBAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Client from '../Client';
|
|
2
|
+
import Endpoint from '../Private/Endpoint';
|
|
3
|
+
import Player from '../structures/Player';
|
|
4
|
+
import { PlayerRequestOptions } from './API';
|
|
5
|
+
declare class getPlayer extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(query: string, options?: PlayerRequestOptions): Promise<Player>;
|
|
9
|
+
}
|
|
10
|
+
export default getPlayer;
|
|
@@ -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 Endpoint_1 = __importDefault(require("../Private/Endpoint"));
|
|
7
|
+
const Player_1 = __importDefault(require("../structures/Player"));
|
|
8
|
+
class getPlayer 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(`/player?uuid=${query}`, options);
|
|
19
|
+
if (res.options.raw)
|
|
20
|
+
return res.data;
|
|
21
|
+
if (query && !res.data.player)
|
|
22
|
+
throw new Error(this.client.errors.PLAYER_HAS_NEVER_LOGGED);
|
|
23
|
+
return new Player_1.default(res.data.player, {
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
25
|
+
// @ts-expect-error
|
|
26
|
+
guild: options?.guild ? await this.client.getGuild('player', query) : null,
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
28
|
+
// @ts-expect-error
|
|
29
|
+
houses: options?.houses ? await this.client.getPlayerHouses(query) : null,
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
31
|
+
// @ts-expect-error
|
|
32
|
+
recentGames: options?.recentGames ? await this.client.getRecentGames(query) : null
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.default = getPlayer;
|
|
37
|
+
//# sourceMappingURL=getPlayer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPlayer.js","sourceRoot":"","sources":["../../src/API/getPlayer.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,OAA8B;QACzD,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,gBAAgB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QACjF,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC;QAC3F,OAAO,IAAI,gBAAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE;YACjC,6DAA6D;YAC7D,mBAAmB;YACnB,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI;YAC1E,6DAA6D;YAC7D,mBAAmB;YACnB,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI;YACzE,6DAA6D;YAC7D,mBAAmB;YACnB,WAAW,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI;SACnF,CAAC,CAAC;IACL,CAAC;CACF;AAED,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Client from '../Client';
|
|
2
|
+
import Endpoint from '../Private/Endpoint';
|
|
3
|
+
import House from '../structures/House';
|
|
4
|
+
import { RequestOptions } from '../Private/Requests';
|
|
5
|
+
declare class getPlayerHouses extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(query: string, options?: RequestOptions): Promise<House[]>;
|
|
9
|
+
}
|
|
10
|
+
export default getPlayerHouses;
|
|
@@ -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 House_1 = __importDefault(require("../structures/House"));
|
|
8
|
+
class getPlayerHouses 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(`/housing/houses?player=${query}`, options);
|
|
19
|
+
if (res.options.raw)
|
|
20
|
+
return res.data;
|
|
21
|
+
return res.data.map((h) => new House_1.default(h));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = getPlayerHouses;
|
|
25
|
+
//# sourceMappingURL=getPlayerHouses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPlayerHouses.js","sourceRoot":"","sources":["../../src/API/getPlayerHouses.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,gEAAwC;AAGxC,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,KAAa,EAAE,OAAwB;QACnD,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,0BAA0B,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QAC3F,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,IAAI,eAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,CAAC;CACF;AAED,kBAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Client from '../Client';
|
|
2
|
+
import Endpoint from '../Private/Endpoint';
|
|
3
|
+
import Quests from '../structures/Static/Quests';
|
|
4
|
+
import { RequestOptions } from '../Private/Requests';
|
|
5
|
+
declare class getQuests extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(options?: RequestOptions): Promise<Quests>;
|
|
9
|
+
}
|
|
10
|
+
export default getQuests;
|
|
@@ -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 Quests_1 = __importDefault(require("../structures/Static/Quests"));
|
|
8
|
+
class getQuests extends Endpoint_1.default {
|
|
9
|
+
client;
|
|
10
|
+
constructor(client) {
|
|
11
|
+
super(client);
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
async execute(options) {
|
|
15
|
+
const res = await this.client.requests.request('/resources/quests', options);
|
|
16
|
+
if (res.options.raw)
|
|
17
|
+
return res.data;
|
|
18
|
+
return new Quests_1.default(res.data);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = getQuests;
|
|
22
|
+
//# sourceMappingURL=getQuests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getQuests.js","sourceRoot":"","sources":["../../src/API/getQuests.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,yEAAiD;AAGjD,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,OAAwB;QACpC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;QAC7E,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,IAAI,gBAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF;AAED,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Client from '../Client';
|
|
2
|
+
import Endpoint from '../Private/Endpoint';
|
|
3
|
+
import RecentGame from '../structures/RecentGame';
|
|
4
|
+
import { RequestOptions } from '../Private/Requests';
|
|
5
|
+
declare class getRecentGames extends Endpoint {
|
|
6
|
+
readonly client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
execute(query: string, options?: RequestOptions): Promise<RecentGame[]>;
|
|
9
|
+
}
|
|
10
|
+
export default getRecentGames;
|
|
@@ -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 RecentGame_1 = __importDefault(require("../structures/RecentGame"));
|
|
8
|
+
class getRecentGames 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(`/recentgames?uuid=${query}`, options);
|
|
19
|
+
if (res.options.raw)
|
|
20
|
+
return res.data;
|
|
21
|
+
return res.data.games.map((x) => new RecentGame_1.default(x));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = getRecentGames;
|
|
25
|
+
//# sourceMappingURL=getRecentGames.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRecentGames.js","sourceRoot":"","sources":["../../src/API/getRecentGames.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,0EAAkD;AAGlD,MAAM,cAAe,SAAQ,kBAAQ;IAC1B,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,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,qBAAqB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QACtF,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,oBAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC;CACF;AAED,kBAAe,cAAc,CAAC"}
|