@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,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Represets an error thrown because an event timeout was exceeded
|
|
5
|
+
*/
|
|
6
|
+
class EventTimeoutError extends Error {
|
|
7
|
+
/**
|
|
8
|
+
* @param event The query which resulted in this error
|
|
9
|
+
* @param timeout The timeout in milliseconds
|
|
10
|
+
*/
|
|
11
|
+
constructor(event, timeout) {
|
|
12
|
+
super();
|
|
13
|
+
this.name = 'EventTimeoutError';
|
|
14
|
+
this.message = `Timeout of ${timeout}ms exceeded while waiting for the event "${event}"`;
|
|
15
|
+
this.event = event;
|
|
16
|
+
this.timeout = timeout;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.default = EventTimeoutError;
|
|
20
|
+
//# sourceMappingURL=EventTimeoutError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventTimeoutError.js","sourceRoot":"","sources":["../../../src/exceptions/EventTimeoutError.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,MAAM,iBAAkB,SAAQ,KAAK;IAWnC;;;OAGG;IACH,YAAY,KAAa,EAAE,OAAe;QACxC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,cAAc,OAAO,4CAA4C,KAAK,GAAG,CAAC;QAEzF,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AAED,kBAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represets an error thrown because a friend does not exist
|
|
3
|
+
*/
|
|
4
|
+
declare class FriendNotFoundError extends Error {
|
|
5
|
+
/**
|
|
6
|
+
* The query which resulted in this error
|
|
7
|
+
*/
|
|
8
|
+
query: string;
|
|
9
|
+
/**
|
|
10
|
+
* @param query The query which resulted in this error
|
|
11
|
+
*/
|
|
12
|
+
constructor(query: string);
|
|
13
|
+
}
|
|
14
|
+
export default FriendNotFoundError;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Represets an error thrown because a friend does not exist
|
|
5
|
+
*/
|
|
6
|
+
class FriendNotFoundError extends Error {
|
|
7
|
+
/**
|
|
8
|
+
* @param query The query which resulted in this error
|
|
9
|
+
*/
|
|
10
|
+
constructor(query) {
|
|
11
|
+
super();
|
|
12
|
+
this.name = 'FriendNotFoundError';
|
|
13
|
+
this.message = `The friend "${query}" does not exist`;
|
|
14
|
+
this.query = query;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.default = FriendNotFoundError;
|
|
18
|
+
//# sourceMappingURL=FriendNotFoundError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FriendNotFoundError.js","sourceRoot":"","sources":["../../../src/exceptions/FriendNotFoundError.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,MAAM,mBAAoB,SAAQ,KAAK;IAMrC;;OAEG;IACH,YAAY,KAAa;QACvB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,eAAe,KAAK,kBAAkB,CAAC;QAEtD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAED,kBAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represets an error thrown because a friendship request has already been sent
|
|
3
|
+
*/
|
|
4
|
+
declare class FriendshipRequestAlreadySentError extends Error {
|
|
5
|
+
/**
|
|
6
|
+
* The query which resulted in this error
|
|
7
|
+
*/
|
|
8
|
+
query: string;
|
|
9
|
+
/**
|
|
10
|
+
* @param query The query which resulted in this error
|
|
11
|
+
*/
|
|
12
|
+
constructor(query: string);
|
|
13
|
+
}
|
|
14
|
+
export default FriendshipRequestAlreadySentError;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Represets an error thrown because a friendship request has already been sent
|
|
5
|
+
*/
|
|
6
|
+
class FriendshipRequestAlreadySentError extends Error {
|
|
7
|
+
/**
|
|
8
|
+
* @param query The query which resulted in this error
|
|
9
|
+
*/
|
|
10
|
+
constructor(query) {
|
|
11
|
+
super();
|
|
12
|
+
this.name = 'FriendshipRequestAlreadySentError';
|
|
13
|
+
this.message = `The client already sent a friendship request to "${query}"`;
|
|
14
|
+
this.query = query;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.default = FriendshipRequestAlreadySentError;
|
|
18
|
+
//# sourceMappingURL=FriendshipRequestAlreadySentError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FriendshipRequestAlreadySentError.js","sourceRoot":"","sources":["../../../src/exceptions/FriendshipRequestAlreadySentError.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,MAAM,iCAAkC,SAAQ,KAAK;IAMnD;;OAEG;IACH,YAAY,KAAa;QACvB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,mCAAmC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,oDAAoD,KAAK,GAAG,CAAC;QAE5E,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAED,kBAAe,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represets an error thrown because the friendship invitee reached their friendship requests limit
|
|
3
|
+
*/
|
|
4
|
+
declare class InviteeFriendshipRequestLimitExceededError extends Error {
|
|
5
|
+
/**
|
|
6
|
+
* The query which resulted in this error
|
|
7
|
+
*/
|
|
8
|
+
query: string;
|
|
9
|
+
/**
|
|
10
|
+
* @param query The query which resulted in this error
|
|
11
|
+
*/
|
|
12
|
+
constructor(query: string);
|
|
13
|
+
}
|
|
14
|
+
export default InviteeFriendshipRequestLimitExceededError;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Represets an error thrown because the friendship invitee reached their friendship requests limit
|
|
5
|
+
*/
|
|
6
|
+
class InviteeFriendshipRequestLimitExceededError extends Error {
|
|
7
|
+
/**
|
|
8
|
+
* @param query The query which resulted in this error
|
|
9
|
+
*/
|
|
10
|
+
constructor(query) {
|
|
11
|
+
super();
|
|
12
|
+
this.name = 'InviteeFriendshipRequestLimitExceededError';
|
|
13
|
+
this.message = `The user ${query} reached their friendship requests limit`;
|
|
14
|
+
this.query = query;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.default = InviteeFriendshipRequestLimitExceededError;
|
|
18
|
+
//# sourceMappingURL=InviteeFriendshipRequestLimitExceededError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InviteeFriendshipRequestLimitExceededError.js","sourceRoot":"","sources":["../../../src/exceptions/InviteeFriendshipRequestLimitExceededError.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,MAAM,0CAA2C,SAAQ,KAAK;IAM5D;;OAEG;IACH,YAAY,KAAa;QACvB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,4CAA4C,CAAC;QACzD,IAAI,CAAC,OAAO,GAAG,YAAY,KAAK,0CAA0C,CAAC;QAE3E,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAED,kBAAe,0CAA0C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represets an error thrown because the friendship invitee does disabled friendship requests
|
|
3
|
+
*/
|
|
4
|
+
declare class InviteeFriendshipSettingsError extends Error {
|
|
5
|
+
/**
|
|
6
|
+
* The query which resulted in this error
|
|
7
|
+
*/
|
|
8
|
+
query: string;
|
|
9
|
+
/**
|
|
10
|
+
* @param query The query which resulted in this error
|
|
11
|
+
*/
|
|
12
|
+
constructor(query: string);
|
|
13
|
+
}
|
|
14
|
+
export default InviteeFriendshipSettingsError;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Represets an error thrown because the friendship invitee does disabled friendship requests
|
|
5
|
+
*/
|
|
6
|
+
class InviteeFriendshipSettingsError extends Error {
|
|
7
|
+
/**
|
|
8
|
+
* @param query The query which resulted in this error
|
|
9
|
+
*/
|
|
10
|
+
constructor(query) {
|
|
11
|
+
super();
|
|
12
|
+
this.name = 'InviteeFriendshipSettingsError';
|
|
13
|
+
this.message = `The user ${query} disabled friendship requests`;
|
|
14
|
+
this.query = query;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.default = InviteeFriendshipSettingsError;
|
|
18
|
+
//# sourceMappingURL=InviteeFriendshipSettingsError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InviteeFriendshipSettingsError.js","sourceRoot":"","sources":["../../../src/exceptions/InviteeFriendshipSettingsError.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,MAAM,8BAA+B,SAAQ,KAAK;IAMhD;;OAEG;IACH,YAAY,KAAa;QACvB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,gCAAgC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,YAAY,KAAK,+BAA+B,CAAC;QAEhE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAED,kBAAe,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represets an error thrown because the friendship invitee reached their friendships limit
|
|
3
|
+
*/
|
|
4
|
+
declare class InviteeFriendshipsLimitExceededError extends Error {
|
|
5
|
+
/**
|
|
6
|
+
* The query which resulted in this error
|
|
7
|
+
*/
|
|
8
|
+
query: string;
|
|
9
|
+
/**
|
|
10
|
+
* @param query The query which resulted in this error
|
|
11
|
+
*/
|
|
12
|
+
constructor(query: string);
|
|
13
|
+
}
|
|
14
|
+
export default InviteeFriendshipsLimitExceededError;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Represets an error thrown because the friendship invitee reached their friendships limit
|
|
5
|
+
*/
|
|
6
|
+
class InviteeFriendshipsLimitExceededError extends Error {
|
|
7
|
+
/**
|
|
8
|
+
* @param query The query which resulted in this error
|
|
9
|
+
*/
|
|
10
|
+
constructor(query) {
|
|
11
|
+
super();
|
|
12
|
+
this.name = 'InviteeFriendshipsLimitExceededError';
|
|
13
|
+
this.message = `The user ${query} reached their friendships limit`;
|
|
14
|
+
this.query = query;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.default = InviteeFriendshipsLimitExceededError;
|
|
18
|
+
//# sourceMappingURL=InviteeFriendshipsLimitExceededError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InviteeFriendshipsLimitExceededError.js","sourceRoot":"","sources":["../../../src/exceptions/InviteeFriendshipsLimitExceededError.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,MAAM,oCAAqC,SAAQ,KAAK;IAMtD;;OAEG;IACH,YAAY,KAAa;QACvB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,sCAAsC,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,YAAY,KAAK,kCAAkC,CAAC;QAEnE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAED,kBAAe,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represets an error thrown because the client reached its friendships limit
|
|
3
|
+
*/
|
|
4
|
+
declare class InviterFriendshipsLimitExceededError extends Error {
|
|
5
|
+
/**
|
|
6
|
+
* The query which resulted in this error
|
|
7
|
+
*/
|
|
8
|
+
query: string;
|
|
9
|
+
/**
|
|
10
|
+
* @param query The query which resulted in this error
|
|
11
|
+
*/
|
|
12
|
+
constructor(query: string);
|
|
13
|
+
}
|
|
14
|
+
export default InviterFriendshipsLimitExceededError;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Represets an error thrown because the client reached its friendships limit
|
|
5
|
+
*/
|
|
6
|
+
class InviterFriendshipsLimitExceededError extends Error {
|
|
7
|
+
/**
|
|
8
|
+
* @param query The query which resulted in this error
|
|
9
|
+
*/
|
|
10
|
+
constructor(query) {
|
|
11
|
+
super();
|
|
12
|
+
this.name = 'InviterFriendshipsLimitExceededError';
|
|
13
|
+
this.message = 'The client reached its friendships limit';
|
|
14
|
+
this.query = query;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.default = InviterFriendshipsLimitExceededError;
|
|
18
|
+
//# sourceMappingURL=InviterFriendshipsLimitExceededError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InviterFriendshipsLimitExceededError.js","sourceRoot":"","sources":["../../../src/exceptions/InviterFriendshipsLimitExceededError.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,MAAM,oCAAqC,SAAQ,KAAK;IAMtD;;OAEG;IACH,YAAY,KAAa;QACvB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,sCAAsC,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,0CAA0C,CAAC;QAE1D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAED,kBAAe,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represets an error thrown because a match does not exist
|
|
3
|
+
*/
|
|
4
|
+
declare class MatchNotFoundError extends Error {
|
|
5
|
+
/**
|
|
6
|
+
* The query which resulted in this error
|
|
7
|
+
*/
|
|
8
|
+
query: string;
|
|
9
|
+
/**
|
|
10
|
+
* @param query The query which resulted in this error
|
|
11
|
+
*/
|
|
12
|
+
constructor(query: string);
|
|
13
|
+
}
|
|
14
|
+
export default MatchNotFoundError;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Represets an error thrown because a match does not exist
|
|
5
|
+
*/
|
|
6
|
+
class MatchNotFoundError extends Error {
|
|
7
|
+
/**
|
|
8
|
+
* @param query The query which resulted in this error
|
|
9
|
+
*/
|
|
10
|
+
constructor(query) {
|
|
11
|
+
super();
|
|
12
|
+
this.name = 'MatchNotFoundError';
|
|
13
|
+
this.message = `The match with the session id "${query}" does not exist`;
|
|
14
|
+
this.query = query;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.default = MatchNotFoundError;
|
|
18
|
+
//# sourceMappingURL=MatchNotFoundError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MatchNotFoundError.js","sourceRoot":"","sources":["../../../src/exceptions/MatchNotFoundError.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,MAAM,kBAAmB,SAAQ,KAAK;IAMpC;;OAEG;IACH,YAAY,KAAa;QACvB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,kCAAkC,KAAK,kBAAkB,CAAC;QAEzE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAED,kBAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represets an error thrown because an offer does not exist (anymore)
|
|
3
|
+
*/
|
|
4
|
+
declare class OfferNotFoundError extends Error {
|
|
5
|
+
/**
|
|
6
|
+
* The query which resulted in this error
|
|
7
|
+
*/
|
|
8
|
+
query: string;
|
|
9
|
+
/**
|
|
10
|
+
* @param query The query which resulted in this error
|
|
11
|
+
*/
|
|
12
|
+
constructor(query: string);
|
|
13
|
+
}
|
|
14
|
+
export default OfferNotFoundError;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Represets an error thrown because an offer does not exist (anymore)
|
|
5
|
+
*/
|
|
6
|
+
class OfferNotFoundError extends Error {
|
|
7
|
+
/**
|
|
8
|
+
* @param query The query which resulted in this error
|
|
9
|
+
*/
|
|
10
|
+
constructor(query) {
|
|
11
|
+
super();
|
|
12
|
+
this.name = 'OfferNotFoundError';
|
|
13
|
+
this.message = `An offer with the id "${query}" does not exist`;
|
|
14
|
+
this.query = query;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.default = OfferNotFoundError;
|
|
18
|
+
//# sourceMappingURL=OfferNotFoundError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OfferNotFoundError.js","sourceRoot":"","sources":["../../../src/exceptions/OfferNotFoundError.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,MAAM,kBAAmB,SAAQ,KAAK;IAMpC;;OAEG;IACH,YAAY,KAAa;QACvB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,yBAAyB,KAAK,kBAAkB,CAAC;QAEhE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAED,kBAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Represets an error thrown because a member (or the client) already joined a party
|
|
5
|
+
*/
|
|
6
|
+
class PartyAlreadyJoinedError extends Error {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.name = 'PartyAlreadyJoinedError';
|
|
10
|
+
this.message = 'The member (or the client) already joined this party';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.default = PartyAlreadyJoinedError;
|
|
14
|
+
//# sourceMappingURL=PartyAlreadyJoinedError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PartyAlreadyJoinedError.js","sourceRoot":"","sources":["../../../src/exceptions/PartyAlreadyJoinedError.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,MAAM,uBAAwB,SAAQ,KAAK;IACzC;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,sDAAsD,CAAC;IACxE,CAAC;CACF;AAED,kBAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Represets an error thrown because the client does not have permission to perform a certain action
|
|
5
|
+
*/
|
|
6
|
+
class PartyInvitationExpiredError extends Error {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.name = 'PartyInvitationExpiredError';
|
|
10
|
+
this.message = 'The party invitation expired or already got accepted / declined / aborted';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.default = PartyInvitationExpiredError;
|
|
14
|
+
//# sourceMappingURL=PartyInvitationExpiredError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PartyInvitationExpiredError.js","sourceRoot":"","sources":["../../../src/exceptions/PartyInvitationExpiredError.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,MAAM,2BAA4B,SAAQ,KAAK;IAC7C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,6BAA6B,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,2EAA2E,CAAC;IAC7F,CAAC;CACF;AAED,kBAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Represets an error thrown because a party already reached its max member count
|
|
5
|
+
*/
|
|
6
|
+
class PartyMaxSizeReachedError extends Error {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.name = 'PartyMaxSizeReachedError';
|
|
10
|
+
this.message = 'The party reached its max member count';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.default = PartyMaxSizeReachedError;
|
|
14
|
+
//# sourceMappingURL=PartyMaxSizeReachedError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PartyMaxSizeReachedError.js","sourceRoot":"","sources":["../../../src/exceptions/PartyMaxSizeReachedError.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,MAAM,wBAAyB,SAAQ,KAAK;IAC1C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,0BAA0B,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,wCAAwC,CAAC;IAC1D,CAAC;CACF;AAED,kBAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represets an error thrown because a party member does not exist
|
|
3
|
+
*/
|
|
4
|
+
declare class PartyMemberNotFoundError extends Error {
|
|
5
|
+
/**
|
|
6
|
+
* The query which resulted in this error
|
|
7
|
+
*/
|
|
8
|
+
query: string;
|
|
9
|
+
/**
|
|
10
|
+
* @param query The query which resulted in this error
|
|
11
|
+
*/
|
|
12
|
+
constructor(query: string);
|
|
13
|
+
}
|
|
14
|
+
export default PartyMemberNotFoundError;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Represets an error thrown because a party member does not exist
|
|
5
|
+
*/
|
|
6
|
+
class PartyMemberNotFoundError extends Error {
|
|
7
|
+
/**
|
|
8
|
+
* @param query The query which resulted in this error
|
|
9
|
+
*/
|
|
10
|
+
constructor(query) {
|
|
11
|
+
super();
|
|
12
|
+
this.name = 'PartyMemberNotFoundError';
|
|
13
|
+
this.message = `The party member "${query}" does not exist`;
|
|
14
|
+
this.query = query;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.default = PartyMemberNotFoundError;
|
|
18
|
+
//# sourceMappingURL=PartyMemberNotFoundError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PartyMemberNotFoundError.js","sourceRoot":"","sources":["../../../src/exceptions/PartyMemberNotFoundError.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,MAAM,wBAAyB,SAAQ,KAAK;IAM1C;;OAEG;IACH,YAAY,KAAa;QACvB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,0BAA0B,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,qBAAqB,KAAK,kBAAkB,CAAC;QAE5D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAED,kBAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Represets an error thrown because a party does not exist
|
|
5
|
+
*/
|
|
6
|
+
class PartyNotFoundError extends Error {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.name = 'PartyNotFoundError';
|
|
10
|
+
this.message = 'The party wasn\'t found';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.default = PartyNotFoundError;
|
|
14
|
+
//# sourceMappingURL=PartyNotFoundError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PartyNotFoundError.js","sourceRoot":"","sources":["../../../src/exceptions/PartyNotFoundError.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,MAAM,kBAAmB,SAAQ,KAAK;IACpC;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,yBAAyB,CAAC;IAC3C,CAAC;CACF;AAED,kBAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Represets an error thrown because the client does not have permission to perform a certain party related action
|
|
5
|
+
*/
|
|
6
|
+
class PartyPermissionError extends Error {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.name = 'PartyPermissionError';
|
|
10
|
+
this.message = 'The client does not have permission to perform this party action';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.default = PartyPermissionError;
|
|
14
|
+
//# sourceMappingURL=PartyPermissionError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PartyPermissionError.js","sourceRoot":"","sources":["../../../src/exceptions/PartyPermissionError.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,MAAM,oBAAqB,SAAQ,KAAK;IACtC;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,kEAAkE,CAAC;IACpF,CAAC;CACF;AAED,kBAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { SentMessageType } from '../../resources/structs';
|
|
2
|
+
import type ClientParty from '../structures/party/ClientParty';
|
|
3
|
+
import type Friend from '../structures/friend/Friend';
|
|
4
|
+
/**
|
|
5
|
+
* Represets an error thrown because a user does not exist
|
|
6
|
+
*/
|
|
7
|
+
declare class SendMessageError extends Error {
|
|
8
|
+
/**
|
|
9
|
+
* The message related to this error
|
|
10
|
+
*/
|
|
11
|
+
message: string;
|
|
12
|
+
/**
|
|
13
|
+
* The message's type
|
|
14
|
+
*/
|
|
15
|
+
type: string;
|
|
16
|
+
/**
|
|
17
|
+
* The message's target
|
|
18
|
+
*/
|
|
19
|
+
target: Friend | ClientParty;
|
|
20
|
+
/**
|
|
21
|
+
* @param message The message related to this error
|
|
22
|
+
* @param type The message's type
|
|
23
|
+
* @param target The message's target
|
|
24
|
+
*/
|
|
25
|
+
constructor(message: string, type: SentMessageType, target: Friend | ClientParty);
|
|
26
|
+
}
|
|
27
|
+
export default SendMessageError;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Represets an error thrown because a user does not exist
|
|
5
|
+
*/
|
|
6
|
+
class SendMessageError extends Error {
|
|
7
|
+
/**
|
|
8
|
+
* @param message The message related to this error
|
|
9
|
+
* @param type The message's type
|
|
10
|
+
* @param target The message's target
|
|
11
|
+
*/
|
|
12
|
+
constructor(message, type, target) {
|
|
13
|
+
super();
|
|
14
|
+
this.name = 'SendMessageError';
|
|
15
|
+
this.message = message;
|
|
16
|
+
this.type = type;
|
|
17
|
+
this.target = target;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.default = SendMessageError;
|
|
21
|
+
//# sourceMappingURL=SendMessageError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendMessageError.js","sourceRoot":"","sources":["../../../src/exceptions/SendMessageError.ts"],"names":[],"mappings":";;AAIA;;GAEG;AACH,MAAM,gBAAiB,SAAQ,KAAK;IAgBlC;;;;OAIG;IACH,YAAY,OAAe,EAAE,IAAqB,EAAE,MAA4B;QAC9E,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;QAE/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAED,kBAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represets an error thrown because a user set their stats to private
|
|
3
|
+
*/
|
|
4
|
+
declare class StatsPrivacyError extends Error {
|
|
5
|
+
/**
|
|
6
|
+
* The user who set their stats to private
|
|
7
|
+
*/
|
|
8
|
+
user: string;
|
|
9
|
+
/**
|
|
10
|
+
* @param user The user who set their stats to private
|
|
11
|
+
*/
|
|
12
|
+
constructor(user: string);
|
|
13
|
+
}
|
|
14
|
+
export default StatsPrivacyError;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Represets an error thrown because a user set their stats to private
|
|
5
|
+
*/
|
|
6
|
+
class StatsPrivacyError extends Error {
|
|
7
|
+
/**
|
|
8
|
+
* @param user The user who set their stats to private
|
|
9
|
+
*/
|
|
10
|
+
constructor(user) {
|
|
11
|
+
super();
|
|
12
|
+
this.name = 'StatsPrivacyError';
|
|
13
|
+
this.message = `The user "${user}" set their stats to private`;
|
|
14
|
+
this.user = user;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.default = StatsPrivacyError;
|
|
18
|
+
//# sourceMappingURL=StatsPrivacyError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatsPrivacyError.js","sourceRoot":"","sources":["../../../src/exceptions/StatsPrivacyError.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,MAAM,iBAAkB,SAAQ,KAAK;IAMnC;;OAEG;IACH,YAAY,IAAY;QACtB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,aAAa,IAAI,8BAA8B,CAAC;QAE/D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAED,kBAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents an error that is thrown when the stomp websocket connection fails to be established
|
|
3
|
+
*/
|
|
4
|
+
declare class StompConnectionError extends Error {
|
|
5
|
+
/**
|
|
6
|
+
* The error status code
|
|
7
|
+
*/
|
|
8
|
+
statusCode: number;
|
|
9
|
+
/**
|
|
10
|
+
* @param error The error that caused the connection to fail
|
|
11
|
+
*/
|
|
12
|
+
constructor(message: string, statusCode: number);
|
|
13
|
+
}
|
|
14
|
+
export default StompConnectionError;
|