@fnlb-project/fnbr 4.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 (363) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +68 -0
  3. package/dist/enums/Enums.d.ts +251 -0
  4. package/dist/enums/Enums.js +202 -0
  5. package/dist/enums/Enums.js.map +1 -0
  6. package/dist/index.d.ts +92 -0
  7. package/dist/index.js +194 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/resources/AuthClients.d.ts +39 -0
  10. package/dist/resources/AuthClients.js +41 -0
  11. package/dist/resources/AuthClients.js.map +1 -0
  12. package/dist/resources/BaseItemRating.json +5203 -0
  13. package/dist/resources/Endpoints.d.ts +58 -0
  14. package/dist/resources/Endpoints.js +71 -0
  15. package/dist/resources/Endpoints.js.map +1 -0
  16. package/dist/resources/HomebaseRatingMapping.json +255 -0
  17. package/dist/resources/PowerLevelCurves.d.ts +111 -0
  18. package/dist/resources/PowerLevelCurves.js +21 -0
  19. package/dist/resources/PowerLevelCurves.js.map +1 -0
  20. package/dist/resources/SurvivorItemRating.json +9343 -0
  21. package/dist/resources/constants.d.ts +2 -0
  22. package/dist/resources/constants.js +11 -0
  23. package/dist/resources/constants.js.map +1 -0
  24. package/dist/resources/defaultPartyMemberMeta.json +28 -0
  25. package/dist/resources/defaultPartyMeta.json +38 -0
  26. package/dist/resources/enums.d.ts +12 -0
  27. package/dist/resources/enums.js +18 -0
  28. package/dist/resources/enums.js.map +1 -0
  29. package/dist/resources/httpResponses.d.ts +773 -0
  30. package/dist/resources/httpResponses.js +3 -0
  31. package/dist/resources/httpResponses.js.map +1 -0
  32. package/dist/resources/structs.d.ts +1310 -0
  33. package/dist/resources/structs.js +3 -0
  34. package/dist/resources/structs.js.map +1 -0
  35. package/dist/src/Base.d.ts +15 -0
  36. package/dist/src/Base.js +15 -0
  37. package/dist/src/Base.js.map +1 -0
  38. package/dist/src/Client.d.ts +341 -0
  39. package/dist/src/Client.js +1043 -0
  40. package/dist/src/Client.js.map +1 -0
  41. package/dist/src/auth/Auth.d.ts +66 -0
  42. package/dist/src/auth/Auth.js +249 -0
  43. package/dist/src/auth/Auth.js.map +1 -0
  44. package/dist/src/auth/AuthSession.d.ts +41 -0
  45. package/dist/src/auth/AuthSession.js +25 -0
  46. package/dist/src/auth/AuthSession.js.map +1 -0
  47. package/dist/src/auth/EOSAuthSession.d.ts +19 -0
  48. package/dist/src/auth/EOSAuthSession.js +80 -0
  49. package/dist/src/auth/EOSAuthSession.js.map +1 -0
  50. package/dist/src/auth/FortniteAuthSession.d.ts +53 -0
  51. package/dist/src/auth/FortniteAuthSession.js +107 -0
  52. package/dist/src/auth/FortniteAuthSession.js.map +1 -0
  53. package/dist/src/auth/FortniteClientCredentialsAuthSession.d.ts +18 -0
  54. package/dist/src/auth/FortniteClientCredentialsAuthSession.js +88 -0
  55. package/dist/src/auth/FortniteClientCredentialsAuthSession.js.map +1 -0
  56. package/dist/src/auth/LauncherAuthSession.d.ts +23 -0
  57. package/dist/src/auth/LauncherAuthSession.js +120 -0
  58. package/dist/src/auth/LauncherAuthSession.js.map +1 -0
  59. package/dist/src/exceptions/AuthenticationMissingError.d.ts +15 -0
  60. package/dist/src/exceptions/AuthenticationMissingError.js +18 -0
  61. package/dist/src/exceptions/AuthenticationMissingError.js.map +1 -0
  62. package/dist/src/exceptions/CreativeIslandNotFoundError.d.ts +14 -0
  63. package/dist/src/exceptions/CreativeIslandNotFoundError.js +18 -0
  64. package/dist/src/exceptions/CreativeIslandNotFoundError.js.map +1 -0
  65. package/dist/src/exceptions/CreatorCodeNotFoundError.d.ts +14 -0
  66. package/dist/src/exceptions/CreatorCodeNotFoundError.js +18 -0
  67. package/dist/src/exceptions/CreatorCodeNotFoundError.js.map +1 -0
  68. package/dist/src/exceptions/DuplicateFriendshipError.d.ts +14 -0
  69. package/dist/src/exceptions/DuplicateFriendshipError.js +18 -0
  70. package/dist/src/exceptions/DuplicateFriendshipError.js.map +1 -0
  71. package/dist/src/exceptions/EpicgamesAPIError.d.ts +42 -0
  72. package/dist/src/exceptions/EpicgamesAPIError.js +27 -0
  73. package/dist/src/exceptions/EpicgamesAPIError.js.map +1 -0
  74. package/dist/src/exceptions/EventTimeoutError.d.ts +19 -0
  75. package/dist/src/exceptions/EventTimeoutError.js +20 -0
  76. package/dist/src/exceptions/EventTimeoutError.js.map +1 -0
  77. package/dist/src/exceptions/FriendNotFoundError.d.ts +14 -0
  78. package/dist/src/exceptions/FriendNotFoundError.js +18 -0
  79. package/dist/src/exceptions/FriendNotFoundError.js.map +1 -0
  80. package/dist/src/exceptions/FriendshipRequestAlreadySentError.d.ts +14 -0
  81. package/dist/src/exceptions/FriendshipRequestAlreadySentError.js +18 -0
  82. package/dist/src/exceptions/FriendshipRequestAlreadySentError.js.map +1 -0
  83. package/dist/src/exceptions/InviteeFriendshipRequestLimitExceededError.d.ts +14 -0
  84. package/dist/src/exceptions/InviteeFriendshipRequestLimitExceededError.js +18 -0
  85. package/dist/src/exceptions/InviteeFriendshipRequestLimitExceededError.js.map +1 -0
  86. package/dist/src/exceptions/InviteeFriendshipSettingsError.d.ts +14 -0
  87. package/dist/src/exceptions/InviteeFriendshipSettingsError.js +18 -0
  88. package/dist/src/exceptions/InviteeFriendshipSettingsError.js.map +1 -0
  89. package/dist/src/exceptions/InviteeFriendshipsLimitExceededError.d.ts +14 -0
  90. package/dist/src/exceptions/InviteeFriendshipsLimitExceededError.js +18 -0
  91. package/dist/src/exceptions/InviteeFriendshipsLimitExceededError.js.map +1 -0
  92. package/dist/src/exceptions/InviterFriendshipsLimitExceededError.d.ts +14 -0
  93. package/dist/src/exceptions/InviterFriendshipsLimitExceededError.js +18 -0
  94. package/dist/src/exceptions/InviterFriendshipsLimitExceededError.js.map +1 -0
  95. package/dist/src/exceptions/MatchNotFoundError.d.ts +14 -0
  96. package/dist/src/exceptions/MatchNotFoundError.js +18 -0
  97. package/dist/src/exceptions/MatchNotFoundError.js.map +1 -0
  98. package/dist/src/exceptions/OfferNotFoundError.d.ts +14 -0
  99. package/dist/src/exceptions/OfferNotFoundError.js +18 -0
  100. package/dist/src/exceptions/OfferNotFoundError.js.map +1 -0
  101. package/dist/src/exceptions/PartyAlreadyJoinedError.d.ts +7 -0
  102. package/dist/src/exceptions/PartyAlreadyJoinedError.js +14 -0
  103. package/dist/src/exceptions/PartyAlreadyJoinedError.js.map +1 -0
  104. package/dist/src/exceptions/PartyInvitationExpiredError.d.ts +7 -0
  105. package/dist/src/exceptions/PartyInvitationExpiredError.js +14 -0
  106. package/dist/src/exceptions/PartyInvitationExpiredError.js.map +1 -0
  107. package/dist/src/exceptions/PartyMaxSizeReachedError.d.ts +7 -0
  108. package/dist/src/exceptions/PartyMaxSizeReachedError.js +14 -0
  109. package/dist/src/exceptions/PartyMaxSizeReachedError.js.map +1 -0
  110. package/dist/src/exceptions/PartyMemberNotFoundError.d.ts +14 -0
  111. package/dist/src/exceptions/PartyMemberNotFoundError.js +18 -0
  112. package/dist/src/exceptions/PartyMemberNotFoundError.js.map +1 -0
  113. package/dist/src/exceptions/PartyNotFoundError.d.ts +7 -0
  114. package/dist/src/exceptions/PartyNotFoundError.js +14 -0
  115. package/dist/src/exceptions/PartyNotFoundError.js.map +1 -0
  116. package/dist/src/exceptions/PartyPermissionError.d.ts +7 -0
  117. package/dist/src/exceptions/PartyPermissionError.js +14 -0
  118. package/dist/src/exceptions/PartyPermissionError.js.map +1 -0
  119. package/dist/src/exceptions/SendMessageError.d.ts +27 -0
  120. package/dist/src/exceptions/SendMessageError.js +21 -0
  121. package/dist/src/exceptions/SendMessageError.js.map +1 -0
  122. package/dist/src/exceptions/StatsPrivacyError.d.ts +14 -0
  123. package/dist/src/exceptions/StatsPrivacyError.js +18 -0
  124. package/dist/src/exceptions/StatsPrivacyError.js.map +1 -0
  125. package/dist/src/exceptions/StompConnectionError.d.ts +14 -0
  126. package/dist/src/exceptions/StompConnectionError.js +18 -0
  127. package/dist/src/exceptions/StompConnectionError.js.map +1 -0
  128. package/dist/src/exceptions/UserNotFoundError.d.ts +14 -0
  129. package/dist/src/exceptions/UserNotFoundError.js +18 -0
  130. package/dist/src/exceptions/UserNotFoundError.js.map +1 -0
  131. package/dist/src/exceptions/XMPPConnectionError.d.ts +19 -0
  132. package/dist/src/exceptions/XMPPConnectionError.js +19 -0
  133. package/dist/src/exceptions/XMPPConnectionError.js.map +1 -0
  134. package/dist/src/exceptions/XMPPConnectionTimeoutError.d.ts +14 -0
  135. package/dist/src/exceptions/XMPPConnectionTimeoutError.js +18 -0
  136. package/dist/src/exceptions/XMPPConnectionTimeoutError.js.map +1 -0
  137. package/dist/src/http/HTTP.d.ts +40 -0
  138. package/dist/src/http/HTTP.js +124 -0
  139. package/dist/src/http/HTTP.js.map +1 -0
  140. package/dist/src/managers/ChatManager.d.ts +27 -0
  141. package/dist/src/managers/ChatManager.js +71 -0
  142. package/dist/src/managers/ChatManager.js.map +1 -0
  143. package/dist/src/managers/FriendManager.d.ts +66 -0
  144. package/dist/src/managers/FriendManager.js +175 -0
  145. package/dist/src/managers/FriendManager.js.map +1 -0
  146. package/dist/src/managers/STWManager.d.ts +29 -0
  147. package/dist/src/managers/STWManager.js +80 -0
  148. package/dist/src/managers/STWManager.js.map +1 -0
  149. package/dist/src/managers/TournamentManager.d.ts +51 -0
  150. package/dist/src/managers/TournamentManager.js +182 -0
  151. package/dist/src/managers/TournamentManager.js.map +1 -0
  152. package/dist/src/managers/UserManager.d.ts +78 -0
  153. package/dist/src/managers/UserManager.js +216 -0
  154. package/dist/src/managers/UserManager.js.map +1 -0
  155. package/dist/src/stomp/EOSConnect.d.ts +43 -0
  156. package/dist/src/stomp/EOSConnect.js +175 -0
  157. package/dist/src/stomp/EOSConnect.js.map +1 -0
  158. package/dist/src/structures/Avatar.d.ts +27 -0
  159. package/dist/src/structures/Avatar.js +22 -0
  160. package/dist/src/structures/Avatar.js.map +1 -0
  161. package/dist/src/structures/BaseMessage.d.ts +34 -0
  162. package/dist/src/structures/BaseMessage.js +22 -0
  163. package/dist/src/structures/BaseMessage.js.map +1 -0
  164. package/dist/src/structures/CreatorCode.d.ts +31 -0
  165. package/dist/src/structures/CreatorCode.js +22 -0
  166. package/dist/src/structures/CreatorCode.js.map +1 -0
  167. package/dist/src/structures/EpicgamesServerStatus.d.ts +52 -0
  168. package/dist/src/structures/EpicgamesServerStatus.js +31 -0
  169. package/dist/src/structures/EpicgamesServerStatus.js.map +1 -0
  170. package/dist/src/structures/EpicgamesServerStatusComponent.d.ts +67 -0
  171. package/dist/src/structures/EpicgamesServerStatusComponent.js +37 -0
  172. package/dist/src/structures/EpicgamesServerStatusComponent.js.map +1 -0
  173. package/dist/src/structures/EpicgamesServerStatusIncident.d.ts +58 -0
  174. package/dist/src/structures/EpicgamesServerStatusIncident.js +36 -0
  175. package/dist/src/structures/EpicgamesServerStatusIncident.js.map +1 -0
  176. package/dist/src/structures/EpicgamesServerStatusScheduledMainteance.d.ts +21 -0
  177. package/dist/src/structures/EpicgamesServerStatusScheduledMainteance.js +20 -0
  178. package/dist/src/structures/EpicgamesServerStatusScheduledMainteance.js.map +1 -0
  179. package/dist/src/structures/EventTokens.d.ts +32 -0
  180. package/dist/src/structures/EventTokens.js +45 -0
  181. package/dist/src/structures/EventTokens.js.map +1 -0
  182. package/dist/src/structures/FortniteServerStatus.d.ts +46 -0
  183. package/dist/src/structures/FortniteServerStatus.js +26 -0
  184. package/dist/src/structures/FortniteServerStatus.js.map +1 -0
  185. package/dist/src/structures/GlobalProfile.d.ts +36 -0
  186. package/dist/src/structures/GlobalProfile.js +25 -0
  187. package/dist/src/structures/GlobalProfile.js.map +1 -0
  188. package/dist/src/structures/Image.d.ts +36 -0
  189. package/dist/src/structures/Image.js +38 -0
  190. package/dist/src/structures/Image.js.map +1 -0
  191. package/dist/src/structures/NewsMessage.d.ts +56 -0
  192. package/dist/src/structures/NewsMessage.js +45 -0
  193. package/dist/src/structures/NewsMessage.js.map +1 -0
  194. package/dist/src/structures/NewsMessageVideo.d.ts +47 -0
  195. package/dist/src/structures/NewsMessageVideo.js +32 -0
  196. package/dist/src/structures/NewsMessageVideo.js.map +1 -0
  197. package/dist/src/structures/RadioStation.d.ts +31 -0
  198. package/dist/src/structures/RadioStation.js +33 -0
  199. package/dist/src/structures/RadioStation.js.map +1 -0
  200. package/dist/src/structures/Stats.d.ts +45 -0
  201. package/dist/src/structures/Stats.js +109 -0
  202. package/dist/src/structures/Stats.js.map +1 -0
  203. package/dist/src/structures/Tournament.d.ts +86 -0
  204. package/dist/src/structures/Tournament.js +64 -0
  205. package/dist/src/structures/Tournament.js.map +1 -0
  206. package/dist/src/structures/TournamentWindow.d.ts +124 -0
  207. package/dist/src/structures/TournamentWindow.js +52 -0
  208. package/dist/src/structures/TournamentWindow.js.map +1 -0
  209. package/dist/src/structures/friend/BaseFriendMessage.d.ts +32 -0
  210. package/dist/src/structures/friend/BaseFriendMessage.js +28 -0
  211. package/dist/src/structures/friend/BaseFriendMessage.js.map +1 -0
  212. package/dist/src/structures/friend/BasePendingFriend.d.ts +22 -0
  213. package/dist/src/structures/friend/BasePendingFriend.js +22 -0
  214. package/dist/src/structures/friend/BasePendingFriend.js.map +1 -0
  215. package/dist/src/structures/friend/Friend.d.ts +106 -0
  216. package/dist/src/structures/friend/Friend.js +97 -0
  217. package/dist/src/structures/friend/Friend.js.map +1 -0
  218. package/dist/src/structures/friend/FriendPresence.d.ts +84 -0
  219. package/dist/src/structures/friend/FriendPresence.js +48 -0
  220. package/dist/src/structures/friend/FriendPresence.js.map +1 -0
  221. package/dist/src/structures/friend/IncomingPendingFriend.d.ts +27 -0
  222. package/dist/src/structures/friend/IncomingPendingFriend.js +36 -0
  223. package/dist/src/structures/friend/IncomingPendingFriend.js.map +1 -0
  224. package/dist/src/structures/friend/OutgoingPendingFriend.d.ts +17 -0
  225. package/dist/src/structures/friend/OutgoingPendingFriend.js +24 -0
  226. package/dist/src/structures/friend/OutgoingPendingFriend.js.map +1 -0
  227. package/dist/src/structures/friend/ReceivedFriendMessage.d.ts +27 -0
  228. package/dist/src/structures/friend/ReceivedFriendMessage.js +27 -0
  229. package/dist/src/structures/friend/ReceivedFriendMessage.js.map +1 -0
  230. package/dist/src/structures/friend/SentFriendMessage.d.ts +21 -0
  231. package/dist/src/structures/friend/SentFriendMessage.js +19 -0
  232. package/dist/src/structures/friend/SentFriendMessage.js.map +1 -0
  233. package/dist/src/structures/party/BasePartyInvitation.d.ts +48 -0
  234. package/dist/src/structures/party/BasePartyInvitation.js +33 -0
  235. package/dist/src/structures/party/BasePartyInvitation.js.map +1 -0
  236. package/dist/src/structures/party/BasePartyJoinRequest.d.ts +37 -0
  237. package/dist/src/structures/party/BasePartyJoinRequest.js +30 -0
  238. package/dist/src/structures/party/BasePartyJoinRequest.js.map +1 -0
  239. package/dist/src/structures/party/ClientParty.d.ts +162 -0
  240. package/dist/src/structures/party/ClientParty.js +412 -0
  241. package/dist/src/structures/party/ClientParty.js.map +1 -0
  242. package/dist/src/structures/party/ClientPartyMember.d.ts +144 -0
  243. package/dist/src/structures/party/ClientPartyMember.js +463 -0
  244. package/dist/src/structures/party/ClientPartyMember.js.map +1 -0
  245. package/dist/src/structures/party/ClientPartyMemberMeta.d.ts +18 -0
  246. package/dist/src/structures/party/ClientPartyMemberMeta.js +54 -0
  247. package/dist/src/structures/party/ClientPartyMemberMeta.js.map +1 -0
  248. package/dist/src/structures/party/ClientPartyMeta.d.ts +23 -0
  249. package/dist/src/structures/party/ClientPartyMeta.js +59 -0
  250. package/dist/src/structures/party/ClientPartyMeta.js.map +1 -0
  251. package/dist/src/structures/party/Party.d.ts +95 -0
  252. package/dist/src/structures/party/Party.js +200 -0
  253. package/dist/src/structures/party/Party.js.map +1 -0
  254. package/dist/src/structures/party/PartyChat.d.ts +73 -0
  255. package/dist/src/structures/party/PartyChat.js +76 -0
  256. package/dist/src/structures/party/PartyChat.js.map +1 -0
  257. package/dist/src/structures/party/PartyMember.d.ts +139 -0
  258. package/dist/src/structures/party/PartyMember.js +201 -0
  259. package/dist/src/structures/party/PartyMember.js.map +1 -0
  260. package/dist/src/structures/party/PartyMemberConfirmation.d.ts +43 -0
  261. package/dist/src/structures/party/PartyMemberConfirmation.js +53 -0
  262. package/dist/src/structures/party/PartyMemberConfirmation.js.map +1 -0
  263. package/dist/src/structures/party/PartyMemberMeta.d.ts +76 -0
  264. package/dist/src/structures/party/PartyMemberMeta.js +145 -0
  265. package/dist/src/structures/party/PartyMemberMeta.js.map +1 -0
  266. package/dist/src/structures/party/PartyMessage.d.ts +30 -0
  267. package/dist/src/structures/party/PartyMessage.js +28 -0
  268. package/dist/src/structures/party/PartyMessage.js.map +1 -0
  269. package/dist/src/structures/party/PartyMeta.d.ts +24 -0
  270. package/dist/src/structures/party/PartyMeta.js +43 -0
  271. package/dist/src/structures/party/PartyMeta.js.map +1 -0
  272. package/dist/src/structures/party/PresenceParty.d.ts +66 -0
  273. package/dist/src/structures/party/PresenceParty.js +49 -0
  274. package/dist/src/structures/party/PresenceParty.js.map +1 -0
  275. package/dist/src/structures/party/ReceivedPartyInvitation.d.ts +33 -0
  276. package/dist/src/structures/party/ReceivedPartyInvitation.js +54 -0
  277. package/dist/src/structures/party/ReceivedPartyInvitation.js.map +1 -0
  278. package/dist/src/structures/party/ReceivedPartyJoinRequest.d.ts +26 -0
  279. package/dist/src/structures/party/ReceivedPartyJoinRequest.js +31 -0
  280. package/dist/src/structures/party/ReceivedPartyJoinRequest.js.map +1 -0
  281. package/dist/src/structures/party/SentPartyInvitation.d.ts +27 -0
  282. package/dist/src/structures/party/SentPartyInvitation.js +39 -0
  283. package/dist/src/structures/party/SentPartyInvitation.js.map +1 -0
  284. package/dist/src/structures/party/SentPartyJoinRequest.d.ts +19 -0
  285. package/dist/src/structures/party/SentPartyJoinRequest.js +22 -0
  286. package/dist/src/structures/party/SentPartyJoinRequest.js.map +1 -0
  287. package/dist/src/structures/stw/STWHero.d.ts +61 -0
  288. package/dist/src/structures/stw/STWHero.js +38 -0
  289. package/dist/src/structures/stw/STWHero.js.map +1 -0
  290. package/dist/src/structures/stw/STWHeroLoadout.d.ts +44 -0
  291. package/dist/src/structures/stw/STWHeroLoadout.js +34 -0
  292. package/dist/src/structures/stw/STWHeroLoadout.js.map +1 -0
  293. package/dist/src/structures/stw/STWItem.d.ts +31 -0
  294. package/dist/src/structures/stw/STWItem.js +23 -0
  295. package/dist/src/structures/stw/STWItem.js.map +1 -0
  296. package/dist/src/structures/stw/STWLocker.d.ts +32 -0
  297. package/dist/src/structures/stw/STWLocker.js +26 -0
  298. package/dist/src/structures/stw/STWLocker.js.map +1 -0
  299. package/dist/src/structures/stw/STWMeleeWeaponSchematic.d.ts +14 -0
  300. package/dist/src/structures/stw/STWMeleeWeaponSchematic.js +15 -0
  301. package/dist/src/structures/stw/STWMeleeWeaponSchematic.js.map +1 -0
  302. package/dist/src/structures/stw/STWNewsMessage.d.ts +42 -0
  303. package/dist/src/structures/stw/STWNewsMessage.js +27 -0
  304. package/dist/src/structures/stw/STWNewsMessage.js.map +1 -0
  305. package/dist/src/structures/stw/STWProfile.d.ts +132 -0
  306. package/dist/src/structures/stw/STWProfile.js +283 -0
  307. package/dist/src/structures/stw/STWProfile.js.map +1 -0
  308. package/dist/src/structures/stw/STWRangedWeaponSchematic.d.ts +14 -0
  309. package/dist/src/structures/stw/STWRangedWeaponSchematic.js +15 -0
  310. package/dist/src/structures/stw/STWRangedWeaponSchematic.js.map +1 -0
  311. package/dist/src/structures/stw/STWResource.d.ts +27 -0
  312. package/dist/src/structures/stw/STWResource.js +22 -0
  313. package/dist/src/structures/stw/STWResource.js.map +1 -0
  314. package/dist/src/structures/stw/STWSchematic.d.ts +72 -0
  315. package/dist/src/structures/stw/STWSchematic.js +40 -0
  316. package/dist/src/structures/stw/STWSchematic.js.map +1 -0
  317. package/dist/src/structures/stw/STWStats.d.ts +103 -0
  318. package/dist/src/structures/stw/STWStats.js +85 -0
  319. package/dist/src/structures/stw/STWStats.js.map +1 -0
  320. package/dist/src/structures/stw/STWSurvivor.d.ts +104 -0
  321. package/dist/src/structures/stw/STWSurvivor.js +76 -0
  322. package/dist/src/structures/stw/STWSurvivor.js.map +1 -0
  323. package/dist/src/structures/stw/STWTeamPerk.d.ts +19 -0
  324. package/dist/src/structures/stw/STWTeamPerk.js +20 -0
  325. package/dist/src/structures/stw/STWTeamPerk.js.map +1 -0
  326. package/dist/src/structures/stw/STWTrapSchematic.d.ts +15 -0
  327. package/dist/src/structures/stw/STWTrapSchematic.js +16 -0
  328. package/dist/src/structures/stw/STWTrapSchematic.js.map +1 -0
  329. package/dist/src/structures/stw/STWWeaponSchematic.d.ts +15 -0
  330. package/dist/src/structures/stw/STWWeaponSchematic.js +16 -0
  331. package/dist/src/structures/stw/STWWeaponSchematic.js.map +1 -0
  332. package/dist/src/structures/user/BlockedUser.d.ts +13 -0
  333. package/dist/src/structures/user/BlockedUser.js +19 -0
  334. package/dist/src/structures/user/BlockedUser.js.map +1 -0
  335. package/dist/src/structures/user/ClientUser.d.ts +78 -0
  336. package/dist/src/structures/user/ClientUser.js +34 -0
  337. package/dist/src/structures/user/ClientUser.js.map +1 -0
  338. package/dist/src/structures/user/User.d.ts +98 -0
  339. package/dist/src/structures/user/User.js +130 -0
  340. package/dist/src/structures/user/User.js.map +1 -0
  341. package/dist/src/structures/user/UserSearchResult.d.ts +31 -0
  342. package/dist/src/structures/user/UserSearchResult.js +23 -0
  343. package/dist/src/structures/user/UserSearchResult.js.map +1 -0
  344. package/dist/src/util/AsyncLock.d.ts +28 -0
  345. package/dist/src/util/AsyncLock.js +44 -0
  346. package/dist/src/util/AsyncLock.js.map +1 -0
  347. package/dist/src/util/BinaryWriter.d.ts +79 -0
  348. package/dist/src/util/BinaryWriter.js +136 -0
  349. package/dist/src/util/BinaryWriter.js.map +1 -0
  350. package/dist/src/util/CurveTable.d.ts +24 -0
  351. package/dist/src/util/CurveTable.js +37 -0
  352. package/dist/src/util/CurveTable.js.map +1 -0
  353. package/dist/src/util/Meta.d.ts +41 -0
  354. package/dist/src/util/Meta.js +73 -0
  355. package/dist/src/util/Meta.js.map +1 -0
  356. package/dist/src/util/Util.d.ts +162 -0
  357. package/dist/src/util/Util.js +539 -0
  358. package/dist/src/util/Util.js.map +1 -0
  359. package/dist/src/xmpp/XMPP.d.ts +100 -0
  360. package/dist/src/xmpp/XMPP.js +702 -0
  361. package/dist/src/xmpp/XMPP.js.map +1 -0
  362. package/dist/tsconfig.tsbuildinfo +1 -0
  363. package/package.json +66 -0
