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.
Files changed (487) hide show
  1. package/README.md +0 -63
  2. package/dist/API/getAchievements.d.ts +10 -0
  3. package/dist/API/getAchievements.js +22 -0
  4. package/dist/API/getAchievements.js.map +1 -0
  5. package/dist/API/getActiveHouses.d.ts +10 -0
  6. package/dist/API/getActiveHouses.js +22 -0
  7. package/dist/API/getActiveHouses.js.map +1 -0
  8. package/dist/API/getBoosters.d.ts +10 -0
  9. package/dist/API/getBoosters.js +22 -0
  10. package/dist/API/getBoosters.js.map +1 -0
  11. package/dist/API/getChallenges.d.ts +10 -0
  12. package/dist/API/getChallenges.js +22 -0
  13. package/dist/API/getChallenges.js.map +1 -0
  14. package/dist/API/getGameCounts.d.ts +10 -0
  15. package/dist/API/getGameCounts.js +22 -0
  16. package/dist/API/getGameCounts.js.map +1 -0
  17. package/dist/API/getGuild.d.ts +10 -0
  18. package/dist/API/getGuild.js +36 -0
  19. package/dist/API/getGuild.js.map +1 -0
  20. package/dist/API/getGuildAchievements.d.ts +10 -0
  21. package/dist/API/getGuildAchievements.js +22 -0
  22. package/dist/API/getGuildAchievements.js.map +1 -0
  23. package/dist/API/getHouse.d.ts +10 -0
  24. package/dist/API/getHouse.js +24 -0
  25. package/dist/API/getHouse.js.map +1 -0
  26. package/dist/API/getLeaderboards.d.ts +9 -0
  27. package/dist/API/getLeaderboards.js +32 -0
  28. package/dist/API/getLeaderboards.js.map +1 -0
  29. package/dist/API/getPlayer.d.ts +10 -0
  30. package/dist/API/getPlayer.js +37 -0
  31. package/dist/API/getPlayer.js.map +1 -0
  32. package/dist/API/getPlayerHouses.d.ts +10 -0
  33. package/dist/API/getPlayerHouses.js +25 -0
  34. package/dist/API/getPlayerHouses.js.map +1 -0
  35. package/dist/API/getQuests.d.ts +10 -0
  36. package/dist/API/getQuests.js +22 -0
  37. package/dist/API/getQuests.js.map +1 -0
  38. package/dist/API/getRecentGames.d.ts +10 -0
  39. package/dist/API/getRecentGames.js +25 -0
  40. package/dist/API/getRecentGames.js.map +1 -0
  41. package/dist/API/getSkyblockAuction.d.ts +10 -0
  42. package/dist/API/getSkyblockAuction.js +38 -0
  43. package/dist/API/getSkyblockAuction.js.map +1 -0
  44. package/dist/API/getSkyblockAuctions.d.ts +24 -0
  45. package/dist/API/getSkyblockAuctions.js +57 -0
  46. package/dist/API/getSkyblockAuctions.js.map +1 -0
  47. package/dist/API/getSkyblockAuctionsByPlayer.d.ts +10 -0
  48. package/dist/API/getSkyblockAuctionsByPlayer.js +25 -0
  49. package/dist/API/getSkyblockAuctionsByPlayer.js.map +1 -0
  50. package/dist/API/getSkyblockBazaar.d.ts +10 -0
  51. package/dist/API/getSkyblockBazaar.js +22 -0
  52. package/dist/API/getSkyblockBazaar.js.map +1 -0
  53. package/dist/API/getSkyblockBingo.d.ts +10 -0
  54. package/dist/API/getSkyblockBingo.js +22 -0
  55. package/dist/API/getSkyblockBingo.js.map +1 -0
  56. package/dist/API/getSkyblockFireSales.d.ts +10 -0
  57. package/dist/API/getSkyblockFireSales.js +22 -0
  58. package/dist/API/getSkyblockFireSales.js.map +1 -0
  59. package/dist/API/getSkyblockGarden.d.ts +10 -0
  60. package/dist/API/getSkyblockGarden.js +24 -0
  61. package/dist/API/getSkyblockGarden.js.map +1 -0
  62. package/dist/API/getSkyblockGovernment.d.ts +10 -0
  63. package/dist/API/getSkyblockGovernment.js +22 -0
  64. package/dist/API/getSkyblockGovernment.js.map +1 -0
  65. package/dist/API/getSkyblockMember.d.ts +10 -0
  66. package/dist/API/getSkyblockMember.js +46 -0
  67. package/dist/API/getSkyblockMember.js.map +1 -0
  68. package/dist/API/getSkyblockMuseum.d.ts +10 -0
  69. package/dist/API/getSkyblockMuseum.js +25 -0
  70. package/dist/API/getSkyblockMuseum.js.map +1 -0
  71. package/dist/API/getSkyblockNews.d.ts +10 -0
  72. package/dist/API/getSkyblockNews.js +22 -0
  73. package/dist/API/getSkyblockNews.js.map +1 -0
  74. package/dist/API/getSkyblockProfiles.d.ts +10 -0
  75. package/dist/API/getSkyblockProfiles.js +47 -0
  76. package/dist/API/getSkyblockProfiles.js.map +1 -0
  77. package/dist/API/getStatus.d.ts +10 -0
  78. package/dist/API/getStatus.js +23 -0
  79. package/dist/API/getStatus.js.map +1 -0
  80. package/dist/API/getWatchdogStats.d.ts +10 -0
  81. package/dist/API/getWatchdogStats.js +22 -0
  82. package/dist/API/getWatchdogStats.js.map +1 -0
  83. package/dist/API/index.d.ts +57 -0
  84. package/dist/API/index.js +62 -0
  85. package/dist/API/index.js.map +1 -0
  86. package/dist/Client.d.ts +29 -0
  87. package/dist/Client.js +76 -0
  88. package/dist/Client.js.map +1 -0
  89. package/dist/Errors.d.ts +27 -0
  90. package/dist/Errors.js +31 -0
  91. package/dist/Errors.js.map +1 -0
  92. package/dist/Private/CacheHandler.d.ts +14 -0
  93. package/dist/Private/CacheHandler.js +37 -0
  94. package/dist/Private/CacheHandler.js.map +1 -0
  95. package/dist/Private/Endpoint.d.ts +7 -0
  96. package/dist/Private/Endpoint.js +13 -0
  97. package/dist/Private/Endpoint.js.map +1 -0
  98. package/dist/Private/RateLimit.d.ts +13 -0
  99. package/dist/Private/RateLimit.js +33 -0
  100. package/dist/Private/RateLimit.js.map +1 -0
  101. package/dist/Private/Requests.d.ts +29 -0
  102. package/dist/Private/Requests.js +112 -0
  103. package/dist/Private/Requests.js.map +1 -0
  104. package/dist/Private/Updater.d.ts +11 -0
  105. package/dist/Private/Updater.js +47 -0
  106. package/dist/Private/Updater.js.map +1 -0
  107. package/dist/index.d.ts +115 -0
  108. package/dist/index.js +132 -0
  109. package/dist/index.js.map +1 -0
  110. package/dist/structures/Boosters/Booster.d.ts +17 -0
  111. package/dist/structures/Boosters/Booster.js +44 -0
  112. package/dist/structures/Boosters/Booster.js.map +1 -0
  113. package/dist/structures/Color.d.ts +9 -0
  114. package/dist/structures/Color.js +76 -0
  115. package/dist/structures/Color.js.map +1 -0
  116. package/dist/structures/Game.d.ts +16 -0
  117. package/dist/structures/Game.js +35 -0
  118. package/dist/structures/Game.js.map +1 -0
  119. package/dist/structures/GameCounts.d.ts +7 -0
  120. package/dist/structures/GameCounts.js +29 -0
  121. package/dist/structures/GameCounts.js.map +1 -0
  122. package/dist/structures/Guild/Guild.d.ts +39 -0
  123. package/dist/structures/Guild/Guild.js +67 -0
  124. package/dist/structures/Guild/Guild.js.map +1 -0
  125. package/dist/structures/Guild/GuildMember.d.ts +15 -0
  126. package/dist/structures/Guild/GuildMember.js +33 -0
  127. package/dist/structures/Guild/GuildMember.js.map +1 -0
  128. package/dist/structures/Guild/GuildRank.d.ts +11 -0
  129. package/dist/structures/Guild/GuildRank.js +23 -0
  130. package/dist/structures/Guild/GuildRank.js.map +1 -0
  131. package/dist/structures/House.d.ts +12 -0
  132. package/dist/structures/House.js +25 -0
  133. package/dist/structures/House.js.map +1 -0
  134. package/dist/structures/ItemBytes.d.ts +7 -0
  135. package/dist/structures/ItemBytes.js +17 -0
  136. package/dist/structures/ItemBytes.js.map +1 -0
  137. package/dist/structures/Leaderboard.d.ts +8 -0
  138. package/dist/structures/Leaderboard.js +16 -0
  139. package/dist/structures/Leaderboard.js.map +1 -0
  140. package/dist/structures/MiniGames/Arcade.d.ts +234 -0
  141. package/dist/structures/MiniGames/Arcade.js +466 -0
  142. package/dist/structures/MiniGames/Arcade.js.map +1 -0
  143. package/dist/structures/MiniGames/ArenaBrawl.d.ts +26 -0
  144. package/dist/structures/MiniGames/ArenaBrawl.js +54 -0
  145. package/dist/structures/MiniGames/ArenaBrawl.js.map +1 -0
  146. package/dist/structures/MiniGames/BedWars.d.ts +116 -0
  147. package/dist/structures/MiniGames/BedWars.js +300 -0
  148. package/dist/structures/MiniGames/BedWars.js.map +1 -0
  149. package/dist/structures/MiniGames/BlitzSurvivalGames.d.ts +87 -0
  150. package/dist/structures/MiniGames/BlitzSurvivalGames.js +176 -0
  151. package/dist/structures/MiniGames/BlitzSurvivalGames.js.map +1 -0
  152. package/dist/structures/MiniGames/BuildBattle.d.ts +18 -0
  153. package/dist/structures/MiniGames/BuildBattle.js +33 -0
  154. package/dist/structures/MiniGames/BuildBattle.js.map +1 -0
  155. package/dist/structures/MiniGames/CopsAndCrims.d.ts +67 -0
  156. package/dist/structures/MiniGames/CopsAndCrims.js +132 -0
  157. package/dist/structures/MiniGames/CopsAndCrims.js.map +1 -0
  158. package/dist/structures/MiniGames/Duels.d.ts +188 -0
  159. package/dist/structures/MiniGames/Duels.js +473 -0
  160. package/dist/structures/MiniGames/Duels.js.map +1 -0
  161. package/dist/structures/MiniGames/MegaWalls.d.ts +99 -0
  162. package/dist/structures/MiniGames/MegaWalls.js +200 -0
  163. package/dist/structures/MiniGames/MegaWalls.js.map +1 -0
  164. package/dist/structures/MiniGames/MurderMystery.d.ts +44 -0
  165. package/dist/structures/MiniGames/MurderMystery.js +90 -0
  166. package/dist/structures/MiniGames/MurderMystery.js.map +1 -0
  167. package/dist/structures/MiniGames/Paintball.d.ts +19 -0
  168. package/dist/structures/MiniGames/Paintball.js +42 -0
  169. package/dist/structures/MiniGames/Paintball.js.map +1 -0
  170. package/dist/structures/MiniGames/Pit.d.ts +41 -0
  171. package/dist/structures/MiniGames/Pit.js +138 -0
  172. package/dist/structures/MiniGames/Pit.js.map +1 -0
  173. package/dist/structures/MiniGames/PitInventoryItem.d.ts +10 -0
  174. package/dist/structures/MiniGames/PitInventoryItem.js +20 -0
  175. package/dist/structures/MiniGames/PitInventoryItem.js.map +1 -0
  176. package/dist/structures/MiniGames/Quakecraft.d.ts +35 -0
  177. package/dist/structures/MiniGames/Quakecraft.js +74 -0
  178. package/dist/structures/MiniGames/Quakecraft.js.map +1 -0
  179. package/dist/structures/MiniGames/SkyWars.d.ts +112 -0
  180. package/dist/structures/MiniGames/SkyWars.js +272 -0
  181. package/dist/structures/MiniGames/SkyWars.js.map +1 -0
  182. package/dist/structures/MiniGames/SmashHeroes.d.ts +58 -0
  183. package/dist/structures/MiniGames/SmashHeroes.js +116 -0
  184. package/dist/structures/MiniGames/SmashHeroes.js.map +1 -0
  185. package/dist/structures/MiniGames/SpeedUHC.d.ts +36 -0
  186. package/dist/structures/MiniGames/SpeedUHC.js +74 -0
  187. package/dist/structures/MiniGames/SpeedUHC.js.map +1 -0
  188. package/dist/structures/MiniGames/TNTGames.d.ts +66 -0
  189. package/dist/structures/MiniGames/TNTGames.js +126 -0
  190. package/dist/structures/MiniGames/TNTGames.js.map +1 -0
  191. package/dist/structures/MiniGames/TurboKartRacers.d.ts +31 -0
  192. package/dist/structures/MiniGames/TurboKartRacers.js +60 -0
  193. package/dist/structures/MiniGames/TurboKartRacers.js.map +1 -0
  194. package/dist/structures/MiniGames/UHC.d.ts +31 -0
  195. package/dist/structures/MiniGames/UHC.js +115 -0
  196. package/dist/structures/MiniGames/UHC.js.map +1 -0
  197. package/dist/structures/MiniGames/VampireZ.d.ts +21 -0
  198. package/dist/structures/MiniGames/VampireZ.js +44 -0
  199. package/dist/structures/MiniGames/VampireZ.js.map +1 -0
  200. package/dist/structures/MiniGames/Walls.d.ts +12 -0
  201. package/dist/structures/MiniGames/Walls.js +28 -0
  202. package/dist/structures/MiniGames/Walls.js.map +1 -0
  203. package/dist/structures/MiniGames/Warlords.d.ts +40 -0
  204. package/dist/structures/MiniGames/Warlords.js +82 -0
  205. package/dist/structures/MiniGames/Warlords.js.map +1 -0
  206. package/dist/structures/MiniGames/WoolWars.d.ts +49 -0
  207. package/dist/structures/MiniGames/WoolWars.js +87 -0
  208. package/dist/structures/MiniGames/WoolWars.js.map +1 -0
  209. package/dist/structures/Pet.d.ts +19 -0
  210. package/dist/structures/Pet.js +41 -0
  211. package/dist/structures/Pet.js.map +1 -0
  212. package/dist/structures/Pets.d.ts +38 -0
  213. package/dist/structures/Pets.js +20 -0
  214. package/dist/structures/Pets.js.map +1 -0
  215. package/dist/structures/Player.d.ts +73 -0
  216. package/dist/structures/Player.js +158 -0
  217. package/dist/structures/Player.js.map +1 -0
  218. package/dist/structures/PlayerCosmetics.d.ts +26 -0
  219. package/dist/structures/PlayerCosmetics.js +120 -0
  220. package/dist/structures/PlayerCosmetics.js.map +1 -0
  221. package/dist/structures/RecentGame.d.ts +13 -0
  222. package/dist/structures/RecentGame.js +30 -0
  223. package/dist/structures/RecentGame.js.map +1 -0
  224. package/dist/structures/ServerInfo.d.ts +20 -0
  225. package/dist/structures/ServerInfo.js +34 -0
  226. package/dist/structures/ServerInfo.js.map +1 -0
  227. package/dist/structures/SkyBlock/Auctions/Auction.d.ts +22 -0
  228. package/dist/structures/SkyBlock/Auctions/Auction.js +45 -0
  229. package/dist/structures/SkyBlock/Auctions/Auction.js.map +1 -0
  230. package/dist/structures/SkyBlock/Auctions/AuctionInfo.d.ts +10 -0
  231. package/dist/structures/SkyBlock/Auctions/AuctionInfo.js +21 -0
  232. package/dist/structures/SkyBlock/Auctions/AuctionInfo.js.map +1 -0
  233. package/dist/structures/SkyBlock/Auctions/BaseAuction.d.ts +11 -0
  234. package/dist/structures/SkyBlock/Auctions/BaseAuction.js +25 -0
  235. package/dist/structures/SkyBlock/Auctions/BaseAuction.js.map +1 -0
  236. package/dist/structures/SkyBlock/Auctions/Bid.d.ts +11 -0
  237. package/dist/structures/SkyBlock/Auctions/Bid.js +23 -0
  238. package/dist/structures/SkyBlock/Auctions/Bid.js.map +1 -0
  239. package/dist/structures/SkyBlock/Bazzar/Order.d.ts +9 -0
  240. package/dist/structures/SkyBlock/Bazzar/Order.js +19 -0
  241. package/dist/structures/SkyBlock/Bazzar/Order.js.map +1 -0
  242. package/dist/structures/SkyBlock/Bazzar/Product.d.ts +19 -0
  243. package/dist/structures/SkyBlock/Bazzar/Product.js +33 -0
  244. package/dist/structures/SkyBlock/Bazzar/Product.js.map +1 -0
  245. package/dist/structures/SkyBlock/News/SkyblockNews.d.ts +10 -0
  246. package/dist/structures/SkyBlock/News/SkyblockNews.js +35 -0
  247. package/dist/structures/SkyBlock/News/SkyblockNews.js.map +1 -0
  248. package/dist/structures/SkyBlock/SkyblockGarden.d.ts +60 -0
  249. package/dist/structures/SkyBlock/SkyblockGarden.js +65 -0
  250. package/dist/structures/SkyBlock/SkyblockGarden.js.map +1 -0
  251. package/dist/structures/SkyBlock/SkyblockInventoryItem.d.ts +38 -0
  252. package/dist/structures/SkyBlock/SkyblockInventoryItem.js +83 -0
  253. package/dist/structures/SkyBlock/SkyblockInventoryItem.js.map +1 -0
  254. package/dist/structures/SkyBlock/SkyblockMember.d.ts +80 -0
  255. package/dist/structures/SkyBlock/SkyblockMember.js +288 -0
  256. package/dist/structures/SkyBlock/SkyblockMember.js.map +1 -0
  257. package/dist/structures/SkyBlock/SkyblockMuseum.d.ts +10 -0
  258. package/dist/structures/SkyBlock/SkyblockMuseum.js +35 -0
  259. package/dist/structures/SkyBlock/SkyblockMuseum.js.map +1 -0
  260. package/dist/structures/SkyBlock/SkyblockMuseumItem.d.ts +11 -0
  261. package/dist/structures/SkyBlock/SkyblockMuseumItem.js +30 -0
  262. package/dist/structures/SkyBlock/SkyblockMuseumItem.js.map +1 -0
  263. package/dist/structures/SkyBlock/SkyblockPet.d.ts +15 -0
  264. package/dist/structures/SkyBlock/SkyblockPet.js +33 -0
  265. package/dist/structures/SkyBlock/SkyblockPet.js.map +1 -0
  266. package/dist/structures/SkyBlock/SkyblockProfile.d.ts +14 -0
  267. package/dist/structures/SkyBlock/SkyblockProfile.js +42 -0
  268. package/dist/structures/SkyBlock/SkyblockProfile.js.map +1 -0
  269. package/dist/structures/SkyBlock/Static/Bingo.d.ts +16 -0
  270. package/dist/structures/SkyBlock/Static/Bingo.js +52 -0
  271. package/dist/structures/SkyBlock/Static/Bingo.js.map +1 -0
  272. package/dist/structures/SkyBlock/Static/BingoData.d.ts +10 -0
  273. package/dist/structures/SkyBlock/Static/BingoData.js +25 -0
  274. package/dist/structures/SkyBlock/Static/BingoData.js.map +1 -0
  275. package/dist/structures/SkyBlock/Static/Candidate.d.ts +11 -0
  276. package/dist/structures/SkyBlock/Static/Candidate.js +25 -0
  277. package/dist/structures/SkyBlock/Static/Candidate.js.map +1 -0
  278. package/dist/structures/SkyBlock/Static/FireSale.d.ts +12 -0
  279. package/dist/structures/SkyBlock/Static/FireSale.js +25 -0
  280. package/dist/structures/SkyBlock/Static/FireSale.js.map +1 -0
  281. package/dist/structures/SkyBlock/Static/Government.d.ts +13 -0
  282. package/dist/structures/SkyBlock/Static/Government.js +39 -0
  283. package/dist/structures/SkyBlock/Static/Government.js.map +1 -0
  284. package/dist/structures/SkyBlock/Static/Perk.d.ts +6 -0
  285. package/dist/structures/SkyBlock/Static/Perk.js +12 -0
  286. package/dist/structures/SkyBlock/Static/Perk.js.map +1 -0
  287. package/dist/structures/Static/Achievement.d.ts +14 -0
  288. package/dist/structures/Static/Achievement.js +50 -0
  289. package/dist/structures/Static/Achievement.js.map +1 -0
  290. package/dist/structures/Static/AchievementTier.d.ts +7 -0
  291. package/dist/structures/Static/AchievementTier.js +17 -0
  292. package/dist/structures/Static/AchievementTier.js.map +1 -0
  293. package/dist/structures/Static/Achievements.d.ts +9 -0
  294. package/dist/structures/Static/Achievements.js +21 -0
  295. package/dist/structures/Static/Achievements.js.map +1 -0
  296. package/dist/structures/Static/Challenges.d.ts +9 -0
  297. package/dist/structures/Static/Challenges.js +21 -0
  298. package/dist/structures/Static/Challenges.js.map +1 -0
  299. package/dist/structures/Static/GameAchievements.d.ts +10 -0
  300. package/dist/structures/Static/GameAchievements.js +20 -0
  301. package/dist/structures/Static/GameAchievements.js.map +1 -0
  302. package/dist/structures/Static/GameChallenges.d.ts +13 -0
  303. package/dist/structures/Static/GameChallenges.js +21 -0
  304. package/dist/structures/Static/GameChallenges.js.map +1 -0
  305. package/dist/structures/Static/GameQuests.d.ts +8 -0
  306. package/dist/structures/Static/GameQuests.js +16 -0
  307. package/dist/structures/Static/GameQuests.js.map +1 -0
  308. package/dist/structures/Static/GuildAchievements.d.ts +8 -0
  309. package/dist/structures/Static/GuildAchievements.js +21 -0
  310. package/dist/structures/Static/GuildAchievements.js.map +1 -0
  311. package/dist/structures/Static/Quest.d.ts +20 -0
  312. package/dist/structures/Static/Quest.js +27 -0
  313. package/dist/structures/Static/Quest.js.map +1 -0
  314. package/dist/structures/Static/Quests.d.ts +9 -0
  315. package/dist/structures/Static/Quests.js +21 -0
  316. package/dist/structures/Static/Quests.js.map +1 -0
  317. package/dist/structures/Status.d.ts +10 -0
  318. package/dist/structures/Status.js +23 -0
  319. package/dist/structures/Status.js.map +1 -0
  320. package/dist/structures/Watchdog/Stats.d.ts +9 -0
  321. package/dist/structures/Watchdog/Stats.js +18 -0
  322. package/dist/structures/Watchdog/Stats.js.map +1 -0
  323. package/dist/utils/Constants.d.ts +1017 -0
  324. package/dist/utils/Constants.js +2197 -0
  325. package/dist/utils/Constants.js.map +1 -0
  326. package/dist/utils/Guild.d.ts +15 -0
  327. package/dist/utils/Guild.js +85 -0
  328. package/dist/utils/Guild.js.map +1 -0
  329. package/dist/utils/Player.d.ts +8 -0
  330. package/dist/utils/Player.js +98 -0
  331. package/dist/utils/Player.js.map +1 -0
  332. package/dist/utils/SkyblockUtils.d.ts +131 -0
  333. package/dist/utils/SkyblockUtils.js +394 -0
  334. package/dist/utils/SkyblockUtils.js.map +1 -0
  335. package/dist/utils/divide.d.ts +1 -0
  336. package/dist/utils/divide.js +10 -0
  337. package/dist/utils/divide.js.map +1 -0
  338. package/dist/utils/isGuildID.d.ts +1 -0
  339. package/dist/utils/isGuildID.js +7 -0
  340. package/dist/utils/isGuildID.js.map +1 -0
  341. package/dist/utils/isUUID.d.ts +1 -0
  342. package/dist/utils/isUUID.js +9 -0
  343. package/dist/utils/isUUID.js.map +1 -0
  344. package/dist/utils/oscillation.d.ts +2 -0
  345. package/dist/utils/oscillation.js +15 -0
  346. package/dist/utils/oscillation.js.map +1 -0
  347. package/dist/utils/removeSnakeCase.d.ts +3 -0
  348. package/dist/utils/removeSnakeCase.js +20 -0
  349. package/dist/utils/removeSnakeCase.js.map +1 -0
  350. package/dist/utils/romanize.d.ts +1 -0
  351. package/dist/utils/romanize.js +45 -0
  352. package/dist/utils/romanize.js.map +1 -0
  353. package/package.json +33 -23
  354. package/.prettierrc +0 -13
  355. package/eslint.config.mjs +0 -71
  356. package/src/API/getAPIStatus.js +0 -8
  357. package/src/API/getAchievements.js +0 -7
  358. package/src/API/getBoosters.js +0 -7
  359. package/src/API/getChallenges.js +0 -7
  360. package/src/API/getGameCounts.js +0 -7
  361. package/src/API/getGuild.js +0 -19
  362. package/src/API/getGuildAchievements.js +0 -7
  363. package/src/API/getLeaderboards.js +0 -15
  364. package/src/API/getPlayer.js +0 -23
  365. package/src/API/getQuests.js +0 -7
  366. package/src/API/getRecentGames.js +0 -14
  367. package/src/API/getServerInfo.js +0 -71
  368. package/src/API/getStatus.js +0 -9
  369. package/src/API/getWatchdogStats.js +0 -7
  370. package/src/API/housing/getActiveHouses.js +0 -7
  371. package/src/API/housing/getHouse.js +0 -9
  372. package/src/API/housing/getPlayerHouses.js +0 -11
  373. package/src/API/index.js +0 -35
  374. package/src/API/skyblock/getAuction.js +0 -21
  375. package/src/API/skyblock/getAuctions.js +0 -74
  376. package/src/API/skyblock/getAuctionsByPlayer.js +0 -11
  377. package/src/API/skyblock/getBazaar.js +0 -8
  378. package/src/API/skyblock/getBingo.js +0 -7
  379. package/src/API/skyblock/getBingoByPlayer.js +0 -14
  380. package/src/API/skyblock/getEndedAuctions.js +0 -11
  381. package/src/API/skyblock/getFireSales.js +0 -7
  382. package/src/API/skyblock/getGarden.js +0 -11
  383. package/src/API/skyblock/getGovernment.js +0 -7
  384. package/src/API/skyblock/getMember.js +0 -35
  385. package/src/API/skyblock/getMuseum.js +0 -15
  386. package/src/API/skyblock/getNews.js +0 -7
  387. package/src/API/skyblock/getProfiles.js +0 -49
  388. package/src/Client.js +0 -547
  389. package/src/Errors.js +0 -66
  390. package/src/Private/defaultCache.js +0 -77
  391. package/src/Private/rateLimit.js +0 -83
  392. package/src/Private/requests.js +0 -76
  393. package/src/Private/updater.js +0 -34
  394. package/src/Private/uuidCache.js +0 -30
  395. package/src/Private/validate.js +0 -108
  396. package/src/index.js +0 -96
  397. package/src/structures/APIIncident.js +0 -71
  398. package/src/structures/APIStatus.js +0 -46
  399. package/src/structures/Boosters/Booster.js +0 -84
  400. package/src/structures/Color.js +0 -174
  401. package/src/structures/Game.js +0 -166
  402. package/src/structures/GameCounts.js +0 -151
  403. package/src/structures/Guild/Guild.js +0 -191
  404. package/src/structures/Guild/GuildMember.js +0 -66
  405. package/src/structures/Guild/GuildRank.js +0 -48
  406. package/src/structures/House.js +0 -54
  407. package/src/structures/ItemBytes.js +0 -33
  408. package/src/structures/Leaderboard.js +0 -31
  409. package/src/structures/MiniGames/Arcade.js +0 -986
  410. package/src/structures/MiniGames/ArenaBrawl.js +0 -118
  411. package/src/structures/MiniGames/BedWars.js +0 -554
  412. package/src/structures/MiniGames/BlitzSurvivalGames.js +0 -424
  413. package/src/structures/MiniGames/BuildBattle.js +0 -64
  414. package/src/structures/MiniGames/CopsAndCrims.js +0 -318
  415. package/src/structures/MiniGames/Duels.js +0 -1013
  416. package/src/structures/MiniGames/MegaWalls.js +0 -478
  417. package/src/structures/MiniGames/MurderMystery.js +0 -214
  418. package/src/structures/MiniGames/Paintball.js +0 -87
  419. package/src/structures/MiniGames/Pit.js +0 -247
  420. package/src/structures/MiniGames/PitInventoryItem.js +0 -43
  421. package/src/structures/MiniGames/Quakecraft.js +0 -164
  422. package/src/structures/MiniGames/SkyWars.js +0 -669
  423. package/src/structures/MiniGames/SmashHeroes.js +0 -272
  424. package/src/structures/MiniGames/SpeedUHC.js +0 -168
  425. package/src/structures/MiniGames/TNTGames.js +0 -285
  426. package/src/structures/MiniGames/TurboKartRacers.js +0 -141
  427. package/src/structures/MiniGames/UHC.js +0 -194
  428. package/src/structures/MiniGames/VampireZ.js +0 -93
  429. package/src/structures/MiniGames/Walls.js +0 -52
  430. package/src/structures/MiniGames/Warlords.js +0 -187
  431. package/src/structures/MiniGames/WoolGames.js +0 -405
  432. package/src/structures/Pet.js +0 -96
  433. package/src/structures/Pets.js +0 -64
  434. package/src/structures/Player.js +0 -346
  435. package/src/structures/PlayerCosmetics.js +0 -155
  436. package/src/structures/RecentGame.js +0 -57
  437. package/src/structures/ServerInfo.js +0 -78
  438. package/src/structures/SkyBlock/Auctions/Auction.js +0 -106
  439. package/src/structures/SkyBlock/Auctions/AuctionInfo.js +0 -56
  440. package/src/structures/SkyBlock/Auctions/BaseAuction.js +0 -46
  441. package/src/structures/SkyBlock/Auctions/Bid.js +0 -49
  442. package/src/structures/SkyBlock/Auctions/PartialAuction.js +0 -26
  443. package/src/structures/SkyBlock/Bazzar/Order.js +0 -38
  444. package/src/structures/SkyBlock/Bazzar/Product.js +0 -53
  445. package/src/structures/SkyBlock/News/SkyblockNews.js +0 -60
  446. package/src/structures/SkyBlock/PlayerBingo.js +0 -49
  447. package/src/structures/SkyBlock/SkyblockGarden.js +0 -146
  448. package/src/structures/SkyBlock/SkyblockInventoryItem.js +0 -168
  449. package/src/structures/SkyBlock/SkyblockMember.js +0 -591
  450. package/src/structures/SkyBlock/SkyblockMuseum.js +0 -60
  451. package/src/structures/SkyBlock/SkyblockMuseumItem.js +0 -54
  452. package/src/structures/SkyBlock/SkyblockPet.js +0 -71
  453. package/src/structures/SkyBlock/SkyblockProfile.js +0 -81
  454. package/src/structures/SkyBlock/Static/Bingo.js +0 -101
  455. package/src/structures/SkyBlock/Static/BingoData.js +0 -45
  456. package/src/structures/SkyBlock/Static/Candidate.js +0 -50
  457. package/src/structures/SkyBlock/Static/FireSale.js +0 -55
  458. package/src/structures/SkyBlock/Static/Government.js +0 -79
  459. package/src/structures/SkyBlock/Static/Perk.js +0 -23
  460. package/src/structures/Static/Achievement.js +0 -87
  461. package/src/structures/Static/AchievementTier.js +0 -33
  462. package/src/structures/Static/Achievements.js +0 -30
  463. package/src/structures/Static/Challenges.js +0 -29
  464. package/src/structures/Static/GameAchievements.js +0 -36
  465. package/src/structures/Static/GameChallenges.js +0 -40
  466. package/src/structures/Static/GameQuests.js +0 -24
  467. package/src/structures/Static/GuildAchievements.js +0 -34
  468. package/src/structures/Static/Quest.js +0 -66
  469. package/src/structures/Static/Quests.js +0 -31
  470. package/src/structures/Status.js +0 -41
  471. package/src/structures/Watchdog/Stats.js +0 -36
  472. package/src/utils/Constants.js +0 -3241
  473. package/src/utils/Guild.js +0 -90
  474. package/src/utils/Player.js +0 -112
  475. package/src/utils/SkyblockUtils.js +0 -667
  476. package/src/utils/arrayTools.js +0 -4
  477. package/src/utils/divide.js +0 -5
  478. package/src/utils/index.js +0 -14
  479. package/src/utils/isGuildID.js +0 -3
  480. package/src/utils/isUUID.js +0 -5
  481. package/src/utils/oscillation.js +0 -17
  482. package/src/utils/removeSnakeCase.js +0 -33
  483. package/src/utils/rgbToHexColor.js +0 -8
  484. package/src/utils/romanize.js +0 -42
  485. package/src/utils/toUuid.js +0 -24
  486. package/src/utils/varInt.js +0 -17
  487. package/typings/index.d.ts +0 -4332
