hypixel-api-reborn 11.3.4 → 12.0.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (837) hide show
  1. package/.editorconfig +12 -0
  2. package/.github/ISSUE_TEMPLATE/Bug_report.md +9 -0
  3. package/.github/PULL_REQUEST_TEMPLATE.md +25 -0
  4. package/.github/SECURITY.md +21 -0
  5. package/.github/labels.yml +24 -0
  6. package/.github/workflows/ci-cd.yml +126 -0
  7. package/.vscode/extensions.json +10 -0
  8. package/README.md +0 -63
  9. package/dist/API/getAchievements.d.ts +10 -0
  10. package/dist/API/getAchievements.js +22 -0
  11. package/dist/API/getAchievements.js.map +1 -0
  12. package/dist/API/getActiveHouses.d.ts +10 -0
  13. package/dist/API/getActiveHouses.js +22 -0
  14. package/dist/API/getActiveHouses.js.map +1 -0
  15. package/dist/API/getBoosters.d.ts +10 -0
  16. package/dist/API/getBoosters.js +22 -0
  17. package/dist/API/getBoosters.js.map +1 -0
  18. package/dist/API/getChallenges.d.ts +10 -0
  19. package/dist/API/getChallenges.js +22 -0
  20. package/dist/API/getChallenges.js.map +1 -0
  21. package/dist/API/getGameCounts.d.ts +10 -0
  22. package/dist/API/getGameCounts.js +22 -0
  23. package/dist/API/getGameCounts.js.map +1 -0
  24. package/dist/API/getGuild.d.ts +10 -0
  25. package/dist/API/getGuild.js +36 -0
  26. package/dist/API/getGuild.js.map +1 -0
  27. package/dist/API/getGuildAchievements.d.ts +10 -0
  28. package/dist/API/getGuildAchievements.js +22 -0
  29. package/dist/API/getGuildAchievements.js.map +1 -0
  30. package/dist/API/getHouse.d.ts +10 -0
  31. package/dist/API/getHouse.js +24 -0
  32. package/dist/API/getHouse.js.map +1 -0
  33. package/dist/API/getLeaderboards.d.ts +9 -0
  34. package/dist/API/getLeaderboards.js +32 -0
  35. package/dist/API/getLeaderboards.js.map +1 -0
  36. package/dist/API/getPlayer.d.ts +10 -0
  37. package/dist/API/getPlayer.js +37 -0
  38. package/dist/API/getPlayer.js.map +1 -0
  39. package/dist/API/getPlayerHouses.d.ts +10 -0
  40. package/dist/API/getPlayerHouses.js +25 -0
  41. package/dist/API/getPlayerHouses.js.map +1 -0
  42. package/dist/API/getQuests.d.ts +10 -0
  43. package/dist/API/getQuests.js +22 -0
  44. package/dist/API/getQuests.js.map +1 -0
  45. package/dist/API/getRecentGames.d.ts +10 -0
  46. package/dist/API/getRecentGames.js +25 -0
  47. package/dist/API/getRecentGames.js.map +1 -0
  48. package/dist/API/getSkyblockAuction.d.ts +10 -0
  49. package/dist/API/getSkyblockAuction.js +38 -0
  50. package/dist/API/getSkyblockAuction.js.map +1 -0
  51. package/dist/API/getSkyblockAuctions.d.ts +24 -0
  52. package/dist/API/getSkyblockAuctions.js +57 -0
  53. package/dist/API/getSkyblockAuctions.js.map +1 -0
  54. package/dist/API/getSkyblockAuctionsByPlayer.d.ts +10 -0
  55. package/dist/API/getSkyblockAuctionsByPlayer.js +25 -0
  56. package/dist/API/getSkyblockAuctionsByPlayer.js.map +1 -0
  57. package/dist/API/getSkyblockBazaar.d.ts +10 -0
  58. package/dist/API/getSkyblockBazaar.js +22 -0
  59. package/dist/API/getSkyblockBazaar.js.map +1 -0
  60. package/dist/API/getSkyblockBingo.d.ts +10 -0
  61. package/dist/API/getSkyblockBingo.js +22 -0
  62. package/dist/API/getSkyblockBingo.js.map +1 -0
  63. package/dist/API/getSkyblockFireSales.d.ts +10 -0
  64. package/dist/API/getSkyblockFireSales.js +22 -0
  65. package/dist/API/getSkyblockFireSales.js.map +1 -0
  66. package/dist/API/getSkyblockGarden.d.ts +10 -0
  67. package/dist/API/getSkyblockGarden.js +24 -0
  68. package/dist/API/getSkyblockGarden.js.map +1 -0
  69. package/dist/API/getSkyblockGovernment.d.ts +10 -0
  70. package/dist/API/getSkyblockGovernment.js +22 -0
  71. package/dist/API/getSkyblockGovernment.js.map +1 -0
  72. package/dist/API/getSkyblockMember.d.ts +10 -0
  73. package/dist/API/getSkyblockMember.js +46 -0
  74. package/dist/API/getSkyblockMember.js.map +1 -0
  75. package/dist/API/getSkyblockMuseum.d.ts +10 -0
  76. package/dist/API/getSkyblockMuseum.js +25 -0
  77. package/dist/API/getSkyblockMuseum.js.map +1 -0
  78. package/dist/API/getSkyblockNews.d.ts +10 -0
  79. package/dist/API/getSkyblockNews.js +22 -0
  80. package/dist/API/getSkyblockNews.js.map +1 -0
  81. package/dist/API/getSkyblockProfiles.d.ts +10 -0
  82. package/dist/API/getSkyblockProfiles.js +47 -0
  83. package/dist/API/getSkyblockProfiles.js.map +1 -0
  84. package/dist/API/getStatus.d.ts +10 -0
  85. package/dist/API/getStatus.js +23 -0
  86. package/dist/API/getStatus.js.map +1 -0
  87. package/dist/API/getWatchdogStats.d.ts +10 -0
  88. package/dist/API/getWatchdogStats.js +22 -0
  89. package/dist/API/getWatchdogStats.js.map +1 -0
  90. package/dist/API/index.d.ts +57 -0
  91. package/dist/API/index.js +62 -0
  92. package/dist/API/index.js.map +1 -0
  93. package/dist/Client.d.ts +29 -0
  94. package/dist/Client.js +76 -0
  95. package/dist/Client.js.map +1 -0
  96. package/dist/Errors.d.ts +27 -0
  97. package/dist/Errors.js +31 -0
  98. package/dist/Errors.js.map +1 -0
  99. package/dist/Private/CacheHandler.d.ts +14 -0
  100. package/dist/Private/CacheHandler.js +37 -0
  101. package/dist/Private/CacheHandler.js.map +1 -0
  102. package/dist/Private/Endpoint.d.ts +7 -0
  103. package/dist/Private/Endpoint.js +13 -0
  104. package/dist/Private/Endpoint.js.map +1 -0
  105. package/dist/Private/RateLimit.d.ts +13 -0
  106. package/dist/Private/RateLimit.js +33 -0
  107. package/dist/Private/RateLimit.js.map +1 -0
  108. package/dist/Private/Requests.d.ts +29 -0
  109. package/dist/Private/Requests.js +112 -0
  110. package/dist/Private/Requests.js.map +1 -0
  111. package/dist/Private/Updater.d.ts +11 -0
  112. package/dist/Private/Updater.js +47 -0
  113. package/dist/Private/Updater.js.map +1 -0
  114. package/dist/index.d.ts +115 -0
  115. package/dist/index.js +132 -0
  116. package/dist/index.js.map +1 -0
  117. package/dist/package.json +66 -0
  118. package/dist/src/API/getAchievements.js +16 -0
  119. package/dist/src/API/getAchievements.test.js +74 -0
  120. package/dist/src/API/getActiveHouses.js +16 -0
  121. package/dist/src/API/getActiveHouses.test.js +43 -0
  122. package/dist/src/API/getBoosters.js +16 -0
  123. package/dist/src/API/getBoosters.test.js +72 -0
  124. package/dist/src/API/getChallenges.js +16 -0
  125. package/dist/src/API/getChallenges.test.js +51 -0
  126. package/dist/src/API/getGameCounts.js +16 -0
  127. package/dist/src/API/getGameCounts.test.js +26 -0
  128. package/dist/src/API/getGuild.js +30 -0
  129. package/dist/src/API/getGuild.test.js +508 -0
  130. package/dist/src/API/getGuildAchievements.js +16 -0
  131. package/dist/src/API/getGuildAchievements.test.js +51 -0
  132. package/dist/src/API/getHouse.js +18 -0
  133. package/dist/src/API/getHouse.test.js +51 -0
  134. package/dist/src/API/getLeaderboards.js +23 -0
  135. package/dist/src/API/getLeaderboards.test.js +55 -0
  136. package/dist/src/API/getPlayer.js +31 -0
  137. package/dist/src/API/getPlayer.test.js +290 -0
  138. package/dist/src/API/getPlayerHouses.js +19 -0
  139. package/dist/src/API/getPlayerHouses.test.js +50 -0
  140. package/dist/src/API/getQuests.js +16 -0
  141. package/dist/src/API/getQuests.test.js +48 -0
  142. package/dist/src/API/getRecentGames.js +19 -0
  143. package/dist/src/API/getRecentGames.test.js +52 -0
  144. package/dist/src/API/getSkyblockAuction.js +32 -0
  145. package/dist/src/API/getSkyblockAuction.test.js +382 -0
  146. package/dist/src/API/getSkyblockAuctions.js +51 -0
  147. package/dist/src/API/getSkyblockAuctions.test.js +366 -0
  148. package/dist/src/API/getSkyblockAuctionsByPlayer.js +19 -0
  149. package/dist/src/API/getSkyblockAuctionsByPlayer.test.js +207 -0
  150. package/dist/src/API/getSkyblockBazaar.js +16 -0
  151. package/dist/src/API/getSkyblockBazaar.test.js +51 -0
  152. package/dist/src/API/getSkyblockBingo.js +16 -0
  153. package/dist/src/API/getSkyblockBingo.test.js +40 -0
  154. package/dist/src/API/getSkyblockFireSales.js +16 -0
  155. package/dist/src/API/getSkyblockFireSales.test.js +55 -0
  156. package/dist/src/API/getSkyblockGarden.js +18 -0
  157. package/dist/src/API/getSkyblockGarden.test.js +43 -0
  158. package/dist/src/API/getSkyblockGovernment.js +16 -0
  159. package/dist/src/API/getSkyblockGovernment.test.js +60 -0
  160. package/dist/src/API/getSkyblockMember.js +40 -0
  161. package/dist/src/API/getSkyblockMember.test.js +648 -0
  162. package/dist/src/API/getSkyblockMuseum.js +19 -0
  163. package/dist/src/API/getSkyblockMuseum.test.js +78 -0
  164. package/dist/src/API/getSkyblockNews.js +16 -0
  165. package/dist/src/API/getSkyblockNews.test.js +35 -0
  166. package/dist/src/API/getSkyblockProfiles.js +41 -0
  167. package/dist/src/API/getSkyblockProfiles.test.js +121 -0
  168. package/dist/src/API/getStatus.js +17 -0
  169. package/dist/src/API/getStatus.test.js +57 -0
  170. package/dist/src/API/getWatchdogStats.js +16 -0
  171. package/dist/src/API/getWatchdogStats.test.js +37 -0
  172. package/dist/src/API/index.js +56 -0
  173. package/dist/src/Client.js +70 -0
  174. package/dist/src/Client.test.js +115 -0
  175. package/dist/src/Errors.js +28 -0
  176. package/dist/src/Private/CacheHandler.js +31 -0
  177. package/dist/src/Private/CacheHandler.test.js +37 -0
  178. package/dist/src/Private/Endpoint.js +10 -0
  179. package/dist/src/Private/Endpoint.test.js +17 -0
  180. package/dist/src/Private/RateLimit.js +30 -0
  181. package/dist/src/Private/RateLimit.test.js +73 -0
  182. package/dist/src/Private/Requests.js +106 -0
  183. package/dist/src/Private/Requests.test.js +48 -0
  184. package/dist/src/Private/Updater.js +41 -0
  185. package/dist/src/Private/Updater.test.js +52 -0
  186. package/dist/src/index.js +34 -0
  187. package/dist/src/structures/Boosters/Booster.js +38 -0
  188. package/dist/src/structures/Boosters/Booster.test.js +7 -0
  189. package/dist/src/structures/Color.js +73 -0
  190. package/dist/src/structures/Color.test.js +23 -0
  191. package/dist/src/structures/Game.js +31 -0
  192. package/dist/src/structures/GameCounts.js +23 -0
  193. package/dist/src/structures/Guild/Guild.js +61 -0
  194. package/dist/src/structures/Guild/GuildMember.js +30 -0
  195. package/dist/src/structures/Guild/GuildRank.js +20 -0
  196. package/dist/src/structures/House.js +22 -0
  197. package/dist/src/structures/House.test.js +24 -0
  198. package/dist/src/structures/ItemBytes.js +10 -0
  199. package/dist/src/structures/Leaderboard.js +17 -0
  200. package/dist/src/structures/Leaderboard.test.js +25 -0
  201. package/dist/src/structures/MiniGames/Arcade.js +437 -0
  202. package/dist/src/structures/MiniGames/Arcade.test.js +643 -0
  203. package/dist/src/structures/MiniGames/ArenaBrawl.js +48 -0
  204. package/dist/src/structures/MiniGames/ArenaBrawl.test.js +120 -0
  205. package/dist/src/structures/MiniGames/BedWars.js +299 -0
  206. package/dist/src/structures/MiniGames/BedWars.test.js +936 -0
  207. package/dist/src/structures/MiniGames/BlitzSurvivalGames.js +170 -0
  208. package/dist/src/structures/MiniGames/BlitzSurvivalGames.test.js +2238 -0
  209. package/dist/src/structures/MiniGames/BuildBattle.js +27 -0
  210. package/dist/src/structures/MiniGames/BuildBattle.test.js +42 -0
  211. package/dist/src/structures/MiniGames/CopsAndCrims.js +126 -0
  212. package/dist/src/structures/MiniGames/CopsAndCrims.test.js +162 -0
  213. package/dist/src/structures/MiniGames/Duels.js +466 -0
  214. package/dist/src/structures/MiniGames/Duels.test.js +1853 -0
  215. package/dist/src/structures/MiniGames/MegaWalls.js +194 -0
  216. package/dist/src/structures/MiniGames/MegaWalls.test.js +4790 -0
  217. package/dist/src/structures/MiniGames/MurderMystery.js +84 -0
  218. package/dist/src/structures/MiniGames/MurderMystery.test.js +241 -0
  219. package/dist/src/structures/MiniGames/Paintball.js +36 -0
  220. package/dist/src/structures/MiniGames/Paintball.test.js +51 -0
  221. package/dist/src/structures/MiniGames/Pit.js +124 -0
  222. package/dist/src/structures/MiniGames/Pit.test.js +218 -0
  223. package/dist/src/structures/MiniGames/PitInventoryItem.js +19 -0
  224. package/dist/src/structures/MiniGames/Quakecraft.js +68 -0
  225. package/dist/src/structures/MiniGames/Quakecraft.test.js +105 -0
  226. package/dist/src/structures/MiniGames/SkyWars.js +264 -0
  227. package/dist/src/structures/MiniGames/Skywars.test.js +413 -0
  228. package/dist/src/structures/MiniGames/SmashHeroes.js +110 -0
  229. package/dist/src/structures/MiniGames/SmashHeroes.test.js +647 -0
  230. package/dist/src/structures/MiniGames/SpeedUHC.js +72 -0
  231. package/dist/src/structures/MiniGames/SpeedUHC.test.js +245 -0
  232. package/dist/src/structures/MiniGames/TNTGames.js +120 -0
  233. package/dist/src/structures/MiniGames/TNTGames.test.js +139 -0
  234. package/dist/src/structures/MiniGames/TurboKartRacers.js +57 -0
  235. package/dist/src/structures/MiniGames/TurboKartRacers.test.js +140 -0
  236. package/dist/src/structures/MiniGames/UHC.js +109 -0
  237. package/dist/src/structures/MiniGames/UHC.test.js +180 -0
  238. package/dist/src/structures/MiniGames/VampireZ.js +38 -0
  239. package/dist/src/structures/MiniGames/VampireZ.test.js +59 -0
  240. package/dist/src/structures/MiniGames/Walls.js +22 -0
  241. package/dist/src/structures/MiniGames/Walls.test.js +32 -0
  242. package/dist/src/structures/MiniGames/Warlords.js +76 -0
  243. package/dist/src/structures/MiniGames/Warlords.test.js +405 -0
  244. package/dist/src/structures/MiniGames/WoolWars.js +81 -0
  245. package/dist/src/structures/MiniGames/WoolWars.test.js +251 -0
  246. package/dist/src/structures/Pet.js +38 -0
  247. package/dist/src/structures/Pets.js +14 -0
  248. package/dist/src/structures/Player.js +147 -0
  249. package/dist/src/structures/Player.test.js +96 -0
  250. package/dist/src/structures/PlayerCosmetics.js +53 -0
  251. package/dist/src/structures/RecentGame.js +25 -0
  252. package/dist/src/structures/SkyBlock/Auctions/Auction.js +39 -0
  253. package/dist/src/structures/SkyBlock/Auctions/AuctionInfo.js +15 -0
  254. package/dist/src/structures/SkyBlock/Auctions/BaseAuction.js +19 -0
  255. package/dist/src/structures/SkyBlock/Auctions/BaseAuction.test.js +20 -0
  256. package/dist/src/structures/SkyBlock/Auctions/Bid.js +20 -0
  257. package/dist/src/structures/SkyBlock/Bazaar/Order.js +16 -0
  258. package/dist/src/structures/SkyBlock/Bazaar/Order.test.js +23 -0
  259. package/dist/src/structures/SkyBlock/Bazaar/Product.js +23 -0
  260. package/dist/src/structures/SkyBlock/Bazaar/Product.test.js +46 -0
  261. package/dist/src/structures/SkyBlock/News/SkyblockNews.js +32 -0
  262. package/dist/src/structures/SkyBlock/SkyblockGarden.js +62 -0
  263. package/dist/src/structures/SkyBlock/SkyblockGarden.test.js +22 -0
  264. package/dist/src/structures/SkyBlock/SkyblockInventoryItem.js +78 -0
  265. package/dist/src/structures/SkyBlock/SkyblockMember.js +406 -0
  266. package/dist/src/structures/SkyBlock/SkyblockMember.test.js +71 -0
  267. package/dist/src/structures/SkyBlock/SkyblockMuseum.js +29 -0
  268. package/dist/src/structures/SkyBlock/SkyblockMuseumItem.js +24 -0
  269. package/dist/src/structures/SkyBlock/SkyblockPet.js +27 -0
  270. package/dist/src/structures/SkyBlock/SkyblockProfile.js +36 -0
  271. package/dist/src/structures/SkyBlock/Static/Bingo.js +49 -0
  272. package/dist/src/structures/SkyBlock/Static/BingoData.js +19 -0
  273. package/dist/src/structures/SkyBlock/Static/Candidate.js +19 -0
  274. package/dist/src/structures/SkyBlock/Static/FireSale.js +22 -0
  275. package/dist/src/structures/SkyBlock/Static/Government.js +33 -0
  276. package/dist/src/structures/SkyBlock/Static/Perk.js +9 -0
  277. package/dist/src/structures/Static/Achievement.js +44 -0
  278. package/dist/src/structures/Static/AchievementTier.js +14 -0
  279. package/dist/src/structures/Static/Achievements.js +15 -0
  280. package/dist/src/structures/Static/Challenges.js +15 -0
  281. package/dist/src/structures/Static/GameAchievements.js +14 -0
  282. package/dist/src/structures/Static/GameChallenges.js +18 -0
  283. package/dist/src/structures/Static/GameQuests.js +10 -0
  284. package/dist/src/structures/Static/GuildAchievements.js +15 -0
  285. package/dist/src/structures/Static/Quest.js +24 -0
  286. package/dist/src/structures/Static/Quests.js +15 -0
  287. package/dist/src/structures/Status.js +17 -0
  288. package/dist/src/structures/Status.test.js +18 -0
  289. package/dist/src/structures/WatchdogStats.js +15 -0
  290. package/dist/src/structures/WatchdogStats.test.js +23 -0
  291. package/dist/src/utils/Constants.js +2170 -0
  292. package/dist/src/utils/Guild.js +71 -0
  293. package/dist/src/utils/Player.js +88 -0
  294. package/dist/src/utils/Player.test.js +82 -0
  295. package/dist/src/utils/SkyblockUtils.js +342 -0
  296. package/dist/src/utils/SkyblockUtils.test.js +8 -0
  297. package/dist/src/utils/divide.js +6 -0
  298. package/dist/src/utils/divide.test.js +12 -0
  299. package/dist/src/utils/isGuildID.js +3 -0
  300. package/dist/src/utils/isGuildID.test.js +16 -0
  301. package/dist/src/utils/isUUID.js +5 -0
  302. package/dist/src/utils/isUUID.test.js +31 -0
  303. package/dist/src/utils/oscillation.js +13 -0
  304. package/dist/src/utils/oscillation.test.js +17 -0
  305. package/dist/src/utils/removeSnakeCase.js +14 -0
  306. package/dist/src/utils/romanize.js +41 -0
  307. package/dist/src/utils/romanize.test.js +8 -0
  308. package/dist/structures/Boosters/Booster.d.ts +17 -0
  309. package/dist/structures/Boosters/Booster.js +44 -0
  310. package/dist/structures/Boosters/Booster.js.map +1 -0
  311. package/dist/structures/Color.d.ts +9 -0
  312. package/dist/structures/Color.js +76 -0
  313. package/dist/structures/Color.js.map +1 -0
  314. package/dist/structures/Game.d.ts +16 -0
  315. package/dist/structures/Game.js +35 -0
  316. package/dist/structures/Game.js.map +1 -0
  317. package/dist/structures/GameCounts.d.ts +7 -0
  318. package/dist/structures/GameCounts.js +29 -0
  319. package/dist/structures/GameCounts.js.map +1 -0
  320. package/dist/structures/Guild/Guild.d.ts +39 -0
  321. package/dist/structures/Guild/Guild.js +67 -0
  322. package/dist/structures/Guild/Guild.js.map +1 -0
  323. package/dist/structures/Guild/GuildMember.d.ts +15 -0
  324. package/dist/structures/Guild/GuildMember.js +33 -0
  325. package/dist/structures/Guild/GuildMember.js.map +1 -0
  326. package/dist/structures/Guild/GuildRank.d.ts +11 -0
  327. package/dist/structures/Guild/GuildRank.js +23 -0
  328. package/dist/structures/Guild/GuildRank.js.map +1 -0
  329. package/dist/structures/House.d.ts +12 -0
  330. package/dist/structures/House.js +25 -0
  331. package/dist/structures/House.js.map +1 -0
  332. package/dist/structures/ItemBytes.d.ts +7 -0
  333. package/dist/structures/ItemBytes.js +17 -0
  334. package/dist/structures/ItemBytes.js.map +1 -0
  335. package/dist/structures/Leaderboard.d.ts +8 -0
  336. package/dist/structures/Leaderboard.js +16 -0
  337. package/dist/structures/Leaderboard.js.map +1 -0
  338. package/dist/structures/MiniGames/Arcade.d.ts +234 -0
  339. package/dist/structures/MiniGames/Arcade.js +466 -0
  340. package/dist/structures/MiniGames/Arcade.js.map +1 -0
  341. package/dist/structures/MiniGames/ArenaBrawl.d.ts +26 -0
  342. package/dist/structures/MiniGames/ArenaBrawl.js +54 -0
  343. package/dist/structures/MiniGames/ArenaBrawl.js.map +1 -0
  344. package/dist/structures/MiniGames/BedWars.d.ts +116 -0
  345. package/dist/structures/MiniGames/BedWars.js +300 -0
  346. package/dist/structures/MiniGames/BedWars.js.map +1 -0
  347. package/dist/structures/MiniGames/BlitzSurvivalGames.d.ts +87 -0
  348. package/dist/structures/MiniGames/BlitzSurvivalGames.js +176 -0
  349. package/dist/structures/MiniGames/BlitzSurvivalGames.js.map +1 -0
  350. package/dist/structures/MiniGames/BuildBattle.d.ts +18 -0
  351. package/dist/structures/MiniGames/BuildBattle.js +33 -0
  352. package/dist/structures/MiniGames/BuildBattle.js.map +1 -0
  353. package/dist/structures/MiniGames/CopsAndCrims.d.ts +67 -0
  354. package/dist/structures/MiniGames/CopsAndCrims.js +132 -0
  355. package/dist/structures/MiniGames/CopsAndCrims.js.map +1 -0
  356. package/dist/structures/MiniGames/Duels.d.ts +188 -0
  357. package/dist/structures/MiniGames/Duels.js +473 -0
  358. package/dist/structures/MiniGames/Duels.js.map +1 -0
  359. package/dist/structures/MiniGames/MegaWalls.d.ts +99 -0
  360. package/dist/structures/MiniGames/MegaWalls.js +200 -0
  361. package/dist/structures/MiniGames/MegaWalls.js.map +1 -0
  362. package/dist/structures/MiniGames/MurderMystery.d.ts +44 -0
  363. package/dist/structures/MiniGames/MurderMystery.js +90 -0
  364. package/dist/structures/MiniGames/MurderMystery.js.map +1 -0
  365. package/dist/structures/MiniGames/Paintball.d.ts +19 -0
  366. package/dist/structures/MiniGames/Paintball.js +42 -0
  367. package/dist/structures/MiniGames/Paintball.js.map +1 -0
  368. package/dist/structures/MiniGames/Pit.d.ts +41 -0
  369. package/dist/structures/MiniGames/Pit.js +138 -0
  370. package/dist/structures/MiniGames/Pit.js.map +1 -0
  371. package/dist/structures/MiniGames/PitInventoryItem.d.ts +10 -0
  372. package/dist/structures/MiniGames/PitInventoryItem.js +20 -0
  373. package/dist/structures/MiniGames/PitInventoryItem.js.map +1 -0
  374. package/dist/structures/MiniGames/Quakecraft.d.ts +35 -0
  375. package/dist/structures/MiniGames/Quakecraft.js +74 -0
  376. package/dist/structures/MiniGames/Quakecraft.js.map +1 -0
  377. package/dist/structures/MiniGames/SkyWars.d.ts +112 -0
  378. package/dist/structures/MiniGames/SkyWars.js +272 -0
  379. package/dist/structures/MiniGames/SkyWars.js.map +1 -0
  380. package/dist/structures/MiniGames/SmashHeroes.d.ts +58 -0
  381. package/dist/structures/MiniGames/SmashHeroes.js +116 -0
  382. package/dist/structures/MiniGames/SmashHeroes.js.map +1 -0
  383. package/dist/structures/MiniGames/SpeedUHC.d.ts +36 -0
  384. package/dist/structures/MiniGames/SpeedUHC.js +74 -0
  385. package/dist/structures/MiniGames/SpeedUHC.js.map +1 -0
  386. package/dist/structures/MiniGames/TNTGames.d.ts +66 -0
  387. package/dist/structures/MiniGames/TNTGames.js +126 -0
  388. package/dist/structures/MiniGames/TNTGames.js.map +1 -0
  389. package/dist/structures/MiniGames/TurboKartRacers.d.ts +31 -0
  390. package/dist/structures/MiniGames/TurboKartRacers.js +60 -0
  391. package/dist/structures/MiniGames/TurboKartRacers.js.map +1 -0
  392. package/dist/structures/MiniGames/UHC.d.ts +31 -0
  393. package/dist/structures/MiniGames/UHC.js +115 -0
  394. package/dist/structures/MiniGames/UHC.js.map +1 -0
  395. package/dist/structures/MiniGames/VampireZ.d.ts +21 -0
  396. package/dist/structures/MiniGames/VampireZ.js +44 -0
  397. package/dist/structures/MiniGames/VampireZ.js.map +1 -0
  398. package/dist/structures/MiniGames/Walls.d.ts +12 -0
  399. package/dist/structures/MiniGames/Walls.js +28 -0
  400. package/dist/structures/MiniGames/Walls.js.map +1 -0
  401. package/dist/structures/MiniGames/Warlords.d.ts +40 -0
  402. package/dist/structures/MiniGames/Warlords.js +82 -0
  403. package/dist/structures/MiniGames/Warlords.js.map +1 -0
  404. package/dist/structures/MiniGames/WoolWars.d.ts +49 -0
  405. package/dist/structures/MiniGames/WoolWars.js +87 -0
  406. package/dist/structures/MiniGames/WoolWars.js.map +1 -0
  407. package/dist/structures/Pet.d.ts +19 -0
  408. package/dist/structures/Pet.js +41 -0
  409. package/dist/structures/Pet.js.map +1 -0
  410. package/dist/structures/Pets.d.ts +38 -0
  411. package/dist/structures/Pets.js +20 -0
  412. package/dist/structures/Pets.js.map +1 -0
  413. package/dist/structures/Player.d.ts +73 -0
  414. package/dist/structures/Player.js +158 -0
  415. package/dist/structures/Player.js.map +1 -0
  416. package/dist/structures/PlayerCosmetics.d.ts +26 -0
  417. package/dist/structures/PlayerCosmetics.js +120 -0
  418. package/dist/structures/PlayerCosmetics.js.map +1 -0
  419. package/dist/structures/RecentGame.d.ts +13 -0
  420. package/dist/structures/RecentGame.js +30 -0
  421. package/dist/structures/RecentGame.js.map +1 -0
  422. package/dist/structures/ServerInfo.d.ts +20 -0
  423. package/dist/structures/ServerInfo.js +34 -0
  424. package/dist/structures/ServerInfo.js.map +1 -0
  425. package/dist/structures/SkyBlock/Auctions/Auction.d.ts +22 -0
  426. package/dist/structures/SkyBlock/Auctions/Auction.js +45 -0
  427. package/dist/structures/SkyBlock/Auctions/Auction.js.map +1 -0
  428. package/dist/structures/SkyBlock/Auctions/AuctionInfo.d.ts +10 -0
  429. package/dist/structures/SkyBlock/Auctions/AuctionInfo.js +21 -0
  430. package/dist/structures/SkyBlock/Auctions/AuctionInfo.js.map +1 -0
  431. package/dist/structures/SkyBlock/Auctions/BaseAuction.d.ts +11 -0
  432. package/dist/structures/SkyBlock/Auctions/BaseAuction.js +25 -0
  433. package/dist/structures/SkyBlock/Auctions/BaseAuction.js.map +1 -0
  434. package/dist/structures/SkyBlock/Auctions/Bid.d.ts +11 -0
  435. package/dist/structures/SkyBlock/Auctions/Bid.js +23 -0
  436. package/dist/structures/SkyBlock/Auctions/Bid.js.map +1 -0
  437. package/dist/structures/SkyBlock/Bazzar/Order.d.ts +9 -0
  438. package/dist/structures/SkyBlock/Bazzar/Order.js +19 -0
  439. package/dist/structures/SkyBlock/Bazzar/Order.js.map +1 -0
  440. package/dist/structures/SkyBlock/Bazzar/Product.d.ts +19 -0
  441. package/dist/structures/SkyBlock/Bazzar/Product.js +33 -0
  442. package/dist/structures/SkyBlock/Bazzar/Product.js.map +1 -0
  443. package/dist/structures/SkyBlock/News/SkyblockNews.d.ts +10 -0
  444. package/dist/structures/SkyBlock/News/SkyblockNews.js +35 -0
  445. package/dist/structures/SkyBlock/News/SkyblockNews.js.map +1 -0
  446. package/dist/structures/SkyBlock/SkyblockGarden.d.ts +60 -0
  447. package/dist/structures/SkyBlock/SkyblockGarden.js +65 -0
  448. package/dist/structures/SkyBlock/SkyblockGarden.js.map +1 -0
  449. package/dist/structures/SkyBlock/SkyblockInventoryItem.d.ts +38 -0
  450. package/dist/structures/SkyBlock/SkyblockInventoryItem.js +83 -0
  451. package/dist/structures/SkyBlock/SkyblockInventoryItem.js.map +1 -0
  452. package/dist/structures/SkyBlock/SkyblockMember.d.ts +80 -0
  453. package/dist/structures/SkyBlock/SkyblockMember.js +288 -0
  454. package/dist/structures/SkyBlock/SkyblockMember.js.map +1 -0
  455. package/dist/structures/SkyBlock/SkyblockMuseum.d.ts +10 -0
  456. package/dist/structures/SkyBlock/SkyblockMuseum.js +35 -0
  457. package/dist/structures/SkyBlock/SkyblockMuseum.js.map +1 -0
  458. package/dist/structures/SkyBlock/SkyblockMuseumItem.d.ts +11 -0
  459. package/dist/structures/SkyBlock/SkyblockMuseumItem.js +30 -0
  460. package/dist/structures/SkyBlock/SkyblockMuseumItem.js.map +1 -0
  461. package/dist/structures/SkyBlock/SkyblockPet.d.ts +15 -0
  462. package/dist/structures/SkyBlock/SkyblockPet.js +33 -0
  463. package/dist/structures/SkyBlock/SkyblockPet.js.map +1 -0
  464. package/dist/structures/SkyBlock/SkyblockProfile.d.ts +14 -0
  465. package/dist/structures/SkyBlock/SkyblockProfile.js +42 -0
  466. package/dist/structures/SkyBlock/SkyblockProfile.js.map +1 -0
  467. package/dist/structures/SkyBlock/Static/Bingo.d.ts +16 -0
  468. package/dist/structures/SkyBlock/Static/Bingo.js +52 -0
  469. package/dist/structures/SkyBlock/Static/Bingo.js.map +1 -0
  470. package/dist/structures/SkyBlock/Static/BingoData.d.ts +10 -0
  471. package/dist/structures/SkyBlock/Static/BingoData.js +25 -0
  472. package/dist/structures/SkyBlock/Static/BingoData.js.map +1 -0
  473. package/dist/structures/SkyBlock/Static/Candidate.d.ts +11 -0
  474. package/dist/structures/SkyBlock/Static/Candidate.js +25 -0
  475. package/dist/structures/SkyBlock/Static/Candidate.js.map +1 -0
  476. package/dist/structures/SkyBlock/Static/FireSale.d.ts +12 -0
  477. package/dist/structures/SkyBlock/Static/FireSale.js +25 -0
  478. package/dist/structures/SkyBlock/Static/FireSale.js.map +1 -0
  479. package/dist/structures/SkyBlock/Static/Government.d.ts +13 -0
  480. package/dist/structures/SkyBlock/Static/Government.js +39 -0
  481. package/dist/structures/SkyBlock/Static/Government.js.map +1 -0
  482. package/dist/structures/SkyBlock/Static/Perk.d.ts +6 -0
  483. package/dist/structures/SkyBlock/Static/Perk.js +12 -0
  484. package/dist/structures/SkyBlock/Static/Perk.js.map +1 -0
  485. package/dist/structures/Static/Achievement.d.ts +14 -0
  486. package/dist/structures/Static/Achievement.js +50 -0
  487. package/dist/structures/Static/Achievement.js.map +1 -0
  488. package/dist/structures/Static/AchievementTier.d.ts +7 -0
  489. package/dist/structures/Static/AchievementTier.js +17 -0
  490. package/dist/structures/Static/AchievementTier.js.map +1 -0
  491. package/dist/structures/Static/Achievements.d.ts +9 -0
  492. package/dist/structures/Static/Achievements.js +21 -0
  493. package/dist/structures/Static/Achievements.js.map +1 -0
  494. package/dist/structures/Static/Challenges.d.ts +9 -0
  495. package/dist/structures/Static/Challenges.js +21 -0
  496. package/dist/structures/Static/Challenges.js.map +1 -0
  497. package/dist/structures/Static/GameAchievements.d.ts +10 -0
  498. package/dist/structures/Static/GameAchievements.js +20 -0
  499. package/dist/structures/Static/GameAchievements.js.map +1 -0
  500. package/dist/structures/Static/GameChallenges.d.ts +13 -0
  501. package/dist/structures/Static/GameChallenges.js +21 -0
  502. package/dist/structures/Static/GameChallenges.js.map +1 -0
  503. package/dist/structures/Static/GameQuests.d.ts +8 -0
  504. package/dist/structures/Static/GameQuests.js +16 -0
  505. package/dist/structures/Static/GameQuests.js.map +1 -0
  506. package/dist/structures/Static/GuildAchievements.d.ts +8 -0
  507. package/dist/structures/Static/GuildAchievements.js +21 -0
  508. package/dist/structures/Static/GuildAchievements.js.map +1 -0
  509. package/dist/structures/Static/Quest.d.ts +20 -0
  510. package/dist/structures/Static/Quest.js +27 -0
  511. package/dist/structures/Static/Quest.js.map +1 -0
  512. package/dist/structures/Static/Quests.d.ts +9 -0
  513. package/dist/structures/Static/Quests.js +21 -0
  514. package/dist/structures/Static/Quests.js.map +1 -0
  515. package/dist/structures/Status.d.ts +10 -0
  516. package/dist/structures/Status.js +23 -0
  517. package/dist/structures/Status.js.map +1 -0
  518. package/dist/structures/Watchdog/Stats.d.ts +9 -0
  519. package/dist/structures/Watchdog/Stats.js +18 -0
  520. package/dist/structures/Watchdog/Stats.js.map +1 -0
  521. package/dist/utils/Constants.d.ts +1017 -0
  522. package/dist/utils/Constants.js +2197 -0
  523. package/dist/utils/Constants.js.map +1 -0
  524. package/dist/utils/Guild.d.ts +15 -0
  525. package/dist/utils/Guild.js +85 -0
  526. package/dist/utils/Guild.js.map +1 -0
  527. package/dist/utils/Player.d.ts +8 -0
  528. package/dist/utils/Player.js +98 -0
  529. package/dist/utils/Player.js.map +1 -0
  530. package/dist/utils/SkyblockUtils.d.ts +131 -0
  531. package/dist/utils/SkyblockUtils.js +394 -0
  532. package/dist/utils/SkyblockUtils.js.map +1 -0
  533. package/dist/utils/divide.d.ts +1 -0
  534. package/dist/utils/divide.js +10 -0
  535. package/dist/utils/divide.js.map +1 -0
  536. package/dist/utils/isGuildID.d.ts +1 -0
  537. package/dist/utils/isGuildID.js +7 -0
  538. package/dist/utils/isGuildID.js.map +1 -0
  539. package/dist/utils/isUUID.d.ts +1 -0
  540. package/dist/utils/isUUID.js +9 -0
  541. package/dist/utils/isUUID.js.map +1 -0
  542. package/dist/utils/oscillation.d.ts +2 -0
  543. package/dist/utils/oscillation.js +15 -0
  544. package/dist/utils/oscillation.js.map +1 -0
  545. package/dist/utils/removeSnakeCase.d.ts +3 -0
  546. package/dist/utils/removeSnakeCase.js +20 -0
  547. package/dist/utils/removeSnakeCase.js.map +1 -0
  548. package/dist/utils/romanize.d.ts +1 -0
  549. package/dist/utils/romanize.js +45 -0
  550. package/dist/utils/romanize.js.map +1 -0
  551. package/{eslint.config.mjs → eslint.config.js} +16 -14
  552. package/package.json +32 -25
  553. package/renovate.json +21 -0
  554. package/src/API/API.d.ts +16 -0
  555. package/src/API/getAchievements.test.ts +81 -0
  556. package/src/API/getAchievements.ts +20 -0
  557. package/src/API/getActiveHouses.test.ts +45 -0
  558. package/src/API/getActiveHouses.ts +20 -0
  559. package/src/API/getBoosters.test.ts +53 -0
  560. package/src/API/getBoosters.ts +20 -0
  561. package/src/API/getChallenges.test.ts +54 -0
  562. package/src/API/getChallenges.ts +19 -0
  563. package/src/API/getGameCounts.test.ts +28 -0
  564. package/src/API/getGameCounts.ts +20 -0
  565. package/src/API/getGuild.test.ts +478 -0
  566. package/src/API/getGuild.ts +35 -0
  567. package/src/API/getGuildAchievements.test.ts +59 -0
  568. package/src/API/getGuildAchievements.ts +20 -0
  569. package/src/API/getHouse.test.ts +55 -0
  570. package/src/API/getHouse.ts +21 -0
  571. package/src/API/getLeaderboards.test.ts +41 -0
  572. package/src/API/getLeaderboards.ts +30 -0
  573. package/src/API/getPlayer.test.ts +494 -0
  574. package/src/API/getPlayer.ts +33 -0
  575. package/src/API/getPlayerHouses.test.ts +53 -0
  576. package/src/API/getPlayerHouses.ts +22 -0
  577. package/src/API/getQuests.test.ts +51 -0
  578. package/src/API/getQuests.ts +20 -0
  579. package/src/API/getRecentGames.test.ts +51 -0
  580. package/src/API/getRecentGames.ts +22 -0
  581. package/src/API/getSkyblockAuction.test.ts +293 -0
  582. package/src/API/getSkyblockAuction.ts +36 -0
  583. package/src/API/getSkyblockAuctions.test.ts +346 -0
  584. package/src/API/getSkyblockAuctions.ts +59 -0
  585. package/src/API/getSkyblockAuctionsByPlayer.test.ts +249 -0
  586. package/src/API/getSkyblockAuctionsByPlayer.ts +22 -0
  587. package/src/API/getSkyblockBazaar.test.ts +52 -0
  588. package/src/API/getSkyblockBazaar.ts +20 -0
  589. package/src/API/getSkyblockBingo.test.ts +42 -0
  590. package/src/API/getSkyblockBingo.ts +20 -0
  591. package/src/API/getSkyblockFireSales.test.ts +43 -0
  592. package/src/API/getSkyblockFireSales.ts +20 -0
  593. package/src/API/getSkyblockGarden.test.ts +60 -0
  594. package/src/API/getSkyblockGarden.ts +21 -0
  595. package/src/API/getSkyblockGovernment.test.ts +78 -0
  596. package/src/API/getSkyblockGovernment.ts +20 -0
  597. package/src/API/getSkyblockMember.test.ts +308 -0
  598. package/src/API/getSkyblockMember.ts +45 -0
  599. package/src/API/getSkyblockMuseum.test.ts +91 -0
  600. package/src/API/getSkyblockMuseum.ts +22 -0
  601. package/src/API/getSkyblockNews.test.ts +45 -0
  602. package/src/API/getSkyblockNews.ts +20 -0
  603. package/src/API/getSkyblockProfiles.test.ts +164 -0
  604. package/src/API/getSkyblockProfiles.ts +43 -0
  605. package/src/API/getStatus.test.ts +42 -0
  606. package/src/API/getStatus.ts +21 -0
  607. package/src/API/getWatchdogStats.test.ts +44 -0
  608. package/src/API/getWatchdogStats.ts +20 -0
  609. package/src/API/index.ts +56 -0
  610. package/src/Client.test.ts +148 -0
  611. package/src/Client.ts +91 -0
  612. package/src/Errors.ts +42 -0
  613. package/src/Private/CacheHandler.test.ts +49 -0
  614. package/src/Private/CacheHandler.ts +41 -0
  615. package/src/Private/Endpoint.test.ts +23 -0
  616. package/src/Private/Endpoint.ts +14 -0
  617. package/src/Private/RateLimit.test.ts +99 -0
  618. package/src/Private/RateLimit.ts +38 -0
  619. package/src/Private/Requests.test.ts +59 -0
  620. package/src/Private/Requests.ts +128 -0
  621. package/src/Private/Updater.test.ts +68 -0
  622. package/src/Private/Updater.ts +48 -0
  623. package/src/index.ts +119 -0
  624. package/src/structures/Boosters/Booster.ts +40 -0
  625. package/src/structures/Color.ts +79 -0
  626. package/src/structures/Game.ts +147 -0
  627. package/src/structures/GameCounts.ts +26 -0
  628. package/src/structures/Guild/Guild.ts +67 -0
  629. package/src/structures/Guild/GuildMember.ts +33 -0
  630. package/src/structures/Guild/GuildRank.ts +22 -0
  631. package/src/structures/House.ts +24 -0
  632. package/src/structures/ItemBytes.ts +18 -0
  633. package/src/structures/Leaderboard.ts +14 -0
  634. package/src/structures/MiniGames/Arcade.ts +460 -0
  635. package/src/structures/MiniGames/ArenaBrawl.ts +51 -0
  636. package/src/structures/MiniGames/{BedWars.js → BedWars.ts} +198 -298
  637. package/src/structures/MiniGames/BlitzSurvivalGames.ts +173 -0
  638. package/src/structures/MiniGames/BuildBattle.ts +36 -0
  639. package/src/structures/MiniGames/CopsAndCrims.ts +131 -0
  640. package/src/structures/MiniGames/{Duels.js → Duels.ts} +200 -737
  641. package/src/structures/MiniGames/MegaWalls.ts +197 -0
  642. package/src/structures/MiniGames/MurderMystery.ts +87 -0
  643. package/src/structures/MiniGames/Paintball.ts +38 -0
  644. package/src/structures/MiniGames/Pit.ts +139 -0
  645. package/src/structures/MiniGames/PitInventoryItem.ts +18 -0
  646. package/src/structures/MiniGames/Quakecraft.ts +70 -0
  647. package/src/structures/MiniGames/SkyWars.ts +288 -0
  648. package/src/structures/MiniGames/SmashHeroes.ts +114 -0
  649. package/src/structures/MiniGames/SpeedUHC.ts +71 -0
  650. package/src/structures/MiniGames/TNTGames.ts +126 -0
  651. package/src/structures/MiniGames/TurboKartRacers.ts +59 -0
  652. package/src/structures/MiniGames/{UHC.js → UHC.ts} +32 -114
  653. package/src/structures/MiniGames/VampireZ.ts +41 -0
  654. package/src/structures/MiniGames/Walls.ts +24 -0
  655. package/src/structures/MiniGames/Warlords.ts +79 -0
  656. package/src/structures/MiniGames/WoolWars.ts +106 -0
  657. package/src/structures/Pet.ts +40 -0
  658. package/src/structures/Pets.ts +46 -0
  659. package/src/structures/Player.ts +199 -0
  660. package/src/structures/{PlayerCosmetics.js → PlayerCosmetics.ts} +36 -63
  661. package/src/structures/RecentGame.ts +27 -0
  662. package/src/structures/ServerInfo.ts +40 -0
  663. package/src/structures/SkyBlock/Auctions/Auction.ts +43 -0
  664. package/src/structures/SkyBlock/Auctions/AuctionInfo.ts +20 -0
  665. package/src/structures/SkyBlock/Auctions/BaseAuction.ts +22 -0
  666. package/src/structures/SkyBlock/Auctions/Bid.ts +22 -0
  667. package/src/structures/SkyBlock/Bazzar/Order.ts +18 -0
  668. package/src/structures/SkyBlock/Bazzar/Product.ts +40 -0
  669. package/src/structures/SkyBlock/News/SkyblockNews.ts +35 -0
  670. package/src/structures/SkyBlock/SkyblockGarden.ts +118 -0
  671. package/src/structures/SkyBlock/SkyblockInventoryItem.ts +83 -0
  672. package/src/structures/SkyBlock/SkyblockMember.ts +317 -0
  673. package/src/structures/SkyBlock/SkyblockMuseum.ts +43 -0
  674. package/src/structures/SkyBlock/SkyblockMuseumItem.ts +26 -0
  675. package/src/structures/SkyBlock/SkyblockPet.ts +30 -0
  676. package/src/structures/SkyBlock/SkyblockProfile.ts +42 -0
  677. package/src/structures/SkyBlock/Static/Bingo.ts +50 -0
  678. package/src/structures/SkyBlock/Static/BingoData.ts +21 -0
  679. package/src/structures/SkyBlock/Static/Candidate.ts +22 -0
  680. package/src/structures/SkyBlock/Static/FireSale.ts +24 -0
  681. package/src/structures/SkyBlock/Static/Government.ts +42 -0
  682. package/src/structures/SkyBlock/Static/Perk.ts +10 -0
  683. package/src/structures/Static/Achievement.ts +49 -0
  684. package/src/structures/Static/AchievementTier.ts +18 -0
  685. package/src/structures/Static/Achievements.ts +20 -0
  686. package/src/structures/Static/Challenges.ts +20 -0
  687. package/src/structures/Static/GameAchievements.ts +19 -0
  688. package/src/structures/Static/GameChallenges.ts +28 -0
  689. package/src/structures/Static/GameQuests.ts +13 -0
  690. package/src/structures/Static/GuildAchievements.ts +19 -0
  691. package/src/structures/Static/Quest.ts +37 -0
  692. package/src/structures/Static/Quests.ts +20 -0
  693. package/src/structures/Status.ts +20 -0
  694. package/src/structures/Watchdog/Stats.ts +16 -0
  695. package/src/typings/index.d.ts +24 -0
  696. package/src/utils/{Constants.js → Constants.ts} +201 -1248
  697. package/src/utils/Guild.ts +90 -0
  698. package/src/utils/Player.ts +93 -0
  699. package/src/utils/SkyblockUtils.test.ts +9 -0
  700. package/src/utils/SkyblockUtils.ts +516 -0
  701. package/src/utils/divide.test.ts +13 -0
  702. package/src/utils/{divide.js → divide.ts} +2 -2
  703. package/src/utils/isGuildID.test.ts +19 -0
  704. package/src/utils/isGuildID.ts +3 -0
  705. package/src/utils/isUUID.test.ts +35 -0
  706. package/src/utils/{isUUID.js → isUUID.ts} +2 -2
  707. package/src/utils/oscillation.ts +11 -0
  708. package/src/utils/removeSnakeCase.ts +18 -0
  709. package/src/utils/romanize.test.ts +9 -0
  710. package/src/utils/{romanize.js → romanize.ts} +3 -4
  711. package/tsconfig.json +25 -0
  712. package/vitest.config.ts +8 -0
  713. package/vitest.setup.ts +2 -0
  714. package/src/API/getAPIStatus.js +0 -8
  715. package/src/API/getAchievements.js +0 -7
  716. package/src/API/getBoosters.js +0 -7
  717. package/src/API/getChallenges.js +0 -7
  718. package/src/API/getGameCounts.js +0 -7
  719. package/src/API/getGuild.js +0 -19
  720. package/src/API/getGuildAchievements.js +0 -7
  721. package/src/API/getLeaderboards.js +0 -15
  722. package/src/API/getPlayer.js +0 -23
  723. package/src/API/getQuests.js +0 -7
  724. package/src/API/getRecentGames.js +0 -14
  725. package/src/API/getServerInfo.js +0 -71
  726. package/src/API/getStatus.js +0 -9
  727. package/src/API/getWatchdogStats.js +0 -7
  728. package/src/API/housing/getActiveHouses.js +0 -7
  729. package/src/API/housing/getHouse.js +0 -9
  730. package/src/API/housing/getPlayerHouses.js +0 -11
  731. package/src/API/index.js +0 -35
  732. package/src/API/skyblock/getAuction.js +0 -21
  733. package/src/API/skyblock/getAuctions.js +0 -74
  734. package/src/API/skyblock/getAuctionsByPlayer.js +0 -11
  735. package/src/API/skyblock/getBazaar.js +0 -8
  736. package/src/API/skyblock/getBingo.js +0 -7
  737. package/src/API/skyblock/getBingoByPlayer.js +0 -14
  738. package/src/API/skyblock/getEndedAuctions.js +0 -11
  739. package/src/API/skyblock/getFireSales.js +0 -7
  740. package/src/API/skyblock/getGarden.js +0 -11
  741. package/src/API/skyblock/getGovernment.js +0 -7
  742. package/src/API/skyblock/getMember.js +0 -35
  743. package/src/API/skyblock/getMuseum.js +0 -15
  744. package/src/API/skyblock/getNews.js +0 -7
  745. package/src/API/skyblock/getProfiles.js +0 -49
  746. package/src/Client.js +0 -547
  747. package/src/Errors.js +0 -66
  748. package/src/Private/defaultCache.js +0 -77
  749. package/src/Private/rateLimit.js +0 -83
  750. package/src/Private/requests.js +0 -76
  751. package/src/Private/updater.js +0 -34
  752. package/src/Private/uuidCache.js +0 -30
  753. package/src/Private/validate.js +0 -108
  754. package/src/index.js +0 -96
  755. package/src/structures/APIIncident.js +0 -71
  756. package/src/structures/APIStatus.js +0 -46
  757. package/src/structures/Boosters/Booster.js +0 -84
  758. package/src/structures/Color.js +0 -174
  759. package/src/structures/Game.js +0 -166
  760. package/src/structures/GameCounts.js +0 -151
  761. package/src/structures/Guild/Guild.js +0 -191
  762. package/src/structures/Guild/GuildMember.js +0 -66
  763. package/src/structures/Guild/GuildRank.js +0 -48
  764. package/src/structures/House.js +0 -54
  765. package/src/structures/ItemBytes.js +0 -33
  766. package/src/structures/Leaderboard.js +0 -31
  767. package/src/structures/MiniGames/Arcade.js +0 -1058
  768. package/src/structures/MiniGames/ArenaBrawl.js +0 -118
  769. package/src/structures/MiniGames/BlitzSurvivalGames.js +0 -424
  770. package/src/structures/MiniGames/BuildBattle.js +0 -64
  771. package/src/structures/MiniGames/CopsAndCrims.js +0 -318
  772. package/src/structures/MiniGames/MegaWalls.js +0 -478
  773. package/src/structures/MiniGames/MurderMystery.js +0 -214
  774. package/src/structures/MiniGames/Paintball.js +0 -87
  775. package/src/structures/MiniGames/Pit.js +0 -247
  776. package/src/structures/MiniGames/PitInventoryItem.js +0 -43
  777. package/src/structures/MiniGames/Quakecraft.js +0 -164
  778. package/src/structures/MiniGames/SkyWars.js +0 -669
  779. package/src/structures/MiniGames/SmashHeroes.js +0 -272
  780. package/src/structures/MiniGames/SpeedUHC.js +0 -168
  781. package/src/structures/MiniGames/TNTGames.js +0 -285
  782. package/src/structures/MiniGames/TurboKartRacers.js +0 -141
  783. package/src/structures/MiniGames/VampireZ.js +0 -93
  784. package/src/structures/MiniGames/Walls.js +0 -52
  785. package/src/structures/MiniGames/Warlords.js +0 -187
  786. package/src/structures/MiniGames/WoolWars.js +0 -174
  787. package/src/structures/Pet.js +0 -96
  788. package/src/structures/Pets.js +0 -64
  789. package/src/structures/Player.js +0 -346
  790. package/src/structures/RecentGame.js +0 -57
  791. package/src/structures/ServerInfo.js +0 -78
  792. package/src/structures/SkyBlock/Auctions/Auction.js +0 -106
  793. package/src/structures/SkyBlock/Auctions/AuctionInfo.js +0 -56
  794. package/src/structures/SkyBlock/Auctions/BaseAuction.js +0 -46
  795. package/src/structures/SkyBlock/Auctions/Bid.js +0 -49
  796. package/src/structures/SkyBlock/Auctions/PartialAuction.js +0 -26
  797. package/src/structures/SkyBlock/Bazzar/Order.js +0 -38
  798. package/src/structures/SkyBlock/Bazzar/Product.js +0 -53
  799. package/src/structures/SkyBlock/News/SkyblockNews.js +0 -60
  800. package/src/structures/SkyBlock/PlayerBingo.js +0 -49
  801. package/src/structures/SkyBlock/SkyblockGarden.js +0 -146
  802. package/src/structures/SkyBlock/SkyblockInventoryItem.js +0 -168
  803. package/src/structures/SkyBlock/SkyblockMember.js +0 -591
  804. package/src/structures/SkyBlock/SkyblockMuseum.js +0 -60
  805. package/src/structures/SkyBlock/SkyblockMuseumItem.js +0 -54
  806. package/src/structures/SkyBlock/SkyblockPet.js +0 -71
  807. package/src/structures/SkyBlock/SkyblockProfile.js +0 -81
  808. package/src/structures/SkyBlock/Static/Bingo.js +0 -101
  809. package/src/structures/SkyBlock/Static/BingoData.js +0 -45
  810. package/src/structures/SkyBlock/Static/Candidate.js +0 -50
  811. package/src/structures/SkyBlock/Static/FireSale.js +0 -55
  812. package/src/structures/SkyBlock/Static/Government.js +0 -79
  813. package/src/structures/SkyBlock/Static/Perk.js +0 -23
  814. package/src/structures/Static/Achievement.js +0 -87
  815. package/src/structures/Static/AchievementTier.js +0 -33
  816. package/src/structures/Static/Achievements.js +0 -30
  817. package/src/structures/Static/Challenges.js +0 -29
  818. package/src/structures/Static/GameAchievements.js +0 -36
  819. package/src/structures/Static/GameChallenges.js +0 -40
  820. package/src/structures/Static/GameQuests.js +0 -24
  821. package/src/structures/Static/GuildAchievements.js +0 -34
  822. package/src/structures/Static/Quest.js +0 -66
  823. package/src/structures/Static/Quests.js +0 -31
  824. package/src/structures/Status.js +0 -41
  825. package/src/structures/Watchdog/Stats.js +0 -36
  826. package/src/utils/Guild.js +0 -90
  827. package/src/utils/Player.js +0 -112
  828. package/src/utils/SkyblockUtils.js +0 -667
  829. package/src/utils/arrayTools.js +0 -4
  830. package/src/utils/index.js +0 -14
  831. package/src/utils/isGuildID.js +0 -3
  832. package/src/utils/oscillation.js +0 -17
  833. package/src/utils/removeSnakeCase.js +0 -33
  834. package/src/utils/rgbToHexColor.js +0 -8
  835. package/src/utils/toUuid.js +0 -24
  836. package/src/utils/varInt.js +0 -17
  837. package/typings/index.d.ts +0 -4297
