@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,426 @@
|
|
|
1
|
+
import { FileDescriptor, FileStorageType } from "../../models/common/fileDescriptor";
|
|
2
|
+
import type { BubbleRB } from "../../models/bubble.model";
|
|
3
|
+
import { FileViewer } from "../../models/common/fileViewer";
|
|
4
|
+
import type { Subscription } from "rxjs";
|
|
5
|
+
import { BehaviorSubject, Subject } from "rxjs";
|
|
6
|
+
import { FilePublicDownload } from "../../models/common/filePublicDownload";
|
|
7
|
+
import { LoggerService } from "../../services/core/logger.service";
|
|
8
|
+
import { ContactService } from "../../services/core/contact.service";
|
|
9
|
+
import { ErrorHelperService } from "../../services/utilities/errorHelper.service";
|
|
10
|
+
import type { BubbleConferenceRecap, BubbleConferenceRecapFile } from "../../models/bubbleConferenceRecap.model";
|
|
11
|
+
import { Service } from "../../services/service";
|
|
12
|
+
import type { ConversationRB } from "../../models/conversation.model";
|
|
13
|
+
import type { MessageID } from "../../models/message.model";
|
|
14
|
+
export declare const FILE_STORAGE_SVC = "FileStorageService";
|
|
15
|
+
export interface GetFilesResultInterface {
|
|
16
|
+
fileDescriptors: FileDescriptor[];
|
|
17
|
+
allReceived: boolean;
|
|
18
|
+
}
|
|
19
|
+
/** Optional viewer/owner restriction of {@link FileStorageService.searchForFilesOnServer}. */
|
|
20
|
+
export interface SearchFilesFilters {
|
|
21
|
+
viewerId?: string;
|
|
22
|
+
ownerId?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The user's quota and the consumption of its storage space.
|
|
26
|
+
*/
|
|
27
|
+
export interface ConsumptionData {
|
|
28
|
+
/**
|
|
29
|
+
* The current consumption (in bytes). If there is no limit, this data is set to undefined.
|
|
30
|
+
*/
|
|
31
|
+
currentValue: number;
|
|
32
|
+
/**
|
|
33
|
+
* The quota (in bytes) associated with the offer available to the user.
|
|
34
|
+
*/
|
|
35
|
+
maxValue: number;
|
|
36
|
+
/**
|
|
37
|
+
* The offer available to the user.
|
|
38
|
+
*/
|
|
39
|
+
feature: string;
|
|
40
|
+
/**
|
|
41
|
+
* The unit of measurement for consumption and quota information.
|
|
42
|
+
*/
|
|
43
|
+
unit: string;
|
|
44
|
+
/**
|
|
45
|
+
* Details about the current consumption (in bytes) of its storage space.
|
|
46
|
+
*/
|
|
47
|
+
details: {
|
|
48
|
+
/**
|
|
49
|
+
* Consumption of files belonging to the user, whether these files are shared or not.
|
|
50
|
+
*/
|
|
51
|
+
others: number;
|
|
52
|
+
/**
|
|
53
|
+
* Consumption of recording files belonging to the user, whether these files are shared or not.
|
|
54
|
+
*/
|
|
55
|
+
recordings: number;
|
|
56
|
+
/**
|
|
57
|
+
* Consumption of P2P call recording files (purpose `call_record`) belonging to the user.
|
|
58
|
+
*/
|
|
59
|
+
callRecording: number;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export interface TranscriptionData {
|
|
63
|
+
fileId: string;
|
|
64
|
+
transcriptionMessage: string;
|
|
65
|
+
action: string;
|
|
66
|
+
error: string;
|
|
67
|
+
}
|
|
68
|
+
export declare class FileStorageExternalStorage {
|
|
69
|
+
/**
|
|
70
|
+
* The external fileserver endpoint
|
|
71
|
+
*/
|
|
72
|
+
endPoint: string;
|
|
73
|
+
/**
|
|
74
|
+
* Set to true when the temporary token must be renewed, or not exists.
|
|
75
|
+
*/
|
|
76
|
+
authenticationNeeded: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Human readable string to identify the external storage
|
|
79
|
+
*/
|
|
80
|
+
name: string;
|
|
81
|
+
/**
|
|
82
|
+
* Human readable string to identify the external storage
|
|
83
|
+
*/
|
|
84
|
+
description: string;
|
|
85
|
+
/**
|
|
86
|
+
* Human readable string to identify the external storage
|
|
87
|
+
*/
|
|
88
|
+
type: FileStorageType;
|
|
89
|
+
}
|
|
90
|
+
export declare enum FileStorageServiceEvents {
|
|
91
|
+
/**
|
|
92
|
+
* @event RAINBOW_FILESTORAGE_NEED_POPUP
|
|
93
|
+
* @description
|
|
94
|
+
* This RB Event is send when the fileStorageService needs to open a window popup and that user has blocked the popup usage.
|
|
95
|
+
* This event is gnerally used to display an information message.
|
|
96
|
+
*/
|
|
97
|
+
RAINBOW_FILESTORAGE_NEEDS_POPUP = "RAINBOW_FILESTORAGE_NEED_POPUP",
|
|
98
|
+
ON_FILE_REMOVED_FROM_STORE_EVENT = "ON_FILE_REMOVED_FROM_STORE_EVENT",
|
|
99
|
+
ON_FILE_DESCRIPTOR_RECEIVED_EVENT = "ON_FILE_DESCRIPTOR_RECEIVED_EVENT",
|
|
100
|
+
ON_CONSUMPTION_DATA_UPDATED_EVENT = "ON_CONSUMPTION_DATA_UPDATED_EVENT",
|
|
101
|
+
ON_CONSUMPTION_DATA_WARNING_EVENT = "ON_CONSUMPTION_DATA_WARNING_EVENT",
|
|
102
|
+
ON_TRANSCRIPTION_CREATED = "ON_TRANSCRIPTION_CREATED",
|
|
103
|
+
ON_TRANSCRIPTION_SUBMITTED = "ON_TRANSCRIPTION_SUBMITTED",
|
|
104
|
+
ON_TRANSCRIPTION_ABORTED = "ON_TRANSCRIPTION_ABORTED",
|
|
105
|
+
ON_ARCHIVE_AVAILABLE = "ON_ARCHIVE_AVAILABLE",
|
|
106
|
+
ON_TRANSLATION_ABORTED = "ON_TRANSLATION_ABORTED",
|
|
107
|
+
ON_TRANSLATION_DONE = "ON_TRANSLATION_DONE"
|
|
108
|
+
}
|
|
109
|
+
export declare enum FileStorageCapabilities {
|
|
110
|
+
THUMBNAILS = "THUMBNAILS",
|
|
111
|
+
SAVE = "SAVE",
|
|
112
|
+
TRANSFERT = "TRANSFERT"
|
|
113
|
+
}
|
|
114
|
+
export declare class FileStorageService extends Service {
|
|
115
|
+
protected started: boolean;
|
|
116
|
+
protected listeners: any[];
|
|
117
|
+
protected portalURL: string;
|
|
118
|
+
protected consumptionData: ConsumptionData;
|
|
119
|
+
protected currentOrder: string;
|
|
120
|
+
protected voiceMessageFileDescriptors: FileDescriptor[];
|
|
121
|
+
protected fileDescriptors: FileDescriptor[];
|
|
122
|
+
protected receivedFileDescriptors: FileDescriptor[];
|
|
123
|
+
protected mergedFileDescriptors: FileDescriptor[];
|
|
124
|
+
protected uploadingFileDescriptors: FileDescriptor[];
|
|
125
|
+
protected externalFileDescriptors: FileDescriptor[];
|
|
126
|
+
protected contactService: ContactService;
|
|
127
|
+
protected logger: LoggerService;
|
|
128
|
+
protected errorHelperService: ErrorHelperService;
|
|
129
|
+
private eventService;
|
|
130
|
+
private mainService;
|
|
131
|
+
private profileService;
|
|
132
|
+
private xmppManagementHandler;
|
|
133
|
+
deleteFileWoConfirm: boolean;
|
|
134
|
+
fileDescriptorsSubject: Subject<any>;
|
|
135
|
+
uploadingFileDescriptorsSubject: Subject<any>;
|
|
136
|
+
private readonly fileRemovedIdsSubject;
|
|
137
|
+
protected conferenceRecordingFiles: BubbleConferenceRecap[];
|
|
138
|
+
private conferenceRecordingFileDescriptors;
|
|
139
|
+
conferenceRecordingFilesSubject: Subject<BubbleConferenceRecap[]>;
|
|
140
|
+
sharedWithMeConferenceRecordingFiles: FileDescriptor[];
|
|
141
|
+
sharedWithMeConferenceRecordingFilesSubject: Subject<FileDescriptor[]>;
|
|
142
|
+
allSentFilesLoaded: boolean;
|
|
143
|
+
allReceivedFilesLoaded: boolean;
|
|
144
|
+
private externalStorageFileDescriptors?;
|
|
145
|
+
private externalStoragePath;
|
|
146
|
+
externalStorage?: FileStorageExternalStorage;
|
|
147
|
+
private xmppService;
|
|
148
|
+
protected publicFileDownload: FilePublicDownload[];
|
|
149
|
+
publicFileDownloadSubject: Subject<any>;
|
|
150
|
+
startedSubject: BehaviorSubject<boolean>;
|
|
151
|
+
private retrieveFileDescriptorPromises;
|
|
152
|
+
private authService;
|
|
153
|
+
private fileDescriptorsForConversationResult;
|
|
154
|
+
private searchForFileDescriptorsCache;
|
|
155
|
+
private allFilesLoaded;
|
|
156
|
+
private rxSubject;
|
|
157
|
+
static getInstance(): FileStorageService;
|
|
158
|
+
static build(): FileStorageService;
|
|
159
|
+
protected constructor();
|
|
160
|
+
notifyFileRemovedFromStore(id: string): void;
|
|
161
|
+
start(fileStorageServiceConfig?: any): Promise<void>;
|
|
162
|
+
stop(): Promise<void>;
|
|
163
|
+
reinit(): Promise<void>;
|
|
164
|
+
private attachHandlers;
|
|
165
|
+
private removeHandlers;
|
|
166
|
+
/**
|
|
167
|
+
* @public
|
|
168
|
+
* @function subscribe
|
|
169
|
+
* @instance
|
|
170
|
+
* @description Subscribe to updates from the fileStorageService (all events are of RBEvent type {name: string, data:any});
|
|
171
|
+
* @param {any} handler The call-back function that will be subscribed to the RxJS subject
|
|
172
|
+
* @param {string[]} eventNames (optional) array of event to listen
|
|
173
|
+
* @returns {Subscription} Returns RxJS Subscription
|
|
174
|
+
*/
|
|
175
|
+
subscribe(handler: any, eventNames?: string | string[]): Subscription;
|
|
176
|
+
sendEvent(name: FileStorageServiceEvents, data?: any): void;
|
|
177
|
+
getLatestFilesFromServer(): Promise<void>;
|
|
178
|
+
private retrieveFilesAtStartUp;
|
|
179
|
+
removeRoomFileViewer(room: BubbleRB): void;
|
|
180
|
+
/**
|
|
181
|
+
* Method request for the list of files received by a user from a given peer (i.e. inside a given conversation)
|
|
182
|
+
* @param {string} peerId [optional] dbId of contact in the P2P conversation
|
|
183
|
+
* @param {string} roomId [required] dbId of the room
|
|
184
|
+
* @returns {Promise<FileDescriptor[]>} : list of received files descriptors
|
|
185
|
+
* @memberof FileStorageService
|
|
186
|
+
*/
|
|
187
|
+
private retrieveFilesInConversation;
|
|
188
|
+
/**
|
|
189
|
+
* Method used to search for files from the cached files based on different criteria
|
|
190
|
+
* @param {string} fileSet [optional] fileSet, could be "all", "mine", "received"; By default it's all
|
|
191
|
+
* @param {string} fileName [optional] to search by filename
|
|
192
|
+
* @param {string} typeMIME [optional] to filter by typeMIME (values allowd: image, audio-video, pdf, presentation, document, spreadsheet)
|
|
193
|
+
* @param {string} sortField [optional] sortField, could be fileName, uploadedDate or size; By default it's uploadedDate
|
|
194
|
+
* @param {number} sortOrder [optional] sortOrder, could be 1 (normal order) or -1 (reverse order); By default, it's -1
|
|
195
|
+
* @returns {Promise<GetFilesResultInterface>} Object containing the { fileDescriptors: FileDescriptor[], limit: number, offset: number }
|
|
196
|
+
* @memberof FileStorageService
|
|
197
|
+
*/
|
|
198
|
+
private searchForFilesInCache;
|
|
199
|
+
getFileDescriptorById(id: string): FileDescriptor;
|
|
200
|
+
removeFileDescriptorById(id: string): any;
|
|
201
|
+
/**
|
|
202
|
+
* Method retrieve the data usage of a given user
|
|
203
|
+
* @returns {Promise<ConsumptionData>} : object data with the following properties:
|
|
204
|
+
* - feature {String} : The feature key belonging to the user's profile
|
|
205
|
+
* - maxValue {number} : The quota associated to this offer [octet]
|
|
206
|
+
* - currentValue {number} : The user's current consumption [octet]
|
|
207
|
+
* - unit {String} : The unit of this counters
|
|
208
|
+
*/
|
|
209
|
+
retrieveUserConsumption(): Promise<ConsumptionData>;
|
|
210
|
+
/**
|
|
211
|
+
* Method request to get the files shared in a given bubble.
|
|
212
|
+
* @param bubbleId -Id of the room
|
|
213
|
+
* @returns list of received files descriptors
|
|
214
|
+
*/
|
|
215
|
+
retrieveReceivedFilesForNewRoom(bubbleId: string): Promise<void>;
|
|
216
|
+
/**
|
|
217
|
+
* Method to load more files inside a given conversation (shared or received)
|
|
218
|
+
* @param {ConversationRB} conversation the conversation where we want to get the latest 1000 files
|
|
219
|
+
* @returns {Promise<GetFilesResultInterface>} : object {fileDescriptors:FileDescriptor[], allReceived:boolean }
|
|
220
|
+
* list of files descriptors; And allReceived flag to indicate if we can "load" more files for the same conversation
|
|
221
|
+
* @memberof FileStorageService
|
|
222
|
+
*/
|
|
223
|
+
loadMoreDescriptorsForConversation(conversation: ConversationRB): Promise<GetFilesResultInterface>;
|
|
224
|
+
/**
|
|
225
|
+
* Method get the list of files inside a given conversation (shared or received) Limited to the first 1000 files;
|
|
226
|
+
* If you need more files, you should use the loadMoreDescriptorsForConversation API;
|
|
227
|
+
* @param {ConversationRB} conversation the conversation where we want to get the latest 1000 files
|
|
228
|
+
* @returns {Promise<GetFilesResultInterface>} : object {fileDescriptors:FileDescriptor[], allReceived:boolean }
|
|
229
|
+
* list of received files descriptors, limited to 1000 files; And allReceived flag to indicate if we can "load" more files for the same conversation
|
|
230
|
+
* @memberof FileStorageService
|
|
231
|
+
*/
|
|
232
|
+
getFileDescriptorsInConversation(conversation: ConversationRB): Promise<GetFilesResultInterface>;
|
|
233
|
+
/**
|
|
234
|
+
* Method used to search for files on the server based on different criteria
|
|
235
|
+
* @param {string} fileSet [optional] fileSet, could be "all", "mine", "received"; By default it's all
|
|
236
|
+
* @param {string} fileName [optional] to search by filename
|
|
237
|
+
* @param {string} typeMIME [optional] to filter by typeMIME (values allowd: image, audio-video, pdf, presentation, document, spreadsheet)
|
|
238
|
+
* @param {string} sortField [optional] sortField, could be fileName, uploadedDate or size; By default it's uploadedDate
|
|
239
|
+
* @param {number} sortOrder [optional] sortOrder, could be 1 (normal order) or -1 (reverse order); By default, it's -1
|
|
240
|
+
* @param {number} offset offset, in case of paginated result
|
|
241
|
+
* @param {SearchFilesFilters} filters [optional] restrict the search to one viewer (`viewerId`, a user or room dbId,
|
|
242
|
+
* replacing the connected user in the `viewers/{id}` path) and/or one owner (`ownerId`). Bypasses the local cache.
|
|
243
|
+
* @returns {Promise<GetFilesResultInterface>} Object containing the { fileDescriptors: FileDescriptor[], limit: number, offset: number }
|
|
244
|
+
* @memberof FileStorageService
|
|
245
|
+
*/
|
|
246
|
+
searchForFilesOnServer(fileSet?: string, fileName?: string, typeMIME?: string, sortField?: string, sortOrder?: number, offset?: number, force?: boolean, onlyInternal?: boolean, filters?: SearchFilesFilters): Promise<GetFilesResultInterface>;
|
|
247
|
+
/**
|
|
248
|
+
* Method used to search for files on the server based on different criteria
|
|
249
|
+
* @param {string} fileSet [optional] fileSet, could be "all", "mine", "received"; By default it's all
|
|
250
|
+
* @returns {GetFilesResultInterface} Object containing the { fileDescriptors: FileDescriptor[], allReceived: boolean }
|
|
251
|
+
* @memberof FileStorageService
|
|
252
|
+
*/
|
|
253
|
+
getConsumptionData(): ConsumptionData;
|
|
254
|
+
getVoiceMessageFileDescriptorByMsgId(msgId: string): FileDescriptor;
|
|
255
|
+
/**
|
|
256
|
+
* Method requests server to create a file descriptor this will be saved to local file descriptor list (i.e. this.fileDescriptors)
|
|
257
|
+
* @param {File} file [required] file for which file descriptor has to be created
|
|
258
|
+
* @param {FileViewer[]} viewers [required] list of viewers having access to the file (a viewer could be either be a user or a room)
|
|
259
|
+
* @returns {Promise<FileDescriptor>} file descriptor created by server or error
|
|
260
|
+
* @memberof FileStorageService
|
|
261
|
+
*/
|
|
262
|
+
createFileDescriptor(file: File, viewers?: FileViewer[], voiceMessageData?: any, ccarelogs?: boolean, ccareclientlogs?: boolean, recordingMetadata?: {
|
|
263
|
+
callRecord?: boolean;
|
|
264
|
+
callId?: string;
|
|
265
|
+
calledUserId?: string;
|
|
266
|
+
calledDisplayName?: string;
|
|
267
|
+
callDate?: string;
|
|
268
|
+
startCallRecordDate?: string;
|
|
269
|
+
endCallRecordDate?: string;
|
|
270
|
+
totalPauseDuration?: number;
|
|
271
|
+
}): Promise<FileDescriptor>;
|
|
272
|
+
/**
|
|
273
|
+
* Reads the original pixel dimensions of an image or video file without uploading it.
|
|
274
|
+
* Uses `createImageBitmap` for images and a temporary `<video>` element for videos.
|
|
275
|
+
* Returns `{ original_w: 0, original_h: 0 }` for all other file types.
|
|
276
|
+
*
|
|
277
|
+
* @remarks These dimensions reflect the `File` actually passed in — i.e. the file
|
|
278
|
+
* that gets uploaded — not necessarily the file the user originally selected.
|
|
279
|
+
* Some flows (e.g. channel post attachment in `channelItemEdit.onAttachNewImage`)
|
|
280
|
+
* resize the image into a 1920×1080 box before calling this. There, the returned
|
|
281
|
+
* values are the post-resize dimensions, which is correct.
|
|
282
|
+
* The chat flow uploads the source file untouched, so the values match the original.
|
|
283
|
+
*
|
|
284
|
+
* @param file - The file to inspect.
|
|
285
|
+
* @returns Pixel width and height of the media, or zeros if not applicable.
|
|
286
|
+
*/
|
|
287
|
+
private getMediaDimensions;
|
|
288
|
+
private createFileDescriptorInternal;
|
|
289
|
+
private createFileDescriptorFromData;
|
|
290
|
+
/**
|
|
291
|
+
* Method to delete a given File Descriptor from the server. Only usable for the FD owned by the user;
|
|
292
|
+
* @param {string} id [required] fthe File Descriptor id to be deleted from the server
|
|
293
|
+
* @returns {Promise<void>} Resovle once done
|
|
294
|
+
* @memberof FileStorageService
|
|
295
|
+
*/
|
|
296
|
+
deleteFileDescriptor(id: string): Promise<void>;
|
|
297
|
+
private deleteAllFilesDescriptorsFromCache;
|
|
298
|
+
/**
|
|
299
|
+
* Method to delete all File Descriptor that belong to the user from the server.
|
|
300
|
+
* @returns {Promise<void>} Resolve once done
|
|
301
|
+
* @memberof FileStorageService
|
|
302
|
+
*/
|
|
303
|
+
deleteAllFileDescriptor(): Promise<void>;
|
|
304
|
+
/**
|
|
305
|
+
* Method retrieve full list of files belonging to user making the request
|
|
306
|
+
* @returns {Promise<FileDescriptor[]>} return
|
|
307
|
+
* @memberof FileStorageService
|
|
308
|
+
*/
|
|
309
|
+
retrieveVoiceMessageFileDescriptorsListPerOwner(): Promise<FileDescriptor[]>;
|
|
310
|
+
/**
|
|
311
|
+
* Method deletes a viewer from the list of viewer of a given file
|
|
312
|
+
* @param {string} viewerId [required] Identifier of viewer to be removed. Could be either a user or a room
|
|
313
|
+
* @param {string} fileId [required] Identifier of the fileDescriptor from which the viewer will be removed
|
|
314
|
+
* @returns {Promise<FileDescriptor>} return
|
|
315
|
+
* @memberof FileStorageService
|
|
316
|
+
*/
|
|
317
|
+
deleteFileViewer(viewerId: string, fileId: string): Promise<FileDescriptor>;
|
|
318
|
+
/**
|
|
319
|
+
* Method adds a viewer to a given file on server if it is not already one
|
|
320
|
+
* @param {string} fileId [required] Identifier of file
|
|
321
|
+
* @param {string} viewerId [required] Identifier of viewer to be added
|
|
322
|
+
* @param {string} type [required] type of viewer to be added (user or room)
|
|
323
|
+
* @returns {Promise<FileDescriptor>} file descriptor with newly added viewer
|
|
324
|
+
* @memberof FileStorageService
|
|
325
|
+
*/
|
|
326
|
+
addFileViewer(fileId: string, viewerId: string, type: string): Promise<FileDescriptor>;
|
|
327
|
+
/**
|
|
328
|
+
* This method is used to copy the file to user personal storage
|
|
329
|
+
* @param {string} fileId [required] Identifier of file descriptor to copy
|
|
330
|
+
* @returns {Promise<FileDescriptor>} file descriptor retrieved
|
|
331
|
+
* @memberof FileStorageService
|
|
332
|
+
*/
|
|
333
|
+
copyFileToUserCloudStorage(fileId: string): Promise<FileDescriptor>;
|
|
334
|
+
/**
|
|
335
|
+
* Method retrieve a specific file descriptor from server
|
|
336
|
+
* @param {string} fileId [required] Identifier of file descriptor to retrieve
|
|
337
|
+
* @returns {Promise<FileDescriptor>} file descriptor retrieved
|
|
338
|
+
* @memberof FileStorageService
|
|
339
|
+
*/
|
|
340
|
+
retrieveOneFileDescriptor(fileId: string): Promise<FileDescriptor>;
|
|
341
|
+
/**
|
|
342
|
+
* Method retrieve a specific file descriptor from server and stores it in local fileDescriptors (replace existing and add if new)
|
|
343
|
+
* @param {string} fileId [required] Identifier of file descriptor to retrieve
|
|
344
|
+
* @returns {Promise<FileDescriptor>} file descriptor retrieved or null if none found
|
|
345
|
+
* @memberof FileStorageService
|
|
346
|
+
*/
|
|
347
|
+
retrieveAndStoreOneFileDescriptor(fileId: string, forceRetrieve?: boolean): Promise<FileDescriptor>;
|
|
348
|
+
/** ********************************************************/
|
|
349
|
+
/** Utilities */
|
|
350
|
+
/** ********************************************************/
|
|
351
|
+
deleteFileDescriptorFromCache(id: string): void;
|
|
352
|
+
notifyFileRemoved(id: string): void;
|
|
353
|
+
extractFileIdFromUrl(url: string): string;
|
|
354
|
+
retrieveAndStoreOneVoiceMessageFileDescriptor(fileId: string): void;
|
|
355
|
+
deleteVoiceMessageFileDescriptor(fileId: any): void;
|
|
356
|
+
updateAFileDescriptorLocally(fileDesc: FileDescriptor): void;
|
|
357
|
+
removeRecordFromRecordingFile(deletedFileId: string, recordingFileId: string): void;
|
|
358
|
+
getPublicFileDownloads(): FilePublicDownload[];
|
|
359
|
+
clearPublicFileDownloads(): void;
|
|
360
|
+
findPublicFileDownload(fileUrl: string): FilePublicDownload;
|
|
361
|
+
updatePublicFileDownloadArray(filesPublicDownload: [], fileSystem: any): void;
|
|
362
|
+
getUploadingFilesSize(): number;
|
|
363
|
+
removeUploadingFileFromId(fileId: string): void;
|
|
364
|
+
removeUploadingFileDescriptor(fileDesc: FileDescriptor): void;
|
|
365
|
+
isEnoughAvailableSpaceForFiles(filesToSend: any[]): boolean;
|
|
366
|
+
isEnoughAvailableSpaceForFileDescriptor(fileId: string, fileViewers: any): boolean;
|
|
367
|
+
stopAllFileTransfer(): void;
|
|
368
|
+
getMimeInfo(mimeType: string): any;
|
|
369
|
+
removePublicFileDownload(file: FilePublicDownload): void;
|
|
370
|
+
getRecordingFileAvatar(recordingFileId: string): Promise<string>;
|
|
371
|
+
getRecordingFiles(): BubbleConferenceRecap[];
|
|
372
|
+
getRecordingFilesFromServer(): Promise<BubbleConferenceRecap[]>;
|
|
373
|
+
refreshConferenceRecapFromServcer(recap: BubbleConferenceRecap): Promise<void>;
|
|
374
|
+
getSharedWithMeConferenceRecordingFiles(): FileDescriptor[];
|
|
375
|
+
getConferenceRecordingFileById(fileId: string): FileDescriptor;
|
|
376
|
+
getSharedWithMeConferenceRecordingFilesFromServer(): Promise<FileDescriptor[]>;
|
|
377
|
+
deleteConferenceRecordingFile(conferenceRecordingFileId: string): Promise<BubbleConferenceRecap[]>;
|
|
378
|
+
/**
|
|
379
|
+
*
|
|
380
|
+
* For a meeting a transcription may be wanted beside or not a meeting recording. For green washing need or other needs, the meeting organiser car choose whether the transcription is permanent or ephemeral. When ephemeral, the transcription is available during 15 days.
|
|
381
|
+
* The aim of this API is to change the status of the recording via the boolean isEphemeral
|
|
382
|
+
false : A meeting record and eventually its transcription and its summary are always available until the recording is deleted.
|
|
383
|
+
true : After 15 days after the end of the conference, the meeting record is deleted. That is to say only the transcription and the summary will remain. The date timeToLiveDate is taken in account to schedule a cleaning task.
|
|
384
|
+
*/
|
|
385
|
+
changeConferenceRecapEphemeral(conferenceRecordingFile: BubbleConferenceRecap, isEphemeral: boolean): Promise<void>;
|
|
386
|
+
changeConferenceRecordingName(conferenceRecordingFile: BubbleConferenceRecap, recordingName: string): Promise<void>;
|
|
387
|
+
getConferenceRecordingAssociatedFiles(conferenceRecordingFile: BubbleConferenceRecap): Promise<FileDescriptor[]>;
|
|
388
|
+
authenticateExternalStorage(): Promise<any>;
|
|
389
|
+
logoutExternalStorage(): Promise<void>;
|
|
390
|
+
/**
|
|
391
|
+
* @function searchForFilesOnExternalStorage
|
|
392
|
+
* @description Method used to search for files on the external storage server based on different criteria
|
|
393
|
+
* Note that this method only returns my own files
|
|
394
|
+
* @param {string} path define the directory to search from
|
|
395
|
+
* @returns {Promise<FileDescriptor>} Object containing the { fileDescriptors: FileDescriptor[], limit: number, offset: number }
|
|
396
|
+
* @memberof FileStorageService
|
|
397
|
+
*/
|
|
398
|
+
searchForFilesOnExternalStorage(path?: string, sortedBy?: string, sortDirection?: string, filterBy?: string, filterValue?: string, force?: boolean): Promise<GetFilesResultInterface>;
|
|
399
|
+
shareExternalStorageFiles(path: string, basename: string, fileId: string, viewerId: string, type: string): Promise<FileDescriptor>;
|
|
400
|
+
createExternalStorageSharingSpace(bubble: BubbleRB): Promise<void>;
|
|
401
|
+
getExternalStorageSharingSpaceUrl(bubble: BubbleRB): Promise<void>;
|
|
402
|
+
createZipFromFiles(archiveName: string, files?: FileDescriptor[] | BubbleConferenceRecapFile[]): Promise<any>;
|
|
403
|
+
/**
|
|
404
|
+
* Builds a downloadable archive of a P2P call recording via the dedicated call_record endpoint. Unlike the
|
|
405
|
+
* generic files archive, the server bundles the audio together with its transcript/summary variants. Returns
|
|
406
|
+
* the archive file descriptor id to await through the ON_ARCHIVE_AVAILABLE event.
|
|
407
|
+
*/
|
|
408
|
+
createCallRecordArchive(callRecordId: string, archiveName: string): Promise<any>;
|
|
409
|
+
getAudioFileTranscription(messageFileId: string, messageId?: MessageID, conversation?: ConversationRB, roomId?: string): Promise<void>;
|
|
410
|
+
addViewerToConferenceRecording(recap: BubbleConferenceRecap, dbId: string, type: string): Promise<void>;
|
|
411
|
+
removeViewerToConferenceRecording(recap: BubbleConferenceRecap, dbId: string): Promise<void>;
|
|
412
|
+
/**
|
|
413
|
+
* This method is used to translate the file
|
|
414
|
+
* @param {string} fileId [required] Identifier of file descriptor to translate
|
|
415
|
+
* @param {string} lang [required] translation language
|
|
416
|
+
* @returns {Promise<FileDescriptor>} file descriptor retrieved
|
|
417
|
+
* @memberof FileStorageService
|
|
418
|
+
*/
|
|
419
|
+
translateFile(fileId: string, lang: string): Promise<void>;
|
|
420
|
+
/**
|
|
421
|
+
* Management of XMPP management message
|
|
422
|
+
* @param stanza - The received stanza.
|
|
423
|
+
*/
|
|
424
|
+
private onManagementMessageReceived;
|
|
425
|
+
}
|
|
426
|
+
//# sourceMappingURL=fileStorage.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fileStorage.service.d.ts","sourceRoot":"","sources":["../../../src/services/files/fileStorage.service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAa,eAAe,EAAE,MAAM,mDAAmD,CAAC;AAC/G,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,OAAO,EAAsB,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uDAAuD,CAAC;AAG3F,OAAO,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AAGpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,6DAA6D,CAAC;AACjG,OAAO,KAAK,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AAEhI,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAOrF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE5D,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AAErD,MA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GAAG,OAAO,CAAC,IAAI,CAAC;IAgBvE;;;OAGG;YACW,2BAA2B;CAgC5C"}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { BehaviorSubject } from "rxjs";
|
|
2
|
+
import { Service } from "../../services/service";
|
|
3
|
+
/**
|
|
4
|
+
* SUBTITLES STRUCTURE :
|
|
5
|
+
* - video id (e.g. '4')
|
|
6
|
+
* - - video language ('en', 'fr'...)
|
|
7
|
+
* - - - subtitle files ('en.vtt', 'fr.vtt', 'es.vtt'...)
|
|
8
|
+
*
|
|
9
|
+
* The 'videoId' is defined in the article's labels in the HelpCenter and converted to a Chapter's parameter in the Back-End
|
|
10
|
+
* The 'video language' refers to language used in the audio of the video. Videos might be translated to multiple languages (French, German...). The default language is English. This is based on the article's locale.
|
|
11
|
+
* The 'subtitle files' are all the Subtitle files generated for a given language.
|
|
12
|
+
*
|
|
13
|
+
* If we have a video in English and French, we will have this structure:
|
|
14
|
+
* - 4
|
|
15
|
+
* - - en
|
|
16
|
+
* - - - en.vtt (used as captions)
|
|
17
|
+
* - - - fr.vtt
|
|
18
|
+
* - - - es.vtt
|
|
19
|
+
* - - - *.vtt
|
|
20
|
+
* - - fr
|
|
21
|
+
* - - - en.vtt
|
|
22
|
+
* - - - fr.vtt (used as captions)
|
|
23
|
+
* - - - es.vtt
|
|
24
|
+
* - - - *.vtt
|
|
25
|
+
*/
|
|
26
|
+
interface Subtitle {
|
|
27
|
+
/** Label of the language used based on supported languages' label (e.g. "English", "Français"...) */
|
|
28
|
+
label: string;
|
|
29
|
+
/** Language code of the subtitles ("en", "fr"...) */
|
|
30
|
+
language: string;
|
|
31
|
+
/** Subtitles file */
|
|
32
|
+
blob: Blob;
|
|
33
|
+
}
|
|
34
|
+
export interface Course {
|
|
35
|
+
zendeskId: string;
|
|
36
|
+
completedChapters: number;
|
|
37
|
+
availableChapters: number;
|
|
38
|
+
/** Computed client-side as Math.round((completedChapters / availableChapters) * 100) */
|
|
39
|
+
completionPercentage: number;
|
|
40
|
+
name?: string;
|
|
41
|
+
description?: string;
|
|
42
|
+
thumbnailSmallUrl?: string;
|
|
43
|
+
thumbnailMediumUrl?: string;
|
|
44
|
+
thumbnailBigUrl?: string;
|
|
45
|
+
/** 1 = beginner, 2 = intermediate, 3 = expert */
|
|
46
|
+
difficulty?: 1 | 2 | 3;
|
|
47
|
+
device?: string;
|
|
48
|
+
/** Loaded lazily by getFilteredModulesAndChaptersFromCourseId */
|
|
49
|
+
modules?: Module[];
|
|
50
|
+
/** Present on new-content courses returned by /courses/new */
|
|
51
|
+
newCourse?: boolean;
|
|
52
|
+
newVideoIds?: string[];
|
|
53
|
+
newVideoZendeskIds?: string[];
|
|
54
|
+
/** Present on new-content stubs built from /chapters/new when no matching course exists */
|
|
55
|
+
courseId?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface Chapter {
|
|
58
|
+
id: string;
|
|
59
|
+
videoId: string;
|
|
60
|
+
moduleId: string;
|
|
61
|
+
locale: string;
|
|
62
|
+
zendeskId: string;
|
|
63
|
+
courseId: string;
|
|
64
|
+
name: string;
|
|
65
|
+
duration: number;
|
|
66
|
+
body: string;
|
|
67
|
+
/** Set client-side after checking userCompletions */
|
|
68
|
+
completed?: boolean;
|
|
69
|
+
/** Set client-side: formatted duration in minutes */
|
|
70
|
+
minutes?: string;
|
|
71
|
+
[key: string]: any;
|
|
72
|
+
}
|
|
73
|
+
export interface Module {
|
|
74
|
+
name: string;
|
|
75
|
+
chapters: Chapter[];
|
|
76
|
+
[key: string]: any;
|
|
77
|
+
}
|
|
78
|
+
export interface KnowledgeArticle {
|
|
79
|
+
name: string;
|
|
80
|
+
labelNames: string[];
|
|
81
|
+
[key: string]: any;
|
|
82
|
+
}
|
|
83
|
+
export interface KnowledgeSection {
|
|
84
|
+
name: string;
|
|
85
|
+
articles: KnowledgeArticle[];
|
|
86
|
+
[key: string]: any;
|
|
87
|
+
}
|
|
88
|
+
export interface Completion {
|
|
89
|
+
videoId: string;
|
|
90
|
+
userId: string;
|
|
91
|
+
companyId: string;
|
|
92
|
+
moduleId: string;
|
|
93
|
+
courseId: string;
|
|
94
|
+
locale: string;
|
|
95
|
+
chapterMongoId: string;
|
|
96
|
+
[key: string]: any;
|
|
97
|
+
}
|
|
98
|
+
export interface Article {
|
|
99
|
+
name: string;
|
|
100
|
+
locale: string;
|
|
101
|
+
/** Zendesk label slugs used to filter carousel content (e.g. "carousel_welcome", "carousel_teams"...) */
|
|
102
|
+
labels: string[];
|
|
103
|
+
body: string;
|
|
104
|
+
[key: string]: any;
|
|
105
|
+
}
|
|
106
|
+
export declare const HELP_CENTER_SVC = "HelpCenterService";
|
|
107
|
+
export declare class HelpCenterService extends Service {
|
|
108
|
+
private readonly logger;
|
|
109
|
+
private readonly profileService;
|
|
110
|
+
private readonly authService;
|
|
111
|
+
private readonly xmppService;
|
|
112
|
+
private readonly settingsService;
|
|
113
|
+
private readonly errorHelperService;
|
|
114
|
+
private readonly mainService;
|
|
115
|
+
private readonly subscriptionService;
|
|
116
|
+
private get connectedUser();
|
|
117
|
+
private get connectedUserLanguage();
|
|
118
|
+
private started;
|
|
119
|
+
private xmppSubscription;
|
|
120
|
+
private subscriptions;
|
|
121
|
+
readonly portalName: string;
|
|
122
|
+
private readonly usingRainbowSectionId;
|
|
123
|
+
private readonly welcomeModuleId;
|
|
124
|
+
private userLicences;
|
|
125
|
+
private userFeatures;
|
|
126
|
+
private courseFeatures;
|
|
127
|
+
private coursesData;
|
|
128
|
+
private welcomeArticles;
|
|
129
|
+
private userCompletions;
|
|
130
|
+
private newCourses;
|
|
131
|
+
private newChapters;
|
|
132
|
+
private videos;
|
|
133
|
+
readonly newContent: BehaviorSubject<boolean>;
|
|
134
|
+
readonly newContentData: BehaviorSubject<Course[]>;
|
|
135
|
+
readonly filteredCarouselArticles: BehaviorSubject<Article[]>;
|
|
136
|
+
static getInstance(): HelpCenterService;
|
|
137
|
+
static build(): HelpCenterService;
|
|
138
|
+
private constructor();
|
|
139
|
+
start(): Promise<void>;
|
|
140
|
+
stop(): Promise<void>;
|
|
141
|
+
isHelpCenterAvailable(): boolean;
|
|
142
|
+
getAllCourses(): Promise<Course[]>;
|
|
143
|
+
getFilteredModulesAndChaptersFromCourseId(courseId: string): Promise<Module[]>;
|
|
144
|
+
private getNewContent;
|
|
145
|
+
private getNewCourses;
|
|
146
|
+
private getNewChapters;
|
|
147
|
+
getNewChaptersIds(courseId: string): string[];
|
|
148
|
+
getNewContentData(): Promise<{
|
|
149
|
+
newCourses: Course[];
|
|
150
|
+
newChapters: {
|
|
151
|
+
courseId: string;
|
|
152
|
+
chapters: Chapter[];
|
|
153
|
+
}[];
|
|
154
|
+
}>;
|
|
155
|
+
updateNewContent(videoId: string, courseId: string): void;
|
|
156
|
+
private updateLocale;
|
|
157
|
+
/**
|
|
158
|
+
* Rebuilds the course catalogue after a subscription change, the features deciding what the
|
|
159
|
+
* user is entitled to having just moved — a webinar offer bought mid-session adds its course,
|
|
160
|
+
* a collaboration one the rest of the catalogue.
|
|
161
|
+
*
|
|
162
|
+
* The course being watched is left alone: unlike a language change, the identifiers stay
|
|
163
|
+
* valid, so a video in progress is not dropped over an offer bought in another tab.
|
|
164
|
+
*/
|
|
165
|
+
private updateSubscribedContent;
|
|
166
|
+
getUserCompletions(): Promise<Completion[]>;
|
|
167
|
+
updateCompletion(video: Chapter, courseId: string): Promise<Completion[]>;
|
|
168
|
+
private updateCarouselContent;
|
|
169
|
+
getUsingRainbow(): Promise<KnowledgeSection[]>;
|
|
170
|
+
getWelcomeArticles(): Promise<void>;
|
|
171
|
+
getSubtitlesOfVideo(videoId: string | number, srcLang: string): Promise<Subtitle[]>;
|
|
172
|
+
/**
|
|
173
|
+
* The label the backend files webinar training under.
|
|
174
|
+
*
|
|
175
|
+
* Points at the Teams content while no webinar course exists yet: a webinar-only account must
|
|
176
|
+
* be shown one course rather than the whole collaboration catalogue it cannot use. Swap this
|
|
177
|
+
* for the real label once the webinar course is published — nothing else changes.
|
|
178
|
+
*/
|
|
179
|
+
private static readonly WEBINAR_COURSE_FEATURE;
|
|
180
|
+
/**
|
|
181
|
+
* The features filtering the courses and the new-content notices.
|
|
182
|
+
*
|
|
183
|
+
* Webinar training is not reached by any capability flag: no feature stands for it, so a
|
|
184
|
+
* company holding a webinar offer would never be shown its course. The label is therefore
|
|
185
|
+
* added here whenever the company subscribes webinars, and a company sold webinars alone is
|
|
186
|
+
* narrowed to that label, the collaboration catalogue having nothing to teach it.
|
|
187
|
+
*
|
|
188
|
+
* Whether the company subscribes is read off the subscriptions rather than the per-user
|
|
189
|
+
* capability flags: those stay on for a webinar-only company, saying what a member may do
|
|
190
|
+
* rather than what the company bought.
|
|
191
|
+
*
|
|
192
|
+
* Both adjustments are confined to a company granted the webinar trial, the webinar course
|
|
193
|
+
* being what that trial came in with. A company sold through the regular Business Partner
|
|
194
|
+
* channel is trained by its partner, and narrowing it to the single webinar label would strip
|
|
195
|
+
* a catalogue it was legitimately sold. Read off the company's `freemiumTypes`, which the
|
|
196
|
+
* backend never clears: the course is kept once the trial has run out and after the company
|
|
197
|
+
* has bought the offer, unlike anything read from the current subscriptions.
|
|
198
|
+
*
|
|
199
|
+
* Separate from {@link getUserFeatures}: the knowledge base keeps the plain list, so an
|
|
200
|
+
* account shown one course still gets the whole help.
|
|
201
|
+
*/
|
|
202
|
+
private getCourseFeatures;
|
|
203
|
+
private getUserFeatures;
|
|
204
|
+
private getUserLicences;
|
|
205
|
+
}
|
|
206
|
+
export {};
|
|
207
|
+
//# sourceMappingURL=helpCenter.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpCenter.service.d.ts","sourceRoot":"","sources":["../../../src/services/helpcenter/helpCenter.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAGvC,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAahE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,UAAU,QAAQ;IACd,q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AyC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;YAmB7E,aAAa;YAyBb,aAAa;YAcb,cAAc;IAcrB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE;IAUvC,iBAAiB,IAAI,OAAO,CAAC;QAAE,UAAU,EAAE,MAAM,EAAE,CAAC;QAAC,WAAW,EAAE;YAAE,QAAQ,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,OAAO,EAAE,CAAC;SAAE,EAAE,CAAC;KAAE,CAAC;IAsCxH,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;YAuBlD,YAAY;IAgB1B;;;;;;;OAOG;YACW,uBAAuB;IAWxB,kBAAkB,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAkB3C,gBAAgB,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IA+CtF,OAAO,CAAC,qBAAqB;IAchB,eAAe,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAe9C,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;IAgEnC,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IA+BhG;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,sBAAsB,CAAqB;IAEnE;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,OAAO,CAAC,iBAAiB;IAgBzB,OAAO,CAAC,eAAe;IA8BvB,OAAO,CAAC,eAAe;CAa1B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { HELP_CENTER_SVC, HelpCenterService } from "./helpCenter.service";
|
|
2
|
+
export type { Article, Chapter, Completion, Course, KnowledgeArticle, KnowledgeSection, Module } from "./helpCenter.service";
|
|
3
|
+
export { WHATS_NEW_SVC, WhatsNewService } from "./whatsNew.service";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|