@@ -0,0 +1,10 @@
1
+ import Auction from '../structures/SkyBlock/Auctions/Auction';
2
+ import Client from '../Client';
3
+ import Endpoint from '../Private/Endpoint';
4
+ import { AuctionRequestOptions } from './API';
5
+ declare class getSkyblockAction extends Endpoint {
6
+ readonly client: Client;
7
+ constructor(client: Client);
8
+ execute(type: 'profile' | 'player' | 'auction', query: string, options?: AuctionRequestOptions): Promise<Auction[]>;
9
+ }
10
+ export default getSkyblockAction;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const Auction_1 = __importDefault(require("../structures/SkyBlock/Auctions/Auction"));
7
+ const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
8
+ class getSkyblockAction extends Endpoint_1.default {
9
+ client;
10
+ constructor(client) {
11
+ super(client);
12
+ this.client = client;
13
+ }
14
+ async execute(type, query, options) {
15
+ let filter;
16
+ if ('profile' === type) {
17
+ filter = 'profile';
18
+ }
19
+ else if ('player' === type) {
20
+ query = await this.client.requests.toUUID(query);
21
+ filter = 'player';
22
+ }
23
+ else if ('auction' === type) {
24
+ filter = 'uuid';
25
+ }
26
+ else {
27
+ throw new Error(this.client.errors.BAD_AUCTION_FILTER);
28
+ }
29
+ if (!query)
30
+ throw new Error(this.client.errors.NO_NICKNAME_UUID);
31
+ const res = await this.client.requests.request(`/skyblock/auction?${filter}=${query}`, options);
32
+ if (res.options.raw)
33
+ return res.data;
34
+ return res.data.auctions.map((a) => new Auction_1.default(a, options?.includeItemBytes ?? false));
35
+ }
36
+ }
37
+ exports.default = getSkyblockAction;
38
+ //# sourceMappingURL=getSkyblockAuction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSkyblockAuction.js","sourceRoot":"","sources":["../../src/API/getSkyblockAuction.ts"],"names":[],"mappings":";;;;;AAAA,sFAA8D;AAE9D,mEAA2C;AAG3C,MAAM,iBAAkB,SAAQ,kBAAQ;IAC7B,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CACX,IAAsC,EACtC,KAAa,EACb,OAA+B;QAE/B,IAAI,MAAM,CAAC;QACX,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;YACvB,MAAM,GAAG,SAAS,CAAC;QACrB,CAAC;aAAM,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;YAC7B,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACjD,MAAM,GAAG,QAAQ,CAAC;QACpB,CAAC;aAAM,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;YAC9B,MAAM,GAAG,MAAM,CAAC;QAClB,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;QACzD,CAAC;QACD,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACjE,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,qBAAqB,MAAM,IAAI,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QAChG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,IAAI,iBAAO,CAAC,CAAC,EAAE,OAAO,EAAE,gBAAgB,IAAI,KAAK,CAAC,CAAC,CAAC;IAC/F,CAAC;CACF;AAED,kBAAe,iBAAiB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import Auction from '../structures/SkyBlock/Auctions/Auction';
2
+ import AuctionInfo from '../structures/SkyBlock/Auctions/AuctionInfo';
3
+ import Client from '../Client';
4
+ import Endpoint from '../Private/Endpoint';
5
+ import { AuctionRequestOptions } from './API';
6
+ declare class getSkyblockAuctions extends Endpoint {
7
+ readonly client: Client;
8
+ options: AuctionRequestOptions;
9
+ constructor(client: Client);
10
+ execute(query: number | '*', options?: AuctionRequestOptions): Promise<{
11
+ info: AuctionInfo;
12
+ auctions: Auction[];
13
+ }>;
14
+ getAllPages(): Promise<{
15
+ info: AuctionInfo;
16
+ auctions: Auction[];
17
+ }>;
18
+ getPage(page: number): Promise<{
19
+ info: AuctionInfo;
20
+ auctions: Auction[];
21
+ }>;
22
+ private parseOptions;
23
+ }
24
+ export default getSkyblockAuctions;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const Auction_1 = __importDefault(require("../structures/SkyBlock/Auctions/Auction"));
7
+ const AuctionInfo_1 = __importDefault(require("../structures/SkyBlock/Auctions/AuctionInfo"));
8
+ const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
9
+ class getSkyblockAuctions extends Endpoint_1.default {
10
+ client;
11
+ constructor(client) {
12
+ super(client);
13
+ this.client = client;
14
+ }
15
+ async execute(query, options) {
16
+ if (!query)
17
+ throw new Error(this.client.errors.INVALID_OPTION_VALUE);
18
+ if ('number' === typeof query && 0 >= query)
19
+ throw new Error(this.client.errors.INVALID_OPTION_VALUE);
20
+ if ('number' !== typeof query && '*' !== query)
21
+ throw new Error(this.client.errors.INVALID_OPTION_VALUE);
22
+ this.options = this.parseOptions(options);
23
+ if ('*' === query)
24
+ return await this.getAllPages();
25
+ return await this.getPage(query);
26
+ }
27
+ async getAllPages() {
28
+ const page = 0;
29
+ const { info, auctions } = await this.getPage(page);
30
+ const pages = info.totalPages;
31
+ const requests = [];
32
+ for (let i = 1; i < pages; i++) {
33
+ requests.push(this.getPage(i));
34
+ }
35
+ const results = await Promise.all(requests);
36
+ results.forEach(({ auctions: newAuctions }) => {
37
+ auctions.push(...newAuctions);
38
+ });
39
+ return { info, auctions };
40
+ }
41
+ async getPage(page) {
42
+ const res = await this.client.requests.request(`/skyblock/auctions?page=${page}`, this.options);
43
+ return {
44
+ info: new AuctionInfo_1.default(res.data),
45
+ auctions: res.data.auctions.map((a) => new Auction_1.default(a))
46
+ };
47
+ }
48
+ parseOptions(options) {
49
+ return {
50
+ includeItemBytes: options?.includeItemBytes ?? false,
51
+ noCache: options?.noCache ?? false,
52
+ raw: options?.raw ?? false
53
+ };
54
+ }
55
+ }
56
+ exports.default = getSkyblockAuctions;
57
+ //# sourceMappingURL=getSkyblockAuctions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSkyblockAuctions.js","sourceRoot":"","sources":["../../src/API/getSkyblockAuctions.ts"],"names":[],"mappings":";;;;;AAAA,sFAA8D;AAC9D,8FAAsE;AAEtE,mEAA2C;AAG3C,MAAM,mBAAoB,SAAQ,kBAAQ;IAC/B,MAAM,CAAS;IAExB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CACX,KAAmB,EACnB,OAA+B;QAE/B,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;QACrE,IAAI,QAAQ,KAAK,OAAO,KAAK,IAAI,CAAC,IAAI,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;QACtG,IAAI,QAAQ,KAAK,OAAO,KAAK,IAAI,GAAG,KAAK,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;QACzG,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC1C,IAAI,GAAG,KAAK,KAAK;YAAE,OAAO,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;QACnD,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,WAAW;QACf,MAAM,IAAI,GAAG,CAAC,CAAC;QACf,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACpD,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC;QAC9B,MAAM,QAAQ,GAAG,EAAE,CAAC;QACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;YAC/B,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QACjC,CAAC;QACD,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC5C,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,EAAE;YAC5C,QAAQ,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC;QAChC,CAAC,CAAC,CAAC;QACH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,IAAY;QACxB,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,2BAA2B,IAAI,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAChG,OAAO;YACL,IAAI,EAAE,IAAI,qBAAW,CAAC,GAAG,CAAC,IAAI,CAAC;YAC/B,QAAQ,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,IAAI,iBAAO,CAAC,CAAC,CAAC,CAAC;SAC5D,CAAC;IACJ,CAAC;IAEO,YAAY,CAAC,OAAY;QAC/B,OAAO;YACL,gBAAgB,EAAE,OAAO,EAAE,gBAAgB,IAAI,KAAK;YACpD,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,KAAK;YAClC,GAAG,EAAE,OAAO,EAAE,GAAG,IAAI,KAAK;SAC3B,CAAC;IACJ,CAAC;CACF;AAED,kBAAe,mBAAmB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import Auction from '../structures/SkyBlock/Auctions/Auction';
2
+ import Client from '../Client';
3
+ import Endpoint from '../Private/Endpoint';
4
+ import { AuctionRequestOptions } from './API';
5
+ declare class getSkyblockActionsByPlayer extends Endpoint {
6
+ readonly client: Client;
7
+ constructor(client: Client);
8
+ execute(query: string, options?: AuctionRequestOptions): Promise<Auction[]>;
9
+ }
10
+ export default getSkyblockActionsByPlayer;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const Auction_1 = __importDefault(require("../structures/SkyBlock/Auctions/Auction"));
7
+ const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
8
+ class getSkyblockActionsByPlayer extends Endpoint_1.default {
9
+ client;
10
+ constructor(client) {
11
+ super(client);
12
+ this.client = client;
13
+ }
14
+ async execute(query, options) {
15
+ if (!query)
16
+ throw new Error(this.client.errors.NO_NICKNAME_UUID);
17
+ query = await this.client.requests.toUUID(query);
18
+ const res = await this.client.requests.request(`/skyblock/auction?player=${query}`);
19
+ if (res.options.raw)
20
+ return res.data;
21
+ return res.data.auctions.map((a) => new Auction_1.default(a, options?.includeItemBytes ?? false));
22
+ }
23
+ }
24
+ exports.default = getSkyblockActionsByPlayer;
25
+ //# sourceMappingURL=getSkyblockAuctionsByPlayer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSkyblockAuctionsByPlayer.js","sourceRoot":"","sources":["../../src/API/getSkyblockAuctionsByPlayer.ts"],"names":[],"mappings":";;;;;AAAA,sFAA8D;AAE9D,mEAA2C;AAG3C,MAAM,0BAA2B,SAAQ,kBAAQ;IACtC,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,KAAa,EAAE,OAA+B;QAC1D,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACjE,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACjD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,4BAA4B,KAAK,EAAE,CAAC,CAAC;QACpF,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,IAAI,iBAAO,CAAC,CAAC,EAAE,OAAO,EAAE,gBAAgB,IAAI,KAAK,CAAC,CAAC,CAAC;IAC/F,CAAC;CACF;AAED,kBAAe,0BAA0B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import Client from '../Client';
2
+ import Endpoint from '../Private/Endpoint';
3
+ import Product from '../structures/SkyBlock/Bazzar/Product';
4
+ import { RequestOptions } from '../Private/Requests';
5
+ declare class getSkyblockBazaar extends Endpoint {
6
+ readonly client: Client;
7
+ constructor(client: Client);
8
+ execute(options?: RequestOptions): Promise<Product[]>;
9
+ }
10
+ export default getSkyblockBazaar;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
7
+ const Product_1 = __importDefault(require("../structures/SkyBlock/Bazzar/Product"));
8
+ class getSkyblockBazaar extends Endpoint_1.default {
9
+ client;
10
+ constructor(client) {
11
+ super(client);
12
+ this.client = client;
13
+ }
14
+ async execute(options) {
15
+ const res = await this.client.requests.request('/skyblock/bazaar', options);
16
+ if (res.options.raw)
17
+ return res.data;
18
+ return Object.keys(res.data.products).map((x) => new Product_1.default(res.data.products[x]));
19
+ }
20
+ }
21
+ exports.default = getSkyblockBazaar;
22
+ //# sourceMappingURL=getSkyblockBazaar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSkyblockBazaar.js","sourceRoot":"","sources":["../../src/API/getSkyblockBazaar.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,oFAA4D;AAG5D,MAAM,iBAAkB,SAAQ,kBAAQ;IAC7B,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,OAAwB;QACpC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;QAC5E,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,iBAAO,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACtF,CAAC;CACF;AAED,kBAAe,iBAAiB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import BingoData from '../structures/SkyBlock/Static/BingoData';
2
+ import Client from '../Client';
3
+ import Endpoint from '../Private/Endpoint';
4
+ import { RequestOptions } from '../Private/Requests';
5
+ declare class getSkyblockBingo extends Endpoint {
6
+ readonly client: Client;
7
+ constructor(client: Client);
8
+ execute(options?: RequestOptions): Promise<BingoData>;
9
+ }
10
+ export default getSkyblockBingo;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const BingoData_1 = __importDefault(require("../structures/SkyBlock/Static/BingoData"));
7
+ const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
8
+ class getSkyblockBingo extends Endpoint_1.default {
9
+ client;
10
+ constructor(client) {
11
+ super(client);
12
+ this.client = client;
13
+ }
14
+ async execute(options) {
15
+ const res = await this.client.requests.request('/resources/skyblock/bingo', options);
16
+ if (res.options.raw)
17
+ return res.data;
18
+ return new BingoData_1.default(res.data);
19
+ }
20
+ }
21
+ exports.default = getSkyblockBingo;
22
+ //# sourceMappingURL=getSkyblockBingo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSkyblockBingo.js","sourceRoot":"","sources":["../../src/API/getSkyblockBingo.ts"],"names":[],"mappings":";;;;;AAAA,wFAAgE;AAEhE,mEAA2C;AAG3C,MAAM,gBAAiB,SAAQ,kBAAQ;IAC5B,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,OAAwB;QACpC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;QACrF,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,IAAI,mBAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;CACF;AAED,kBAAe,gBAAgB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import Client from '../Client';
2
+ import Endpoint from '../Private/Endpoint';
3
+ import FireSale from '../structures/SkyBlock/Static/FireSale';
4
+ import { RequestOptions } from '../Private/Requests';
5
+ declare class getSkyblockFireSales extends Endpoint {
6
+ readonly client: Client;
7
+ constructor(client: Client);
8
+ execute(options?: RequestOptions): Promise<FireSale[]>;
9
+ }
10
+ export default getSkyblockFireSales;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
7
+ const FireSale_1 = __importDefault(require("../structures/SkyBlock/Static/FireSale"));
8
+ class getSkyblockFireSales extends Endpoint_1.default {
9
+ client;
10
+ constructor(client) {
11
+ super(client);
12
+ this.client = client;
13
+ }
14
+ async execute(options) {
15
+ const res = await this.client.requests.request('/skyblock/firesales', options);
16
+ if (res.options.raw)
17
+ return res.data;
18
+ return res.data.sales.map((a) => new FireSale_1.default(a));
19
+ }
20
+ }
21
+ exports.default = getSkyblockFireSales;
22
+ //# sourceMappingURL=getSkyblockFireSales.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSkyblockFireSales.js","sourceRoot":"","sources":["../../src/API/getSkyblockFireSales.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,sFAA8D;AAG9D,MAAM,oBAAqB,SAAQ,kBAAQ;IAChC,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,OAAwB;QACpC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;QAC/E,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,IAAI,kBAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACzD,CAAC;CACF;AAED,kBAAe,oBAAoB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import Client from '../Client';
2
+ import Endpoint from '../Private/Endpoint';
3
+ import SkyblockGarden from '../structures/SkyBlock/SkyblockGarden';
4
+ import { RequestOptions } from '../Private/Requests';
5
+ declare class getSkyblockGarden extends Endpoint {
6
+ readonly client: Client;
7
+ constructor(client: Client);
8
+ execute(profileId: string, options?: RequestOptions): Promise<SkyblockGarden>;
9
+ }
10
+ export default getSkyblockGarden;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
7
+ const SkyblockGarden_1 = __importDefault(require("../structures/SkyBlock/SkyblockGarden"));
8
+ class getSkyblockGarden extends Endpoint_1.default {
9
+ client;
10
+ constructor(client) {
11
+ super(client);
12
+ this.client = client;
13
+ }
14
+ async execute(profileId, options) {
15
+ if (!profileId)
16
+ throw new Error(this.client.errors.NO_UUID);
17
+ const res = await this.client.requests.request(`/skyblock/garden?profile=${profileId}`, options);
18
+ if (res.options.raw)
19
+ return res.data;
20
+ return new SkyblockGarden_1.default(res.data);
21
+ }
22
+ }
23
+ exports.default = getSkyblockGarden;
24
+ //# sourceMappingURL=getSkyblockGarden.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSkyblockGarden.js","sourceRoot":"","sources":["../../src/API/getSkyblockGarden.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,2FAAmE;AAGnE,MAAM,iBAAkB,SAAQ,kBAAQ;IAC7B,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,SAAiB,EAAE,OAAwB;QACvD,IAAI,CAAC,SAAS;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC5D,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,4BAA4B,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;QACjG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,IAAI,wBAAc,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;CACF;AAED,kBAAe,iBAAiB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import Client from '../Client.js';
2
+ import Endpoint from '../Private/Endpoint.js';
3
+ import GovernmentData from '../structures/SkyBlock/Static/Government.js';
4
+ import { RequestOptions } from '../Private/Requests';
5
+ declare class getSkyblockGovernment extends Endpoint {
6
+ readonly client: Client;
7
+ constructor(client: Client);
8
+ execute(options?: RequestOptions): Promise<GovernmentData>;
9
+ }
10
+ export default getSkyblockGovernment;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const Endpoint_js_1 = __importDefault(require("../Private/Endpoint.js"));
7
+ const Government_js_1 = __importDefault(require("../structures/SkyBlock/Static/Government.js"));
8
+ class getSkyblockGovernment extends Endpoint_js_1.default {
9
+ client;
10
+ constructor(client) {
11
+ super(client);
12
+ this.client = client;
13
+ }
14
+ async execute(options) {
15
+ const res = await this.client.requests.request('/resources/skyblock/election', options);
16
+ if (res.options.raw)
17
+ return res.data;
18
+ return new Government_js_1.default(res.data);
19
+ }
20
+ }
21
+ exports.default = getSkyblockGovernment;
22
+ //# sourceMappingURL=getSkyblockGovernment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSkyblockGovernment.js","sourceRoot":"","sources":["../../src/API/getSkyblockGovernment.ts"],"names":[],"mappings":";;;;;AACA,yEAA8C;AAC9C,gGAAyE;AAGzE,MAAM,qBAAsB,SAAQ,qBAAQ;IACjC,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,OAAwB;QACpC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,8BAA8B,EAAE,OAAO,CAAC,CAAC;QACxF,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,IAAI,uBAAc,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;CACF;AAED,kBAAe,qBAAqB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import Client from '../Client';
2
+ import Endpoint from '../Private/Endpoint';
3
+ import SkyblockMember from '../structures/SkyBlock/SkyblockMember';
4
+ import { SkyblockRequestOptions } from './API';
5
+ declare class getSkyblockMember extends Endpoint {
6
+ readonly client: Client;
7
+ constructor(client: Client);
8
+ execute(query: string, options?: SkyblockRequestOptions): Promise<Map<string, SkyblockMember>>;
9
+ }
10
+ export default getSkyblockMember;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
7
+ const SkyblockMember_1 = __importDefault(require("../structures/SkyBlock/SkyblockMember"));
8
+ class getSkyblockMember extends Endpoint_1.default {
9
+ client;
10
+ constructor(client) {
11
+ super(client);
12
+ this.client = client;
13
+ }
14
+ async execute(query, options) {
15
+ if (!query)
16
+ throw new Error(this.client.errors.NO_NICKNAME_UUID);
17
+ query = await this.client.requests.toUUID(query);
18
+ const res = await this.client.requests.request(`/skyblock/profiles?uuid=${query}`, options);
19
+ if (res.options.raw)
20
+ return res.data;
21
+ if (!res.data.profiles || !res.data.profiles.length)
22
+ throw new Error(this.client.errors.NO_SKYBLOCK_PROFILES);
23
+ const memberByProfileName = new Map();
24
+ for (const profile of res.data.profiles) {
25
+ memberByProfileName.set(profile.cute_name, new SkyblockMember_1.default({
26
+ uuid: query,
27
+ profileId: profile.profile_id,
28
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
29
+ // @ts-expect-error
30
+ garden: options?.garden ? await this.client.getSkyblockGarden(profile.profile_id) : null,
31
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
32
+ // @ts-expect-error
33
+ museum: options?.garden ? await this.client.getSkyblockMuseum(query, profile.profile_id) : null,
34
+ profileName: profile.cute_name,
35
+ gameMode: profile.game_mode || null,
36
+ m: profile.members[query],
37
+ banking: profile.banking,
38
+ communityUpgrades: profile.community_upgrades,
39
+ selected: profile.selected
40
+ }));
41
+ }
42
+ return memberByProfileName;
43
+ }
44
+ }
45
+ exports.default = getSkyblockMember;
46
+ //# sourceMappingURL=getSkyblockMember.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSkyblockMember.js","sourceRoot":"","sources":["../../src/API/getSkyblockMember.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,2FAAmE;AAGnE,MAAM,iBAAkB,SAAQ,kBAAQ;IAC7B,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,KAAa,EAAE,OAAgC;QAC3D,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACjE,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACjD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,2BAA2B,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QAC5F,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;QAC9G,MAAM,mBAAmB,GAAG,IAAI,GAAG,EAAE,CAAC;QACtC,KAAK,MAAM,OAAO,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACxC,mBAAmB,CAAC,GAAG,CACrB,OAAO,CAAC,SAAS,EACjB,IAAI,wBAAc,CAAC;gBACjB,IAAI,EAAE,KAAK;gBACX,SAAS,EAAE,OAAO,CAAC,UAAU;gBAC7B,6DAA6D;gBAC7D,mBAAmB;gBACnB,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI;gBACxF,6DAA6D;gBAC7D,mBAAmB;gBACnB,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI;gBAC/F,WAAW,EAAE,OAAO,CAAC,SAAS;gBAC9B,QAAQ,EAAE,OAAO,CAAC,SAAS,IAAI,IAAI;gBACnC,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;gBACzB,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,iBAAiB,EAAE,OAAO,CAAC,kBAAkB;gBAC7C,QAAQ,EAAE,OAAO,CAAC,QAAQ;aAC3B,CAAC,CACH,CAAC;QACJ,CAAC;QACD,OAAO,mBAAmB,CAAC;IAC7B,CAAC;CACF;AAED,kBAAe,iBAAiB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import Client from '../Client';
2
+ import Endpoint from '../Private/Endpoint';
3
+ import SkyblockMuseum from '../structures/SkyBlock/SkyblockMuseum';
4
+ import { RequestOptions } from '../Private/Requests';
5
+ declare class getSkyblockMuseum extends Endpoint {
6
+ readonly client: Client;
7
+ constructor(client: Client);
8
+ execute(query: string, profileId: string, options?: RequestOptions): Promise<SkyblockMuseum>;
9
+ }
10
+ export default getSkyblockMuseum;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
7
+ const SkyblockMuseum_1 = __importDefault(require("../structures/SkyBlock/SkyblockMuseum"));
8
+ class getSkyblockMuseum extends Endpoint_1.default {
9
+ client;
10
+ constructor(client) {
11
+ super(client);
12
+ this.client = client;
13
+ }
14
+ async execute(query, profileId, options) {
15
+ if (!query)
16
+ throw new Error(this.client.errors.NO_NICKNAME_UUID);
17
+ query = await this.client.requests.toUUID(query);
18
+ const res = await this.client.requests.request(`/skyblock/museum?uuid=${query}&profile=${profileId}`, options);
19
+ if (res.options.raw)
20
+ return res.data;
21
+ return new SkyblockMuseum_1.default({ uuid: query, m: res.data, profileId: profileId });
22
+ }
23
+ }
24
+ exports.default = getSkyblockMuseum;
25
+ //# sourceMappingURL=getSkyblockMuseum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSkyblockMuseum.js","sourceRoot":"","sources":["../../src/API/getSkyblockMuseum.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,2FAAmE;AAGnE,MAAM,iBAAkB,SAAQ,kBAAQ;IAC7B,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,KAAa,EAAE,SAAiB,EAAE,OAAwB;QACtE,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACjE,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACjD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,yBAAyB,KAAK,YAAY,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;QAC/G,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,IAAI,wBAAc,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC;IAChF,CAAC;CACF;AAED,kBAAe,iBAAiB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import Client from '../Client';
2
+ import Endpoint from '../Private/Endpoint';
3
+ import SkyblockNews from '../structures/SkyBlock/News/SkyblockNews';
4
+ import { RequestOptions } from '../Private/Requests';
5
+ declare class getSkyblockNews extends Endpoint {
6
+ readonly client: Client;
7
+ constructor(client: Client);
8
+ execute(options?: RequestOptions): Promise<SkyblockNews[]>;
9
+ }
10
+ export default getSkyblockNews;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
7
+ const SkyblockNews_1 = __importDefault(require("../structures/SkyBlock/News/SkyblockNews"));
8
+ class getSkyblockNews extends Endpoint_1.default {
9
+ client;
10
+ constructor(client) {
11
+ super(client);
12
+ this.client = client;
13
+ }
14
+ async execute(options) {
15
+ const res = await this.client.requests.request('/skyblock/news', options);
16
+ if (res.options.raw)
17
+ return res.data;
18
+ return res.data.items.map((i) => new SkyblockNews_1.default(i));
19
+ }
20
+ }
21
+ exports.default = getSkyblockNews;
22
+ //# sourceMappingURL=getSkyblockNews.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSkyblockNews.js","sourceRoot":"","sources":["../../src/API/getSkyblockNews.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,4FAAoE;AAGpE,MAAM,eAAgB,SAAQ,kBAAQ;IAC3B,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,OAAwB;QACpC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;QAC1E,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,OAAO,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,IAAI,sBAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7D,CAAC;CACF;AAED,kBAAe,eAAe,CAAC"}
@@ -0,0 +1,10 @@
1
+ import Client from '../Client';
2
+ import Endpoint from '../Private/Endpoint';
3
+ import SkyblockProfile from '../structures/SkyBlock/SkyblockProfile';
4
+ import { SkyblockRequestOptions } from './API';
5
+ declare class getSkyblockProfiles extends Endpoint {
6
+ readonly client: Client;
7
+ constructor(client: Client);
8
+ execute(query: string, options?: SkyblockRequestOptions): Promise<SkyblockProfile[]>;
9
+ }
10
+ export default getSkyblockProfiles;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const Endpoint_1 = __importDefault(require("../Private/Endpoint"));
7
+ const SkyblockProfile_1 = __importDefault(require("../structures/SkyBlock/SkyblockProfile"));
8
+ class getSkyblockProfiles extends Endpoint_1.default {
9
+ client;
10
+ constructor(client) {
11
+ super(client);
12
+ this.client = client;
13
+ }
14
+ async execute(query, options) {
15
+ if (!query)
16
+ throw new Error(this.client.errors.NO_NICKNAME_UUID);
17
+ query = await this.client.requests.toUUID(query);
18
+ const res = await this.client.requests.request(`/skyblock/profiles?uuid=${query}`, options);
19
+ if (res.options.raw)
20
+ return res.data;
21
+ if (!res.data.profiles || !res.data.profiles.length)
22
+ throw new Error(this.client.errors.NO_SKYBLOCK_PROFILES);
23
+ const profiles = [];
24
+ for (let i = 0; i < res.data.profiles.length; i++) {
25
+ profiles.push({
26
+ uuid: query,
27
+ profileId: res.data.profiles[i].profile_id,
28
+ profileName: res.data.profiles[i].cute_name,
29
+ gameMode: res.data.profiles[i].game_mode || null,
30
+ m: res.data.profiles[i].members[query],
31
+ banking: res.data.profiles[i].banking,
32
+ communityUpgrades: res.data.profiles[i].community_upgrades,
33
+ selected: res.data.profiles[i].selected,
34
+ members: res.data.profiles[i].members,
35
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
36
+ // @ts-expect-error
37
+ garden: options?.garden ? await this.client.getSkyblockGarden(res.data.profiles[i].profile_id) : null,
38
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
39
+ // @ts-expect-error
40
+ museum: options?.garden ? await this.client.getSkyblockMuseum(query, res.data.profiles[i].profile_id) : null
41
+ });
42
+ }
43
+ return profiles.map((p) => new SkyblockProfile_1.default(p));
44
+ }
45
+ }
46
+ exports.default = getSkyblockProfiles;
47
+ //# sourceMappingURL=getSkyblockProfiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSkyblockProfiles.js","sourceRoot":"","sources":["../../src/API/getSkyblockProfiles.ts"],"names":[],"mappings":";;;;;AACA,mEAA2C;AAC3C,6FAAqE;AAGrE,MAAM,mBAAoB,SAAQ,kBAAQ;IAC/B,MAAM,CAAS;IACxB,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,KAAa,EAAE,OAAgC;QAC3D,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACjE,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACjD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,2BAA2B,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QAC5F,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;QACrC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM;YAAE,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;QAC9G,MAAM,QAAQ,GAAG,EAAE,CAAC;QACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAClD,QAAQ,CAAC,IAAI,CAAC;gBACZ,IAAI,EAAE,KAAK;gBACX,SAAS,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,UAAU;gBAC1C,WAAW,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;gBAC3C,QAAQ,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,IAAI;gBAChD,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;gBACtC,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO;gBACrC,iBAAiB,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,kBAAkB;gBAC1D,QAAQ,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ;gBACvC,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO;gBACrC,6DAA6D;gBAC7D,mBAAmB;gBACnB,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI;gBACrG,6DAA6D;gBAC7D,mBAAmB;gBACnB,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI;aAC7G,CAAC,CAAC;QACL,CAAC;QACD,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,yBAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IACrD,CAAC;CACF;AAED,kBAAe,mBAAmB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import Client from '../Client';
2
+ import Endpoint from '../Private/Endpoint';
3
+ import Status from '../structures/Status';
4
+ import { RequestOptions } from '../Private/Requests';
5
+ declare class getStatus extends Endpoint {
6
+ readonly client: Client;
7
+ constructor(client: Client);
8
+ execute(query: string, options?: RequestOptions): Promise<Status>;
9
+ }
10
+ export default getStatus;