@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.
- package/LICENSE +21 -0
- package/README.md +68 -0
- package/dist/enums/Enums.d.ts +251 -0
- package/dist/enums/Enums.js +202 -0
- package/dist/enums/Enums.js.map +1 -0
- package/dist/index.d.ts +92 -0
- package/dist/index.js +194 -0
- package/dist/index.js.map +1 -0
- package/dist/resources/AuthClients.d.ts +39 -0
- package/dist/resources/AuthClients.js +41 -0
- package/dist/resources/AuthClients.js.map +1 -0
- package/dist/resources/BaseItemRating.json +5203 -0
- package/dist/resources/Endpoints.d.ts +58 -0
- package/dist/resources/Endpoints.js +71 -0
- package/dist/resources/Endpoints.js.map +1 -0
- package/dist/resources/HomebaseRatingMapping.json +255 -0
- package/dist/resources/PowerLevelCurves.d.ts +111 -0
- package/dist/resources/PowerLevelCurves.js +21 -0
- package/dist/resources/PowerLevelCurves.js.map +1 -0
- package/dist/resources/SurvivorItemRating.json +9343 -0
- package/dist/resources/constants.d.ts +2 -0
- package/dist/resources/constants.js +11 -0
- package/dist/resources/constants.js.map +1 -0
- package/dist/resources/defaultPartyMemberMeta.json +28 -0
- package/dist/resources/defaultPartyMeta.json +38 -0
- package/dist/resources/enums.d.ts +12 -0
- package/dist/resources/enums.js +18 -0
- package/dist/resources/enums.js.map +1 -0
- package/dist/resources/httpResponses.d.ts +773 -0
- package/dist/resources/httpResponses.js +3 -0
- package/dist/resources/httpResponses.js.map +1 -0
- package/dist/resources/structs.d.ts +1310 -0
- package/dist/resources/structs.js +3 -0
- package/dist/resources/structs.js.map +1 -0
- package/dist/src/Base.d.ts +15 -0
- package/dist/src/Base.js +15 -0
- package/dist/src/Base.js.map +1 -0
- package/dist/src/Client.d.ts +341 -0
- package/dist/src/Client.js +1043 -0
- package/dist/src/Client.js.map +1 -0
- package/dist/src/auth/Auth.d.ts +66 -0
- package/dist/src/auth/Auth.js +249 -0
- package/dist/src/auth/Auth.js.map +1 -0
- package/dist/src/auth/AuthSession.d.ts +41 -0
- package/dist/src/auth/AuthSession.js +25 -0
- package/dist/src/auth/AuthSession.js.map +1 -0
- package/dist/src/auth/EOSAuthSession.d.ts +19 -0
- package/dist/src/auth/EOSAuthSession.js +80 -0
- package/dist/src/auth/EOSAuthSession.js.map +1 -0
- package/dist/src/auth/FortniteAuthSession.d.ts +53 -0
- package/dist/src/auth/FortniteAuthSession.js +107 -0
- package/dist/src/auth/FortniteAuthSession.js.map +1 -0
- package/dist/src/auth/FortniteClientCredentialsAuthSession.d.ts +18 -0
- package/dist/src/auth/FortniteClientCredentialsAuthSession.js +88 -0
- package/dist/src/auth/FortniteClientCredentialsAuthSession.js.map +1 -0
- package/dist/src/auth/LauncherAuthSession.d.ts +23 -0
- package/dist/src/auth/LauncherAuthSession.js +120 -0
- package/dist/src/auth/LauncherAuthSession.js.map +1 -0
- package/dist/src/exceptions/AuthenticationMissingError.d.ts +15 -0
- package/dist/src/exceptions/AuthenticationMissingError.js +18 -0
- package/dist/src/exceptions/AuthenticationMissingError.js.map +1 -0
- package/dist/src/exceptions/CreativeIslandNotFoundError.d.ts +14 -0
- package/dist/src/exceptions/CreativeIslandNotFoundError.js +18 -0
- package/dist/src/exceptions/CreativeIslandNotFoundError.js.map +1 -0
- package/dist/src/exceptions/CreatorCodeNotFoundError.d.ts +14 -0
- package/dist/src/exceptions/CreatorCodeNotFoundError.js +18 -0
- package/dist/src/exceptions/CreatorCodeNotFoundError.js.map +1 -0
- package/dist/src/exceptions/DuplicateFriendshipError.d.ts +14 -0
- package/dist/src/exceptions/DuplicateFriendshipError.js +18 -0
- package/dist/src/exceptions/DuplicateFriendshipError.js.map +1 -0
- package/dist/src/exceptions/EpicgamesAPIError.d.ts +42 -0
- package/dist/src/exceptions/EpicgamesAPIError.js +27 -0
- package/dist/src/exceptions/EpicgamesAPIError.js.map +1 -0
- package/dist/src/exceptions/EventTimeoutError.d.ts +19 -0
- package/dist/src/exceptions/EventTimeoutError.js +20 -0
- package/dist/src/exceptions/EventTimeoutError.js.map +1 -0
- package/dist/src/exceptions/FriendNotFoundError.d.ts +14 -0
- package/dist/src/exceptions/FriendNotFoundError.js +18 -0
- package/dist/src/exceptions/FriendNotFoundError.js.map +1 -0
- package/dist/src/exceptions/FriendshipRequestAlreadySentError.d.ts +14 -0
- package/dist/src/exceptions/FriendshipRequestAlreadySentError.js +18 -0
- package/dist/src/exceptions/FriendshipRequestAlreadySentError.js.map +1 -0
- package/dist/src/exceptions/InviteeFriendshipRequestLimitExceededError.d.ts +14 -0
- package/dist/src/exceptions/InviteeFriendshipRequestLimitExceededError.js +18 -0
- package/dist/src/exceptions/InviteeFriendshipRequestLimitExceededError.js.map +1 -0
- package/dist/src/exceptions/InviteeFriendshipSettingsError.d.ts +14 -0
- package/dist/src/exceptions/InviteeFriendshipSettingsError.js +18 -0
- package/dist/src/exceptions/InviteeFriendshipSettingsError.js.map +1 -0
- package/dist/src/exceptions/InviteeFriendshipsLimitExceededError.d.ts +14 -0
- package/dist/src/exceptions/InviteeFriendshipsLimitExceededError.js +18 -0
- package/dist/src/exceptions/InviteeFriendshipsLimitExceededError.js.map +1 -0
- package/dist/src/exceptions/InviterFriendshipsLimitExceededError.d.ts +14 -0
- package/dist/src/exceptions/InviterFriendshipsLimitExceededError.js +18 -0
- package/dist/src/exceptions/InviterFriendshipsLimitExceededError.js.map +1 -0
- package/dist/src/exceptions/MatchNotFoundError.d.ts +14 -0
- package/dist/src/exceptions/MatchNotFoundError.js +18 -0
- package/dist/src/exceptions/MatchNotFoundError.js.map +1 -0
- package/dist/src/exceptions/OfferNotFoundError.d.ts +14 -0
- package/dist/src/exceptions/OfferNotFoundError.js +18 -0
- package/dist/src/exceptions/OfferNotFoundError.js.map +1 -0
- package/dist/src/exceptions/PartyAlreadyJoinedError.d.ts +7 -0
- package/dist/src/exceptions/PartyAlreadyJoinedError.js +14 -0
- package/dist/src/exceptions/PartyAlreadyJoinedError.js.map +1 -0
- package/dist/src/exceptions/PartyInvitationExpiredError.d.ts +7 -0
- package/dist/src/exceptions/PartyInvitationExpiredError.js +14 -0
- package/dist/src/exceptions/PartyInvitationExpiredError.js.map +1 -0
- package/dist/src/exceptions/PartyMaxSizeReachedError.d.ts +7 -0
- package/dist/src/exceptions/PartyMaxSizeReachedError.js +14 -0
- package/dist/src/exceptions/PartyMaxSizeReachedError.js.map +1 -0
- package/dist/src/exceptions/PartyMemberNotFoundError.d.ts +14 -0
- package/dist/src/exceptions/PartyMemberNotFoundError.js +18 -0
- package/dist/src/exceptions/PartyMemberNotFoundError.js.map +1 -0
- package/dist/src/exceptions/PartyNotFoundError.d.ts +7 -0
- package/dist/src/exceptions/PartyNotFoundError.js +14 -0
- package/dist/src/exceptions/PartyNotFoundError.js.map +1 -0
- package/dist/src/exceptions/PartyPermissionError.d.ts +7 -0
- package/dist/src/exceptions/PartyPermissionError.js +14 -0
- package/dist/src/exceptions/PartyPermissionError.js.map +1 -0
- package/dist/src/exceptions/SendMessageError.d.ts +27 -0
- package/dist/src/exceptions/SendMessageError.js +21 -0
- package/dist/src/exceptions/SendMessageError.js.map +1 -0
- package/dist/src/exceptions/StatsPrivacyError.d.ts +14 -0
- package/dist/src/exceptions/StatsPrivacyError.js +18 -0
- package/dist/src/exceptions/StatsPrivacyError.js.map +1 -0
- package/dist/src/exceptions/StompConnectionError.d.ts +14 -0
- package/dist/src/exceptions/StompConnectionError.js +18 -0
- package/dist/src/exceptions/StompConnectionError.js.map +1 -0
- package/dist/src/exceptions/UserNotFoundError.d.ts +14 -0
- package/dist/src/exceptions/UserNotFoundError.js +18 -0
- package/dist/src/exceptions/UserNotFoundError.js.map +1 -0
- package/dist/src/exceptions/XMPPConnectionError.d.ts +19 -0
- package/dist/src/exceptions/XMPPConnectionError.js +19 -0
- package/dist/src/exceptions/XMPPConnectionError.js.map +1 -0
- package/dist/src/exceptions/XMPPConnectionTimeoutError.d.ts +14 -0
- package/dist/src/exceptions/XMPPConnectionTimeoutError.js +18 -0
- package/dist/src/exceptions/XMPPConnectionTimeoutError.js.map +1 -0
- package/dist/src/http/HTTP.d.ts +40 -0
- package/dist/src/http/HTTP.js +124 -0
- package/dist/src/http/HTTP.js.map +1 -0
- package/dist/src/managers/ChatManager.d.ts +27 -0
- package/dist/src/managers/ChatManager.js +71 -0
- package/dist/src/managers/ChatManager.js.map +1 -0
- package/dist/src/managers/FriendManager.d.ts +66 -0
- package/dist/src/managers/FriendManager.js +175 -0
- package/dist/src/managers/FriendManager.js.map +1 -0
- package/dist/src/managers/STWManager.d.ts +29 -0
- package/dist/src/managers/STWManager.js +80 -0
- package/dist/src/managers/STWManager.js.map +1 -0
- package/dist/src/managers/TournamentManager.d.ts +51 -0
- package/dist/src/managers/TournamentManager.js +182 -0
- package/dist/src/managers/TournamentManager.js.map +1 -0
- package/dist/src/managers/UserManager.d.ts +78 -0
- package/dist/src/managers/UserManager.js +216 -0
- package/dist/src/managers/UserManager.js.map +1 -0
- package/dist/src/stomp/EOSConnect.d.ts +43 -0
- package/dist/src/stomp/EOSConnect.js +175 -0
- package/dist/src/stomp/EOSConnect.js.map +1 -0
- package/dist/src/structures/Avatar.d.ts +27 -0
- package/dist/src/structures/Avatar.js +22 -0
- package/dist/src/structures/Avatar.js.map +1 -0
- package/dist/src/structures/BaseMessage.d.ts +34 -0
- package/dist/src/structures/BaseMessage.js +22 -0
- package/dist/src/structures/BaseMessage.js.map +1 -0
- package/dist/src/structures/CreatorCode.d.ts +31 -0
- package/dist/src/structures/CreatorCode.js +22 -0
- package/dist/src/structures/CreatorCode.js.map +1 -0
- package/dist/src/structures/EpicgamesServerStatus.d.ts +52 -0
- package/dist/src/structures/EpicgamesServerStatus.js +31 -0
- package/dist/src/structures/EpicgamesServerStatus.js.map +1 -0
- package/dist/src/structures/EpicgamesServerStatusComponent.d.ts +67 -0
- package/dist/src/structures/EpicgamesServerStatusComponent.js +37 -0
- package/dist/src/structures/EpicgamesServerStatusComponent.js.map +1 -0
- package/dist/src/structures/EpicgamesServerStatusIncident.d.ts +58 -0
- package/dist/src/structures/EpicgamesServerStatusIncident.js +36 -0
- package/dist/src/structures/EpicgamesServerStatusIncident.js.map +1 -0
- package/dist/src/structures/EpicgamesServerStatusScheduledMainteance.d.ts +21 -0
- package/dist/src/structures/EpicgamesServerStatusScheduledMainteance.js +20 -0
- package/dist/src/structures/EpicgamesServerStatusScheduledMainteance.js.map +1 -0
- package/dist/src/structures/EventTokens.d.ts +32 -0
- package/dist/src/structures/EventTokens.js +45 -0
- package/dist/src/structures/EventTokens.js.map +1 -0
- package/dist/src/structures/FortniteServerStatus.d.ts +46 -0
- package/dist/src/structures/FortniteServerStatus.js +26 -0
- package/dist/src/structures/FortniteServerStatus.js.map +1 -0
- package/dist/src/structures/GlobalProfile.d.ts +36 -0
- package/dist/src/structures/GlobalProfile.js +25 -0
- package/dist/src/structures/GlobalProfile.js.map +1 -0
- package/dist/src/structures/Image.d.ts +36 -0
- package/dist/src/structures/Image.js +38 -0
- package/dist/src/structures/Image.js.map +1 -0
- package/dist/src/structures/NewsMessage.d.ts +56 -0
- package/dist/src/structures/NewsMessage.js +45 -0
- package/dist/src/structures/NewsMessage.js.map +1 -0
- package/dist/src/structures/NewsMessageVideo.d.ts +47 -0
- package/dist/src/structures/NewsMessageVideo.js +32 -0
- package/dist/src/structures/NewsMessageVideo.js.map +1 -0
- package/dist/src/structures/RadioStation.d.ts +31 -0
- package/dist/src/structures/RadioStation.js +33 -0
- package/dist/src/structures/RadioStation.js.map +1 -0
- package/dist/src/structures/Stats.d.ts +45 -0
- package/dist/src/structures/Stats.js +109 -0
- package/dist/src/structures/Stats.js.map +1 -0
- package/dist/src/structures/Tournament.d.ts +86 -0
- package/dist/src/structures/Tournament.js +64 -0
- package/dist/src/structures/Tournament.js.map +1 -0
- package/dist/src/structures/TournamentWindow.d.ts +124 -0
- package/dist/src/structures/TournamentWindow.js +52 -0
- package/dist/src/structures/TournamentWindow.js.map +1 -0
- package/dist/src/structures/friend/BaseFriendMessage.d.ts +32 -0
- package/dist/src/structures/friend/BaseFriendMessage.js +28 -0
- package/dist/src/structures/friend/BaseFriendMessage.js.map +1 -0
- package/dist/src/structures/friend/BasePendingFriend.d.ts +22 -0
- package/dist/src/structures/friend/BasePendingFriend.js +22 -0
- package/dist/src/structures/friend/BasePendingFriend.js.map +1 -0
- package/dist/src/structures/friend/Friend.d.ts +106 -0
- package/dist/src/structures/friend/Friend.js +97 -0
- package/dist/src/structures/friend/Friend.js.map +1 -0
- package/dist/src/structures/friend/FriendPresence.d.ts +84 -0
- package/dist/src/structures/friend/FriendPresence.js +48 -0
- package/dist/src/structures/friend/FriendPresence.js.map +1 -0
- package/dist/src/structures/friend/IncomingPendingFriend.d.ts +27 -0
- package/dist/src/structures/friend/IncomingPendingFriend.js +36 -0
- package/dist/src/structures/friend/IncomingPendingFriend.js.map +1 -0
- package/dist/src/structures/friend/OutgoingPendingFriend.d.ts +17 -0
- package/dist/src/structures/friend/OutgoingPendingFriend.js +24 -0
- package/dist/src/structures/friend/OutgoingPendingFriend.js.map +1 -0
- package/dist/src/structures/friend/ReceivedFriendMessage.d.ts +27 -0
- package/dist/src/structures/friend/ReceivedFriendMessage.js +27 -0
- package/dist/src/structures/friend/ReceivedFriendMessage.js.map +1 -0
- package/dist/src/structures/friend/SentFriendMessage.d.ts +21 -0
- package/dist/src/structures/friend/SentFriendMessage.js +19 -0
- package/dist/src/structures/friend/SentFriendMessage.js.map +1 -0
- package/dist/src/structures/party/BasePartyInvitation.d.ts +48 -0
- package/dist/src/structures/party/BasePartyInvitation.js +33 -0
- package/dist/src/structures/party/BasePartyInvitation.js.map +1 -0
- package/dist/src/structures/party/BasePartyJoinRequest.d.ts +37 -0
- package/dist/src/structures/party/BasePartyJoinRequest.js +30 -0
- package/dist/src/structures/party/BasePartyJoinRequest.js.map +1 -0
- package/dist/src/structures/party/ClientParty.d.ts +162 -0
- package/dist/src/structures/party/ClientParty.js +412 -0
- package/dist/src/structures/party/ClientParty.js.map +1 -0
- package/dist/src/structures/party/ClientPartyMember.d.ts +144 -0
- package/dist/src/structures/party/ClientPartyMember.js +463 -0
- package/dist/src/structures/party/ClientPartyMember.js.map +1 -0
- package/dist/src/structures/party/ClientPartyMemberMeta.d.ts +18 -0
- package/dist/src/structures/party/ClientPartyMemberMeta.js +54 -0
- package/dist/src/structures/party/ClientPartyMemberMeta.js.map +1 -0
- package/dist/src/structures/party/ClientPartyMeta.d.ts +23 -0
- package/dist/src/structures/party/ClientPartyMeta.js +59 -0
- package/dist/src/structures/party/ClientPartyMeta.js.map +1 -0
- package/dist/src/structures/party/Party.d.ts +95 -0
- package/dist/src/structures/party/Party.js +200 -0
- package/dist/src/structures/party/Party.js.map +1 -0
- package/dist/src/structures/party/PartyChat.d.ts +73 -0
- package/dist/src/structures/party/PartyChat.js +76 -0
- package/dist/src/structures/party/PartyChat.js.map +1 -0
- package/dist/src/structures/party/PartyMember.d.ts +139 -0
- package/dist/src/structures/party/PartyMember.js +201 -0
- package/dist/src/structures/party/PartyMember.js.map +1 -0
- package/dist/src/structures/party/PartyMemberConfirmation.d.ts +43 -0
- package/dist/src/structures/party/PartyMemberConfirmation.js +53 -0
- package/dist/src/structures/party/PartyMemberConfirmation.js.map +1 -0
- package/dist/src/structures/party/PartyMemberMeta.d.ts +76 -0
- package/dist/src/structures/party/PartyMemberMeta.js +145 -0
- package/dist/src/structures/party/PartyMemberMeta.js.map +1 -0
- package/dist/src/structures/party/PartyMessage.d.ts +30 -0
- package/dist/src/structures/party/PartyMessage.js +28 -0
- package/dist/src/structures/party/PartyMessage.js.map +1 -0
- package/dist/src/structures/party/PartyMeta.d.ts +24 -0
- package/dist/src/structures/party/PartyMeta.js +43 -0
- package/dist/src/structures/party/PartyMeta.js.map +1 -0
- package/dist/src/structures/party/PresenceParty.d.ts +66 -0
- package/dist/src/structures/party/PresenceParty.js +49 -0
- package/dist/src/structures/party/PresenceParty.js.map +1 -0
- package/dist/src/structures/party/ReceivedPartyInvitation.d.ts +33 -0
- package/dist/src/structures/party/ReceivedPartyInvitation.js +54 -0
- package/dist/src/structures/party/ReceivedPartyInvitation.js.map +1 -0
- package/dist/src/structures/party/ReceivedPartyJoinRequest.d.ts +26 -0
- package/dist/src/structures/party/ReceivedPartyJoinRequest.js +31 -0
- package/dist/src/structures/party/ReceivedPartyJoinRequest.js.map +1 -0
- package/dist/src/structures/party/SentPartyInvitation.d.ts +27 -0
- package/dist/src/structures/party/SentPartyInvitation.js +39 -0
- package/dist/src/structures/party/SentPartyInvitation.js.map +1 -0
- package/dist/src/structures/party/SentPartyJoinRequest.d.ts +19 -0
- package/dist/src/structures/party/SentPartyJoinRequest.js +22 -0
- package/dist/src/structures/party/SentPartyJoinRequest.js.map +1 -0
- package/dist/src/structures/stw/STWHero.d.ts +61 -0
- package/dist/src/structures/stw/STWHero.js +38 -0
- package/dist/src/structures/stw/STWHero.js.map +1 -0
- package/dist/src/structures/stw/STWHeroLoadout.d.ts +44 -0
- package/dist/src/structures/stw/STWHeroLoadout.js +34 -0
- package/dist/src/structures/stw/STWHeroLoadout.js.map +1 -0
- package/dist/src/structures/stw/STWItem.d.ts +31 -0
- package/dist/src/structures/stw/STWItem.js +23 -0
- package/dist/src/structures/stw/STWItem.js.map +1 -0
- package/dist/src/structures/stw/STWLocker.d.ts +32 -0
- package/dist/src/structures/stw/STWLocker.js +26 -0
- package/dist/src/structures/stw/STWLocker.js.map +1 -0
- package/dist/src/structures/stw/STWMeleeWeaponSchematic.d.ts +14 -0
- package/dist/src/structures/stw/STWMeleeWeaponSchematic.js +15 -0
- package/dist/src/structures/stw/STWMeleeWeaponSchematic.js.map +1 -0
- package/dist/src/structures/stw/STWNewsMessage.d.ts +42 -0
- package/dist/src/structures/stw/STWNewsMessage.js +27 -0
- package/dist/src/structures/stw/STWNewsMessage.js.map +1 -0
- package/dist/src/structures/stw/STWProfile.d.ts +132 -0
- package/dist/src/structures/stw/STWProfile.js +283 -0
- package/dist/src/structures/stw/STWProfile.js.map +1 -0
- package/dist/src/structures/stw/STWRangedWeaponSchematic.d.ts +14 -0
- package/dist/src/structures/stw/STWRangedWeaponSchematic.js +15 -0
- package/dist/src/structures/stw/STWRangedWeaponSchematic.js.map +1 -0
- package/dist/src/structures/stw/STWResource.d.ts +27 -0
- package/dist/src/structures/stw/STWResource.js +22 -0
- package/dist/src/structures/stw/STWResource.js.map +1 -0
- package/dist/src/structures/stw/STWSchematic.d.ts +72 -0
- package/dist/src/structures/stw/STWSchematic.js +40 -0
- package/dist/src/structures/stw/STWSchematic.js.map +1 -0
- package/dist/src/structures/stw/STWStats.d.ts +103 -0
- package/dist/src/structures/stw/STWStats.js +85 -0
- package/dist/src/structures/stw/STWStats.js.map +1 -0
- package/dist/src/structures/stw/STWSurvivor.d.ts +104 -0
- package/dist/src/structures/stw/STWSurvivor.js +76 -0
- package/dist/src/structures/stw/STWSurvivor.js.map +1 -0
- package/dist/src/structures/stw/STWTeamPerk.d.ts +19 -0
- package/dist/src/structures/stw/STWTeamPerk.js +20 -0
- package/dist/src/structures/stw/STWTeamPerk.js.map +1 -0
- package/dist/src/structures/stw/STWTrapSchematic.d.ts +15 -0
- package/dist/src/structures/stw/STWTrapSchematic.js +16 -0
- package/dist/src/structures/stw/STWTrapSchematic.js.map +1 -0
- package/dist/src/structures/stw/STWWeaponSchematic.d.ts +15 -0
- package/dist/src/structures/stw/STWWeaponSchematic.js +16 -0
- package/dist/src/structures/stw/STWWeaponSchematic.js.map +1 -0
- package/dist/src/structures/user/BlockedUser.d.ts +13 -0
- package/dist/src/structures/user/BlockedUser.js +19 -0
- package/dist/src/structures/user/BlockedUser.js.map +1 -0
- package/dist/src/structures/user/ClientUser.d.ts +78 -0
- package/dist/src/structures/user/ClientUser.js +34 -0
- package/dist/src/structures/user/ClientUser.js.map +1 -0
- package/dist/src/structures/user/User.d.ts +98 -0
- package/dist/src/structures/user/User.js +130 -0
- package/dist/src/structures/user/User.js.map +1 -0
- package/dist/src/structures/user/UserSearchResult.d.ts +31 -0
- package/dist/src/structures/user/UserSearchResult.js +23 -0
- package/dist/src/structures/user/UserSearchResult.js.map +1 -0
- package/dist/src/util/AsyncLock.d.ts +28 -0
- package/dist/src/util/AsyncLock.js +44 -0
- package/dist/src/util/AsyncLock.js.map +1 -0
- package/dist/src/util/BinaryWriter.d.ts +79 -0
- package/dist/src/util/BinaryWriter.js +136 -0
- package/dist/src/util/BinaryWriter.js.map +1 -0
- package/dist/src/util/CurveTable.d.ts +24 -0
- package/dist/src/util/CurveTable.js +37 -0
- package/dist/src/util/CurveTable.js.map +1 -0
- package/dist/src/util/Meta.d.ts +41 -0
- package/dist/src/util/Meta.js +73 -0
- package/dist/src/util/Meta.js.map +1 -0
- package/dist/src/util/Util.d.ts +162 -0
- package/dist/src/util/Util.js +539 -0
- package/dist/src/util/Util.js.map +1 -0
- package/dist/src/xmpp/XMPP.d.ts +100 -0
- package/dist/src/xmpp/XMPP.js +702 -0
- package/dist/src/xmpp/XMPP.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../resources/structs.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type Client from './Client';
|
|
2
|
+
/**
|
|
3
|
+
* Represents the base class of many other classes
|
|
4
|
+
*/
|
|
5
|
+
declare abstract class Base {
|
|
6
|
+
/**
|
|
7
|
+
* The main client
|
|
8
|
+
*/
|
|
9
|
+
readonly client: Client;
|
|
10
|
+
/**
|
|
11
|
+
* @param client The main client
|
|
12
|
+
*/
|
|
13
|
+
constructor(client: Client);
|
|
14
|
+
}
|
|
15
|
+
export default Base;
|
package/dist/src/Base.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Represents the base class of many other classes
|
|
5
|
+
*/
|
|
6
|
+
class Base {
|
|
7
|
+
/**
|
|
8
|
+
* @param client The main client
|
|
9
|
+
*/
|
|
10
|
+
constructor(client) {
|
|
11
|
+
Object.defineProperty(this, 'client', { value: client });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.default = Base;
|
|
15
|
+
//# sourceMappingURL=Base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Base.js","sourceRoot":"","sources":["../../src/Base.ts"],"names":[],"mappings":";;AAEA;;GAEG;AACH,MAAe,IAAI;IAMjB;;OAEG;IACH,YAAY,MAAc;QACxB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IAC3D,CAAC;CACF;AAED,kBAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
import { EventEmitter } from 'events';
|
|
2
|
+
import Auth from './auth/Auth';
|
|
3
|
+
import Http from './http/HTTP';
|
|
4
|
+
import AsyncLock from './util/AsyncLock';
|
|
5
|
+
import XMPP from './xmpp/XMPP';
|
|
6
|
+
import CreatorCode from './structures/CreatorCode';
|
|
7
|
+
import ClientParty from './structures/party/ClientParty';
|
|
8
|
+
import Party from './structures/party/Party';
|
|
9
|
+
import SentPartyJoinRequest from './structures/party/SentPartyJoinRequest';
|
|
10
|
+
import RadioStation from './structures/RadioStation';
|
|
11
|
+
import Stats from './structures/Stats';
|
|
12
|
+
import NewsMessage from './structures/NewsMessage';
|
|
13
|
+
import FortniteServerStatus from './structures/FortniteServerStatus';
|
|
14
|
+
import EpicgamesServerStatus from './structures/EpicgamesServerStatus';
|
|
15
|
+
import TournamentManager from './managers/TournamentManager';
|
|
16
|
+
import UserManager from './managers/UserManager';
|
|
17
|
+
import FriendManager from './managers/FriendManager';
|
|
18
|
+
import STWManager from './managers/STWManager';
|
|
19
|
+
import EOSConnect from './stomp/EOSConnect';
|
|
20
|
+
import ChatManager from './managers/ChatManager';
|
|
21
|
+
import type { CreativeIslandData, CreativeDiscoveryPanel } from '../resources/httpResponses';
|
|
22
|
+
import type { ClientOptions, ClientConfig, ClientEvents, PartyConfig, Schema, Region, BlurlStream, Language, PartyData, PresenceOnlineType, BRAccountLevelData } from '../resources/structs';
|
|
23
|
+
/**
|
|
24
|
+
* Represets the main client
|
|
25
|
+
*/
|
|
26
|
+
declare class Client extends EventEmitter {
|
|
27
|
+
/**
|
|
28
|
+
* Timeouts set by {@link Client#setTimeout} that are still active
|
|
29
|
+
*/
|
|
30
|
+
private timeouts;
|
|
31
|
+
/**
|
|
32
|
+
* Intervals set by {@link Client#setInterval} that are still active
|
|
33
|
+
*/
|
|
34
|
+
private intervals;
|
|
35
|
+
/**
|
|
36
|
+
* All client configuration options
|
|
37
|
+
*/
|
|
38
|
+
config: ClientConfig;
|
|
39
|
+
/**
|
|
40
|
+
* Authentication manager
|
|
41
|
+
*/
|
|
42
|
+
auth: Auth;
|
|
43
|
+
/**
|
|
44
|
+
* Lock used to pause certain incoming xmpp messages while the bots party is being modified
|
|
45
|
+
*/
|
|
46
|
+
partyLock: AsyncLock;
|
|
47
|
+
/**
|
|
48
|
+
* Lock used to pause xmpp presences while the friend caches are being populated
|
|
49
|
+
*/
|
|
50
|
+
cacheLock: AsyncLock;
|
|
51
|
+
/**
|
|
52
|
+
* HTTP manager
|
|
53
|
+
*/
|
|
54
|
+
http: Http;
|
|
55
|
+
/**
|
|
56
|
+
* User manager
|
|
57
|
+
*/
|
|
58
|
+
user: UserManager;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the client is fully started
|
|
61
|
+
*/
|
|
62
|
+
isReady: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* XMPP manager
|
|
65
|
+
*/
|
|
66
|
+
xmpp: XMPP;
|
|
67
|
+
/**
|
|
68
|
+
* EOS Connect STOMP manager
|
|
69
|
+
*/
|
|
70
|
+
stompEOSConnect: EOSConnect;
|
|
71
|
+
/**
|
|
72
|
+
* Friend manager
|
|
73
|
+
*/
|
|
74
|
+
friend: FriendManager;
|
|
75
|
+
/**
|
|
76
|
+
* The client's current party
|
|
77
|
+
*/
|
|
78
|
+
party?: ClientParty;
|
|
79
|
+
/**
|
|
80
|
+
* The client's tournament manager.
|
|
81
|
+
*/
|
|
82
|
+
tournaments: TournamentManager;
|
|
83
|
+
/**
|
|
84
|
+
* The last saved client party member meta
|
|
85
|
+
*/
|
|
86
|
+
lastPartyMemberMeta?: Schema;
|
|
87
|
+
/**
|
|
88
|
+
* Fortnite: Save The World manager
|
|
89
|
+
*/
|
|
90
|
+
stw: STWManager;
|
|
91
|
+
/**
|
|
92
|
+
* EOS: Chat Manager
|
|
93
|
+
*/
|
|
94
|
+
chat: ChatManager;
|
|
95
|
+
/**
|
|
96
|
+
* @param config The client's configuration options
|
|
97
|
+
*/
|
|
98
|
+
constructor(config?: ClientOptions);
|
|
99
|
+
on<U extends keyof ClientEvents>(event: U, listener: ClientEvents[U]): this;
|
|
100
|
+
once<U extends keyof ClientEvents>(event: U, listener: ClientEvents[U]): this;
|
|
101
|
+
emit<U extends keyof ClientEvents>(event: U, ...args: Parameters<ClientEvents[U]>): boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Logs the client in.
|
|
104
|
+
* A valid authentication method must be provided in the client's config.
|
|
105
|
+
* By default, there will be a console prompt asking for an authorization code
|
|
106
|
+
* @throws {EpicgamesAPIError}
|
|
107
|
+
* @throws {EpicgamesGraphQLError}
|
|
108
|
+
*/
|
|
109
|
+
login(): Promise<void>;
|
|
110
|
+
/**
|
|
111
|
+
* Logs the client out.
|
|
112
|
+
* Also clears all caches, etc
|
|
113
|
+
*/
|
|
114
|
+
logout(): Promise<void>;
|
|
115
|
+
/**
|
|
116
|
+
* Restarts the client
|
|
117
|
+
*/
|
|
118
|
+
restart(): Promise<void>;
|
|
119
|
+
/**
|
|
120
|
+
* Initializes {@link Client#party}
|
|
121
|
+
* @param createNew Whether to create a new party
|
|
122
|
+
* @param forceNew Whether to force create a new party
|
|
123
|
+
*/
|
|
124
|
+
initParty(createNew?: boolean, forceNew?: boolean): Promise<void>;
|
|
125
|
+
/**
|
|
126
|
+
* Internal method that sets a {@link ClientParty} to the value of {@link Client#party}
|
|
127
|
+
* @param party The party
|
|
128
|
+
* @private
|
|
129
|
+
*/
|
|
130
|
+
setClientParty(party: Party): void;
|
|
131
|
+
/**
|
|
132
|
+
* Waits until the client is ready
|
|
133
|
+
* @param timeout How long to wait for until an error is thrown
|
|
134
|
+
*/
|
|
135
|
+
waitUntilReady(timeout?: number): Promise<void>;
|
|
136
|
+
/**
|
|
137
|
+
* Cleanup method
|
|
138
|
+
*/
|
|
139
|
+
private destroy;
|
|
140
|
+
/**
|
|
141
|
+
* Initializes the sweeping of cached objects
|
|
142
|
+
*/
|
|
143
|
+
private initCacheSweeping;
|
|
144
|
+
/**
|
|
145
|
+
* Updates the client's caches
|
|
146
|
+
*/
|
|
147
|
+
updateCaches(): Promise<void>;
|
|
148
|
+
/**
|
|
149
|
+
* Removes presences from the client's cache that are older than the max lifetime
|
|
150
|
+
* @param maxLifetime How old a presence cache entry must be before it can be sweeped (in seconds)
|
|
151
|
+
* @returns The amount of presences sweeped
|
|
152
|
+
*/
|
|
153
|
+
sweepPresences(maxLifetime?: number | undefined): number;
|
|
154
|
+
/**
|
|
155
|
+
* Removes users from the client's cache that are older than the max lifetime
|
|
156
|
+
* @param maxLifetime How old a user cache entry must be before it can be sweeped (in seconds)
|
|
157
|
+
* @returns The amount of users sweeped
|
|
158
|
+
*/
|
|
159
|
+
sweepUsers(maxLifetime?: number | undefined): number;
|
|
160
|
+
/**
|
|
161
|
+
* Wait until an event is emitted
|
|
162
|
+
* @param event The event that will be waited for
|
|
163
|
+
* @param timeout The timeout (in milliseconds)
|
|
164
|
+
* @param filter The filter for the event
|
|
165
|
+
*/
|
|
166
|
+
waitForEvent<U extends keyof ClientEvents>(event: U, timeout?: number, filter?: (...args: Parameters<ClientEvents[U]>) => boolean): Promise<Parameters<ClientEvents[U]>>;
|
|
167
|
+
/**
|
|
168
|
+
* Sets a timeout that will be automatically cancelled if the client is logged out
|
|
169
|
+
* @param fn Function to execute
|
|
170
|
+
* @param delay Time to wait before executing (in milliseconds)
|
|
171
|
+
* @param args Arguments for the function
|
|
172
|
+
*/
|
|
173
|
+
setTimeout(fn: (...args: any) => any, delay: number, ...args: any): NodeJS.Timeout;
|
|
174
|
+
/**
|
|
175
|
+
* Clears a timeout
|
|
176
|
+
* @param timeout Timeout to cancel
|
|
177
|
+
*/
|
|
178
|
+
clearTimeout(timeout: any): void;
|
|
179
|
+
/**
|
|
180
|
+
* Sets an interval that will be automatically cancelled if the client is logged out
|
|
181
|
+
* @param fn Function to execute
|
|
182
|
+
* @param delay Time to wait between executions (in milliseconds)
|
|
183
|
+
* @param args Arguments for the function
|
|
184
|
+
*/
|
|
185
|
+
setInterval(fn: (...args: any) => any, delay: number, ...args: any): NodeJS.Timeout;
|
|
186
|
+
/**
|
|
187
|
+
* Clears an interval.
|
|
188
|
+
* @param interval Interval to cancel
|
|
189
|
+
*/
|
|
190
|
+
clearInterval(interval: any): void;
|
|
191
|
+
static consoleQuestion(question: string): Promise<string>;
|
|
192
|
+
/**
|
|
193
|
+
* Debug a message using the methods set in the client config
|
|
194
|
+
* @param message Text to debug
|
|
195
|
+
* @param type Debug type (regular, http or xmpp)
|
|
196
|
+
*/
|
|
197
|
+
debug(message: string, type?: 'regular' | 'http' | 'xmpp' | 'eos-connect'): void;
|
|
198
|
+
/**
|
|
199
|
+
* Sets the clients XMPP status
|
|
200
|
+
* @param status The status
|
|
201
|
+
* @param onlineType The presence's online type (eg "away")
|
|
202
|
+
* @param friend A specific friend you want to send this status to
|
|
203
|
+
* @throws {FriendNotFoundError} The user does not exist or is not friends with the client
|
|
204
|
+
*/
|
|
205
|
+
setStatus(status?: string, onlineType?: PresenceOnlineType, friend?: string): void;
|
|
206
|
+
/**
|
|
207
|
+
* Resets the client's XMPP status and online type
|
|
208
|
+
*/
|
|
209
|
+
resetStatus(): Promise<void>;
|
|
210
|
+
/**
|
|
211
|
+
* Sends a party invitation to a friend
|
|
212
|
+
* @param friend The friend that will receive the invitation
|
|
213
|
+
* @throws {FriendNotFoundError} The user does not exist or is not friends with the client
|
|
214
|
+
* @throws {PartyAlreadyJoinedError} The user is already a member of this party
|
|
215
|
+
* @throws {PartyMaxSizeReachedError} The party reached its max size
|
|
216
|
+
* @throws {PartyNotFoundError} The client is not in party
|
|
217
|
+
* @throws {EpicgamesAPIError}
|
|
218
|
+
*/
|
|
219
|
+
invite(friend: string): Promise<import("..").SentPartyInvitation>;
|
|
220
|
+
/**
|
|
221
|
+
* Joins a party by its id
|
|
222
|
+
* @param id The party id
|
|
223
|
+
* @throws {PartyNotFoundError} The party wasn't found
|
|
224
|
+
* @throws {PartyPermissionError} The party cannot be fetched
|
|
225
|
+
* @throws {PartyMaxSizeReachedError} The party has reached its max size
|
|
226
|
+
* @throws {EpicgamesAPIError}
|
|
227
|
+
*/
|
|
228
|
+
joinParty(id: string): Promise<void>;
|
|
229
|
+
/**
|
|
230
|
+
* Creates a new party
|
|
231
|
+
* @param config The party config
|
|
232
|
+
* @throws {EpicgamesAPIError}
|
|
233
|
+
*/
|
|
234
|
+
createParty(config?: PartyConfig): Promise<void>;
|
|
235
|
+
/**
|
|
236
|
+
* Leaves the client's current party
|
|
237
|
+
* @param createNew Whether a new party should be created
|
|
238
|
+
* @throws {EpicgamesAPIError}
|
|
239
|
+
*/
|
|
240
|
+
leaveParty(createNew?: boolean): Promise<void>;
|
|
241
|
+
/**
|
|
242
|
+
* Sends a party join request to a friend.
|
|
243
|
+
* When the friend confirms this, a party invite will be sent to the client
|
|
244
|
+
* @param friend The friend
|
|
245
|
+
* @throws {FriendNotFoundError} The user does not exist or is not friends with the client
|
|
246
|
+
* @throws {PartyNotFoundError} The friend is not in a party
|
|
247
|
+
* @throws {EpicgamesAPIError}
|
|
248
|
+
*/
|
|
249
|
+
sendRequestToJoin(friend: string): Promise<SentPartyJoinRequest>;
|
|
250
|
+
/**
|
|
251
|
+
* Fetches the client's party
|
|
252
|
+
* @throws {EpicgamesAPIError}
|
|
253
|
+
*/
|
|
254
|
+
getClientParty(): Promise<ClientParty | undefined>;
|
|
255
|
+
/**
|
|
256
|
+
* Fetches a party by its id
|
|
257
|
+
* @param id The party's id
|
|
258
|
+
* @param raw Whether to return the raw party data
|
|
259
|
+
* @throws {PartyNotFoundError} The party wasn't found
|
|
260
|
+
* @throws {PartyPermissionError} The party cannot be fetched due to a permission error
|
|
261
|
+
* @throws {EpicgamesAPIError}
|
|
262
|
+
*/
|
|
263
|
+
getParty(id: string, raw?: boolean): Promise<Party | PartyData>;
|
|
264
|
+
/**
|
|
265
|
+
* Fetches the current Fortnite server status (lightswitch)
|
|
266
|
+
* @throws {EpicgamesAPIError}
|
|
267
|
+
*/
|
|
268
|
+
getFortniteServerStatus(): Promise<FortniteServerStatus>;
|
|
269
|
+
/**
|
|
270
|
+
* Fetches the current epicgames server status (https://status.epicgames.com/)
|
|
271
|
+
* @throws {AxiosError}
|
|
272
|
+
*/
|
|
273
|
+
getEpicgamesServerStatus(): Promise<EpicgamesServerStatus>;
|
|
274
|
+
/**
|
|
275
|
+
* Fetches the current Fortnite storefronts
|
|
276
|
+
* @param language The language
|
|
277
|
+
* @throws {EpicgamesAPIError}
|
|
278
|
+
*/
|
|
279
|
+
getStorefronts(language?: Language): Promise<any>;
|
|
280
|
+
/**
|
|
281
|
+
* Downloads a blurl stream (eg a radio station stream or a news video)
|
|
282
|
+
* @param id The stream ID
|
|
283
|
+
* @throws {AxiosError}
|
|
284
|
+
*/
|
|
285
|
+
downloadBlurlStream(id: string): Promise<BlurlStream>;
|
|
286
|
+
getBRStats(user: string, startTime?: number, endTime?: number): Promise<Stats>;
|
|
287
|
+
getBRStats(user: string[], startTime?: number, endTime?: number, stats?: string[]): Promise<Stats[]>;
|
|
288
|
+
/**
|
|
289
|
+
* Fetches the current Battle Royale news
|
|
290
|
+
* @param language The language of the news
|
|
291
|
+
* @param customPayload Extra data to send in the request body for a personalized news response (battle pass level, country, etc)
|
|
292
|
+
* @throws {EpicgamesAPIError}
|
|
293
|
+
*/
|
|
294
|
+
getBRNews(language?: "en", customPayload?: any): Promise<NewsMessage[]>;
|
|
295
|
+
/**
|
|
296
|
+
* Fetches data for a Support-A-Creator code
|
|
297
|
+
* @param code The Support-A-Creator code (slug)
|
|
298
|
+
* @throws {CreatorCodeNotFoundError} The Support-A-Creator code wasnt found
|
|
299
|
+
* @throws {EpicgamesAPIError}
|
|
300
|
+
*/
|
|
301
|
+
getCreatorCode(code: string): Promise<CreatorCode>;
|
|
302
|
+
/**
|
|
303
|
+
* Fetches the current Fortnite Battle Royale radio stations
|
|
304
|
+
* @throws {EpicgamesAPIError}
|
|
305
|
+
*/
|
|
306
|
+
getRadioStations(): Promise<RadioStation[]>;
|
|
307
|
+
/**
|
|
308
|
+
* Fetches the current Battle Royale event flags
|
|
309
|
+
* @param language The language
|
|
310
|
+
* @throws {EpicgamesAPIError}
|
|
311
|
+
*/
|
|
312
|
+
getBREventFlags(language?: Language): Promise<any>;
|
|
313
|
+
/**
|
|
314
|
+
* Fetches the Battle Royale account level for one or multiple users
|
|
315
|
+
* @param user The id(s) and/or display name(s) of the user(s) to fetch the account level for
|
|
316
|
+
* @param seasonNumber The season number (eg. 16, 17, 18)
|
|
317
|
+
* @throws {UserNotFoundError} The user wasn't found
|
|
318
|
+
* @throws {StatsPrivacyError} The user set their stats to private
|
|
319
|
+
* @throws {EpicgamesAPIError}
|
|
320
|
+
*/
|
|
321
|
+
getBRAccountLevel(user: string | string[], seasonNumber: number): Promise<BRAccountLevelData[]>;
|
|
322
|
+
/**
|
|
323
|
+
* Fetches the storefront keychain
|
|
324
|
+
* @throws {EpicgamesAPIError}
|
|
325
|
+
*/
|
|
326
|
+
getStorefrontKeychain(): Promise<string[]>;
|
|
327
|
+
/**
|
|
328
|
+
* Fetches a creative island by its code
|
|
329
|
+
* @param code The island code
|
|
330
|
+
* @throws {CreativeIslandNotFoundError} A creative island with the provided code does not exist
|
|
331
|
+
* @throws {EpicgamesAPIError}
|
|
332
|
+
*/
|
|
333
|
+
getCreativeIsland(code: string): Promise<CreativeIslandData>;
|
|
334
|
+
/**
|
|
335
|
+
* Fetches the creative discovery surface
|
|
336
|
+
* @param gameVersion The current game version (MAJOR.MINOR)
|
|
337
|
+
* @throws {EpicgamesAPIError}
|
|
338
|
+
*/
|
|
339
|
+
getCreativeDiscoveryPanels(gameVersion: string | undefined, region: Region): Promise<CreativeDiscoveryPanel[]>;
|
|
340
|
+
}
|
|
341
|
+
export default Client;
|