@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,52 @@
|
|
|
1
|
+
import Base from '../Base';
|
|
2
|
+
import EpicgamesServerStatusComponent from './EpicgamesServerStatusComponent';
|
|
3
|
+
import EpicgamesServerStatusIncident from './EpicgamesServerStatusIncident';
|
|
4
|
+
import type { EpicgamesServerStatusData } from '../../resources/structs';
|
|
5
|
+
import type Client from '../Client';
|
|
6
|
+
/**
|
|
7
|
+
* Represents an Epicgames server status
|
|
8
|
+
*/
|
|
9
|
+
declare class EpicgamesServerStatus extends Base {
|
|
10
|
+
/**
|
|
11
|
+
* The status page's id
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* The status page's name
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* The status page's url
|
|
20
|
+
*/
|
|
21
|
+
url: string;
|
|
22
|
+
/**
|
|
23
|
+
* The last time the status page was updated
|
|
24
|
+
*/
|
|
25
|
+
updatedAt: Date;
|
|
26
|
+
/**
|
|
27
|
+
* The server status indicator
|
|
28
|
+
*/
|
|
29
|
+
statusIndicator: string;
|
|
30
|
+
/**
|
|
31
|
+
* The server status description
|
|
32
|
+
*/
|
|
33
|
+
statusDescription: string;
|
|
34
|
+
/**
|
|
35
|
+
* The status page's components
|
|
36
|
+
*/
|
|
37
|
+
components: EpicgamesServerStatusComponent[];
|
|
38
|
+
/**
|
|
39
|
+
* The status page's incidents
|
|
40
|
+
*/
|
|
41
|
+
incidents: EpicgamesServerStatusIncident[];
|
|
42
|
+
/**
|
|
43
|
+
* The status page's scheduled maintenances
|
|
44
|
+
*/
|
|
45
|
+
scheduledMainteances: EpicgamesServerStatusIncident[];
|
|
46
|
+
/**
|
|
47
|
+
* @param client The main client
|
|
48
|
+
* @param data The server status data
|
|
49
|
+
*/
|
|
50
|
+
constructor(client: Client, data: EpicgamesServerStatusData);
|
|
51
|
+
}
|
|
52
|
+
export default EpicgamesServerStatus;
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
const EpicgamesServerStatusComponent_1 = tslib_1.__importDefault(require("./EpicgamesServerStatusComponent"));
|
|
6
|
+
const EpicgamesServerStatusIncident_1 = tslib_1.__importDefault(require("./EpicgamesServerStatusIncident"));
|
|
7
|
+
/**
|
|
8
|
+
* Represents an Epicgames server status
|
|
9
|
+
*/
|
|
10
|
+
class EpicgamesServerStatus extends Base_1.default {
|
|
11
|
+
/**
|
|
12
|
+
* @param client The main client
|
|
13
|
+
* @param data The server status data
|
|
14
|
+
*/
|
|
15
|
+
constructor(client, data) {
|
|
16
|
+
super(client);
|
|
17
|
+
this.id = data.page.id;
|
|
18
|
+
this.name = data.page.name;
|
|
19
|
+
this.url = data.page.url;
|
|
20
|
+
this.updatedAt = new Date(data.page.updated_at);
|
|
21
|
+
this.statusIndicator = data.status.indicator;
|
|
22
|
+
this.statusDescription = data.status.description;
|
|
23
|
+
this.components = data.components
|
|
24
|
+
.filter((c) => !c.group_id)
|
|
25
|
+
.map((c) => new EpicgamesServerStatusComponent_1.default(client, c, data.components));
|
|
26
|
+
this.incidents = data.incidents.map((i) => new EpicgamesServerStatusIncident_1.default(client, i));
|
|
27
|
+
this.scheduledMainteances = data.scheduled_maintenances.map((m) => new EpicgamesServerStatusIncident_1.default(client, m));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.default = EpicgamesServerStatus;
|
|
31
|
+
//# sourceMappingURL=EpicgamesServerStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EpicgamesServerStatus.js","sourceRoot":"","sources":["../../../src/structures/EpicgamesServerStatus.ts"],"names":[],"mappings":";;;AAAA,2DAA2B;AAC3B,8GAA8E;AAC9E,4GAA4E;AAI5E;;GAEG;AACH,MAAM,qBAAsB,SAAQ,cAAI;IA8CtC;;;OAGG;IACH,YAAY,MAAc,EAAE,IAA+B;QACzD,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;QAC3B,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAEhD,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;QAC7C,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;QAEjD,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU;aAC9B,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;aAC1B,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,wCAA8B,CAAC,MAAM,EAAE,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;QAE9E,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,uCAA6B,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;QAEzF,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,uCAA6B,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;IACnH,CAAC;CACF;AAED,kBAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import Base from '../Base';
|
|
2
|
+
import type Client from '../Client';
|
|
3
|
+
import type { EpicgamesServerStatusData } from '../../resources/structs';
|
|
4
|
+
/**
|
|
5
|
+
* Represents an Epicgames server status
|
|
6
|
+
*/
|
|
7
|
+
declare class EpicgamesServerStatusComponent extends Base {
|
|
8
|
+
/**
|
|
9
|
+
* The component's id
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
/**
|
|
13
|
+
* The component's name
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* The component's status
|
|
18
|
+
*/
|
|
19
|
+
status: string;
|
|
20
|
+
/**
|
|
21
|
+
* The time the component was created
|
|
22
|
+
*/
|
|
23
|
+
createdAt: Date;
|
|
24
|
+
/**
|
|
25
|
+
* The last time the component was updated
|
|
26
|
+
*/
|
|
27
|
+
updatedAt: Date;
|
|
28
|
+
/**
|
|
29
|
+
* The component's position
|
|
30
|
+
*/
|
|
31
|
+
position: number;
|
|
32
|
+
/**
|
|
33
|
+
* The component's description
|
|
34
|
+
*/
|
|
35
|
+
description?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Whether this component is showcased
|
|
38
|
+
*/
|
|
39
|
+
isShowcase: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* The component's start date
|
|
42
|
+
*/
|
|
43
|
+
startDate?: Date;
|
|
44
|
+
/**
|
|
45
|
+
* The component's group id
|
|
46
|
+
*/
|
|
47
|
+
groupId?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Whether this component should only be shown if it's degraded
|
|
50
|
+
*/
|
|
51
|
+
onlyShowIfDegraded: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Whether this component is a group
|
|
54
|
+
*/
|
|
55
|
+
isGroup: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* The component's subcomponents
|
|
58
|
+
*/
|
|
59
|
+
components?: EpicgamesServerStatusComponent[];
|
|
60
|
+
/**
|
|
61
|
+
* @param client The main client
|
|
62
|
+
* @param data The server status component data
|
|
63
|
+
* @param components The server status components
|
|
64
|
+
*/
|
|
65
|
+
constructor(client: Client, data: EpicgamesServerStatusData['components'][0], components: EpicgamesServerStatusData['components']);
|
|
66
|
+
}
|
|
67
|
+
export default EpicgamesServerStatusComponent;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 Epicgames server status
|
|
7
|
+
*/
|
|
8
|
+
class EpicgamesServerStatusComponent extends Base_1.default {
|
|
9
|
+
/**
|
|
10
|
+
* @param client The main client
|
|
11
|
+
* @param data The server status component data
|
|
12
|
+
* @param components The server status components
|
|
13
|
+
*/
|
|
14
|
+
constructor(client, data, components) {
|
|
15
|
+
var _a, _b, _c;
|
|
16
|
+
super(client);
|
|
17
|
+
this.id = data.id;
|
|
18
|
+
this.name = data.name;
|
|
19
|
+
this.status = data.status;
|
|
20
|
+
this.createdAt = new Date(data.created_at);
|
|
21
|
+
this.updatedAt = new Date(data.updated_at);
|
|
22
|
+
this.position = (_a = data.position) !== null && _a !== void 0 ? _a : undefined;
|
|
23
|
+
this.description = (_b = data.description) !== null && _b !== void 0 ? _b : undefined;
|
|
24
|
+
this.isShowcase = !!data.showcase;
|
|
25
|
+
this.startDate = data.start_date ? new Date(data.start_date) : undefined;
|
|
26
|
+
this.groupId = (_c = data.group_id) !== null && _c !== void 0 ? _c : undefined;
|
|
27
|
+
this.isGroup = !!data.group;
|
|
28
|
+
this.onlyShowIfDegraded = !!data.only_show_if_degraded;
|
|
29
|
+
if (data.components) {
|
|
30
|
+
this.components = components
|
|
31
|
+
.filter((c) => data.components.includes(c.id))
|
|
32
|
+
.map((c) => new EpicgamesServerStatusComponent(client, c, components));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.default = EpicgamesServerStatusComponent;
|
|
37
|
+
//# sourceMappingURL=EpicgamesServerStatusComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EpicgamesServerStatusComponent.js","sourceRoot":"","sources":["../../../src/structures/EpicgamesServerStatusComponent.ts"],"names":[],"mappings":";;;AAAA,2DAA2B;AAI3B;;GAEG;AACH,MAAM,8BAA+B,SAAQ,cAAI;IAmE/C;;;;OAIG;IACH,YAAY,MAAc,EAAE,IAAgD,EAAE,UAAmD;;QAC/H,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,MAAA,IAAI,CAAC,QAAQ,mCAAI,SAAS,CAAC;QAC3C,IAAI,CAAC,WAAW,GAAG,MAAA,IAAI,CAAC,WAAW,mCAAI,SAAS,CAAC;QACjD,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;QAClC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACzE,IAAI,CAAC,OAAO,GAAG,MAAA,IAAI,CAAC,QAAQ,mCAAI,SAAS,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;QAC5B,IAAI,CAAC,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC;QAEvD,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,IAAI,CAAC,UAAU,GAAG,UAAU;iBACzB,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;iBAC7C,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,8BAA8B,CAAC,MAAM,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC;QAC3E,CAAC;IACH,CAAC;CACF;AAED,kBAAe,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import Base from '../Base';
|
|
2
|
+
import type Client from '../Client';
|
|
3
|
+
import type { EpicgamesServerStatusIncidentUpdate } from '../../resources/structs';
|
|
4
|
+
/**
|
|
5
|
+
* Represents an Epicgames server status
|
|
6
|
+
*/
|
|
7
|
+
declare class EpicgamesServerStatusIncident extends Base {
|
|
8
|
+
/**
|
|
9
|
+
* The incident's id
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
/**
|
|
13
|
+
* The incident's page id
|
|
14
|
+
*/
|
|
15
|
+
pageId: string;
|
|
16
|
+
/**
|
|
17
|
+
* The incident's name
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
/**
|
|
21
|
+
* The incident's status
|
|
22
|
+
*/
|
|
23
|
+
status: string;
|
|
24
|
+
/**
|
|
25
|
+
* The incident's impact
|
|
26
|
+
*/
|
|
27
|
+
impact: string;
|
|
28
|
+
/**
|
|
29
|
+
* The incident's short link
|
|
30
|
+
*/
|
|
31
|
+
shortLink: string;
|
|
32
|
+
/**
|
|
33
|
+
* The time when the incident was created
|
|
34
|
+
*/
|
|
35
|
+
createdAt: Date;
|
|
36
|
+
/**
|
|
37
|
+
* The last time when the incident was updated
|
|
38
|
+
*/
|
|
39
|
+
updatedAt?: Date;
|
|
40
|
+
/**
|
|
41
|
+
* The time when the incident was monitored
|
|
42
|
+
*/
|
|
43
|
+
monitoringAt?: Date;
|
|
44
|
+
/**
|
|
45
|
+
* The time when the incident was resolved
|
|
46
|
+
*/
|
|
47
|
+
resolvedAt?: Date;
|
|
48
|
+
/**
|
|
49
|
+
* The incident's updates
|
|
50
|
+
*/
|
|
51
|
+
incidentUpdates: EpicgamesServerStatusIncidentUpdate[];
|
|
52
|
+
/**
|
|
53
|
+
* @param client The main client
|
|
54
|
+
* @param data The server status data
|
|
55
|
+
*/
|
|
56
|
+
constructor(client: Client, data: any);
|
|
57
|
+
}
|
|
58
|
+
export default EpicgamesServerStatusIncident;
|
|
@@ -0,0 +1,36 @@
|
|
|
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 Epicgames server status
|
|
7
|
+
*/
|
|
8
|
+
class EpicgamesServerStatusIncident extends Base_1.default {
|
|
9
|
+
/**
|
|
10
|
+
* @param client The main client
|
|
11
|
+
* @param data The server status data
|
|
12
|
+
*/
|
|
13
|
+
constructor(client, data) {
|
|
14
|
+
super(client);
|
|
15
|
+
this.id = data.id;
|
|
16
|
+
this.pageId = data.page_id;
|
|
17
|
+
this.name = data.name;
|
|
18
|
+
this.status = data.status;
|
|
19
|
+
this.impact = data.impact;
|
|
20
|
+
this.shortLink = data.short_link;
|
|
21
|
+
this.createdAt = new Date(data.created_at);
|
|
22
|
+
this.updatedAt = data.updated_at ? new Date(data.updated_at) : undefined;
|
|
23
|
+
this.monitoringAt = data.monitoring_at ? new Date(data.monitoring_at) : undefined;
|
|
24
|
+
this.resolvedAt = data.resolved_at ? new Date(data.resolved_at) : undefined;
|
|
25
|
+
this.incidentUpdates = data.incident_updates.map((u) => ({
|
|
26
|
+
id: u.id,
|
|
27
|
+
status: u.status,
|
|
28
|
+
body: u.body,
|
|
29
|
+
createdAt: new Date(u.created_at),
|
|
30
|
+
displayAt: new Date(u.display_at),
|
|
31
|
+
updatedAt: new Date(u.updated_at),
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.default = EpicgamesServerStatusIncident;
|
|
36
|
+
//# sourceMappingURL=EpicgamesServerStatusIncident.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EpicgamesServerStatusIncident.js","sourceRoot":"","sources":["../../../src/structures/EpicgamesServerStatusIncident.ts"],"names":[],"mappings":";;;AAAA,2DAA2B;AAI3B;;GAEG;AACH,MAAM,6BAA8B,SAAQ,cAAI;IAwD9C;;;OAGG;IACH,YAAY,MAAc,EAAE,IAAS;QACnC,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QAClB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC;QACjC,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACzE,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAClF,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAE5E,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC;YAC5D,EAAE,EAAE,CAAC,CAAC,EAAE;YACR,MAAM,EAAE,CAAC,CAAC,MAAM;YAChB,IAAI,EAAE,CAAC,CAAC,IAAI;YACZ,SAAS,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC;YACjC,SAAS,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC;YACjC,SAAS,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC;SAClC,CAAC,CAAC,CAAC;IACN,CAAC;CACF;AAED,kBAAe,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import EpicgamesServerStatusIncident from './EpicgamesServerStatusIncident';
|
|
2
|
+
import type Client from '../Client';
|
|
3
|
+
/**
|
|
4
|
+
* Represents an Epicgames server status
|
|
5
|
+
*/
|
|
6
|
+
declare class EpicgamesServerStatusScheduledMainteance extends EpicgamesServerStatusIncident {
|
|
7
|
+
/**
|
|
8
|
+
* The time the mainteance is scheduled for
|
|
9
|
+
*/
|
|
10
|
+
scheduledFor: Date;
|
|
11
|
+
/**
|
|
12
|
+
* The time the mainteance is scheduled until
|
|
13
|
+
*/
|
|
14
|
+
scheduledUntil: Date;
|
|
15
|
+
/**
|
|
16
|
+
* @param client The main client
|
|
17
|
+
* @param data The server status data
|
|
18
|
+
*/
|
|
19
|
+
constructor(client: Client, data: any);
|
|
20
|
+
}
|
|
21
|
+
export default EpicgamesServerStatusScheduledMainteance;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const EpicgamesServerStatusIncident_1 = tslib_1.__importDefault(require("./EpicgamesServerStatusIncident"));
|
|
5
|
+
/**
|
|
6
|
+
* Represents an Epicgames server status
|
|
7
|
+
*/
|
|
8
|
+
class EpicgamesServerStatusScheduledMainteance extends EpicgamesServerStatusIncident_1.default {
|
|
9
|
+
/**
|
|
10
|
+
* @param client The main client
|
|
11
|
+
* @param data The server status data
|
|
12
|
+
*/
|
|
13
|
+
constructor(client, data) {
|
|
14
|
+
super(client, data);
|
|
15
|
+
this.scheduledFor = new Date(data.scheduled_for);
|
|
16
|
+
this.scheduledUntil = new Date(data.scheduled_until);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.default = EpicgamesServerStatusScheduledMainteance;
|
|
20
|
+
//# sourceMappingURL=EpicgamesServerStatusScheduledMainteance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EpicgamesServerStatusScheduledMainteance.js","sourceRoot":"","sources":["../../../src/structures/EpicgamesServerStatusScheduledMainteance.ts"],"names":[],"mappings":";;;AAAA,4GAA4E;AAG5E;;GAEG;AACH,MAAM,wCAAyC,SAAQ,uCAA6B;IAWlF;;;OAGG;IACH,YAAY,MAAc,EAAE,IAAS;QACnC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAEpB,IAAI,CAAC,YAAY,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACjD,IAAI,CAAC,cAAc,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IACvD,CAAC;CACF;AAED,kBAAe,wCAAwC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import Base from '../Base';
|
|
2
|
+
import type User from './user/User';
|
|
3
|
+
import type Client from '../Client';
|
|
4
|
+
import type { ArenaDivisionData } from '../../resources/structs';
|
|
5
|
+
/**
|
|
6
|
+
* Represents a user's event tokens
|
|
7
|
+
*/
|
|
8
|
+
declare class EventTokens extends Base {
|
|
9
|
+
/**
|
|
10
|
+
* The user the event tokens belong to
|
|
11
|
+
*/
|
|
12
|
+
user: User;
|
|
13
|
+
/**
|
|
14
|
+
* The raw event tokens
|
|
15
|
+
*/
|
|
16
|
+
tokens: string[];
|
|
17
|
+
/**
|
|
18
|
+
* The user's arena division data
|
|
19
|
+
*/
|
|
20
|
+
arenaDivisionData: ArenaDivisionData;
|
|
21
|
+
/**
|
|
22
|
+
* The user's geo identity
|
|
23
|
+
*/
|
|
24
|
+
geoIdentity?: string;
|
|
25
|
+
/**
|
|
26
|
+
* @param client The main client
|
|
27
|
+
* @param data The avatar's data
|
|
28
|
+
* @param user The user this avatar belongs to
|
|
29
|
+
*/
|
|
30
|
+
constructor(client: Client, data: string[], user: User);
|
|
31
|
+
}
|
|
32
|
+
export default EventTokens;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
/* eslint-disable no-restricted-syntax */
|
|
5
|
+
const Base_1 = tslib_1.__importDefault(require("../Base"));
|
|
6
|
+
/**
|
|
7
|
+
* Represents a user's event tokens
|
|
8
|
+
*/
|
|
9
|
+
class EventTokens extends Base_1.default {
|
|
10
|
+
/**
|
|
11
|
+
* @param client The main client
|
|
12
|
+
* @param data The avatar's data
|
|
13
|
+
* @param user The user this avatar belongs to
|
|
14
|
+
*/
|
|
15
|
+
constructor(client, data, user) {
|
|
16
|
+
super(client);
|
|
17
|
+
this.tokens = data;
|
|
18
|
+
this.user = user;
|
|
19
|
+
this.arenaDivisionData = {};
|
|
20
|
+
this.geoIdentity = undefined;
|
|
21
|
+
for (const token of this.tokens) {
|
|
22
|
+
const type = token.split('_')[0];
|
|
23
|
+
switch (type) {
|
|
24
|
+
case 'ARENA':
|
|
25
|
+
{
|
|
26
|
+
let [, season, division] = token.split('_');
|
|
27
|
+
if (!division) {
|
|
28
|
+
division = season;
|
|
29
|
+
season = 'S9';
|
|
30
|
+
}
|
|
31
|
+
const divisionNumber = parseInt(division.replace('Division', ''), 10);
|
|
32
|
+
if (!this.arenaDivisionData[season.toLowerCase()] || this.arenaDivisionData[season.toLowerCase()] < divisionNumber) {
|
|
33
|
+
this.arenaDivisionData[season.toLowerCase()] = divisionNumber;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
break;
|
|
37
|
+
case 'GroupIdentity':
|
|
38
|
+
[, , this.geoIdentity] = token.split('_');
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.default = EventTokens;
|
|
45
|
+
//# sourceMappingURL=EventTokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventTokens.js","sourceRoot":"","sources":["../../../src/structures/EventTokens.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AACzC,2DAA2B;AAK3B;;GAEG;AACH,MAAM,WAAY,SAAQ,cAAI;IAqB5B;;;;OAIG;IACH,YAAY,MAAc,EAAE,IAAc,EAAE,IAAU;QACpD,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QAEjB,IAAI,CAAC,iBAAiB,GAAG,EAAE,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;QAE7B,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChC,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YAEjC,QAAQ,IAAI,EAAE,CAAC;gBACb,KAAK,OAAO;oBAAE,CAAC;wBACb,IAAI,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;wBAE5C,IAAI,CAAC,QAAQ,EAAE,CAAC;4BACd,QAAQ,GAAG,MAAM,CAAC;4BAClB,MAAM,GAAG,IAAI,CAAC;wBAChB,CAAC;wBAED,MAAM,cAAc,GAAG,QAAQ,CAAC,QAAS,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;wBAEvE,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,MAAO,CAAC,WAAW,EAAE,CAAC,IAAI,IAAI,CAAC,iBAAiB,CAAC,MAAO,CAAC,WAAW,EAAE,CAAE,GAAG,cAAc,EAAE,CAAC;4BACtH,IAAI,CAAC,iBAAiB,CAAC,MAAO,CAAC,WAAW,EAAE,CAAC,GAAG,cAAc,CAAC;wBACjE,CAAC;oBACH,CAAC;oBAAC,MAAM;gBACR,KAAK,eAAe;oBAClB,CAAC,EAAC,EAAE,IAAI,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBACzC,MAAM;YACV,CAAC;QACH,CAAC;IACH,CAAC;CACF;AAED,kBAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import Base from '../Base';
|
|
2
|
+
import type Client from '../Client';
|
|
3
|
+
import type { LightswitchData, LightswitchLauncherInfo } from '../../resources/structs';
|
|
4
|
+
/**
|
|
5
|
+
* Represents a Fortnite server status
|
|
6
|
+
*/
|
|
7
|
+
declare class FortniteServerStatus extends Base {
|
|
8
|
+
/**
|
|
9
|
+
* The service's instance id
|
|
10
|
+
*/
|
|
11
|
+
serviceInstanceId: string;
|
|
12
|
+
/**
|
|
13
|
+
* The server status
|
|
14
|
+
*/
|
|
15
|
+
status: string;
|
|
16
|
+
/**
|
|
17
|
+
* The server status message
|
|
18
|
+
*/
|
|
19
|
+
message: string;
|
|
20
|
+
/**
|
|
21
|
+
* The server status mainteance uri
|
|
22
|
+
*/
|
|
23
|
+
maintenanceUri?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The overwritten catalog ids
|
|
26
|
+
*/
|
|
27
|
+
overrideCatalogIds: string[];
|
|
28
|
+
/**
|
|
29
|
+
* The client user's allowed service actions
|
|
30
|
+
*/
|
|
31
|
+
allowedActions: string[];
|
|
32
|
+
/**
|
|
33
|
+
* Whether the client user is banned from the service
|
|
34
|
+
*/
|
|
35
|
+
isBanned: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The service's launcher info
|
|
38
|
+
*/
|
|
39
|
+
launcherInfoDTO: LightswitchLauncherInfo;
|
|
40
|
+
/**
|
|
41
|
+
* @param client The main client
|
|
42
|
+
* @param data The server status data
|
|
43
|
+
*/
|
|
44
|
+
constructor(client: Client, data: LightswitchData);
|
|
45
|
+
}
|
|
46
|
+
export default FortniteServerStatus;
|
|
@@ -0,0 +1,26 @@
|
|
|
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 Fortnite server status
|
|
7
|
+
*/
|
|
8
|
+
class FortniteServerStatus extends Base_1.default {
|
|
9
|
+
/**
|
|
10
|
+
* @param client The main client
|
|
11
|
+
* @param data The server status data
|
|
12
|
+
*/
|
|
13
|
+
constructor(client, data) {
|
|
14
|
+
super(client);
|
|
15
|
+
this.serviceInstanceId = data.serviceInstanceId;
|
|
16
|
+
this.status = data.status;
|
|
17
|
+
this.message = data.message;
|
|
18
|
+
this.maintenanceUri = data.maintenanceUri;
|
|
19
|
+
this.overrideCatalogIds = data.overrideCatalogIds;
|
|
20
|
+
this.allowedActions = data.allowedActions;
|
|
21
|
+
this.isBanned = data.banned;
|
|
22
|
+
this.launcherInfoDTO = data.launcherInfoDTO;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.default = FortniteServerStatus;
|
|
26
|
+
//# sourceMappingURL=FortniteServerStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FortniteServerStatus.js","sourceRoot":"","sources":["../../../src/structures/FortniteServerStatus.ts"],"names":[],"mappings":";;;AAAA,2DAA2B;AAI3B;;GAEG;AACH,MAAM,oBAAqB,SAAQ,cAAI;IAyCrC;;;OAGG;IACH,YAAY,MAAc,EAAE,IAAqB;QAC/C,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC;QAChD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAC1C,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAC;QAClD,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAC1C,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC;IAC9C,CAAC;CACF;AAED,kBAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import Base from '../Base';
|
|
2
|
+
import type User from './user/User';
|
|
3
|
+
import type Client from '../Client';
|
|
4
|
+
/**
|
|
5
|
+
* Represents a user's global profile.
|
|
6
|
+
* Any value could be undefined if the user changed their privacy settings
|
|
7
|
+
*/
|
|
8
|
+
declare class GlobalProfile extends Base {
|
|
9
|
+
/**
|
|
10
|
+
* The user this global profile belongs to
|
|
11
|
+
*/
|
|
12
|
+
user: User;
|
|
13
|
+
/**
|
|
14
|
+
* The user's play region
|
|
15
|
+
*/
|
|
16
|
+
playRegion?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The user's languages
|
|
19
|
+
*/
|
|
20
|
+
languages?: string[];
|
|
21
|
+
/**
|
|
22
|
+
* Whether the user owns the battle pass
|
|
23
|
+
*/
|
|
24
|
+
hasBattlePass?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the user has the Fortnite crew membership
|
|
27
|
+
*/
|
|
28
|
+
hasCrewMembership?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* @param client The main client
|
|
31
|
+
* @param data The avatar's data
|
|
32
|
+
* @param user The user this avatar belongs to
|
|
33
|
+
*/
|
|
34
|
+
constructor(client: Client, data: any, user: User);
|
|
35
|
+
}
|
|
36
|
+
export default GlobalProfile;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 user's global profile.
|
|
7
|
+
* Any value could be undefined if the user changed their privacy settings
|
|
8
|
+
*/
|
|
9
|
+
class GlobalProfile extends Base_1.default {
|
|
10
|
+
/**
|
|
11
|
+
* @param client The main client
|
|
12
|
+
* @param data The avatar's data
|
|
13
|
+
* @param user The user this avatar belongs to
|
|
14
|
+
*/
|
|
15
|
+
constructor(client, data, user) {
|
|
16
|
+
super(client);
|
|
17
|
+
this.user = user;
|
|
18
|
+
this.playRegion = data.playRegion;
|
|
19
|
+
this.languages = data.languages;
|
|
20
|
+
this.hasBattlePass = data.hasBattlePass;
|
|
21
|
+
this.hasCrewMembership = data.hasCrewMembership;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = GlobalProfile;
|
|
25
|
+
//# sourceMappingURL=GlobalProfile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlobalProfile.js","sourceRoot":"","sources":["../../../src/structures/GlobalProfile.ts"],"names":[],"mappings":";;;AAAA,2DAA2B;AAI3B;;;GAGG;AACH,MAAM,aAAc,SAAQ,cAAI;IA0B9B;;;;OAIG;IACH,YAAY,MAAc,EAAE,IAAS,EAAE,IAAU;QAC/C,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QAEjB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QACxC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC;IAClD,CAAC;CACF;AAED,kBAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import Base from '../Base';
|
|
2
|
+
import type Client from '../Client';
|
|
3
|
+
import type { ImageData } from '../../resources/structs';
|
|
4
|
+
/**
|
|
5
|
+
* Represents an image
|
|
6
|
+
*/
|
|
7
|
+
declare class Image extends Base {
|
|
8
|
+
/**
|
|
9
|
+
* The image's url
|
|
10
|
+
*/
|
|
11
|
+
url: string;
|
|
12
|
+
/**
|
|
13
|
+
* The image's width
|
|
14
|
+
*/
|
|
15
|
+
width?: number;
|
|
16
|
+
/**
|
|
17
|
+
* The image's height
|
|
18
|
+
*/
|
|
19
|
+
height?: number;
|
|
20
|
+
/**
|
|
21
|
+
* The image's file extension (usually 'png' or 'jpeg' / 'jpg')
|
|
22
|
+
*/
|
|
23
|
+
fileExtension: string;
|
|
24
|
+
/**
|
|
25
|
+
* @param client The main client
|
|
26
|
+
* @param data The image's data
|
|
27
|
+
*/
|
|
28
|
+
constructor(client: Client, data: ImageData);
|
|
29
|
+
/**
|
|
30
|
+
* Downloads the image
|
|
31
|
+
* @throws {AxiosError}
|
|
32
|
+
*/
|
|
33
|
+
download(): Promise<Buffer>;
|
|
34
|
+
toString(): string;
|
|
35
|
+
}
|
|
36
|
+
export default Image;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
5
|
+
const Base_1 = tslib_1.__importDefault(require("../Base"));
|
|
6
|
+
/**
|
|
7
|
+
* Represents an image
|
|
8
|
+
*/
|
|
9
|
+
class Image extends Base_1.default {
|
|
10
|
+
/**
|
|
11
|
+
* @param client The main client
|
|
12
|
+
* @param data The image's data
|
|
13
|
+
*/
|
|
14
|
+
constructor(client, data) {
|
|
15
|
+
super(client);
|
|
16
|
+
this.url = data.url;
|
|
17
|
+
this.width = data.width;
|
|
18
|
+
this.height = data.height;
|
|
19
|
+
this.fileExtension = path_1.default.extname(this.url);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Downloads the image
|
|
23
|
+
* @throws {AxiosError}
|
|
24
|
+
*/
|
|
25
|
+
async download() {
|
|
26
|
+
const res = await this.client.http.request({
|
|
27
|
+
method: 'GET',
|
|
28
|
+
url: this.url,
|
|
29
|
+
responseType: 'arraybuffer',
|
|
30
|
+
});
|
|
31
|
+
return res;
|
|
32
|
+
}
|
|
33
|
+
toString() {
|
|
34
|
+
return this.url;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.default = Image;
|
|
38
|
+
//# sourceMappingURL=Image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Image.js","sourceRoot":"","sources":["../../../src/structures/Image.ts"],"names":[],"mappings":";;;AAAA,wDAAwB;AACxB,2DAA2B;AAI3B;;GAEG;AACH,MAAM,KAAM,SAAQ,cAAI;IAqBtB;;;OAGG;IACH,YAAY,MAAc,EAAE,IAAe;QACzC,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;QACpB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,aAAa,GAAG,cAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,QAAQ;QACnB,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;YACzC,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,YAAY,EAAE,aAAa;SAC5B,CAAC,CAAC;QAEH,OAAO,GAAG,CAAC;IACb,CAAC;IAEe,QAAQ;QACtB,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;CACF;AAED,kBAAe,KAAK,CAAC"}
|