@rocket.chat/core-typings 6.13.1 → 8.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/dist/Abac.d.ts +7 -0
- package/dist/Abac.js +14 -0
- package/dist/Abac.js.map +1 -0
- package/dist/Ajv.d.ts +23 -0
- package/dist/Ajv.js +9748 -0
- package/dist/Ajv.js.map +1 -0
- package/dist/Apps.d.ts +133 -13
- package/dist/Apps.js.map +1 -1
- package/dist/IAbacAttribute.d.ts +14 -0
- package/dist/IAbacAttribute.js +3 -0
- package/dist/IAbacAttribute.js.map +1 -0
- package/dist/{IAnalytic.d.ts → IAnalytics.d.ts} +3 -9
- package/dist/{IBaseData.js → IAnalytics.js} +1 -1
- package/dist/IAnalytics.js.map +1 -0
- package/dist/IAvatar.d.ts +2 -1
- package/dist/IBanner.d.ts +27 -20
- package/dist/IBanner.js +59 -1
- package/dist/IBanner.js.map +1 -1
- package/dist/ICalendarEvent.d.ts +6 -2
- package/dist/ICallHistoryItem.d.ts +42 -0
- package/dist/ICallHistoryItem.js +3 -0
- package/dist/ICallHistoryItem.js.map +1 -0
- package/dist/IEmojiCustom.d.ts +1 -0
- package/dist/IInquiry.d.ts +2 -0
- package/dist/IInquiry.js +8 -1
- package/dist/IInquiry.js.map +1 -1
- package/dist/IIntegration.d.ts +1 -1
- package/dist/IIntegrationHistory.d.ts +4 -0
- package/dist/ILivechatAgent.d.ts +11 -0
- package/dist/ILivechatContact.d.ts +32 -8
- package/dist/ILivechatDepartment.d.ts +3 -0
- package/dist/ILivechatPriority.d.ts +0 -1
- package/dist/ILivechatTag.d.ts +6 -0
- package/dist/ILivechatTrigger.d.ts +0 -3
- package/dist/ILivechatTrigger.js +1 -5
- package/dist/ILivechatTrigger.js.map +1 -1
- package/dist/ILivechatVisitor.d.ts +6 -12
- package/dist/ILivechatVisitor.js.map +1 -1
- package/dist/{ILogs.d.ts → ILogItem.d.ts} +7 -7
- package/dist/{IAnalytic.js → ILogItem.js} +1 -1
- package/dist/ILogItem.js.map +1 -0
- package/dist/ILoginServiceConfiguration.d.ts +2 -0
- package/dist/IMessage/IMessage.d.ts +48 -58
- package/dist/IMessage/IMessage.js +24 -29
- package/dist/IMessage/IMessage.js.map +1 -1
- package/dist/IMessage/MessageAttachment/Files/FileAttachmentProps.d.ts +6 -8
- package/dist/IMessage/MessageAttachment/Files/FileAttachmentProps.js.map +1 -1
- package/dist/IMessage/MessageAttachment/Files/FileProp.d.ts +1 -0
- package/dist/IMessage/MessageAttachment/Files/ImageAttachmentProps.d.ts +4 -2
- package/dist/IMessage/MessageAttachment/Files/ImageAttachmentProps.js.map +1 -1
- package/dist/IMessage/MessageAttachment/Files/RemovedFileAttachmentProps.d.ts +7 -0
- package/dist/IMessage/MessageAttachment/Files/RemovedFileAttachmentProps.js +6 -0
- package/dist/IMessage/MessageAttachment/Files/RemovedFileAttachmentProps.js.map +1 -0
- package/dist/IMessage/MessageAttachment/Files/index.d.ts +2 -3
- package/dist/IMessage/MessageAttachment/Files/index.js +1 -3
- package/dist/IMessage/MessageAttachment/Files/index.js.map +1 -1
- package/dist/IMessage/MessageAttachment/MessageAttachment.d.ts +2 -1
- package/dist/IMessage/MessageAttachment/MessageAttachmentAction.js +0 -1
- package/dist/IMessage/MessageAttachment/MessageAttachmentAction.js.map +1 -1
- package/dist/IMessage/MessageAttachment/MessageAttachmentBase.d.ts +4 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentBase.js +5 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentBase.js.map +1 -1
- package/dist/IMessage/MessageAttachment/MessageAttachmentDefault.d.ts +9 -4
- package/dist/IMessage/MessageAttachment/TranslatedMessageAttachment.d.ts +2 -1
- package/dist/IMessage/MessageAttachment/index.d.ts +2 -3
- package/dist/IMessage/MessageAttachment/index.js +0 -3
- package/dist/IMessage/MessageAttachment/index.js.map +1 -1
- package/dist/IMethodConnection.d.ts +7 -0
- package/dist/IMethodConnection.js +3 -0
- package/dist/IMethodConnection.js.map +1 -0
- package/dist/IModerationReport.d.ts +11 -12
- package/dist/INotification.d.ts +4 -0
- package/dist/IOAuthApps.d.ts +1 -1
- package/dist/IOembed.d.ts +4 -2
- package/dist/IOembed.js +1 -3
- package/dist/IOembed.js.map +1 -1
- package/dist/IOmnichannelBusinessUnit.d.ts +17 -0
- package/dist/IPermission.d.ts +2 -2
- package/dist/IPushToken.d.ts +5 -2
- package/dist/IReadReceipt.d.ts +18 -0
- package/dist/{AppRequests.js → IReadReceipt.js} +1 -1
- package/dist/IReadReceipt.js.map +1 -0
- package/dist/IRocketChatAssets.d.ts +4 -5
- package/dist/IRoom.d.ts +55 -49
- package/dist/IRoom.js +11 -21
- package/dist/IRoom.js.map +1 -1
- package/dist/IServerEvent.d.ts +54 -1
- package/dist/IServerEvent.js.map +1 -1
- package/dist/ISetting.d.ts +23 -29
- package/dist/ISetting.js +3 -5
- package/dist/ISetting.js.map +1 -1
- package/dist/IStats.d.ts +41 -3
- package/dist/ISubscription.d.ts +21 -7
- package/dist/ISubscription.js +9 -0
- package/dist/ISubscription.js.map +1 -1
- package/dist/ITeam.d.ts +2 -2
- package/dist/ITeam.js +6 -6
- package/dist/ITeam.js.map +1 -1
- package/dist/IUpload.d.ts +15 -12
- package/dist/IUpload.js.map +1 -1
- package/dist/IUser.d.ts +62 -37
- package/dist/IUser.js +9 -6
- package/dist/IUser.js.map +1 -1
- package/dist/IUserDataFile.d.ts +2 -1
- package/dist/IVideoConference.d.ts +45 -4
- package/dist/IVideoConference.js.map +1 -1
- package/dist/IWebdavAccount.d.ts +2 -2
- package/dist/IWorkspaceInfo.d.ts +2 -2
- package/dist/{ICustomOAuthConfig.d.ts → OauthConfig.d.ts} +2 -0
- package/dist/{AppOverview.js → OauthConfig.js} +1 -1
- package/dist/OauthConfig.js.map +1 -0
- package/dist/{IOmnichannel.d.ts → OmnichannelSortingMechanismSettingType.d.ts} +0 -6
- package/dist/{IOmnichannel.js → OmnichannelSortingMechanismSettingType.js} +1 -1
- package/dist/OmnichannelSortingMechanismSettingType.js.map +1 -0
- package/dist/RoomType.d.ts +1 -1
- package/dist/ServerAudit/IAuditServerAbacAction.d.ts +88 -0
- package/dist/ServerAudit/IAuditServerAbacAction.js +3 -0
- package/dist/ServerAudit/IAuditServerAbacAction.js.map +1 -0
- package/dist/ServerAudit/IAuditServerSettingEvent.d.ts +14 -0
- package/dist/ServerAudit/IAuditServerSettingEvent.js +3 -0
- package/dist/ServerAudit/IAuditServerSettingEvent.js.map +1 -0
- package/dist/ServerAudit/IAuditUserChangedEvent.d.ts +19 -0
- package/dist/ServerAudit/IAuditUserChangedEvent.js +3 -0
- package/dist/ServerAudit/IAuditUserChangedEvent.js.map +1 -0
- package/dist/SlashCommands/index.d.ts +2 -2
- package/dist/SpotlightUser.d.ts +1 -1
- package/dist/{IAutoTranslate.d.ts → autoTranslate.d.ts} +0 -10
- package/dist/autoTranslate.js +3 -0
- package/dist/autoTranslate.js.map +1 -0
- package/dist/cloud/Announcement.d.ts +27 -6
- package/dist/cloud/Announcement.js +40 -0
- package/dist/cloud/Announcement.js.map +1 -1
- package/dist/cloud/CloudSyncAnnouncement.d.ts +9 -0
- package/dist/cloud/CloudSyncAnnouncement.js +3 -0
- package/dist/cloud/CloudSyncAnnouncement.js.map +1 -0
- package/dist/cloud/NpsSurveyAnnouncement.d.ts +7 -5
- package/dist/cloud/NpsSurveyAnnouncement.js +41 -1
- package/dist/cloud/NpsSurveyAnnouncement.js.map +1 -1
- package/dist/cloud/WorkspaceLicensePayload.d.ts +9 -8
- package/dist/cloud/WorkspaceLicensePayload.js +43 -1
- package/dist/cloud/WorkspaceLicensePayload.js.map +1 -1
- package/dist/cloud/WorkspaceSyncPayload.d.ts +101 -49
- package/dist/cloud/WorkspaceSyncPayload.js +82 -1
- package/dist/cloud/WorkspaceSyncPayload.js.map +1 -1
- package/dist/cloud/index.d.ts +5 -4
- package/dist/cloud/index.js +11 -0
- package/dist/cloud/index.js.map +1 -1
- package/dist/ee/IWorkspaceCredentials.d.ts +7 -0
- package/dist/ee/IWorkspaceCredentials.js +3 -0
- package/dist/ee/IWorkspaceCredentials.js.map +1 -0
- package/dist/federation/index.d.ts +0 -2
- package/dist/federation/index.js +0 -2
- package/dist/federation/index.js.map +1 -1
- package/dist/federation/v1/events.d.ts +13 -13
- package/dist/federation/v1/events.js.map +1 -1
- package/dist/federation/v1/index.d.ts +3 -3
- package/dist/import/IImport.d.ts +1 -0
- package/dist/import/IImportContact.d.ts +9 -0
- package/dist/import/IImportContact.js +3 -0
- package/dist/import/IImportContact.js.map +1 -0
- package/dist/import/IImportMessage.d.ts +10 -10
- package/dist/import/IImportProgress.d.ts +1 -1
- package/dist/import/IImportRecord.d.ts +7 -2
- package/dist/import/IImportUser.d.ts +2 -0
- package/dist/import/IImporterSelection.d.ts +2 -0
- package/dist/import/IImporterSelectionContact.d.ts +7 -0
- package/dist/import/IImporterSelectionContact.js +3 -0
- package/dist/import/IImporterSelectionContact.js.map +1 -0
- package/dist/import/IImporterShortSelection.d.ts +9 -0
- package/dist/import/IImporterShortSelection.js +3 -0
- package/dist/import/IImporterShortSelection.js.map +1 -0
- package/dist/import/ImportState.d.ts +1 -2
- package/dist/import/index.d.ts +13 -12
- package/dist/import/index.js +0 -26
- package/dist/import/index.js.map +1 -1
- package/dist/index.d.ts +90 -99
- package/dist/index.js +23 -110
- package/dist/index.js.map +1 -1
- package/dist/ldap/ILDAPOptions.d.ts +2 -0
- package/dist/ldap/index.d.ts +6 -6
- package/dist/ldap/index.js +0 -20
- package/dist/ldap/index.js.map +1 -1
- package/dist/license/ILicenseV3.d.ts +16 -9
- package/dist/license/LicenseInfo.d.ts +5 -1
- package/dist/license/LicenseModule.d.ts +4 -1
- package/dist/license/LicenseModule.js +28 -0
- package/dist/license/LicenseModule.js.map +1 -1
- package/dist/license/LicensePeriod.d.ts +4 -6
- package/dist/license/events.d.ts +1 -0
- package/dist/license/index.d.ts +10 -10
- package/dist/license/index.js +0 -10
- package/dist/license/index.js.map +1 -1
- package/dist/mediaCalls/IMediaCall.d.ts +51 -0
- package/dist/{ACDQueues.js → mediaCalls/IMediaCall.js} +1 -1
- package/dist/mediaCalls/IMediaCall.js.map +1 -0
- package/dist/mediaCalls/IMediaCallChannel.d.ts +13 -0
- package/dist/mediaCalls/IMediaCallChannel.js +3 -0
- package/dist/mediaCalls/IMediaCallChannel.js.map +1 -0
- package/dist/mediaCalls/IMediaCallNegotiation.d.ts +17 -0
- package/dist/mediaCalls/IMediaCallNegotiation.js +3 -0
- package/dist/mediaCalls/IMediaCallNegotiation.js.map +1 -0
- package/dist/mediaCalls/index.d.ts +3 -0
- package/dist/{ILogs.js → mediaCalls/index.js} +1 -1
- package/dist/mediaCalls/index.js.map +1 -0
- package/dist/migrations/IControl.d.ts +2 -2
- package/dist/omnichannel/index.d.ts +6 -5
- package/dist/omnichannel/index.js +1 -5
- package/dist/omnichannel/index.js.map +1 -1
- package/dist/omnichannel/outbound.d.ts +130 -0
- package/dist/omnichannel/outbound.js +5 -0
- package/dist/omnichannel/outbound.js.map +1 -0
- package/dist/omnichannel/sms.d.ts +5 -18
- package/dist/omnichannel/sms.js +0 -9
- package/dist/omnichannel/sms.js.map +1 -1
- package/dist/search/index.d.ts +2 -2
- package/dist/search/index.js +0 -16
- package/dist/search/index.js.map +1 -1
- package/dist/themes.d.ts +1 -1
- package/dist/userAction.d.ts +5 -0
- package/dist/{AppsTokens.js → userAction.js} +1 -1
- package/dist/userAction.js.map +1 -0
- package/dist/utils.d.ts +32 -4
- package/dist/utils.js +41 -0
- package/dist/utils.js.map +1 -1
- package/package.json +27 -20
- package/CHANGELOG.md +0 -681
- package/dist/ACDQueues.d.ts +0 -35
- package/dist/ACDQueues.js.map +0 -1
- package/dist/AppOverview.d.ts +0 -104
- package/dist/AppOverview.js.map +0 -1
- package/dist/AppRequests.d.ts +0 -38
- package/dist/AppRequests.js.map +0 -1
- package/dist/AppsTokens.d.ts +0 -15
- package/dist/AppsTokens.js.map +0 -1
- package/dist/FeaturedApps.d.ts +0 -6
- package/dist/FeaturedApps.js +0 -3
- package/dist/FeaturedApps.js.map +0 -1
- package/dist/IAnalytic.js.map +0 -1
- package/dist/IAutoTranslate.js +0 -3
- package/dist/IAutoTranslate.js.map +0 -1
- package/dist/IBaseData.d.ts +0 -3
- package/dist/IBaseData.js.map +0 -1
- package/dist/ICustomOAuthConfig.js +0 -3
- package/dist/ICustomOAuthConfig.js.map +0 -1
- package/dist/ILivechatMonitorRecord.d.ts +0 -9
- package/dist/ILivechatMonitorRecord.js +0 -3
- package/dist/ILivechatMonitorRecord.js.map +0 -1
- package/dist/ILogs.js.map +0 -1
- package/dist/IMessage/MessageAttachment/FieldProps.d.ts +0 -5
- package/dist/IMessage/MessageAttachment/FieldProps.js +0 -3
- package/dist/IMessage/MessageAttachment/FieldProps.js.map +0 -1
- package/dist/IMessage/MessageAttachment/Files/Dimensions.d.ts +0 -4
- package/dist/IMessage/MessageAttachment/Files/Dimensions.js +0 -3
- package/dist/IMessage/MessageAttachment/Files/Dimensions.js.map +0 -1
- package/dist/IMessage/MessageAttachment/Files/PDFAttachmentProps.d.ts +0 -5
- package/dist/IMessage/MessageAttachment/Files/PDFAttachmentProps.js +0 -3
- package/dist/IMessage/MessageAttachment/Files/PDFAttachmentProps.js.map +0 -1
- package/dist/IMethodThisType.d.ts +0 -15
- package/dist/IMethodThisType.js +0 -3
- package/dist/IMethodThisType.js.map +0 -1
- package/dist/IMethodType.d.ts +0 -4
- package/dist/IMethodType.js +0 -3
- package/dist/IMethodType.js.map +0 -1
- package/dist/IOmnichannel.js.map +0 -1
- package/dist/IOmnichannelVoipServiceResult.d.ts +0 -10
- package/dist/IOmnichannelVoipServiceResult.js +0 -3
- package/dist/IOmnichannelVoipServiceResult.js.map +0 -1
- package/dist/IPbxEvent.d.ts +0 -12
- package/dist/IPbxEvent.js +0 -3
- package/dist/IPbxEvent.js.map +0 -1
- package/dist/IUserAction.d.ts +0 -11
- package/dist/IUserAction.js +0 -3
- package/dist/IUserAction.js.map +0 -1
- package/dist/IVoipConnectorResult.d.ts +0 -6
- package/dist/IVoipConnectorResult.js +0 -3
- package/dist/IVoipConnectorResult.js.map +0 -1
- package/dist/IVoipExtension.d.ts +0 -38
- package/dist/IVoipExtension.js +0 -22
- package/dist/IVoipExtension.js.map +0 -1
- package/dist/IVoipServerConfig.d.ts +0 -24
- package/dist/IVoipServerConfig.js +0 -11
- package/dist/IVoipServerConfig.js.map +0 -1
- package/dist/IVoipServerConnectivityStatus.d.ts +0 -4
- package/dist/IVoipServerConnectivityStatus.js +0 -3
- package/dist/IVoipServerConnectivityStatus.js.map +0 -1
- package/dist/MarketplaceRest.d.ts +0 -15
- package/dist/MarketplaceRest.js +0 -3
- package/dist/MarketplaceRest.js.map +0 -1
- package/dist/ReadReceipt.d.ts +0 -12
- package/dist/ReadReceipt.js +0 -3
- package/dist/ReadReceipt.js.map +0 -1
- package/dist/Serialized.d.ts +0 -14
- package/dist/Serialized.js +0 -4
- package/dist/Serialized.js.map +0 -1
- package/dist/VideoConferenceOptions.d.ts +0 -4
- package/dist/VideoConferenceOptions.js +0 -3
- package/dist/VideoConferenceOptions.js.map +0 -1
- package/dist/federation/IMatrixBridgedRoom.d.ts +0 -5
- package/dist/federation/IMatrixBridgedRoom.js +0 -3
- package/dist/federation/IMatrixBridgedRoom.js.map +0 -1
- package/dist/federation/IMatrixBridgedUser.d.ts +0 -7
- package/dist/federation/IMatrixBridgedUser.js +0 -3
- package/dist/federation/IMatrixBridgedUser.js.map +0 -1
- package/dist/import/IImportFileData.d.ts +0 -7
- package/dist/import/IImportFileData.js +0 -3
- package/dist/import/IImportFileData.js.map +0 -1
- package/dist/import/IImporterInfo.d.ts +0 -4
- package/dist/import/IImporterInfo.js +0 -3
- package/dist/import/IImporterInfo.js.map +0 -1
- package/dist/voip/CallStates.d.ts +0 -5
- package/dist/voip/CallStates.js +0 -7
- package/dist/voip/CallStates.js.map +0 -1
- package/dist/voip/ConnectionState.d.ts +0 -5
- package/dist/voip/ConnectionState.js +0 -7
- package/dist/voip/ConnectionState.js.map +0 -1
- package/dist/voip/ICallDetails.d.ts +0 -6
- package/dist/voip/ICallDetails.js +0 -3
- package/dist/voip/ICallDetails.js.map +0 -1
- package/dist/voip/ICallerInfo.d.ts +0 -5
- package/dist/voip/ICallerInfo.js +0 -3
- package/dist/voip/ICallerInfo.js.map +0 -1
- package/dist/voip/IConnectionDelegate.d.ts +0 -20
- package/dist/voip/IConnectionDelegate.js +0 -3
- package/dist/voip/IConnectionDelegate.js.map +0 -1
- package/dist/voip/IEvents.d.ts +0 -113
- package/dist/voip/IEvents.js +0 -26
- package/dist/voip/IEvents.js.map +0 -1
- package/dist/voip/IQueueInfo.d.ts +0 -8
- package/dist/voip/IQueueInfo.js +0 -7
- package/dist/voip/IQueueInfo.js.map +0 -1
- package/dist/voip/IRegisterHandlerDelegate.d.ts +0 -32
- package/dist/voip/IRegisterHandlerDelegate.js +0 -3
- package/dist/voip/IRegisterHandlerDelegate.js.map +0 -1
- package/dist/voip/IRegistrationInfo.d.ts +0 -19
- package/dist/voip/IRegistrationInfo.js +0 -9
- package/dist/voip/IRegistrationInfo.js.map +0 -1
- package/dist/voip/IVoipClientEvents.d.ts +0 -96
- package/dist/voip/IVoipClientEvents.js +0 -16
- package/dist/voip/IVoipClientEvents.js.map +0 -1
- package/dist/voip/Operations.d.ts +0 -15
- package/dist/voip/Operations.js +0 -20
- package/dist/voip/Operations.js.map +0 -1
- package/dist/voip/SignalingSocketEvents.d.ts +0 -8
- package/dist/voip/SignalingSocketEvents.js +0 -3
- package/dist/voip/SignalingSocketEvents.js.map +0 -1
- package/dist/voip/UserState.d.ts +0 -5
- package/dist/voip/UserState.js +0 -12
- package/dist/voip/UserState.js.map +0 -1
- package/dist/voip/VoIPUserConfiguration.d.ts +0 -50
- package/dist/voip/VoIPUserConfiguration.js +0 -3
- package/dist/voip/VoIPUserConfiguration.js.map +0 -1
- package/dist/voip/VoIpCallerInfo.d.ts +0 -15
- package/dist/voip/VoIpCallerInfo.js +0 -3
- package/dist/voip/VoIpCallerInfo.js.map +0 -1
- package/dist/voip/VoipClientEvents.d.ts +0 -8
- package/dist/voip/VoipClientEvents.js +0 -13
- package/dist/voip/VoipClientEvents.js.map +0 -1
- package/dist/voip/VoipEvents.d.ts +0 -21
- package/dist/voip/VoipEvents.js +0 -3
- package/dist/voip/VoipEvents.js.map +0 -1
- package/dist/voip/WorkflowTypes.d.ts +0 -10
- package/dist/voip/WorkflowTypes.js +0 -15
- package/dist/voip/WorkflowTypes.js.map +0 -1
- package/dist/voip/index.d.ts +0 -18
- package/dist/voip/index.js +0 -35
- package/dist/voip/index.js.map +0 -1
package/dist/IUser.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getUserDisplayName = exports.isUserNativeFederated = exports.isUserFederated = exports.isRegisterUser = exports.isOAuthUser = exports.isPersonalAccessToken = void 0;
|
|
4
|
+
const isPersonalAccessToken = (token) => 'type' in token && token.type === 'personalAccessToken';
|
|
5
|
+
exports.isPersonalAccessToken = isPersonalAccessToken;
|
|
4
6
|
const defaultOAuthKeys = [
|
|
5
7
|
'google',
|
|
6
8
|
'dolphin',
|
|
@@ -16,15 +18,16 @@ const defaultOAuthKeys = [
|
|
|
16
18
|
];
|
|
17
19
|
const userServiceKeys = ['emailCode', 'email2fa', 'totp', 'resume', 'password', 'passwordHistory', 'cloud', 'email'];
|
|
18
20
|
const isUserServiceKey = (key) => userServiceKeys.includes(key) || defaultOAuthKeys.includes(key);
|
|
19
|
-
exports.isUserServiceKey = isUserServiceKey;
|
|
20
21
|
const isDefaultOAuthUser = (user) => !!user.services && Object.keys(user.services).some((key) => defaultOAuthKeys.includes(key));
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
exports.isCustomOAuthUser = isCustomOAuthUser;
|
|
24
|
-
const isOAuthUser = (user) => (0, exports.isDefaultOAuthUser)(user) || (0, exports.isCustomOAuthUser)(user);
|
|
22
|
+
const isCustomOAuthUser = (user) => !!user.services && Object.keys(user.services).some((key) => !isUserServiceKey(key));
|
|
23
|
+
const isOAuthUser = (user) => isDefaultOAuthUser(user) || isCustomOAuthUser(user);
|
|
25
24
|
exports.isOAuthUser = isOAuthUser;
|
|
26
25
|
const isRegisterUser = (user) => user.username !== undefined && user.name !== undefined;
|
|
27
26
|
exports.isRegisterUser = isRegisterUser;
|
|
28
27
|
const isUserFederated = (user) => 'federated' in user && user.federated === true;
|
|
29
28
|
exports.isUserFederated = isUserFederated;
|
|
29
|
+
const isUserNativeFederated = (user) => (0, exports.isUserFederated)(user) && 'federation' in user && typeof user.federation?.version === 'number';
|
|
30
|
+
exports.isUserNativeFederated = isUserNativeFederated;
|
|
31
|
+
const getUserDisplayName = (name, username, useRealName) => useRealName ? name || username : username;
|
|
32
|
+
exports.getUserDisplayName = getUserDisplayName;
|
|
30
33
|
//# sourceMappingURL=IUser.js.map
|
package/dist/IUser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IUser.js","sourceRoot":"","sources":["../src/IUser.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"IUser.js","sourceRoot":"","sources":["../src/IUser.ts"],"names":[],"mappings":";;;AA0BO,MAAM,qBAAqB,GAAG,CAAC,KAAiB,EAAiC,EAAE,CACzF,MAAM,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,qBAAqB,CAAC;AAD5C,QAAA,qBAAqB,yBACuB;AAiGzD,MAAM,gBAAgB,GAAoB;IACzC,QAAQ;IACR,SAAS;IACT,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,UAAU;IACV,WAAW;IACX,MAAM;IACN,SAAS;CACT,CAAC;AACF,MAAM,eAAe,GAAmB,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,iBAAiB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAErI,MAAM,gBAAgB,GAAG,CAAC,GAAW,EAAuB,EAAE,CAC7D,eAAe,CAAC,QAAQ,CAAC,GAAmB,CAAC,IAAI,gBAAgB,CAAC,QAAQ,CAAC,GAAoB,CAAC,CAAC;AAElG,MAAM,kBAAkB,GAAG,CAAC,IAAW,EAAW,EAAE,CACnD,CAAC,CAAC,IAAI,CAAC,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,GAAoB,CAAC,CAAC,CAAC;AAE9G,MAAM,iBAAiB,GAAG,CAAC,IAAW,EAAW,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC;AAEjI,MAAM,WAAW,GAAG,CAAC,IAAW,EAAW,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;AAA5F,QAAA,WAAW,eAAiF;AAkGlG,MAAM,cAAc,GAAG,CAAC,IAAW,EAAyB,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC;AAAhH,QAAA,cAAc,kBAAkG;AAEtH,MAAM,eAAe,GAAG,CAAC,IAAiD,EAAE,EAAE,CAAC,WAAW,IAAI,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,IAAI,CAAC;AAAxH,QAAA,eAAe,mBAAyG;AAY9H,MAAM,qBAAqB,GAAG,CAAC,IAAoB,EAAgC,EAAE,CAC3F,IAAA,uBAAe,EAAC,IAAI,CAAC,IAAI,YAAY,IAAI,IAAI,IAAI,OAAO,IAAI,CAAC,UAAU,EAAE,OAAO,KAAK,QAAQ,CAAC;AADlF,QAAA,qBAAqB,yBAC6D;AAgDxF,MAAM,kBAAkB,GAAG,CAAC,IAAmB,EAAE,QAA2B,EAAE,WAAoB,EAAsB,EAAE,CAChI,WAAW,CAAC,CAAC,CAAC,IAAI,IAAI,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC;AAD9B,QAAA,kBAAkB,sBACY"}
|
package/dist/IUserDataFile.d.ts
CHANGED
|
@@ -3,6 +3,23 @@ import type { IRocketChatRecord } from './IRocketChatRecord';
|
|
|
3
3
|
import type { IRoom } from './IRoom';
|
|
4
4
|
import type { IUser } from './IUser';
|
|
5
5
|
import type { AtLeast } from './utils';
|
|
6
|
+
export type DirectCallParams = {
|
|
7
|
+
uid: IUser['_id'];
|
|
8
|
+
rid: IRoom['_id'];
|
|
9
|
+
callId: string;
|
|
10
|
+
};
|
|
11
|
+
export type DirectCallData = DirectCallParams & {
|
|
12
|
+
dismissed: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type ProviderCapabilities = {
|
|
15
|
+
mic?: boolean;
|
|
16
|
+
cam?: boolean;
|
|
17
|
+
title?: boolean;
|
|
18
|
+
};
|
|
19
|
+
export type CallPreferences = {
|
|
20
|
+
mic?: boolean;
|
|
21
|
+
cam?: boolean;
|
|
22
|
+
};
|
|
6
23
|
export declare enum VideoConferenceStatus {
|
|
7
24
|
CALLING = 0,
|
|
8
25
|
STARTED = 1,
|
|
@@ -24,8 +41,11 @@ export type LivechatInstructions = {
|
|
|
24
41
|
type: 'livechat';
|
|
25
42
|
callId: string;
|
|
26
43
|
};
|
|
27
|
-
export type VideoConferenceType = DirectCallInstructions['type'] | ConferenceInstructions['type'] | LivechatInstructions['type'];
|
|
28
|
-
|
|
44
|
+
export type VideoConferenceType = DirectCallInstructions['type'] | ConferenceInstructions['type'] | LivechatInstructions['type'] | 'voip';
|
|
45
|
+
type Nullable<T, K extends keyof T> = {
|
|
46
|
+
[P in K]: T[P] | null;
|
|
47
|
+
} & Omit<T, K>;
|
|
48
|
+
export interface IVideoConferenceUser extends Nullable<Pick<Required<IUser>, '_id' | 'username' | 'name' | 'avatarETag'>, 'avatarETag'> {
|
|
29
49
|
ts: Date;
|
|
30
50
|
}
|
|
31
51
|
export interface IVideoConference extends IRocketChatRecord {
|
|
@@ -58,7 +78,25 @@ export interface IGroupVideoConference extends IVideoConference {
|
|
|
58
78
|
export interface ILivechatVideoConference extends IVideoConference {
|
|
59
79
|
type: 'livechat';
|
|
60
80
|
}
|
|
61
|
-
export
|
|
81
|
+
export interface IVoIPVideoConference extends IVideoConference {
|
|
82
|
+
type: 'voip';
|
|
83
|
+
externalId: string;
|
|
84
|
+
callerExtension?: string;
|
|
85
|
+
calleeExtension?: string;
|
|
86
|
+
external?: boolean;
|
|
87
|
+
transferred?: boolean;
|
|
88
|
+
duration?: number;
|
|
89
|
+
events: {
|
|
90
|
+
outgoing?: boolean;
|
|
91
|
+
hold?: boolean;
|
|
92
|
+
park?: boolean;
|
|
93
|
+
bridge?: boolean;
|
|
94
|
+
answer?: boolean;
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
export type ExternalVideoConference = IDirectVideoConference | IGroupVideoConference | ILivechatVideoConference;
|
|
98
|
+
type InternalVideoConference = IVoIPVideoConference;
|
|
99
|
+
export type VideoConference = ExternalVideoConference | InternalVideoConference;
|
|
62
100
|
export type VideoConferenceInstructions = DirectCallInstructions | ConferenceInstructions | LivechatInstructions;
|
|
63
101
|
export declare const isDirectVideoConference: (call: VideoConference | undefined | null) => call is IDirectVideoConference;
|
|
64
102
|
export declare const isGroupVideoConference: (call: VideoConference | undefined | null) => call is IGroupVideoConference;
|
|
@@ -72,5 +110,8 @@ type DirectVideoConferenceCreateData = Omit<IDirectVideoConference, 'createdBy'>
|
|
|
72
110
|
type LivechatVideoConferenceCreateData = Omit<ILivechatVideoConference, 'createdBy'> & {
|
|
73
111
|
createdBy: IUser['_id'];
|
|
74
112
|
};
|
|
75
|
-
|
|
113
|
+
type VoIPVideoConferenceCreateData = Omit<IVoIPVideoConference, 'createdBy'> & {
|
|
114
|
+
createdBy: IUser['_id'];
|
|
115
|
+
};
|
|
116
|
+
export type VideoConferenceCreateData = AtLeast<DirectVideoConferenceCreateData | GroupVideoConferenceCreateData | LivechatVideoConferenceCreateData | VoIPVideoConferenceCreateData, 'createdBy' | 'type' | 'rid' | 'providerName' | 'providerData'>;
|
|
76
117
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IVideoConference.js","sourceRoot":"","sources":["../src/IVideoConference.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"IVideoConference.js","sourceRoot":"","sources":["../src/IVideoConference.ts"],"names":[],"mappings":";;;AA2BA,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAChC,uEAAW,CAAA;IACX,uEAAW,CAAA;IACX,uEAAW,CAAA;IACX,mEAAS,CAAA;IACT,yEAAY,CAAA;AACb,CAAC,EANW,qBAAqB,qCAArB,qBAAqB,QAMhC;AA8FM,MAAM,uBAAuB,GAAG,CAAC,IAAwC,EAAkC,EAAE;IACnH,OAAO,IAAI,EAAE,IAAI,KAAK,QAAQ,CAAC;AAChC,CAAC,CAAC;AAFW,QAAA,uBAAuB,2BAElC;AAEK,MAAM,sBAAsB,GAAG,CAAC,IAAwC,EAAiC,EAAE;IACjH,OAAO,IAAI,EAAE,IAAI,KAAK,iBAAiB,CAAC;AACzC,CAAC,CAAC;AAFW,QAAA,sBAAsB,0BAEjC;AAEK,MAAM,yBAAyB,GAAG,CAAC,IAAwC,EAAoC,EAAE;IACvH,OAAO,IAAI,EAAE,IAAI,KAAK,UAAU,CAAC;AAClC,CAAC,CAAC;AAFW,QAAA,yBAAyB,6BAEpC"}
|
package/dist/IWebdavAccount.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface IWebdavAccount extends IRocketChatRecord {
|
|
|
8
8
|
}
|
|
9
9
|
export type IWebdavAccountIntegration = Pick<IWebdavAccount, '_id' | 'username' | 'serverURL' | 'name'>;
|
|
10
10
|
export type IWebdavAccountPayload = Pick<IWebdavAccount, 'serverURL' | 'password' | 'name'> & Partial<Pick<IWebdavAccount, 'username'>>;
|
|
11
|
-
export
|
|
11
|
+
export interface IWebdavNode {
|
|
12
12
|
basename: string;
|
|
13
13
|
etag: string | null;
|
|
14
14
|
filename: string;
|
|
@@ -16,4 +16,4 @@ export type IWebdavNode = {
|
|
|
16
16
|
mime?: string;
|
|
17
17
|
size: number;
|
|
18
18
|
type: 'file' | 'directory';
|
|
19
|
-
}
|
|
19
|
+
}
|
package/dist/IWorkspaceInfo.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IServerInfo } from './IServerInfo';
|
|
2
|
-
export
|
|
2
|
+
export interface IWorkspaceInfo {
|
|
3
3
|
info?: IServerInfo;
|
|
4
4
|
supportedVersions?: {
|
|
5
5
|
signed: string;
|
|
@@ -10,4 +10,4 @@ export type IWorkspaceInfo = {
|
|
|
10
10
|
};
|
|
11
11
|
version: string;
|
|
12
12
|
cloudWorkspaceId?: string;
|
|
13
|
-
}
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OauthConfig.js","sourceRoot":"","sources":["../src/OauthConfig.ts"],"names":[],"mappings":""}
|
|
@@ -7,4 +7,4 @@ var OmnichannelSortingMechanismSettingType;
|
|
|
7
7
|
OmnichannelSortingMechanismSettingType["Priority"] = "Priority";
|
|
8
8
|
OmnichannelSortingMechanismSettingType["SLAs"] = "SLAs";
|
|
9
9
|
})(OmnichannelSortingMechanismSettingType || (exports.OmnichannelSortingMechanismSettingType = OmnichannelSortingMechanismSettingType = {}));
|
|
10
|
-
//# sourceMappingURL=
|
|
10
|
+
//# sourceMappingURL=OmnichannelSortingMechanismSettingType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OmnichannelSortingMechanismSettingType.js","sourceRoot":"","sources":["../src/OmnichannelSortingMechanismSettingType.ts"],"names":[],"mappings":";;;AAAA,IAAY,sCAIX;AAJD,WAAY,sCAAsC;IACjD,iEAAuB,CAAA;IACvB,+DAAqB,CAAA;IACrB,uDAAa,CAAA;AACd,CAAC,EAJW,sCAAsC,sDAAtC,sCAAsC,QAIjD"}
|
package/dist/RoomType.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type RoomType = 'c' | 'd' | 'p' | 'l'
|
|
1
|
+
export type RoomType = 'c' | 'd' | 'p' | 'l';
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { IUser, IRoom, IAuditServerEventType, IAbacAttributeDefinition, IServerEvents, Optional } from '..';
|
|
2
|
+
export type MinimalUser = Pick<IUser, 'username'> & Optional<Pick<IUser, '_id'>, '_id'>;
|
|
3
|
+
export type MinimalRoom = Pick<IRoom, '_id' | 'name'>;
|
|
4
|
+
export type AbacAuditReason = 'ldap-sync' | 'room-attributes-change' | 'system' | 'api' | 'realtime-policy-eval';
|
|
5
|
+
export type AbacActionPerformed = 'revoked-object-access' | 'granted-object-access';
|
|
6
|
+
export type AbacAttributeDefinitionChangeType = 'created' | 'updated' | 'deleted' | 'all-deleted' | 'key-removed' | 'key-renamed' | 'value-removed' | 'key-added' | 'key-updated';
|
|
7
|
+
export interface IServerEventAbacSubjectAttributeChanged extends IAuditServerEventType<{
|
|
8
|
+
key: 'subject';
|
|
9
|
+
value: MinimalUser;
|
|
10
|
+
} | {
|
|
11
|
+
key: 'reason';
|
|
12
|
+
value: AbacAuditReason;
|
|
13
|
+
} | {
|
|
14
|
+
key: 'diff';
|
|
15
|
+
value: IAbacAttributeDefinition[];
|
|
16
|
+
}> {
|
|
17
|
+
t: 'abac.subject.attribute.changed';
|
|
18
|
+
}
|
|
19
|
+
export interface IServerEventAbacObjectAttributeChanged extends IAuditServerEventType<{
|
|
20
|
+
key: 'room';
|
|
21
|
+
value: MinimalRoom;
|
|
22
|
+
} | {
|
|
23
|
+
key: 'reason';
|
|
24
|
+
value: AbacAuditReason;
|
|
25
|
+
} | {
|
|
26
|
+
key: 'previous';
|
|
27
|
+
value: IAbacAttributeDefinition[];
|
|
28
|
+
} | {
|
|
29
|
+
key: 'current';
|
|
30
|
+
value: IAbacAttributeDefinition[] | null;
|
|
31
|
+
} | {
|
|
32
|
+
key: 'change';
|
|
33
|
+
value: AbacAttributeDefinitionChangeType;
|
|
34
|
+
}> {
|
|
35
|
+
t: 'abac.object.attribute.changed';
|
|
36
|
+
}
|
|
37
|
+
export interface IServerEventAbacAttributeChanged extends IAuditServerEventType<{
|
|
38
|
+
key: 'attributeKey';
|
|
39
|
+
value: string;
|
|
40
|
+
} | {
|
|
41
|
+
key: 'reason';
|
|
42
|
+
value: AbacAuditReason;
|
|
43
|
+
} | {
|
|
44
|
+
key: 'change';
|
|
45
|
+
value: AbacAttributeDefinitionChangeType;
|
|
46
|
+
} | {
|
|
47
|
+
key: 'current';
|
|
48
|
+
value: IAbacAttributeDefinition | null | undefined;
|
|
49
|
+
} | {
|
|
50
|
+
key: 'diff';
|
|
51
|
+
value: IAbacAttributeDefinition | undefined;
|
|
52
|
+
}> {
|
|
53
|
+
t: 'abac.attribute.changed';
|
|
54
|
+
}
|
|
55
|
+
export interface IServerEventAbacActionPerformed extends IAuditServerEventType<{
|
|
56
|
+
key: 'action';
|
|
57
|
+
value: AbacActionPerformed;
|
|
58
|
+
} | {
|
|
59
|
+
key: 'reason';
|
|
60
|
+
value: AbacAuditReason;
|
|
61
|
+
} | {
|
|
62
|
+
key: 'subject';
|
|
63
|
+
value: MinimalUser | undefined;
|
|
64
|
+
} | {
|
|
65
|
+
key: 'object';
|
|
66
|
+
value: MinimalRoom | undefined;
|
|
67
|
+
}> {
|
|
68
|
+
t: 'abac.action.performed';
|
|
69
|
+
}
|
|
70
|
+
export interface IServerEventAbacObjectAttributesRemoved extends IAuditServerEventType<{
|
|
71
|
+
key: 'room';
|
|
72
|
+
value: MinimalRoom;
|
|
73
|
+
} | {
|
|
74
|
+
key: 'reason';
|
|
75
|
+
value: AbacAuditReason;
|
|
76
|
+
} | {
|
|
77
|
+
key: 'previous';
|
|
78
|
+
value: IAbacAttributeDefinition[];
|
|
79
|
+
} | {
|
|
80
|
+
key: 'current';
|
|
81
|
+
value: IAbacAttributeDefinition[] | null;
|
|
82
|
+
} | {
|
|
83
|
+
key: 'change';
|
|
84
|
+
value: AbacAttributeDefinitionChangeType;
|
|
85
|
+
}> {
|
|
86
|
+
t: 'abac.object.attributes.removed';
|
|
87
|
+
}
|
|
88
|
+
export type AbacAuditServerEventKey = Extract<keyof IServerEvents, `abac.${string}`>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditServerAbacAction.js","sourceRoot":"","sources":["../../src/ServerAudit/IAuditServerAbacAction.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IAuditServerEventType } from '../IServerEvent';
|
|
2
|
+
import type { ISetting } from '../ISetting';
|
|
3
|
+
export interface IServerEventSettingsChanged extends IAuditServerEventType<{
|
|
4
|
+
key: 'id';
|
|
5
|
+
value: ISetting['_id'];
|
|
6
|
+
} | {
|
|
7
|
+
key: 'previous';
|
|
8
|
+
value: ISetting['value'];
|
|
9
|
+
} | {
|
|
10
|
+
key: 'current';
|
|
11
|
+
value: ISetting['value'];
|
|
12
|
+
}> {
|
|
13
|
+
t: 'settings.changed';
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditServerSettingEvent.js","sourceRoot":"","sources":["../../src/ServerAudit/IAuditServerSettingEvent.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { UpdateFilter } from 'mongodb';
|
|
2
|
+
import type { IAuditServerEventType } from '../IServerEvent';
|
|
3
|
+
import type { IUser } from '../IUser';
|
|
4
|
+
import type { DeepPartial } from '../utils';
|
|
5
|
+
export interface IServerEventUserChanged extends IAuditServerEventType<{
|
|
6
|
+
key: 'user';
|
|
7
|
+
value: {
|
|
8
|
+
_id: IUser['_id'];
|
|
9
|
+
username: IUser['username'];
|
|
10
|
+
};
|
|
11
|
+
} | {
|
|
12
|
+
key: 'user_data';
|
|
13
|
+
value: DeepPartial<IUser>;
|
|
14
|
+
} | {
|
|
15
|
+
key: 'operation';
|
|
16
|
+
value: UpdateFilter<IUser>;
|
|
17
|
+
}> {
|
|
18
|
+
t: 'user.changed';
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditUserChangedEvent.js","sourceRoot":"","sources":["../../src/ServerAudit/IAuditUserChangedEvent.ts"],"names":[],"mappings":""}
|
|
@@ -17,8 +17,8 @@ export type SlashCommandPreviews = {
|
|
|
17
17
|
i18nTitle: string;
|
|
18
18
|
items: SlashCommandPreviewItem[];
|
|
19
19
|
};
|
|
20
|
-
type SlashCommandPreviewer = (command: string, params: string, message: RequiredField<Partial<IMessage>, 'rid'
|
|
21
|
-
type SlashCommandPreviewCallback = (command: string, params: string, message: RequiredField<Partial<IMessage>, 'rid'>, preview: SlashCommandPreviewItem, triggerId?: string) => void;
|
|
20
|
+
type SlashCommandPreviewer = (command: string, params: string, message: RequiredField<Partial<IMessage>, 'rid'>, userId: string) => Promise<SlashCommandPreviews | undefined>;
|
|
21
|
+
type SlashCommandPreviewCallback = (command: string, params: string, message: RequiredField<Partial<IMessage>, 'rid'>, preview: SlashCommandPreviewItem, userId: string, triggerId?: string) => void;
|
|
22
22
|
export type SlashCommandOptions = {
|
|
23
23
|
params?: string;
|
|
24
24
|
description?: string;
|
package/dist/SpotlightUser.d.ts
CHANGED
|
@@ -6,20 +6,10 @@ export interface IProviderMetadata {
|
|
|
6
6
|
apiEndPointUrl: string;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
export interface IDeepLTranslation {
|
|
10
|
-
detected_source_language: string;
|
|
11
|
-
text: string;
|
|
12
|
-
}
|
|
13
|
-
export interface IGoogleTranslation {
|
|
14
|
-
translatedText: string;
|
|
15
|
-
}
|
|
16
9
|
export interface ISupportedLanguage {
|
|
17
10
|
language: string;
|
|
18
11
|
name: string;
|
|
19
12
|
}
|
|
20
|
-
export interface ISupportedLanguages {
|
|
21
|
-
[language: string]: ISupportedLanguage[];
|
|
22
|
-
}
|
|
23
13
|
export interface ITranslationResult {
|
|
24
14
|
[language: string]: string;
|
|
25
15
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autoTranslate.js","sourceRoot":"","sources":["../src/autoTranslate.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare const AnnouncementSchema: z.ZodObject<{
|
|
3
|
+
_id: z.ZodString;
|
|
4
|
+
_updatedAt: z.ZodOptional<z.ZodCodec<z.ZodISODateTime, z.ZodDate>>;
|
|
5
|
+
platform: z.ZodArray<z.ZodEnum<typeof import("../IBanner").BannerPlatform>>;
|
|
6
|
+
expireAt: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
|
|
7
|
+
startAt: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
|
|
8
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
|
+
createdAt: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
|
|
10
|
+
view: z.ZodCustom<import("@rocket.chat/ui-kit").BannerView, import("@rocket.chat/ui-kit").BannerView>;
|
|
11
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
inactivedAt: z.ZodOptional<z.ZodCodec<z.ZodISODateTime, z.ZodDate>>;
|
|
13
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
14
|
+
dictionary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
15
|
+
surface: z.ZodEnum<{
|
|
16
|
+
banner: "banner";
|
|
17
|
+
modal: "modal";
|
|
18
|
+
}>;
|
|
19
|
+
createdBy: z.ZodEnum<{
|
|
20
|
+
cloud: "cloud";
|
|
21
|
+
system: "system";
|
|
22
|
+
}>;
|
|
23
|
+
selector: z.ZodOptional<z.ZodObject<{
|
|
24
|
+
roles: z.ZodArray<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export type Announcement = z.infer<typeof AnnouncementSchema>;
|
|
@@ -1,3 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.AnnouncementSchema = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
38
|
+
const IBanner_1 = require("../IBanner");
|
|
39
|
+
exports.AnnouncementSchema = IBanner_1.IBannerSchema.extend({
|
|
40
|
+
createdBy: z.enum(['cloud', 'system']),
|
|
41
|
+
selector: z.object({ roles: z.array(z.string()) }).optional(),
|
|
42
|
+
});
|
|
3
43
|
//# sourceMappingURL=Announcement.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Announcement.js","sourceRoot":"","sources":["../../src/cloud/Announcement.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Announcement.js","sourceRoot":"","sources":["../../src/cloud/Announcement.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEzB,wCAA2C;AAE9B,QAAA,kBAAkB,GAAG,uBAAa,CAAC,MAAM,CAAC;IACtD,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACtC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC7D,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CalloutBlock, ContextBlock, DividerBlock, ImageBlock, SectionBlock } from '@rocket.chat/ui-kit';
|
|
2
|
+
type CloudSyncAnnouncementLayoutBlock = ContextBlock | DividerBlock | ImageBlock | SectionBlock | CalloutBlock;
|
|
3
|
+
type CloudSyncAnnouncementLayout = CloudSyncAnnouncementLayoutBlock[];
|
|
4
|
+
export interface ICloudSyncAnnouncement {
|
|
5
|
+
viewId: string;
|
|
6
|
+
appId: string;
|
|
7
|
+
blocks: CloudSyncAnnouncementLayout;
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudSyncAnnouncement.js","sourceRoot":"","sources":["../../src/cloud/CloudSyncAnnouncement.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare const NpsSurveyAnnouncementSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
startAt: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
|
|
5
|
+
expireAt: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type NpsSurveyAnnouncement = z.infer<typeof NpsSurveyAnnouncementSchema>;
|
|
@@ -1,4 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
3
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.NpsSurveyAnnouncementSchema = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
38
|
+
const utils_1 = require("../utils");
|
|
39
|
+
exports.NpsSurveyAnnouncementSchema = z.object({
|
|
40
|
+
id: z.string(),
|
|
41
|
+
startAt: utils_1.TimestampSchema,
|
|
42
|
+
expireAt: utils_1.TimestampSchema,
|
|
43
|
+
});
|
|
4
44
|
//# sourceMappingURL=NpsSurveyAnnouncement.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NpsSurveyAnnouncement.js","sourceRoot":"","sources":["../../src/cloud/NpsSurveyAnnouncement.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NpsSurveyAnnouncement.js","sourceRoot":"","sources":["../../src/cloud/NpsSurveyAnnouncement.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEzB,oCAA2C;AAE9B,QAAA,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,OAAO,EAAE,uBAAe;IACxB,QAAQ,EAAE,uBAAe;CACzB,CAAC,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
expireAt:
|
|
8
|
-
}
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare const WorkspaceLicensePayloadSchema: z.ZodObject<{
|
|
3
|
+
version: z.ZodNumber;
|
|
4
|
+
address: z.ZodString;
|
|
5
|
+
license: z.ZodString;
|
|
6
|
+
updatedAt: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
|
|
7
|
+
expireAt: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type WorkspaceLicensePayload = z.infer<typeof WorkspaceLicensePayloadSchema>;
|