@rocket.chat/core-typings 6.3.0-rc.0 → 6.3.0-rc.1
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/CHANGELOG.md +8 -0
- package/dist/ACDQueues.d.ts +35 -0
- package/dist/ACDQueues.js +3 -0
- package/dist/ACDQueues.js.map +1 -0
- package/dist/AppOverview.d.ts +104 -0
- package/dist/AppOverview.js +3 -0
- package/dist/AppOverview.js.map +1 -0
- package/dist/AppRequests.d.ts +38 -0
- package/dist/AppRequests.js +3 -0
- package/dist/AppRequests.js.map +1 -0
- package/dist/Apps.d.ts +122 -0
- package/dist/Apps.js +12 -0
- package/dist/Apps.js.map +1 -0
- package/dist/AppsTokens.d.ts +11 -0
- package/dist/AppsTokens.js +3 -0
- package/dist/AppsTokens.js.map +1 -0
- package/dist/CustomFieldMetadata.d.ts +11 -0
- package/dist/CustomFieldMetadata.js +3 -0
- package/dist/CustomFieldMetadata.js.map +1 -0
- package/dist/FeaturedApps.d.ts +6 -0
- package/dist/FeaturedApps.js +3 -0
- package/dist/FeaturedApps.js.map +1 -0
- package/dist/IAnalytic.d.ts +29 -0
- package/dist/IAnalytic.js +3 -0
- package/dist/IAnalytic.js.map +1 -0
- package/dist/IAutoTranslate.d.ts +25 -0
- package/dist/IAutoTranslate.js +3 -0
- package/dist/IAutoTranslate.js.map +1 -0
- package/dist/IAvatar.d.ts +2 -0
- package/dist/IAvatar.js +3 -0
- package/dist/IAvatar.js.map +1 -0
- package/dist/IBanner.d.ts +30 -0
- package/dist/IBanner.js +11 -0
- package/dist/IBanner.js.map +1 -0
- package/dist/IBaseData.d.ts +3 -0
- package/dist/IBaseData.js +3 -0
- package/dist/IBaseData.js.map +1 -0
- package/dist/ICalendarEvent.d.ts +13 -0
- package/dist/ICalendarEvent.js +3 -0
- package/dist/ICalendarEvent.js.map +1 -0
- package/dist/ICloud.d.ts +41 -0
- package/dist/ICloud.js +3 -0
- package/dist/ICloud.js.map +1 -0
- package/dist/ICredentialToken.d.ts +9 -0
- package/dist/ICredentialToken.js +3 -0
- package/dist/ICredentialToken.js.map +1 -0
- package/dist/ICronHistoryItem.d.ts +9 -0
- package/dist/ICronHistoryItem.js +3 -0
- package/dist/ICronHistoryItem.js.map +1 -0
- package/dist/ICustomEmojiDescriptor.d.ts +6 -0
- package/dist/ICustomEmojiDescriptor.js +3 -0
- package/dist/ICustomEmojiDescriptor.js.map +1 -0
- package/dist/ICustomOAuthConfig.d.ts +16 -0
- package/dist/ICustomOAuthConfig.js +3 -0
- package/dist/ICustomOAuthConfig.js.map +1 -0
- package/dist/ICustomSound.d.ts +8 -0
- package/dist/ICustomSound.js +3 -0
- package/dist/ICustomSound.js.map +1 -0
- package/dist/ICustomUserStatus.d.ts +5 -0
- package/dist/ICustomUserStatus.js +3 -0
- package/dist/ICustomUserStatus.js.map +1 -0
- package/dist/IEmailInbox.d.ts +31 -0
- package/dist/IEmailInbox.js +3 -0
- package/dist/IEmailInbox.js.map +1 -0
- package/dist/IEmailMessageHistory.d.ts +5 -0
- package/dist/IEmailMessageHistory.js +3 -0
- package/dist/IEmailMessageHistory.js.map +1 -0
- package/dist/IEmoji.d.ts +3 -0
- package/dist/IEmoji.js +3 -0
- package/dist/IEmoji.js.map +1 -0
- package/dist/IEmojiCustom.d.ts +6 -0
- package/dist/IEmojiCustom.js +3 -0
- package/dist/IEmojiCustom.js.map +1 -0
- package/dist/IExportOperation.d.ts +28 -0
- package/dist/IExportOperation.js +3 -0
- package/dist/IExportOperation.js.map +1 -0
- package/dist/IIncomingMessage.d.ts +6 -0
- package/dist/IIncomingMessage.js +3 -0
- package/dist/IIncomingMessage.js.map +1 -0
- package/dist/IInquiry.d.ts +56 -0
- package/dist/IInquiry.js +11 -0
- package/dist/IInquiry.js.map +1 -0
- package/dist/IInstanceStatus.d.ts +23 -0
- package/dist/IInstanceStatus.js +3 -0
- package/dist/IInstanceStatus.js.map +1 -0
- package/dist/IIntegration.d.ts +64 -0
- package/dist/IIntegration.js +3 -0
- package/dist/IIntegration.js.map +1 -0
- package/dist/IIntegrationHistory.d.ts +26 -0
- package/dist/IIntegrationHistory.js +3 -0
- package/dist/IIntegrationHistory.js.map +1 -0
- package/dist/IInvite.d.ts +11 -0
- package/dist/IInvite.js +3 -0
- package/dist/IInvite.js.map +1 -0
- package/dist/ILivechatAgent.d.ts +15 -0
- package/dist/ILivechatAgent.js +9 -0
- package/dist/ILivechatAgent.js.map +1 -0
- package/dist/ILivechatAgentActivity.d.ts +13 -0
- package/dist/ILivechatAgentActivity.js +3 -0
- package/dist/ILivechatAgentActivity.js.map +1 -0
- package/dist/ILivechatBusinessHour.d.ts +43 -0
- package/dist/ILivechatBusinessHour.js +14 -0
- package/dist/ILivechatBusinessHour.js.map +1 -0
- package/dist/ILivechatCustomField.d.ts +13 -0
- package/dist/ILivechatCustomField.js +3 -0
- package/dist/ILivechatCustomField.js.map +1 -0
- package/dist/ILivechatDepartment.d.ts +33 -0
- package/dist/ILivechatDepartment.js +3 -0
- package/dist/ILivechatDepartment.js.map +1 -0
- package/dist/ILivechatDepartmentAgents.d.ts +9 -0
- package/dist/ILivechatDepartmentAgents.js +3 -0
- package/dist/ILivechatDepartmentAgents.js.map +1 -0
- package/dist/ILivechatDepartmentRecord.d.ts +19 -0
- package/dist/ILivechatDepartmentRecord.js +3 -0
- package/dist/ILivechatDepartmentRecord.js.map +1 -0
- package/dist/ILivechatMonitor.d.ts +10 -0
- package/dist/ILivechatMonitor.js +3 -0
- package/dist/ILivechatMonitor.js.map +1 -0
- package/dist/ILivechatMonitorRecord.d.ts +9 -0
- package/dist/ILivechatMonitorRecord.js +3 -0
- package/dist/ILivechatMonitorRecord.js.map +1 -0
- package/dist/ILivechatPriority.d.ts +16 -0
- package/dist/ILivechatPriority.js +13 -0
- package/dist/ILivechatPriority.js.map +1 -0
- package/dist/ILivechatTag.d.ts +7 -0
- package/dist/ILivechatTag.js +3 -0
- package/dist/ILivechatTag.js.map +1 -0
- package/dist/ILivechatTagRecord.d.ts +8 -0
- package/dist/ILivechatTagRecord.js +3 -0
- package/dist/ILivechatTagRecord.js.map +1 -0
- package/dist/ILivechatTrigger.d.ts +26 -0
- package/dist/ILivechatTrigger.js +10 -0
- package/dist/ILivechatTrigger.js.map +1 -0
- package/dist/ILivechatUnitMonitor.d.ts +6 -0
- package/dist/ILivechatUnitMonitor.js +3 -0
- package/dist/ILivechatUnitMonitor.js.map +1 -0
- package/dist/ILivechatVisitor.d.ts +62 -0
- package/dist/ILivechatVisitor.js +6 -0
- package/dist/ILivechatVisitor.js.map +1 -0
- package/dist/ILoginServiceConfiguration.d.ts +6 -0
- package/dist/ILoginServiceConfiguration.js +3 -0
- package/dist/ILoginServiceConfiguration.js.map +1 -0
- package/dist/ILogs.d.ts +18 -0
- package/dist/ILogs.js +3 -0
- package/dist/ILogs.js.map +1 -0
- package/dist/IMessage/IMessage.d.ts +249 -0
- package/dist/IMessage/IMessage.js +42 -0
- package/dist/IMessage/IMessage.js.map +1 -0
- package/dist/IMessage/MessageAttachment/FieldProps.d.ts +5 -0
- package/dist/IMessage/MessageAttachment/FieldProps.js +3 -0
- package/dist/IMessage/MessageAttachment/FieldProps.js.map +1 -0
- package/dist/IMessage/MessageAttachment/Files/AudioAttachmentProps.d.ts +17 -0
- package/dist/IMessage/MessageAttachment/Files/AudioAttachmentProps.js +6 -0
- package/dist/IMessage/MessageAttachment/Files/AudioAttachmentProps.js.map +1 -0
- package/dist/IMessage/MessageAttachment/Files/Dimensions.d.ts +4 -0
- package/dist/IMessage/MessageAttachment/Files/Dimensions.js +3 -0
- package/dist/IMessage/MessageAttachment/Files/Dimensions.js.map +1 -0
- package/dist/IMessage/MessageAttachment/Files/FileAttachmentProps.d.ts +8 -0
- package/dist/IMessage/MessageAttachment/Files/FileAttachmentProps.js +6 -0
- package/dist/IMessage/MessageAttachment/Files/FileAttachmentProps.js.map +1 -0
- package/dist/IMessage/MessageAttachment/Files/FileProp.d.ts +7 -0
- package/dist/IMessage/MessageAttachment/Files/FileProp.js +3 -0
- package/dist/IMessage/MessageAttachment/Files/FileProp.js.map +1 -0
- package/dist/IMessage/MessageAttachment/Files/ImageAttachmentProps.d.ts +22 -0
- package/dist/IMessage/MessageAttachment/Files/ImageAttachmentProps.js +6 -0
- package/dist/IMessage/MessageAttachment/Files/ImageAttachmentProps.js.map +1 -0
- package/dist/IMessage/MessageAttachment/Files/PDFAttachmentProps.d.ts +5 -0
- package/dist/IMessage/MessageAttachment/Files/PDFAttachmentProps.js +3 -0
- package/dist/IMessage/MessageAttachment/Files/PDFAttachmentProps.js.map +1 -0
- package/dist/IMessage/MessageAttachment/Files/VideoAttachmentProps.d.ts +17 -0
- package/dist/IMessage/MessageAttachment/Files/VideoAttachmentProps.js +6 -0
- package/dist/IMessage/MessageAttachment/Files/VideoAttachmentProps.js.map +1 -0
- package/dist/IMessage/MessageAttachment/Files/index.d.ts +7 -0
- package/dist/IMessage/MessageAttachment/Files/index.js +24 -0
- package/dist/IMessage/MessageAttachment/Files/index.js.map +1 -0
- package/dist/IMessage/MessageAttachment/MessageAttachment.d.ts +5 -0
- package/dist/IMessage/MessageAttachment/MessageAttachment.js +3 -0
- package/dist/IMessage/MessageAttachment/MessageAttachment.js.map +1 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentAction.d.ts +20 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentAction.js +7 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentAction.js.map +1 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentBase.d.ts +14 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentBase.js +3 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentBase.js.map +1 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentDefault.d.ts +19 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentDefault.js +3 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentDefault.js.map +1 -0
- package/dist/IMessage/MessageAttachment/MessageQuoteAttachment.d.ts +13 -0
- package/dist/IMessage/MessageAttachment/MessageQuoteAttachment.js +6 -0
- package/dist/IMessage/MessageAttachment/MessageQuoteAttachment.js.map +1 -0
- package/dist/IMessage/MessageAttachment/TranslatedMessageAttachment.d.ts +9 -0
- package/dist/IMessage/MessageAttachment/TranslatedMessageAttachment.js +8 -0
- package/dist/IMessage/MessageAttachment/TranslatedMessageAttachment.js.map +1 -0
- package/dist/IMessage/MessageAttachment/index.d.ts +8 -0
- package/dist/IMessage/MessageAttachment/index.js +25 -0
- package/dist/IMessage/MessageAttachment/index.js.map +1 -0
- package/dist/IMessage/index.d.ts +2 -0
- package/dist/IMessage/index.js +19 -0
- package/dist/IMessage/index.js.map +1 -0
- package/dist/IMethodThisType.d.ts +15 -0
- package/dist/IMethodThisType.js +3 -0
- package/dist/IMethodThisType.js.map +1 -0
- package/dist/IMethodType.d.ts +4 -0
- package/dist/IMethodType.js +3 -0
- package/dist/IMethodType.js.map +1 -0
- package/dist/IModerationReport.d.ts +30 -0
- package/dist/IModerationReport.js +3 -0
- package/dist/IModerationReport.js.map +1 -0
- package/dist/INotification.d.ts +69 -0
- package/dist/INotification.js +3 -0
- package/dist/INotification.js.map +1 -0
- package/dist/INps.d.ts +31 -0
- package/dist/INps.js +17 -0
- package/dist/INps.js.map +1 -0
- package/dist/IOAuthAccessToken.d.ts +9 -0
- package/dist/IOAuthAccessToken.js +3 -0
- package/dist/IOAuthAccessToken.js.map +1 -0
- package/dist/IOAuthApps.d.ts +15 -0
- package/dist/IOAuthApps.js +3 -0
- package/dist/IOAuthApps.js.map +1 -0
- package/dist/IOAuthAuthCode.d.ts +8 -0
- package/dist/IOAuthAuthCode.js +3 -0
- package/dist/IOAuthAuthCode.js.map +1 -0
- package/dist/IOAuthRefreshToken.d.ts +7 -0
- package/dist/IOAuthRefreshToken.js +3 -0
- package/dist/IOAuthRefreshToken.js.map +1 -0
- package/dist/IOEmbedCache.d.ts +5 -0
- package/dist/IOEmbedCache.js +3 -0
- package/dist/IOEmbedCache.js.map +1 -0
- package/dist/IOembed.d.ts +43 -0
- package/dist/IOembed.js +8 -0
- package/dist/IOembed.js.map +1 -0
- package/dist/IOmnichannel.d.ts +11 -0
- package/dist/IOmnichannel.js +10 -0
- package/dist/IOmnichannel.js.map +1 -0
- package/dist/IOmnichannelAgent.d.ts +5 -0
- package/dist/IOmnichannelAgent.js +3 -0
- package/dist/IOmnichannelAgent.js.map +1 -0
- package/dist/IOmnichannelBusinessUnit.d.ts +10 -0
- package/dist/IOmnichannelBusinessUnit.js +3 -0
- package/dist/IOmnichannelBusinessUnit.js.map +1 -0
- package/dist/IOmnichannelCannedResponse.d.ts +16 -0
- package/dist/IOmnichannelCannedResponse.js +3 -0
- package/dist/IOmnichannelCannedResponse.js.map +1 -0
- package/dist/IOmnichannelCustomAgent.d.ts +4 -0
- package/dist/IOmnichannelCustomAgent.js +3 -0
- package/dist/IOmnichannelCustomAgent.js.map +1 -0
- package/dist/IOmnichannelServiceLevelAgreements.d.ts +9 -0
- package/dist/IOmnichannelServiceLevelAgreements.js +7 -0
- package/dist/IOmnichannelServiceLevelAgreements.js.map +1 -0
- package/dist/IOmnichannelVoipServiceResult.d.ts +10 -0
- package/dist/IOmnichannelVoipServiceResult.js +3 -0
- package/dist/IOmnichannelVoipServiceResult.js.map +1 -0
- package/dist/IPassword.d.ts +4 -0
- package/dist/IPassword.js +3 -0
- package/dist/IPassword.js.map +1 -0
- package/dist/IPbxEvent.d.ts +12 -0
- package/dist/IPbxEvent.js +3 -0
- package/dist/IPbxEvent.js.map +1 -0
- package/dist/IPermission.d.ts +12 -0
- package/dist/IPermission.js +3 -0
- package/dist/IPermission.js.map +1 -0
- package/dist/IPushNotificationConfig.d.ts +18 -0
- package/dist/IPushNotificationConfig.js +3 -0
- package/dist/IPushNotificationConfig.js.map +1 -0
- package/dist/IPushToken.d.ts +10 -0
- package/dist/IPushToken.js +3 -0
- package/dist/IPushToken.js.map +1 -0
- package/dist/IReport.d.ts +8 -0
- package/dist/IReport.js +3 -0
- package/dist/IReport.js.map +1 -0
- package/dist/IRocketChatAssets.d.ts +53 -0
- package/dist/IRocketChatAssets.js +3 -0
- package/dist/IRocketChatAssets.js.map +1 -0
- package/dist/IRocketChatRecord.d.ts +10 -0
- package/dist/IRocketChatRecord.js +3 -0
- package/dist/IRocketChatRecord.js.map +1 -0
- package/dist/IRole.d.ts +8 -0
- package/dist/IRole.js +3 -0
- package/dist/IRole.js.map +1 -0
- package/dist/IRoom.d.ts +243 -0
- package/dist/IRoom.js +46 -0
- package/dist/IRoom.js.map +1 -0
- package/dist/IServerEvent.d.ts +12 -0
- package/dist/IServerEvent.js +9 -0
- package/dist/IServerEvent.js.map +1 -0
- package/dist/IServerInfo.d.ts +22 -0
- package/dist/IServerInfo.js +3 -0
- package/dist/IServerInfo.js.map +1 -0
- package/dist/ISession.d.ts +78 -0
- package/dist/ISession.js +3 -0
- package/dist/ISession.js.map +1 -0
- package/dist/ISetting.d.ts +222 -0
- package/dist/ISetting.js +31 -0
- package/dist/ISetting.js.map +1 -0
- package/dist/ISmarshHistory.d.ts +5 -0
- package/dist/ISmarshHistory.js +3 -0
- package/dist/ISmarshHistory.js.map +1 -0
- package/dist/ISocketConnection.d.ts +14 -0
- package/dist/ISocketConnection.js +3 -0
- package/dist/ISocketConnection.js.map +1 -0
- package/dist/IStats.d.ts +216 -0
- package/dist/IStats.js +3 -0
- package/dist/IStats.js.map +1 -0
- package/dist/ISubscription.d.ts +63 -0
- package/dist/ISubscription.js +3 -0
- package/dist/ISubscription.js.map +1 -0
- package/dist/ITeam.d.ts +45 -0
- package/dist/ITeam.js +9 -0
- package/dist/ITeam.js.map +1 -0
- package/dist/IUpload.d.ts +49 -0
- package/dist/IUpload.js +3 -0
- package/dist/IUpload.js.map +1 -0
- package/dist/IUser.d.ts +198 -0
- package/dist/IUser.js +8 -0
- package/dist/IUser.js.map +1 -0
- package/dist/IUserAction.d.ts +12 -0
- package/dist/IUserAction.js +3 -0
- package/dist/IUserAction.js.map +1 -0
- package/dist/IUserDataFile.d.ts +2 -0
- package/dist/IUserDataFile.js +3 -0
- package/dist/IUserDataFile.js.map +1 -0
- package/dist/IUserSession.d.ts +12 -0
- package/dist/IUserSession.js +3 -0
- package/dist/IUserSession.js.map +1 -0
- package/dist/IUserStatus.d.ts +5 -0
- package/dist/IUserStatus.js +3 -0
- package/dist/IUserStatus.js.map +1 -0
- package/dist/IVideoConference.d.ts +75 -0
- package/dist/IVideoConference.js +24 -0
- package/dist/IVideoConference.js.map +1 -0
- package/dist/IVoipConnectorResult.d.ts +6 -0
- package/dist/IVoipConnectorResult.js +3 -0
- package/dist/IVoipConnectorResult.js.map +1 -0
- package/dist/IVoipExtension.d.ts +38 -0
- package/dist/IVoipExtension.js +22 -0
- package/dist/IVoipExtension.js.map +1 -0
- package/dist/IVoipServerConfig.d.ts +24 -0
- package/dist/IVoipServerConfig.js +11 -0
- package/dist/IVoipServerConfig.js.map +1 -0
- package/dist/IVoipServerConnectivityStatus.d.ts +4 -0
- package/dist/IVoipServerConnectivityStatus.js +3 -0
- package/dist/IVoipServerConnectivityStatus.js.map +1 -0
- package/dist/IWebdavAccount.d.ts +19 -0
- package/dist/IWebdavAccount.js +3 -0
- package/dist/IWebdavAccount.js.map +1 -0
- package/dist/MarketplaceRest.d.ts +15 -0
- package/dist/MarketplaceRest.js +3 -0
- package/dist/MarketplaceRest.js.map +1 -0
- package/dist/MessageReads.d.ts +8 -0
- package/dist/MessageReads.js +3 -0
- package/dist/MessageReads.js.map +1 -0
- package/dist/OmichannelRoutingConfig.d.ts +16 -0
- package/dist/OmichannelRoutingConfig.js +3 -0
- package/dist/OmichannelRoutingConfig.js.map +1 -0
- package/dist/ReadReceipt.d.ts +12 -0
- package/dist/ReadReceipt.js +3 -0
- package/dist/ReadReceipt.js.map +1 -0
- package/dist/RoomType.d.ts +1 -0
- package/dist/RoomType.js +3 -0
- package/dist/RoomType.js.map +1 -0
- package/dist/Serialized.d.ts +3 -0
- package/dist/Serialized.js +3 -0
- package/dist/Serialized.js.map +1 -0
- package/dist/SlashCommands/index.d.ts +45 -0
- package/dist/SlashCommands/index.js +3 -0
- package/dist/SlashCommands/index.js.map +1 -0
- package/dist/SpotlightUser.d.ts +10 -0
- package/dist/SpotlightUser.js +3 -0
- package/dist/SpotlightUser.js.map +1 -0
- package/dist/UIKit.d.ts +53 -0
- package/dist/UIKit.js +17 -0
- package/dist/UIKit.js.map +1 -0
- package/dist/UserStatus.d.ts +7 -0
- package/dist/UserStatus.js +12 -0
- package/dist/UserStatus.js.map +1 -0
- package/dist/VideoConferenceCapabilities.d.ts +5 -0
- package/dist/VideoConferenceCapabilities.js +3 -0
- package/dist/VideoConferenceCapabilities.js.map +1 -0
- package/dist/VideoConferenceOptions.d.ts +4 -0
- package/dist/VideoConferenceOptions.js +3 -0
- package/dist/VideoConferenceOptions.js.map +1 -0
- package/dist/ee/IAuditLog.d.ts +22 -0
- package/dist/ee/IAuditLog.js +3 -0
- package/dist/ee/IAuditLog.js.map +1 -0
- package/dist/ee/ILicense/ILicense.d.ts +19 -0
- package/dist/ee/ILicense/ILicense.js +3 -0
- package/dist/ee/ILicense/ILicense.js.map +1 -0
- package/dist/ee/ILicense/ILicenseTag.d.ts +4 -0
- package/dist/ee/ILicense/ILicenseTag.js +3 -0
- package/dist/ee/ILicense/ILicenseTag.js.map +1 -0
- package/dist/federation/IMatrixBridgedRoom.d.ts +5 -0
- package/dist/federation/IMatrixBridgedRoom.js +3 -0
- package/dist/federation/IMatrixBridgedRoom.js.map +1 -0
- package/dist/federation/IMatrixBridgedUser.d.ts +7 -0
- package/dist/federation/IMatrixBridgedUser.js +3 -0
- package/dist/federation/IMatrixBridgedUser.js.map +1 -0
- package/dist/federation/index.d.ts +3 -0
- package/dist/federation/index.js +20 -0
- package/dist/federation/index.js.map +1 -0
- package/dist/federation/v1/FederationKey.d.ts +5 -0
- package/dist/federation/v1/FederationKey.js +3 -0
- package/dist/federation/v1/FederationKey.js.map +1 -0
- package/dist/federation/v1/IFederationEvent.d.ts +12 -0
- package/dist/federation/v1/IFederationEvent.js +3 -0
- package/dist/federation/v1/IFederationEvent.js.map +1 -0
- package/dist/federation/v1/IFederationServer.d.ts +4 -0
- package/dist/federation/v1/IFederationServer.js +3 -0
- package/dist/federation/v1/IFederationServer.js.map +1 -0
- package/dist/federation/v1/events.d.ts +15 -0
- package/dist/federation/v1/events.js +21 -0
- package/dist/federation/v1/events.js.map +1 -0
- package/dist/federation/v1/index.d.ts +4 -0
- package/dist/federation/v1/index.js +6 -0
- package/dist/federation/v1/index.js.map +1 -0
- package/dist/import/IImport.d.ts +13 -0
- package/dist/import/IImport.js +3 -0
- package/dist/import/IImport.js.map +1 -0
- package/dist/import/IImportChannel.d.ts +14 -0
- package/dist/import/IImportChannel.js +3 -0
- package/dist/import/IImportChannel.js.map +1 -0
- package/dist/import/IImportFileData.d.ts +7 -0
- package/dist/import/IImportFileData.js +3 -0
- package/dist/import/IImportFileData.js.map +1 -0
- package/dist/import/IImportMessage.d.ts +45 -0
- package/dist/import/IImportMessage.js +3 -0
- package/dist/import/IImportMessage.js.map +1 -0
- package/dist/import/IImportProgress.d.ts +10 -0
- package/dist/import/IImportProgress.js +3 -0
- package/dist/import/IImportProgress.js.map +1 -0
- package/dist/import/IImportRecord.d.ts +31 -0
- package/dist/import/IImportRecord.js +3 -0
- package/dist/import/IImportRecord.js.map +1 -0
- package/dist/import/IImportUser.d.ts +16 -0
- package/dist/import/IImportUser.js +3 -0
- package/dist/import/IImportUser.js.map +1 -0
- package/dist/import/index.d.ts +7 -0
- package/dist/import/index.js +24 -0
- package/dist/import/index.js.map +1 -0
- package/dist/index.d.ts +119 -0
- package/dist/index.js +139 -0
- package/dist/index.js.map +1 -0
- package/dist/ldap/ILDAPCallback.d.ts +10 -0
- package/dist/ldap/ILDAPCallback.js +3 -0
- package/dist/ldap/ILDAPCallback.js.map +1 -0
- package/dist/ldap/ILDAPEntry.d.ts +3 -0
- package/dist/ldap/ILDAPEntry.js +3 -0
- package/dist/ldap/ILDAPEntry.js.map +1 -0
- package/dist/ldap/ILDAPLoginRequest.d.ts +6 -0
- package/dist/ldap/ILDAPLoginRequest.js +3 -0
- package/dist/ldap/ILDAPLoginRequest.js.map +1 -0
- package/dist/ldap/ILDAPLoginResult.d.ts +4 -0
- package/dist/ldap/ILDAPLoginResult.js +3 -0
- package/dist/ldap/ILDAPLoginResult.js.map +1 -0
- package/dist/ldap/ILDAPOptions.d.ts +30 -0
- package/dist/ldap/ILDAPOptions.js +3 -0
- package/dist/ldap/ILDAPOptions.js.map +1 -0
- package/dist/ldap/ILDAPUniqueIdentifierField.d.ts +4 -0
- package/dist/ldap/ILDAPUniqueIdentifierField.js +3 -0
- package/dist/ldap/ILDAPUniqueIdentifierField.js.map +1 -0
- package/dist/ldap/index.d.ts +6 -0
- package/dist/ldap/index.js +23 -0
- package/dist/ldap/index.js.map +1 -0
- package/dist/migrations/IControl.d.ts +7 -0
- package/dist/migrations/IControl.js +3 -0
- package/dist/migrations/IControl.js.map +1 -0
- package/dist/omnichannel/index.d.ts +2 -0
- package/dist/omnichannel/index.js +19 -0
- package/dist/omnichannel/index.js.map +1 -0
- package/dist/omnichannel/routing.d.ts +20 -0
- package/dist/omnichannel/routing.js +3 -0
- package/dist/omnichannel/routing.js.map +1 -0
- package/dist/omnichannel/sms.d.ts +59 -0
- package/dist/omnichannel/sms.js +12 -0
- package/dist/omnichannel/sms.js.map +1 -0
- package/dist/search/IMessageSearchProvider.d.ts +10 -0
- package/dist/search/IMessageSearchProvider.js +3 -0
- package/dist/search/IMessageSearchProvider.js.map +1 -0
- package/dist/search/IMessageSearchSuggestion.d.ts +3 -0
- package/dist/search/IMessageSearchSuggestion.js +3 -0
- package/dist/search/IMessageSearchSuggestion.js.map +1 -0
- package/dist/search/index.d.ts +2 -0
- package/dist/search/index.js +19 -0
- package/dist/search/index.js.map +1 -0
- package/dist/utils.d.ts +14 -0
- package/dist/utils.js +3 -0
- package/dist/utils.js.map +1 -0
- package/dist/voip/CallStates.d.ts +5 -0
- package/dist/voip/CallStates.js +7 -0
- package/dist/voip/CallStates.js.map +1 -0
- package/dist/voip/ConnectionState.d.ts +5 -0
- package/dist/voip/ConnectionState.js +7 -0
- package/dist/voip/ConnectionState.js.map +1 -0
- package/dist/voip/ICallDetails.d.ts +6 -0
- package/dist/voip/ICallDetails.js +3 -0
- package/dist/voip/ICallDetails.js.map +1 -0
- package/dist/voip/ICallerInfo.d.ts +5 -0
- package/dist/voip/ICallerInfo.js +3 -0
- package/dist/voip/ICallerInfo.js.map +1 -0
- package/dist/voip/IConnectionDelegate.d.ts +20 -0
- package/dist/voip/IConnectionDelegate.js +3 -0
- package/dist/voip/IConnectionDelegate.js.map +1 -0
- package/dist/voip/IEvents.d.ts +113 -0
- package/dist/voip/IEvents.js +26 -0
- package/dist/voip/IEvents.js.map +1 -0
- package/dist/voip/IQueueInfo.d.ts +8 -0
- package/dist/voip/IQueueInfo.js +7 -0
- package/dist/voip/IQueueInfo.js.map +1 -0
- package/dist/voip/IRegisterHandlerDelegate.d.ts +32 -0
- package/dist/voip/IRegisterHandlerDelegate.js +3 -0
- package/dist/voip/IRegisterHandlerDelegate.js.map +1 -0
- package/dist/voip/IRegistrationInfo.d.ts +19 -0
- package/dist/voip/IRegistrationInfo.js +9 -0
- package/dist/voip/IRegistrationInfo.js.map +1 -0
- package/dist/voip/IVoipClientEvents.d.ts +96 -0
- package/dist/voip/IVoipClientEvents.js +16 -0
- package/dist/voip/IVoipClientEvents.js.map +1 -0
- package/dist/voip/Operations.d.ts +15 -0
- package/dist/voip/Operations.js +20 -0
- package/dist/voip/Operations.js.map +1 -0
- package/dist/voip/SignalingSocketEvents.d.ts +8 -0
- package/dist/voip/SignalingSocketEvents.js +3 -0
- package/dist/voip/SignalingSocketEvents.js.map +1 -0
- package/dist/voip/UserState.d.ts +5 -0
- package/dist/voip/UserState.js +12 -0
- package/dist/voip/UserState.js.map +1 -0
- package/dist/voip/VoIPUserConfiguration.d.ts +50 -0
- package/dist/voip/VoIPUserConfiguration.js +3 -0
- package/dist/voip/VoIPUserConfiguration.js.map +1 -0
- package/dist/voip/VoIpCallerInfo.d.ts +15 -0
- package/dist/voip/VoIpCallerInfo.js +3 -0
- package/dist/voip/VoIpCallerInfo.js.map +1 -0
- package/dist/voip/VoipClientEvents.d.ts +8 -0
- package/dist/voip/VoipClientEvents.js +13 -0
- package/dist/voip/VoipClientEvents.js.map +1 -0
- package/dist/voip/VoipEvents.d.ts +21 -0
- package/dist/voip/VoipEvents.js +3 -0
- package/dist/voip/VoipEvents.js.map +1 -0
- package/dist/voip/WorkflowTypes.d.ts +10 -0
- package/dist/voip/WorkflowTypes.js +15 -0
- package/dist/voip/WorkflowTypes.js.map +1 -0
- package/dist/voip/index.d.ts +18 -0
- package/dist/voip/index.js +35 -0
- package/dist/voip/index.js.map +1 -0
- package/package.json +1 -1
package/dist/ISetting.js
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isSettingAsset = exports.isSettingAction = exports.isSettingCode = exports.isSettingColor = exports.isSettingEnterprise = exports.isDateSetting = exports.isSetting = exports.SettingEditor = void 0;
|
4
|
+
var SettingEditor;
|
5
|
+
(function (SettingEditor) {
|
6
|
+
SettingEditor["COLOR"] = "color";
|
7
|
+
SettingEditor["EXPRESSION"] = "expression";
|
8
|
+
})(SettingEditor || (exports.SettingEditor = SettingEditor = {}));
|
9
|
+
// Checks if setting has at least the required properties
|
10
|
+
const isSetting = (setting) => '_id' in setting &&
|
11
|
+
'type' in setting &&
|
12
|
+
'public' in setting &&
|
13
|
+
'value' in setting &&
|
14
|
+
'packageValue' in setting &&
|
15
|
+
'blocked' in setting &&
|
16
|
+
'sorter' in setting &&
|
17
|
+
'i18nLabel' in setting;
|
18
|
+
exports.isSetting = isSetting;
|
19
|
+
const isDateSetting = (setting) => setting.type === 'date';
|
20
|
+
exports.isDateSetting = isDateSetting;
|
21
|
+
const isSettingEnterprise = (setting) => setting.enterprise === true;
|
22
|
+
exports.isSettingEnterprise = isSettingEnterprise;
|
23
|
+
const isSettingColor = (setting) => setting.type === 'color';
|
24
|
+
exports.isSettingColor = isSettingColor;
|
25
|
+
const isSettingCode = (setting) => setting.type === 'code';
|
26
|
+
exports.isSettingCode = isSettingCode;
|
27
|
+
const isSettingAction = (setting) => setting.type === 'action';
|
28
|
+
exports.isSettingAction = isSettingAction;
|
29
|
+
const isSettingAsset = (setting) => setting.type === 'asset';
|
30
|
+
exports.isSettingAsset = isSettingAsset;
|
31
|
+
//# sourceMappingURL=ISetting.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ISetting.js","sourceRoot":"","sources":["../src/ISetting.ts"],"names":[],"mappings":";;;AAOA,IAAY,aAGX;AAHD,WAAY,aAAa;IACxB,gCAAe,CAAA;IACf,0CAAyB,CAAA;AAC1B,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAqID,yDAAyD;AAClD,MAAM,SAAS,GAAG,CAAC,OAAY,EAAuB,EAAE,CAC9D,KAAK,IAAI,OAAO;IAChB,MAAM,IAAI,OAAO;IACjB,QAAQ,IAAI,OAAO;IACnB,OAAO,IAAI,OAAO;IAClB,cAAc,IAAI,OAAO;IACzB,SAAS,IAAI,OAAO;IACpB,QAAQ,IAAI,OAAO;IACnB,WAAW,IAAI,OAAO,CAAC;AARX,QAAA,SAAS,aAQE;AAEjB,MAAM,aAAa,GAAG,CAAC,OAAiB,EAA2B,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,MAAM,CAAC;AAAxF,QAAA,aAAa,iBAA2E;AAE9F,MAAM,mBAAmB,GAAG,CAAC,OAAqB,EAAiC,EAAE,CAAC,OAAO,CAAC,UAAU,KAAK,IAAI,CAAC;AAA5G,QAAA,mBAAmB,uBAAyF;AAElH,MAAM,cAAc,GAAG,CAAC,OAAqB,EAA4B,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC;AAA/F,QAAA,cAAc,kBAAiF;AAErG,MAAM,aAAa,GAAG,CAAC,OAAqB,EAA2B,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,MAAM,CAAC;AAA5F,QAAA,aAAa,iBAA+E;AAElG,MAAM,eAAe,GAAG,CAAC,OAAqB,EAA6B,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,QAAQ,CAAC;AAAlG,QAAA,eAAe,mBAAmF;AAExG,MAAM,cAAc,GAAG,CAAC,OAAqB,EAA4B,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC;AAA/F,QAAA,cAAc,kBAAiF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ISmarshHistory.js","sourceRoot":"","sources":["../src/ISmarshHistory.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import type { IncomingHttpHeaders } from 'http';
|
3
|
+
export interface ISocketConnection {
|
4
|
+
id: string;
|
5
|
+
instanceId: string;
|
6
|
+
loginToken?: string;
|
7
|
+
livechatToken?: string;
|
8
|
+
onClose(fn: (...args: any[]) => void): void;
|
9
|
+
clientAddress: string | undefined;
|
10
|
+
httpHeaders: IncomingHttpHeaders;
|
11
|
+
}
|
12
|
+
export interface ISocketConnectionLogged extends ISocketConnection {
|
13
|
+
loginToken?: string;
|
14
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ISocketConnection.js","sourceRoot":"","sources":["../src/ISocketConnection.ts"],"names":[],"mappings":""}
|
package/dist/IStats.d.ts
ADDED
@@ -0,0 +1,216 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
/// <reference types="node" />
|
3
|
+
import type { CpuInfo } from 'os';
|
4
|
+
import type { DeviceSessionAggregationResult, OSSessionAggregationResult, UserSessionAggregationResult } from './ISession';
|
5
|
+
import type { ISettingStatisticsObject } from './ISetting';
|
6
|
+
import type { ITeamStats } from './ITeam';
|
7
|
+
export interface IStats {
|
8
|
+
_id: string;
|
9
|
+
wizard: Record<string, unknown>;
|
10
|
+
uniqueId: string;
|
11
|
+
installedAt?: string;
|
12
|
+
version?: string;
|
13
|
+
tag?: string;
|
14
|
+
branch?: string;
|
15
|
+
totalUsers: number;
|
16
|
+
activeUsers: number;
|
17
|
+
activeGuests: number;
|
18
|
+
nonActiveUsers: number;
|
19
|
+
appUsers: number;
|
20
|
+
onlineUsers: number;
|
21
|
+
awayUsers: number;
|
22
|
+
busyUsers: number;
|
23
|
+
totalConnectedUsers: number;
|
24
|
+
offlineUsers: number;
|
25
|
+
userLanguages: Record<string, number>;
|
26
|
+
totalRooms: number;
|
27
|
+
totalChannels: number;
|
28
|
+
totalPrivateGroups: number;
|
29
|
+
totalDirect: number;
|
30
|
+
totalLivechat: number;
|
31
|
+
totalDiscussions: number;
|
32
|
+
totalThreads: number;
|
33
|
+
teams: ITeamStats;
|
34
|
+
totalLivechatVisitors: number;
|
35
|
+
totalLivechatAgents: number;
|
36
|
+
totalLivechatManagers: number;
|
37
|
+
totalCustomFields: number;
|
38
|
+
livechatEnabled: boolean;
|
39
|
+
isDepartmentRemovalEnabled: boolean;
|
40
|
+
totalChannelMessages: number;
|
41
|
+
totalPrivateGroupMessages: number;
|
42
|
+
totalDirectMessages: number;
|
43
|
+
totalLivechatMessages: number;
|
44
|
+
totalTriggers: number;
|
45
|
+
totalMessages: number;
|
46
|
+
federatedServers: number;
|
47
|
+
federatedUsers: number;
|
48
|
+
lastLogin: string;
|
49
|
+
lastMessageSentAt: Date | undefined;
|
50
|
+
lastSeenSubscription: string;
|
51
|
+
os: {
|
52
|
+
type: string;
|
53
|
+
platform: NodeJS.Platform;
|
54
|
+
arch: string;
|
55
|
+
release: string;
|
56
|
+
uptime: number;
|
57
|
+
loadavg: number[];
|
58
|
+
totalmem: number;
|
59
|
+
freemem: number;
|
60
|
+
cpus: CpuInfo[];
|
61
|
+
};
|
62
|
+
process: {
|
63
|
+
nodeVersion: string;
|
64
|
+
pid: number;
|
65
|
+
uptime: number;
|
66
|
+
};
|
67
|
+
deploy: {
|
68
|
+
method: string;
|
69
|
+
platform: string;
|
70
|
+
};
|
71
|
+
enterpriseReady: boolean;
|
72
|
+
uploadsTotal: number;
|
73
|
+
uploadsTotalSize: number;
|
74
|
+
migration: {
|
75
|
+
_id?: string;
|
76
|
+
locked: boolean;
|
77
|
+
version: number;
|
78
|
+
buildAt?: string | Date;
|
79
|
+
lockedAt?: string | Date;
|
80
|
+
};
|
81
|
+
instanceCount: number;
|
82
|
+
oplogEnabled: boolean;
|
83
|
+
msEnabled: boolean;
|
84
|
+
mongoVersion: string;
|
85
|
+
mongoStorageEngine: string;
|
86
|
+
pushQueue: number;
|
87
|
+
omnichannelSources: {
|
88
|
+
[key: string]: number | string;
|
89
|
+
}[];
|
90
|
+
departments: number;
|
91
|
+
archivedDepartments: number;
|
92
|
+
routingAlgorithm: string;
|
93
|
+
onHoldEnabled: boolean;
|
94
|
+
emailInboxes: number;
|
95
|
+
BusinessHours: {
|
96
|
+
[key: string]: number | string;
|
97
|
+
};
|
98
|
+
lastChattedAgentPreferred: boolean;
|
99
|
+
assignNewConversationsToContactManager: boolean;
|
100
|
+
visitorAbandonment: string;
|
101
|
+
chatsOnHold: number;
|
102
|
+
voipEnabled: boolean;
|
103
|
+
voipCalls: number;
|
104
|
+
voipExtensions: number;
|
105
|
+
voipSuccessfulCalls: number;
|
106
|
+
voipErrorCalls: number;
|
107
|
+
voipOnHoldCalls: number;
|
108
|
+
federationOverviewData: {
|
109
|
+
numberOfEvents: number;
|
110
|
+
numberOfFederatedUsers: number;
|
111
|
+
numberOfServers: number;
|
112
|
+
};
|
113
|
+
readReceiptsEnabled: boolean;
|
114
|
+
readReceiptsDetailed: boolean;
|
115
|
+
uniqueUsersOfLastWeek: UserSessionAggregationResult;
|
116
|
+
uniqueUsersOfLastMonth: UserSessionAggregationResult;
|
117
|
+
uniqueUsersOfYesterday: UserSessionAggregationResult;
|
118
|
+
uniqueDevicesOfYesterday: DeviceSessionAggregationResult;
|
119
|
+
uniqueDevicesOfLastWeek: DeviceSessionAggregationResult;
|
120
|
+
uniqueDevicesOfLastMonth: DeviceSessionAggregationResult;
|
121
|
+
uniqueOSOfYesterday: OSSessionAggregationResult;
|
122
|
+
uniqueOSOfLastWeek: OSSessionAggregationResult;
|
123
|
+
uniqueOSOfLastMonth: OSSessionAggregationResult;
|
124
|
+
apps: {
|
125
|
+
engineVersion: string;
|
126
|
+
totalInstalled: number | false;
|
127
|
+
totalActive: number | false;
|
128
|
+
totalFailed: number | false;
|
129
|
+
};
|
130
|
+
services: Record<string, unknown>;
|
131
|
+
importer: Record<string, unknown>;
|
132
|
+
settings: ISettingStatisticsObject;
|
133
|
+
integrations: {
|
134
|
+
totalIntegrations: number;
|
135
|
+
totalIncoming: number;
|
136
|
+
totalIncomingActive: number;
|
137
|
+
totalOutgoing: number;
|
138
|
+
totalOutgoingActive: number;
|
139
|
+
totalWithScriptEnabled: number;
|
140
|
+
};
|
141
|
+
enterprise: {
|
142
|
+
modules: string[];
|
143
|
+
tags: string[];
|
144
|
+
seatRequests: number;
|
145
|
+
livechatTags?: number;
|
146
|
+
cannedResponses?: number;
|
147
|
+
priorities?: number;
|
148
|
+
slas?: number;
|
149
|
+
businessUnits?: number;
|
150
|
+
};
|
151
|
+
createdAt: Date | string;
|
152
|
+
totalOTR: number;
|
153
|
+
totalOTRRooms: number;
|
154
|
+
slashCommandsJitsi: number;
|
155
|
+
messageAuditApply: number;
|
156
|
+
messageAuditLoad: number;
|
157
|
+
dashboardCount: number;
|
158
|
+
joinJitsiButton: number;
|
159
|
+
totalBroadcastRooms: number;
|
160
|
+
totalRoomsWithActiveLivestream: number;
|
161
|
+
totalTriggeredEmails: number;
|
162
|
+
totalRoomsWithStarred: number;
|
163
|
+
totalRoomsWithPinned: number;
|
164
|
+
totalUserEmail2fa: number;
|
165
|
+
totalUserTOTP: number;
|
166
|
+
totalStarred: number;
|
167
|
+
totalPinned: number;
|
168
|
+
totalLinkInvitation: number;
|
169
|
+
totalEmailInvitation: number;
|
170
|
+
totalE2ERooms: number;
|
171
|
+
logoChange: boolean;
|
172
|
+
homeTitleChanged: boolean;
|
173
|
+
homeBodyChanged: boolean;
|
174
|
+
customCSSChanged: boolean;
|
175
|
+
onLogoutCustomScriptChanged: boolean;
|
176
|
+
loggedOutCustomScriptChanged: boolean;
|
177
|
+
loggedInCustomScriptChanged: boolean;
|
178
|
+
roomsInsideTeams: number;
|
179
|
+
showHomeButton: boolean;
|
180
|
+
totalEncryptedMessages: number;
|
181
|
+
totalLinkInvitationUses: number;
|
182
|
+
totalManuallyAddedUsers: number;
|
183
|
+
videoConf: {
|
184
|
+
videoConference: {
|
185
|
+
started: number;
|
186
|
+
ended: number;
|
187
|
+
};
|
188
|
+
direct: {
|
189
|
+
calling: number;
|
190
|
+
started: number;
|
191
|
+
ended: number;
|
192
|
+
};
|
193
|
+
livechat: {
|
194
|
+
started: number;
|
195
|
+
ended: number;
|
196
|
+
};
|
197
|
+
settings: {
|
198
|
+
provider: string;
|
199
|
+
dms: boolean;
|
200
|
+
channels: boolean;
|
201
|
+
groups: boolean;
|
202
|
+
teams: boolean;
|
203
|
+
};
|
204
|
+
};
|
205
|
+
totalSubscriptionRoles: number;
|
206
|
+
totalUserRoles: number;
|
207
|
+
totalCustomRoles: number;
|
208
|
+
totalWebRTCCalls: number;
|
209
|
+
uncaughtExceptionsCount: number;
|
210
|
+
matrixFederation: {
|
211
|
+
enabled: boolean;
|
212
|
+
};
|
213
|
+
webRTCEnabled: boolean;
|
214
|
+
webRTCEnabledForOmnichannel: boolean;
|
215
|
+
omnichannelWebRTCCalls: number;
|
216
|
+
}
|
package/dist/IStats.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IStats.js","sourceRoot":"","sources":["../src/IStats.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import type { IRocketChatRecord } from './IRocketChatRecord';
|
2
|
+
import type { IRole } from './IRole';
|
3
|
+
import type { IUser } from './IUser';
|
4
|
+
import type { RoomType } from './RoomType';
|
5
|
+
type RoomID = string;
|
6
|
+
export interface ISubscription extends IRocketChatRecord {
|
7
|
+
u: Pick<IUser, '_id' | 'username' | 'name'>;
|
8
|
+
v?: Pick<IUser, '_id' | 'username' | 'name'>;
|
9
|
+
rid: RoomID;
|
10
|
+
open: boolean;
|
11
|
+
ts: Date;
|
12
|
+
name: string;
|
13
|
+
alert?: boolean;
|
14
|
+
unread: number;
|
15
|
+
t: RoomType;
|
16
|
+
ls: Date;
|
17
|
+
f?: boolean;
|
18
|
+
lr: Date;
|
19
|
+
hideUnreadStatus?: true;
|
20
|
+
hideMentionStatus?: true;
|
21
|
+
teamMain?: boolean;
|
22
|
+
teamId?: string;
|
23
|
+
userMentions: number;
|
24
|
+
groupMentions: number;
|
25
|
+
broadcast?: true;
|
26
|
+
tunread?: Array<string>;
|
27
|
+
tunreadGroup?: Array<string>;
|
28
|
+
tunreadUser?: Array<string>;
|
29
|
+
prid?: RoomID;
|
30
|
+
roles?: IRole['_id'][];
|
31
|
+
onHold?: boolean;
|
32
|
+
encrypted?: boolean;
|
33
|
+
E2EKey?: string;
|
34
|
+
E2ESuggestedKey?: string;
|
35
|
+
unreadAlert?: 'default' | 'all' | 'mentions' | 'nothing';
|
36
|
+
fname?: string;
|
37
|
+
code?: unknown;
|
38
|
+
archived?: boolean;
|
39
|
+
audioNotificationValue?: string;
|
40
|
+
desktopNotifications?: 'all' | 'mentions' | 'nothing';
|
41
|
+
mobilePushNotifications?: 'all' | 'mentions' | 'nothing';
|
42
|
+
emailNotifications?: 'all' | 'mentions' | 'nothing';
|
43
|
+
userHighlights?: string[];
|
44
|
+
blocked?: unknown;
|
45
|
+
blocker?: unknown;
|
46
|
+
autoTranslate?: boolean;
|
47
|
+
autoTranslateLanguage?: string;
|
48
|
+
disableNotifications?: boolean;
|
49
|
+
muteGroupMentions?: boolean;
|
50
|
+
ignored?: IUser['_id'][];
|
51
|
+
department?: unknown;
|
52
|
+
desktopPrefOrigin?: 'subscription' | 'user';
|
53
|
+
mobilePrefOrigin?: 'subscription' | 'user';
|
54
|
+
emailPrefOrigin?: 'subscription' | 'user';
|
55
|
+
customFields?: Record<string, any>;
|
56
|
+
}
|
57
|
+
export interface IOmnichannelSubscription extends ISubscription {
|
58
|
+
department?: string;
|
59
|
+
}
|
60
|
+
export interface ISubscriptionDirectMessage extends Omit<ISubscription, 'name'> {
|
61
|
+
t: 'd';
|
62
|
+
}
|
63
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ISubscription.js","sourceRoot":"","sources":["../src/ISubscription.ts"],"names":[],"mappings":""}
|
package/dist/ITeam.d.ts
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
import type { Document, FindOptions, Filter, SchemaMember } from 'mongodb';
|
2
|
+
import type { IRocketChatRecord } from './IRocketChatRecord';
|
3
|
+
import type { IRole } from './IRole';
|
4
|
+
import type { IUser } from './IUser';
|
5
|
+
export declare enum TEAM_TYPE {
|
6
|
+
PUBLIC = 0,
|
7
|
+
PRIVATE = 1
|
8
|
+
}
|
9
|
+
export type SortType = -1 | 1;
|
10
|
+
export interface ITeam extends IRocketChatRecord {
|
11
|
+
name: string;
|
12
|
+
type: TEAM_TYPE;
|
13
|
+
roomId: string;
|
14
|
+
createdBy: Pick<IUser, '_id' | 'username'>;
|
15
|
+
createdAt: Date;
|
16
|
+
}
|
17
|
+
export interface ITeamMember extends IRocketChatRecord {
|
18
|
+
teamId: string;
|
19
|
+
userId: string;
|
20
|
+
roles?: Array<IRole['_id']>;
|
21
|
+
createdBy: Pick<IUser, '_id' | 'username'>;
|
22
|
+
createdAt: Date;
|
23
|
+
}
|
24
|
+
export interface IPaginationOptions {
|
25
|
+
offset: number;
|
26
|
+
count: number;
|
27
|
+
}
|
28
|
+
export interface IQueryOptions<T extends Document> {
|
29
|
+
sort?: FindOptions<T>['sort'];
|
30
|
+
query?: Filter<T>;
|
31
|
+
fields?: SchemaMember<T, number | boolean>;
|
32
|
+
}
|
33
|
+
export interface IRecordsWithTotal<T> {
|
34
|
+
records: Array<T>;
|
35
|
+
total: number;
|
36
|
+
}
|
37
|
+
export interface ITeamStats {
|
38
|
+
totalTeams: number;
|
39
|
+
totalRoomsInsideTeams: number;
|
40
|
+
totalDefaultRoomsInsideTeams: number;
|
41
|
+
}
|
42
|
+
export interface ITeamMemberParams {
|
43
|
+
userId: string;
|
44
|
+
roles?: Array<IRole['_id']> | null;
|
45
|
+
}
|
package/dist/ITeam.js
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.TEAM_TYPE = void 0;
|
4
|
+
var TEAM_TYPE;
|
5
|
+
(function (TEAM_TYPE) {
|
6
|
+
TEAM_TYPE[TEAM_TYPE["PUBLIC"] = 0] = "PUBLIC";
|
7
|
+
TEAM_TYPE[TEAM_TYPE["PRIVATE"] = 1] = "PRIVATE";
|
8
|
+
})(TEAM_TYPE || (exports.TEAM_TYPE = TEAM_TYPE = {}));
|
9
|
+
//# sourceMappingURL=ITeam.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ITeam.js","sourceRoot":"","sources":["../src/ITeam.ts"],"names":[],"mappings":";;;AAMA,IAAY,SAGX;AAHD,WAAY,SAAS;IACpB,6CAAU,CAAA;IACV,+CAAW,CAAA;AACZ,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB"}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
export interface IUpload {
|
2
|
+
_id: string;
|
3
|
+
typeGroup?: string;
|
4
|
+
description?: string;
|
5
|
+
type?: string;
|
6
|
+
name?: string;
|
7
|
+
aliases?: string;
|
8
|
+
extension?: string;
|
9
|
+
complete?: boolean;
|
10
|
+
rid?: string;
|
11
|
+
uid?: string;
|
12
|
+
uploading?: boolean;
|
13
|
+
userId?: string;
|
14
|
+
progress?: number;
|
15
|
+
etag?: string;
|
16
|
+
size?: number;
|
17
|
+
identify?: {
|
18
|
+
format?: string;
|
19
|
+
size?: {
|
20
|
+
width: number;
|
21
|
+
height: number;
|
22
|
+
};
|
23
|
+
};
|
24
|
+
store?: string;
|
25
|
+
path?: string;
|
26
|
+
token?: string;
|
27
|
+
uploadedAt?: Date;
|
28
|
+
modifiedAt?: Date;
|
29
|
+
url?: string;
|
30
|
+
originalStore?: string;
|
31
|
+
originalId?: string;
|
32
|
+
message_id?: string;
|
33
|
+
instanceId?: string;
|
34
|
+
AmazonS3?: {
|
35
|
+
path: string;
|
36
|
+
};
|
37
|
+
s3?: {
|
38
|
+
path: string;
|
39
|
+
};
|
40
|
+
GoogleStorage?: {
|
41
|
+
path: string;
|
42
|
+
};
|
43
|
+
googleCloudStorage?: {
|
44
|
+
path: string;
|
45
|
+
};
|
46
|
+
Webdav?: {
|
47
|
+
path: string;
|
48
|
+
};
|
49
|
+
}
|
package/dist/IUpload.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IUpload.js","sourceRoot":"","sources":["../src/IUpload.ts"],"names":[],"mappings":""}
|
package/dist/IUser.d.ts
ADDED
@@ -0,0 +1,198 @@
|
|
1
|
+
import type { UserStatus } from './UserStatus';
|
2
|
+
import type { IRocketChatRecord } from './IRocketChatRecord';
|
3
|
+
import type { IRole } from './IRole';
|
4
|
+
export interface ILoginToken {
|
5
|
+
hashedToken: string;
|
6
|
+
twoFactorAuthorizedUntil?: Date;
|
7
|
+
twoFactorAuthorizedHash?: string;
|
8
|
+
}
|
9
|
+
export interface IMeteorLoginToken extends ILoginToken {
|
10
|
+
when: Date;
|
11
|
+
}
|
12
|
+
export interface IPersonalAccessToken extends ILoginToken {
|
13
|
+
type: 'personalAccessToken';
|
14
|
+
createdAt: Date;
|
15
|
+
lastTokenPart: string;
|
16
|
+
name: string;
|
17
|
+
bypassTwoFactor?: boolean;
|
18
|
+
}
|
19
|
+
export interface IUserEmailVerificationToken {
|
20
|
+
token: string;
|
21
|
+
address: string;
|
22
|
+
when: Date;
|
23
|
+
}
|
24
|
+
export interface IUserEmailCode {
|
25
|
+
code: string;
|
26
|
+
expire: Date;
|
27
|
+
}
|
28
|
+
type LoginToken = IMeteorLoginToken | IPersonalAccessToken;
|
29
|
+
export type Username = string;
|
30
|
+
export type ILoginUsername = {
|
31
|
+
username: string;
|
32
|
+
} | {
|
33
|
+
email: string;
|
34
|
+
};
|
35
|
+
export type LoginUsername = string | ILoginUsername;
|
36
|
+
export interface IUserServices {
|
37
|
+
password?: {
|
38
|
+
exists?: boolean;
|
39
|
+
bcrypt?: string;
|
40
|
+
};
|
41
|
+
passwordHistory?: string[];
|
42
|
+
email?: {
|
43
|
+
verificationTokens?: IUserEmailVerificationToken[];
|
44
|
+
};
|
45
|
+
resume?: {
|
46
|
+
loginTokens?: LoginToken[];
|
47
|
+
};
|
48
|
+
cloud?: {
|
49
|
+
accessToken: string;
|
50
|
+
refreshToken: string;
|
51
|
+
expiresAt: Date;
|
52
|
+
};
|
53
|
+
google?: any;
|
54
|
+
facebook?: any;
|
55
|
+
github?: any;
|
56
|
+
linkedin?: any;
|
57
|
+
twitter?: any;
|
58
|
+
gitlab?: any;
|
59
|
+
totp?: {
|
60
|
+
enabled: boolean;
|
61
|
+
hashedBackup: string[];
|
62
|
+
secret: string;
|
63
|
+
};
|
64
|
+
email2fa?: {
|
65
|
+
enabled: boolean;
|
66
|
+
changedAt: Date;
|
67
|
+
};
|
68
|
+
emailCode: IUserEmailCode[];
|
69
|
+
saml?: {
|
70
|
+
inResponseTo?: string;
|
71
|
+
provider?: string;
|
72
|
+
idp?: string;
|
73
|
+
idpSession?: string;
|
74
|
+
nameID?: string;
|
75
|
+
};
|
76
|
+
ldap?: {
|
77
|
+
id: string;
|
78
|
+
idAttribute?: string;
|
79
|
+
};
|
80
|
+
nextcloud?: {
|
81
|
+
accessToken: string;
|
82
|
+
refreshToken: string;
|
83
|
+
serverURL: string;
|
84
|
+
};
|
85
|
+
dolphin?: {
|
86
|
+
NickName?: string;
|
87
|
+
};
|
88
|
+
}
|
89
|
+
export interface IUserEmail {
|
90
|
+
address: string;
|
91
|
+
verified?: boolean;
|
92
|
+
}
|
93
|
+
export interface IUserSettings {
|
94
|
+
profile: any;
|
95
|
+
preferences?: {
|
96
|
+
[key: string]: any;
|
97
|
+
};
|
98
|
+
}
|
99
|
+
export interface IGetRoomRoles {
|
100
|
+
_id: string;
|
101
|
+
rid: string;
|
102
|
+
u: {
|
103
|
+
_id: string;
|
104
|
+
username: string;
|
105
|
+
};
|
106
|
+
roles: string[];
|
107
|
+
}
|
108
|
+
export interface IUser extends IRocketChatRecord {
|
109
|
+
_id: string;
|
110
|
+
createdAt: Date;
|
111
|
+
roles: IRole['_id'][];
|
112
|
+
type: string;
|
113
|
+
active: boolean;
|
114
|
+
username?: string;
|
115
|
+
nickname?: string;
|
116
|
+
name?: string;
|
117
|
+
services?: IUserServices;
|
118
|
+
emails?: IUserEmail[];
|
119
|
+
status?: UserStatus;
|
120
|
+
statusConnection?: string;
|
121
|
+
lastLogin?: Date;
|
122
|
+
bio?: string;
|
123
|
+
avatarOrigin?: string;
|
124
|
+
avatarETag?: string;
|
125
|
+
avatarUrl?: string;
|
126
|
+
utcOffset?: number;
|
127
|
+
language?: string;
|
128
|
+
statusDefault?: UserStatus;
|
129
|
+
statusText?: string;
|
130
|
+
oauth?: {
|
131
|
+
authorizedClients: string[];
|
132
|
+
};
|
133
|
+
_updatedAt: Date;
|
134
|
+
e2e?: {
|
135
|
+
private_key: string;
|
136
|
+
public_key: string;
|
137
|
+
};
|
138
|
+
requirePasswordChange?: boolean;
|
139
|
+
customFields?: {
|
140
|
+
[key: string]: any;
|
141
|
+
};
|
142
|
+
settings?: IUserSettings;
|
143
|
+
defaultRoom?: string;
|
144
|
+
ldap?: boolean;
|
145
|
+
extension?: string;
|
146
|
+
inviteToken?: string;
|
147
|
+
canViewAllInfo?: boolean;
|
148
|
+
phone?: string;
|
149
|
+
reason?: string;
|
150
|
+
federated?: boolean;
|
151
|
+
federation?: {
|
152
|
+
avatarUrl?: string;
|
153
|
+
searchedServerNames?: string[];
|
154
|
+
};
|
155
|
+
banners?: {
|
156
|
+
[key: string]: {
|
157
|
+
id: string;
|
158
|
+
priority: number;
|
159
|
+
title: string;
|
160
|
+
text: string;
|
161
|
+
textArguments?: string[];
|
162
|
+
modifiers: ('large' | 'danger')[];
|
163
|
+
link: string;
|
164
|
+
read?: boolean;
|
165
|
+
};
|
166
|
+
};
|
167
|
+
importIds?: string[];
|
168
|
+
}
|
169
|
+
export interface IRegisterUser extends IUser {
|
170
|
+
username: string;
|
171
|
+
name: string;
|
172
|
+
}
|
173
|
+
export declare const isRegisterUser: (user: IUser) => user is IRegisterUser;
|
174
|
+
export declare const isUserFederated: (user: Partial<IUser>) => boolean;
|
175
|
+
export type IUserDataEvent = {
|
176
|
+
id: unknown;
|
177
|
+
} & ({
|
178
|
+
type: 'inserted';
|
179
|
+
data: IUser;
|
180
|
+
} | {
|
181
|
+
type: 'removed';
|
182
|
+
} | {
|
183
|
+
type: 'updated';
|
184
|
+
diff: Partial<IUser>;
|
185
|
+
unset: Record<string, number>;
|
186
|
+
});
|
187
|
+
export type IUserInRole = Pick<IUser, '_id' | 'name' | 'username' | 'emails' | 'avatarETag' | 'createdAt' | 'roles' | 'type' | 'active' | '_updatedAt'>;
|
188
|
+
export type AvatarUrlObj = {
|
189
|
+
avatarUrl: string;
|
190
|
+
};
|
191
|
+
export type AvatarReset = 'reset';
|
192
|
+
export type AvatarServiceObject = {
|
193
|
+
blob: Blob;
|
194
|
+
contentType: string;
|
195
|
+
service: string;
|
196
|
+
};
|
197
|
+
export type AvatarObject = AvatarReset | AvatarUrlObj | FormData | AvatarServiceObject;
|
198
|
+
export {};
|