@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,178 @@
|
|
|
1
|
+
import type { Mention, MentionLegacy, Message } from "../../models/message.model";
|
|
2
|
+
import type { Conversation } from "../../models/conversation.model";
|
|
3
|
+
import { Service } from "../../services/service";
|
|
4
|
+
import { RBEvent } from "../../models/event.model";
|
|
5
|
+
import type { Subscription } from "rxjs";
|
|
6
|
+
export declare const NOTIFCENTER_SVC = "NotificationCenterServiceRB";
|
|
7
|
+
export interface NotificationCenterService {
|
|
8
|
+
/** Get the list of the current notifications inside the notification center */
|
|
9
|
+
getNotifications: () => Promise<NotificationCenterItem[]>;
|
|
10
|
+
/** Mark a given notification as READ
|
|
11
|
+
* If the notification is already marked as READ, it does nothing
|
|
12
|
+
* On success, an event will be received NotificationCenterEvents.ON_NOTIFICATION_ACKREAD_UPDATE
|
|
13
|
+
* @param notification - the NotificationCenterItem to READ
|
|
14
|
+
*/
|
|
15
|
+
markNotificationAsRead: (notification: NotificationCenterItem) => Promise<void>;
|
|
16
|
+
/** Permanently deletes a given notification
|
|
17
|
+
* On success, an event will be received NotificationCenterEvents.ON_NOTIFICATIONS_LIST_UPDATE
|
|
18
|
+
* @param notification - the NotificationCenterItem to DELETE
|
|
19
|
+
*/
|
|
20
|
+
deleteNotification: (notification: NotificationCenterItem) => Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Subscribe to updates from the service (all events are of RBEvent);
|
|
23
|
+
* @param handler - The call-back function that will be subscribed to the RxJS subject
|
|
24
|
+
*/
|
|
25
|
+
subscribe: (handler: (event: RBEvent<NotificationCenterEvents>) => any) => Subscription;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @eventProperty
|
|
29
|
+
*/
|
|
30
|
+
export declare enum NotificationCenterEvents {
|
|
31
|
+
/**
|
|
32
|
+
* @eventProperty
|
|
33
|
+
* This RBEvent is send when the list of the notifications (or the content) has been updated;
|
|
34
|
+
* This event is also send on start / reconnection, once the list is updated from the server
|
|
35
|
+
*/
|
|
36
|
+
ON_NOTIFICATIONS_LIST_UPDATE = "ON_NOTIFICATIONS_LIST_UPDATE",
|
|
37
|
+
/**
|
|
38
|
+
* @eventProperty
|
|
39
|
+
* This RBEvent is send when a given notification is updated
|
|
40
|
+
* **Event Data**
|
|
41
|
+
* - **notification** : The NotificationCenterItem that is being updated;
|
|
42
|
+
*/
|
|
43
|
+
ON_NOTIFICATION_UPDATE = "ON_NOTIFICATION_UPDATE"
|
|
44
|
+
}
|
|
45
|
+
export interface NotificationCenterItem {
|
|
46
|
+
/** Notification unique identifier */
|
|
47
|
+
id?: string;
|
|
48
|
+
/** Type of that notification (for the moment 'mention', 'todo' and 'poll') */
|
|
49
|
+
type?: "mention" | "todo" | "poll" | null;
|
|
50
|
+
/** Notification read status */
|
|
51
|
+
isRead?: boolean;
|
|
52
|
+
/** Owner of this notification */
|
|
53
|
+
owner?: string;
|
|
54
|
+
/** Creator of this notification */
|
|
55
|
+
sender?: string;
|
|
56
|
+
/** Object representing notification content, Object's differ depending on notification type */
|
|
57
|
+
content?: {
|
|
58
|
+
/** XMPP message id where notification owner has been mentioned */
|
|
59
|
+
messageId?: string;
|
|
60
|
+
/** XMPP message body where notification owner has been mentioned (mandatory when type is mention) */
|
|
61
|
+
messageText?: string;
|
|
62
|
+
/** Unique identifier of the peer of that conversation */
|
|
63
|
+
peer?: string;
|
|
64
|
+
/** Peer Jid of the conversation where notification owner has been mentioned */
|
|
65
|
+
peerJid?: string;
|
|
66
|
+
/** The due date for the ToDo */
|
|
67
|
+
dueDate?: string;
|
|
68
|
+
/** The reminder date for the ToDo */
|
|
69
|
+
reminderDate?: string;
|
|
70
|
+
/** The id of the ToDo */
|
|
71
|
+
id?: string;
|
|
72
|
+
/** The text of the ToDo */
|
|
73
|
+
text?: string;
|
|
74
|
+
/** The title of the ToDo */
|
|
75
|
+
title?: string;
|
|
76
|
+
/** The id of the Poll (present when type is "poll") */
|
|
77
|
+
pollId?: string;
|
|
78
|
+
/** The id of the room where the Poll was published */
|
|
79
|
+
roomId?: string;
|
|
80
|
+
/** Whether the current user has already voted on this Poll */
|
|
81
|
+
voted?: boolean;
|
|
82
|
+
/** The state of the Poll: "published" | "terminated" */
|
|
83
|
+
state?: string;
|
|
84
|
+
};
|
|
85
|
+
/** Creation date of the Notification (read only, set automatically on notification creation) in string format.
|
|
86
|
+
* Can be transformed to Date with new Date(creationDate);
|
|
87
|
+
*/
|
|
88
|
+
creationDate?: string;
|
|
89
|
+
}
|
|
90
|
+
export declare class NotificationCenterServiceRB extends Service implements NotificationCenterService {
|
|
91
|
+
private logger;
|
|
92
|
+
private contactService;
|
|
93
|
+
private authService;
|
|
94
|
+
private errorHelperService;
|
|
95
|
+
private xmppService;
|
|
96
|
+
private bubbleService;
|
|
97
|
+
private started;
|
|
98
|
+
private startingPromise;
|
|
99
|
+
private xmppSubscriptionHandlers;
|
|
100
|
+
private subscription;
|
|
101
|
+
private rxSubject;
|
|
102
|
+
static getInstance(): NotificationCenterServiceRB;
|
|
103
|
+
static build(): NotificationCenterServiceRB;
|
|
104
|
+
private constructor();
|
|
105
|
+
private notifications;
|
|
106
|
+
/** ******************************************************/
|
|
107
|
+
/** LIFE CYCLE STUFF */
|
|
108
|
+
/** ******************************************************/
|
|
109
|
+
private onConnectionStateChangeEvent;
|
|
110
|
+
attachHandlers(): void;
|
|
111
|
+
stop(): Promise<void>;
|
|
112
|
+
markAllMentionsRead(): void;
|
|
113
|
+
/** ******************************************************/
|
|
114
|
+
/** PUBLIC & PRIVATE APIS */
|
|
115
|
+
/** ******************************************************/
|
|
116
|
+
/** Get the list of the current notifications inside the notification center */
|
|
117
|
+
getNotifications(): Promise<NotificationCenterItem[]>;
|
|
118
|
+
private getAllNotificationsFromServer;
|
|
119
|
+
/**
|
|
120
|
+
* API USED BY CONVERSATION SERVICE
|
|
121
|
+
* When a new message contains a list of mentions, we need to create the mentions on the server via this API where we send the list of all mentionned
|
|
122
|
+
* rainbow users, the conversation, and the message itself
|
|
123
|
+
*/
|
|
124
|
+
mentionUsersInConversation(mentions: (Mention | MentionLegacy)[], conversation: Conversation, message: Message): Promise<void>;
|
|
125
|
+
/**
|
|
126
|
+
* API USED BY CONVERSATION SERVICE
|
|
127
|
+
* When a message is updated / deleted, we need to also update the mentions; We can either add, remove or do both in one single update of message
|
|
128
|
+
*/
|
|
129
|
+
updateMentionedUserInConversation(conversation: Conversation, message: Message, oldMentions?: (Mention | MentionLegacy)[], newMentions?: (Mention | MentionLegacy)[]): Promise<void>;
|
|
130
|
+
/**
|
|
131
|
+
* DELETE LIST OF MENTIONED USERS
|
|
132
|
+
*/
|
|
133
|
+
private deleteMentionedUsersInConversation;
|
|
134
|
+
private innerUpdateMentionUsersInConversation;
|
|
135
|
+
/**
|
|
136
|
+
* Send to other services via sendEvent()
|
|
137
|
+
* Can listen to it via notificationCenterService.subscribe() API
|
|
138
|
+
* @param name - the name of the event
|
|
139
|
+
* @param data -the data to be send (an object)
|
|
140
|
+
*/
|
|
141
|
+
sendEvent(name: NotificationCenterEvents, data?: any): void;
|
|
142
|
+
/**
|
|
143
|
+
* Subscribe to events send from the Notification Center Service (all events are of RBEvent type {name: string, data:any});
|
|
144
|
+
* @param handler - The call-back function that will be subscribed to the RxJS subject
|
|
145
|
+
* @returns Returns RxJS Subscription
|
|
146
|
+
*/
|
|
147
|
+
subscribe(handler: any): Subscription;
|
|
148
|
+
/** Mark a given notification as READ
|
|
149
|
+
* If the notification is already marked as READ, it does nothing
|
|
150
|
+
* On success, an event will be received NotificationCenterEvents.ON_NOTIFICATION_ACKREAD_UPDATE
|
|
151
|
+
* @param notification - the NotificationCenterItem to READ
|
|
152
|
+
*/
|
|
153
|
+
markNotificationAsRead(notification: NotificationCenterItem): Promise<void>;
|
|
154
|
+
/** Permanently deletes a given notification
|
|
155
|
+
* On success, an event will be received NotificationCenterEvents.ON_NOTIFICATIONS_LIST_UPDATE
|
|
156
|
+
* @param notification - the NotificationCenterItem to DELETE
|
|
157
|
+
*/
|
|
158
|
+
deleteNotification(notification: NotificationCenterItem): Promise<void>;
|
|
159
|
+
/** This API allows a user to bulk delete notifications by its IDs.
|
|
160
|
+
* Note: there is a maximum limit of 50 IDs per request.
|
|
161
|
+
* This API can only be used by user himself (i.e. userId of logged-in user = value of userId parameter in URL).
|
|
162
|
+
* @param notifications - the NotificationCenterItem[] to DELETE
|
|
163
|
+
*/
|
|
164
|
+
bulkDeleteNotification(notifications: NotificationCenterItem[]): any;
|
|
165
|
+
/** This API allows a user to bulk delete notifications based on scope ( all, read, unread ).
|
|
166
|
+
This API can only be used by user himself (i.e. userId of logged-in user = value of userId parameter in URL).
|
|
167
|
+
*/
|
|
168
|
+
bulkDeleteNotificationByScope(type: "mention" | "todo" | "poll", scope?: "all" | "read" | "unread"): Promise<void>;
|
|
169
|
+
/** This API allows a user to mark all users' notifications as read.
|
|
170
|
+
This API can only be used by user himself (i.e. userId of logged-in user = value of userId parameter in URL).
|
|
171
|
+
*/
|
|
172
|
+
bulkMarkNotificationAsRead(type?: "mention" | "todo" | "poll"): Promise<void>;
|
|
173
|
+
/** ******************************************************/
|
|
174
|
+
/** EVENTS MANAGEMENT */
|
|
175
|
+
/** ******************************************************/
|
|
176
|
+
private onManagementMessageReceived;
|
|
177
|
+
}
|
|
178
|
+
//# sourceMappingURL=notificationCenter.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationCenter.service.d.ts","sourceRoot":"","sources":["../../../src/services/notifications/notificationCenter.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AAGjG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAGnF,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAKzC,eAAO,MAAM,eAAe,gCAAgC,CAAC;AAE7D,MAAM,WAAW,yBAAyB;IACtC,+EAA+E;IAC/E,gBAAgB,EAAE,MAAM,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAAC;IAE1D;;;;OAIG;IACH,sBAAsB,EAAE,CAAC,YAAY,EAAE,sBAAsB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhF;;;OAGG;IACH,kBAAkB,EAAE,CAAC,YAAY,EAAE,sBAAsB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IA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IA6CnD;;;;;OAKG;IACI,SAAS,CAAC,IAAI,EAAE,wBAAwB,EAAE,IAAI,GAAE,GAAU;IAIjE;;;;OAIG;IACI,SAAS,CAAC,OAAO,KAAA,GAAG,YAAY;IAIvC;;;;OAIG;IACU,sBAAsB,CAAC,YAAY,EAAE,sBAAsB;IAiBxE;;;OAGG;IACU,kBAAkB,CAAC,YAAY,EAAE,sBAAsB;IAiBpE;;;;MAIE;IACW,sBAAsB,CAAC,aAAa,EAAE,sBAAsB,EAAE;IAsB3E;;MAEE;IACW,6BAA6B,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,EAAE,KAAK,GAAE,KAAK,GAAG,MAAM,GAAG,QAAiB;IAqBvH;;MAEE;IACW,0BAA0B,CAAC,IAAI,GAAE,SAAS,GAAG,MAAM,GAAG,MAAkB;IAoBrF,2DAA2D;IAC3D,0DAA0D;IAC1D,2DAA2D;IAE3D,OAAO,CAAC,2BAA2B;CAiKtC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { Subscription } from "rxjs";
|
|
2
|
+
import { RainbowNotification } from "@ale-rainbow/rainbow-notification";
|
|
3
|
+
import { Service } from "../../services/service";
|
|
4
|
+
export type ToastType = "success" | "warning" | "error" | "info";
|
|
5
|
+
export declare const NOTIF_VIEWER_SVC = "NotificationViewerService";
|
|
6
|
+
export declare class NotificationsViewerService extends Service {
|
|
7
|
+
callNotifVisible: boolean;
|
|
8
|
+
private rainbowNotifications;
|
|
9
|
+
private rainbowNotifSubject;
|
|
10
|
+
private readonly logger;
|
|
11
|
+
private readonly i18n;
|
|
12
|
+
private readonly ringingService;
|
|
13
|
+
private readonly telephonyService;
|
|
14
|
+
private readonly profileService;
|
|
15
|
+
private readonly settingsService;
|
|
16
|
+
private readonly webrtcP2PService;
|
|
17
|
+
private readonly contactService;
|
|
18
|
+
private readonly eventService;
|
|
19
|
+
private readonly urgencyLabels;
|
|
20
|
+
static getInstance(): NotificationsViewerService;
|
|
21
|
+
static build(): NotificationsViewerService;
|
|
22
|
+
private constructor();
|
|
23
|
+
emitNotification(notifConfig: any): RainbowNotification;
|
|
24
|
+
private replaceRelativeUnknowUserUrl;
|
|
25
|
+
private replaceRainbowRoomUrl;
|
|
26
|
+
private replaceRelativeDefaultChannelUrl;
|
|
27
|
+
private replaceRelativeDefaultLogoRainbowUrl;
|
|
28
|
+
private replaceHuntingGroupUrl;
|
|
29
|
+
private replace3PCCMakecallUrl;
|
|
30
|
+
private replace3PCCCallbackUrl;
|
|
31
|
+
hideNotification(id: string): void;
|
|
32
|
+
hideStopRingingNotification(id: string): void;
|
|
33
|
+
subscribe(handler: any): Subscription;
|
|
34
|
+
getRainbowNotificationIndexById(id: string): number;
|
|
35
|
+
getCallRainbowNotificationIndexById(id: string): number;
|
|
36
|
+
getRainbowNotificationByConvId(convId: string): RainbowNotification | undefined;
|
|
37
|
+
private translateNotification;
|
|
38
|
+
private checkVisibility;
|
|
39
|
+
answerFirstVisibleAudioCall(): void;
|
|
40
|
+
answerFirstVisibleVideoCall(): void;
|
|
41
|
+
declineFirstVisibleCall(): void;
|
|
42
|
+
getPermission(): string;
|
|
43
|
+
requestPermission(): Promise<string>;
|
|
44
|
+
emitToastNotification(type: ToastType, text: string, duration?: number, partialLayout?: boolean): void;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=notificationsViewer.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationsViewer.service.d.ts","sourceRoot":"","sources":["../../../src/services/notifications/notificationsViewer.service.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAIzC,OAAO,EAAE,mBAAmB,EAA6B,MAAM,mCAAmC,CAAC;AASnG,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAIhE,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAEjE,eAAO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OAAO,CAAC,qBAAqB;IAe7B,OAAO,CAAC,eAAe;IAIhB,2BAA2B,IAAI,IAAI;IAanC,2BAA2B,IAAI,IAAI;IAcnC,uBAAuB,IAAI,IAAI;IAkB/B,aAAa,IAAI,MAAM;IAKjB,iBAAiB;IASvB,qBAAqB,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAa,EAAE,aAAa,GAAE,OAAe,GAAG,IAAI;CAG7H"}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import type { Subscription } from "rxjs/internal/Subscription";
|
|
2
|
+
import { PersonalRoutine } from "../../models/personalRoutine.model";
|
|
3
|
+
import { Service } from "../../services/service";
|
|
4
|
+
export declare const PERSONAL_ROUTINES_SVC = "PersonalRoutinesService";
|
|
5
|
+
/**
|
|
6
|
+
* Collection of events fired by {@link PersonalRoutinesService}
|
|
7
|
+
* @public
|
|
8
|
+
* @readonly
|
|
9
|
+
*/
|
|
10
|
+
export declare enum PersonalRoutineEvent {
|
|
11
|
+
/**
|
|
12
|
+
* This event is fired when the personal routine list is updated (at start-up for example)
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
RAINBOW_ONPERSONALROUTINELISTUPDATED = "onpersonalroutinelistupdated",
|
|
16
|
+
/**
|
|
17
|
+
* This event is fired when a personal routine is being activated
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
RAINBOW_ONACTIVATINGPERSONALROUTINE = "onactivatingpersonalroutine",
|
|
21
|
+
/**
|
|
22
|
+
* This event is fired when a personal routine is activated
|
|
23
|
+
* @public
|
|
24
|
+
* @param routineId - ID of routine that has been activated
|
|
25
|
+
*/
|
|
26
|
+
RAINBOW_ONPERSONALROUTINEACTIVATED = "onpersonalroutineactivated",
|
|
27
|
+
/**
|
|
28
|
+
* This event is fired when a personal routine is updated
|
|
29
|
+
* @public
|
|
30
|
+
* @param routineId - ID of routine that has been updated
|
|
31
|
+
*/
|
|
32
|
+
RAINBOW_ONPERSONALROUTINEUPDATED = "onpersonalroutineupdated",
|
|
33
|
+
/**
|
|
34
|
+
* This event is fired when a personal routine is created
|
|
35
|
+
* @public
|
|
36
|
+
* @param routineId - ID of routine that has been created
|
|
37
|
+
*/
|
|
38
|
+
RAINBOW_ONPERSONALROUTINECREATED = "onpersonalroutinecreated",
|
|
39
|
+
/**
|
|
40
|
+
* This event is fired when a personal routine is deleted
|
|
41
|
+
* @public
|
|
42
|
+
* @param routineId - ID of routine that has been deleted
|
|
43
|
+
*/
|
|
44
|
+
RAINBOW_ONPERSONALROUTINEDELETED = "onpersonalroutinedeleted"
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* This service manages personal routines
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
export declare class PersonalRoutinesService extends Service {
|
|
51
|
+
/** *******************************************************/
|
|
52
|
+
/** Services used */
|
|
53
|
+
/** *******************************************************/
|
|
54
|
+
private logger;
|
|
55
|
+
private authService;
|
|
56
|
+
private xmppService;
|
|
57
|
+
private profileService;
|
|
58
|
+
private i18nService;
|
|
59
|
+
private errorHelperService;
|
|
60
|
+
private contactService;
|
|
61
|
+
private portalURL;
|
|
62
|
+
private listeners;
|
|
63
|
+
private xmppMessageHandler;
|
|
64
|
+
private _personalRoutines;
|
|
65
|
+
get personalRoutines(): PersonalRoutine[];
|
|
66
|
+
set personalRoutines(value: PersonalRoutine[]);
|
|
67
|
+
private _activatingRoutine;
|
|
68
|
+
get activatingRoutine(): boolean;
|
|
69
|
+
set activatingRoutine(value: boolean);
|
|
70
|
+
private rxSubject;
|
|
71
|
+
static getInstance(): PersonalRoutinesService;
|
|
72
|
+
static build(): PersonalRoutinesService;
|
|
73
|
+
private constructor();
|
|
74
|
+
/** **********************************************************/
|
|
75
|
+
/** OBSERVABLE STUFF */
|
|
76
|
+
subscribe(callback: any): Subscription;
|
|
77
|
+
sendEvent(type: PersonalRoutineEvent, value: any): void;
|
|
78
|
+
start(): Promise<void>;
|
|
79
|
+
stop(): void;
|
|
80
|
+
reconnect(attempt?: number): Promise<void>;
|
|
81
|
+
attachHandlers(): void;
|
|
82
|
+
private onHeadlineMessageReceived;
|
|
83
|
+
private onPersonalRoutineActivation;
|
|
84
|
+
private onPersonalRoutineUpdate;
|
|
85
|
+
private onPersonalRoutineCreated;
|
|
86
|
+
private onPersonalRoutineDeleted;
|
|
87
|
+
/**
|
|
88
|
+
* Get the personal routine currently active
|
|
89
|
+
* @public
|
|
90
|
+
* @returns active personal routine object
|
|
91
|
+
*/
|
|
92
|
+
getActiveRoutine(): PersonalRoutine;
|
|
93
|
+
/**
|
|
94
|
+
* Get the first personal routine that is not the default work routine
|
|
95
|
+
* @public
|
|
96
|
+
* @returns first personal routine that is not the default work routine
|
|
97
|
+
*/
|
|
98
|
+
getFirstNoWorkRoutine(): PersonalRoutine;
|
|
99
|
+
/**
|
|
100
|
+
* Get personal routines of user, except the default work routine
|
|
101
|
+
* @public
|
|
102
|
+
* @returns array of personal routines
|
|
103
|
+
*/
|
|
104
|
+
getPersonalRoutinesExceptWork(): PersonalRoutine[];
|
|
105
|
+
getRoutineById(routineId: string): PersonalRoutine;
|
|
106
|
+
/**
|
|
107
|
+
* Activate a personal routine
|
|
108
|
+
* @public
|
|
109
|
+
* @param routineId - id of routine to activate
|
|
110
|
+
* @param userId - id of the user for which the routine is activated (used by supervisors only). If not set, the user modified is the logged user
|
|
111
|
+
* @returns resolves with the routine data from server
|
|
112
|
+
*/
|
|
113
|
+
activatePersonalRoutine(routineId: string, userId?: string): Promise<any>;
|
|
114
|
+
/**
|
|
115
|
+
* Retrieve a personal routine from server by its ID
|
|
116
|
+
* @public
|
|
117
|
+
* @param routineId - id of routine to retrieve
|
|
118
|
+
* @param updateLocalData - whether we should update local personal routine data. Default value: false
|
|
119
|
+
* @returns resolves with the personal routine
|
|
120
|
+
*/
|
|
121
|
+
retrievePersonalRoutineFromServer(routineId: string, updateLocalData?: boolean): Promise<PersonalRoutine>;
|
|
122
|
+
/**
|
|
123
|
+
* Retrieve all personal routines from server
|
|
124
|
+
* @public
|
|
125
|
+
* @param updateLocalData - whether we should update local personal routine data. Default value: false
|
|
126
|
+
* @returns resolves with the personal routines data from server
|
|
127
|
+
*/
|
|
128
|
+
retrieveAllPersonalRoutinesFromServer(updateLocalData?: boolean): Promise<any>;
|
|
129
|
+
/**
|
|
130
|
+
* Retrieve all personal routines from server for a given contact
|
|
131
|
+
* @public
|
|
132
|
+
* @param userId - Identifier of the user for which we want to get the personal routines.
|
|
133
|
+
* @returns resolves with the personal routines data from server
|
|
134
|
+
*/
|
|
135
|
+
retrieveAllPersonalRoutinesForContactFromServer(userId: string): Promise<any>;
|
|
136
|
+
/**
|
|
137
|
+
* Updates a personal routine data
|
|
138
|
+
* @public
|
|
139
|
+
* @param routineId - id of routine to update
|
|
140
|
+
* @param data - data for update
|
|
141
|
+
* @returns resolves with the updated personal routine data from server
|
|
142
|
+
*/
|
|
143
|
+
updatePersonalRoutine(routineId: string, data: any): Promise<any>;
|
|
144
|
+
/**
|
|
145
|
+
* Creates a custom personal routine
|
|
146
|
+
* @public
|
|
147
|
+
* @param name - name of new personal routine
|
|
148
|
+
* @returns resolves with the newly created personal routine data
|
|
149
|
+
*/
|
|
150
|
+
createCustomPersonalRoutine(name: string): Promise<any>;
|
|
151
|
+
/**
|
|
152
|
+
* Delete a custom personal routine
|
|
153
|
+
* @public
|
|
154
|
+
* @param routineId - unique identifier of routine to be deleted
|
|
155
|
+
* @returns resolves when routine is deleted
|
|
156
|
+
*/
|
|
157
|
+
deleteCustomPersonalRoutine(routineId: string): Promise<void>;
|
|
158
|
+
}
|
|
159
|
+
//# sourceMappingURL=personal-routines.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"personal-routines.service.d.ts","sourceRoot":"","sources":["../../../src/services/personalRoutines/personal-routines.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,C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AAY,EAAE,YAAY,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import type { Observable } from "rxjs";
|
|
2
|
+
import { Service } from "../../services/service";
|
|
3
|
+
import { Poll } from "../../models/poll.model";
|
|
4
|
+
import type { Bubble } from "../../models/bubble.model";
|
|
5
|
+
export declare const POLLS_SVC = "PollsService";
|
|
6
|
+
export interface PollsService {
|
|
7
|
+
/**
|
|
8
|
+
* Get the polls array observable
|
|
9
|
+
* @param bubbleRef - The concerned Bubble
|
|
10
|
+
* @returns an array observable of Polls
|
|
11
|
+
*/
|
|
12
|
+
getRoomPolls: (bubbleRef: Bubble | string) => Observable<Poll[] | null>;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve Poll object already cached from Poll Id and Room Id
|
|
15
|
+
* @param roomId - id of the room
|
|
16
|
+
* @param pollId - id of the poll
|
|
17
|
+
* @returns a Poll Object if found
|
|
18
|
+
*/
|
|
19
|
+
getRoomPollById: (roomId: string, pollId: string) => Poll | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Fetch the list of polls for a given room directly from the server, without caching.
|
|
22
|
+
* Unlike {@link getRoomPolls}, this method always performs a network request and does not
|
|
23
|
+
* update the internal observable cache.
|
|
24
|
+
* @param roomId - The identifier of the room whose polls should be retrieved
|
|
25
|
+
* @returns A promise resolving to the array of {@link Poll} objects for the room
|
|
26
|
+
* @throws An error if the network request fails
|
|
27
|
+
*/
|
|
28
|
+
getRoomPollsList: (roomId: string) => Promise<Poll[]>;
|
|
29
|
+
/**
|
|
30
|
+
* Create a Poll server side from a Poll object
|
|
31
|
+
* @param poll - the Poll to create server side
|
|
32
|
+
* @returns the updated Poll object
|
|
33
|
+
*/
|
|
34
|
+
createPoll: (poll: Poll) => Promise<Poll>;
|
|
35
|
+
/**
|
|
36
|
+
* Update a Poll server side from a Poll object
|
|
37
|
+
* @param poll - the Poll to update
|
|
38
|
+
* @returns the updated Poll
|
|
39
|
+
*/
|
|
40
|
+
updatePoll: (poll: Poll) => Promise<Poll>;
|
|
41
|
+
/**
|
|
42
|
+
* Get Poll info from server
|
|
43
|
+
* @param poll - the Poll you want info form
|
|
44
|
+
* @param format - the format of the Poll you want (small, medium, full)
|
|
45
|
+
* @returns the updated Poll
|
|
46
|
+
*/
|
|
47
|
+
updatePollFromServer: (poll: Poll, format?: string) => Promise<Poll>;
|
|
48
|
+
/**
|
|
49
|
+
* Get the Poll from its identifier
|
|
50
|
+
* @param pollId - the Poll identifier
|
|
51
|
+
* @returns the wanted Poll
|
|
52
|
+
*/
|
|
53
|
+
getPoll: (pollId: string) => Promise<Poll>;
|
|
54
|
+
/**
|
|
55
|
+
* Publish the Poll (changing its state to 'published', people will be able to vote, you won't be able to edit the Poll)
|
|
56
|
+
* @param poll - the Poll to publish
|
|
57
|
+
* @returns the updated Poll
|
|
58
|
+
*/
|
|
59
|
+
publishPoll: (poll: Poll) => Promise<Poll>;
|
|
60
|
+
/**
|
|
61
|
+
* Unpublish the Poll (changing its state to 'unpublished', people won't be able to vote but you will be able to edit the Poll)
|
|
62
|
+
* @param poll - the Poll to unpublish
|
|
63
|
+
* @returns the updated Poll
|
|
64
|
+
*/
|
|
65
|
+
unpublishPoll: (poll: Poll) => Promise<Poll>;
|
|
66
|
+
/**
|
|
67
|
+
* Delete the Poll
|
|
68
|
+
* @param poll - the Poll to delete
|
|
69
|
+
*/
|
|
70
|
+
deletePoll: (poll: Poll) => Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* Vote for a Poll
|
|
73
|
+
* @param poll - the Poll to vote for
|
|
74
|
+
* @returns the updated Poll
|
|
75
|
+
*/
|
|
76
|
+
votePoll: (poll: Poll) => Promise<Poll>;
|
|
77
|
+
/**
|
|
78
|
+
* Terminate a Poll (changing its state to 'terminated', no one will be able to vote anymore)
|
|
79
|
+
* @param poll - the Poll to terminate
|
|
80
|
+
* @returns the updated Poll
|
|
81
|
+
*/
|
|
82
|
+
terminatePoll: (poll: Poll) => Promise<Poll>;
|
|
83
|
+
/**
|
|
84
|
+
* Export a poll in CSV format file
|
|
85
|
+
* @param poll - the poll to export
|
|
86
|
+
* @param filename - the export filename
|
|
87
|
+
*/
|
|
88
|
+
exportAsCSV: (poll: Poll, filename: string) => Promise<void>;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @module
|
|
92
|
+
* This service manages polls in Rainbow.
|
|
93
|
+
*/
|
|
94
|
+
export declare class PollsServiceRB extends Service implements PollsService {
|
|
95
|
+
private mainService;
|
|
96
|
+
private contactService;
|
|
97
|
+
private logger;
|
|
98
|
+
private authService;
|
|
99
|
+
private xmppService;
|
|
100
|
+
private bubbleService;
|
|
101
|
+
private errorHelperService;
|
|
102
|
+
private eventService;
|
|
103
|
+
private xmppSubscription;
|
|
104
|
+
private xmppListeners;
|
|
105
|
+
private pollsObs;
|
|
106
|
+
private started;
|
|
107
|
+
/**
|
|
108
|
+
* Get the pollsService singleton
|
|
109
|
+
* @returns the pollsService singleton
|
|
110
|
+
*/
|
|
111
|
+
static getInstance(): PollsServiceRB;
|
|
112
|
+
static build(): PollsServiceRB;
|
|
113
|
+
start(): Promise<void>;
|
|
114
|
+
stop(): Promise<void>;
|
|
115
|
+
reconnect(): Promise<void>;
|
|
116
|
+
private constructor();
|
|
117
|
+
attachListeners(): void;
|
|
118
|
+
getRoomPolls(bubbleRef: Bubble | string): Observable<Poll[] | null>;
|
|
119
|
+
getRoomPollsList(roomId: string): Promise<Poll[]>;
|
|
120
|
+
getPoll(pollId: string): Promise<Poll>;
|
|
121
|
+
private isRoomPollsLoaded;
|
|
122
|
+
getRoomPollById(roomId: string, pollId: string): Poll | undefined;
|
|
123
|
+
updatePollFromServer(poll: Poll, format?: string): Promise<Poll>;
|
|
124
|
+
publishPoll(poll: Poll): Promise<Poll>;
|
|
125
|
+
unpublishPoll(poll: Poll): Promise<Poll>;
|
|
126
|
+
terminatePoll(poll: Poll): Promise<Poll>;
|
|
127
|
+
deletePoll(poll: Poll): Promise<void>;
|
|
128
|
+
createPoll(poll: Poll): Promise<Poll>;
|
|
129
|
+
updatePoll(poll: Poll): Promise<Poll>;
|
|
130
|
+
votePoll(poll: Poll): Promise<Poll>;
|
|
131
|
+
private onAdminMessage;
|
|
132
|
+
private onEventMessage;
|
|
133
|
+
private onRoomMessage;
|
|
134
|
+
exportAsCSV(poll: Poll, filename: string): Promise<void>;
|
|
135
|
+
private getPollStats;
|
|
136
|
+
private getPollUsersStat;
|
|
137
|
+
private getPollQuestionStats;
|
|
138
|
+
}
|
|
139
|
+
//# sourceMappingURL=polls.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polls.service.d.ts","sourceRoot":"","sources":["../../../src/services/polls/polls.service.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAgB,MAAM,MAAM,CAAC;AAMrD,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAEhE,OAAO,EAAE,IAAI,EAAE,MAAM,wCAAwC,CAAC;AAE9D,OAAO,KAAK,EAAE,MAAM,EAAc,MAAM,0CAA0C,CAAC;AAMnF,eAAO,MAAM,SAAS,iBAAiB,CAAC;AAIxC,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,KAAK,UAAU,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;IAExE;;;;;OAKG;IACH,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,GAAG,SAAS,CAAC;IAEtE;;;;;;;OAOG;IACH,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IAEtD;;;;OAIG;IACH,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1C;;;;OAIG;IACH,UAAU,EAA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