@ale-rainbow/web-sdk 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +501 -0
- package/lib/index.js.map +7 -0
- package/lib/libs/index.d.ts +3 -0
- package/lib/libs/index.d.ts.map +1 -0
- package/lib/libs/strophe/strophe-plugin.d.ts +13 -0
- package/lib/libs/strophe/strophe-plugin.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.jingle.d.ts +35 -0
- package/lib/libs/strophe/strophe.jingle.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.jingle.sdp.d.ts +44 -0
- package/lib/libs/strophe/strophe.jingle.sdp.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.jingle.session.d.ts +624 -0
- package/lib/libs/strophe/strophe.jingle.session.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.jingle.session.stats.d.ts +791 -0
- package/lib/libs/strophe/strophe.jingle.session.stats.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.lastactivity.d.ts +9 -0
- package/lib/libs/strophe/strophe.lastactivity.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.mam.d.ts +11 -0
- package/lib/libs/strophe/strophe.mam.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.ping.d.ts +39 -0
- package/lib/libs/strophe/strophe.ping.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.rsm.d.ts +24 -0
- package/lib/libs/strophe/strophe.rsm.d.ts.map +1 -0
- package/lib/libs/strophe/types.d.ts +23 -0
- package/lib/libs/strophe/types.d.ts.map +1 -0
- package/lib/models/authSettings.model.d.ts +38 -0
- package/lib/models/authSettings.model.d.ts.map +1 -0
- package/lib/models/bubble.model.d.ts +1114 -0
- package/lib/models/bubble.model.d.ts.map +1 -0
- package/lib/models/bubbleConferenceRecap.model.d.ts +532 -0
- package/lib/models/bubbleConferenceRecap.model.d.ts.map +1 -0
- package/lib/models/call.model.d.ts +1271 -0
- package/lib/models/call.model.d.ts.map +1 -0
- package/lib/models/callLog.model.d.ts +361 -0
- package/lib/models/callLog.model.d.ts.map +1 -0
- package/lib/models/channel.model.d.ts +692 -0
- package/lib/models/channel.model.d.ts.map +1 -0
- package/lib/models/channelMessage.model.d.ts +300 -0
- package/lib/models/channelMessage.model.d.ts.map +1 -0
- package/lib/models/cli.model.d.ts +59 -0
- package/lib/models/cli.model.d.ts.map +1 -0
- package/lib/models/common/context.d.ts +37 -0
- package/lib/models/common/context.d.ts.map +1 -0
- package/lib/models/common/error.d.ts +26 -0
- package/lib/models/common/error.d.ts.map +1 -0
- package/lib/models/common/fileDescriptor.d.ts +317 -0
- package/lib/models/common/fileDescriptor.d.ts.map +1 -0
- package/lib/models/common/filePublicDownload.d.ts +26 -0
- package/lib/models/common/filePublicDownload.d.ts.map +1 -0
- package/lib/models/common/fileViewer.d.ts +20 -0
- package/lib/models/common/fileViewer.d.ts.map +1 -0
- package/lib/models/common/index.d.ts +9 -0
- package/lib/models/common/index.d.ts.map +1 -0
- package/lib/models/common/theme.d.ts +185 -0
- package/lib/models/common/theme.d.ts.map +1 -0
- package/lib/models/common/themeColor.d.ts +47 -0
- package/lib/models/common/themeColor.d.ts.map +1 -0
- package/lib/models/common/userTheme.d.ts +42 -0
- package/lib/models/common/userTheme.d.ts.map +1 -0
- package/lib/models/company-invitation.model.d.ts +42 -0
- package/lib/models/company-invitation.model.d.ts.map +1 -0
- package/lib/models/company.model.d.ts +639 -0
- package/lib/models/company.model.d.ts.map +1 -0
- package/lib/models/contact.model.d.ts +1208 -0
- package/lib/models/contact.model.d.ts.map +1 -0
- package/lib/models/conversation.model.d.ts +768 -0
- package/lib/models/conversation.model.d.ts.map +1 -0
- package/lib/models/customManifest.model.d.ts +82 -0
- package/lib/models/customManifest.model.d.ts.map +1 -0
- package/lib/models/dataChannel.model.d.ts +178 -0
- package/lib/models/dataChannel.model.d.ts.map +1 -0
- package/lib/models/dial-in-phone-numbers.model.d.ts +18 -0
- package/lib/models/dial-in-phone-numbers.model.d.ts.map +1 -0
- package/lib/models/directoryContact.model.d.ts +205 -0
- package/lib/models/directoryContact.model.d.ts.map +1 -0
- package/lib/models/event.model.d.ts +14 -0
- package/lib/models/event.model.d.ts.map +1 -0
- package/lib/models/favorite.model.d.ts +94 -0
- package/lib/models/favorite.model.d.ts.map +1 -0
- package/lib/models/fileDocument.model.d.ts +345 -0
- package/lib/models/fileDocument.model.d.ts.map +1 -0
- package/lib/models/geoLoc.model.d.ts +6 -0
- package/lib/models/geoLoc.model.d.ts.map +1 -0
- package/lib/models/index.d.ts +46 -0
- package/lib/models/index.d.ts.map +1 -0
- package/lib/models/invitation.model.d.ts +88 -0
- package/lib/models/invitation.model.d.ts.map +1 -0
- package/lib/models/invoices.model.d.ts +76 -0
- package/lib/models/invoices.model.d.ts.map +1 -0
- package/lib/models/logEntry.model.d.ts +23 -0
- package/lib/models/logEntry.model.d.ts.map +1 -0
- package/lib/models/message.model.d.ts +400 -0
- package/lib/models/message.model.d.ts.map +1 -0
- package/lib/models/messageAdditionalContent.parsers.d.ts +32 -0
- package/lib/models/messageAdditionalContent.parsers.d.ts.map +1 -0
- package/lib/models/offer.model.d.ts +16 -0
- package/lib/models/offer.model.d.ts.map +1 -0
- package/lib/models/p2pRecap.model.d.ts +372 -0
- package/lib/models/p2pRecap.model.d.ts.map +1 -0
- package/lib/models/paymentMethods.model.d.ts +98 -0
- package/lib/models/paymentMethods.model.d.ts.map +1 -0
- package/lib/models/personalRoutine.model.d.ts +173 -0
- package/lib/models/personalRoutine.model.d.ts.map +1 -0
- package/lib/models/poll.model.d.ts +139 -0
- package/lib/models/poll.model.d.ts.map +1 -0
- package/lib/models/rainbow-auth.model.d.ts +137 -0
- package/lib/models/rainbow-auth.model.d.ts.map +1 -0
- package/lib/models/searchTextConvResults.model.d.ts +30 -0
- package/lib/models/searchTextConvResults.model.d.ts.map +1 -0
- package/lib/models/site.model.d.ts +165 -0
- package/lib/models/site.model.d.ts.map +1 -0
- package/lib/models/subscription.model.d.ts +592 -0
- package/lib/models/subscription.model.d.ts.map +1 -0
- package/lib/models/telephonyConfig.model.d.ts +144 -0
- package/lib/models/telephonyConfig.model.d.ts.map +1 -0
- package/lib/models/telephonyForward.model.d.ts +47 -0
- package/lib/models/telephonyForward.model.d.ts.map +1 -0
- package/lib/models/todo.model.d.ts +103 -0
- package/lib/models/todo.model.d.ts.map +1 -0
- package/lib/models/transcription.model.d.ts +59 -0
- package/lib/models/transcription.model.d.ts.map +1 -0
- package/lib/models/user.model.d.ts +1008 -0
- package/lib/models/user.model.d.ts.map +1 -0
- package/lib/models/userProfileTemplate.model.d.ts +735 -0
- package/lib/models/userProfileTemplate.model.d.ts.map +1 -0
- package/lib/models/usersList.model.d.ts +117 -0
- package/lib/models/usersList.model.d.ts.map +1 -0
- package/lib/models/webConferenceParticipant.model.d.ts +135 -0
- package/lib/models/webConferenceParticipant.model.d.ts.map +1 -0
- package/lib/models/webConferenceSession.model.d.ts +658 -0
- package/lib/models/webConferenceSession.model.d.ts.map +1 -0
- package/lib/models/webinar.model.d.ts +738 -0
- package/lib/models/webinar.model.d.ts.map +1 -0
- package/lib/models/webinarRecap.model.d.ts +118 -0
- package/lib/models/webinarRecap.model.d.ts.map +1 -0
- package/lib/node.d.ts +3 -0
- package/lib/node.d.ts.map +1 -0
- package/lib/node.js +423 -0
- package/lib/node.js.map +7 -0
- package/lib/node.sdk.d.ts +41 -0
- package/lib/node.sdk.d.ts.map +1 -0
- package/lib/plugins/admin.plugin.d.ts +6 -0
- package/lib/plugins/admin.plugin.d.ts.map +1 -0
- package/lib/plugins/bubbleConference.plugin.d.ts +6 -0
- package/lib/plugins/bubbleConference.plugin.d.ts.map +1 -0
- package/lib/plugins/bubbleTag.plugin.d.ts +6 -0
- package/lib/plugins/bubbleTag.plugin.d.ts.map +1 -0
- package/lib/plugins/bubbles.plugin.d.ts +6 -0
- package/lib/plugins/bubbles.plugin.d.ts.map +1 -0
- package/lib/plugins/businessDirectory.plugin.d.ts +6 -0
- package/lib/plugins/businessDirectory.plugin.d.ts.map +1 -0
- package/lib/plugins/callRecorder.plugin.d.ts +6 -0
- package/lib/plugins/callRecorder.plugin.d.ts.map +1 -0
- package/lib/plugins/calllog.plugin.d.ts +6 -0
- package/lib/plugins/calllog.plugin.d.ts.map +1 -0
- package/lib/plugins/calls.plugin.d.ts +6 -0
- package/lib/plugins/calls.plugin.d.ts.map +1 -0
- package/lib/plugins/channels.plugin.d.ts +6 -0
- package/lib/plugins/channels.plugin.d.ts.map +1 -0
- package/lib/plugins/dataChannel.plugin.d.ts +6 -0
- package/lib/plugins/dataChannel.plugin.d.ts.map +1 -0
- package/lib/plugins/deviceManagement.plugin.d.ts +6 -0
- package/lib/plugins/deviceManagement.plugin.d.ts.map +1 -0
- package/lib/plugins/favorites.plugin.d.ts +6 -0
- package/lib/plugins/favorites.plugin.d.ts.map +1 -0
- package/lib/plugins/fileDocument.plugin.d.ts +6 -0
- package/lib/plugins/fileDocument.plugin.d.ts.map +1 -0
- package/lib/plugins/helpCenter.plugin.d.ts +6 -0
- package/lib/plugins/helpCenter.plugin.d.ts.map +1 -0
- package/lib/plugins/index.d.ts +27 -0
- package/lib/plugins/index.d.ts.map +1 -0
- package/lib/plugins/microsoft0365Ad.plugin.d.ts +6 -0
- package/lib/plugins/microsoft0365Ad.plugin.d.ts.map +1 -0
- package/lib/plugins/pbxUsers.plugin.d.ts +6 -0
- package/lib/plugins/pbxUsers.plugin.d.ts.map +1 -0
- package/lib/plugins/personalDirectory.plugin.d.ts +6 -0
- package/lib/plugins/personalDirectory.plugin.d.ts.map +1 -0
- package/lib/plugins/plugin.d.ts +8 -0
- package/lib/plugins/plugin.d.ts.map +1 -0
- package/lib/plugins/polls.plugin.d.ts +6 -0
- package/lib/plugins/polls.plugin.d.ts.map +1 -0
- package/lib/plugins/rpc.plugin.d.ts +6 -0
- package/lib/plugins/rpc.plugin.d.ts.map +1 -0
- package/lib/plugins/telemetry.plugin.d.ts +6 -0
- package/lib/plugins/telemetry.plugin.d.ts.map +1 -0
- package/lib/plugins/telephony.plugin.d.ts +6 -0
- package/lib/plugins/telephony.plugin.d.ts.map +1 -0
- package/lib/plugins/telephonyConfig.plugin.d.ts +6 -0
- package/lib/plugins/telephonyConfig.plugin.d.ts.map +1 -0
- package/lib/plugins/transcription.plugin.d.ts +6 -0
- package/lib/plugins/transcription.plugin.d.ts.map +1 -0
- package/lib/plugins/usersList.plugin.d.ts +6 -0
- package/lib/plugins/usersList.plugin.d.ts.map +1 -0
- package/lib/plugins/virtualBackground.plugin.d.ts +6 -0
- package/lib/plugins/virtualBackground.plugin.d.ts.map +1 -0
- package/lib/plugins/webinar.plugin.d.ts +6 -0
- package/lib/plugins/webinar.plugin.d.ts.map +1 -0
- package/lib/rainbow.sdk.d.ts +309 -0
- package/lib/rainbow.sdk.d.ts.map +1 -0
- package/lib/services/admin/admin-alarm.service.d.ts +42 -0
- package/lib/services/admin/admin-alarm.service.d.ts.map +1 -0
- package/lib/services/admin/admin-company.service.d.ts +167 -0
- package/lib/services/admin/admin-company.service.d.ts.map +1 -0
- package/lib/services/admin/admin-department.service.d.ts +39 -0
- package/lib/services/admin/admin-department.service.d.ts.map +1 -0
- package/lib/services/admin/admin-invitation.service.d.ts +114 -0
- package/lib/services/admin/admin-invitation.service.d.ts.map +1 -0
- package/lib/services/admin/admin-management.service.d.ts +100 -0
- package/lib/services/admin/admin-management.service.d.ts.map +1 -0
- package/lib/services/admin/admin-rvcp.service.d.ts +43 -0
- package/lib/services/admin/admin-rvcp.service.d.ts.map +1 -0
- package/lib/services/admin/admin-site.service.d.ts +64 -0
- package/lib/services/admin/admin-site.service.d.ts.map +1 -0
- package/lib/services/admin/admin-subscription.service.d.ts +135 -0
- package/lib/services/admin/admin-subscription.service.d.ts.map +1 -0
- package/lib/services/admin/admin-tag.service.d.ts +79 -0
- package/lib/services/admin/admin-tag.service.d.ts.map +1 -0
- package/lib/services/admin/admin-user-profile.service.d.ts +76 -0
- package/lib/services/admin/admin-user-profile.service.d.ts.map +1 -0
- package/lib/services/admin/admin-user.service.d.ts +338 -0
- package/lib/services/admin/admin-user.service.d.ts.map +1 -0
- package/lib/services/admin/admin.common.d.ts +40 -0
- package/lib/services/admin/admin.common.d.ts.map +1 -0
- package/lib/services/admin/admin.service.d.ts +138 -0
- package/lib/services/admin/admin.service.d.ts.map +1 -0
- package/lib/services/admin/index.d.ts +14 -0
- package/lib/services/admin/index.d.ts.map +1 -0
- package/lib/services/bot/bot.service.d.ts +121 -0
- package/lib/services/bot/bot.service.d.ts.map +1 -0
- package/lib/services/bubbles/bubble.service.d.ts +889 -0
- package/lib/services/bubbles/bubble.service.d.ts.map +1 -0
- package/lib/services/bubbles/bubbleTag.service.d.ts +132 -0
- package/lib/services/bubbles/bubbleTag.service.d.ts.map +1 -0
- package/lib/services/bubbles/index.d.ts +3 -0
- package/lib/services/bubbles/index.d.ts.map +1 -0
- package/lib/services/call/call.service.d.ts +297 -0
- package/lib/services/call/call.service.d.ts.map +1 -0
- package/lib/services/call/callRecorder.service.d.ts +358 -0
- package/lib/services/call/callRecorder.service.d.ts.map +1 -0
- package/lib/services/call/index.d.ts +3 -0
- package/lib/services/call/index.d.ts.map +1 -0
- package/lib/services/callLog/callLog.service.d.ts +563 -0
- package/lib/services/callLog/callLog.service.d.ts.map +1 -0
- package/lib/services/callLog/index.d.ts +5 -0
- package/lib/services/callLog/index.d.ts.map +1 -0
- package/lib/services/callLog/p2pRecap.service.d.ts +206 -0
- package/lib/services/callLog/p2pRecap.service.d.ts.map +1 -0
- package/lib/services/channels/channel.service.d.ts +626 -0
- package/lib/services/channels/channel.service.d.ts.map +1 -0
- package/lib/services/channels/index.d.ts +3 -0
- package/lib/services/channels/index.d.ts.map +1 -0
- package/lib/services/citrix/citrix.service.d.ts +30 -0
- package/lib/services/citrix/citrix.service.d.ts.map +1 -0
- package/lib/services/citrix/index.d.ts +3 -0
- package/lib/services/citrix/index.d.ts.map +1 -0
- package/lib/services/company/company-directory.service.d.ts +222 -0
- package/lib/services/company/company-directory.service.d.ts.map +1 -0
- package/lib/services/conference/bubbleConference.service.d.ts +1237 -0
- package/lib/services/conference/bubbleConference.service.d.ts.map +1 -0
- package/lib/services/conference/bubbleConferenceRecap.service.d.ts +159 -0
- package/lib/services/conference/bubbleConferenceRecap.service.d.ts.map +1 -0
- package/lib/services/conference/index.d.ts +5 -0
- package/lib/services/conference/index.d.ts.map +1 -0
- package/lib/services/conference/webConferenceHelper.d.ts +25 -0
- package/lib/services/conference/webConferenceHelper.d.ts.map +1 -0
- package/lib/services/conversation/conversation.service.d.ts +723 -0
- package/lib/services/conversation/conversation.service.d.ts.map +1 -0
- package/lib/services/conversation/conversationServiceBulkHistoryHandler.d.ts +39 -0
- package/lib/services/conversation/conversationServiceBulkHistoryHandler.d.ts.map +1 -0
- package/lib/services/conversation/conversationServiceEventHandler.d.ts +78 -0
- package/lib/services/conversation/conversationServiceEventHandler.d.ts.map +1 -0
- package/lib/services/conversation/index.d.ts +3 -0
- package/lib/services/conversation/index.d.ts.map +1 -0
- package/lib/services/core/account.service.d.ts +98 -0
- package/lib/services/core/account.service.d.ts.map +1 -0
- package/lib/services/core/auth.service.d.ts +303 -0
- package/lib/services/core/auth.service.d.ts.map +1 -0
- package/lib/services/core/company.service.d.ts +30 -0
- package/lib/services/core/company.service.d.ts.map +1 -0
- package/lib/services/core/connection.service.d.ts +209 -0
- package/lib/services/core/connection.service.d.ts.map +1 -0
- package/lib/services/core/contact.service.d.ts +617 -0
- package/lib/services/core/contact.service.d.ts.map +1 -0
- package/lib/services/core/country.service.d.ts +66 -0
- package/lib/services/core/country.service.d.ts.map +1 -0
- package/lib/services/core/directorySearch.service.d.ts +305 -0
- package/lib/services/core/directorySearch.service.d.ts.map +1 -0
- package/lib/services/core/event.service.d.ts +31 -0
- package/lib/services/core/event.service.d.ts.map +1 -0
- package/lib/services/core/i18n.service.d.ts +19 -0
- package/lib/services/core/i18n.service.d.ts.map +1 -0
- package/lib/services/core/imageUtils.service.d.ts +15 -0
- package/lib/services/core/imageUtils.service.d.ts.map +1 -0
- package/lib/services/core/index.d.ts +19 -0
- package/lib/services/core/index.d.ts.map +1 -0
- package/lib/services/core/logger.service.d.ts +143 -0
- package/lib/services/core/logger.service.d.ts.map +1 -0
- package/lib/services/core/logging.service.d.ts +51 -0
- package/lib/services/core/logging.service.d.ts.map +1 -0
- package/lib/services/core/main.service.d.ts +124 -0
- package/lib/services/core/main.service.d.ts.map +1 -0
- package/lib/services/core/presenceHelper.service.d.ts +73 -0
- package/lib/services/core/presenceHelper.service.d.ts.map +1 -0
- package/lib/services/core/profile.service.d.ts +453 -0
- package/lib/services/core/profile.service.d.ts.map +1 -0
- package/lib/services/core/settings.service.d.ts +82 -0
- package/lib/services/core/settings.service.d.ts.map +1 -0
- package/lib/services/core/userInfo.service.d.ts +25 -0
- package/lib/services/core/userInfo.service.d.ts.map +1 -0
- package/lib/services/core/userNetwork.service.d.ts +171 -0
- package/lib/services/core/userNetwork.service.d.ts.map +1 -0
- package/lib/services/core/xmpp.service.d.ts +99 -0
- package/lib/services/core/xmpp.service.d.ts.map +1 -0
- package/lib/services/dataChannel/dataChannel.service.d.ts +102 -0
- package/lib/services/dataChannel/dataChannel.service.d.ts.map +1 -0
- package/lib/services/dataChannel/index.d.ts +3 -0
- package/lib/services/dataChannel/index.d.ts.map +1 -0
- package/lib/services/deviceManagement/deviceEchoFilter.d.ts +86 -0
- package/lib/services/deviceManagement/deviceEchoFilter.d.ts.map +1 -0
- package/lib/services/deviceManagement/deviceManagement.service.d.ts +290 -0
- package/lib/services/deviceManagement/deviceManagement.service.d.ts.map +1 -0
- package/lib/services/deviceManagement/index.d.ts +2 -0
- package/lib/services/deviceManagement/index.d.ts.map +1 -0
- package/lib/services/deviceManagement/webHidManager.service.d.ts +616 -0
- package/lib/services/deviceManagement/webHidManager.service.d.ts.map +1 -0
- package/lib/services/directory/directory.service.d.ts +108 -0
- package/lib/services/directory/directory.service.d.ts.map +1 -0
- package/lib/services/directory/index.d.ts +3 -0
- package/lib/services/directory/index.d.ts.map +1 -0
- package/lib/services/directory/office365ad.service.d.ts +74 -0
- package/lib/services/directory/office365ad.service.d.ts.map +1 -0
- package/lib/services/directory/personal-directory.service.d.ts +425 -0
- package/lib/services/directory/personal-directory.service.d.ts.map +1 -0
- package/lib/services/directory/phonebook.service.d.ts +43 -0
- package/lib/services/directory/phonebook.service.d.ts.map +1 -0
- package/lib/services/event-mixin.d.ts +75 -0
- package/lib/services/event-mixin.d.ts.map +1 -0
- package/lib/services/favorites/favorites.service.d.ts +313 -0
- package/lib/services/favorites/favorites.service.d.ts.map +1 -0
- package/lib/services/favorites/index.d.ts +3 -0
- package/lib/services/favorites/index.d.ts.map +1 -0
- package/lib/services/fileDocument/fileDocument.service.d.ts +229 -0
- package/lib/services/fileDocument/fileDocument.service.d.ts.map +1 -0
- package/lib/services/fileDocument/index.d.ts +5 -0
- package/lib/services/fileDocument/index.d.ts.map +1 -0
- package/lib/services/files/fileDescriptorEventHandler.service.d.ts +18 -0
- package/lib/services/files/fileDescriptorEventHandler.service.d.ts.map +1 -0
- package/lib/services/files/fileServer.service.d.ts +268 -0
- package/lib/services/files/fileServer.service.d.ts.map +1 -0
- package/lib/services/files/fileStorage.service.d.ts +426 -0
- package/lib/services/files/fileStorage.service.d.ts.map +1 -0
- package/lib/services/helpcenter/helpCenter.service.d.ts +207 -0
- package/lib/services/helpcenter/helpCenter.service.d.ts.map +1 -0
- package/lib/services/helpcenter/index.d.ts +4 -0
- package/lib/services/helpcenter/index.d.ts.map +1 -0
- package/lib/services/helpcenter/whatsNew.service.d.ts +47 -0
- package/lib/services/helpcenter/whatsNew.service.d.ts.map +1 -0
- package/lib/services/horizon/horizon.service.d.ts +31 -0
- package/lib/services/horizon/horizon.service.d.ts.map +1 -0
- package/lib/services/horizon/index.d.ts +3 -0
- package/lib/services/horizon/index.d.ts.map +1 -0
- package/lib/services/index.d.ts +35 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/launcher/config/sdkLaunchConfig.d.ts +8 -0
- package/lib/services/launcher/config/sdkLaunchConfig.d.ts.map +1 -0
- package/lib/services/localTranslation/chromeTranslation.engine.d.ts +79 -0
- package/lib/services/localTranslation/chromeTranslation.engine.d.ts.map +1 -0
- package/lib/services/localTranslation/index.d.ts +6 -0
- package/lib/services/localTranslation/index.d.ts.map +1 -0
- package/lib/services/localTranslation/localTranslation.service.d.ts +129 -0
- package/lib/services/localTranslation/localTranslation.service.d.ts.map +1 -0
- package/lib/services/localTranslation/translationEngine.d.ts +81 -0
- package/lib/services/localTranslation/translationEngine.d.ts.map +1 -0
- package/lib/services/metrics/analytics.service.d.ts +63 -0
- package/lib/services/metrics/analytics.service.d.ts.map +1 -0
- package/lib/services/metrics/index.d.ts +2 -0
- package/lib/services/metrics/index.d.ts.map +1 -0
- package/lib/services/notifications/index.d.ts +2 -0
- package/lib/services/notifications/index.d.ts.map +1 -0
- package/lib/services/notifications/notificationCenter.service.d.ts +178 -0
- package/lib/services/notifications/notificationCenter.service.d.ts.map +1 -0
- package/lib/services/notifications/notificationsViewer.service.d.ts +46 -0
- package/lib/services/notifications/notificationsViewer.service.d.ts.map +1 -0
- package/lib/services/personalRoutines/personal-routines.service.d.ts +159 -0
- package/lib/services/personalRoutines/personal-routines.service.d.ts.map +1 -0
- package/lib/services/polls/index.d.ts +2 -0
- package/lib/services/polls/index.d.ts.map +1 -0
- package/lib/services/polls/polls.service.d.ts +139 -0
- package/lib/services/polls/polls.service.d.ts.map +1 -0
- package/lib/services/ringing/index.d.ts +2 -0
- package/lib/services/ringing/index.d.ts.map +1 -0
- package/lib/services/ringing/ringing.service.d.ts +535 -0
- package/lib/services/ringing/ringing.service.d.ts.map +1 -0
- package/lib/services/rpc/index.d.ts +2 -0
- package/lib/services/rpc/index.d.ts.map +1 -0
- package/lib/services/rpc/rpc.service.d.ts +75 -0
- package/lib/services/rpc/rpc.service.d.ts.map +1 -0
- package/lib/services/service.d.ts +9 -0
- package/lib/services/service.d.ts.map +1 -0
- package/lib/services/speechRecognitionService/speechRecognition.service.d.ts +87 -0
- package/lib/services/speechRecognitionService/speechRecognition.service.d.ts.map +1 -0
- package/lib/services/subscription/index.d.ts +4 -0
- package/lib/services/subscription/index.d.ts.map +1 -0
- package/lib/services/subscription/invoices.service.d.ts +78 -0
- package/lib/services/subscription/invoices.service.d.ts.map +1 -0
- package/lib/services/subscription/paymentMethods.service.d.ts +164 -0
- package/lib/services/subscription/paymentMethods.service.d.ts.map +1 -0
- package/lib/services/subscription/subscription.service.d.ts +510 -0
- package/lib/services/subscription/subscription.service.d.ts.map +1 -0
- package/lib/services/support/index.d.ts +2 -0
- package/lib/services/support/index.d.ts.map +1 -0
- package/lib/services/support/support.model.d.ts +143 -0
- package/lib/services/support/support.model.d.ts.map +1 -0
- package/lib/services/support/support.service.d.ts +162 -0
- package/lib/services/support/support.service.d.ts.map +1 -0
- package/lib/services/telemetry/index.d.ts +3 -0
- package/lib/services/telemetry/index.d.ts.map +1 -0
- package/lib/services/telemetry/jsonRPC.service.d.ts +25 -0
- package/lib/services/telemetry/jsonRPC.service.d.ts.map +1 -0
- package/lib/services/telemetry/telemetry.service.d.ts +22 -0
- package/lib/services/telemetry/telemetry.service.d.ts.map +1 -0
- package/lib/services/telephony/index.d.ts +4 -0
- package/lib/services/telephony/index.d.ts.map +1 -0
- package/lib/services/telephony/supervision.service.d.ts +277 -0
- package/lib/services/telephony/supervision.service.d.ts.map +1 -0
- package/lib/services/telephony/telephony.service.d.ts +1476 -0
- package/lib/services/telephony/telephony.service.d.ts.map +1 -0
- package/lib/services/telephony/telephonyCcdAgent.service.d.ts +63 -0
- package/lib/services/telephony/telephonyCcdAgent.service.d.ts.map +1 -0
- package/lib/services/telephony/telephonyHybridEventHandler.d.ts +360 -0
- package/lib/services/telephony/telephonyHybridEventHandler.d.ts.map +1 -0
- package/lib/services/telephony/telephonyKeys.service.d.ts +86 -0
- package/lib/services/telephony/telephonyKeys.service.d.ts.map +1 -0
- package/lib/services/telephony/telephonySipWise.service.d.ts +543 -0
- package/lib/services/telephony/telephonySipWise.service.d.ts.map +1 -0
- package/lib/services/telephony/telephonySipWiseEventHandler.d.ts +462 -0
- package/lib/services/telephony/telephonySipWiseEventHandler.d.ts.map +1 -0
- package/lib/services/telephonyConfig/index.d.ts +3 -0
- package/lib/services/telephonyConfig/index.d.ts.map +1 -0
- package/lib/services/telephonyConfig/telephonyConfig.service.d.ts +150 -0
- package/lib/services/telephonyConfig/telephonyConfig.service.d.ts.map +1 -0
- package/lib/services/todo/todo.service.d.ts +358 -0
- package/lib/services/todo/todo.service.d.ts.map +1 -0
- package/lib/services/transcription/index.d.ts +2 -0
- package/lib/services/transcription/index.d.ts.map +1 -0
- package/lib/services/transcription/liveTranscription.service.d.ts +94 -0
- package/lib/services/transcription/liveTranscription.service.d.ts.map +1 -0
- package/lib/services/ulrMetadata/urlMetadata.service.d.ts +51 -0
- package/lib/services/ulrMetadata/urlMetadata.service.d.ts.map +1 -0
- package/lib/services/users/index.d.ts +3 -0
- package/lib/services/users/index.d.ts.map +1 -0
- package/lib/services/users/user.service.d.ts +146 -0
- package/lib/services/users/user.service.d.ts.map +1 -0
- package/lib/services/users/usersLists.service.d.ts +239 -0
- package/lib/services/users/usersLists.service.d.ts.map +1 -0
- package/lib/services/utilities/browserDatabase.service.d.ts +69 -0
- package/lib/services/utilities/browserDatabase.service.d.ts.map +1 -0
- package/lib/services/utilities/errorHelper.service.d.ts +24 -0
- package/lib/services/utilities/errorHelper.service.d.ts.map +1 -0
- package/lib/services/utilities/index.d.ts +4 -0
- package/lib/services/utilities/index.d.ts.map +1 -0
- package/lib/services/utilities/utilities.service.d.ts +74 -0
- package/lib/services/utilities/utilities.service.d.ts.map +1 -0
- package/lib/services/virtualBackground/RBVirtualBackground.service.d.ts +228 -0
- package/lib/services/virtualBackground/RBVirtualBackground.service.d.ts.map +1 -0
- package/lib/services/virtualBackground/index.d.ts +4 -0
- package/lib/services/virtualBackground/index.d.ts.map +1 -0
- package/lib/services/virtualBackground/personalVideoBackground.d.ts +190 -0
- package/lib/services/virtualBackground/personalVideoBackground.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/canvas2D/canvas2DPipeline.d.ts +66 -0
- package/lib/services/virtualBackground/pipeline/canvas2D/canvas2DPipeline.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/blurStage.d.ts +88 -0
- package/lib/services/virtualBackground/pipeline/webgl2/blurStage.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/imageStage.d.ts +69 -0
- package/lib/services/virtualBackground/pipeline/webgl2/imageStage.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/jointBilateralFilter.d.ts +55 -0
- package/lib/services/virtualBackground/pipeline/webgl2/jointBilateralFilter.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/resizingStage.d.ts +59 -0
- package/lib/services/virtualBackground/pipeline/webgl2/resizingStage.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/softMax.d.ts +34 -0
- package/lib/services/virtualBackground/pipeline/webgl2/softMax.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/webgl2Pipeline.d.ts +62 -0
- package/lib/services/virtualBackground/pipeline/webgl2/webgl2Pipeline.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/webglHelper.d.ts +56 -0
- package/lib/services/virtualBackground/pipeline/webgl2/webglHelper.d.ts.map +1 -0
- package/lib/services/virtualBackground/virtualBackground.service.d.ts +399 -0
- package/lib/services/virtualBackground/virtualBackground.service.d.ts.map +1 -0
- package/lib/services/webinars/index.d.ts +10 -0
- package/lib/services/webinars/index.d.ts.map +1 -0
- package/lib/services/webinars/telemetry/webinarTelemetry.model.d.ts +71 -0
- package/lib/services/webinars/telemetry/webinarTelemetry.model.d.ts.map +1 -0
- package/lib/services/webinars/telemetry/webinarTelemetry.service.d.ts +86 -0
- package/lib/services/webinars/telemetry/webinarTelemetry.service.d.ts.map +1 -0
- package/lib/services/webinars/telemetry/webinarTelemetryDatabase.d.ts +31 -0
- package/lib/services/webinars/telemetry/webinarTelemetryDatabase.d.ts.map +1 -0
- package/lib/services/webinars/webinarAudioMixer.d.ts +45 -0
- package/lib/services/webinars/webinarAudioMixer.d.ts.map +1 -0
- package/lib/services/webinars/webinarConference.service.d.ts +323 -0
- package/lib/services/webinars/webinarConference.service.d.ts.map +1 -0
- package/lib/services/webinars/webinarConference.utils.d.ts +24 -0
- package/lib/services/webinars/webinarConference.utils.d.ts.map +1 -0
- package/lib/services/webinars/webinarParticipants.service.d.ts +43 -0
- package/lib/services/webinars/webinarParticipants.service.d.ts.map +1 -0
- package/lib/services/webinars/webinarSpeakers.service.d.ts +25 -0
- package/lib/services/webinars/webinarSpeakers.service.d.ts.map +1 -0
- package/lib/services/webinars/webinarStoryLine.service.d.ts +117 -0
- package/lib/services/webinars/webinarStoryLine.service.d.ts.map +1 -0
- package/lib/services/webinars/webinars.service.d.ts +600 -0
- package/lib/services/webinars/webinars.service.d.ts.map +1 -0
- package/lib/services/webrtc/index.d.ts +5 -0
- package/lib/services/webrtc/index.d.ts.map +1 -0
- package/lib/services/webrtc/webrtcConfigAndUtils.d.ts +170 -0
- package/lib/services/webrtc/webrtcConfigAndUtils.d.ts.map +1 -0
- package/lib/services/webrtc/webrtcP2P.service.d.ts +521 -0
- package/lib/services/webrtc/webrtcP2P.service.d.ts.map +1 -0
- package/lib/services/webrtc/webrtcP2PEventHandler.d.ts +55 -0
- package/lib/services/webrtc/webrtcP2PEventHandler.d.ts.map +1 -0
- package/lib/services/webrtcGateway/webrtcGateway.service.d.ts +605 -0
- package/lib/services/webrtcGateway/webrtcGateway.service.d.ts.map +1 -0
- package/lib/strophejs.d.ts +3 -0
- package/lib/strophejs.d.ts.map +1 -0
- package/lib/typings/helpers.d.ts +3 -0
- package/lib/typings/helpers.d.ts.map +1 -0
- package/lib/utils/allSettled.d.ts +2 -0
- package/lib/utils/allSettled.d.ts.map +1 -0
- package/lib/utils/anonymizer.d.ts +28 -0
- package/lib/utils/anonymizer.d.ts.map +1 -0
- package/lib/utils/branded.d.ts +4 -0
- package/lib/utils/branded.d.ts.map +1 -0
- package/lib/utils/browser.d.ts +231 -0
- package/lib/utils/browser.d.ts.map +1 -0
- package/lib/utils/index.d.ts +12 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/mediaPermissionError.d.ts +2 -0
- package/lib/utils/mediaPermissionError.d.ts.map +1 -0
- package/lib/utils/promiseQueue.d.ts +10 -0
- package/lib/utils/promiseQueue.d.ts.map +1 -0
- package/lib/utils/randomString.d.ts +3 -0
- package/lib/utils/randomString.d.ts.map +1 -0
- package/lib/utils/recordingArchiveName.d.ts +13 -0
- package/lib/utils/recordingArchiveName.d.ts.map +1 -0
- package/lib/utils/serverTimestamp.d.ts +15 -0
- package/lib/utils/serverTimestamp.d.ts.map +1 -0
- package/lib/utils/stringifyError.d.ts +2 -0
- package/lib/utils/stringifyError.d.ts.map +1 -0
- package/lib/utils/video.d.ts +27 -0
- package/lib/utils/video.d.ts.map +1 -0
- package/lib/utils/wait.d.ts +2 -0
- package/lib/utils/wait.d.ts.map +1 -0
- package/lib/utils/xmlParser.d.ts +102 -0
- package/lib/utils/xmlParser.d.ts.map +1 -0
- package/lib/utils/xmlValidation.d.ts +119 -0
- package/lib/utils/xmlValidation.d.ts.map +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1,626 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module Channels
|
|
3
|
+
*/
|
|
4
|
+
import type { Subscription } from "rxjs";
|
|
5
|
+
import type { Channel, ChannelAggregated, ChannelGetUsersOptions, ChannelSearchUsersOptions, ChannelSettings, ChannelUser } from "../../models/channel.model";
|
|
6
|
+
import { ChannelRB, ChannelConfidentiality, ChannelUserRole, ChannelVisibility } from "../../models/channel.model";
|
|
7
|
+
import type { ChannelPost, ChannelPostUserReactions } from "../../models/channelMessage.model";
|
|
8
|
+
import { ChannelMessage, ChannelPostReaction } from "../../models/channelMessage.model";
|
|
9
|
+
import { RBEvent } from "../../models/event.model";
|
|
10
|
+
import { Service } from "../../services/service";
|
|
11
|
+
import type { StropheHandler } from "../../libs/strophe/types";
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export declare const CHANNEL_SVC = "ChannelService";
|
|
16
|
+
/**
|
|
17
|
+
* @eventProperty
|
|
18
|
+
* This enum lists all the `RBEvent` events generated by the Channel service.
|
|
19
|
+
* They can be listened to using the `channelService.subscribe()` API.
|
|
20
|
+
*/
|
|
21
|
+
export declare enum ChannelServiceEvents {
|
|
22
|
+
/**
|
|
23
|
+
* @eventProperty
|
|
24
|
+
* This `RBEvent` is send when the channel service is started and ready to be used (also fired after loss of network and reconnection)
|
|
25
|
+
*/
|
|
26
|
+
ON_SERVICE_STARTED = "ON_SERVICE_STARTED",
|
|
27
|
+
/**
|
|
28
|
+
* @eventProperty
|
|
29
|
+
* This RBEvent is sent when the connected user has received an invitation to susbcribe to a channel.
|
|
30
|
+
* At the end of the process, the user will be added in the channel.
|
|
31
|
+
* **Event Data**
|
|
32
|
+
* - **channel**: The channel for which the invitation was sent.
|
|
33
|
+
*/
|
|
34
|
+
ON_CONNECTED_USER_INVITATION_RECEIVED = "ON_CONNECTED_USER_INVITATION_RECEIVED",
|
|
35
|
+
/**
|
|
36
|
+
* @eventProperty
|
|
37
|
+
* This RBEvent is sent when the connected user has declined an invitation to join a channel.
|
|
38
|
+
* At the end of the process, the user will be removed from the channel.
|
|
39
|
+
* **Event Data**
|
|
40
|
+
* - **channel**: The channel for which the invitation was sent.
|
|
41
|
+
*/
|
|
42
|
+
ON_CONNECTED_USER_INVITATION_DECLINED = "ON_CONNECTED_USER_INVITATION_DECLINED",
|
|
43
|
+
/**
|
|
44
|
+
* @eventProperty
|
|
45
|
+
* This RBEvent is sent when the connected user has accepted an invitation to join a channel.
|
|
46
|
+
* **Event Data**
|
|
47
|
+
* - **channel**: The channel for which the invitation was sent.
|
|
48
|
+
*/
|
|
49
|
+
ON_CONNECTED_USER_INVITATION_ACCEPTED = "ON_CONNECTED_USER_INVITATION_ACCEPTED",
|
|
50
|
+
/**
|
|
51
|
+
* @eventProperty
|
|
52
|
+
* This `RBEvent` event is sent when the connected user has subscribed to a channel.
|
|
53
|
+
* **Event Data**
|
|
54
|
+
* - **channel**: The channel concerned.
|
|
55
|
+
*/
|
|
56
|
+
ON_USER_SUBSCRIPTION = "ON_USER_SUBSCRIPTION",
|
|
57
|
+
/**
|
|
58
|
+
* @eventProperty
|
|
59
|
+
* This RBEvent is sent when the connected user has added to the channel.
|
|
60
|
+
* **Event Data**
|
|
61
|
+
* - **channel**: The channel concerned by this event
|
|
62
|
+
*/
|
|
63
|
+
ON_CONNECTED_USER_ADDED = "ON_CONNECTED_USER_ADDED",
|
|
64
|
+
/**
|
|
65
|
+
* @eventProperty
|
|
66
|
+
* This RBEvent is sent when the role of a member channel has changed.
|
|
67
|
+
* **Event Data**
|
|
68
|
+
* - **channel**: The channel concerned by this event
|
|
69
|
+
*/
|
|
70
|
+
ON_USER_ROLE_UPDATED = "ON_USER_ROLE_UPDATED",
|
|
71
|
+
/**
|
|
72
|
+
* @eventProperty
|
|
73
|
+
* This `RBEvent` event is sent when a new post has been published in the channel.
|
|
74
|
+
* **Event Data**
|
|
75
|
+
* - **channel**: The channel in which the new post has been published.
|
|
76
|
+
* - **post**: The new published post.
|
|
77
|
+
*/
|
|
78
|
+
ON_CHANNEL_POST_PUBLISHED = "ON_CHANNEL_POST_PUBLISHED",
|
|
79
|
+
/**
|
|
80
|
+
* @eventProperty
|
|
81
|
+
* This `RBEvent` event is sent when a post already published in the channel has been modified.
|
|
82
|
+
* **Event Data**
|
|
83
|
+
* - **channel**: The channel in which the post has been modified.
|
|
84
|
+
* - **post**: The updated post.
|
|
85
|
+
*/
|
|
86
|
+
ON_CHANNEL_POST_UPDATED = "ON_CHANNEL_POST_UPDATED",
|
|
87
|
+
/**
|
|
88
|
+
* @eventProperty
|
|
89
|
+
* This `RBEvent` event is sent when a post has been removed from the channel.
|
|
90
|
+
* **Event Data**
|
|
91
|
+
* - **channel**: The channel in which the post has been removed.
|
|
92
|
+
* - **postId**: The removed post id.
|
|
93
|
+
*/
|
|
94
|
+
ON_CHANNEL_POST_REMOVED = "ON_CHANNEL_POST_REMOVED"
|
|
95
|
+
}
|
|
96
|
+
export declare enum ChannelSearchSortBy {
|
|
97
|
+
/**
|
|
98
|
+
* The list of channel found must be returned sorted by channel name.
|
|
99
|
+
*/
|
|
100
|
+
SORT_BY_CHANNEL_NAME = "name",
|
|
101
|
+
/**
|
|
102
|
+
* The list of channel found must be returned sorted by channel topic.
|
|
103
|
+
*/
|
|
104
|
+
SORT_BY_CHANNEL_TOPIC = "topic",
|
|
105
|
+
/**
|
|
106
|
+
* The list of channel found must be returned sorted by the number of channel members.
|
|
107
|
+
*/
|
|
108
|
+
SORT_BY_NB_CHANNEL_MEMBERS = "subscribers_count",
|
|
109
|
+
/**
|
|
110
|
+
* The list of channel found must be returned sorted by creation date.
|
|
111
|
+
*/
|
|
112
|
+
SORT_BY_CHANNEL_CREATION_DATE = "SORT_BY_CHANNEL_CREATION_DATE"
|
|
113
|
+
}
|
|
114
|
+
export declare enum ChannelSearchSortOrder {
|
|
115
|
+
/**
|
|
116
|
+
* The list of channel found are sorted in ascending order.
|
|
117
|
+
*/
|
|
118
|
+
SORT_ASCENDING = "1",
|
|
119
|
+
/**
|
|
120
|
+
* The list of channel found are sorted in decreasing order.
|
|
121
|
+
*/
|
|
122
|
+
SORT_DESCENDING = -1
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* The `ChannelCreationData` interface describes the options that can be sent to the createChannel() method
|
|
126
|
+
* @example
|
|
127
|
+
* ```ts
|
|
128
|
+
* const newChannelData = {
|
|
129
|
+
* "name": "MyCie internal news",
|
|
130
|
+
* "category": "Innovation",
|
|
131
|
+
* "topic": "A description of the channel's purpose",
|
|
132
|
+
* "visibility" : ChannelVisibility.MY_COMPANY
|
|
133
|
+
* "confidentiality" : ChannelConfidentiality.PRIVATE
|
|
134
|
+
* "autoProvisionning": true
|
|
135
|
+
* }
|
|
136
|
+
* createChannel(newChannelData);
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
export interface ChannelCreationData {
|
|
140
|
+
/**
|
|
141
|
+
* The channel name.
|
|
142
|
+
* It must be unique.
|
|
143
|
+
*/
|
|
144
|
+
name: string;
|
|
145
|
+
/**
|
|
146
|
+
* The channel category
|
|
147
|
+
*/
|
|
148
|
+
category?: string;
|
|
149
|
+
/**
|
|
150
|
+
* The topic of the channel.
|
|
151
|
+
*/
|
|
152
|
+
topic?: string;
|
|
153
|
+
/**
|
|
154
|
+
* The visibility of the channel, i.e. who the channel is intended for.
|
|
155
|
+
* Once the channel is created, the visibility cannot be changed.
|
|
156
|
+
// * If this property is not specified, the visibility will be set to 'MY_COMPANY'.
|
|
157
|
+
*/
|
|
158
|
+
visibility: ChannelVisibility;
|
|
159
|
+
/**
|
|
160
|
+
* In addition to the channel visibility, this allows to refine the channel's audience.
|
|
161
|
+
* Once the channel is created, the confidentiality cannot be changed.
|
|
162
|
+
// * If this property is not specified, the visibility will be set to 'PUBLIC'.
|
|
163
|
+
*/
|
|
164
|
+
confidentiality: ChannelConfidentiality;
|
|
165
|
+
/**
|
|
166
|
+
* Automatically adds all users in my company as channel members.
|
|
167
|
+
* The ability for a user to create a channel with this option enabled is subject to user right managed by the Company Administrator.
|
|
168
|
+
* The role "all_company_channels_admin" must be assigned to the user who wants to create this type of channel.
|
|
169
|
+
* Note that this option is authorized only if the channel visibility is set to 'company' and its confidentiality set to 'closed'.
|
|
170
|
+
* Default value is FALSE.
|
|
171
|
+
*/
|
|
172
|
+
addAllCompanyUsers?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Maximum number of posts to keep in the channel.
|
|
175
|
+
* The maximum value is 100 and the default is 30.
|
|
176
|
+
*/
|
|
177
|
+
maxPost?: number;
|
|
178
|
+
}
|
|
179
|
+
export interface ChannelSearchOptions {
|
|
180
|
+
/**
|
|
181
|
+
* Search on channel name, in a case-insensitive way.
|
|
182
|
+
* By default no search will be done on this field.
|
|
183
|
+
*/
|
|
184
|
+
name?: string;
|
|
185
|
+
/**
|
|
186
|
+
* Search on channel topic, in a case-insensitive
|
|
187
|
+
* By default no search will be done on this field.
|
|
188
|
+
*/
|
|
189
|
+
topic?: string;
|
|
190
|
+
/**
|
|
191
|
+
* Search for channels belonging to one of the categories specified in the list.
|
|
192
|
+
* The categories will be used in a case-sensitive way.
|
|
193
|
+
* By default all defined category will be included.
|
|
194
|
+
*/
|
|
195
|
+
category?: string[];
|
|
196
|
+
/**
|
|
197
|
+
* Search for channels that do not belong to any of the categories specified in the list.
|
|
198
|
+
* The categories will be used in a case-sensitive way.
|
|
199
|
+
* By default no category will be excluded.
|
|
200
|
+
*/
|
|
201
|
+
excludedCategory?: string[];
|
|
202
|
+
/**
|
|
203
|
+
* Search for channels to which the connected user has subscribed or not.
|
|
204
|
+
* By default all channels found will be returned regardless of the connected user's subscription status.
|
|
205
|
+
*/
|
|
206
|
+
subscribed?: boolean;
|
|
207
|
+
/**
|
|
208
|
+
* The number of results to return.
|
|
209
|
+
* Limit value must be in range [1..100]. Default value is 50.
|
|
210
|
+
* If the value is not in the authorized range, the request will be rejected and an error logged.
|
|
211
|
+
*/
|
|
212
|
+
limit?: number;
|
|
213
|
+
/**
|
|
214
|
+
* The position of the first found channel to retrieve
|
|
215
|
+
* If no offset is specified, the returned results will start from the first channel found.
|
|
216
|
+
* If the offset is greater than the total number of results, none are returned.
|
|
217
|
+
*/
|
|
218
|
+
offset?: number;
|
|
219
|
+
/**
|
|
220
|
+
* Sort the list of channels found according to a specified field.
|
|
221
|
+
* By default, the channels are sorted by channel name.
|
|
222
|
+
*/
|
|
223
|
+
sortField?: ChannelSearchSortBy;
|
|
224
|
+
/**
|
|
225
|
+
* Sort order of the list of channels found.
|
|
226
|
+
* By default, the results are sorted in ascending order.
|
|
227
|
+
*/
|
|
228
|
+
sortOrder?: ChannelSearchSortOrder;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* @internal
|
|
232
|
+
* List of data provided as the result of the 'getUsers' API.
|
|
233
|
+
*/
|
|
234
|
+
export interface ChannelGetUsersResults {
|
|
235
|
+
/**
|
|
236
|
+
* The list of users (as User model) matching the search criteria.
|
|
237
|
+
*/
|
|
238
|
+
ChannelUsers: ChannelUser[];
|
|
239
|
+
/**
|
|
240
|
+
* Total number of users who have subscribed to the channel.
|
|
241
|
+
* Warning: The value returned by the server is not always correct!
|
|
242
|
+
*/
|
|
243
|
+
total: number;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* The `ChannelService` interface defines the Rainbow SDK ChannelService API
|
|
247
|
+
*/
|
|
248
|
+
export interface ChannelService {
|
|
249
|
+
/**
|
|
250
|
+
* Maximum number of posts that can be published in a channel.
|
|
251
|
+
*/
|
|
252
|
+
readonly maxChannelPosts: number;
|
|
253
|
+
/**
|
|
254
|
+
* The aggregated channel should be seen as a mix of posts from the channels the connected user follows, in chronological order.
|
|
255
|
+
* It is available for the user as soon as the the user's company has subscribed to a dedicated offer including the channel feature.
|
|
256
|
+
* This virtual is independent of all other channels created by users.
|
|
257
|
+
* Messages are retrieved via the loadPosts(...) API
|
|
258
|
+
*/
|
|
259
|
+
aggregatedChannel: ChannelAggregated;
|
|
260
|
+
/**
|
|
261
|
+
* Subscribe to updates from the Channel service, all events are of RBEvent<ChannelServiceEvents>
|
|
262
|
+
* @param callback - The callback function that will be called when events are received
|
|
263
|
+
* @param eventNames - (optional) A list of event names that the user wants to receive when subscribing (used as filter)
|
|
264
|
+
*/
|
|
265
|
+
subscribe: (callback: (event: RBEvent<ChannelServiceEvents>) => any, eventNames?: ChannelServiceEvents | ChannelServiceEvents[]) => Subscription;
|
|
266
|
+
/**
|
|
267
|
+
* Indicates whether the Channel Service has been initialized or not.
|
|
268
|
+
* This will be the case when all general information (except messages) on the channels to which
|
|
269
|
+
* the user is subscribed is available. The same applies to the aggregated channel.
|
|
270
|
+
* @returns True if the Channel Service has been initialized; False otherwise.
|
|
271
|
+
*/
|
|
272
|
+
isInitialized: () => boolean;
|
|
273
|
+
/**
|
|
274
|
+
* Get all channels to which the user is subscribed.
|
|
275
|
+
*/
|
|
276
|
+
getChannels: () => Promise<Channel[]>;
|
|
277
|
+
/**
|
|
278
|
+
* Get a channel from its identifier.
|
|
279
|
+
* @param channelId - The channel id
|
|
280
|
+
*/
|
|
281
|
+
getChannel: (channelId: string) => Promise<Channel | undefined>;
|
|
282
|
+
/**
|
|
283
|
+
* Create a new channel.
|
|
284
|
+
* The user who created a channel will be considered to be the owner of the channel.
|
|
285
|
+
* The creation of a channel requires the user's company to subscribe to a dedicated offer including this feature.
|
|
286
|
+
* Returns a Promise with the new created channel.
|
|
287
|
+
* @param createChannelData - Channel settings that can be specified when it is created.
|
|
288
|
+
*/
|
|
289
|
+
createChannel: (createChannelData: ChannelCreationData) => Promise<Channel>;
|
|
290
|
+
/**
|
|
291
|
+
* Search for channels matching some criteria who are visible to the user i.e. all channels with a 'public'
|
|
292
|
+
* confidentiality, plus the channels with a 'private' or 'closed' confidentiality the user has a relationship
|
|
293
|
+
* with (owner, member or invited). What is visible is entirely decided by the server.
|
|
294
|
+
* At least one search criterion must be specified from options 'name', 'topic', 'category', 'excludedCategory' and 'subscribed'.
|
|
295
|
+
* You can also specify several criteria, which will be combined during the search.
|
|
296
|
+
* The way in which the list of channels found is returned can be customised: sorting according to one of the predefined fields and in the specified order.
|
|
297
|
+
* @param options - Options for refining the channels to be provided.
|
|
298
|
+
*/
|
|
299
|
+
searchChannels: (options?: ChannelSearchOptions) => Promise<Channel[]>;
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* @internal
|
|
303
|
+
*/
|
|
304
|
+
export declare class ChannelServiceRB extends Service implements ChannelService {
|
|
305
|
+
private logger;
|
|
306
|
+
private authService;
|
|
307
|
+
private xmppService;
|
|
308
|
+
private profileService;
|
|
309
|
+
private i18n;
|
|
310
|
+
private contactService;
|
|
311
|
+
private eventService;
|
|
312
|
+
private errorHelperService;
|
|
313
|
+
private portalURL;
|
|
314
|
+
private readonly _started;
|
|
315
|
+
readonly started: import("rxjs").Observable<boolean>;
|
|
316
|
+
private channels;
|
|
317
|
+
channelsList: Channel[];
|
|
318
|
+
readonly maxChannelPosts: number;
|
|
319
|
+
aggregatedChannel: ChannelAggregated;
|
|
320
|
+
private rxSubject;
|
|
321
|
+
LIST_EVENT_TYPE: {
|
|
322
|
+
ADD: number;
|
|
323
|
+
UPDATE: number;
|
|
324
|
+
REMOVE: number;
|
|
325
|
+
DELETE: number;
|
|
326
|
+
SUBSCRIBE: number;
|
|
327
|
+
UNSUBSCRIBE: number;
|
|
328
|
+
CREATE: number;
|
|
329
|
+
};
|
|
330
|
+
xmppMessageHandler: StropheHandler;
|
|
331
|
+
xmppManagementHandler: StropheHandler;
|
|
332
|
+
notificationCounter: number;
|
|
333
|
+
messageCounter: number;
|
|
334
|
+
invitationCounter: number;
|
|
335
|
+
CHANNEL_UPDATE_EVENT: string;
|
|
336
|
+
CHANNEL_NOTIFICATION_NUMBER_UPDATED: string;
|
|
337
|
+
CHANNEL_USER_SUBSCRIPTION_EVENT: string;
|
|
338
|
+
static PAGE_SIZE: number;
|
|
339
|
+
static getInstance(): ChannelServiceRB;
|
|
340
|
+
static build(): ChannelServiceRB;
|
|
341
|
+
protected constructor();
|
|
342
|
+
start(): Promise<void>;
|
|
343
|
+
stop(): Promise<void>;
|
|
344
|
+
reconnect(): Promise<void>;
|
|
345
|
+
isInitialized(): boolean;
|
|
346
|
+
private attachXMPPListeners;
|
|
347
|
+
private removeXMPPListeners;
|
|
348
|
+
private channelErrorHandler;
|
|
349
|
+
/**
|
|
350
|
+
* Allows Channel service events to be sent.
|
|
351
|
+
* Such events can be listened via channelService.subscribe() API
|
|
352
|
+
* @param name - the name of the event
|
|
353
|
+
* @param data - optionally, data associated with the event to be sent (as an object)
|
|
354
|
+
*/
|
|
355
|
+
sendEvent(name: ChannelServiceEvents, data?: any): void;
|
|
356
|
+
/**
|
|
357
|
+
* Subscribe to updates from the Channel service, all events are of RBEvent<ChannelServiceEvents>
|
|
358
|
+
* @param callback - The callback function that will be called when events are received
|
|
359
|
+
* @param eventNames - (optional) A list of event names that the user wants to receive when subscribing (used as filter)
|
|
360
|
+
*/
|
|
361
|
+
subscribe(callback: (event: RBEvent<ChannelServiceEvents>) => any, eventNames?: ChannelServiceEvents | ChannelServiceEvents[]): Subscription;
|
|
362
|
+
private onChannelMessageReceived;
|
|
363
|
+
private onChannelManagementReceived;
|
|
364
|
+
/**
|
|
365
|
+
* Handle the reception of a new message in the channel or the update of an existing one.
|
|
366
|
+
* @param item - The id of the channel for which the post has been deleted
|
|
367
|
+
*/
|
|
368
|
+
private onMessagePublished;
|
|
369
|
+
/**
|
|
370
|
+
* Remove a post from the channel following an XMPP notification
|
|
371
|
+
* @param channelId - The id of the channel for which the post has been deleted
|
|
372
|
+
* @param messageId - The id of the message
|
|
373
|
+
*/
|
|
374
|
+
private onMessageRetracted;
|
|
375
|
+
/**
|
|
376
|
+
* Update an existing message following an XMPP notification
|
|
377
|
+
* @param update - The information elements associated to the updated message
|
|
378
|
+
*/
|
|
379
|
+
private onMessageAppreciationUpdated;
|
|
380
|
+
private onAddToChannel;
|
|
381
|
+
private onUpdateToChannel;
|
|
382
|
+
/**
|
|
383
|
+
* User removed from the channel in the following scenarios
|
|
384
|
+
* - The channel owner removes the user from the
|
|
385
|
+
* whether it is still being invited or is already a member of the channel.
|
|
386
|
+
* - The user declines an invitation.
|
|
387
|
+
*/
|
|
388
|
+
private onRemovedFromChannel;
|
|
389
|
+
private onSubscribeToChannel;
|
|
390
|
+
private onUnsubscribeToChannel;
|
|
391
|
+
private onDeleteChannel;
|
|
392
|
+
private onUserSubscribeEvent;
|
|
393
|
+
private onUserUnsubscribeEvent;
|
|
394
|
+
/**
|
|
395
|
+
* Get from server all channels to which the user is subscribed or invited.
|
|
396
|
+
* Retrieved channels are put in cache.
|
|
397
|
+
* The channel service is considered initialised and therefore operational once this operation is complete.
|
|
398
|
+
* The CHANNEL_SERVICE_STARTED event is sent as notification.
|
|
399
|
+
*/
|
|
400
|
+
private getMyChannels;
|
|
401
|
+
private addChannelToCache;
|
|
402
|
+
private removeChannelFromCache;
|
|
403
|
+
/**
|
|
404
|
+
* Get a channel from internal cache only.
|
|
405
|
+
*/
|
|
406
|
+
private getChannelFromCache;
|
|
407
|
+
/**
|
|
408
|
+
* Retrieves from server messages from the aggregated channel
|
|
409
|
+
* @param maxMessages - Number of posts to retrive from this channel.
|
|
410
|
+
* @param beforeDate - The posts must be prior to the specified timestamp (ISO 8601 format)
|
|
411
|
+
* @param afterDate - The posts must occur after the specified timestamp (ISO 8601 format).
|
|
412
|
+
*/
|
|
413
|
+
private getAggregatedChannelPosts;
|
|
414
|
+
/**
|
|
415
|
+
* Get a specific message (Post) from a given channel
|
|
416
|
+
* @param channelId - The id of the channel
|
|
417
|
+
* @param messageId - The id of the message
|
|
418
|
+
*/
|
|
419
|
+
private getChannelMessage;
|
|
420
|
+
/**
|
|
421
|
+
* Get from cache a specific message (Post) from the aggregate Channel (global news feed).
|
|
422
|
+
* @param messageId - The id of the message
|
|
423
|
+
*/
|
|
424
|
+
private getAggregateChannelMessage;
|
|
425
|
+
/**
|
|
426
|
+
* Get posts from a either a specific channel or the aggregated channel.
|
|
427
|
+
* @param channel - The channel instance
|
|
428
|
+
* @param beforeDate - The posts must be prior to the specified timestamp (ISO 8601 format)
|
|
429
|
+
*/
|
|
430
|
+
private getChannelMessages;
|
|
431
|
+
/**
|
|
432
|
+
* Retrieves the 10 most recent messages from the aggregated channel.
|
|
433
|
+
* The channel has been reset, i.e. all existing messages have been deleted.
|
|
434
|
+
*/
|
|
435
|
+
private retrieveLatests;
|
|
436
|
+
/**
|
|
437
|
+
* Update of the Channel avatar
|
|
438
|
+
* @param channelId - The id of the channel for which the avatar has been updated
|
|
439
|
+
* @param avatar - The new channel avatar
|
|
440
|
+
*/
|
|
441
|
+
private onAvatarChange;
|
|
442
|
+
private updateNotificationCounter;
|
|
443
|
+
private decrementInvitationCounter;
|
|
444
|
+
private chewReceivedItems;
|
|
445
|
+
private updateChannelsList;
|
|
446
|
+
/**
|
|
447
|
+
* Update the channel general settings
|
|
448
|
+
* Only the following settings are allowed to be modified: name, category, topic, max number of posts
|
|
449
|
+
* @param channel - The channel to be updated.
|
|
450
|
+
* @param channelSettings - The settings to be updated in the channel
|
|
451
|
+
*/
|
|
452
|
+
setSettings(channel: Channel, channelSettings: ChannelSettings): Promise<Channel>;
|
|
453
|
+
/**
|
|
454
|
+
* Upload avatar to a channel and resize it to avatarSize
|
|
455
|
+
* @param channel - The channel for which the custom avatar will be set
|
|
456
|
+
* @param avatar - The image to be used as the channel's avatar
|
|
457
|
+
* @param avatarSize - The size of the image (used as width and height) of the image
|
|
458
|
+
*/
|
|
459
|
+
uploadChannelAvatar(channel: ChannelRB, avatar: any, avatarSize: number): Promise<any>;
|
|
460
|
+
/**
|
|
461
|
+
* Delete avatar of a channel
|
|
462
|
+
* @param channel - The channel for which the custom avatar will be deleted
|
|
463
|
+
*/
|
|
464
|
+
deleteChannelAvatar(channel: ChannelRB): Promise<any>;
|
|
465
|
+
/**
|
|
466
|
+
* Delete the specified channel.
|
|
467
|
+
* Only the owner of the channel can delete it.
|
|
468
|
+
* @param channel - The channel to be deleted.
|
|
469
|
+
*/
|
|
470
|
+
deleteChannel(channel: Channel): Promise<void>;
|
|
471
|
+
/**
|
|
472
|
+
* Browse channels w/o category and subscription status; sorted on given field(s).
|
|
473
|
+
* @param filter - Options for browsing channel.
|
|
474
|
+
*/
|
|
475
|
+
browseChannels(filter: any): Promise<ChannelRB[]>;
|
|
476
|
+
/**
|
|
477
|
+
* Search channel By Name
|
|
478
|
+
* @param filter - Search filter limited to a pattern associated to the name
|
|
479
|
+
*/
|
|
480
|
+
findChannels(filter: any): Promise<ChannelRB[]>;
|
|
481
|
+
/**
|
|
482
|
+
* Retrieves from the server the specified number of posts for the specified channel.
|
|
483
|
+
*/
|
|
484
|
+
loadPosts(channel: ChannelRB, nbPosts: number): Promise<ChannelPost[]>;
|
|
485
|
+
/**
|
|
486
|
+
* Retrieves from server posts from a specific channel
|
|
487
|
+
* @param maxPosts - Number of posts to retrive from this channel.
|
|
488
|
+
* @param beforeDate - The posts must be prior to the specified timestamp (ISO 8601 format)
|
|
489
|
+
* @param afterDate - The posts must occur after the specified timestamp (ISO 8601 format).
|
|
490
|
+
*/
|
|
491
|
+
getChannelPosts(channelId: string, maxPosts: number, beforeDate?: Date, afterDate?: Date): Promise<any[]>;
|
|
492
|
+
/**
|
|
493
|
+
* Searches for posts in the channel based on their publication date
|
|
494
|
+
* Please note that retrieved posts will not be considered as loaded, so NOT stored in the call posts cache.
|
|
495
|
+
*/
|
|
496
|
+
searchPosts(channel: ChannelRB, nbPosts: number, beforeDate?: Date, afterDate?: Date): Promise<ChannelPost[]>;
|
|
497
|
+
/**
|
|
498
|
+
* Publish a new post or modify an existing post in the channel
|
|
499
|
+
* @param channelId - The channel id in which the post will be added
|
|
500
|
+
* @param itemId - The message id. relevant only when modifying an existing post, empty for a new post publication.
|
|
501
|
+
* @param type - The message format (Basic, HTML, Markdown).
|
|
502
|
+
* @param message - The message text.
|
|
503
|
+
* @param title - The message title.
|
|
504
|
+
* @param images - Array of image Ids inserted in the post.
|
|
505
|
+
* @param video - A video element included in the post.
|
|
506
|
+
* @param attachments - Array of files Ids attached to the post.
|
|
507
|
+
*/
|
|
508
|
+
publishToChannel(channelId: string, itemId: string, type: string, message: string, title: string, images: any, video: any, attachments: any): Promise<any>;
|
|
509
|
+
/**
|
|
510
|
+
* Removes a post from a channel.
|
|
511
|
+
* @param channel - The channel in which the post will be removed.
|
|
512
|
+
* @param post - The message to remove.
|
|
513
|
+
*/
|
|
514
|
+
deleteChannelPost(channel: ChannelRB, post: ChannelMessage): Promise<void>;
|
|
515
|
+
getChannelNextPage(channel: any, deferLoadNextPageIndex: number, reset?: boolean): Promise<any>;
|
|
516
|
+
ackMessage(messageId: string): void;
|
|
517
|
+
/**
|
|
518
|
+
* Get the users who are members of the channel and/or users invited to join it.
|
|
519
|
+
* @param channel - The channel from which we're going to retrieve the list of users (members + invited).
|
|
520
|
+
* @param options - Options for getting channel users.
|
|
521
|
+
*/
|
|
522
|
+
getChannelUsers(channel: Channel, options: ChannelGetUsersOptions): Promise<ChannelGetUsersResults>;
|
|
523
|
+
/**
|
|
524
|
+
* Search for users matching the given name who are visible to the channel.
|
|
525
|
+
* Members and/or non-members can be returned.
|
|
526
|
+
* @param channel - The channel from which we're going to search users.
|
|
527
|
+
* @param name - The search criterion based on the user's display name.
|
|
528
|
+
* @param options - Options for refining the users to be provided.
|
|
529
|
+
*/
|
|
530
|
+
searchUsersByName(channel: Channel, name: string, options: ChannelSearchUsersOptions): Promise<ChannelUser[]>;
|
|
531
|
+
/**
|
|
532
|
+
* Update users in the channel. An update operation can be
|
|
533
|
+
* - Adding one or more users to the channel to the channel
|
|
534
|
+
* - Updating the role in the channel of one or more users.
|
|
535
|
+
* - Removing one or more user members from the channel.
|
|
536
|
+
* @param channel - The channel for which users will be modified.
|
|
537
|
+
* @param channelUsers - The users to update.
|
|
538
|
+
* @param channelUsers - The new role of the users to update.
|
|
539
|
+
* A role with the value 'none' means that a user must be removed from the channel.
|
|
540
|
+
*/
|
|
541
|
+
updateUsers(channel: ChannelRB, channelUsers: ChannelUser[], role: ChannelUserRole): Promise<any>;
|
|
542
|
+
/**
|
|
543
|
+
* Remove all users from A CHANNEL
|
|
544
|
+
* @param channelId - The channel id
|
|
545
|
+
*/
|
|
546
|
+
removeAllUsersFromChannel(channelId: string): Promise<any>;
|
|
547
|
+
/**
|
|
548
|
+
* Subscribe to a specified channel
|
|
549
|
+
* @param channel - The channel that the user wants to subscribe.
|
|
550
|
+
*/
|
|
551
|
+
subscribeToChannel(channel: ChannelRB): Promise<void>;
|
|
552
|
+
/**
|
|
553
|
+
* Unsubscribe to a specified channel
|
|
554
|
+
* @param channel - The channel that the user wants to subscribe.
|
|
555
|
+
*/
|
|
556
|
+
unsubscribeToChannel(channel: ChannelRB): Promise<void>;
|
|
557
|
+
removeUnsubscribedChannelFromCache(channelId: string): void;
|
|
558
|
+
/**
|
|
559
|
+
* Accept an invitation to join the specified channel.
|
|
560
|
+
* @param channel - The channel that the user accepts to join.
|
|
561
|
+
*/
|
|
562
|
+
acceptInvitation(channel: Channel): Promise<void>;
|
|
563
|
+
/**
|
|
564
|
+
* Decline invitation to join the specified channel.
|
|
565
|
+
* @param channel - The channel that the user declines to join.
|
|
566
|
+
*/
|
|
567
|
+
declineInvitation(channel: Channel): Promise<void>;
|
|
568
|
+
/**
|
|
569
|
+
* For Notification Center
|
|
570
|
+
*/
|
|
571
|
+
getChannelInvitations(): Channel[];
|
|
572
|
+
muteChannel(channel: ChannelRB): Promise<void>;
|
|
573
|
+
unmuteChannel(channel: ChannelRB): Promise<void>;
|
|
574
|
+
/**
|
|
575
|
+
* Update a user reaction to a post on a channel.
|
|
576
|
+
* This includes adding, updating and removing a reaction.
|
|
577
|
+
* @param channel - The channel in which the post was published.
|
|
578
|
+
* @param post - The message for which the reaction is to be changed.
|
|
579
|
+
* @param reaction - The user's new reaction.
|
|
580
|
+
*/
|
|
581
|
+
reactToPost(channel: Channel, post: ChannelMessage, reaction: ChannelPostReaction): Promise<any>;
|
|
582
|
+
getChannelMessageReactions(channelMessage: ChannelMessage, reaction: string): Promise<any[]>;
|
|
583
|
+
/**
|
|
584
|
+
* Get all user reactions or a specific reaction to the current message on the channel.
|
|
585
|
+
* @param post - The message for which the reaction is to be changed.
|
|
586
|
+
* @param reaction - Optional filter by reaction type. If no filter is specified, all reactions will be returned.
|
|
587
|
+
*/
|
|
588
|
+
getPostUserReactions(post: ChannelMessage, reaction?: ChannelPostReaction): Promise<ChannelPostUserReactions[]>;
|
|
589
|
+
addComment(channel: ChannelRB, channelMessage: ChannelMessage, message: string): Promise<void>;
|
|
590
|
+
getComments(channel: ChannelRB, channelMessage: ChannelMessage): Promise<void>;
|
|
591
|
+
incrementMessagesCounter(): void;
|
|
592
|
+
decrementMessagesCounter(): void;
|
|
593
|
+
incrementInvitationCounter(): void;
|
|
594
|
+
/**
|
|
595
|
+
* Create a new channel.
|
|
596
|
+
* The user who created a channel will be considered to be the owner of the channel.
|
|
597
|
+
* The creation of a channel requires the user's company to subscribe to a dedicated offer including this feature.
|
|
598
|
+
* Returns a Promise with the new created channel.
|
|
599
|
+
* @param createChannelData - Channel settings that can be specified when it is created.
|
|
600
|
+
*/
|
|
601
|
+
createChannel(createChannelData: ChannelCreationData): Promise<Channel>;
|
|
602
|
+
/**
|
|
603
|
+
* Get all channels to which the user is subscribed.
|
|
604
|
+
*/
|
|
605
|
+
getChannels(): Promise<Channel[]>;
|
|
606
|
+
/**
|
|
607
|
+
* Get from server a channel from its identifier.
|
|
608
|
+
* @param channelId - The channel id
|
|
609
|
+
*/
|
|
610
|
+
getChannel(channelId: string): Promise<Channel>;
|
|
611
|
+
/**
|
|
612
|
+
* Search for channels matching some criteria who are visible to the user i.e.
|
|
613
|
+
* - All Channels with a 'public' confidentiality.
|
|
614
|
+
* - Channels with confidentiality 'private' or 'closed' when the user has a relationship with them
|
|
615
|
+
* (owner, member or invited). The visibility of these channels is entirely decided by the server.
|
|
616
|
+
* The user can subscribe (if not already a member) or unsubscribe (if already a member) from the channels returned in the results,
|
|
617
|
+
* UNLESS it is the owner, or the channel confidentiality is 'closed' (members of the owner's company are
|
|
618
|
+
* subscribed automatically and cannot unsubscribe).
|
|
619
|
+
* At least one search criterion must be specified from options 'name', 'topic', 'category', 'excludedCategory' and 'subscribed'.
|
|
620
|
+
* You can also specify several criteria, which will be combined during the search.
|
|
621
|
+
* The way in which the list of channels found is returned can be customised: sorting according to one of the predefined fields and in the specified order.
|
|
622
|
+
* @param options - Options for refining the channels to be provided.
|
|
623
|
+
*/
|
|
624
|
+
searchChannels(options: ChannelSearchOptions): Promise<Channel[]>;
|
|
625
|
+
}
|
|
626
|
+
//# sourceMappingURL=channel.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channel.service.d.ts","sourceRoot":"","sources":["../../../src/services/channels/channel.service.ts"],"names":[],"mappings":"AAEA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAIzC,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAC7K,OAAO,EAAsC,SAAS,EAAE,sBAAsB,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AACtK,OAAO,KAAK,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAC;AAC9G,OAAO,EAAE,cAAc,EAAyC,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AAO9I,OAAO,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAIlE,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAKhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,WAAW,mBAAmB,CAAC;AAc5C;;;;GAIG;AACH,oBAAY,oBAAoB;IAC5B;;;OAGG;IACH,kBAAkB,uBAAuB;IAEzC;;;;;;OAMG;IACH,qCAAqC,0CAA0C;IAE/E;;;;;;OAMG;IACH,qCAAqC,0CAA0C;IAE/E;;;;;OAKG;IACH,qCAAqC,0CAA0C;IAE/E;;;;;OAKG;IACH,oBAAoB,yBAAyB;IAE7C;;;;;OAKG;IACH,uBAAuB,4BAA4B;IAGnD;;;;;OAKG;IACH,oBAAoB,yBAAyB;IAE7C;;;;;;OAMG;IACH,yBAAyB,8BAA8B;IAEvD;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AAE,SAAS,EAAE,cAAc,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IA2BpF,wBAAwB,IAAI,IAAI;IAKhC,wBAAwB,IAAI,IAAI;IAMhC,0BAA0B,IAAI,IAAI;IAazC;;;;;;OAMG;IACU,aAAa,CAAC,iBAAiB,EAAE,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC;IA6CpF;;OAEG;IACU,WAAW,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAc9C;;;OAGG;IACU,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAgC5D;;;;;;;;;;;;OAYG;IACU,cAAc,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CAgEjF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/channels/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Service } from "../../services/service";
|
|
2
|
+
export declare const CITRIX_SVC = "CitrixService";
|
|
3
|
+
export declare class CitrixService extends Service {
|
|
4
|
+
private logger;
|
|
5
|
+
private mainService;
|
|
6
|
+
private xmppService;
|
|
7
|
+
private settingsService;
|
|
8
|
+
private contactService;
|
|
9
|
+
private deviceManagementService;
|
|
10
|
+
private webrtcConfigAndUtils;
|
|
11
|
+
private centralizedService;
|
|
12
|
+
started: boolean;
|
|
13
|
+
vdiClientConnected: boolean;
|
|
14
|
+
citrixSDK: any;
|
|
15
|
+
private apiOverwrited;
|
|
16
|
+
private nativeAPIs;
|
|
17
|
+
private vendorName;
|
|
18
|
+
static getInstance(): CitrixService;
|
|
19
|
+
static build(): CitrixService;
|
|
20
|
+
protected constructor();
|
|
21
|
+
start(): Promise<void>;
|
|
22
|
+
stop(): void;
|
|
23
|
+
private initCitrixSDK;
|
|
24
|
+
private setWindowAPIs;
|
|
25
|
+
private overwriteGlobalAPIs;
|
|
26
|
+
private resetGlobalAPIs;
|
|
27
|
+
private onConnectionStateChangeEvent;
|
|
28
|
+
private updatePopoutConfiguration;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=citrix.service.d.ts.map
|