@@ -1,251 +1,113 @@
1
- const { duelsDivisions } = require('../../utils/Constants');
2
- const romanize = require('../../utils/romanize');
3
- const divide = require('../../utils/divide');
1
+ import Constants from '../../utils/Constants';
2
+ import divide from '../../utils/divide';
3
+ import romanize from '../../utils/romanize';
4
4
 
5
- // eslint-disable-next-line jsdoc/require-jsdoc
6
- function getTitle(data, mode = null) {
7
- for (const div of duelsDivisions.slice().reverse()) {
8
- const prestige = data[`${mode ? mode : 'all_modes'}_${div.key}_title_prestige`];
5
+ function getTitle(data: Record<string, any>, mode: string): string {
6
+ for (const div of Constants.duelsDivisions.slice().reverse()) {
7
+ const prestige = data[`${mode}_${div.key}_title_prestige`];
9
8
  if (prestige) {
10
9
  return `${div.name} ${romanize(prestige)}`;
11
10
  }
12
11
  }
13
- return null;
12
+ return '';
14
13
  }
15
14
 
16
15
  class DuelsGamemode {
17
- /**
18
- * @param {object} data Duels data
19
- */
20
- constructor(data, mode, title = '') {
21
- /**
22
- * Title
23
- * @type {string}
24
- */
16
+ title: string;
17
+ winstreak: number;
18
+ bestWinstreak: number;
19
+ kills: number;
20
+ deaths: number;
21
+ KDR: number;
22
+ wins: number;
23
+ losses: number;
24
+ WLR: number;
25
+ playedGames: number;
26
+ swings: number;
27
+ hits: number;
28
+ meleeAccuracy: number;
29
+ bowShots: number;
30
+ bowHits: number;
31
+ bowAccuracy: number;
32
+ blocksPlaced: number;
33
+ healthRegenerated: number;
34
+ goldenApplesEatan: number;
35
+ constructor(data: Record<string, any>, mode: string, title: string = '') {
25
36
  this.title = title;
26
- /**
27
- * Winstreak
28
- * @type {number}
29
- */
30
37
  this.winstreak = data[`current_winstreak_mode_${mode}`] || 0;
31
- /**
32
- * Best Winstreak
33
- * @type {number}
34
- */
35
38
  this.bestWinstreak = data[`best_winstreak_mode_${mode}`] || 0;
36
- /**
37
- * Kills
38
- * @type {number}
39
- */
40
39
  this.kills = data[`${mode}_kills`] || 0;
41
- /**
42
- * Deaths
43
- * @type {number}
44
- */
45
40
  this.deaths = data[`${mode}_deaths`] || 0;
46
- /**
47
- * KDRatio
48
- * @type {number}
49
- */
50
- this.KDRatio = divide(this.kills, this.deaths);
51
- /**
52
- * Wins
53
- * @type {number}
54
- */
41
+ this.KDR = divide(this.kills, this.deaths);
55
42
  this.wins = data[`${mode}_wins`] || 0;
56
- /**
57
- * Losses
58
- * @type {number}
59
- */
60
43
  this.losses = data[`${mode}_losses`] || 0;
61
- /**
62
- * WLRatio
63
- * @type {number}
64
- */
65
- this.WLRatio = divide(this.wins, this.losses);
66
- /**
67
- * Played Games
68
- * @type {number}
69
- */
44
+ this.WLR = divide(this.wins, this.losses);
70
45
  this.playedGames = data[`${mode}_rounds_played`] || 0;
71
- /**
72
- * Swings
73
- * @type {number}
74
- */
75
46
  this.swings = data[`${mode}_melee_swings`] || 0;
76
- /**
77
- * Hits
78
- * @type {number}
79
- */
80
47
  this.hits = data[`${mode}_melee_hits`] || 0;
81
- /**
82
- * Melee Accuracy
83
- * @type {number}
84
- */
85
48
  this.meleeAccuracy = divide(this.swings, this.hits);
86
- /**
87
- * Bow Shots
88
- * @type {number}
89
- */
90
49
  this.bowShots = data[`${mode}_bow_shots`] || 0;
91
- /**
92
- * Bow Hits
93
- * @type {number}
94
- */
95
50
  this.bowHits = data[`${mode}_bow_hits`] || 0;
96
- /**
97
- * Bow Accuracy
98
- * @type {number}
99
- */
100
51
  this.bowAccuracy = divide(this.bowShots, this.bowHits);
101
- /**
102
- * Blocks Placed
103
- * @type {number}
104
- */
105
52
  this.blocksPlaced = data[`${mode}_blocks_placed`] || 0;
106
- /**
107
- * Health Regenerated
108
- * @type {number}
109
- */
110
53
  this.healthRegenerated = data[`${mode}_health_regenerated`] || 0;
111
- /**
112
- * Golden Apples Eatan
113
- * @type {number}
114
- */
115
54
  this.goldenApplesEatan = data[`${mode}_golden_apples_eaten`] || 0;
116
- /**
117
- * Goals (only shows up in bridge)
118
- * @type {number}
119
- */
120
- this.goals = data[`${mode}_goals`] || 0;
121
55
  }
122
56
  }
123
57
 
124
58
  class DuelsUHC {
125
- /**
126
- * @param {object} data Duels data
127
- */
128
- constructor(data) {
129
- /**
130
- * Title
131
- * @type {string}
132
- */
59
+ title: string;
60
+ winstreak: number;
61
+ bestWinstreak: number;
62
+ solo: DuelsGamemode;
63
+ doubles: DuelsGamemode;
64
+ fours: DuelsGamemode;
65
+ deathmatch: DuelsGamemode;
66
+ kills: number;
67
+ deaths: number;
68
+ KDR: number;
69
+ wins: number;
70
+ losses: number;
71
+ WLR: number;
72
+ playedGames: number;
73
+ swings: number;
74
+ hits: number;
75
+ meleeAccuracy: number;
76
+ bowShots: number;
77
+ bowHits: number;
78
+ bowAccuracy: number;
79
+ blocksPlaced: number;
80
+ healthRegenerated: number;
81
+ goldenApplesEatan: number;
82
+ constructor(data: Record<string, any>) {
133
83
  this.title = getTitle(data, 'uhc');
134
- /**
135
- * Winstreak
136
- * @type {number}
137
- */
138
84
  this.winstreak = data.current_uhc_winstreak || 0;
139
- /**
140
- * Best Winstreak
141
- * @type {number}
142
- */
143
85
  this.bestWinstreak = data.best_uhc_winstreak || 0;
144
- /**
145
- * Solo Game Mode Stats
146
- * @type {DuelsGamemode}
147
- */
148
86
  this.solo = new DuelsGamemode(data, 'uhc_duel', this.title);
149
- /**
150
- * Doubles Game Mode Stats
151
- * @type {DuelsGamemode}
152
- */
153
87
  this.doubles = new DuelsGamemode(data, 'uhc_doubles', this.title);
154
- /**
155
- * Fours Game Mode Stats
156
- * @type {DuelsGamemode}
157
- */
158
88
  this.fours = new DuelsGamemode(data, 'uhc_four', this.title);
159
- /**
160
- * Deathmatch Game Mode Stats
161
- * @type {DuelsGamemode}
162
- */
163
89
  this.deathmatch = new DuelsGamemode(data, 'uhc_meetup', this.title);
164
- /**
165
- * Kills
166
- * @type {number}
167
- */
168
90
  this.kills = this.solo.kills + this.doubles.kills + this.fours.kills + this.deathmatch.kills;
169
- /**
170
- * Deaths
171
- * @type {number}
172
- */
173
91
  this.deaths = this.solo.deaths + this.doubles.deaths + this.fours.deaths + this.deathmatch.deaths;
174
- /**
175
- * KDRatio
176
- * @type {number}
177
- */
178
- this.KDRatio = divide(this.kills, this.deaths);
179
- /**
180
- * Wins
181
- * @type {number}
182
- */
92
+ this.KDR = divide(this.kills, this.deaths);
183
93
  this.wins = this.solo.wins + this.doubles.wins + this.fours.wins + this.deathmatch.wins;
184
- /**
185
- * Losses
186
- * @type {number}
187
- */
188
94
  this.losses = this.solo.losses + this.doubles.losses + this.fours.losses + this.deathmatch.losses;
189
- /**
190
- * WLRatio
191
- * @type {number}
192
- */
193
- this.WLRatio = divide(this.wins, this.losses);
194
- /**
195
- * Played Games
196
- * @type {number}
197
- */
95
+ this.WLR = divide(this.wins, this.losses);
198
96
  this.playedGames =
199
97
  this.solo.playedGames + this.doubles.playedGames + this.fours.playedGames + this.deathmatch.playedGames;
200
- /**
201
- * Swings
202
- * @type {number}
203
- */
204
98
  this.swings = this.solo.swings + this.doubles.swings + this.fours.swings + this.deathmatch.swings;
205
- /**
206
- * Hits
207
- * @type {number}
208
- */
209
99
  this.hits = this.solo.hits + this.doubles.hits + this.fours.hits + this.deathmatch.hits;
210
- /**
211
- * Melee Accuracy
212
- * @type {number}
213
- */
214
100
  this.meleeAccuracy = divide(this.hits, this.swings);
215
- /**
216
- * Bow Shots
217
- * @type {number}
218
- */
219
101
  this.bowShots = this.solo.bowShots + this.doubles.bowShots + this.fours.bowShots + this.deathmatch.bowShots;
220
- /**
221
- * Bow Hits
222
- * @type {number}
223
- */
224
102
  this.bowHits = this.solo.bowHits + this.doubles.bowHits + this.fours.bowHits + this.deathmatch.bowHits;
225
- /**
226
- * Bow Accuracy
227
- * @type {number}
228
- */
229
103
  this.bowAccuracy = divide(this.bowHits, this.bowShots);
230
- /**
231
- * Blocks Placed
232
- * @type {number}
233
- */
234
104
  this.blocksPlaced =
235
105
  this.solo.blocksPlaced + this.doubles.blocksPlaced + this.fours.blocksPlaced + this.deathmatch.blocksPlaced;
236
- /**
237
- * Health Regenerated
238
- * @type {number}
239
- */
240
106
  this.healthRegenerated =
241
107
  this.solo.healthRegenerated +
242
108
  this.doubles.healthRegenerated +
243
109
  this.fours.healthRegenerated +
244
110
  this.deathmatch.healthRegenerated;
245
- /**
246
- * Golden Apples Eatan
247
- * @type {number}
248
- */
249
111
  this.goldenApplesEatan =
250
112
  this.solo.goldenApplesEatan +
251
113
  this.doubles.goldenApplesEatan +
@@ -253,401 +115,186 @@ class DuelsUHC {
253
115
  this.deathmatch.goldenApplesEatan;
254
116
  }
255
117
  }
118
+
256
119
  class DuelsSkyWars {
257
- /**
258
- * @param {object} data Duels data
259
- */
260
- constructor(data) {
261
- /**
262
- * Title
263
- * @type {string}
264
- */
120
+ title: string;
121
+ winstreak: number;
122
+ bestWinstreak: number;
123
+ solo: DuelsGamemode;
124
+ doubles: DuelsGamemode;
125
+ kills: number;
126
+ deaths: number;
127
+ KDR: number;
128
+ wins: number;
129
+ losses: number;
130
+ WLR: number;
131
+ playedGames: number;
132
+ swings: number;
133
+ hits: number;
134
+ meleeAccuracy: number;
135
+ bowShots: number;
136
+ bowHits: number;
137
+ bowAccuracy: number;
138
+ blocksPlaced: number;
139
+ healthRegenerated: number;
140
+ goldenApplesEatan: number;
141
+ constructor(data: Record<string, any>) {
265
142
  this.title = getTitle(data, 'sw');
266
- /**
267
- * Winstreak
268
- * @type {number}
269
- */
270
143
  this.winstreak = data.current_sw_winstreak || 0;
271
- /**
272
- * Best Winstreak
273
- * @type {number}
274
- */
275
144
  this.bestWinstreak = data.best_sw_winstreak || 0;
276
- /**
277
- * Solo Game Mode Stats
278
- * @type {DuelsGamemode}
279
- */
280
145
  this.solo = new DuelsGamemode(data, 'sw_duel', this.title);
281
- /**
282
- * Doubles Game Mode Stats
283
- * @type {DuelsGamemode}
284
- */
285
146
  this.doubles = new DuelsGamemode(data, 'sw_doubles', this.title);
286
- /**
287
- * Kills
288
- * @type {number}
289
- */
290
147
  this.kills = this.solo.kills + this.doubles.kills;
291
- /**
292
- * Deaths
293
- * @type {number}
294
- */
295
148
  this.deaths = this.solo.deaths + this.doubles.deaths;
296
- /**
297
- * KDRatio
298
- * @type {number}
299
- */
300
- this.KDRatio = divide(this.kills, this.deaths);
301
- /**
302
- * Wins
303
- * @type {number}
304
- */
149
+ this.KDR = divide(this.kills, this.deaths);
305
150
  this.wins = this.solo.wins + this.doubles.wins;
306
- /**
307
- * Losses
308
- * @type {number}
309
- */
310
151
  this.losses = this.solo.losses + this.doubles.losses;
311
- /**
312
- * WLRatio
313
- * @type {number}
314
- */
315
- this.WLRatio = divide(this.wins, this.losses);
316
- /**
317
- * Played Games
318
- * @type {number}
319
- */
152
+ this.WLR = divide(this.wins, this.losses);
320
153
  this.playedGames = this.solo.playedGames + this.doubles.playedGames;
321
- /**
322
- * Swings
323
- * @type {number}
324
- */
325
154
  this.swings = this.solo.swings + this.doubles.swings;
326
- /**
327
- * Hits
328
- * @type {number}
329
- */
330
155
  this.hits = this.solo.hits + this.doubles.hits;
331
- /**
332
- * Melee Accuracy
333
- * @type {number}
334
- */
335
156
  this.meleeAccuracy = divide(this.hits, this.swings);
336
- /**
337
- * Bow Shots
338
- * @type {number}
339
- */
340
157
  this.bowShots = this.solo.bowShots + this.doubles.bowShots;
341
- /**
342
- * Bow Hits
343
- * @type {number}
344
- */
345
158
  this.bowHits = this.solo.bowHits + this.doubles.bowHits;
346
- /**
347
- * Bow Accuracy
348
- * @type {number}
349
- */
350
159
  this.bowAccuracy = divide(this.bowHits, this.bowShots);
351
- /**
352
- * Blocks Placed
353
- * @type {number}
354
- */
355
160
  this.blocksPlaced = this.solo.blocksPlaced + this.doubles.blocksPlaced;
356
- /**
357
- * Health Regenerated
358
- * @type {number}
359
- */
360
161
  this.healthRegenerated = this.solo.healthRegenerated + this.doubles.healthRegenerated;
361
- /**
362
- * Golden Apples Eatan
363
- * @type {number}
364
- */
365
162
  this.goldenApplesEatan = this.solo.goldenApplesEatan + this.doubles.goldenApplesEatan;
366
163
  }
367
164
  }
165
+
368
166
  class DuelsMegaWalls {
369
- /**
370
- * @param {object} data Duels data
371
- */
372
- constructor(data) {
373
- /**
374
- * Title
375
- * @type {string}
376
- */
167
+ title: string;
168
+ winstreak: number;
169
+ bestWinstreak: number;
170
+ solo: DuelsGamemode;
171
+ doubles: DuelsGamemode;
172
+ kills: number;
173
+ deaths: number;
174
+ KDR: number;
175
+ wins: number;
176
+ losses: number;
177
+ WLR: number;
178
+ playedGames: number;
179
+ swings: number;
180
+ hits: number;
181
+ meleeAccuracy: number;
182
+ bowShots: number;
183
+ bowHits: number;
184
+ bowAccuracy: number;
185
+ blocksPlaced: number;
186
+ healthRegenerated: number;
187
+ goldenApplesEatan: number;
188
+ constructor(data: Record<string, any>) {
377
189
  this.title = getTitle(data, 'mega_walls');
378
- /**
379
- * Winstreak
380
- * @type {number}
381
- */
382
190
  this.winstreak = data.current_mega_walls_winstreak || 0;
383
- /**
384
- * Best Winstreak
385
- * @type {number}
386
- */
387
191
  this.bestWinstreak = data.best_mega_walls_winstreak || 0;
388
- /**
389
- * Solo Game Mode Stats
390
- * @type {DuelsGamemode}
391
- */
392
192
  this.solo = new DuelsGamemode(data, 'mw_duel', this.title);
393
- /**
394
- * Doubles Game Mode Stats
395
- * @type {DuelsGamemode}
396
- */
397
193
  this.doubles = new DuelsGamemode(data, 'mw_doubles', this.title);
398
- /**
399
- * Kills
400
- * @type {number}
401
- */
402
194
  this.kills = this.solo.kills + this.doubles.kills;
403
- /**
404
- * Deaths
405
- * @type {number}
406
- */
407
195
  this.deaths = this.solo.deaths + this.doubles.deaths;
408
- /**
409
- * KDRatio
410
- * @type {number}
411
- */
412
- this.KDRatio = divide(this.kills, this.deaths);
413
- /**
414
- * Wins
415
- * @type {number}
416
- */
196
+ this.KDR = divide(this.kills, this.deaths);
417
197
  this.wins = this.solo.wins + this.doubles.wins;
418
- /**
419
- * Losses
420
- * @type {number}
421
- */
422
198
  this.losses = this.solo.losses + this.doubles.losses;
423
- /**
424
- * WLRatio
425
- * @type {number}
426
- */
427
- this.WLRatio = divide(this.wins, this.losses);
428
- /**
429
- * Played Games
430
- * @type {number}
431
- */
199
+ this.WLR = divide(this.wins, this.losses);
432
200
  this.playedGames = this.solo.playedGames + this.doubles.playedGames;
433
- /**
434
- * Swings
435
- * @type {number}
436
- */
437
201
  this.swings = this.solo.swings + this.doubles.swings;
438
- /**
439
- * Hits
440
- * @type {number}
441
- */
442
202
  this.hits = this.solo.hits + this.doubles.hits;
443
- /**
444
- * Melee Accuracy
445
- * @type {number}
446
- */
447
203
  this.meleeAccuracy = divide(this.hits, this.swings);
448
- /**
449
- * Bow Shots
450
- * @type {number}
451
- */
452
204
  this.bowShots = this.solo.bowShots + this.doubles.bowShots;
453
- /**
454
- * Bow Hits
455
- * @type {number}
456
- */
457
205
  this.bowHits = this.solo.bowHits + this.doubles.bowHits;
458
- /**
459
- * Bow Accuracy
460
- * @type {number}
461
- */
462
206
  this.bowAccuracy = divide(this.bowHits, this.bowShots);
463
- /**
464
- * Blocks Placed
465
- * @type {number}
466
- */
467
207
  this.blocksPlaced = this.solo.blocksPlaced + this.doubles.blocksPlaced;
468
- /**
469
- * Health Regenerated
470
- * @type {number}
471
- */
472
208
  this.healthRegenerated = this.solo.healthRegenerated + this.doubles.healthRegenerated;
473
- /**
474
- * Golden Apples Eatan
475
- * @type {number}
476
- */
477
209
  this.goldenApplesEatan = this.solo.goldenApplesEatan + this.doubles.goldenApplesEatan;
478
210
  }
479
211
  }
212
+
480
213
  class DuelsOP {
481
- /**
482
- * @param {object} data Duels data
483
- */
484
- constructor(data) {
485
- /**
486
- * Title
487
- * @type {string}
488
- */
214
+ title: string;
215
+ winstreak: number;
216
+ bestWinstreak: number;
217
+ solo: DuelsGamemode;
218
+ doubles: DuelsGamemode;
219
+ kills: number;
220
+ deaths: number;
221
+ KDR: number;
222
+ wins: number;
223
+ losses: number;
224
+ WLR: number;
225
+ playedGames: number;
226
+ swings: number;
227
+ hits: number;
228
+ meleeAccuracy: number;
229
+ bowShots: number;
230
+ bowHits: number;
231
+ bowAccuracy: number;
232
+ blocksPlaced: number;
233
+ healthRegenerated: number;
234
+ goldenApplesEatan: number;
235
+ constructor(data: Record<string, any>) {
489
236
  this.title = getTitle(data, 'op');
490
- /**
491
- * Winstreak
492
- * @type {number}
493
- */
494
237
  this.winstreak = data.current_op_winstreak || 0;
495
- /**
496
- * Best Winstreak
497
- * @type {number}
498
- */
499
238
  this.bestWinstreak = data.best_op_winstreak || 0;
500
- /**
501
- * Solo Game Mode Stats
502
- * @type {DuelsGamemode}
503
- */
504
239
  this.solo = new DuelsGamemode(data, 'op_duel', this.title);
505
- /**
506
- * Doubles Game Mode Stats
507
- * @type {DuelsGamemode}
508
- */
509
240
  this.doubles = new DuelsGamemode(data, 'op_doubles', this.title);
510
- /**
511
- * Kills
512
- * @type {number}
513
- */
514
241
  this.kills = this.solo.kills + this.doubles.kills;
515
- /**
516
- * Deaths
517
- * @type {number}
518
- */
519
242
  this.deaths = this.solo.deaths + this.doubles.deaths;
520
- /**
521
- * KDRatio
522
- * @type {number}
523
- */
524
- this.KDRatio = divide(this.kills, this.deaths);
525
- /**
526
- * Wins
527
- * @type {number}
528
- */
243
+ this.KDR = divide(this.kills, this.deaths);
529
244
  this.wins = this.solo.wins + this.doubles.wins;
530
- /**
531
- * Losses
532
- * @type {number}
533
- */
534
245
  this.losses = this.solo.losses + this.doubles.losses;
535
- /**
536
- * WLRatio
537
- * @type {number}
538
- */
539
- this.WLRatio = divide(this.wins, this.losses);
540
- /**
541
- * Played Games
542
- * @type {number}
543
- */
246
+ this.WLR = divide(this.wins, this.losses);
544
247
  this.playedGames = this.solo.playedGames + this.doubles.playedGames;
545
- /**
546
- * Swings
547
- * @type {number}
548
- */
549
248
  this.swings = this.solo.swings + this.doubles.swings;
550
- /**
551
- * Hits
552
- * @type {number}
553
- */
554
249
  this.hits = this.solo.hits + this.doubles.hits;
555
- /**
556
- * Melee Accuracy
557
- * @type {number}
558
- */
559
250
  this.meleeAccuracy = divide(this.hits, this.swings);
560
- /**
561
- * Bow Shots
562
- * @type {number}
563
- */
564
251
  this.bowShots = this.solo.bowShots + this.doubles.bowShots;
565
- /**
566
- * Bow Hits
567
- * @type {number}
568
- */
569
252
  this.bowHits = this.solo.bowHits + this.doubles.bowHits;
570
- /**
571
- * Bow Accuracy
572
- * @type {number}
573
- */
574
253
  this.bowAccuracy = divide(this.bowHits, this.bowShots);
575
- /**
576
- * Blocks Placed
577
- * @type {number}
578
- */
579
254
  this.blocksPlaced = this.solo.blocksPlaced + this.doubles.blocksPlaced;
580
- /**
581
- * Health Regenerated
582
- * @type {number}
583
- */
584
255
  this.healthRegenerated = this.solo.healthRegenerated + this.doubles.healthRegenerated;
585
- /**
586
- * Golden Apples Eatan
587
- * @type {number}
588
- */
589
256
  this.goldenApplesEatan = this.solo.goldenApplesEatan + this.doubles.goldenApplesEatan;
590
257
  }
591
258
  }
259
+
592
260
  class DuelsBridge {
593
- /**
594
- * @param {object} data Duels data
595
- */
596
- constructor(data) {
597
- /**
598
- * Title
599
- * @type {string}
600
- */
261
+ title: string;
262
+ winstreak: number;
263
+ bestWinstreak: number;
264
+ solo: DuelsGamemode;
265
+ doubles: DuelsGamemode;
266
+ threes: DuelsGamemode;
267
+ fours: DuelsGamemode;
268
+ '2v2v2v2': DuelsGamemode;
269
+ '3v3v3v3': DuelsGamemode;
270
+ ctf: DuelsGamemode;
271
+ kills: number;
272
+ deaths: number;
273
+ KDR: number;
274
+ wins: number;
275
+ losses: number;
276
+ WLR: number;
277
+ playedGames: number;
278
+ swings: number;
279
+ hits: number;
280
+ meleeAccuracy: number;
281
+ bowShots: number;
282
+ bowHits: number;
283
+ bowAccuracy: number;
284
+ blocksPlaced: number;
285
+ healthRegenerated: number;
286
+ goldenApplesEatan: number;
287
+ constructor(data: Record<string, any>) {
601
288
  this.title = getTitle(data, 'bridge');
602
- /**
603
- * Winstreak
604
- * @type {number}
605
- */
606
289
  this.winstreak = data.current_bridge_winstreak || 0;
607
- /**
608
- * Best Winstreak
609
- * @type {number}
610
- */
611
290
  this.bestWinstreak = data.best_bridge_winstreak || 0;
612
- /**
613
- * Solo Game Mode Stats
614
- * @type {DuelsGamemode}
615
- */
616
291
  this.solo = new DuelsGamemode(data, 'bridge_duel', this.title);
617
- /**
618
- * Doubles Game Mode Stats
619
- * @type {DuelsGamemode}
620
- */
621
292
  this.doubles = new DuelsGamemode(data, 'bridge_doubles', this.title);
622
- /**
623
- * Threes Game Mode Stats
624
- * @type {DuelsGamemode}
625
- */
626
293
  this.threes = new DuelsGamemode(data, 'bridge_threes', this.title);
627
- /**
628
- * Fours Game Mode Stats
629
- * @type {DuelsGamemode}
630
- */
631
294
  this.fours = new DuelsGamemode(data, 'bridge_fours', this.title);
632
- /**
633
- * 2v2v2v2 Game Mode Stats
634
- * @type {DuelsGamemode}
635
- */
636
295
  this['2v2v2v2'] = new DuelsGamemode(data, '2v2v2v2', this.title);
637
- /**
638
- * 3v3v3v3 Game Mode Stats
639
- * @type {DuelsGamemode}
640
- */
641
296
  this['3v3v3v3'] = new DuelsGamemode(data, '3v3v3v3', this.title);
642
- /**
643
- * Capture The Flag Game Mode Stats
644
- * @type {DuelsGamemode}
645
- */
646
297
  this.ctf = new DuelsGamemode(data, 'capture_threes', this.title);
647
- /**
648
- * Kills
649
- * @type {number}
650
- */
651
298
  this.kills =
652
299
  this.solo.kills +
653
300
  this.doubles.kills +
@@ -656,10 +303,6 @@ class DuelsBridge {
656
303
  this['2v2v2v2'].kills +
657
304
  this['3v3v3v3'].kills +
658
305
  this.ctf.kills;
659
- /**
660
- * Deaths
661
- * @type {number}
662
- */
663
306
  this.deaths =
664
307
  this.solo.deaths +
665
308
  this.doubles.deaths +
@@ -668,15 +311,7 @@ class DuelsBridge {
668
311
  this['2v2v2v2'].deaths +
669
312
  this['3v3v3v3'].deaths +
670
313
  this.ctf.deaths;
671
- /**
672
- * KDRatio
673
- * @type {number}
674
- */
675
- this.KDRatio = divide(this.kills, this.deaths);
676
- /**
677
- * Wins
678
- * @type {number}
679
- */
314
+ this.KDR = divide(this.kills, this.deaths);
680
315
  this.wins =
681
316
  this.solo.wins +
682
317
  this.doubles.wins +
@@ -685,10 +320,6 @@ class DuelsBridge {
685
320
  this['2v2v2v2'].wins +
686
321
  this['3v3v3v3'].wins +
687
322
  this.ctf.wins;
688
- /**
689
- * Losses
690
- * @type {number}
691
- */
692
323
  this.losses =
693
324
  this.solo.losses +
694
325
  this.doubles.losses +
@@ -697,15 +328,7 @@ class DuelsBridge {
697
328
  this['2v2v2v2'].losses +
698
329
  this['3v3v3v3'].losses +
699
330
  this.ctf.losses;
700
- /**
701
- * WLRatio
702
- * @type {number}
703
- */
704
- this.WLRatio = divide(this.wins, this.losses);
705
- /**
706
- * Played Games
707
- * @type {number}
708
- */
331
+ this.WLR = divide(this.wins, this.losses);
709
332
  this.playedGames =
710
333
  this.solo.playedGames +
711
334
  this.doubles.playedGames +
@@ -714,10 +337,6 @@ class DuelsBridge {
714
337
  this['2v2v2v2'].playedGames +
715
338
  this['3v3v3v3'].playedGames +
716
339
  this.ctf.playedGames;
717
- /**
718
- * Swings
719
- * @type {number}
720
- */
721
340
  this.swings =
722
341
  this.solo.swings +
723
342
  this.doubles.swings +
@@ -726,10 +345,6 @@ class DuelsBridge {
726
345
  this['2v2v2v2'].swings +
727
346
  this['3v3v3v3'].swings +
728
347
  this.ctf.swings;
729
- /**
730
- * Hits
731
- * @type {number}
732
- */
733
348
  this.hits =
734
349
  this.solo.hits +
735
350
  this.doubles.hits +
@@ -738,15 +353,7 @@ class DuelsBridge {
738
353
  this['2v2v2v2'].hits +
739
354
  this['3v3v3v3'].hits +
740
355
  this.ctf.hits;
741
- /**
742
- * Melee Accuracy
743
- * @type {number}
744
- */
745
356
  this.meleeAccuracy = divide(this.hits, this.swings);
746
- /**
747
- * Bow Shots
748
- * @type {number}
749
- */
750
357
  this.bowShots =
751
358
  this.solo.bowShots +
752
359
  this.doubles.bowShots +
@@ -755,10 +362,6 @@ class DuelsBridge {
755
362
  this['2v2v2v2'].bowShots +
756
363
  this['3v3v3v3'].bowShots +
757
364
  this.ctf.bowShots;
758
- /**
759
- * Bow Hits
760
- * @type {number}
761
- */
762
365
  this.bowHits =
763
366
  this.solo.bowHits +
764
367
  this.doubles.bowHits +
@@ -767,15 +370,7 @@ class DuelsBridge {
767
370
  this['2v2v2v2'].bowHits +
768
371
  this['3v3v3v3'].bowHits +
769
372
  this.ctf.bowHits;
770
- /**
771
- * Bow Accuracy
772
- * @type {number}
773
- */
774
373
  this.bowAccuracy = divide(this.bowHits, this.bowShots);
775
- /**
776
- * Blocks Placed
777
- * @type {number}
778
- */
779
374
  this.blocksPlaced =
780
375
  this.solo.blocksPlaced +
781
376
  this.doubles.blocksPlaced +
@@ -784,10 +379,6 @@ class DuelsBridge {
784
379
  this['2v2v2v2'].blocksPlaced +
785
380
  this['3v3v3v3'].blocksPlaced +
786
381
  this.ctf.blocksPlaced;
787
- /**
788
- * Health Regenerated
789
- * @type {number}
790
- */
791
382
  this.healthRegenerated =
792
383
  this.solo.healthRegenerated +
793
384
  this.doubles.healthRegenerated +
@@ -796,10 +387,6 @@ class DuelsBridge {
796
387
  this['2v2v2v2'].healthRegenerated +
797
388
  this['3v3v3v3'].healthRegenerated +
798
389
  this.ctf.healthRegenerated;
799
- /**
800
- * Golden Apples Eatan
801
- * @type {number}
802
- */
803
390
  this.goldenApplesEatan =
804
391
  this.solo.goldenApplesEatan +
805
392
  this.doubles.goldenApplesEatan +
@@ -808,206 +395,82 @@ class DuelsBridge {
808
395
  this['2v2v2v2'].goldenApplesEatan +
809
396
  this['3v3v3v3'].goldenApplesEatan +
810
397
  this.ctf.goldenApplesEatan;
811
- /**
812
- * Goals
813
- * @type {number}
814
- */
815
- this.goals =
816
- this.solo.goals +
817
- this.doubles.goals +
818
- this.threes.goals +
819
- this.fours.goals +
820
- this['2v2v2v2'].goals +
821
- this['3v3v3v3'].goals +
822
- this.ctf.goals;
823
398
  }
824
399
  }
825
400
 
826
- /**
827
- * Duels class
828
- */
829
401
  class Duels {
830
- /**
831
- * @param {object} data Duels data
832
- */
833
- constructor(data) {
834
- /**
835
- * Tokens
836
- * @type {number}
837
- */
402
+ tokens: number;
403
+ title: string | null;
404
+ kills: number;
405
+ deaths: number;
406
+ KDR: number;
407
+ wins: number;
408
+ losses: number;
409
+ WLR: number;
410
+ playedGames: number;
411
+ winstreak: number;
412
+ bestWinstreak: number;
413
+ ping: number;
414
+ blocksPlaced: number;
415
+ swings: number;
416
+ hits: number;
417
+ meleeAccuracy: number;
418
+ bowShots: number;
419
+ bowHits: number;
420
+ bowAccuracy: number;
421
+ healthRegenerated: number;
422
+ goldenApplesEatan: number;
423
+ uhc: DuelsUHC;
424
+ skywars: DuelsSkyWars;
425
+ megawalls: DuelsMegaWalls;
426
+ blitz: DuelsGamemode;
427
+ op: DuelsOP;
428
+ classic: DuelsGamemode;
429
+ bow: DuelsGamemode;
430
+ noDebuff: DuelsGamemode;
431
+ combo: DuelsGamemode;
432
+ bowSpleef: DuelsGamemode;
433
+ sumo: DuelsGamemode;
434
+ bridge: DuelsBridge;
435
+ parkour: DuelsGamemode;
436
+ arena: DuelsGamemode;
437
+ constructor(data: Record<string, any>) {
838
438
  this.tokens = data.coins || 0;
839
- /**
840
- * All modes Title
841
- * @type {string|null}
842
- */
843
- this.title = getTitle(data);
844
- /**
845
- * Kills
846
- * @type {number}
847
- */
439
+ this.title = getTitle(data, 'all_modes');
848
440
  this.kills = data.kills || 0;
849
- /**
850
- * Deaths
851
- * @type {number}
852
- */
853
441
  this.deaths = data.deaths || 0;
854
- /**
855
- * Kill Death ratio
856
- * @type {number}
857
- */
858
- this.KDRatio = divide(this.kills, this.deaths);
859
- /**
860
- * Wins
861
- * @type {number}
862
- */
442
+ this.KDR = divide(this.kills, this.deaths);
863
443
  this.wins = data.wins || 0;
864
- /**
865
- * Losses
866
- * @type {number}
867
- */
868
444
  this.losses = data.losses || 0;
869
- /**
870
- * Win Loss ratio
871
- * @type {number}
872
- */
873
- this.WLRatio = divide(this.wins, this.losses);
874
- /**
875
- * Played games
876
- * @type {number}
877
- */
445
+ this.WLR = divide(this.wins, this.losses);
878
446
  this.playedGames = data.games_played_duels || 0;
879
- /**
880
- * Current winstreak
881
- * @type {number}
882
- */
883
447
  this.winstreak = data.current_winstreak || 0;
884
- /**
885
- * Best overall winstreak
886
- * @type {number}
887
- */
888
448
  this.bestWinstreak = data.best_overall_winstreak || 0;
889
- /**
890
- * Ping Range Preference
891
- * @type {number}
892
- */
893
449
  this.ping = data.pingPreference || 0;
894
- /**
895
- * Blocks Placed
896
- * @type {number}
897
- */
898
450
  this.blocksPlaced = data.blocks_placed || 0;
899
- /**
900
- * Swings
901
- * @type {number}
902
- */
903
451
  this.swings = data.melee_swings || 0;
904
- /**
905
- * Hits
906
- * @type {number}
907
- */
908
452
  this.hits = data.melee_hits || 0;
909
- /**
910
- * Melee Accuracy
911
- * @type {number}
912
- */
913
453
  this.meleeAccuracy = divide(this.hits, this.swings);
914
- /**
915
- * Bow Shots
916
- * @type {number}
917
- */
918
454
  this.bowShots = data.bow_shots || 0;
919
- /**
920
- * Bow Hits
921
- * @type {number}
922
- */
923
455
  this.bowHits = data.bow_hits || 0;
924
- /**
925
- * Bow Accuracy
926
- * @type {number}
927
- */
928
456
  this.bowAccuracy = divide(this.bowHits, this.bowShots);
929
- /**
930
- * Health Regenerated
931
- * @type {number}
932
- */
933
457
  this.healthRegenerated = data.health_regenerated || 0;
934
- /**
935
- * Golden Apples Eaten
936
- * @type {number}
937
- */
938
458
  this.goldenApplesEatan = data.golden_apples_eaten || 0;
939
- /**
940
- * UHC duels stats
941
- * @type {DuelsUHC}
942
- */
943
459
  this.uhc = new DuelsUHC(data);
944
-
945
- /**
946
- * SkyWars duels stats
947
- * @type {DuelsSkyWars}
948
- */
949
460
  this.skywars = new DuelsSkyWars(data);
950
- /**
951
- * MegaWalls duels stats
952
- * @type {DuelsMegaWalls}
953
- */
954
461
  this.megawalls = new DuelsMegaWalls(data);
955
- /**
956
- * Blitz duel stats
957
- * @type {DuelsGamemode}
958
- */
959
462
  this.blitz = new DuelsGamemode(data, 'blitz_duel', getTitle(data, 'blitz'));
960
- /**
961
- * OP duels stats
962
- * @type {DuelsOP}
963
- */
964
463
  this.op = new DuelsOP(data);
965
- /**
966
- * Classic duels stats
967
- * @type {DuelsGamemode}
968
- */
969
464
  this.classic = new DuelsGamemode(data, 'classic_duel', getTitle(data, 'classic'));
970
- /**
971
- * Bow duels stats
972
- * @type {DuelsGamemode}
973
- */
974
465
  this.bow = new DuelsGamemode(data, 'bow_duel', getTitle(data, 'bow'));
975
- /**
976
- * No Debuff duels stats
977
- * @type {DuelsGamemode}
978
- */
979
466
  this.noDebuff = new DuelsGamemode(data, 'potion_duel', getTitle(data, 'no_debuff'));
980
- /**
981
- * Combo duels stats
982
- * @type {DuelsGamemode}
983
- */
984
467
  this.combo = new DuelsGamemode(data, 'combo_duel', getTitle(data, 'combo'));
985
- /**
986
- * Bow Spleef duels stats
987
- * @type {DuelsGamemode}
988
- */
989
468
  this.bowSpleef = new DuelsGamemode(data, 'bowspleef_duel', getTitle(data, 'tnt_games'));
990
- /**
991
- * Sumo duels stats
992
- * @type {DuelsGamemode}
993
- */
994
469
  this.sumo = new DuelsGamemode(data, 'sumo_duel', getTitle(data, 'sumo'));
995
- /**
996
- * Bridge duels stats
997
- * @type {DuelsBridge}
998
- */
999
470
  this.bridge = new DuelsBridge(data);
1000
- /**
1001
- * Parkour duels stats
1002
- * @type {DuelsGamemode}
1003
- */
1004
471
  this.parkour = new DuelsGamemode(data, 'parkour_eight', getTitle(data, 'parkour'));
1005
- /**
1006
- * Arena duels stats
1007
- * @type {DuelsGamemode}
1008
- */
1009
472
  this.arena = new DuelsGamemode(data, 'duel_arena');
1010
473
  }
1011
474
  }
1012
475
 
1013
- module.exports = Duels;
476
+ export default Duels;