@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,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const BasePendingFriend_1 = tslib_1.__importDefault(require("./BasePendingFriend"));
|
|
5
|
+
/**
|
|
6
|
+
* Represents an incoming friendship request
|
|
7
|
+
*/
|
|
8
|
+
class IncomingPendingFriend extends BasePendingFriend_1.default {
|
|
9
|
+
constructor(client, data) {
|
|
10
|
+
super(client, data);
|
|
11
|
+
this.direction = 'INCOMING';
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Accepts this incoming pending friend request
|
|
15
|
+
* @throws {UserNotFoundError} The user wasn't found
|
|
16
|
+
* @throws {DuplicateFriendshipError} The user is already friends with the client
|
|
17
|
+
* @throws {InviterFriendshipsLimitExceededError} The client's friendship limit is reached
|
|
18
|
+
* @throws {InviteeFriendshipsLimitExceededError} The user's friendship limit is reached
|
|
19
|
+
* @throws {InviteeFriendshipSettingsError} The user disabled friend requests
|
|
20
|
+
* @throws {EpicgamesAPIError}
|
|
21
|
+
*/
|
|
22
|
+
async accept() {
|
|
23
|
+
return this.client.friend.add(this.id);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Declines this incoming pending friend request
|
|
27
|
+
* @throws {UserNotFoundError} The user wasn't found
|
|
28
|
+
* @throws {FriendNotFoundError} The user is not friends with the client
|
|
29
|
+
* @throws {EpicgamesAPIError}
|
|
30
|
+
*/
|
|
31
|
+
async decline() {
|
|
32
|
+
return this.client.friend.remove(this.id);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.default = IncomingPendingFriend;
|
|
36
|
+
//# sourceMappingURL=IncomingPendingFriend.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IncomingPendingFriend.js","sourceRoot":"","sources":["../../../../src/structures/friend/IncomingPendingFriend.ts"],"names":[],"mappings":";;;AAAA,oFAAoD;AAIpD;;GAEG;AACH,MAAM,qBAAsB,SAAQ,2BAAiB;IACnD,YAAY,MAAc,EAAE,IAAuB;QACjD,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAEpB,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC;IAC9B,CAAC;IAED;;;;;;;;OAQG;IACI,KAAK,CAAC,MAAM;QACjB,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACzC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,OAAO;QAClB,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC5C,CAAC;CACF;AAED,kBAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import BasePendingFriend from './BasePendingFriend';
|
|
2
|
+
import type { PendingFriendData } from '../../../resources/structs';
|
|
3
|
+
import type Client from '../../Client';
|
|
4
|
+
/**
|
|
5
|
+
* Represents an outgoing pending friendship request
|
|
6
|
+
*/
|
|
7
|
+
declare class OutgoingPendingFriend extends BasePendingFriend {
|
|
8
|
+
constructor(client: Client, data: PendingFriendData);
|
|
9
|
+
/**
|
|
10
|
+
* Cancels this outgoing pending friend request
|
|
11
|
+
* @throws {UserNotFoundError} The user wasn't found
|
|
12
|
+
* @throws {FriendNotFoundError} The user is not friends with the client
|
|
13
|
+
* @throws {EpicgamesAPIError}
|
|
14
|
+
*/
|
|
15
|
+
abort(): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
export default OutgoingPendingFriend;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const BasePendingFriend_1 = tslib_1.__importDefault(require("./BasePendingFriend"));
|
|
5
|
+
/**
|
|
6
|
+
* Represents an outgoing pending friendship request
|
|
7
|
+
*/
|
|
8
|
+
class OutgoingPendingFriend extends BasePendingFriend_1.default {
|
|
9
|
+
constructor(client, data) {
|
|
10
|
+
super(client, data);
|
|
11
|
+
this.direction = 'OUTGOING';
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Cancels this outgoing pending friend request
|
|
15
|
+
* @throws {UserNotFoundError} The user wasn't found
|
|
16
|
+
* @throws {FriendNotFoundError} The user is not friends with the client
|
|
17
|
+
* @throws {EpicgamesAPIError}
|
|
18
|
+
*/
|
|
19
|
+
async abort() {
|
|
20
|
+
return this.client.friend.remove(this.id);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.default = OutgoingPendingFriend;
|
|
24
|
+
//# sourceMappingURL=OutgoingPendingFriend.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OutgoingPendingFriend.js","sourceRoot":"","sources":["../../../../src/structures/friend/OutgoingPendingFriend.ts"],"names":[],"mappings":";;;AAAA,oFAAoD;AAIpD;;GAEG;AACH,MAAM,qBAAsB,SAAQ,2BAAiB;IACnD,YAAY,MAAc,EAAE,IAAuB;QACjD,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAEpB,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC;IAC9B,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,KAAK;QAChB,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC5C,CAAC;CACF;AAED,kBAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import BaseFriendMessage from './BaseFriendMessage';
|
|
2
|
+
import type Friend from './Friend';
|
|
3
|
+
import type Client from '../../Client';
|
|
4
|
+
import type { MessageData } from '../../../resources/structs';
|
|
5
|
+
/**
|
|
6
|
+
* Represents a received friend whisper message
|
|
7
|
+
*/
|
|
8
|
+
declare class ReceivedFriendMessage extends BaseFriendMessage {
|
|
9
|
+
/**
|
|
10
|
+
* The message's author
|
|
11
|
+
*/
|
|
12
|
+
author: Friend;
|
|
13
|
+
/**
|
|
14
|
+
* @param client The main client
|
|
15
|
+
* @param data The message's data
|
|
16
|
+
*/
|
|
17
|
+
constructor(client: Client, data: MessageData & {
|
|
18
|
+
author: Friend;
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* Replies to this whisper message
|
|
22
|
+
* @param content The message that will be sent
|
|
23
|
+
* @throws {FriendNotFoundError} The user is not friends with the client
|
|
24
|
+
*/
|
|
25
|
+
reply(content: string): Promise<import("./SentFriendMessage").default>;
|
|
26
|
+
}
|
|
27
|
+
export default ReceivedFriendMessage;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const BaseFriendMessage_1 = tslib_1.__importDefault(require("./BaseFriendMessage"));
|
|
5
|
+
/**
|
|
6
|
+
* Represents a received friend whisper message
|
|
7
|
+
*/
|
|
8
|
+
class ReceivedFriendMessage extends BaseFriendMessage_1.default {
|
|
9
|
+
/**
|
|
10
|
+
* @param client The main client
|
|
11
|
+
* @param data The message's data
|
|
12
|
+
*/
|
|
13
|
+
constructor(client, data) {
|
|
14
|
+
super(client, data);
|
|
15
|
+
this.author = data.author;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Replies to this whisper message
|
|
19
|
+
* @param content The message that will be sent
|
|
20
|
+
* @throws {FriendNotFoundError} The user is not friends with the client
|
|
21
|
+
*/
|
|
22
|
+
reply(content) {
|
|
23
|
+
return this.client.friend.sendMessage(this.author.id, content);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.default = ReceivedFriendMessage;
|
|
27
|
+
//# sourceMappingURL=ReceivedFriendMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReceivedFriendMessage.js","sourceRoot":"","sources":["../../../../src/structures/friend/ReceivedFriendMessage.ts"],"names":[],"mappings":";;;AAAA,oFAAoD;AAKpD;;GAEG;AACH,MAAM,qBAAsB,SAAQ,2BAAiB;IAMnD;;;OAGG;IACH,YAAY,MAAc,EAAE,IAAuC;QACjE,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAEpB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAC5B,CAAC;IAED;;;;OAIG;IACa,KAAK,CAAC,OAAe;QACnC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF;AAED,kBAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import BaseFriendMessage from './BaseFriendMessage';
|
|
2
|
+
import type ClientUser from '../user/ClientUser';
|
|
3
|
+
import type Client from '../../Client';
|
|
4
|
+
import type { MessageData } from '../../../resources/structs';
|
|
5
|
+
/**
|
|
6
|
+
* Represents a sent friend whisper message
|
|
7
|
+
*/
|
|
8
|
+
declare class SentFriendMessage extends BaseFriendMessage {
|
|
9
|
+
/**
|
|
10
|
+
* The message's author
|
|
11
|
+
*/
|
|
12
|
+
author: ClientUser;
|
|
13
|
+
/**
|
|
14
|
+
* @param client The main client
|
|
15
|
+
* @param data The message's data
|
|
16
|
+
*/
|
|
17
|
+
constructor(client: Client, data: MessageData & {
|
|
18
|
+
author: ClientUser;
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
export default SentFriendMessage;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const BaseFriendMessage_1 = tslib_1.__importDefault(require("./BaseFriendMessage"));
|
|
5
|
+
/**
|
|
6
|
+
* Represents a sent friend whisper message
|
|
7
|
+
*/
|
|
8
|
+
class SentFriendMessage extends BaseFriendMessage_1.default {
|
|
9
|
+
/**
|
|
10
|
+
* @param client The main client
|
|
11
|
+
* @param data The message's data
|
|
12
|
+
*/
|
|
13
|
+
constructor(client, data) {
|
|
14
|
+
super(client, data);
|
|
15
|
+
this.author = data.author;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.default = SentFriendMessage;
|
|
19
|
+
//# sourceMappingURL=SentFriendMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SentFriendMessage.js","sourceRoot":"","sources":["../../../../src/structures/friend/SentFriendMessage.ts"],"names":[],"mappings":";;;AAAA,oFAAoD;AAKpD;;GAEG;AACH,MAAM,iBAAkB,SAAQ,2BAAiB;IAM/C;;;KAGC;IACD,YAAY,MAAc,EAAE,IAA2C;QACrE,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAEpB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAC5B,CAAC;CACF;AAED,kBAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import Base from '../../Base';
|
|
2
|
+
import type Client from '../../Client';
|
|
3
|
+
import type ClientParty from './ClientParty';
|
|
4
|
+
import type ClientUser from '../user/ClientUser';
|
|
5
|
+
import type Friend from '../friend/Friend';
|
|
6
|
+
import type Party from './Party';
|
|
7
|
+
/**
|
|
8
|
+
* Represents a party invitation (either incoming or outgoing)
|
|
9
|
+
*/
|
|
10
|
+
declare abstract class BasePartyInvitation extends Base {
|
|
11
|
+
/**
|
|
12
|
+
* The party this invitation belongs to
|
|
13
|
+
*/
|
|
14
|
+
party: Party | ClientParty;
|
|
15
|
+
/**
|
|
16
|
+
* The party this invitation belongs to
|
|
17
|
+
*/
|
|
18
|
+
sender: Friend | ClientUser;
|
|
19
|
+
/**
|
|
20
|
+
* The creation date of this invitation
|
|
21
|
+
*/
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
/**
|
|
24
|
+
* The expiration date of this invitation
|
|
25
|
+
*/
|
|
26
|
+
expiresAt: Date;
|
|
27
|
+
/**
|
|
28
|
+
* Whether this invitation got accepted / declined / aborted
|
|
29
|
+
*/
|
|
30
|
+
isHandled: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The friend (or the client user) who received this invitation
|
|
33
|
+
*/
|
|
34
|
+
receiver: Friend | ClientUser;
|
|
35
|
+
/**
|
|
36
|
+
* @param client The main client
|
|
37
|
+
* @param party The party this invitation belongs to
|
|
38
|
+
* @param sender The friend (or the client user) who sent this invitation
|
|
39
|
+
* @param receiver The friend (or the client user) who received this invitation
|
|
40
|
+
* @param data The invitation data
|
|
41
|
+
*/
|
|
42
|
+
constructor(client: Client, party: Party | ClientParty, sender: Friend | ClientUser, receiver: Friend | ClientUser, data: any);
|
|
43
|
+
/**
|
|
44
|
+
* Whether this invitation expired
|
|
45
|
+
*/
|
|
46
|
+
get isExpired(): boolean;
|
|
47
|
+
}
|
|
48
|
+
export default BasePartyInvitation;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const Base_1 = tslib_1.__importDefault(require("../../Base"));
|
|
5
|
+
/**
|
|
6
|
+
* Represents a party invitation (either incoming or outgoing)
|
|
7
|
+
*/
|
|
8
|
+
class BasePartyInvitation extends Base_1.default {
|
|
9
|
+
/**
|
|
10
|
+
* @param client The main client
|
|
11
|
+
* @param party The party this invitation belongs to
|
|
12
|
+
* @param sender The friend (or the client user) who sent this invitation
|
|
13
|
+
* @param receiver The friend (or the client user) who received this invitation
|
|
14
|
+
* @param data The invitation data
|
|
15
|
+
*/
|
|
16
|
+
constructor(client, party, sender, receiver, data) {
|
|
17
|
+
super(client);
|
|
18
|
+
this.party = party;
|
|
19
|
+
this.sender = sender;
|
|
20
|
+
this.receiver = receiver;
|
|
21
|
+
this.createdAt = new Date(data.sent_at);
|
|
22
|
+
this.expiresAt = new Date(data.expires_at);
|
|
23
|
+
this.isHandled = false;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Whether this invitation expired
|
|
27
|
+
*/
|
|
28
|
+
get isExpired() {
|
|
29
|
+
return Date.now() > this.expiresAt.getTime();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.default = BasePartyInvitation;
|
|
33
|
+
//# sourceMappingURL=BasePartyInvitation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasePartyInvitation.js","sourceRoot":"","sources":["../../../../src/structures/party/BasePartyInvitation.ts"],"names":[],"mappings":";;;AAAA,8DAA8B;AAO9B;;GAEG;AACH,MAAe,mBAAoB,SAAQ,cAAI;IA+B7C;;;;;;OAMG;IACH,YAAY,MAAc,EAAE,KAA0B,EAAE,MAA2B,EAAE,QAA6B,EAAE,IAAS;QAC3H,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;IAC/C,CAAC;CACF;AAED,kBAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import Base from '../../Base';
|
|
2
|
+
import type Client from '../../Client';
|
|
3
|
+
import type ClientUser from '../user/ClientUser';
|
|
4
|
+
import type Friend from '../friend/Friend';
|
|
5
|
+
/**
|
|
6
|
+
* Represents an incoming or outgoing party join request
|
|
7
|
+
*/
|
|
8
|
+
declare abstract class BasePartyJoinRequest extends Base {
|
|
9
|
+
/**
|
|
10
|
+
* The user who requested to join the party
|
|
11
|
+
*/
|
|
12
|
+
sender: Friend | ClientUser;
|
|
13
|
+
/**
|
|
14
|
+
* The user who received the join request
|
|
15
|
+
*/
|
|
16
|
+
receiver: Friend | ClientUser;
|
|
17
|
+
/**
|
|
18
|
+
* The creation date of the request
|
|
19
|
+
*/
|
|
20
|
+
createdAt: Date;
|
|
21
|
+
/**
|
|
22
|
+
* The expiration date of the request
|
|
23
|
+
*/
|
|
24
|
+
expiresAt: Date;
|
|
25
|
+
/**
|
|
26
|
+
* @param client The main client
|
|
27
|
+
* @param sender The user who requested to join the party
|
|
28
|
+
* @param receiver The user who received the join request
|
|
29
|
+
* @param data The party confirmation data
|
|
30
|
+
*/
|
|
31
|
+
constructor(client: Client, sender: Friend | ClientUser, receiver: Friend | ClientUser, data: any);
|
|
32
|
+
/**
|
|
33
|
+
* Whether this join request expired
|
|
34
|
+
*/
|
|
35
|
+
get isExpired(): boolean;
|
|
36
|
+
}
|
|
37
|
+
export default BasePartyJoinRequest;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const Base_1 = tslib_1.__importDefault(require("../../Base"));
|
|
5
|
+
/**
|
|
6
|
+
* Represents an incoming or outgoing party join request
|
|
7
|
+
*/
|
|
8
|
+
class BasePartyJoinRequest extends Base_1.default {
|
|
9
|
+
/**
|
|
10
|
+
* @param client The main client
|
|
11
|
+
* @param sender The user who requested to join the party
|
|
12
|
+
* @param receiver The user who received the join request
|
|
13
|
+
* @param data The party confirmation data
|
|
14
|
+
*/
|
|
15
|
+
constructor(client, sender, receiver, data) {
|
|
16
|
+
super(client);
|
|
17
|
+
this.sender = sender;
|
|
18
|
+
this.receiver = receiver;
|
|
19
|
+
this.createdAt = new Date(data.sent_at);
|
|
20
|
+
this.expiresAt = new Date(data.expires_at);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Whether this join request expired
|
|
24
|
+
*/
|
|
25
|
+
get isExpired() {
|
|
26
|
+
return Date.now() > this.expiresAt.getTime();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.default = BasePartyJoinRequest;
|
|
30
|
+
//# sourceMappingURL=BasePartyJoinRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasePartyJoinRequest.js","sourceRoot":"","sources":["../../../../src/structures/party/BasePartyJoinRequest.ts"],"names":[],"mappings":";;;AAAA,8DAA8B;AAK9B;;GAEG;AACH,MAAe,oBAAqB,SAAQ,cAAI;IAqB9C;;;;;OAKG;IACH,YAAY,MAAc,EAAE,MAA2B,EAAE,QAA6B,EAAE,IAAS;QAC/F,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7C,CAAC;IAED;;OAEG;IACH,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;IAC/C,CAAC;CACF;AAED,kBAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { Collection } from '@discordjs/collection';
|
|
2
|
+
import ClientPartyMeta from './ClientPartyMeta';
|
|
3
|
+
import Party from './Party';
|
|
4
|
+
import PartyChat from './PartyChat';
|
|
5
|
+
import SentPartyInvitation from './SentPartyInvitation';
|
|
6
|
+
import type PartyMemberConfirmation from './PartyMemberConfirmation';
|
|
7
|
+
import type ClientPartyMember from './ClientPartyMember';
|
|
8
|
+
import type Client from '../../Client';
|
|
9
|
+
import type { Island, PartyData, PartyPrivacy, PartySchema } from '../../../resources/structs';
|
|
10
|
+
/**
|
|
11
|
+
* Represents a party that the client is a member of
|
|
12
|
+
*/
|
|
13
|
+
declare class ClientParty extends Party {
|
|
14
|
+
/**
|
|
15
|
+
* The party patch queue
|
|
16
|
+
*/
|
|
17
|
+
private patchQueue;
|
|
18
|
+
/**
|
|
19
|
+
* The party text chat
|
|
20
|
+
*/
|
|
21
|
+
chat: PartyChat;
|
|
22
|
+
/**
|
|
23
|
+
* The party's meta
|
|
24
|
+
*/
|
|
25
|
+
meta: ClientPartyMeta;
|
|
26
|
+
/**
|
|
27
|
+
* The hidden member ids
|
|
28
|
+
*/
|
|
29
|
+
hiddenMemberIds: Set<string>;
|
|
30
|
+
/**
|
|
31
|
+
* The pending member confirmations
|
|
32
|
+
*/
|
|
33
|
+
pendingMemberConfirmations: Collection<string, PartyMemberConfirmation>;
|
|
34
|
+
/**
|
|
35
|
+
* @param client The main client
|
|
36
|
+
* @param data The party's data
|
|
37
|
+
*/
|
|
38
|
+
constructor(client: Client, data: PartyData | Party);
|
|
39
|
+
/**
|
|
40
|
+
* Returns the client's party member
|
|
41
|
+
*/
|
|
42
|
+
get me(): ClientPartyMember;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the party is private
|
|
45
|
+
*/
|
|
46
|
+
get isPrivate(): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Leaves this party
|
|
49
|
+
* @param createNew Whether a new party should be created
|
|
50
|
+
* @throws {EpicgamesAPIError}
|
|
51
|
+
*/
|
|
52
|
+
leave(createNew?: boolean): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* Sends a party patch to Epicgames' servers
|
|
55
|
+
* @param updated The updated schema
|
|
56
|
+
* @param deleted The deleted schema keys
|
|
57
|
+
* @throws {PartyPermissionError} You're not the leader of this party
|
|
58
|
+
* @throws {EpicgamesAPIError}
|
|
59
|
+
*/
|
|
60
|
+
sendPatch(updated: PartySchema, deleted?: (keyof PartySchema & string)[]): Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Kicks a member from this party
|
|
63
|
+
* @param member The member that should be kicked
|
|
64
|
+
* @throws {PartyPermissionError} The client is not the leader of the party
|
|
65
|
+
* @throws {PartyMemberNotFoundError} The party member wasn't found
|
|
66
|
+
* @throws {EpicgamesAPIError}
|
|
67
|
+
*/
|
|
68
|
+
kick(member: string): Promise<void>;
|
|
69
|
+
/**
|
|
70
|
+
* Sends a party invitation to a friend
|
|
71
|
+
* @param friend The friend that will receive the invitation
|
|
72
|
+
* @throws {FriendNotFoundError} The user is not friends with the client
|
|
73
|
+
* @throws {PartyAlreadyJoinedError} The user is already a member of this party
|
|
74
|
+
* @throws {PartyMaxSizeReachedError} The party reached its max size
|
|
75
|
+
* @throws {EpicgamesAPIError}
|
|
76
|
+
*/
|
|
77
|
+
invite(friend: string): Promise<SentPartyInvitation>;
|
|
78
|
+
/**
|
|
79
|
+
* Refreshes the member positions of this party
|
|
80
|
+
* @throws {PartyPermissionError} The client is not the leader of the party
|
|
81
|
+
* @throws {EpicgamesAPIError}
|
|
82
|
+
*/
|
|
83
|
+
refreshSquadAssignments(): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Sends a message to the party chat
|
|
86
|
+
* @param content The message that will be sent
|
|
87
|
+
*/
|
|
88
|
+
sendMessage(content: string): Promise<import("./PartyMessage").default>;
|
|
89
|
+
/**
|
|
90
|
+
* Ban a member from this party chat
|
|
91
|
+
* @param member The member that should be banned
|
|
92
|
+
*/
|
|
93
|
+
chatBan(member: string): Promise<void>;
|
|
94
|
+
/**
|
|
95
|
+
* Updates this party's privacy settings
|
|
96
|
+
* @param privacy The updated party privacy
|
|
97
|
+
* @param sendPatch Whether the updated privacy should be sent to epic's servers
|
|
98
|
+
* @throws {PartyPermissionError} The client is not the leader of the party
|
|
99
|
+
* @throws {EpicgamesAPIError}
|
|
100
|
+
*/
|
|
101
|
+
setPrivacy(privacy: PartyPrivacy, sendPatch?: boolean): Promise<{
|
|
102
|
+
updated: PartySchema;
|
|
103
|
+
deleted: ("Default:ActivityName_s" | "Default:ActivityType_s" | "Default:AllowJoinInProgress_b" | "Default:AthenaPrivateMatch_b" | "Default:AthenaSquadFill_b" | "Default:CampaignInfo_j" | "Default:CreativeDiscoverySurfaceRevisions_j" | "Default:CreativePortalCountdownStartTime_s" | "Default:CurrentRegionId_s" | "Default:CustomMatchKey_s" | "Default:FortCommonMatchmakingData_j" | "Default:FortMatchmakingMemberData_j" | "Default:GameSessionKey_s" | "Default:LFGTime_s" | "Default:MatchmakingInfoString_s" | "Default:PartyIsJoinedInProgress_b" | "Default:PartyMatchmakingInfo_j" | "Default:PartyState_s" | "Default:PlatformSessions_j" | "Default:PlaylistData_j" | "Default:PrimaryGameSessionId_s" | "Default:PrivacySettings_j" | "Default:RawSquadAssignments_j" | "Default:RegionId_s" | "Default:SelectedIsland_j" | "Default:TileStates_j" | "Default:ZoneInstanceId_s" | "urn:epic:cfg:accepting-members_b" | "urn:epic:cfg:build-id_s" | "urn:epic:cfg:can-join_b" | "urn:epic:cfg:chat-enabled_b" | "urn:epic:cfg:invite-perm_s" | "urn:epic:cfg:join-request-action_s" | "urn:epic:cfg:party-type-id_s" | "urn:epic:cfg:presence-perm_s" | "VoiceChat:implementation_s" | "urn:epic:cfg:not-accepting-members" | "urn:epic:cfg:not-accepting-members-reason_i")[];
|
|
104
|
+
}>;
|
|
105
|
+
/**
|
|
106
|
+
* Sets this party's custom matchmaking key
|
|
107
|
+
* @param key The custom matchmaking key
|
|
108
|
+
* @throws {PartyPermissionError} The client is not the leader of the party
|
|
109
|
+
* @throws {EpicgamesAPIError}
|
|
110
|
+
*/
|
|
111
|
+
setCustomMatchmakingKey(key?: string): Promise<void>;
|
|
112
|
+
/**
|
|
113
|
+
* Promotes a party member
|
|
114
|
+
* @param member The member that should be promoted
|
|
115
|
+
* @throws {PartyPermissionError} The client is not the leader of the party
|
|
116
|
+
* @throws {PartyMemberNotFoundError} The party member wasn't found
|
|
117
|
+
* @throws {EpicgamesAPIError}
|
|
118
|
+
*/
|
|
119
|
+
promote(member: string): Promise<void>;
|
|
120
|
+
/**
|
|
121
|
+
* Hides / Unhides a single party member
|
|
122
|
+
* @param member The member that should be hidden
|
|
123
|
+
* @param hide Whether the member should be hidden
|
|
124
|
+
* @throws {PartyPermissionError} The client is not the leader of the party
|
|
125
|
+
* @throws {PartyMemberNotFoundError} The party member wasn't found
|
|
126
|
+
* @throws {EpicgamesAPIError}
|
|
127
|
+
*/
|
|
128
|
+
hideMember(member: string, hide?: boolean): Promise<void>;
|
|
129
|
+
/**
|
|
130
|
+
* Hides / Unhides all party members except for the client
|
|
131
|
+
* @param hide Whether all members should be hidden
|
|
132
|
+
* @throws {PartyPermissionError} The client is not the leader of the party
|
|
133
|
+
* @throws {EpicgamesAPIError}
|
|
134
|
+
*/
|
|
135
|
+
hideMembers(hide?: boolean): Promise<void>;
|
|
136
|
+
/**
|
|
137
|
+
* Updates the party's playlist
|
|
138
|
+
* @param mnemonic The new mnemonic (Playlist id or island code, for example: playlist_defaultduo or 1111-1111-1111)
|
|
139
|
+
* @param regionId The new region id
|
|
140
|
+
* @param version The new version
|
|
141
|
+
* @param options Playlist options
|
|
142
|
+
* @throws {PartyPermissionError} The client is not the leader of the party
|
|
143
|
+
* @throws {EpicgamesAPIError}
|
|
144
|
+
*/
|
|
145
|
+
setPlaylist(mnemonic: string, regionId?: string, version?: number, options?: Omit<Island, 'linkId'>): Promise<void>;
|
|
146
|
+
/**
|
|
147
|
+
* Updates the squad fill status of this party
|
|
148
|
+
* @param fill Whether fill is enable or not
|
|
149
|
+
* @throws {PartyPermissionError} The client is not the leader of the party
|
|
150
|
+
* @throws {EpicgamesAPIError}
|
|
151
|
+
*/
|
|
152
|
+
setSquadFill(fill?: boolean): Promise<void>;
|
|
153
|
+
/**
|
|
154
|
+
* Updates the party's max member count
|
|
155
|
+
* @param maxSize The new party max size (1-16)
|
|
156
|
+
* @throws {PartyPermissionError} The client is not the leader of the party
|
|
157
|
+
* @throws {RangeError} The new max member size must be between 1 and 16 (inclusive) and more than the current member count
|
|
158
|
+
* @throws {EpicgamesAPIError}
|
|
159
|
+
*/
|
|
160
|
+
setMaxSize(maxSize: number): Promise<void>;
|
|
161
|
+
}
|
|
162
|
+
export default ClientParty;
|