@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,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const STWItem_1 = tslib_1.__importDefault(require("./STWItem"));
|
|
5
|
+
/**
|
|
6
|
+
* Represents a Save The World profile's resource
|
|
7
|
+
*/
|
|
8
|
+
class STWResource extends STWItem_1.default {
|
|
9
|
+
/**
|
|
10
|
+
* @param client The main client
|
|
11
|
+
* @param id The item ID
|
|
12
|
+
* @param data The resource data
|
|
13
|
+
*/
|
|
14
|
+
constructor(client, id, data) {
|
|
15
|
+
super(client, id, data);
|
|
16
|
+
this.resourceId = data.templateId.split(':')[1];
|
|
17
|
+
this.isSeen = data.attributes.item_seen;
|
|
18
|
+
this.isFavorite = data.attributes.favorite;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = STWResource;
|
|
22
|
+
//# sourceMappingURL=STWResource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"STWResource.js","sourceRoot":"","sources":["../../../../src/structures/stw/STWResource.ts"],"names":[],"mappings":";;;AAAA,gEAAgC;AAIhC;;GAEG;AACH,MAAM,WAAY,SAAQ,iBAAO;IAgB/B;;;;OAIG;IACH,YAAY,MAAc,EAAE,EAAU,EAAE,IAA4B;QAClE,KAAK,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QAExB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAE,CAAC;QAEjD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;QACxC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;IAC7C,CAAC;CACF;AAED,kBAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import STWItem from './STWItem';
|
|
2
|
+
import type { STWProfileSchematicData } from '../../../resources/httpResponses';
|
|
3
|
+
import type { STWItemRarity, STWItemTier, STWSchematicEvoType, STWSchematicMeleeSubType, STWSchematicRangedSubType, STWSchematicTrapSubType, STWSchematicType } from '../../../resources/structs';
|
|
4
|
+
import type Client from '../../Client';
|
|
5
|
+
/**
|
|
6
|
+
* Represents a Save The World profile's schematic
|
|
7
|
+
*/
|
|
8
|
+
declare class STWSchematic extends STWItem {
|
|
9
|
+
/**
|
|
10
|
+
* The schematic's type (ranged, melee, or trap)
|
|
11
|
+
*/
|
|
12
|
+
type: STWSchematicType;
|
|
13
|
+
/**
|
|
14
|
+
* The schematic's subtype (specific type of ranged/melee weapon or trap)
|
|
15
|
+
*/
|
|
16
|
+
subType?: STWSchematicRangedSubType | STWSchematicMeleeSubType | STWSchematicTrapSubType;
|
|
17
|
+
/**
|
|
18
|
+
* The schematic's name
|
|
19
|
+
*/
|
|
20
|
+
name?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The schematic's tier
|
|
23
|
+
*/
|
|
24
|
+
tier?: STWItemTier;
|
|
25
|
+
/**
|
|
26
|
+
* The schematic's evolution type
|
|
27
|
+
*/
|
|
28
|
+
evoType?: STWSchematicEvoType;
|
|
29
|
+
/**
|
|
30
|
+
* The schematic's rarity
|
|
31
|
+
*/
|
|
32
|
+
rarity?: STWItemRarity;
|
|
33
|
+
/**
|
|
34
|
+
* The schematic's level
|
|
35
|
+
*/
|
|
36
|
+
level: number;
|
|
37
|
+
/**
|
|
38
|
+
* The schematic's max level bonus
|
|
39
|
+
*/
|
|
40
|
+
maxLevelBonus: number;
|
|
41
|
+
/**
|
|
42
|
+
* The schematic's xp
|
|
43
|
+
*/
|
|
44
|
+
xp: number;
|
|
45
|
+
/**
|
|
46
|
+
* Whether the schematic is marked as seen
|
|
47
|
+
*/
|
|
48
|
+
isSeen: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the schematic is marked as favorite
|
|
51
|
+
*/
|
|
52
|
+
isFavorite: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Whether the schematic is marked as refundable
|
|
55
|
+
*/
|
|
56
|
+
isRefundable: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* The schematic's perks
|
|
59
|
+
*/
|
|
60
|
+
alterations: string[];
|
|
61
|
+
/**
|
|
62
|
+
* The original rarities of the schematic's perks, before any upgrades
|
|
63
|
+
*/
|
|
64
|
+
alterationBaseRarities: string[];
|
|
65
|
+
constructor(client: Client, id: string, data: STWProfileSchematicData);
|
|
66
|
+
/**
|
|
67
|
+
* The schematic's power level.
|
|
68
|
+
* Depends on the tier, level, and rarity value
|
|
69
|
+
*/
|
|
70
|
+
get powerLevel(): number;
|
|
71
|
+
}
|
|
72
|
+
export default STWSchematic;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const Util_1 = require("../../util/Util");
|
|
5
|
+
const STWItem_1 = tslib_1.__importDefault(require("./STWItem"));
|
|
6
|
+
/**
|
|
7
|
+
* Represents a Save The World profile's schematic
|
|
8
|
+
*/
|
|
9
|
+
class STWSchematic extends STWItem_1.default {
|
|
10
|
+
constructor(client, id, data) {
|
|
11
|
+
super(client, id, data);
|
|
12
|
+
const parsedSchematic = (0, Util_1.parseSTWSchematicTemplateId)(data.templateId);
|
|
13
|
+
this.type = parsedSchematic.type;
|
|
14
|
+
this.subType = parsedSchematic.subType;
|
|
15
|
+
this.name = parsedSchematic.name;
|
|
16
|
+
this.tier = parsedSchematic.tier;
|
|
17
|
+
this.evoType = parsedSchematic.evoType;
|
|
18
|
+
this.rarity = parsedSchematic.rarity;
|
|
19
|
+
this.level = data.attributes.level;
|
|
20
|
+
this.maxLevelBonus = data.attributes.max_level_bonus;
|
|
21
|
+
this.xp = data.attributes.xp;
|
|
22
|
+
this.isSeen = data.attributes.item_seen;
|
|
23
|
+
this.isFavorite = data.attributes.favorite;
|
|
24
|
+
this.isRefundable = data.attributes.refundable;
|
|
25
|
+
this.alterations = data.attributes.alterations;
|
|
26
|
+
this.alterationBaseRarities = data.attributes.alteration_base_rarities;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The schematic's power level.
|
|
30
|
+
* Depends on the tier, level, and rarity value
|
|
31
|
+
*/
|
|
32
|
+
get powerLevel() {
|
|
33
|
+
if (!this.rarity || !this.tier) {
|
|
34
|
+
return 1;
|
|
35
|
+
}
|
|
36
|
+
return (0, Util_1.calcSTWNonSurvivorPowerLevel)(this.rarity, this.level, this.tier);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.default = STWSchematic;
|
|
40
|
+
//# sourceMappingURL=STWSchematic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"STWSchematic.js","sourceRoot":"","sources":["../../../../src/structures/stw/STWSchematic.ts"],"names":[],"mappings":";;;A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E,CAAC;YAAC,OAAO,CAAC,CAAC;QAAC,CAAC;QAC7C,OAAO,IAAA,mCAA4B,EAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1E,CAAC;CACF;AAED,kBAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import Base from '../../Base';
|
|
2
|
+
import type Client from '../../Client';
|
|
3
|
+
import type { STWProfileStatsData } from '../../../resources/httpResponses';
|
|
4
|
+
import type { STWStatsNodeCostsData, STWStatsBRLoadoutData, STWStatsSTWLoadoutData, STWStatsMissionAlertRedemptionData, STWStatsQuestData, STWStatsGameplayStatData, STWStatsClientSettingsData, STWStatsResearchLevelsData, STWStatsDailyRewardsData, STWStatsEventCurrencyData, STWStatsXPData } from '../../../resources/structs';
|
|
5
|
+
/**
|
|
6
|
+
* Represents a Save The World profile's stats
|
|
7
|
+
*/
|
|
8
|
+
declare class STWStats extends Base {
|
|
9
|
+
/**
|
|
10
|
+
* The profile's node costs
|
|
11
|
+
*/
|
|
12
|
+
nodeCosts: STWStatsNodeCostsData;
|
|
13
|
+
/**
|
|
14
|
+
* The profile's Save The World loadout data
|
|
15
|
+
*/
|
|
16
|
+
stwLoadout: STWStatsSTWLoadoutData;
|
|
17
|
+
/**
|
|
18
|
+
* The profile's Battle Royale loadout data
|
|
19
|
+
*/
|
|
20
|
+
brLoadout: STWStatsBRLoadoutData;
|
|
21
|
+
/**
|
|
22
|
+
* The profile's mission alert redemption record
|
|
23
|
+
*/
|
|
24
|
+
missionAlertRedemptionRecord?: STWStatsMissionAlertRedemptionData[];
|
|
25
|
+
/**
|
|
26
|
+
* The profile's amount of rewards claimed post max level
|
|
27
|
+
*/
|
|
28
|
+
rewardsClaimedPostMaxLevel: number;
|
|
29
|
+
/**
|
|
30
|
+
* The profile's collection book max XP level
|
|
31
|
+
*/
|
|
32
|
+
collectionBookMaxXPLevel?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the profile has claimed the MFA reward
|
|
35
|
+
*/
|
|
36
|
+
mfaRewardClaimed: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* The profile's quests data
|
|
39
|
+
*/
|
|
40
|
+
quests?: STWStatsQuestData;
|
|
41
|
+
/**
|
|
42
|
+
* The profile's amount of legacy research points spent
|
|
43
|
+
*/
|
|
44
|
+
legacyResearchPointsSpent: number;
|
|
45
|
+
/**
|
|
46
|
+
* The profile's gameplay stats
|
|
47
|
+
*/
|
|
48
|
+
gameplayStats: STWStatsGameplayStatData[];
|
|
49
|
+
/**
|
|
50
|
+
* The profile's unslot mtx spend
|
|
51
|
+
*/
|
|
52
|
+
unslotMtxSpend: number;
|
|
53
|
+
/**
|
|
54
|
+
* The profile's client settings
|
|
55
|
+
*/
|
|
56
|
+
clientSettings: STWStatsClientSettingsData;
|
|
57
|
+
/**
|
|
58
|
+
* The profile's research levels
|
|
59
|
+
*/
|
|
60
|
+
researchLevels?: STWStatsResearchLevelsData;
|
|
61
|
+
/**
|
|
62
|
+
* The profile's level (max is 310)
|
|
63
|
+
*/
|
|
64
|
+
level: number;
|
|
65
|
+
/**
|
|
66
|
+
* The profile's latent XP marker
|
|
67
|
+
*/
|
|
68
|
+
latentXpMarker: string;
|
|
69
|
+
/**
|
|
70
|
+
* The profile's event currency
|
|
71
|
+
*/
|
|
72
|
+
eventCurrency?: STWStatsEventCurrencyData;
|
|
73
|
+
/**
|
|
74
|
+
* The profile's inventory limit bonus
|
|
75
|
+
*/
|
|
76
|
+
inventoryLimitBonus: number;
|
|
77
|
+
/**
|
|
78
|
+
* The profile's amount of matches played
|
|
79
|
+
*/
|
|
80
|
+
matchesPlayed: number;
|
|
81
|
+
/**
|
|
82
|
+
* The profile's xp data
|
|
83
|
+
*/
|
|
84
|
+
xp: STWStatsXPData;
|
|
85
|
+
/**
|
|
86
|
+
* The profile's daily rewards data
|
|
87
|
+
*/
|
|
88
|
+
dailyRewards?: STWStatsDailyRewardsData;
|
|
89
|
+
/**
|
|
90
|
+
* The profile's amount of packs granted
|
|
91
|
+
*/
|
|
92
|
+
packsGranted: number;
|
|
93
|
+
/**
|
|
94
|
+
* @param client The main client
|
|
95
|
+
* @param data The stats data
|
|
96
|
+
*/
|
|
97
|
+
constructor(client: Client, data: STWProfileStatsData);
|
|
98
|
+
/**
|
|
99
|
+
* The profile's actual account level (ignoring the max level cap of 310)
|
|
100
|
+
*/
|
|
101
|
+
get actualLevel(): number;
|
|
102
|
+
}
|
|
103
|
+
export default STWStats;
|
|
@@ -0,0 +1,85 @@
|
|
|
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 Save The World profile's stats
|
|
7
|
+
*/
|
|
8
|
+
class STWStats extends Base_1.default {
|
|
9
|
+
/**
|
|
10
|
+
* @param client The main client
|
|
11
|
+
* @param data The stats data
|
|
12
|
+
*/
|
|
13
|
+
constructor(client, data) {
|
|
14
|
+
var _a, _b, _c, _d, _e, _f;
|
|
15
|
+
super(client);
|
|
16
|
+
this.nodeCosts = data.node_costs;
|
|
17
|
+
this.stwLoadout = {
|
|
18
|
+
selectedHeroLoadout: data.selected_hero_loadout,
|
|
19
|
+
modeLoadouts: data.mode_loadouts,
|
|
20
|
+
activeLoadoutIndex: data.active_loadout_index,
|
|
21
|
+
};
|
|
22
|
+
this.brLoadout = {
|
|
23
|
+
loadouts: data.loadouts,
|
|
24
|
+
lastAppliedLoadout: data.last_applied_loadout,
|
|
25
|
+
useRandomLoadout: data.use_random_loadout,
|
|
26
|
+
};
|
|
27
|
+
this.missionAlertRedemptionRecord = (_a = data.mission_alert_redemption_record.claimData) === null || _a === void 0 ? void 0 : _a.map((d) => ({
|
|
28
|
+
missionAlertId: d.missionAlertId,
|
|
29
|
+
redemptionDateUtc: new Date(d.redemptionDateUtc),
|
|
30
|
+
evictClaimDataAfterUtc: new Date(d.evictClaimDataAfterUtc),
|
|
31
|
+
}));
|
|
32
|
+
this.rewardsClaimedPostMaxLevel = data.rewards_claimed_post_max_level || 0;
|
|
33
|
+
this.collectionBookMaxXPLevel = (_b = data.collection_book) === null || _b === void 0 ? void 0 : _b.maxBookXpLevelAchieved;
|
|
34
|
+
this.mfaRewardClaimed = data.mfa_reward_claimed;
|
|
35
|
+
this.quests = ((_c = data.quest_manager) === null || _c === void 0 ? void 0 : _c.questPoolStats) ? {
|
|
36
|
+
dailyLoginInterval: new Date(data.quest_manager.dailyLoginInterval),
|
|
37
|
+
dailyQuestRerolls: data.quest_manager.dailyQuestRerolls,
|
|
38
|
+
poolStats: {
|
|
39
|
+
stats: data.quest_manager.questPoolStats.poolStats.map((d) => ({
|
|
40
|
+
poolName: d.poolName,
|
|
41
|
+
nextRefresh: new Date(d.nextRefresh),
|
|
42
|
+
rerollsRemaining: d.rerollsRemaining,
|
|
43
|
+
questHistory: d.questHistory,
|
|
44
|
+
})),
|
|
45
|
+
dailyLoginInterval: new Date(data.quest_manager.questPoolStats.dailyLoginInterval),
|
|
46
|
+
lockouts: ((_d = data.quest_manager.questPoolStats.poolLockouts) === null || _d === void 0 ? void 0 : _d.poolLockouts) || [],
|
|
47
|
+
},
|
|
48
|
+
} : undefined;
|
|
49
|
+
this.legacyResearchPointsSpent = data.legacy_research_points_spent;
|
|
50
|
+
this.gameplayStats = data.gameplay_stats;
|
|
51
|
+
this.unslotMtxSpend = data.unslot_mtx_spend;
|
|
52
|
+
this.clientSettings = data.client_settings;
|
|
53
|
+
this.researchLevels = typeof ((_e = data.research_levels) === null || _e === void 0 ? void 0 : _e.fortitude) === 'number' ? {
|
|
54
|
+
fortitude: data.research_levels.fortitude,
|
|
55
|
+
resistance: data.research_levels.resistance,
|
|
56
|
+
technology: data.research_levels.technology,
|
|
57
|
+
offense: data.research_levels.offense,
|
|
58
|
+
} : undefined;
|
|
59
|
+
this.level = data.level || 0;
|
|
60
|
+
this.latentXpMarker = data.latent_xp_marker;
|
|
61
|
+
this.eventCurrency = data.event_currency;
|
|
62
|
+
this.inventoryLimitBonus = data.inventory_limit_bonus;
|
|
63
|
+
this.matchesPlayed = data.matches_played;
|
|
64
|
+
this.xp = {
|
|
65
|
+
total: data.xp,
|
|
66
|
+
overflow: data.xp_overflow,
|
|
67
|
+
lost: data.xp_lost,
|
|
68
|
+
};
|
|
69
|
+
this.dailyRewards = ((_f = data.daily_rewards) === null || _f === void 0 ? void 0 : _f.lastClaimDate) ? {
|
|
70
|
+
nextDefaultReward: data.daily_rewards.nextDefaultReward,
|
|
71
|
+
totalDaysLoggedIn: data.daily_rewards.totalDaysLoggedIn,
|
|
72
|
+
lastClaimDate: new Date(data.daily_rewards.lastClaimDate),
|
|
73
|
+
additionalSchedules: data.daily_rewards.additionalSchedules,
|
|
74
|
+
} : undefined;
|
|
75
|
+
this.packsGranted = data.packs_granted;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The profile's actual account level (ignoring the max level cap of 310)
|
|
79
|
+
*/
|
|
80
|
+
get actualLevel() {
|
|
81
|
+
return this.level + this.rewardsClaimedPostMaxLevel;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.default = STWStats;
|
|
85
|
+
//# sourceMappingURL=STWStats.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"STWStats.js","sourceRoot":"","sources":["../../../../src/structures/stw/STWStats.ts"],"names":[],"mappings":";;;AAAA,8DAA8B;AAU9B;;GAEG;AACH,MAAM,QAAS,SAAQ,cAAI;IA0GzB;;;OAGG;IACH,YAAY,MAAc,EAAE,IAAyB;;QACnD,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC;QAEjC,IAAI,CAAC,UAAU,GAAG;YAChB,mBAAmB,EAAE,IAAI,CAAC,qBAAqB;YAC/C,YAAY,EAA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AAK,EAAE,IAAI,CAAC,EAAE;YACd,QAAQ,EAAE,IAAI,CAAC,WAAW;YAC1B,IAAI,EAAE,IAAI,CAAC,OAAO;SACnB,CAAC;QAEF,IAAI,CAAC,YAAY,GAAG,CAAA,MAAA,IAAI,CAAC,aAAa,0CAAE,aAAa,EAAC,CAAC,CAAC;YACtD,iBAAiB,EAAE,IAAI,CAAC,aAAa,CAAC,iBAAkB;YACxD,iBAAiB,EAAE,IAAI,CAAC,aAAa,CAAC,iBAAkB;YACxD,aAAa,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC;YACzD,mBAAmB,EAAE,IAAI,CAAC,aAAa,CAAC,mBAAoB;SAC7D,CAAC,CAAC,CAAC,SAAS,CAAC;QAEd,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC;IACzC,CAAC;IAED;;OAEG;IACH,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,0BAA0B,CAAC;IACtD,CAAC;CACF;AAED,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import STWItem from './STWItem';
|
|
2
|
+
import type Client from '../../Client';
|
|
3
|
+
import type { STWSurvivorSquadData, STWSurvivorType, STWItemRarity, STWSurvivorGender, STWItemTier } from '../../../resources/structs';
|
|
4
|
+
import type { STWProfileSurvivorData } from '../../../resources/httpResponses';
|
|
5
|
+
/**
|
|
6
|
+
* Represents a Save The World profile's survivor
|
|
7
|
+
*/
|
|
8
|
+
declare class STWSurvivor extends STWItem {
|
|
9
|
+
/**
|
|
10
|
+
* The survivor's type.
|
|
11
|
+
* Special means it's from an event (eg. halloween).
|
|
12
|
+
* Manager means it's a lead survivor
|
|
13
|
+
*/
|
|
14
|
+
type: STWSurvivorType;
|
|
15
|
+
/**
|
|
16
|
+
* The survivor's name (will be undefined for basic survivors)
|
|
17
|
+
*/
|
|
18
|
+
name?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The survivor's tier
|
|
21
|
+
*/
|
|
22
|
+
tier: STWItemTier;
|
|
23
|
+
/**
|
|
24
|
+
* The survivor's rarity
|
|
25
|
+
*/
|
|
26
|
+
rarity: STWItemRarity;
|
|
27
|
+
/**
|
|
28
|
+
* The survivor's manager synergy
|
|
29
|
+
*/
|
|
30
|
+
managerSynergy?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The survivor's gender
|
|
33
|
+
*/
|
|
34
|
+
gender: STWSurvivorGender;
|
|
35
|
+
/**
|
|
36
|
+
* The survivor's level
|
|
37
|
+
*/
|
|
38
|
+
level: number;
|
|
39
|
+
/**
|
|
40
|
+
* The survivor's squad information.
|
|
41
|
+
* Will be undefined if the survivor is not part of a squad
|
|
42
|
+
*/
|
|
43
|
+
squad?: STWSurvivorSquadData;
|
|
44
|
+
/**
|
|
45
|
+
* The survivor's portrait ID
|
|
46
|
+
*/
|
|
47
|
+
portrait?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The survivor's max level bonus
|
|
50
|
+
*/
|
|
51
|
+
maxLevelBonus: number;
|
|
52
|
+
/**
|
|
53
|
+
* The survivor's personality
|
|
54
|
+
*/
|
|
55
|
+
personality: string;
|
|
56
|
+
/**
|
|
57
|
+
* The survivor's XP
|
|
58
|
+
*/
|
|
59
|
+
xp: number;
|
|
60
|
+
/**
|
|
61
|
+
* The survivor's equipped building's ID.
|
|
62
|
+
* Seems to be unused by the game
|
|
63
|
+
*/
|
|
64
|
+
buildingSlotBuildingId?: string;
|
|
65
|
+
/**
|
|
66
|
+
* The survivor's set bonus
|
|
67
|
+
*/
|
|
68
|
+
setBonus: string;
|
|
69
|
+
/**
|
|
70
|
+
* Whether the survivor is marked as seen
|
|
71
|
+
*/
|
|
72
|
+
isSeen: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Whether the survivor is marked as favorite
|
|
75
|
+
*/
|
|
76
|
+
isFavorite: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* @param client The main client
|
|
79
|
+
* @param id The item ID
|
|
80
|
+
* @param data The survivors's data
|
|
81
|
+
*/
|
|
82
|
+
constructor(client: Client, id: string, data: STWProfileSurvivorData);
|
|
83
|
+
/**
|
|
84
|
+
* Whether the survivor is a leader
|
|
85
|
+
*/
|
|
86
|
+
get isLeader(): boolean;
|
|
87
|
+
/**
|
|
88
|
+
* The survivor's power level.
|
|
89
|
+
* Depends on the tier, level, rarity value and whether the survivor is a leader
|
|
90
|
+
*/
|
|
91
|
+
get powerLevel(): number;
|
|
92
|
+
/**
|
|
93
|
+
* The survivor's lead bonus.
|
|
94
|
+
* Will return 0 if the survivor is not a leader or not part of a squad
|
|
95
|
+
*/
|
|
96
|
+
get leadBonus(): number;
|
|
97
|
+
/**
|
|
98
|
+
* Calculates the survivor's bonus.
|
|
99
|
+
* Depends on the leader's rarity and personality.
|
|
100
|
+
* Returns 0 if the survivor is a leader
|
|
101
|
+
*/
|
|
102
|
+
calcSurvivorBonus(leader: STWSurvivor): 0 | 2 | 4 | 8 | 3 | 5 | -2;
|
|
103
|
+
}
|
|
104
|
+
export default STWSurvivor;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const STWItem_1 = tslib_1.__importDefault(require("./STWItem"));
|
|
5
|
+
const Util_1 = require("../../util/Util");
|
|
6
|
+
/**
|
|
7
|
+
* Represents a Save The World profile's survivor
|
|
8
|
+
*/
|
|
9
|
+
class STWSurvivor extends STWItem_1.default {
|
|
10
|
+
/**
|
|
11
|
+
* @param client The main client
|
|
12
|
+
* @param id The item ID
|
|
13
|
+
* @param data The survivors's data
|
|
14
|
+
*/
|
|
15
|
+
constructor(client, id, data) {
|
|
16
|
+
super(client, id, data);
|
|
17
|
+
const parsedSurvivor = (0, Util_1.parseSTWSurvivorTemplateId)(data.templateId);
|
|
18
|
+
this.type = parsedSurvivor.type;
|
|
19
|
+
this.name = parsedSurvivor.name;
|
|
20
|
+
this.tier = parsedSurvivor.tier;
|
|
21
|
+
this.rarity = parsedSurvivor.rarity;
|
|
22
|
+
this.managerSynergy = data.attributes.managerSynergy;
|
|
23
|
+
this.gender = data.attributes.gender === '1' ? 'male' : 'female';
|
|
24
|
+
this.level = data.attributes.level;
|
|
25
|
+
this.squad = data.attributes.squad_id ? {
|
|
26
|
+
id: data.attributes.squad_id,
|
|
27
|
+
name: data.attributes.squad_id.split('_')[3],
|
|
28
|
+
type: data.attributes.squad_id.split('_')[2],
|
|
29
|
+
slotIdx: data.attributes.squad_slot_idx,
|
|
30
|
+
} : undefined;
|
|
31
|
+
this.portrait = data.attributes.portrait;
|
|
32
|
+
this.maxLevelBonus = data.attributes.max_level_bonus;
|
|
33
|
+
this.personality = data.attributes.personality;
|
|
34
|
+
this.xp = data.attributes.xp;
|
|
35
|
+
this.buildingSlotBuildingId = data.attributes.building_slot_used !== -1 ? data.attributes.slotted_building_id : undefined;
|
|
36
|
+
this.setBonus = data.attributes.set_bonus;
|
|
37
|
+
this.isSeen = data.attributes.item_seen;
|
|
38
|
+
this.isFavorite = data.attributes.favorite;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Whether the survivor is a leader
|
|
42
|
+
*/
|
|
43
|
+
get isLeader() {
|
|
44
|
+
return this.type === 'manager';
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The survivor's power level.
|
|
48
|
+
* Depends on the tier, level, rarity value and whether the survivor is a leader
|
|
49
|
+
*/
|
|
50
|
+
get powerLevel() {
|
|
51
|
+
return (0, Util_1.calcSTWSurvivorPowerLevel)(this.rarity, this.isLeader, this.level, this.tier);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The survivor's lead bonus.
|
|
55
|
+
* Will return 0 if the survivor is not a leader or not part of a squad
|
|
56
|
+
*/
|
|
57
|
+
get leadBonus() {
|
|
58
|
+
if (!this.managerSynergy || !this.squad)
|
|
59
|
+
return 0;
|
|
60
|
+
return (0, Util_1.calcSTWSurvivorLeadBonus)(this.managerSynergy, this.squad.name, this.powerLevel);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Calculates the survivor's bonus.
|
|
64
|
+
* Depends on the leader's rarity and personality.
|
|
65
|
+
* Returns 0 if the survivor is a leader
|
|
66
|
+
*/
|
|
67
|
+
calcSurvivorBonus(leader) {
|
|
68
|
+
if (this.isLeader)
|
|
69
|
+
return 0;
|
|
70
|
+
if (!leader.isLeader)
|
|
71
|
+
throw new Error('The leader survivor must be a leader');
|
|
72
|
+
return (0, Util_1.calcSTWSurvivorBonus)(leader.personality, leader.rarity, this.personality, this.powerLevel);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.default = STWSurvivor;
|
|
76
|
+
//# sourceMappingURL=STWSurvivor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"STWSurvivor.js","sourceRoot":"","sources":["../../../../src/structures/stw/STWSurvivor.ts"],"names":[],"mappings":";;;AAAA,gEAAgC;AAChC,0CAIyB;AAQzB;;GAEG;AACH,MAAM,WAAY,SAAQ,iBAAO;IAqF/B;;;;OAIG;IACH,YAAY,MAAc,EAAE,EAAU,EAAE,IAA4B;QAClE,KAAK,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QAExB,MAAM,cAAc,GAAG,IAAA,iCAA0B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAEnE,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC;QAChC,IAAI,CAAC,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC;QAEpC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC;QAErD,IAAI,CAAC,MAAM,GAAG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;OAEG;IACH,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC;IACjC,CAAC;IAED;;;OAGG;IACH,IAAW,UAAU;QACnB,OAAO,IAAA,gCAAyB,EAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACtF,CAAC;IAED;;;OAGG;IACH,IAAW,SAAS;QAClB,IAAI,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,KAAK;YAAE,OAAO,CAAC,CAAC;QAElD,OAAO,IAAA,+BAAwB,EAAC,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IACzF,CAAC;IAED;;;;OAIG;IACI,iBAAiB,CAAC,MAAmB;QAC1C,IAAI,IAAI,CAAC,QAAQ;YAAE,OAAO,CAAC,CAAC;QAC5B,IAAI,CAAC,MAAM,CAAC,QAAQ;YAAE,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;QAE9E,OAAO,IAAA,2BAAoB,EAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IACpG,CAAC;CACF;AAED,kBAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import STWItem from './STWItem';
|
|
2
|
+
import type { STWProfileItemData } from '../../../resources/httpResponses';
|
|
3
|
+
import type Client from '../../Client';
|
|
4
|
+
/**
|
|
5
|
+
* Represents a Save The World profile's team perk
|
|
6
|
+
*/
|
|
7
|
+
declare class STWTeamPerk extends STWItem {
|
|
8
|
+
/**
|
|
9
|
+
* The team perk's ID
|
|
10
|
+
*/
|
|
11
|
+
teamPerkId: string;
|
|
12
|
+
/**
|
|
13
|
+
* @param client The main client
|
|
14
|
+
* @param id The item ID
|
|
15
|
+
* @param data The team perk data
|
|
16
|
+
*/
|
|
17
|
+
constructor(client: Client, id: string, data: STWProfileItemData);
|
|
18
|
+
}
|
|
19
|
+
export default STWTeamPerk;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const STWItem_1 = tslib_1.__importDefault(require("./STWItem"));
|
|
5
|
+
/**
|
|
6
|
+
* Represents a Save The World profile's team perk
|
|
7
|
+
*/
|
|
8
|
+
class STWTeamPerk extends STWItem_1.default {
|
|
9
|
+
/**
|
|
10
|
+
* @param client The main client
|
|
11
|
+
* @param id The item ID
|
|
12
|
+
* @param data The team perk data
|
|
13
|
+
*/
|
|
14
|
+
constructor(client, id, data) {
|
|
15
|
+
super(client, id, data);
|
|
16
|
+
this.teamPerkId = data.templateId.split(':')[1];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.default = STWTeamPerk;
|
|
20
|
+
//# sourceMappingURL=STWTeamPerk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"STWTeamPerk.js","sourceRoot":"","sources":["../../../../src/structures/stw/STWTeamPerk.ts"],"names":[],"mappings":";;;AAAA,gEAAgC;AAIhC;;GAEG;AACH,MAAM,WAAY,SAAQ,iBAAO;IAM/B;;;;OAIG;IACH,YAAY,MAAc,EAAE,EAAU,EAAE,IAAwB;QAC9D,KAAK,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QAExB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAE,CAAC;IACnD,CAAC;CACF;AAED,kBAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import STWSchematic from './STWSchematic';
|
|
2
|
+
import type { STWSchematicTrapSubType } from '../../../resources/structs';
|
|
3
|
+
import type Client from '../../Client';
|
|
4
|
+
import type { STWProfileSchematicData } from '../../../resources/httpResponses';
|
|
5
|
+
declare class STWTrapSchematic extends STWSchematic {
|
|
6
|
+
type: 'trap';
|
|
7
|
+
subType: STWSchematicTrapSubType;
|
|
8
|
+
evoType: never;
|
|
9
|
+
constructor(client: Client, id: string, data: STWProfileSchematicData & {
|
|
10
|
+
type: 'trap';
|
|
11
|
+
subType: STWSchematicTrapSubType;
|
|
12
|
+
evoType: never;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export default STWTrapSchematic;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const STWSchematic_1 = tslib_1.__importDefault(require("./STWSchematic"));
|
|
5
|
+
const Util_1 = require("../../util/Util");
|
|
6
|
+
class STWTrapSchematic extends STWSchematic_1.default {
|
|
7
|
+
constructor(client, id, data) {
|
|
8
|
+
super(client, id, data);
|
|
9
|
+
const parsedSchematic = (0, Util_1.parseSTWSchematicTemplateId)(data.templateId);
|
|
10
|
+
this.type = parsedSchematic.type;
|
|
11
|
+
this.subType = parsedSchematic.subType;
|
|
12
|
+
this.evoType = parsedSchematic.evoType;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.default = STWTrapSchematic;
|
|
16
|
+
//# sourceMappingURL=STWTrapSchematic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"STWTrapSchematic.js","sourceRoot":"","sources":["../../../../src/structures/stw/STWTrapSchematic.ts"],"names":[],"mappings":";;;AAAA,0EAA0C;AAC1C,0CAA8D;AAK9D,MAAM,gBAAiB,SAAQ,sBAAY;IAKzC,YAAY,MAAc,EAAE,EAAU,EAAE,IAIvC;QACC,KAAK,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QAExB,MAAM,eAAe,GAAG,IAAA,kCAA2B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAErE,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC,IAAc,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,eAAe,CAAC,OAAkC,CAAC;QAClE,IAAI,CAAC,OAAO,GAAG,eAAe,CAAC,OAAgB,CAAC;IAClD,CAAC;CACF;AAED,kBAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import STWSchematic from './STWSchematic';
|
|
2
|
+
import type Client from '../../Client';
|
|
3
|
+
import type { STWProfileSchematicData } from '../../../resources/httpResponses';
|
|
4
|
+
import type { STWSchematicEvoType, STWSchematicMeleeSubType, STWSchematicRangedSubType } from '../../../resources/structs';
|
|
5
|
+
declare class STWWeaponSchematic extends STWSchematic {
|
|
6
|
+
type: 'ranged' | 'melee';
|
|
7
|
+
subType: STWSchematicRangedSubType | STWSchematicMeleeSubType;
|
|
8
|
+
evoType: STWSchematicEvoType;
|
|
9
|
+
constructor(client: Client, id: string, data: STWProfileSchematicData & {
|
|
10
|
+
type: 'ranged' | 'melee';
|
|
11
|
+
subType: STWSchematicRangedSubType | STWSchematicMeleeSubType;
|
|
12
|
+
evoType: STWSchematicEvoType;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export default STWWeaponSchematic;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const Util_1 = require("../../util/Util");
|
|
5
|
+
const STWSchematic_1 = tslib_1.__importDefault(require("./STWSchematic"));
|
|
6
|
+
class STWWeaponSchematic extends STWSchematic_1.default {
|
|
7
|
+
constructor(client, id, data) {
|
|
8
|
+
super(client, id, data);
|
|
9
|
+
const parsedSchematic = (0, Util_1.parseSTWSchematicTemplateId)(data.templateId);
|
|
10
|
+
this.type = parsedSchematic.type;
|
|
11
|
+
this.subType = parsedSchematic.subType;
|
|
12
|
+
this.evoType = parsedSchematic.evoType;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.default = STWWeaponSchematic;
|
|
16
|
+
//# sourceMappingURL=STWWeaponSchematic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"STWWeaponSchematic.js","sourceRoot":"","sources":["../../../../src/structures/stw/STWWeaponSchematic.ts"],"names":[],"mappings":";;;AAAA,0CAA8D;AAC9D,0EAA0C;AAK1C,MAAM,kBAAmB,SAAQ,sBAAY;IAK3C,YAAY,MAAc,EAAE,EAAU,EAAE,IAIvC;QACC,KAAK,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QAExB,MAAM,eAAe,GAAG,IAAA,kCAA2B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAErE,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC,IAA0B,CAAC;QACvD,IAAI,CAAC,OAAO,GAAG,eAAe,CAAC,OAA+D,CAAC;QAC/F,IAAI,CAAC,OAAO,GAAG,eAAe,CAAC,OAA8B,CAAC;IAChE,CAAC;CACF;AAED,kBAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import User from './User';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a blocked user
|
|
4
|
+
*/
|
|
5
|
+
declare class BlockedUser extends User {
|
|
6
|
+
/**
|
|
7
|
+
* Unblocks this user
|
|
8
|
+
* @throws {UserNotFoundError} The user wasn't found
|
|
9
|
+
* @throws {EpicgamesAPIError}
|
|
10
|
+
*/
|
|
11
|
+
unblock(): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
export default BlockedUser;
|