@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,229 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module FileDocuments
|
|
3
|
+
*/
|
|
4
|
+
import { Service } from "../../services/service";
|
|
5
|
+
import type { Bubble } from "../../models/bubble.model";
|
|
6
|
+
import type { User } from "../../models/user.model";
|
|
7
|
+
import { RBEvent } from "../../models/event.model";
|
|
8
|
+
import type { Conversation } from "../../models/conversation.model";
|
|
9
|
+
import type { ConsumptionData } from "../files/fileStorage.service";
|
|
10
|
+
import type { FileDescriptor } from "../../models/common/fileDescriptor";
|
|
11
|
+
import type { Subscription } from "rxjs";
|
|
12
|
+
import type { FileDocument, FileDocumentExternalSearchOptions, FileDocumentExternalStorage, FileDocumentSearchOptions } from "../../models/fileDocument.model";
|
|
13
|
+
import { FileDocumentRB } from "../../models/fileDocument.model";
|
|
14
|
+
export declare enum FileDocumentCapabilities {
|
|
15
|
+
THUMBNAILS = "THUMBNAILS",
|
|
16
|
+
SAVE = "SAVE",
|
|
17
|
+
TRANSFERT = "TRANSFERT"
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare const FILEDOCUMENT_SVC = "FileDocumentService";
|
|
23
|
+
/**
|
|
24
|
+
* @eventProperty
|
|
25
|
+
* Events fired by the DocumentsService
|
|
26
|
+
*/
|
|
27
|
+
export declare enum FileDocumentServiceEvents {
|
|
28
|
+
/**
|
|
29
|
+
* @eventProperty
|
|
30
|
+
* This event is fired when a fileDocument is added in the storage
|
|
31
|
+
*/
|
|
32
|
+
ON_FILE_DOCUMENT_UPLOADED = "ON_FILE_DOCUMENT_UPLOADED",
|
|
33
|
+
/**
|
|
34
|
+
* @eventProperty
|
|
35
|
+
* This event is fired when a fileDocument is updated (state change or viewer added/removed) in the storage
|
|
36
|
+
*/
|
|
37
|
+
ON_FILE_DOCUMENT_UPDATED = "ON_FILE_DOCUMENT_UPDATED",
|
|
38
|
+
/**
|
|
39
|
+
* @eventProperty
|
|
40
|
+
* This event is fired when a fileDocument is removed from the storage
|
|
41
|
+
*/
|
|
42
|
+
ON_FILE_DOCUMENT_REMOVED = "ON_FILE_DOCUMENT_REMOVED",
|
|
43
|
+
/**
|
|
44
|
+
* @eventProperty
|
|
45
|
+
* This event is fired when fileDocument storage consumption is updated
|
|
46
|
+
*/
|
|
47
|
+
ON_CONSUMPTION_UPDATED = "ON_CONSUMPTION_UPDATED",
|
|
48
|
+
/**
|
|
49
|
+
* @eventProperty
|
|
50
|
+
* This event is fired when fileDocument storage usage exceeds 90%.
|
|
51
|
+
*/
|
|
52
|
+
ON_CONSUMPTION_WARNING = "ON_CONSUMPTION_WARNING",
|
|
53
|
+
/**
|
|
54
|
+
* @eventProperty
|
|
55
|
+
* This event is fired when the content of the document is modified
|
|
56
|
+
*/
|
|
57
|
+
ON_FILE_DOCUMENT_CONTENT_MODIFIED = "ON_FILE_DOCUMENT_CONTENT_MODIFIED"
|
|
58
|
+
}
|
|
59
|
+
export interface FileDocumentConsumptionData extends ConsumptionData {
|
|
60
|
+
/** @internal */
|
|
61
|
+
option?: any;
|
|
62
|
+
}
|
|
63
|
+
export interface FileDocumentService {
|
|
64
|
+
/**
|
|
65
|
+
* This property contains the current usage status of your fileDocument storage.
|
|
66
|
+
*/
|
|
67
|
+
consumption?: FileDocumentConsumptionData;
|
|
68
|
+
/**
|
|
69
|
+
* Subscribe to updates from the service (all events are of RBEvent);
|
|
70
|
+
* @param handler - The call-back function that will be subscribed to the RxJS subject
|
|
71
|
+
* @param eventNames - array of event to listen
|
|
72
|
+
*/
|
|
73
|
+
subscribe: (handler: (event: RBEvent<FileDocumentServiceEvents>) => any, eventNames?: FileDocumentServiceEvents | FileDocumentServiceEvents[]) => Subscription;
|
|
74
|
+
/**
|
|
75
|
+
* This factory allows to create Document instance from a JavaScript File
|
|
76
|
+
* @param file - the JavaScript file to manage
|
|
77
|
+
* @throws an RBError (ex: RBErrorCode.STORAGE_NOT_ENOUGH_SPACE_AVAILABLE)
|
|
78
|
+
*/
|
|
79
|
+
createFileDocument: (file: File) => Promise<FileDocument>;
|
|
80
|
+
/**
|
|
81
|
+
* This method allows to replace the document content.
|
|
82
|
+
* @param document - The file descriptor object.
|
|
83
|
+
* @param data - the content blob
|
|
84
|
+
*/
|
|
85
|
+
replaceFileDocumentContent: (document: FileDocument, data: Blob) => void;
|
|
86
|
+
/**
|
|
87
|
+
* This method allows you to search for fileDocuments in your fileDocument storage.
|
|
88
|
+
* The main search criterion is by name, but you can also leave this field empty
|
|
89
|
+
* and use the criteria contained in search options
|
|
90
|
+
* @param options - Search options
|
|
91
|
+
*/
|
|
92
|
+
searchFileDocuments: (options?: FileDocumentSearchOptions) => Promise<FileDocument[]>;
|
|
93
|
+
/**
|
|
94
|
+
* This method retrieves the fileDocuments shared in a conversation.
|
|
95
|
+
* For obvious performance reasons, it does not return the full list of fileDocuments, but a page of 1000 fileDocuments.
|
|
96
|
+
* To retrieve the next page, simply call it up again.
|
|
97
|
+
* @param conversation - the conversation
|
|
98
|
+
*/
|
|
99
|
+
getConversationFileDocuments: (conversation: Conversation) => Promise<{
|
|
100
|
+
documents: FileDocument[];
|
|
101
|
+
complete: boolean;
|
|
102
|
+
}>;
|
|
103
|
+
/**
|
|
104
|
+
* This method retrieves the fileDocuments shared in a conversation.
|
|
105
|
+
* For obvious performance reasons, it does not return the full list of fileDocuments, but a page of 1000 fileDocuments.
|
|
106
|
+
* To retrieve the next page, simply call it up again.
|
|
107
|
+
* @param conversation - the conversation
|
|
108
|
+
*/
|
|
109
|
+
/**
|
|
110
|
+
* This method will create an archive (zip) will all fileDocuments; Once generated, the zip will be available in the user storage;
|
|
111
|
+
* ATTENTION: In return you'll get the FileDocument that can be used to download the archive, but it will remain in the user storage; So consider removing it from the storage in order to save space;
|
|
112
|
+
* ATTENTION2: Each call of this API will generate a new zip that will be storred in the storage of the user.
|
|
113
|
+
* NB: This process might take a while, up to several minutes (depending on the files size, etc)
|
|
114
|
+
* @param zipName - the name of the zip [Optional]
|
|
115
|
+
* @param documents - the list of documents to zip
|
|
116
|
+
*/
|
|
117
|
+
createZipFromDocuments: (zipName: string, documents: FileDocument[]) => Promise<FileDocument>;
|
|
118
|
+
/**
|
|
119
|
+
* Builds a downloadable archive of a P2P call recording (audio + transcript/summary bundled server-side).
|
|
120
|
+
*/
|
|
121
|
+
createZipFromCallRecord: (zipName: string, callRecordId: string) => Promise<FileDocument>;
|
|
122
|
+
/**
|
|
123
|
+
* Wraps a file descriptor into a {@link FileDocument} instance.
|
|
124
|
+
*/
|
|
125
|
+
createDocumentFromFileDescriptor: (fd: FileDescriptor) => FileDocument;
|
|
126
|
+
/**
|
|
127
|
+
* Retrieves a {@link FileDocument} instance from the local cache by its identifier.
|
|
128
|
+
*
|
|
129
|
+
* **Legacy compatibility** — This method exists to address legacy behaviours where a
|
|
130
|
+
* `FileDocument` object could not be obtained through the standard asynchronous APIs
|
|
131
|
+
* (e.g. {@link searchFileDocuments}, {@link getConversationFileDocuments}).
|
|
132
|
+
* It performs a **synchronous** lookup against the in-memory document registry and
|
|
133
|
+
* should therefore only be used when the document is already known to be cached locally.
|
|
134
|
+
* Prefer the async APIs for any new development.
|
|
135
|
+
*
|
|
136
|
+
* @param fileDocumentId - The unique identifier of the file document to retrieve.
|
|
137
|
+
* @returns The matching {@link FileDocument}, or `undefined` if not found in the local cache.
|
|
138
|
+
*/
|
|
139
|
+
getFileDocumentById: (fileDocumentId: string) => FileDocument;
|
|
140
|
+
/**
|
|
141
|
+
* Checks whether a given capability is available for a {@link FileDocument}.
|
|
142
|
+
*
|
|
143
|
+
* @param fileDocument - The file document to test.
|
|
144
|
+
* @param capability - The capability to check. Possible values:
|
|
145
|
+
* - `FileDocumentCapabilities.THUMBNAILS` — whether a thumbnail preview can be generated.
|
|
146
|
+
* - `FileDocumentCapabilities.SAVE` — whether the document can be saved locally.
|
|
147
|
+
* - `FileDocumentCapabilities.TRANSFERT` — whether the document can be transferred.
|
|
148
|
+
* @returns `true` if the capability is supported for this document, `false` otherwise.
|
|
149
|
+
*/
|
|
150
|
+
getFileDocumentCapability: (fileDocument: FileDocument, capability: FileDocumentCapabilities) => boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Information about the connected external storage (OwnCloud/NextCloud), if any.
|
|
153
|
+
*/
|
|
154
|
+
readonly externalStorage: FileDocumentExternalStorage | undefined;
|
|
155
|
+
/**
|
|
156
|
+
* Lists file documents from an external storage (OwnCloud/NextCloud) at the given path.
|
|
157
|
+
* Returns files and directory entries. Directories have `type === 'directory'`.
|
|
158
|
+
* @param options - Path, sort, filter options.
|
|
159
|
+
*/
|
|
160
|
+
searchExternalStorageFileDocuments: (options?: FileDocumentExternalSearchOptions) => Promise<{
|
|
161
|
+
fileDocuments: FileDocument[];
|
|
162
|
+
allReceived: boolean;
|
|
163
|
+
}>;
|
|
164
|
+
/**
|
|
165
|
+
* Initiates the authentication flow for the connected external storage.
|
|
166
|
+
*/
|
|
167
|
+
authenticateExternalStorage: () => Promise<void>;
|
|
168
|
+
/**
|
|
169
|
+
* Logs out from the connected external storage.
|
|
170
|
+
*/
|
|
171
|
+
logoutExternalStorage: () => Promise<void>;
|
|
172
|
+
}
|
|
173
|
+
/** @internal */
|
|
174
|
+
export declare class FileDocumentServiceRB extends Service implements FileDocumentService {
|
|
175
|
+
private logger;
|
|
176
|
+
private fileStorage;
|
|
177
|
+
private fileServer;
|
|
178
|
+
private eventSubject;
|
|
179
|
+
private subscriptions?;
|
|
180
|
+
private documents;
|
|
181
|
+
static getInstance(): FileDocumentServiceRB;
|
|
182
|
+
static build(): FileDocumentServiceRB;
|
|
183
|
+
private constructor();
|
|
184
|
+
start(): Promise<void>;
|
|
185
|
+
reconnect(): Promise<void>;
|
|
186
|
+
stop(): Promise<void>;
|
|
187
|
+
private attachEventHandler;
|
|
188
|
+
subscribe(handler: (event: RBEvent<FileDocumentServiceEvents>) => any, eventNames?: FileDocumentServiceEvents | FileDocumentServiceEvents[]): Subscription;
|
|
189
|
+
sendEvent(name: FileDocumentServiceEvents, data?: any): void;
|
|
190
|
+
createFileDocument(file: File): Promise<FileDocument>;
|
|
191
|
+
replaceFileDocumentContent(document: FileDocument, data: Blob): void;
|
|
192
|
+
createFileDocumentFromExisitingFileDescriptor(fd: FileDescriptor, file: File): Promise<FileDocument>;
|
|
193
|
+
hasEnoughSpace(document: FileDocument): boolean;
|
|
194
|
+
uploadDocument(document: FileDocument): Promise<FileDocument>;
|
|
195
|
+
downloadDocument(document: FileDocument): Promise<Blob>;
|
|
196
|
+
abortDocumentTransfert(document: FileDocument): Promise<FileDocument>;
|
|
197
|
+
copyDocument(document: FileDocument): Promise<FileDocument>;
|
|
198
|
+
deleteDocument(document: FileDocument): Promise<void>;
|
|
199
|
+
get consumption(): FileDocumentConsumptionData;
|
|
200
|
+
addDocumentViewer(document: FileDocument, viewer: User | Bubble): Promise<void>;
|
|
201
|
+
deleteDocumentViewer(document: FileDocument, viewer: User | Bubble): Promise<void>;
|
|
202
|
+
searchFileDocuments(searchOptions?: FileDocumentSearchOptions): Promise<FileDocument[]>;
|
|
203
|
+
createZipFromDocuments(zipName: string, documents: FileDocument[]): Promise<FileDocument>;
|
|
204
|
+
/**
|
|
205
|
+
* Builds a downloadable archive of a P2P call recording (audio + transcript/summary bundled server-side) via
|
|
206
|
+
* the dedicated call_record archive endpoint, and resolves with the archive FileDocument once it is ready.
|
|
207
|
+
*/
|
|
208
|
+
createZipFromCallRecord(zipName: string, callRecordId: string): Promise<FileDocument>;
|
|
209
|
+
getConversationFileDocuments(conversation: Conversation): Promise<{
|
|
210
|
+
documents: FileDocument[];
|
|
211
|
+
complete: boolean;
|
|
212
|
+
}>;
|
|
213
|
+
getLocalUrl(fileDocument: FileDocument): Promise<string>;
|
|
214
|
+
getPublicUrl(fileDocument: FileDocument): Promise<string>;
|
|
215
|
+
getTextContent(fileDocument: FileDocument, noCache?: boolean): Promise<string>;
|
|
216
|
+
getJsonContent<T = any>(fileDocument: FileDocument): Promise<T>;
|
|
217
|
+
getFileDocumentCapability(fileDocument: FileDocument, capability: FileDocumentCapabilities): boolean;
|
|
218
|
+
getFileDescriptorUrl(fd: FileDescriptor): Promise<string>;
|
|
219
|
+
getFileDocumentById(fileDocumentId: string): FileDocument;
|
|
220
|
+
createDocumentFromFileDescriptor(fd: FileDescriptor): FileDocumentRB;
|
|
221
|
+
get externalStorage(): FileDocumentExternalStorage | undefined;
|
|
222
|
+
searchExternalStorageFileDocuments(options?: FileDocumentExternalSearchOptions): Promise<{
|
|
223
|
+
fileDocuments: FileDocument[];
|
|
224
|
+
allReceived: boolean;
|
|
225
|
+
}>;
|
|
226
|
+
authenticateExternalStorage(): Promise<void>;
|
|
227
|
+
logoutExternalStorage(): Promise<void>;
|
|
228
|
+
}
|
|
229
|
+
//# sourceMappingURL=fileDocument.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fileDocument.service.d.ts","sourceRoot":"","sources":["../../../src/services/fileDocument/fileDocument.service.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAkB,MAAM,iCAAiC,CAAC;AACpF,OAAO,KAAK,EAAE,eAAe,EAA2B,MAAM,8BAA8B,CAAC;AAG7F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEzC,OAAO,KAAK,EAAE,YAAY,EAAE,iCAAiC,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC/J,OAAO,EAAsB,cAAc,EAAoF,MAAM,iCAAiC,CAAC;AAIvK,oBAAY,wBAAwB;IAChC,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,SAAS,cAAc;CAC1B;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AAEtD;;;GAGG;AACH,oBAAY,yBAAyB;IACjC;;;OAGG;IACH,yBAAyB,8BAA8B;IAEvD;;;OAGG;IACH,wBAAwB,6BAA6B;IAErD;;;OAGG;IACH,wBAAwB,6BAA6B;IAErD;;;OAGG;IACH,sBAAsB,2BAA2B;IAEjD;;;O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CAAC;IAyB1F,4BAA4B,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC;QAAE,SAAS,EAAE,YAAY,EAAE,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAC;KAAE,CAAC;IAapH,WAAW,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;IAIxD,YAAY,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;IAIzD,cAAc,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,GAAE,OAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAarF,cAAc,CAAC,CAAC,GAAG,GAAG,EAAE,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,CAAC,CAAC;IAgBrE,yBAAyB,CAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,wBAAwB,GAAG,OAAO;IAK9F,oBAAoB,CAAC,EAAE,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;IAI/D,mBAAmB,CAAC,cAAc,EAAE,MAAM,GAAG,YAAY;IAOzD,gCAAgC,CAAC,EAAE,EAAE,cAAc,GAAG,cAAc;IAQ3E,IAAW,eAAe,IAAI,2BAA2B,GAAG,SAAS,CAEpE;IAEY,kCAAkC,CAAC,OAAO,CAAC,EAAE,iCAAiC,GAAG,OAAO,CAAC;QAAE,aAAa,EAAE,YAAY,EAAE,CAAC;QAAC,WAAW,EAAE,OAAO,CAAC;KAAE,CAAC;IAiBlJ,2BAA2B,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5C,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC;CAGtD"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { FileDocumentService, FileDocumentConsumptionData } from "./fileDocument.service";
|
|
2
|
+
export { FileDocumentServiceEvents, FileDocumentCapabilities } from "./fileDocument.service";
|
|
3
|
+
export type { FileDocumentExternalStorage, FileDocumentExternalSearchOptions } from "../../models/fileDocument.model";
|
|
4
|
+
export { FileDocumentStorageType } from "../../models/fileDocument.model";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/fileDocument/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC/F,OAAO,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAC7F,YAAY,EAAE,2BAA2B,EAAE,iCAAiC,EAAE,MAAM,iCAAiC,CAAC;AACtH,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { XMLElements } from "../../utils/xmlParser";
|
|
2
|
+
export declare class FileDescriptorEventHandlerService {
|
|
3
|
+
private mainService;
|
|
4
|
+
private logger;
|
|
5
|
+
private contactService;
|
|
6
|
+
private eventService;
|
|
7
|
+
private fileStorageService;
|
|
8
|
+
private fileServerService;
|
|
9
|
+
private p2pRecapService;
|
|
10
|
+
static create(): FileDescriptorEventHandlerService;
|
|
11
|
+
onManagementMessageReceived(stanza: any): boolean;
|
|
12
|
+
private manageArchiveFileReady;
|
|
13
|
+
private manageFileStanzaData;
|
|
14
|
+
manageThumbnailStanzaData(stanzaElem: XMLElements): Promise<void>;
|
|
15
|
+
private manageFileVscanStanzaData;
|
|
16
|
+
private manageFileTranslateStanzaData;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=fileDescriptorEventHandler.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fileDescriptorEventHandler.service.d.ts","sourceRoot":"","sources":["../../../src/services/files/fileDescriptorEventHandler.service.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAc,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAIpF,qBAAa,iCAAiC;IAC1C,OAAO,CAAC,WAAW,CAA0C;IAC7D,OAAO,CAAC,MAAM,CAA8C;IAC5D,OAAO,CAAC,cAAc,CAAgD;IACtE,OAAO,CAAC,YAAY,CAA4C;IAChE,OAAO,CAAC,kBAAkB,CAAqF;IAC/G,OAAO,CAAC,iBAAiB,CAAkF;IAC3G,OAAO,CAAC,eAAe,CAA4E;WAErF,MAAM,IAAI,iCAAiC;IAIlD,2BAA2B,CAAC,MAAM,EAAE,GAAG;YAoBhC,sBAAsB;IAYpC,OAAO,CAAC,oBAAoB;IAiJf,yBAAyB,CAAC,UAAU,EAAE,WAAW;IAyD9D,OAAO,CAAC,yBAAyB;YA4DnB,6BAA6B;CA6B9C"}
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import type { FileDescriptor } from "../../models/common/fileDescriptor";
|
|
2
|
+
import type { FileStorageExternalStorage } from "../../services/files/fileStorage.service";
|
|
3
|
+
import { FileStorageCapabilities, FileStorageService } from "../../services/files/fileStorage.service";
|
|
4
|
+
import { Service } from "../../services/service";
|
|
5
|
+
export declare const FILE_SERVER_SVC = "FileServerService";
|
|
6
|
+
/**
|
|
7
|
+
* Helper class to handle image URLs (to avoid memory issues)
|
|
8
|
+
* @class LocalImage
|
|
9
|
+
*/
|
|
10
|
+
export declare class LocalImage {
|
|
11
|
+
/**
|
|
12
|
+
* Image url to be use. e.g. in src attribute.
|
|
13
|
+
* @type {string}
|
|
14
|
+
* @memberof LocalImage
|
|
15
|
+
*/
|
|
16
|
+
url: string;
|
|
17
|
+
/**
|
|
18
|
+
* {@link FileDescriptor} associated with this LocalImage
|
|
19
|
+
* @type {FileDescriptor}
|
|
20
|
+
* @memberof LocalImage
|
|
21
|
+
*/
|
|
22
|
+
fd: FileDescriptor;
|
|
23
|
+
/**
|
|
24
|
+
* Method to be called to release the URL object created when instanciating the class
|
|
25
|
+
* @memberof LocalImage
|
|
26
|
+
*/
|
|
27
|
+
release(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Creates an instance of LocalImage.
|
|
30
|
+
* Note: Careful, a URL object is created so {@link release()} is to be called when object is no longer in use
|
|
31
|
+
* @param {FileDescriptor} fd image file descriptor
|
|
32
|
+
* @param {Blob} blob file blob
|
|
33
|
+
* @memberof LocalImage
|
|
34
|
+
*/
|
|
35
|
+
constructor(fd: FileDescriptor, blob: Blob);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* File server constraints (maxChunkSize, maxFileSize) for user
|
|
39
|
+
* @class FileServerCapabilities
|
|
40
|
+
*/
|
|
41
|
+
export interface FileServerCapabilities {
|
|
42
|
+
/**
|
|
43
|
+
* Threshold from which it's better for clients to follow a download strategy by chunk [octet]
|
|
44
|
+
*/
|
|
45
|
+
maxChunkSizeDownload: number;
|
|
46
|
+
/**
|
|
47
|
+
* Threshold from which it's better for clients to follow an upload strategy by chunk [octet]
|
|
48
|
+
*/
|
|
49
|
+
maxChunkSizeUpload: number;
|
|
50
|
+
/**
|
|
51
|
+
* Data related with the external fileserver used
|
|
52
|
+
*/
|
|
53
|
+
externalStorage?: FileStorageExternalStorage;
|
|
54
|
+
}
|
|
55
|
+
export interface IFileServerService {
|
|
56
|
+
uploadAFileByChunk: (fileDescriptor: FileDescriptor, file: File) => Promise<any>;
|
|
57
|
+
uploadFile: (fileDescriptor: FileDescriptor) => Promise<FileDescriptor>;
|
|
58
|
+
updateFileVariant: (fileId: string, variant: string, content: string) => Promise<void>;
|
|
59
|
+
}
|
|
60
|
+
export declare class FileServerService extends Service implements IFileServerService {
|
|
61
|
+
readonly ONE_KILOBYTE = 1024;
|
|
62
|
+
readonly ONE_MEGABYTE: number;
|
|
63
|
+
readonly ONE_GIGABYTE: number;
|
|
64
|
+
readonly FILE_RANGE: number;
|
|
65
|
+
readonly PARALLEL_REQUEST_NB = 10;
|
|
66
|
+
private _started;
|
|
67
|
+
get started(): boolean;
|
|
68
|
+
set started(value: boolean);
|
|
69
|
+
private serviceStatusSubject;
|
|
70
|
+
private portalURL;
|
|
71
|
+
private fileMessageHandlerRef;
|
|
72
|
+
private fileDescriptorEventHandler;
|
|
73
|
+
private thumbnailPromises;
|
|
74
|
+
private thumbnailPreviewPromises;
|
|
75
|
+
private cache;
|
|
76
|
+
private authService;
|
|
77
|
+
private xmppService;
|
|
78
|
+
private logger;
|
|
79
|
+
private fileStorageService;
|
|
80
|
+
private errorHelperService;
|
|
81
|
+
private centralizedService;
|
|
82
|
+
private mainService;
|
|
83
|
+
capabilities: FileServerCapabilities;
|
|
84
|
+
static getInstance(): FileServerService;
|
|
85
|
+
static build(): FileServerService;
|
|
86
|
+
private constructor();
|
|
87
|
+
private waitTillStarted;
|
|
88
|
+
start(): Promise<void>;
|
|
89
|
+
stop(): Promise<void>;
|
|
90
|
+
reconnect(): void;
|
|
91
|
+
attachHandlers(): void;
|
|
92
|
+
private removeHandlers;
|
|
93
|
+
/**
|
|
94
|
+
* Get a "public URL" for a given {@link FileDescriptor} (API request to {@link https://api.openrainbow.org/filestorage/#api-files_server_download-files_getFileTemporaryURL Rainbow File Storage portal - files server download - 2 - Get backend temporary URL})
|
|
95
|
+
* @param {FileDescriptor} fileDescriptor for which we want to retrieve a public URL
|
|
96
|
+
* @returns {Promise<string>} Resolves with the public url
|
|
97
|
+
* @memberof FileServerService
|
|
98
|
+
*/
|
|
99
|
+
getFileDescriptorPublicUrl(fileDescriptor: FileDescriptor, variant?: string): Promise<string>;
|
|
100
|
+
/**
|
|
101
|
+
* Update the content of a file variant in place. P2P call-record sub-files (summary/transcription/...) have no
|
|
102
|
+
* own descriptor: they are addressed by the parent file id + `variant`.
|
|
103
|
+
*/
|
|
104
|
+
updateFileVariant(fileId: string, variant: string, content: string): Promise<void>;
|
|
105
|
+
/**
|
|
106
|
+
* Method creates an URL for a given fileDescriptor
|
|
107
|
+
* @param {FileDescriptor} fileDescriptor for which we retrieve the URL
|
|
108
|
+
* @param {boolean} [thumbnail] whether it is the thumbnail that is requested
|
|
109
|
+
* @param {boolean} [cacheEnabled] whether to use cache or not
|
|
110
|
+
* @returns {Promise<string>} resolves with the URL
|
|
111
|
+
* @memberof FileServerService
|
|
112
|
+
*/
|
|
113
|
+
getFileDescriptorUrl(fileDescriptor: FileDescriptor, thumbnail?: boolean, cacheEnabled?: boolean): Promise<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Removes a given {@link FileDescriptor} from cache
|
|
116
|
+
* @param {FileDescriptor} fileDescriptor to be removed from cache
|
|
117
|
+
* @memberof FileServerService
|
|
118
|
+
*/
|
|
119
|
+
removeFileDescriptorFromCache(fileDescriptor: FileDescriptor): void;
|
|
120
|
+
/**
|
|
121
|
+
* Clears the RainbowImageCache
|
|
122
|
+
* @memberof FileServerService
|
|
123
|
+
*/
|
|
124
|
+
clearCache(): Promise<void>;
|
|
125
|
+
/**
|
|
126
|
+
* Method retrieve the {@link LocalImage} of a given file
|
|
127
|
+
* @param {string} fileDescriptorId ID of file
|
|
128
|
+
* @param {boolean} thumbnail whether we want to retrieve the thumbnail
|
|
129
|
+
* @param {boolean} [forced] whether we want to force a server request
|
|
130
|
+
* @returns {Promise<LocalImage>} resolves with the {@link LocalImage}
|
|
131
|
+
* @memberof FileServerService
|
|
132
|
+
*/
|
|
133
|
+
getLocalImage(fileDescriptorId: string, thumbnail: boolean, forced?: boolean): Promise<LocalImage>;
|
|
134
|
+
private getLargeBlobThumbnail;
|
|
135
|
+
/**
|
|
136
|
+
* Method used to get partial data from server
|
|
137
|
+
* @param {FileDescriptor} fileDescriptor of file to retrieve
|
|
138
|
+
* @param {string} url to use for download
|
|
139
|
+
* @param {number} minRange minRange for download operation
|
|
140
|
+
* @param {number} maxRange maxRange for download operation
|
|
141
|
+
* @param {number} index of partial request
|
|
142
|
+
* @param {boolean} __cancelable cancellable request ?
|
|
143
|
+
* @param {number} currentLoadingRef some kind of graphical stuff
|
|
144
|
+
* @returns {Promise<{}>} resolves when partial data's download is complete
|
|
145
|
+
* @memberof FileServerService
|
|
146
|
+
*/
|
|
147
|
+
private getPartialDataFromServer;
|
|
148
|
+
getFileStorageService(): FileStorageService;
|
|
149
|
+
/**
|
|
150
|
+
* Retrieve Blob of thumbnail preview of a given file descriptor
|
|
151
|
+
* @param {FileDescriptor} fileDescriptor for which we retrieve the blob
|
|
152
|
+
* @returns {Promise<Blob>} resolves with the blob
|
|
153
|
+
* @memberof FileServerService
|
|
154
|
+
*/
|
|
155
|
+
private getBlobThumbnailPreviewFromFileDescriptor;
|
|
156
|
+
/**
|
|
157
|
+
* Retrieve Blob of thumbnail of a given file descriptor
|
|
158
|
+
* @param {FileDescriptor} fileDescriptor for which we retrieve the blob
|
|
159
|
+
* @returns {Promise<Blob>} resolves with the blob
|
|
160
|
+
* @memberof FileServerService
|
|
161
|
+
*/
|
|
162
|
+
getBlobThumbnailFromFileDescriptor(fileDescriptor: FileDescriptor): Promise<Blob>;
|
|
163
|
+
/**
|
|
164
|
+
* Helper method to call getPartialDataFromServer and handle its response
|
|
165
|
+
* @private
|
|
166
|
+
* @param {FileDescriptor} fileDescriptor of file to retrieve
|
|
167
|
+
* @param {string} url to use for download
|
|
168
|
+
* @param {number} minRange minRange for download operation
|
|
169
|
+
* @param {number} maxRange maxRange for download operation
|
|
170
|
+
* @param {number} index of partial request
|
|
171
|
+
* @param {boolean} cancelable cancellable request ?
|
|
172
|
+
* @param {number} currentLoadingRef some kind of graphical stuff
|
|
173
|
+
* @param {any[]} blobArray to fill with response
|
|
174
|
+
* @param {Function} [actionOnPartialResponse] what to do when partial response is received
|
|
175
|
+
* @returns {*} {Promise<any>}
|
|
176
|
+
* @memberof FileServerService
|
|
177
|
+
*/
|
|
178
|
+
private callAndProcessGetPartialDataFromServer;
|
|
179
|
+
/**
|
|
180
|
+
* Method retrieve the blob of a given file descriptor
|
|
181
|
+
* @param {FileDescriptor} fileDescriptor whose blob we want to retrieve
|
|
182
|
+
* @param {boolean} [cancelable] whether action is ancellable
|
|
183
|
+
* @param {Function} [actionOnPartialResponse] what to do when partial response is received
|
|
184
|
+
* @returns {Promise<Blob>} resolves with the retieved blob
|
|
185
|
+
* @memberof FileServerService
|
|
186
|
+
*/
|
|
187
|
+
getBlobFromFileDescriptor(fileDescriptor: FileDescriptor, cancelable?: boolean, actionOnPartialResponse?: Function): Promise<Blob>;
|
|
188
|
+
/**
|
|
189
|
+
* Write the given blob's ArrayBuffer to fileDescriptor
|
|
190
|
+
* @param {FileDescriptor} fd to fill
|
|
191
|
+
* @param {ArrayBuffer[]} blobArray of data to write
|
|
192
|
+
* @returns {void}
|
|
193
|
+
* @memberof FileServerService
|
|
194
|
+
*/
|
|
195
|
+
private writeAvailableChunksInDisk;
|
|
196
|
+
/**
|
|
197
|
+
* Method creates blob from a file retrieved from server
|
|
198
|
+
* @param {string} url server url for request
|
|
199
|
+
* @param {FileDescriptor} fileDescriptor for which we retrieve the blob
|
|
200
|
+
* @returns {Promise<Blob>} resolves with the Blob created from data received from server
|
|
201
|
+
* @memberof FileServerService
|
|
202
|
+
*/
|
|
203
|
+
getBlobFileDescriptorFromUrl(url: string, fileDescriptor: FileDescriptor): Promise<Blob>;
|
|
204
|
+
/**
|
|
205
|
+
* Method retrieves an URL object from an url
|
|
206
|
+
* @param {string} id [required] the ID of the image file
|
|
207
|
+
* @returns {Promise<any>} Object containing the orientation and the Object URL
|
|
208
|
+
* @memberof FileServerService
|
|
209
|
+
*/
|
|
210
|
+
getBlobUrlAndOrientationByFileDescriptorId(id: string): Promise<any>;
|
|
211
|
+
/**
|
|
212
|
+
* Method to read EXIF data for image to extract the orientation and store it
|
|
213
|
+
* @param {FileDescriptor} fileDescriptor of image to read
|
|
214
|
+
* @param {Blob} blob of file to analyze
|
|
215
|
+
* @returns {Promise<any>} : return the orientation value if available
|
|
216
|
+
*/
|
|
217
|
+
setImageOrientationForFileDescriptor(fileDescriptor: FileDescriptor, blob: Blob): Promise<any>;
|
|
218
|
+
/**
|
|
219
|
+
* Builds the context of an upload that was aborted after a part failed, so the log line that ends the
|
|
220
|
+
* transfer carries everything needed to find the request again in the server logs.
|
|
221
|
+
* @param {FileDescriptor} fileDescriptor of the file being uploaded
|
|
222
|
+
* @param {UploadPartError} error rejected by the failing part
|
|
223
|
+
* @returns {string} file id, size, number of parts, http status and x-rainbow-request-id when known
|
|
224
|
+
* @memberof FileServerService
|
|
225
|
+
*/
|
|
226
|
+
private formatUploadFailure;
|
|
227
|
+
/**
|
|
228
|
+
* Method sends data to server using range request mecanism (RFC7233)
|
|
229
|
+
* Note: this implementation uses XMLHttpRequest, not fetch, because fetch cannot report upload progress.
|
|
230
|
+
* It therefore bypasses the window.fetch interceptor of MainService, so the Rainbow identification
|
|
231
|
+
* headers and the SEND/RECV traces are applied by this method itself.
|
|
232
|
+
* @param {UploadRequestData} uploadRequestData to be sent
|
|
233
|
+
* @returns {Promise<{}>} file descriptor data received as response from server or http error response
|
|
234
|
+
* @memberof FileServerService
|
|
235
|
+
*/
|
|
236
|
+
private sendPartialDataToServer;
|
|
237
|
+
/**
|
|
238
|
+
* Method to upload a file by chunk
|
|
239
|
+
* @param {FileDescriptor} fileDescriptor of file to upoad
|
|
240
|
+
* @param {File} file to upload
|
|
241
|
+
* @returns {Promise<any>} resolves with the fileDescriptor uploaded
|
|
242
|
+
* @memberof FileServerService
|
|
243
|
+
*/
|
|
244
|
+
uploadAFileByChunk(fileDescriptor: FileDescriptor, file: File): Promise<any>;
|
|
245
|
+
/**
|
|
246
|
+
* Method to upload a file
|
|
247
|
+
* @param {FileDescriptor} fileDescriptor of file to upload . Note: attribute "fileToSend" of fileDescriptor will be uploaded
|
|
248
|
+
* @returns {Promise<any>} resolves with the fileDescriptor uploaded
|
|
249
|
+
* @memberof FileServerService
|
|
250
|
+
*/
|
|
251
|
+
uploadFile(fileDescriptor: FileDescriptor): Promise<FileDescriptor>;
|
|
252
|
+
/**
|
|
253
|
+
* Method cancels the transfer for a given fileDescriptor
|
|
254
|
+
* @param {string} fileDescriptorId ID of fileDescriptor transfer to cancel
|
|
255
|
+
* @memberof FileServerService
|
|
256
|
+
*/
|
|
257
|
+
cancelCurrentFiletransfer(fileDescriptorId: string): void;
|
|
258
|
+
/**
|
|
259
|
+
* This API advice client about file server constraints (maxChunkSize, maxFileSize). (API request to {@link https://api.openrainbow.org/filestorage/#api-files_server_capabilities Rainbow File Storage portal - files server capabilities - Capabilities})
|
|
260
|
+
* @description
|
|
261
|
+
* Method retrieves user quota (capabilities) for user
|
|
262
|
+
* @returns {Promise<FileServerCapabilities>} resolves with a {@link FileServerCapabilities} object
|
|
263
|
+
* @memberof FileServerService
|
|
264
|
+
*/
|
|
265
|
+
getServerCapabilities(): Promise<FileServerCapabilities>;
|
|
266
|
+
getFileDescriptorCapability(fileDescriptor: FileDescriptor, capability: FileStorageCapabilities): boolean;
|
|
267
|
+
}
|
|
268
|
+
//# sourceMappingURL=fileServer.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fileServer.service.d.ts","sourceRoot":"","sources":["../../../src/services/files/fileServer.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AAMxF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yDAAyD,CAAC;AAC1G,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,yDAAyD,CAAC;AAKtH,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAIhE,eAAO,MAAM,eAAe,sBAAsB,CAAC;AA4BnD;;;GAGG;AACH,qBAAa,UAAU;IACnB;;;;OAIG;IACI,GAAG,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACI,EAAE,EAAE,cAAc,CAAC;IAE1B;;;OAGG;IACI,OAAO,IAAI,IAAI;IAEtB;;;;;;OAMG;gBACS,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI;CAI7C;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH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