@@ -0,0 +1,463 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const async_queue_1 = require("@sapphire/async-queue");
5
+ const Endpoints_1 = tslib_1.__importDefault(require("../../../resources/Endpoints"));
6
+ const ClientPartyMemberMeta_1 = tslib_1.__importDefault(require("./ClientPartyMemberMeta"));
7
+ const PartyMember_1 = tslib_1.__importDefault(require("./PartyMember"));
8
+ const enums_1 = require("../../../resources/enums");
9
+ const EpicgamesAPIError_1 = tslib_1.__importDefault(require("../../exceptions/EpicgamesAPIError"));
10
+ /**
11
+ * Represents the client's party member
12
+ */
13
+ class ClientPartyMember extends PartyMember_1.default {
14
+ /**
15
+ * @param party The party this member belongs to
16
+ * @param data The member data
17
+ */
18
+ constructor(party, data) {
19
+ super(party, data);
20
+ this.meta = new ClientPartyMemberMeta_1.default(this, data.meta);
21
+ this.patchQueue = new async_queue_1.AsyncQueue();
22
+ this.update({ id: this.id, displayName: this.client.user.self.displayName, externalAuths: this.client.user.self.externalAuths });
23
+ if (this.client.lastPartyMemberMeta)
24
+ this.meta.update(this.client.lastPartyMemberMeta, true);
25
+ }
26
+ /**
27
+ * Sends a meta patch to Epicgames's servers
28
+ * @param updated The updated schema
29
+ * @throws {EpicgamesAPIError}
30
+ */
31
+ async sendPatch(updated) {
32
+ await this.patchQueue.wait();
33
+ try {
34
+ await this.client.http.epicgamesRequest({
35
+ method: 'PATCH',
36
+ url: `${Endpoints_1.default.BR_PARTY}/parties/${this.party.id}/members/${this.id}/meta`,
37
+ headers: {
38
+ 'Content-Type': 'application/json',
39
+ },
40
+ data: {
41
+ delete: [],
42
+ revision: this.revision,
43
+ update: updated,
44
+ },
45
+ }, enums_1.AuthSessionStoreKey.Fortnite);
46
+ }
47
+ catch (e) {
48
+ if (e instanceof EpicgamesAPIError_1.default && e.code === 'errors.com.epicgames.social.party.stale_revision') {
49
+ this.revision = parseInt(e.messageVars[1], 10);
50
+ this.patchQueue.shift();
51
+ return this.sendPatch(updated);
52
+ }
53
+ this.patchQueue.shift();
54
+ throw e;
55
+ }
56
+ this.revision += 1;
57
+ this.patchQueue.shift();
58
+ if (this.client.config.savePartyMemberMeta)
59
+ this.client.lastPartyMemberMeta = this.meta.schema;
60
+ return undefined;
61
+ }
62
+ /**
63
+ * Updates the client party member's readiness
64
+ * @param ready Whether the client party member is ready
65
+ * @throws {EpicgamesAPIError}
66
+ */
67
+ async setReadiness(ready) {
68
+ let data = this.meta.get('Default:LobbyState_j');
69
+ data = this.meta.set('Default:LobbyState_j', {
70
+ ...data,
71
+ LobbyState: {
72
+ gameReadiness: ready ? 'Ready' : 'NotReady',
73
+ readyInputType: ready ? 'MouseAndKeyboard' : 'Count',
74
+ },
75
+ });
76
+ await this.sendPatch({
77
+ 'Default:LobbyState_j': data,
78
+ });
79
+ }
80
+ /**
81
+ * Updates the client party member's sitting out state
82
+ * @param sittingOut Whether the client party member is sitting out
83
+ * @throws {EpicgamesAPIError}
84
+ */
85
+ async setSittingOut(sittingOut) {
86
+ let data = this.meta.get('Default:LobbyState_j');
87
+ data = this.meta.set('Default:LobbyState_j', {
88
+ ...data,
89
+ LobbyState: {
90
+ gameReadiness: sittingOut ? 'SittingOut' : 'NotReady',
91
+ readyInputType: 'Count',
92
+ },
93
+ });
94
+ await this.sendPatch({
95
+ 'Default:LobbyState_j': data,
96
+ });
97
+ }
98
+ /**
99
+ * Updates the client party member's level
100
+ * @param level The new level
101
+ * @throws {EpicgamesAPIError}
102
+ */
103
+ async setLevel(level) {
104
+ let data = this.meta.get('Default:AthenaBannerInfo_j');
105
+ data = this.meta.set('Default:AthenaBannerInfo_j', {
106
+ ...data,
107
+ AthenaBannerInfo: {
108
+ ...data.AthenaBannerInfo,
109
+ seasonLevel: level,
110
+ },
111
+ });
112
+ await this.sendPatch({
113
+ 'Default:AthenaBannerInfo_j': data,
114
+ });
115
+ }
116
+ /**
117
+ * Updates the client party member's battle pass info
118
+ * @param isPurchased Whether the battle pass is purchased
119
+ * @param level The battle pass level
120
+ * @param selfBoost The battle pass self boost percentage
121
+ * @param friendBoost The battle pass friend boost percentage
122
+ * @throws {EpicgamesAPIError}
123
+ */
124
+ async setBattlePass(isPurchased, level, selfBoost, friendBoost) {
125
+ let data = this.meta.get('Default:BattlePassInfo_j');
126
+ data = this.meta.set('Default:BattlePassInfo_j', {
127
+ ...data,
128
+ BattlePassInfo: {
129
+ ...data.BattlePassInfo,
130
+ bHasPurchasedPass: typeof isPurchased === 'boolean' ? isPurchased : data.BattlePassInfo.bHasPurchasedPass,
131
+ passLevel: typeof level === 'number' ? level : data.BattlePassInfo.passLevel,
132
+ selfBoostXp: typeof selfBoost === 'number' ? selfBoost : data.BattlePassInfo.selfBoostXp,
133
+ friendBoostXp: typeof friendBoost === 'number' ? friendBoost : data.BattlePassInfo.friendBoostXp,
134
+ },
135
+ });
136
+ await this.sendPatch({
137
+ 'Default:BattlePassInfo_j': data,
138
+ });
139
+ }
140
+ /**
141
+ * Updates the client party member's banner
142
+ * @param bannerId The new banner's id
143
+ * @param color The new banner's color
144
+ * @throws {EpicgamesAPIError}
145
+ */
146
+ async setBanner(bannerId, color) {
147
+ let data = this.meta.get('Default:AthenaBannerInfo_j');
148
+ data = this.meta.set('Default:AthenaBannerInfo_j', {
149
+ ...data,
150
+ AthenaBannerInfo: {
151
+ ...data.AthenaBannerInfo,
152
+ bannerIconId: bannerId,
153
+ bannerColorId: color,
154
+ },
155
+ });
156
+ await this.sendPatch({
157
+ 'Default:AthenaBannerInfo_j': data,
158
+ });
159
+ }
160
+ /**
161
+ * Updates the client party member's outfit
162
+ * @param id The outfit's ID
163
+ * @param variants The outfit's variants
164
+ * @param enlightment The outfit's enlightment
165
+ * @throws {EpicgamesAPIError}
166
+ */
167
+ async setOutfit(id, variants = [], enlightment) {
168
+ var _a;
169
+ let data = this.meta.get('Default:AthenaCosmeticLoadout_j');
170
+ let variantData = this.meta.get('Default:AthenaCosmeticLoadoutVariants_j');
171
+ const patches = {};
172
+ const parsedVariants = {
173
+ athenaCharacter: {
174
+ i: variants.map((v) => ({
175
+ c: v.channel,
176
+ v: v.variant,
177
+ dE: v.dE || 0,
178
+ })),
179
+ },
180
+ };
181
+ const scratchpad = [];
182
+ if ((enlightment === null || enlightment === void 0 ? void 0 : enlightment.length) === 2) {
183
+ scratchpad.push({
184
+ t: enlightment[0],
185
+ v: enlightment[1],
186
+ });
187
+ }
188
+ data = this.meta.set('Default:AthenaCosmeticLoadout_j', {
189
+ ...data,
190
+ AthenaCosmeticLoadout: {
191
+ ...data.AthenaCosmeticLoadout,
192
+ characterPrimaryAssetId: `AthenaCharacter:${id}`,
193
+ scratchpad,
194
+ },
195
+ });
196
+ patches['Default:AthenaCosmeticLoadout_j'] = data;
197
+ delete variantData.AthenaCosmeticLoadoutVariants.vL.AthenaCharacter;
198
+ if ((_a = parsedVariants.athenaCharacter) === null || _a === void 0 ? void 0 : _a.i[0]) {
199
+ variantData = this.meta.set('Default:AthenaCosmeticLoadoutVariants_j', {
200
+ AthenaCosmeticLoadoutVariants: {
201
+ vL: {
202
+ ...variantData.AthenaCosmeticLoadoutVariants.vL,
203
+ ...parsedVariants,
204
+ },
205
+ },
206
+ });
207
+ patches['Default:AthenaCosmeticLoadoutVariants_j'] = variantData;
208
+ }
209
+ await this.sendPatch(patches);
210
+ }
211
+ /**
212
+ * Updates the client party member's backpack
213
+ * @param id The backpack's ID
214
+ * @param variants The backpack's variants
215
+ * @param path The backpack's path in the game files
216
+ * @throws {EpicgamesAPIError}
217
+ */
218
+ async setBackpack(id, variants = [], path) {
219
+ var _a, _b;
220
+ let data = this.meta.get('Default:AthenaCosmeticLoadout_j');
221
+ let variantData = this.meta.get('Default:AthenaCosmeticLoadoutVariants_j');
222
+ const patches = {};
223
+ const parsedVariants = {
224
+ athenaBackpack: {
225
+ i: variants.map((v) => ({
226
+ c: v.channel,
227
+ v: v.variant,
228
+ dE: v.dE || 0,
229
+ })),
230
+ },
231
+ };
232
+ data = this.meta.set('Default:AthenaCosmeticLoadout_j', {
233
+ ...data,
234
+ AthenaCosmeticLoadout: {
235
+ ...data.AthenaCosmeticLoadout,
236
+ backpackDef: `${(_a = path === null || path === void 0 ? void 0 : path.replace(/\/$/, '')) !== null && _a !== void 0 ? _a : '/BRCosmetics/Athena/Items/Cosmetics/Backpacks'}/${id}.${id}`,
237
+ },
238
+ });
239
+ patches['Default:AthenaCosmeticLoadout_j'] = data;
240
+ delete variantData.AthenaCosmeticLoadoutVariants.vL.AthenaBackpack;
241
+ if ((_b = parsedVariants.athenaBackpack) === null || _b === void 0 ? void 0 : _b.i[0]) {
242
+ variantData = this.meta.set('Default:AthenaCosmeticLoadoutVariants_j', {
243
+ AthenaCosmeticLoadoutVariants: {
244
+ vL: {
245
+ ...variantData.AthenaCosmeticLoadoutVariants.vL,
246
+ ...parsedVariants,
247
+ },
248
+ },
249
+ });
250
+ patches['Default:AthenaCosmeticLoadoutVariants_j'] = variantData;
251
+ }
252
+ await this.sendPatch(patches);
253
+ }
254
+ /**
255
+ * Updates the client party member's pet
256
+ * @param id The pet's ID
257
+ * @param variants The pet's variants
258
+ * @param path The pet's path in the game files
259
+ */
260
+ async setPet(id, variants = [], path) {
261
+ return this.setBackpack(id, variants, path !== null && path !== void 0 ? path : '/BRCosmetics/Athena/Items/Cosmetics/PetCarriers');
262
+ }
263
+ /**
264
+ * Updates the client party member's pickaxe
265
+ * @param id The pickaxe's ID
266
+ * @param variants The pickaxe's variants
267
+ * @param path The pickaxe's path in the game files
268
+ * @throws {EpicgamesAPIError}
269
+ */
270
+ async setPickaxe(id, variants = [], path) {
271
+ var _a, _b;
272
+ let data = this.meta.get('Default:AthenaCosmeticLoadout_j');
273
+ let variantData = this.meta.get('Default:AthenaCosmeticLoadoutVariants_j');
274
+ const patches = {};
275
+ const parsedVariants = {
276
+ athenaPickaxe: {
277
+ i: variants.map((v) => ({
278
+ c: v.channel,
279
+ v: v.variant,
280
+ dE: v.dE || 0,
281
+ })),
282
+ },
283
+ };
284
+ data = this.meta.set('Default:AthenaCosmeticLoadout_j', {
285
+ ...data,
286
+ AthenaCosmeticLoadout: {
287
+ ...data.AthenaCosmeticLoadout,
288
+ pickaxeDef: `${(_a = path === null || path === void 0 ? void 0 : path.replace(/\/$/, '')) !== null && _a !== void 0 ? _a : '/BRCosmetics/Athena/Items/Cosmetics/Pickaxes'}/${id}.${id}`,
289
+ },
290
+ });
291
+ patches['Default:AthenaCosmeticLoadout_j'] = data;
292
+ delete variantData.AthenaCosmeticLoadoutVariants.vL.AthenaPickaxe;
293
+ if ((_b = parsedVariants.athenaPickaxe) === null || _b === void 0 ? void 0 : _b.i[0]) {
294
+ variantData = this.meta.set('Default:AthenaCosmeticLoadoutVariants_j', {
295
+ AthenaCosmeticLoadoutVariants: {
296
+ vL: {
297
+ ...variantData.AthenaCosmeticLoadoutVariants.vL,
298
+ ...parsedVariants,
299
+ },
300
+ },
301
+ });
302
+ patches['Default:AthenaCosmeticLoadoutVariants_j'] = variantData;
303
+ }
304
+ await this.sendPatch(patches);
305
+ }
306
+ /**
307
+ * Updates the client party member's emote
308
+ * @param id The emote's ID
309
+ * @param path The emote's path in the game files
310
+ * @throws {EpicgamesAPIError}
311
+ */
312
+ async setEmote(id, path) {
313
+ var _a;
314
+ if (this.meta.get('Default:FrontendEmote_j').FrontendEmote.emoteItemDef !== 'None')
315
+ await this.clearEmote();
316
+ let data = this.meta.get('Default:FrontendEmote_j');
317
+ data = this.meta.set('Default:FrontendEmote_j', {
318
+ ...data,
319
+ FrontendEmote: {
320
+ ...data.FrontendEmote,
321
+ emoteItemDef: `${(_a = path === null || path === void 0 ? void 0 : path.replace(/\/$/, '')) !== null && _a !== void 0 ? _a : '/BRCosmetics/Athena/Items/Cosmetics/Dances'}/${id}.${id}`,
322
+ emoteSection: -2,
323
+ },
324
+ });
325
+ await this.sendPatch({
326
+ 'Default:FrontendEmote_j': data,
327
+ });
328
+ }
329
+ /**
330
+ * Updates the client party member's emoji
331
+ * @param id The emoji's ID
332
+ * @param path The emoji's path in the game files
333
+ * @throws {EpicgamesAPIError}
334
+ */
335
+ async setEmoji(id, path) {
336
+ return this.setEmote(id, path !== null && path !== void 0 ? path : '/BRCosmetics/Athena/Items/Cosmetics/Dances/Emoji');
337
+ }
338
+ /**
339
+ * Clears the client party member's emote and emoji
340
+ * @throws {EpicgamesAPIError}
341
+ */
342
+ async clearEmote() {
343
+ let data = this.meta.get('Default:FrontendEmote_j');
344
+ data = this.meta.set('Default:FrontendEmote_j', {
345
+ ...data,
346
+ FrontendEmote: {
347
+ ...data.FrontendEmote,
348
+ emoteItemDef: 'None',
349
+ emoteSection: -1,
350
+ },
351
+ });
352
+ await this.sendPatch({
353
+ 'Default:FrontendEmote_j': data,
354
+ });
355
+ }
356
+ /**
357
+ * Clears the client party member's backpack
358
+ * @throws {EpicgamesAPIError}
359
+ */
360
+ async clearBackpack() {
361
+ let data = this.meta.get('Default:AthenaCosmeticLoadout_j');
362
+ data = this.meta.set('Default:AthenaCosmeticLoadout_j', {
363
+ ...data,
364
+ AthenaCosmeticLoadout: {
365
+ ...data.AthenaCosmeticLoadout,
366
+ backpackDef: '',
367
+ },
368
+ });
369
+ await this.sendPatch({
370
+ 'Default:AthenaCosmeticLoadout_j': data,
371
+ });
372
+ }
373
+ /**
374
+ * Updates the client party member's match state.
375
+ * NOTE: This is visually, the client will not actually join a match
376
+ * @param isPlaying Whether the client is in a match
377
+ * @param playerCount The match player count (must be between 0 and 255)
378
+ * @param startedAt The start date of the match
379
+ * @throws {EpicgamesAPIError}
380
+ */
381
+ async setPlaying(isPlaying = true, playerCount = 100, startedAt = new Date()) {
382
+ await this.sendPatch({
383
+ 'Default:DownloadOnDemandProgress_d': this.meta.set('Default:DownloadOnDemandProgress_d', isPlaying ? '1.000000' : '0.000000'),
384
+ 'Default:PackedState_j': this.meta.set('Default:PackedState_j', {
385
+ ...this.meta.get('Default:PackedState_j'),
386
+ PackedState: {
387
+ ...this.meta.get('Default:PackedState_j').PackedState,
388
+ location: isPlaying ? 'InGame' : 'PreLobby',
389
+ gameMode: isPlaying ? 'InBattleRoyale' : 'None',
390
+ },
391
+ }),
392
+ 'Default:LobbyState_j': this.meta.set('Default:LobbyState_j', {
393
+ ...this.meta.get('Default:LobbyState_j'),
394
+ LobbyState: {
395
+ ...this.meta.get('Default:LobbyState_j').LobbyState,
396
+ hasPreloadedAthena: isPlaying,
397
+ },
398
+ }),
399
+ 'Default:NumAthenaPlayersLeft_U': this.meta.set('Default:NumAthenaPlayersLeft_U', playerCount),
400
+ 'Default:UtcTimeStartedMatchAthena_s': this.meta.set('Default:UtcTimeStartedMatchAthena_s', startedAt.toISOString()),
401
+ });
402
+ }
403
+ /**
404
+ * Updates the client party member's pre lobby map marker.
405
+ * [0, 0] would be the center of the map
406
+ * @param isSet Whether the marker is set
407
+ * @param locationX The marker x location
408
+ * @param locationY The marker y location
409
+ * @throws {EpicgamesAPIError}
410
+ */
411
+ async setMarker(isSet, locationX, locationY) {
412
+ let data = this.meta.get('Default:FrontEndMapMarker_j');
413
+ data = this.meta.set('Default:FrontEndMapMarker_j', {
414
+ ...data,
415
+ FrontEndMapMarker: {
416
+ ...data.FrontEndMapMarker,
417
+ bIsSet: isSet,
418
+ markerLocation: {
419
+ ...data.FrontEndMapMarker.markerLocation,
420
+ x: locationY || 0,
421
+ y: locationX || 0,
422
+ },
423
+ },
424
+ });
425
+ await this.sendPatch({
426
+ 'Default:FrontEndMapMarker_j': data,
427
+ });
428
+ }
429
+ /**
430
+ * Updates the client party member's cosmetic stats.
431
+ * Crowns are shown when using the EID_Coronet emote
432
+ * @param crowns The amount of crowns / "Royal Royales"
433
+ * @param rankedProgression The ranked progression
434
+ * @throws {EpicgamesAPIError}
435
+ */
436
+ async setCosmeticStats(crowns, rankedProgression) {
437
+ let data = this.meta.get('Default:AthenaCosmeticLoadout_j');
438
+ data = this.meta.set('Default:AthenaCosmeticLoadout_j', {
439
+ ...data,
440
+ AthenaCosmeticLoadout: {
441
+ ...data.AthenaCosmeticLoadout,
442
+ cosmeticStats: [{
443
+ statName: 'HabaneroProgression',
444
+ statValue: rankedProgression,
445
+ }, {
446
+ statName: 'TotalVictoryCrowns',
447
+ statValue: 0,
448
+ }, {
449
+ statName: 'TotalRoyalRoyales',
450
+ statValue: crowns,
451
+ }, {
452
+ statName: 'HasCrown',
453
+ statValue: 0,
454
+ }],
455
+ },
456
+ });
457
+ await this.sendPatch({
458
+ 'Default:AthenaCosmeticLoadout_j': data,
459
+ });
460
+ }
461
+ }
462
+ exports.default = ClientPartyMember;
463
+ //# sourceMappingURL=ClientPartyMember.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientPartyMember.js","sourceRoot":"","sources":["../../../../src/structures/party/ClientPartyMember.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AACnD,qFAAqD;AACrD,4FAA4D;AAC5D,wEAAwC;AACxC,oDAA+D;AAC/D,mGAAmE;AAMnE;;GAEG;AACH,MAAM,iBAAkB,SAAQ,qBAAW;IAWzC;;;OAGG;IACH,YAAY,KAAY,EAAE,IAAqB;QAC7C,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QAEnB,IAAI,CAAC,IAAI,GAAG,IAAI,+BAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QACvD,IAAI,CAAC,UAAU,GAAG,IAAI,wBAAU,EAAE,CAAC;QAEnC,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,MAAM,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,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,gBAAgB,CAAC,MAAc,EAAE,iBAAyB;QACrE,IAAI,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;QAE5D,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,iCAAiC,EAAE;YACtD,GAAG,IAAI;YACP,qBAAqB,EAAE;gBACrB,GAAG,IAAI,CAAC,qBAAqB;gBAC7B,aAAa,EAAE,CAAC;wBACd,QAAQ,EAAE,qBAAqB;wBAC/B,SAAS,EAAE,iBAAiB;qBAC7B,EAAE;wBACD,QAAQ,EAAE,oBAAoB;wBAC9B,SAAS,EAAE,CAAC;qBACb,EAAE;wBACD,QAAQ,EAAE,mBAAmB;wBAC7B,SAAS,EAAE,MAAM;qBAClB,EAAE;wBACD,QAAQ,EAAE,UAAU;wBACpB,SAAS,EAAE,CAAC;qBACb,CAAC;aACH;SACF,CAAC,CAAC;QAEH,MAAM,IAAI,CAAC,SAAS,CAAC;YACnB,iCAAiC,EAAE,IAAI;SACxC,CAAC,CAAC;IACL,CAAC;CACF;AAED,kBAAe,iBAAiB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import PartyMemberMeta from './PartyMemberMeta';
2
+ import type { PartyMemberSchema } from '../../../resources/structs';
3
+ import type PartyMember from './PartyMember';
4
+ /**
5
+ * Represents the client's party member meta
6
+ */
7
+ declare class ClientPartyMemberMeta extends PartyMemberMeta {
8
+ /**
9
+ * The party member
10
+ */
11
+ member: PartyMember;
12
+ /**
13
+ * @param member The party member
14
+ * @param schema The schema
15
+ */
16
+ constructor(member: PartyMember, schema: PartyMemberSchema);
17
+ }
18
+ export default ClientPartyMemberMeta;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const defaultPartyMemberMeta_json_1 = tslib_1.__importDefault(require("../../../resources/defaultPartyMemberMeta.json"));
5
+ const Util_1 = require("../../util/Util");
6
+ const PartyMemberMeta_1 = tslib_1.__importDefault(require("./PartyMemberMeta"));
7
+ /**
8
+ * Represents the client's party member meta
9
+ */
10
+ class ClientPartyMemberMeta extends PartyMemberMeta_1.default {
11
+ /**
12
+ * @param member The party member
13
+ * @param schema The schema
14
+ */
15
+ constructor(member, schema) {
16
+ super({ ...defaultPartyMemberMeta_json_1.default });
17
+ this.member = member;
18
+ const defaultCharacter = (0, Util_1.getRandomDefaultCharacter)();
19
+ this.update({
20
+ 'Default:AthenaCosmeticLoadout_j': JSON.stringify({
21
+ AthenaCosmeticLoadout: {
22
+ ...JSON.parse(defaultPartyMemberMeta_json_1.default['Default:AthenaCosmeticLoadout_j']).AthenaCosmeticLoadout,
23
+ characterPrimaryAssetId: `AthenaCharacter:${defaultCharacter}`,
24
+ },
25
+ }),
26
+ 'Default:CampaignHero_j': JSON.stringify({
27
+ CampaignHero: {
28
+ heroItemInstanceId: '',
29
+ heroType: `/Game/Athena/Heroes/${defaultCharacter === null || defaultCharacter === void 0 ? void 0 : defaultCharacter.replace('CID', 'HID')}.${defaultCharacter === null || defaultCharacter === void 0 ? void 0 : defaultCharacter.replace('CID', 'HID')}`,
30
+ },
31
+ }),
32
+ 'Default:PlatformData_j': JSON.stringify({
33
+ PlatformData: {
34
+ platform: {
35
+ platformDescription: {
36
+ name: member.client.config.platform,
37
+ platformType: 'DESKTOP',
38
+ onlineSubsystem: 'None',
39
+ sessionType: '',
40
+ externalAccountType: '',
41
+ crossplayPool: 'DESKTOP',
42
+ },
43
+ },
44
+ uniqueId: 'INVALID',
45
+ sessionId: '',
46
+ },
47
+ }),
48
+ }, true);
49
+ if (schema)
50
+ this.update(schema, true);
51
+ }
52
+ }
53
+ exports.default = ClientPartyMemberMeta;
54
+ //# sourceMappingURL=ClientPartyMemberMeta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientPartyMemberMeta.js","sourceRoot":"","sources":["../../../../src/structures/party/ClientPart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E,EAAE;iBACd;aACF,CAAC;SACH,EAAE,IAAI,CAAC,CAAC;QAET,IAAI,MAAM;YAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACxC,CAAC;CACF;AAED,kBAAe,qBAAqB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import PartyMeta from './PartyMeta';
2
+ import type { PartySchema } from '../../../resources/structs';
3
+ import type ClientParty from './ClientParty';
4
+ /**
5
+ * Represents the client's party meta
6
+ */
7
+ declare class ClientPartyMeta extends PartyMeta {
8
+ /**
9
+ * The party
10
+ */
11
+ party: ClientParty;
12
+ /**
13
+ * @param party The party
14
+ * @param schema The schema
15
+ */
16
+ constructor(party: ClientParty, schema: PartySchema);
17
+ /**
18
+ * Refreshes the member positions
19
+ */
20
+ refreshSquadAssignments(): string | undefined;
21
+ updatePrivacy(): void;
22
+ }
23
+ export default ClientPartyMeta;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const defaultPartyMeta_json_1 = tslib_1.__importDefault(require("../../../resources/defaultPartyMeta.json"));
5
+ const PartyMeta_1 = tslib_1.__importDefault(require("./PartyMeta"));
6
+ /**
7
+ * Represents the client's party meta
8
+ */
9
+ class ClientPartyMeta extends PartyMeta_1.default {
10
+ /**
11
+ * @param party The party
12
+ * @param schema The schema
13
+ */
14
+ constructor(party, schema) {
15
+ super({ ...defaultPartyMeta_json_1.default });
16
+ this.party = party;
17
+ this.refreshSquadAssignments();
18
+ this.updatePrivacy();
19
+ if (schema)
20
+ this.update(schema, true);
21
+ }
22
+ /**
23
+ * Refreshes the member positions
24
+ */
25
+ refreshSquadAssignments() {
26
+ let i = 0;
27
+ const assignments = [];
28
+ if (this.party.me && !this.party.hiddenMemberIds.has(this.party.me.id)) {
29
+ assignments.push({
30
+ memberId: this.party.client.user.self.id,
31
+ absoluteMemberIdx: 0,
32
+ });
33
+ i += 1;
34
+ }
35
+ this.party.members.forEach((m) => {
36
+ if (m.id !== this.party.client.user.self.id && !this.party.hiddenMemberIds.has(m.id)) {
37
+ assignments.push({
38
+ memberId: m.id,
39
+ absoluteMemberIdx: i,
40
+ });
41
+ i += 1;
42
+ }
43
+ });
44
+ return this.set('Default:RawSquadAssignments_j', {
45
+ RawSquadAssignments: assignments,
46
+ });
47
+ }
48
+ updatePrivacy() {
49
+ this.set('Default:PrivacySettings_j', {
50
+ PrivacySettings: {
51
+ partyType: this.party.config.privacy.partyType,
52
+ partyInviteRestriction: this.party.config.privacy.inviteRestriction,
53
+ bOnlyLeaderFriendsCanJoin: this.party.config.privacy.onlyLeaderFriendsCanJoin,
54
+ },
55
+ });
56
+ }
57
+ }
58
+ exports.default = ClientPartyMeta;
59
+ //# sourceMappingURL=ClientPartyMeta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientPartyMeta.js","sourceRoot":"","sources":["../../../../src/structures/party/ClientPartyMeta.ts"],"names":[],"mappings":";;;AAAA,6GAAwE;AACxE,oEAAoC;AAKpC;;GAEG;AACH,MAAM,eAAgB,SAAQ,mBAAS;IAMrC;;;OAGG;IACH,YAAY,KAAkB,EAAE,MAAmB;QACjD,KAAK,CAAC,EAAE,GAAG,+BAAgB,EAAE,CAAC,CAAC;QAE/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,IAAI,CAAC,uBAAuB,EAAE,CAAC;QAC/B,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,MAAM;YAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACxC,CAAC;IAED;;OAEG;IACI,uBAAuB;QAC5B,IAAI,CAAC,GAAG,CAAC,CAAC;QACV,MAAM,WAAW,GAAG,EAAE,CAAC;QAEvB,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CA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