@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,535 @@
|
|
|
1
|
+
import { Service } from "../../services/service";
|
|
2
|
+
import type { CallRB } from "../../models/call.model";
|
|
3
|
+
export declare const RINGING_SVC = "RingingService";
|
|
4
|
+
export declare enum NotificationType {
|
|
5
|
+
NOTIFICATIONTYPE_STANDARD = "std",
|
|
6
|
+
NOTIFICATIONTYPE_LOW = "low",
|
|
7
|
+
NOTIFICATIONTYPE_MIDDLE = "middle",
|
|
8
|
+
NOTIFICATIONTYPE_HIGH = "high"
|
|
9
|
+
}
|
|
10
|
+
interface IAudioTone {
|
|
11
|
+
audio: HTMLAudioElement;
|
|
12
|
+
starting: boolean;
|
|
13
|
+
stopDefered?: any;
|
|
14
|
+
id?: string;
|
|
15
|
+
type?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class RingingService extends Service {
|
|
18
|
+
private settingsService;
|
|
19
|
+
private contactService;
|
|
20
|
+
private profileService;
|
|
21
|
+
private roomService;
|
|
22
|
+
private deviceManagementService;
|
|
23
|
+
private supervisionService;
|
|
24
|
+
private telephonyService;
|
|
25
|
+
private telephonyServiceSipWise;
|
|
26
|
+
private presenceHelperService;
|
|
27
|
+
private callRecorderService;
|
|
28
|
+
private eventService;
|
|
29
|
+
private logger;
|
|
30
|
+
private webrtcP2PService;
|
|
31
|
+
private bubbleConferenceService;
|
|
32
|
+
notifs: string[];
|
|
33
|
+
alarms: string[];
|
|
34
|
+
emergencyAlarms: string[];
|
|
35
|
+
emergencyRingTone: [string, Blob][];
|
|
36
|
+
private currentEmergencyRingToneUrl;
|
|
37
|
+
private huntingGroups;
|
|
38
|
+
audioFileType: string;
|
|
39
|
+
private static readonly RECORD_VOICE_LANGUAGES;
|
|
40
|
+
private startRecordTone;
|
|
41
|
+
private stopRecordTone;
|
|
42
|
+
private startRecordVoiceTone;
|
|
43
|
+
private stopRecordVoiceTone;
|
|
44
|
+
private joinWebConfTone;
|
|
45
|
+
private alarmNotifOnce;
|
|
46
|
+
private audioNotifOnce;
|
|
47
|
+
private pingAudio;
|
|
48
|
+
private pingAudioSecondary;
|
|
49
|
+
private pushToTalkActivateTone;
|
|
50
|
+
private pushToTalkDeactivateTone;
|
|
51
|
+
private informationImSoundAudio;
|
|
52
|
+
private informationImSoundAudioSecondary;
|
|
53
|
+
private importantImSoundAudio;
|
|
54
|
+
private importantImSoundAudioSecondary;
|
|
55
|
+
private emergencyImSoundAudio;
|
|
56
|
+
private emergencyImSoundAudioSecondary;
|
|
57
|
+
private webrtcBusyTone;
|
|
58
|
+
private webrtcRaiseHandTone;
|
|
59
|
+
private incomingRingingTone;
|
|
60
|
+
private incomingRingingSecondaryTone;
|
|
61
|
+
private ringbackTone;
|
|
62
|
+
private secondCallTone;
|
|
63
|
+
private holdTone;
|
|
64
|
+
activeSupervisorRingingTone: Partial<IAudioTone>;
|
|
65
|
+
activeSupervisorRingingToneSecondary: Partial<IAudioTone>;
|
|
66
|
+
supervisorRingingToneOffRequested: boolean;
|
|
67
|
+
informationImSound: string;
|
|
68
|
+
importantImSound: string;
|
|
69
|
+
emergencyImSound: string;
|
|
70
|
+
activeNotif: string;
|
|
71
|
+
activeAlarm: string;
|
|
72
|
+
private isStartIncomingRingingRequest;
|
|
73
|
+
private incomingRingingWatchdog?;
|
|
74
|
+
private readonly INCOMING_RINGING_MAX_DURATION;
|
|
75
|
+
private stopWebrtcSounds;
|
|
76
|
+
private subscriptions;
|
|
77
|
+
private listeners;
|
|
78
|
+
private alertSoundLevel;
|
|
79
|
+
private alertSoundLevelInCall;
|
|
80
|
+
static getInstance(): RingingService;
|
|
81
|
+
static build(): RingingService;
|
|
82
|
+
private constructor();
|
|
83
|
+
/** ******************************************************/
|
|
84
|
+
/** LIFE CYCLE STUFF */
|
|
85
|
+
/** ******************************************************/
|
|
86
|
+
start(): Promise<void>;
|
|
87
|
+
stop(): Promise<void>;
|
|
88
|
+
/** ******************************************************/
|
|
89
|
+
/** EVENT HANDLING */
|
|
90
|
+
/** ******************************************************/
|
|
91
|
+
private addListeners;
|
|
92
|
+
private onAudioOutputDeviceChange;
|
|
93
|
+
private onSecondaryAudioOutputDeviceChange;
|
|
94
|
+
/** *******************************************************************/
|
|
95
|
+
/** PRIVATE FUNCTIONS */
|
|
96
|
+
/** *******************************************************************/
|
|
97
|
+
private manageOnWebrtcBusy;
|
|
98
|
+
private manageOnWebrtcRaiseHand;
|
|
99
|
+
/**
|
|
100
|
+
* Method setAudioCapability
|
|
101
|
+
* Define type (mp3 or Ogg Vorbis) that will be used for audio files.
|
|
102
|
+
* Ogg Vorbis is preferred if the current browser is able to play media of this type.
|
|
103
|
+
* Otherwise mp3 is used.
|
|
104
|
+
* @memberof RingingService
|
|
105
|
+
* @private
|
|
106
|
+
*/
|
|
107
|
+
private setAudioCapability;
|
|
108
|
+
/**
|
|
109
|
+
* Method loadRecordVoiceTones
|
|
110
|
+
* (Re)create the spoken "recording started/stopped" voice tones for the current application
|
|
111
|
+
* language. Called at startup and each time the user changes the display language.
|
|
112
|
+
* Only loaded if a voice file exists for that language, otherwise left null.
|
|
113
|
+
* @memberof RingingService
|
|
114
|
+
* @private
|
|
115
|
+
*/
|
|
116
|
+
private loadRecordVoiceTones;
|
|
117
|
+
/**
|
|
118
|
+
* Method getRecordVoiceLanguage
|
|
119
|
+
* Returns the simple language code (e.g. "fr", "es") of the user's current application
|
|
120
|
+
* language if a spoken recording voice file is available for it, otherwise null.
|
|
121
|
+
* @memberof RingingService
|
|
122
|
+
* @private
|
|
123
|
+
* @returns {string} simple language code or null when no voice file exists
|
|
124
|
+
*/
|
|
125
|
+
private getRecordVoiceLanguage;
|
|
126
|
+
/**
|
|
127
|
+
* Method isUserStillInCall
|
|
128
|
+
* Tells whether the user is still engaged in a call of any kind (webrtc p2p, conference,
|
|
129
|
+
* webinar or PBX/telephony). Used to decide if a deferred recording voice tone is still
|
|
130
|
+
* relevant when the beep has finished playing.
|
|
131
|
+
* @memberof RingingService
|
|
132
|
+
* @private
|
|
133
|
+
* @returns {boolean} true if the user is still in at least one active call
|
|
134
|
+
*/
|
|
135
|
+
private isUserStillInCall;
|
|
136
|
+
/**
|
|
137
|
+
* Method playRecordVoiceTone
|
|
138
|
+
* Play the spoken recording voice tone right after the associated beep has finished.
|
|
139
|
+
* Does nothing if no voice tone is loaded (no voice file for the user's language).
|
|
140
|
+
* @memberof RingingService
|
|
141
|
+
* @private
|
|
142
|
+
* @param {HTMLAudioElement} beep the beep tone that must finish first
|
|
143
|
+
* @param {HTMLAudioElement} voice the spoken voice tone to play once the beep ended
|
|
144
|
+
*/
|
|
145
|
+
private playRecordVoiceTone;
|
|
146
|
+
private manageEmergencyNotifs;
|
|
147
|
+
/**
|
|
148
|
+
* loadEmergencyRingTones
|
|
149
|
+
* Fill emergencyRingTone with the alternate ring tone audio file of each hunting group / call queue
|
|
150
|
+
* that has one configured (selectedRingToneFileId), keyed by groupId
|
|
151
|
+
*/
|
|
152
|
+
private loadEmergencyRingTones;
|
|
153
|
+
/**
|
|
154
|
+
* onGreetingRingToneUpdateEvent
|
|
155
|
+
* Update emergencyRingTone when a hunting group / call queue ring tone greeting is uploaded, activated or restored
|
|
156
|
+
* @param payload { groupId, greetingId, action, fileId, fileName, isDefault, status } as published by TelephonySipWiseEventHandler
|
|
157
|
+
*/
|
|
158
|
+
private onGreetingRingToneUpdateEvent;
|
|
159
|
+
private setEmergencyAlarm;
|
|
160
|
+
private setActive;
|
|
161
|
+
private shouldPlayImNotif;
|
|
162
|
+
private shouldPlaySupervisorNotif;
|
|
163
|
+
/**
|
|
164
|
+
* Method play
|
|
165
|
+
* Play the specified audio tone
|
|
166
|
+
* This function is adapted for play() method returning a Promise or not.
|
|
167
|
+
* Note: The recent Audio.play() implementation in javascript does return a Promise
|
|
168
|
+
* @memberof RingingService
|
|
169
|
+
* @private
|
|
170
|
+
* @param {any} tone Audio to play (IM notif, Audio tone ...)
|
|
171
|
+
* @param {number} count Counter used before stopping the ringing forcibly
|
|
172
|
+
* @returns {void} Returns no specific value
|
|
173
|
+
*/
|
|
174
|
+
private play;
|
|
175
|
+
/**
|
|
176
|
+
* Method addEvents
|
|
177
|
+
* Add an event on the specified audio object (based on HTMLAudioElement)
|
|
178
|
+
* @memberof RingingService
|
|
179
|
+
* @private
|
|
180
|
+
* @param {HTMLAudioElement} audioObject Audio resource
|
|
181
|
+
* @param {any} alarm Audio infomation (name)
|
|
182
|
+
*/
|
|
183
|
+
private addEvents;
|
|
184
|
+
/**
|
|
185
|
+
* Callback method called on reception of ON_PRESS_PUSH_TO_TALK_EVENT event
|
|
186
|
+
*/
|
|
187
|
+
private playActivatePtT;
|
|
188
|
+
/**
|
|
189
|
+
* Callback method called on reception of ON_RELEASE_PUSH_TO_TALK_EVENT event
|
|
190
|
+
*/
|
|
191
|
+
private playDeactivatePtT;
|
|
192
|
+
/**
|
|
193
|
+
* Method stopRingBackToneDefered
|
|
194
|
+
* Stop playing the ringback tone in a delayed way
|
|
195
|
+
* @memberof RingingService
|
|
196
|
+
* @private
|
|
197
|
+
* @param {number} count Counter used to check if the ringing should be stopped forcibly
|
|
198
|
+
*/
|
|
199
|
+
private stopRingBackToneDefered;
|
|
200
|
+
/**
|
|
201
|
+
* Method stopIncomingRingingDefered
|
|
202
|
+
* Stop playing the Incoming Call ringing tone in a delayed way
|
|
203
|
+
* @memberof RingingService
|
|
204
|
+
* @private
|
|
205
|
+
* @param {number} count Counter used to check if the Incoming Call ringing should be stopped forcibly
|
|
206
|
+
*/
|
|
207
|
+
private stopIncomingRingingDefered;
|
|
208
|
+
/**
|
|
209
|
+
* Method stopIncomingRingingSecondaryDefered
|
|
210
|
+
* Stop playing the Incoming Call ringing tone on secondary device in a delayed way
|
|
211
|
+
* @memberof RingingService
|
|
212
|
+
* @private
|
|
213
|
+
* @param {number} count Counter used to check if the Incoming Call ringing should be stopped forcibly
|
|
214
|
+
*/
|
|
215
|
+
private stopIncomingRingingSecondaryDefered;
|
|
216
|
+
/**
|
|
217
|
+
* Method stopSecondToneDefered
|
|
218
|
+
* Stop playing the secondary call incoming tone in a delayed way
|
|
219
|
+
* @memberof RingingService
|
|
220
|
+
* @private
|
|
221
|
+
*/
|
|
222
|
+
private stopSecondToneDefered;
|
|
223
|
+
/**
|
|
224
|
+
* Method stopHoldToneDefered
|
|
225
|
+
* Stop playing the Web conference tonein a delayed way
|
|
226
|
+
* @memberof RingingService
|
|
227
|
+
* @private
|
|
228
|
+
*/
|
|
229
|
+
private stopHoldToneDefered;
|
|
230
|
+
/** *******************************************************************/
|
|
231
|
+
/** PUBLIC FUNCTIONS */
|
|
232
|
+
/** *******************************************************************/
|
|
233
|
+
/**
|
|
234
|
+
* Method getAudioFileType
|
|
235
|
+
* Returns type (mp3 or Ogg Vorbis) that will be used for audio files.
|
|
236
|
+
* @memberof RingingService
|
|
237
|
+
* @private
|
|
238
|
+
* @returns {string} Returns type (mp3 or Ogg Vorbis) that will be used for audio files.
|
|
239
|
+
*/
|
|
240
|
+
getAudioFileType(): string;
|
|
241
|
+
/**
|
|
242
|
+
* Method playWebConferenceJoinNotif
|
|
243
|
+
* Play a tone when a participant has joined a Web conference
|
|
244
|
+
* Callback method called on reception of ON_WEB_CONFENRECE_PARTICIPANT_JOINED_EVENT event
|
|
245
|
+
* @memberof RingingService
|
|
246
|
+
* @private
|
|
247
|
+
* @param {Event} __event Native event
|
|
248
|
+
* @param {any} confSession Web Conference Session
|
|
249
|
+
*/
|
|
250
|
+
playWebConferenceJoinNotif(__event: Event, confSession: any): Promise<void>;
|
|
251
|
+
/**
|
|
252
|
+
* Method playWebrtcBusyTone
|
|
253
|
+
* Play a busy tone when a webrtc outgoing call is rejected because called is busy
|
|
254
|
+
* @memberof RingingService
|
|
255
|
+
* @private
|
|
256
|
+
*/
|
|
257
|
+
playWebrtcBusyTone(): Promise<void>;
|
|
258
|
+
/**
|
|
259
|
+
* Method playWebrtcRaiseHandTone
|
|
260
|
+
* Play a tone when someone raises their hand in a conference (excluding me)
|
|
261
|
+
* @memberof RingingService
|
|
262
|
+
* @private
|
|
263
|
+
*/
|
|
264
|
+
playWebrtcRaiseHandTone(level?: number): Promise<void>;
|
|
265
|
+
/**
|
|
266
|
+
* Method setActiveAlarm
|
|
267
|
+
* Set the specified alarm as active
|
|
268
|
+
* @memberof RingingService
|
|
269
|
+
* @private
|
|
270
|
+
* @param {any} alarm Name of the alarm to set as active, one of defined in 'alarms' array
|
|
271
|
+
*/
|
|
272
|
+
setActiveAlarm(alarm: any): void;
|
|
273
|
+
/**
|
|
274
|
+
* Method setActiveAlarm
|
|
275
|
+
* Activate and configure the secondary ringer
|
|
276
|
+
* @memberof RingingService
|
|
277
|
+
* @private
|
|
278
|
+
*/
|
|
279
|
+
activateSecondaryRinger(): void;
|
|
280
|
+
changePlayMessagingNotifOnSecondaryRinger(playMessagingNotifOnSecondaryRinger: boolean): void;
|
|
281
|
+
/**
|
|
282
|
+
* Method playAlarmOnce
|
|
283
|
+
* Play once the specified alarm
|
|
284
|
+
* @memberof RingingService
|
|
285
|
+
* @private
|
|
286
|
+
* @param {any} alarm Name of the alarm to play, one of defined in 'alarms' array
|
|
287
|
+
*/
|
|
288
|
+
playAlarmOnce(alarm: any): void;
|
|
289
|
+
/**
|
|
290
|
+
* Method stopAlarmOnce
|
|
291
|
+
* stop the alarm that asked to be played only once
|
|
292
|
+
* @memberof RingingService
|
|
293
|
+
* @private
|
|
294
|
+
*/
|
|
295
|
+
stopAlarmOnce(): void;
|
|
296
|
+
/**
|
|
297
|
+
* Method alarmCurPlay
|
|
298
|
+
* Check if the alarm that asked to be played only once is currently playing
|
|
299
|
+
* @memberof RingingService
|
|
300
|
+
* @private
|
|
301
|
+
* @returns {boolean} Returns true
|
|
302
|
+
*/
|
|
303
|
+
alarmCurPlay(): boolean;
|
|
304
|
+
/**
|
|
305
|
+
* Method setActiveNotif
|
|
306
|
+
* Set the specified notification (for example, for chat) as active
|
|
307
|
+
* @memberof RingingService
|
|
308
|
+
* @private
|
|
309
|
+
* @param {any} notif Name of the notification to set as active, one of defined in 'notifs' array
|
|
310
|
+
*/
|
|
311
|
+
setActiveNotif(notif: any): void;
|
|
312
|
+
/**
|
|
313
|
+
* Method playNotifOnce
|
|
314
|
+
* Play once the specified notification
|
|
315
|
+
* @memberof RingingService
|
|
316
|
+
* @private
|
|
317
|
+
* @param {any} notif Name of the notification to play, one of defined in 'notifs' array
|
|
318
|
+
*/
|
|
319
|
+
playNotifOnce(notif: any): void;
|
|
320
|
+
/**
|
|
321
|
+
* Method stopNotifOnce
|
|
322
|
+
* stop the notification that asked to be played only once
|
|
323
|
+
* @memberof RingingService
|
|
324
|
+
* @private
|
|
325
|
+
*/
|
|
326
|
+
stopNotifOnce(): void;
|
|
327
|
+
/**
|
|
328
|
+
* Method notifCurPlay
|
|
329
|
+
* Check if the notification that asked to be played only once is currently playing
|
|
330
|
+
* @memberof RingingService
|
|
331
|
+
* @private
|
|
332
|
+
* @returns {boolean} Returns true
|
|
333
|
+
*/
|
|
334
|
+
notifCurPlay(): boolean;
|
|
335
|
+
/**
|
|
336
|
+
* Method setInformationImSound
|
|
337
|
+
* Set the sound for notification regarding information IM
|
|
338
|
+
* @memberof RingingService
|
|
339
|
+
* @private
|
|
340
|
+
* @param {any} notif Set Name of the sound to play as notification for information IM, one of defined in 'notifs' array
|
|
341
|
+
*/
|
|
342
|
+
setInformationImSound(notif: any): void;
|
|
343
|
+
/**
|
|
344
|
+
* Method setImportantImSound
|
|
345
|
+
* Set the sound for notification regarding important IM
|
|
346
|
+
* @memberof RingingService
|
|
347
|
+
* @private
|
|
348
|
+
* @param {any} notif Name of the sound to play as notification for important IM, one of defined in 'notifs' array
|
|
349
|
+
*/
|
|
350
|
+
setImportantImSound(notif: any): void;
|
|
351
|
+
/**
|
|
352
|
+
* Method setEmergencyImSound
|
|
353
|
+
* Set the sound for notification regarding emergency IM
|
|
354
|
+
* @memberof RingingService
|
|
355
|
+
* @private
|
|
356
|
+
* @param {any} notif Name of the sound to play as notification for emergency IM, one of defined in 'notifs' array
|
|
357
|
+
*/
|
|
358
|
+
setEmergencyImSound(notif: any): void;
|
|
359
|
+
/**
|
|
360
|
+
* Method stopUrgencyNotif
|
|
361
|
+
* stop the sound played as notification for emergency IM
|
|
362
|
+
* @memberof RingingService
|
|
363
|
+
* @private
|
|
364
|
+
*/
|
|
365
|
+
stopUrgencyNotif(): void;
|
|
366
|
+
/**
|
|
367
|
+
* Method playCustomNotif
|
|
368
|
+
* Play the specified custom notification
|
|
369
|
+
* @memberof RingingService
|
|
370
|
+
* @private
|
|
371
|
+
* @param {string} typeNotif Type of notification to play
|
|
372
|
+
*/
|
|
373
|
+
playCustomNotif(typeNotif: string): Promise<void>;
|
|
374
|
+
/**
|
|
375
|
+
* Method startRingBackTone
|
|
376
|
+
* Start playing the ringback tone
|
|
377
|
+
* @memberof RingingService
|
|
378
|
+
* @private
|
|
379
|
+
* @param {boolean} isWebrtcCall True if we are in a WebRTC call usecase
|
|
380
|
+
*/
|
|
381
|
+
startRingBackTone(isWebrtcCall: boolean): Promise<void>;
|
|
382
|
+
/**
|
|
383
|
+
* Method stopRingBackTone
|
|
384
|
+
* Stop playing the ringback tone
|
|
385
|
+
* @memberof RingingService
|
|
386
|
+
* @private
|
|
387
|
+
* @param {number} count Counter used to stop forcibly the ringback tone
|
|
388
|
+
*/
|
|
389
|
+
stopRingBackTone(count?: number): void;
|
|
390
|
+
/**
|
|
391
|
+
* findMatchingHuntingGroupId
|
|
392
|
+
* resolves the id of the hunting group / call queue the incoming call belongs to, if any.
|
|
393
|
+
* the call itself carries no id directly comparable to a group's id, so the match is done on
|
|
394
|
+
* the called party's phone number (shortNumber/externalNumber) or display name (name)
|
|
395
|
+
* @param call incoming call
|
|
396
|
+
*/
|
|
397
|
+
private findMatchingHuntingGroupId;
|
|
398
|
+
/**
|
|
399
|
+
* applyEmergencyRingTone
|
|
400
|
+
* sets the incoming ringing tone audio source to the call's hunting group alternate ring tone if any,
|
|
401
|
+
* otherwise resets it to the default alarm sound
|
|
402
|
+
* @param call incoming call
|
|
403
|
+
*/
|
|
404
|
+
private applyEmergencyRingTone;
|
|
405
|
+
/**
|
|
406
|
+
* Method startIncomingRinging
|
|
407
|
+
* Start playing the Incoming Call ringing tone
|
|
408
|
+
* @memberof RingingService
|
|
409
|
+
* @private
|
|
410
|
+
* @param {boolean} isWebrtcCall True if we are in a WebRTC call usecase
|
|
411
|
+
* @param {CallRB} call incoming call, used to check if an alternate hunting group ring tone applies
|
|
412
|
+
*/
|
|
413
|
+
startIncomingRinging(isWebrtcCall?: boolean, call?: CallRB): Promise<void>;
|
|
414
|
+
/**
|
|
415
|
+
* Method stopIncomingRinging
|
|
416
|
+
* Stop playing the Incoming Call ringing tone
|
|
417
|
+
* @memberof RingingService
|
|
418
|
+
* @private
|
|
419
|
+
* @param {number} count Counter used to stop forcibly the Incoming Call ringing tone
|
|
420
|
+
*/
|
|
421
|
+
stopIncomingRinging(count?: number): void;
|
|
422
|
+
/**
|
|
423
|
+
* Method forceStopIncomingRinging
|
|
424
|
+
* Unconditionally stop the Incoming Call ringing tone (both primary and secondary).
|
|
425
|
+
* Called by the watchdog as a last resort when the regular stop path has been defeated
|
|
426
|
+
* by a race (e.g. a deferred stop cancelled by a spurious re-start). Resets every flag
|
|
427
|
+
* so the ring can never get permanently stuck.
|
|
428
|
+
* @memberof RingingService
|
|
429
|
+
* @private
|
|
430
|
+
*/
|
|
431
|
+
private forceStopIncomingRinging;
|
|
432
|
+
/**
|
|
433
|
+
* Method playSecondCallTone
|
|
434
|
+
* Start playing the secondary call incoming tone
|
|
435
|
+
* @memberof RingingService
|
|
436
|
+
* @private
|
|
437
|
+
*/
|
|
438
|
+
playSecondCallTone(): Promise<void>;
|
|
439
|
+
/**
|
|
440
|
+
* Method stopSecondCallTone
|
|
441
|
+
* Stop playing the secondary call incoming tone
|
|
442
|
+
* @memberof RingingService
|
|
443
|
+
* @private
|
|
444
|
+
*/
|
|
445
|
+
stopSecondCallTone(): void;
|
|
446
|
+
/**
|
|
447
|
+
* Method playHoldTone
|
|
448
|
+
* Start playing the Put On Hold tone
|
|
449
|
+
* @memberof RingingService
|
|
450
|
+
* @private
|
|
451
|
+
*/
|
|
452
|
+
playHoldTone(): Promise<void>;
|
|
453
|
+
/**
|
|
454
|
+
* Method stopHoldTone
|
|
455
|
+
* Stop playing the Put On Hold tone
|
|
456
|
+
* @memberof RingingService
|
|
457
|
+
* @private
|
|
458
|
+
*/
|
|
459
|
+
stopHoldTone(): void;
|
|
460
|
+
/**
|
|
461
|
+
* Method playImNotif
|
|
462
|
+
* Stop playing the the Web conference tone
|
|
463
|
+
* @memberof RingingService
|
|
464
|
+
* @private
|
|
465
|
+
*/
|
|
466
|
+
playImNotif(): Promise<void>;
|
|
467
|
+
/**
|
|
468
|
+
* Method setActiveSupervisorAlarm
|
|
469
|
+
* Set the specified notification as active for supervisor when supervisee receives an incoming call
|
|
470
|
+
* @memberof RingingService
|
|
471
|
+
* @private
|
|
472
|
+
* @param {any} notif Name of the supervisor notification to set as active, one of defined in 'notifs' array
|
|
473
|
+
*/
|
|
474
|
+
setActiveSupervisorAlarm(id: string, type: string): void;
|
|
475
|
+
/**
|
|
476
|
+
* Method playSupervisorNotif
|
|
477
|
+
* Start playing the supervisor audio notif
|
|
478
|
+
* @memberof RingingService
|
|
479
|
+
* @private
|
|
480
|
+
*/
|
|
481
|
+
playSupervisorNotif(): Promise<void>;
|
|
482
|
+
/**
|
|
483
|
+
* Method playSupervisorRingingTone
|
|
484
|
+
* Start playing the Supervisor ringing tone
|
|
485
|
+
* @memberof RingingService
|
|
486
|
+
* @private
|
|
487
|
+
*/
|
|
488
|
+
playSupervisorRingingTone(): Promise<void>;
|
|
489
|
+
/**
|
|
490
|
+
* Method stopSupervisorRingingTone
|
|
491
|
+
* Stop playing the Put On Hold tone
|
|
492
|
+
* @memberof RingingService
|
|
493
|
+
* @private
|
|
494
|
+
*/
|
|
495
|
+
stopSupervisorRingingTone(): void;
|
|
496
|
+
/**
|
|
497
|
+
* Method stopSupervisorRingingToneDefered
|
|
498
|
+
* Stop playing the supervisor tone in a delayed way on main device
|
|
499
|
+
* @memberof RingingService
|
|
500
|
+
* @private
|
|
501
|
+
*/
|
|
502
|
+
private stopSupervisorRingingToneDefered;
|
|
503
|
+
/**
|
|
504
|
+
* Method stopSupervisorRingingToneSecondaryDefered
|
|
505
|
+
* Stop playing the supervisor tone in a delayed way on secondary device
|
|
506
|
+
* @memberof RingingService
|
|
507
|
+
* @private
|
|
508
|
+
*/
|
|
509
|
+
private stopSupervisorRingingToneSecondaryDefered;
|
|
510
|
+
/**
|
|
511
|
+
* Method playStartRecordingTone
|
|
512
|
+
* Play the "recording started" beep followed by the localized spoken voice tone.
|
|
513
|
+
* Used for both p2p / PBX calls and conferences / webinars.
|
|
514
|
+
* @memberof RingingService
|
|
515
|
+
* @private
|
|
516
|
+
*/
|
|
517
|
+
playStartRecordingTone(): Promise<void>;
|
|
518
|
+
/**
|
|
519
|
+
* Method playRecordingBeep
|
|
520
|
+
* Play the recording beep alone, without the spoken voice tone: used when the recording is paused or
|
|
521
|
+
* resumed (CRRAINB-54989), where the state is already written on screen and only the tone is needed.
|
|
522
|
+
* @memberof RingingService
|
|
523
|
+
*/
|
|
524
|
+
playRecordingBeep(): Promise<void>;
|
|
525
|
+
playStopRecordingTone(): Promise<void>;
|
|
526
|
+
/**
|
|
527
|
+
* Method stopIncomingWebrtcSounds
|
|
528
|
+
* Stop playing the WebRTC Incoming Call ringing tone
|
|
529
|
+
* @memberof RingingService
|
|
530
|
+
* @private
|
|
531
|
+
*/
|
|
532
|
+
stopIncomingWebrtcSounds(): void;
|
|
533
|
+
}
|
|
534
|
+
export {};
|
|
535
|
+
//# sourceMappingURL=ringing.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ringing.service.d.ts","sourceRoot":"","sources":["../../../src/services/ringing/ringing.service.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAUhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAGrE,eAAO,MAAM,WAAW,mBAAmB,CAAC;AAG5C,oBAAY,gBAAgB;IACxB,yBAAyB,QAAQ;IACjC,oBAAoB,QAAQ;IAC5B,uBAAuB,WAAW;IAClC,qBAAqB,SAAS;CACjC;AAED,UAAU,UAAU;IAChB,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,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;IACU,kBAAkB;IAgC/B;;;;;OAKG;IACI,kBAAkB,IAAI,IAAI;IA+BjC;;;;;OAKG;IACU,YAAY;IAsBzB;;;;;OAKG;IACI,YAAY,IAAI,IAAI;IA+B3B;;;;;OAKG;IACU,WAAW;IAwCxB;;;;;;OAMG;IACI,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;IA+B/D;;;;;OAKG;IACU,mBAAmB;IAmChC;;;;;OAKG;IACU,yBAAyB;IAwCtC;;;;;OAKG;IACI,yBAAyB,IAAI,IAAI;IAoDxC;;;;;OAKG;IACH,OAAO,CAAC,gCAAgC;IAOxC;;;;;OAKG;IACH,OAAO,CAAC,yCAAyC;IAWjD;;;;;;OAMG;IACU,sBAAsB;IAYnC;;;;;OAKG;IACU,iBAAiB;IAWjB,qBAAqB;IAgBlC;;;;;OAKG;IACI,wBAAwB,IAAI,IAAI;CAG1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/rpc/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { Peer, SdkResult } from "xml-rpc-ts";
|
|
2
|
+
import { Service } from "../../services/service";
|
|
3
|
+
export declare const RPC_SVC = "RPCService";
|
|
4
|
+
export interface RPCService {
|
|
5
|
+
/**
|
|
6
|
+
* Restrict RPC methods
|
|
7
|
+
* @param domain - Name of the domain to restrict
|
|
8
|
+
*/
|
|
9
|
+
restrictRPC: (domain: string) => void;
|
|
10
|
+
/**
|
|
11
|
+
* Add a method
|
|
12
|
+
* @param name - Name of the method
|
|
13
|
+
* @param handler - Method handled
|
|
14
|
+
* @param help - Help description
|
|
15
|
+
* @param params - Parameters for the method
|
|
16
|
+
* @param returnType - Type the method return
|
|
17
|
+
* @returns a boolean reprenting sucessfull result or not
|
|
18
|
+
*/
|
|
19
|
+
addMethod: (name: string, handler: any, help: string, params: string[], returnType: string) => SdkResult<boolean>;
|
|
20
|
+
/**
|
|
21
|
+
* Add a method
|
|
22
|
+
* @param peer - Peer jid
|
|
23
|
+
* @param resource - Ressource of the peer
|
|
24
|
+
* @param methodName - Name of the method called
|
|
25
|
+
* @param params - Parameters for the method
|
|
26
|
+
* @returns the result error or success data
|
|
27
|
+
*/
|
|
28
|
+
callMethod: <T>(peer: Peer, methodName: string, ...params: any[]) => Promise<SdkResult<T>>;
|
|
29
|
+
/**
|
|
30
|
+
* Get normalized Peer from jid / fullJid
|
|
31
|
+
* @param jid - Peer jid or fullJid
|
|
32
|
+
* @returns the Peer
|
|
33
|
+
*/
|
|
34
|
+
getPeer: (jid: string) => Peer;
|
|
35
|
+
/**
|
|
36
|
+
* Setup RPCServer
|
|
37
|
+
*/
|
|
38
|
+
setupServer: () => void;
|
|
39
|
+
/**
|
|
40
|
+
* Setup Client
|
|
41
|
+
*/
|
|
42
|
+
setupClient: () => void;
|
|
43
|
+
}
|
|
44
|
+
export declare class RPCServiceRB extends Service implements RPCService {
|
|
45
|
+
private rpcMode;
|
|
46
|
+
private isSetup;
|
|
47
|
+
private server;
|
|
48
|
+
private client;
|
|
49
|
+
private xmppService;
|
|
50
|
+
private logger;
|
|
51
|
+
private xmppMessageHandler;
|
|
52
|
+
constructor();
|
|
53
|
+
/**
|
|
54
|
+
* Get the rpcService singleton
|
|
55
|
+
* @returns the rpcService singleton
|
|
56
|
+
*/
|
|
57
|
+
static getInstance(): RPCServiceRB;
|
|
58
|
+
static build(): RPCServiceRB;
|
|
59
|
+
restrictRPC(domain: string): void;
|
|
60
|
+
getPeer(jid: string): Peer;
|
|
61
|
+
private buildIQStanza;
|
|
62
|
+
setupServer(): void;
|
|
63
|
+
setupClient(): void;
|
|
64
|
+
private setup;
|
|
65
|
+
waitForServer(): Promise<void>;
|
|
66
|
+
start(rpcMode?: "server" | "client" | null): Promise<void>;
|
|
67
|
+
stop(): Promise<void>;
|
|
68
|
+
reconnect(attempt?: number): Promise<void>;
|
|
69
|
+
private attachHandlers;
|
|
70
|
+
private onConnectionStateChangeEvent;
|
|
71
|
+
addMethod(name: string, handler: any, help: string, params: string[], returnType: string): SdkResult<boolean>;
|
|
72
|
+
callMethod<T>(peer: Peer, methodName: string, ...params: any[]): Promise<SdkResult<T>>;
|
|
73
|
+
private handleIncomingRPC;
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=rpc.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rpc.service.d.ts","sourceRoot":"","sources":["../../../src/services/rpc/rpc.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAgB,SAAS,EAAmB,MAAM,YAAY,CAAC;AAEjF,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAKhE,eAAO,MAAM,OAAO,eAAe,CAAC;AAEpC,MAAM,WAAW,UAAU;IACvB;;;OAGG;IACH,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAEtC;;;;;;;;OAQG;IACH,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,MAAM,KAAK,SAAS,CAAC,OAAO,CAAC,CAAC;IAElH;;;;;;;OAOG;IACH,UAAU,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAE3F;;;;OAIG;IACH,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAE/B;;OAEG;IACH,WAAW,EAAE,MAAM,IAAI,CAAC;IAExB;;OAEG;IACH,WAAW,EAAE,MAAM,IAA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2
|
+
build: () => T;
|
|
3
|
+
}
|
|
4
|
+
export declare abstract class Service {
|
|
5
|
+
static create<T extends Service>(name: string, _class: ClassType<T>): T;
|
|
6
|
+
static build(): Service;
|
|
7
|
+
}
|
|
8
|
+
export { EventsMixin, type EventableService, type EventsMixinTemplate, type ServiceEventsToUnion, type RbServiceEvent } from "./event-mixin";
|
|
9
|
+
//# sourceMappingURL=service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/services/service.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS,CAAC,CAAC,SAAS,OAAO;IACxC,KAAK,EAAE,MAAM,CAAC,CAAC;CAClB;AAED,8BAAsB,OAAO;WACX,MAAM,CAAC,CAAC,SAAS,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC;WAUhE,KAAK,IAAI,OAAO;CAGjC;AAED,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC"}
|