@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,358 @@
|
|
|
1
|
+
import type { ITodoMsgContent, TodoPersonalContent } from "../../models/todo.model";
|
|
2
|
+
import { TodoCategory, TodoElem } from "../../models/todo.model";
|
|
3
|
+
import { Subscription } from "rxjs/internal/Subscription";
|
|
4
|
+
import type { Observable } from "rxjs";
|
|
5
|
+
import { RBEvent } from "../../models/event.model";
|
|
6
|
+
import { Service } from "../../services/service";
|
|
7
|
+
import type { MessageID } from "../../models";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const TODO_SVC = "TodoService";
|
|
10
|
+
/**
|
|
11
|
+
* TodoServiceRB events list
|
|
12
|
+
* @eventProperty
|
|
13
|
+
*/
|
|
14
|
+
export declare enum TodoServiceEvents {
|
|
15
|
+
/**
|
|
16
|
+
* @eventProperty
|
|
17
|
+
* This RBEvent is send when the list of todos is updated
|
|
18
|
+
*/
|
|
19
|
+
ON_TODOS_UPDATED = "ON_TODOS_UPDATED",
|
|
20
|
+
/**
|
|
21
|
+
* @eventProperty
|
|
22
|
+
* This RBEvent is send when a todo is created
|
|
23
|
+
*/
|
|
24
|
+
ON_TODO_CREATED = "ON_TODO_CREATED",
|
|
25
|
+
/**
|
|
26
|
+
* @eventProperty
|
|
27
|
+
* This RBEvent is send when a todo is updated
|
|
28
|
+
*/
|
|
29
|
+
ON_TODO_UPDATED = "ON_TODO_UPDATED",
|
|
30
|
+
/**
|
|
31
|
+
* @eventProperty
|
|
32
|
+
* This RBEvent is send when a todo is deleted
|
|
33
|
+
*/
|
|
34
|
+
ON_TODO_DELETED = "ON_TODO_DELETED",
|
|
35
|
+
/**
|
|
36
|
+
* @eventProperty
|
|
37
|
+
* This RBEvent is send when a todo message map is modified
|
|
38
|
+
*/
|
|
39
|
+
ON_TODO_MESSAGEMAP_MODIFIED = "ON_TODO_MESSAGEMAP_MODIFIED",
|
|
40
|
+
/**
|
|
41
|
+
* @eventProperty
|
|
42
|
+
* This RBEvent is send when the TodoService status changes
|
|
43
|
+
*/
|
|
44
|
+
ON_TODO_SERVICE_STATUS = "ON_TODO_SERVICE_STATUS",
|
|
45
|
+
/**
|
|
46
|
+
* @eventProperty
|
|
47
|
+
* This RBEvent is send when a todo category is created
|
|
48
|
+
*/
|
|
49
|
+
ON_TODO_CATEGORY_CREATED = "ON_TODO_CATEGORY_CREATED",
|
|
50
|
+
/**
|
|
51
|
+
* @eventProperty
|
|
52
|
+
* This RBEvent is send when a todo category is updated
|
|
53
|
+
*/
|
|
54
|
+
ON_TODO_CATEGORY_UPDATED = "ON_TODO_CATEGORY_UPDATED",
|
|
55
|
+
/**
|
|
56
|
+
* @eventProperty
|
|
57
|
+
* This RBEvent is send when a todo category is deleted
|
|
58
|
+
*/
|
|
59
|
+
ON_TODO_CATEGORY_DELETED = "ON_TODO_CATEGORY_DELETED"
|
|
60
|
+
}
|
|
61
|
+
export interface TodoService {
|
|
62
|
+
/**
|
|
63
|
+
* Emits whether the Todo Service has been started or not.
|
|
64
|
+
* If this is not the case, no todo can yet been retrieved.
|
|
65
|
+
*/
|
|
66
|
+
started$: Observable<boolean>;
|
|
67
|
+
/**
|
|
68
|
+
* The Todo Service started state at this instant.
|
|
69
|
+
* If this is not `true`, no todo can yet been retrieved.
|
|
70
|
+
*/
|
|
71
|
+
started: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Subscribe to todo updates; All events send to the callback are of type {@link RBEvent}
|
|
74
|
+
* @param callback - The callback function that will be called when events are received
|
|
75
|
+
*/
|
|
76
|
+
subscribe: (handler: (event: RBEvent<TodoServiceEvents>) => any, eventNames?: TodoServiceEvents | TodoServiceEvents[]) => Subscription;
|
|
77
|
+
/**
|
|
78
|
+
* Creates a todo category
|
|
79
|
+
* @param name - name of the category to be created
|
|
80
|
+
* @param color - color of the category to be created as hexadecimal RGB value (e.g. #FFFFFF)
|
|
81
|
+
* @returns The {@link TodoCategory} created or throws an error if category with the same name already exists or something bad happened
|
|
82
|
+
*/
|
|
83
|
+
createCategory: (name: string, color?: string) => Promise<TodoCategory>;
|
|
84
|
+
/**
|
|
85
|
+
* Updates an existing todo category
|
|
86
|
+
* @param category - {@link TodoCategory} to be updated
|
|
87
|
+
* @param data - JSON object with optional properties name and color
|
|
88
|
+
* @returns the updated {@link TodoCategory}
|
|
89
|
+
*/
|
|
90
|
+
updateCategory: (category: TodoCategory, data: {
|
|
91
|
+
name?: string;
|
|
92
|
+
color?: string;
|
|
93
|
+
}) => Promise<TodoCategory>;
|
|
94
|
+
/**
|
|
95
|
+
* Deletes an existing todo category
|
|
96
|
+
* @param category - {@link TodoCategory} to delete
|
|
97
|
+
*/
|
|
98
|
+
deleteCategory: (category: TodoCategory) => Promise<void>;
|
|
99
|
+
/**
|
|
100
|
+
* Get an existing {@link TodoCategory} by it's unique identifier
|
|
101
|
+
* @param categoryId - ID of {@link TodoCategory} to retrieve
|
|
102
|
+
* @returns The {@link TodoCategory} if found, undefined otherwise
|
|
103
|
+
*/
|
|
104
|
+
getCategoryById: (categoryId: string) => TodoCategory | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* Get an existing {@link TodoCategory} by it's unique name
|
|
107
|
+
* @param categoryName - name of {@link TodoCategory} to retrieve
|
|
108
|
+
* @returns The {@link TodoCategory} if found, undefined otherwise
|
|
109
|
+
*/
|
|
110
|
+
getCategoryByName: (categoryName: string) => TodoCategory | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* Creates a todo
|
|
113
|
+
* @param content - content of todo as {@link TodoPersonalContent} or {@link ITodoMsgContent}
|
|
114
|
+
* @param category - the {@link TodoCategory} to which the todo will be added
|
|
115
|
+
* @param position - the position of the todo in the category. Defaults to 0 (first)
|
|
116
|
+
* @returns The {@link TodoElem} created
|
|
117
|
+
*/
|
|
118
|
+
createTodo: (content: TodoPersonalContent | ITodoMsgContent, category: TodoCategory, position?: number) => Promise<void>;
|
|
119
|
+
/**
|
|
120
|
+
* Changes the category to which the todo belongs
|
|
121
|
+
* @param todo - the {@link TodoElem} to be updated
|
|
122
|
+
* @param newCategory - the new {@link TodoCategory} to which the todo will be assigned
|
|
123
|
+
* @returns The {@link TodoElem} updated
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
updateTodoCategory: (todo: TodoElem<TodoPersonalContent | ITodoMsgContent>, newCategory: TodoCategory) => Promise<TodoElem<TodoPersonalContent | ITodoMsgContent>>;
|
|
127
|
+
/**
|
|
128
|
+
* Updates the content of a todo
|
|
129
|
+
* @param todo - the {@link TodoElem} to be updated
|
|
130
|
+
* @param content - content of todo as {@link TodoPersonalContent} or {@link ITodoMsgContent}
|
|
131
|
+
* @returns The {@link TodoElem} updated
|
|
132
|
+
*
|
|
133
|
+
*/
|
|
134
|
+
updateTodoContent: (todo: TodoElem<TodoPersonalContent | ITodoMsgContent>, content: TodoPersonalContent | ITodoMsgContent) => Promise<TodoElem<TodoPersonalContent | ITodoMsgContent>>;
|
|
135
|
+
/**
|
|
136
|
+
* Updates the position of a todo
|
|
137
|
+
* @param todo - the {@link TodoElem} to be updated
|
|
138
|
+
* @param position - new position of todo in category
|
|
139
|
+
* @returns The {@link TodoElem} updated
|
|
140
|
+
*
|
|
141
|
+
*/
|
|
142
|
+
updateTodoPosition: (todo: TodoElem<TodoPersonalContent | ITodoMsgContent>, position: number) => Promise<TodoElem<TodoPersonalContent | ITodoMsgContent>>;
|
|
143
|
+
/**
|
|
144
|
+
* Deletes a todo
|
|
145
|
+
* @param todo - The {@link TodoElem} to be deleted
|
|
146
|
+
*/
|
|
147
|
+
deleteTodo: (todo: TodoElem<TodoPersonalContent | ITodoMsgContent>) => Promise<void>;
|
|
148
|
+
/**
|
|
149
|
+
* Get all todos of connected user
|
|
150
|
+
* @returns The list of {@link TodoElem} belonging to user
|
|
151
|
+
*/
|
|
152
|
+
getAllTodos: () => TodoElem<TodoPersonalContent | ITodoMsgContent>[];
|
|
153
|
+
/**
|
|
154
|
+
* Get all todos from a given category of connected user
|
|
155
|
+
* @param category - the {@link TodoCategory} to retrieve
|
|
156
|
+
* @returns The list of {@link TodoElem} of the given category belonging to user
|
|
157
|
+
*
|
|
158
|
+
*/
|
|
159
|
+
getAllTodosByCategory: (category: TodoCategory) => TodoElem<TodoPersonalContent | ITodoMsgContent>[];
|
|
160
|
+
/**
|
|
161
|
+
* Get all categories of connected user
|
|
162
|
+
* @returns The list of {@link TodoCategory} belonging to user
|
|
163
|
+
*
|
|
164
|
+
*/
|
|
165
|
+
getAllCategories: () => TodoCategory[];
|
|
166
|
+
/**
|
|
167
|
+
* Whether user can create a new category
|
|
168
|
+
* @returns true if can, false otherwise
|
|
169
|
+
*/
|
|
170
|
+
canCreateNewCategory: () => boolean;
|
|
171
|
+
}
|
|
172
|
+
export declare class TodoServiceRB extends Service implements TodoService {
|
|
173
|
+
private logger;
|
|
174
|
+
private authService;
|
|
175
|
+
private contactService;
|
|
176
|
+
private xmppService;
|
|
177
|
+
private errorHelperService;
|
|
178
|
+
private profileService;
|
|
179
|
+
private utilitiesService;
|
|
180
|
+
private conversationService;
|
|
181
|
+
private portalURL;
|
|
182
|
+
private todos;
|
|
183
|
+
private rxSubject;
|
|
184
|
+
private listenerRef;
|
|
185
|
+
private readonly startedSubject;
|
|
186
|
+
readonly started$: Observable<boolean>;
|
|
187
|
+
get started(): boolean;
|
|
188
|
+
set started(value: boolean);
|
|
189
|
+
private categories;
|
|
190
|
+
todoEnabled: boolean;
|
|
191
|
+
private messageMap;
|
|
192
|
+
private subscription;
|
|
193
|
+
private todoMaxCategories;
|
|
194
|
+
static getInstance(): TodoServiceRB;
|
|
195
|
+
static build(): TodoServiceRB;
|
|
196
|
+
private constructor();
|
|
197
|
+
getCategoryById(categoryId: string): TodoCategory | undefined;
|
|
198
|
+
getCategoryByName(categoryName: string): TodoCategory | undefined;
|
|
199
|
+
createCategory(name: string, color?: string): Promise<TodoCategory>;
|
|
200
|
+
updateCategory(category: TodoCategory, data: {
|
|
201
|
+
name?: string;
|
|
202
|
+
color?: string;
|
|
203
|
+
}): Promise<TodoCategory>;
|
|
204
|
+
deleteCategory(category: TodoCategory): Promise<void>;
|
|
205
|
+
createTodo(content: TodoPersonalContent | ITodoMsgContent, category: TodoCategory, position?: number): Promise<void>;
|
|
206
|
+
updateTodoCategory(todo: TodoElem<TodoPersonalContent | ITodoMsgContent>, newCategory: TodoCategory): Promise<TodoElem<TodoPersonalContent | ITodoMsgContent>>;
|
|
207
|
+
updateTodoContent(todo: TodoElem<TodoPersonalContent | ITodoMsgContent>, content: TodoPersonalContent | ITodoMsgContent): Promise<TodoElem<TodoPersonalContent | ITodoMsgContent>>;
|
|
208
|
+
updateTodoPosition(todo: TodoElem<TodoPersonalContent | ITodoMsgContent>, position: number): Promise<TodoElem<TodoPersonalContent | ITodoMsgContent>>;
|
|
209
|
+
deleteTodo(todo: TodoElem<TodoPersonalContent | ITodoMsgContent>): Promise<void>;
|
|
210
|
+
getAllTodos(): TodoElem<TodoPersonalContent | ITodoMsgContent>[];
|
|
211
|
+
getAllTodosByCategory(category: TodoCategory): TodoElem<TodoPersonalContent | ITodoMsgContent>[];
|
|
212
|
+
getAllCategories(): TodoCategory[];
|
|
213
|
+
getCategoriesMap(): Map<string, TodoCategory>;
|
|
214
|
+
canCreateNewCategory(): boolean;
|
|
215
|
+
/**
|
|
216
|
+
* @public
|
|
217
|
+
* Allows to subscribe to instance's RX subject
|
|
218
|
+
* @param handler - The handler function to be called when event is fired
|
|
219
|
+
* @returns the subscription
|
|
220
|
+
*/
|
|
221
|
+
subscribe(handler: any): Subscription;
|
|
222
|
+
/**
|
|
223
|
+
* @internal
|
|
224
|
+
* Allows to send an event (of type RBEvent) via the RX subject of the instance, and to be captured by subscribe
|
|
225
|
+
* @param name - The name of the event
|
|
226
|
+
* @param data - The data
|
|
227
|
+
|
|
228
|
+
*/
|
|
229
|
+
private sendEvent;
|
|
230
|
+
start(): Promise<void>;
|
|
231
|
+
stop(): void;
|
|
232
|
+
reconnect(attempt?: number): Promise<void>;
|
|
233
|
+
private attachHandlers;
|
|
234
|
+
/**
|
|
235
|
+
* @param id - id of element to fetch
|
|
236
|
+
* @returns the element found or null
|
|
237
|
+
*/
|
|
238
|
+
getTodoById(id: string): TodoElem<TodoPersonalContent | ITodoMsgContent> | null;
|
|
239
|
+
/**
|
|
240
|
+
* Adds a todo item to the internal list of todos
|
|
241
|
+
* @param categoryId - the category identifier to which the todo belongs
|
|
242
|
+
* @param todoId - Unique identifier of the todo
|
|
243
|
+
* @param content - data of the todo item
|
|
244
|
+
* @param position - of the item in the category
|
|
245
|
+
|
|
246
|
+
*/
|
|
247
|
+
private addTodo;
|
|
248
|
+
/**
|
|
249
|
+
* @internal
|
|
250
|
+
* Updates a todo item to the internal list of todos
|
|
251
|
+
* @param categoryId - the category identifier to which the todo belongs
|
|
252
|
+
* @param todoId - Unique identifier of the todo
|
|
253
|
+
* @param content - data of the todo item
|
|
254
|
+
* @param position - of the item in the category
|
|
255
|
+
|
|
256
|
+
*/
|
|
257
|
+
private updateTodo;
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @internal
|
|
261
|
+
* Updates position parameter of each item in array to reflect position in array
|
|
262
|
+
* @param arr - array to modify
|
|
263
|
+
|
|
264
|
+
*/
|
|
265
|
+
private updateItemsPositionValue;
|
|
266
|
+
/**
|
|
267
|
+
* @internal
|
|
268
|
+
* Deletes a todo item to the internal list of todos
|
|
269
|
+
* @param id - Unique identifier of the todo
|
|
270
|
+
|
|
271
|
+
*/
|
|
272
|
+
private deleteTodoInternal;
|
|
273
|
+
/**
|
|
274
|
+
* @internal
|
|
275
|
+
* Handler function for XMPP messages
|
|
276
|
+
* @param stanza - received
|
|
277
|
+
|
|
278
|
+
*/
|
|
279
|
+
private onConfigMessage;
|
|
280
|
+
private onTodoConfigMessage;
|
|
281
|
+
private onCategoryConfigMessage;
|
|
282
|
+
/**
|
|
283
|
+
* @public
|
|
284
|
+
* Handler function for XMPP messages
|
|
285
|
+
* @returns the list of todo
|
|
286
|
+
|
|
287
|
+
*/
|
|
288
|
+
getTodos(): Map<string, TodoElem<TodoPersonalContent | ITodoMsgContent>[]>;
|
|
289
|
+
/**
|
|
290
|
+
* @public
|
|
291
|
+
* Retrieve the list of todos of the connected user and store it locally
|
|
292
|
+
* @param category - optional category to specify which category to retrieve
|
|
293
|
+
* @returns the list of todo retrieved
|
|
294
|
+
* @fires TodoEvent#ON_TODOS_UPDATED with local list is updated
|
|
295
|
+
|
|
296
|
+
*/
|
|
297
|
+
retrieveUserTodoList(category?: string): Promise<Map<string, TodoElem<TodoPersonalContent | ITodoMsgContent>[]>>;
|
|
298
|
+
/**
|
|
299
|
+
* @public
|
|
300
|
+
* retrieves a todo element from server
|
|
301
|
+
* @param todoId - Identifier of the todo to retrieve
|
|
302
|
+
* @returns resolves with the todo as created on server
|
|
303
|
+
|
|
304
|
+
*/
|
|
305
|
+
retrieveTodo(todoId: string): Promise<TodoElem<TodoPersonalContent | ITodoMsgContent>>;
|
|
306
|
+
/**
|
|
307
|
+
* @public
|
|
308
|
+
* updates a todo element on server
|
|
309
|
+
* @param todoId - Unique identifier of the todo
|
|
310
|
+
* @param content - data of the todo item
|
|
311
|
+
* @param category - the {@link TodoCategory} to which the todo belongs
|
|
312
|
+
* @param position - position of the item in the category
|
|
313
|
+
* @returns resolves with the todo as updated on server
|
|
314
|
+
|
|
315
|
+
*/
|
|
316
|
+
updateTodoElem(todoId: string, content: any, category: TodoCategory, position?: number): Promise<TodoElem<TodoPersonalContent | ITodoMsgContent>>;
|
|
317
|
+
/**
|
|
318
|
+
* @public
|
|
319
|
+
* Allows user to retrieve it's ims by list of message Ids, peer and peer type This API can only be used by user himself (i.e. userId of logged in user = value of userId parameter in URL) If message cannot be retrieved response will return status not found
|
|
320
|
+
* @param ims - array of ims where
|
|
321
|
+
* type: Conversation type ("user", "room", "bot")
|
|
322
|
+
* peer: jid with which message has been exchanged
|
|
323
|
+
* msgId: xmpp message id of the message to retrieve
|
|
324
|
+
* @returns resolves with the ims retrieved
|
|
325
|
+
|
|
326
|
+
*/
|
|
327
|
+
retrieveIms(ims: {
|
|
328
|
+
type: string;
|
|
329
|
+
peer: string;
|
|
330
|
+
msgId: MessageID;
|
|
331
|
+
around: number;
|
|
332
|
+
}[]): Promise<any>;
|
|
333
|
+
/**
|
|
334
|
+
* @public
|
|
335
|
+
* Retrieve message data of all messages saved in todo list and save them in todo as displayText
|
|
336
|
+
* @returns resolves with the ims retrieved
|
|
337
|
+
*/
|
|
338
|
+
retrieveAllMessageDataOfTodos(): Promise<void>;
|
|
339
|
+
private syncMessageMapToTodo;
|
|
340
|
+
private extractTextFromXmpp;
|
|
341
|
+
isMessageSaved(messageId: MessageID): boolean;
|
|
342
|
+
getSavedMessageTodoColor(messageId: MessageID): string;
|
|
343
|
+
addMapElement(key: MessageID, value?: string): void;
|
|
344
|
+
updateMapElement(key: MessageID, value?: string): void;
|
|
345
|
+
removeMapElement(key: MessageID): void;
|
|
346
|
+
getNumberOfTodos(): number;
|
|
347
|
+
/**
|
|
348
|
+
* @public
|
|
349
|
+
* Removes a message that was added to todo list
|
|
350
|
+
* @param messageId - ID of message to delete from todo list
|
|
351
|
+
* @returns resolves if success, throws an error otherwise
|
|
352
|
+
*/
|
|
353
|
+
removeMessageFromTodo(messageId: MessageID): Promise<void>;
|
|
354
|
+
private addCategoryToCache;
|
|
355
|
+
private deleteCategoryFromCache;
|
|
356
|
+
private updateCategoryInCache;
|
|
357
|
+
}
|
|
358
|
+
//# sourceMappingURL=todo.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todo.service.d.ts","sourceRoot":"","sources":["../../../src/services/todo/todo.service.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,eAAe,EAAkB,mBAAmB,EAAsB,MAAM,yBAAyB,CAAC;AACxH,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEjE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAMlE,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAEhE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,gBAAgB;AAChB,eAAO,MAAM,QAAQ,gBAAgB,CAAC;AAEtC;;;GAGG;AACH,oBAAY,iBAAiB;IACzB;;;OAGG;IACH,gBAAgB,qBAAqB;IACrC;;;OAGG;IACH,eAAe,oBAAoB;IACnC;;;OAG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,cAAc,CAAC,SAAS,EAAE,SAAS;IAInC,wBAAwB,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM;IAiBtD,aAAa,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,GAAE,MAAW;IAMhD,gBAAgB,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,GAAE,MAAW;IAMnD,gBAAgB,CAAC,GAAG,EAAE,SAAS;IAM/B,gBAAgB,IAAI,MAAM;IASjC;;;;;OAKG;IACU,qBAAqB,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAcvE,OAAO,CAAC,kBAAkB;IAe1B,OAAO,CAAC,uBAAuB;IAK/B,OAAO,CAAC,qBAAqB;CAgBhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/transcription/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Live Transcription service
|
|
3
|
+
* @module LiveTranscription
|
|
4
|
+
*/
|
|
5
|
+
import { Service } from "../../services/service";
|
|
6
|
+
import type { Subscription } from "rxjs";
|
|
7
|
+
import type { Bubble, LiveTranscription } from "../../models";
|
|
8
|
+
import { RBEvent } from "../../models";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const LIVE_TRANSCRIPTION_SVC = "LiveTranscriptionService";
|
|
11
|
+
/**
|
|
12
|
+
* TranscriptionService events list
|
|
13
|
+
* @eventProperty
|
|
14
|
+
*/
|
|
15
|
+
export declare enum LiveTranscriptionServiceEvents {
|
|
16
|
+
/**
|
|
17
|
+
* @eventProperty
|
|
18
|
+
* This RBEvent is send when a liveTranscription + Data Channel is available (but not yet active)
|
|
19
|
+
*/
|
|
20
|
+
ON_LIVE_TRANSCRIPTION_CHANNEL_AVAILABLE = "ON_LIVE_TRANSCRIPTION_CHANNEL_AVAILABLE",
|
|
21
|
+
/**
|
|
22
|
+
* @eventProperty
|
|
23
|
+
* This RBEvent is send when a liveTranscription is available
|
|
24
|
+
*/
|
|
25
|
+
ON_LIVE_TRANSCRIPTION_AVAILABLE = "ON_LIVE_TRANSCRIPTION_AVAILABLE",
|
|
26
|
+
/**
|
|
27
|
+
* @eventProperty
|
|
28
|
+
* This RBEvent is send when a liveTranscription is stopped
|
|
29
|
+
*/
|
|
30
|
+
ON_LIVE_TRANSCRIPTION_STOPPED = "ON_LIVE_TRANSCRIPTION_STOPPED"
|
|
31
|
+
}
|
|
32
|
+
export interface LiveTranscriptionService {
|
|
33
|
+
/**
|
|
34
|
+
* Subscribe to transcription service events
|
|
35
|
+
* @param handler - The handler function that will be called on events
|
|
36
|
+
* @param eventNames - The events to subscribe to
|
|
37
|
+
*/
|
|
38
|
+
subscribe: (handler: (event: RBEvent<LiveTranscriptionServiceEvents>) => any, eventNames?: LiveTranscriptionServiceEvents | LiveTranscriptionServiceEvents[]) => Subscription;
|
|
39
|
+
/**
|
|
40
|
+
* Returns existing live transcription for a conversation
|
|
41
|
+
* @param source - the sourse
|
|
42
|
+
*/
|
|
43
|
+
getLiveTranscriptions: (source: Bubble) => LiveTranscription[];
|
|
44
|
+
/**
|
|
45
|
+
* This methods start speechToText transcription portal
|
|
46
|
+
* @param source - the conversation bubble
|
|
47
|
+
* @param language - the output language to be translated
|
|
48
|
+
*/
|
|
49
|
+
startTranscription: (source: Bubble, language?: string) => Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* This methods stop speechToText transcription portal
|
|
52
|
+
* @param source - the conversation bubble
|
|
53
|
+
*/
|
|
54
|
+
stopTranscription: (source: Bubble) => Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* This methods send a message on transcription datachannel (DEBUG)
|
|
57
|
+
* @param source - the conversation bubble
|
|
58
|
+
* @param message - the message to send via transcription message
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
sendTranscriptionMessage: (source: Bubble, message: string) => Promise<void>;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
export declare class LiveTranscriptionServiceRB extends Service implements LiveTranscriptionService {
|
|
67
|
+
private logger;
|
|
68
|
+
private dataChannelService;
|
|
69
|
+
private authService;
|
|
70
|
+
private settingsService;
|
|
71
|
+
private errorHelperService;
|
|
72
|
+
private xmppService;
|
|
73
|
+
private bubbleConferenceService;
|
|
74
|
+
private subscriptions;
|
|
75
|
+
private eventsSubject;
|
|
76
|
+
private transcriptions;
|
|
77
|
+
private conferenceEventListener;
|
|
78
|
+
private promiseQueue;
|
|
79
|
+
static getInstance(): LiveTranscriptionServiceRB;
|
|
80
|
+
static build(): LiveTranscriptionServiceRB;
|
|
81
|
+
private constructor();
|
|
82
|
+
start(): Promise<void>;
|
|
83
|
+
stop(): Promise<void>;
|
|
84
|
+
reconnect(): Promise<void>;
|
|
85
|
+
private attachEventListeners;
|
|
86
|
+
subscribe(handler: (event: RBEvent<LiveTranscriptionServiceEvents>) => any, eventNames?: LiveTranscriptionServiceEvents | LiveTranscriptionServiceEvents[]): Subscription;
|
|
87
|
+
sendEvent(name: LiveTranscriptionServiceEvents, data?: any): void;
|
|
88
|
+
startTranscription(source: Bubble, language?: string): Promise<void>;
|
|
89
|
+
stopTranscription(source: Bubble): Promise<void>;
|
|
90
|
+
sendTranscriptionMessage(source: Bubble, message: string): Promise<void>;
|
|
91
|
+
getLiveTranscriptions(source: Bubble): LiveTranscription[];
|
|
92
|
+
private onConferenceInfo;
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=liveTranscription.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"liveTranscription.service.d.ts","sourceRoot":"","sources":["../../../src/services/transcription/liveTranscription.service.ts"],"names":[],"mappings":"AAGA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAIhE,OAAO,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AwD;IAClF,OAAO,CAAC,WAAW,CAA0C;IAC7D,OAAO,CAAC,uBAAuB,CAAsE;IACrG,OAAO,CAAC,aAAa,CAAsB;IAC3C,OAAO,CAAC,aAAa,CAA4G;IACjI,OAAO,CAAC,cAAc,CAA2C;IACjE,OAAO,CAAC,uBAAuB,CAAM;IACrC,OAAO,CAAC,YAAY,CAAuC;WAE7C,WAAW;WACX,KAAK;IACnB,OAAO;IAEM,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAYtB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAarB,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAYvC,OAAO,CAAC,oBAAoB;IA0CrB,SAAS,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,8BAA8B,CAAC,KAAK,GAAG,EAAE,UAAU,CAAC,EAAE,8BAA8B,GAAG,8BAA8B,EAAE,GAAG,YAAY;IAkBzK,SAAS,CAAC,IAAI,EAAE,8BAA8B,EAAE,IAAI,GAAE,GAAU;IAgB1D,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAoB1E,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAehD,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAgB9E,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,iBAAiB,EAAE;YA2BnD,gBAAgB;CAmBjC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Service } from "../../services/service";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
export declare const URL_METADATA_SVC = "UrlMetadataService";
|
|
4
|
+
declare const UrlMetadataAPIResponseSchema: v.ObjectSchema<{
|
|
5
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
6
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
8
|
+
readonly urlOnly: v.SchemaWithFallback<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, boolean>]>, false>;
|
|
9
|
+
readonly image: v.SchemaWithFallback<v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>, v.MaxLengthAction<string, 1500, undefined>]>, undefined>, any>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
type UrlMetadataAPIResponse = v.InferInput<typeof UrlMetadataAPIResponseSchema>;
|
|
12
|
+
export declare class UrlMetaData {
|
|
13
|
+
title: string;
|
|
14
|
+
url: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
image?: string;
|
|
17
|
+
urlOnly: boolean;
|
|
18
|
+
private constructor();
|
|
19
|
+
static create(data: UrlMetadataAPIResponse): UrlMetaData | null;
|
|
20
|
+
}
|
|
21
|
+
export interface IUrlMetadataService {
|
|
22
|
+
getUrlFromString: (text: string) => string | undefined;
|
|
23
|
+
getUrlMetadata: (url: string, timeout: number) => Promise<UrlMetaData | null>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @module
|
|
27
|
+
* @name UrlMetadataService
|
|
28
|
+
* @public
|
|
29
|
+
* @description This service manages urlMetadata in Rainbow.
|
|
30
|
+
*/
|
|
31
|
+
export declare class UrlMetadataService extends Service implements IUrlMetadataService {
|
|
32
|
+
private logger;
|
|
33
|
+
private authService;
|
|
34
|
+
private linkRegex;
|
|
35
|
+
private abortController;
|
|
36
|
+
/**
|
|
37
|
+
* @function getInstance
|
|
38
|
+
* @static
|
|
39
|
+
* @private
|
|
40
|
+
* @description return the urlMetaSErvice singleton
|
|
41
|
+
* @returns {UrlMetadataService} the UrlMetadataService instance
|
|
42
|
+
*/
|
|
43
|
+
static getInstance(): UrlMetadataService;
|
|
44
|
+
static build(): UrlMetadataService;
|
|
45
|
+
private constructor();
|
|
46
|
+
getUrlFromString(text: string): string | undefined;
|
|
47
|
+
getUrlMetadata(url: string, timeout?: number): Promise<UrlMetaData | null>;
|
|
48
|
+
abortUrlMetadataRequest(): void;
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=urlMetadata.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"urlMetadata.service.d.ts","sourceRoot":"","sources":["../../../src/services/ulrMetadata/urlMetadata.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AAErD,QAAA,MAAM,4BAA4B;;;;;;aAchC,CAAC;AAEH,KAAK,sBAAsB,GAAG,CAAC,CAAC,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAGhF,qBAAa,WAAW;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAS;IAEhC,OAAO;WAiBO,MAAM,CAAC,IAAI,EAAE,sBAAsB,GAAG,WAAW,GAAG,IAAI;CAOzE;AAED,MAAM,WAAW,mBAAmB;IAChC,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACvD,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CACjF;AAED;;;;;GAKG;AACH,qBAAa,kBAAmB,SAAQ,OAAQ,YAAW,mBAAmB;IAC1E,OAAO,CAAC,MAAM,CA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