@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,338 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module Admin
|
|
3
|
+
*/
|
|
4
|
+
import type { Observable } from "rxjs";
|
|
5
|
+
import type { User, AuthService, ErrorHelperService, LoggerService } from "../..";
|
|
6
|
+
import { Company } from "../..";
|
|
7
|
+
import type { ServiceEventsToUnion } from "../../services/service";
|
|
8
|
+
import type { SDKAdminCompanyService } from "../../services/admin/admin-company.service";
|
|
9
|
+
import type { ContactService } from "../../services/core/contact.service";
|
|
10
|
+
/**
|
|
11
|
+
* A paginated result from a user search query.
|
|
12
|
+
*/
|
|
13
|
+
export interface UserSearchResult {
|
|
14
|
+
/** The users matching the query for the requested page. */
|
|
15
|
+
users: User[];
|
|
16
|
+
/** Total number of users matching the query. */
|
|
17
|
+
total: number;
|
|
18
|
+
/** Maximum number of items returned per page. */
|
|
19
|
+
limit: number;
|
|
20
|
+
/** Offset of the current page. */
|
|
21
|
+
offset: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Events emitted by {@link SDKAdminUserService} after successful user operations.
|
|
25
|
+
*
|
|
26
|
+
* Subscribe via `adminService.user.events('ON_ADMIN_USER_ADDED').subscribe(...)`.
|
|
27
|
+
*/
|
|
28
|
+
export interface AdminUserServiceEvents {
|
|
29
|
+
/** Fired after a new user has been successfully created. */
|
|
30
|
+
ON_ADMIN_USER_ADDED: {
|
|
31
|
+
user: User;
|
|
32
|
+
};
|
|
33
|
+
/** Fired after an existing user has been updated (profile, tags, restore, etc.). */
|
|
34
|
+
ON_ADMIN_USER_UPDATED: {
|
|
35
|
+
user: Partial<User> & {
|
|
36
|
+
dbId: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
/** Fired after a user has been removed or marked as pending deletion. */
|
|
40
|
+
ON_ADMIN_USER_REMOVED: {
|
|
41
|
+
userId: string;
|
|
42
|
+
pendingDelete?: boolean;
|
|
43
|
+
};
|
|
44
|
+
/** Fired after a bulk delete completes — contains the login emails of removed users. */
|
|
45
|
+
ON_ADMIN_USERS_BULK_REMOVED: {
|
|
46
|
+
loginEmails: string[];
|
|
47
|
+
};
|
|
48
|
+
/** Fired after a bulk tag update completes. */
|
|
49
|
+
ON_ADMIN_USERS_BULK_TAGS_UPDATED: {
|
|
50
|
+
users: Array<{
|
|
51
|
+
loginEmail: string;
|
|
52
|
+
tags: string[];
|
|
53
|
+
}>;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Options for filtering and sorting the advanced user search.
|
|
58
|
+
*/
|
|
59
|
+
export interface UserSearchOptions {
|
|
60
|
+
/** Search users by internal phone number instead of display name. */
|
|
61
|
+
searchByInternalNumber?: boolean;
|
|
62
|
+
/** Filter by tag name. */
|
|
63
|
+
filterByTag?: string;
|
|
64
|
+
/** Filter by customization template identifier. */
|
|
65
|
+
filterByProfile?: string;
|
|
66
|
+
/** Filter by department name. */
|
|
67
|
+
filterByDepartment?: string;
|
|
68
|
+
/** Filter by site identifier. Use `"noSite"` to match users with no site. */
|
|
69
|
+
filterBySite?: string;
|
|
70
|
+
/** When `true`, return only administrators. */
|
|
71
|
+
isAdministrator?: boolean;
|
|
72
|
+
/** When `true`, return only regular members (excludes all admin roles). */
|
|
73
|
+
isMember?: boolean;
|
|
74
|
+
/** When `true`/`false`, filter by activation status. */
|
|
75
|
+
isActivated?: boolean;
|
|
76
|
+
/** When `true`, return only suspended (pending termination) users. */
|
|
77
|
+
isTerminated?: boolean;
|
|
78
|
+
/** When `true`, include users pending termination in normal results. */
|
|
79
|
+
includePendingTermination?: boolean;
|
|
80
|
+
/** Field to sort by (e.g. `"reverseDisplayName"`). */
|
|
81
|
+
sortField?: string;
|
|
82
|
+
/**
|
|
83
|
+
* When `true`, skips full Contact instantiation and returns a lightweight object with only the fields
|
|
84
|
+
* needed for list display. Significantly faster for large result sets. Defaults to `false`.
|
|
85
|
+
*/
|
|
86
|
+
useLightParser?: boolean;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Body for {@link SDKAdminUserService.update}.
|
|
90
|
+
*
|
|
91
|
+
* Carries the user fields editable from the admin user form, in the REST
|
|
92
|
+
* camelCase naming expected by `PUT /api/rainbow/admin/v1.0/users/:userId`.
|
|
93
|
+
* All fields are optional (the API accepts a partial body); only `id` is
|
|
94
|
+
* required. The `id` is sent in the URL path and stripped from the body.
|
|
95
|
+
*/
|
|
96
|
+
export interface AdminUserUpdatePayload {
|
|
97
|
+
/** User unique identifier — used in the URL path, stripped from the body. */
|
|
98
|
+
id: string;
|
|
99
|
+
/**
|
|
100
|
+
* New login email. Send it only when it actually changes — the API rejects a
|
|
101
|
+
* body carrying the value the user already holds.
|
|
102
|
+
*/
|
|
103
|
+
loginEmail?: string;
|
|
104
|
+
firstName?: string;
|
|
105
|
+
lastName?: string;
|
|
106
|
+
title?: string;
|
|
107
|
+
jobTitle?: string;
|
|
108
|
+
department?: string;
|
|
109
|
+
userInfo1?: string;
|
|
110
|
+
userInfo2?: string;
|
|
111
|
+
language?: string;
|
|
112
|
+
country?: string;
|
|
113
|
+
timezone?: string;
|
|
114
|
+
visibility?: string;
|
|
115
|
+
siteId?: string;
|
|
116
|
+
loginPhone?: {
|
|
117
|
+
E164: string;
|
|
118
|
+
} | null;
|
|
119
|
+
/**
|
|
120
|
+
* New password set by an administrator on behalf of the user. Send it only
|
|
121
|
+
* when the administrator actually sets one — omit the field otherwise, never
|
|
122
|
+
* send an empty string. The password policy is enforced server-side.
|
|
123
|
+
*/
|
|
124
|
+
password?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Full list of {@link UserRole} values held by the user. The API *replaces*
|
|
127
|
+
* the whole list, so callers must send every role to keep — including the
|
|
128
|
+
* ones they do not manage — not only the ones they changed.
|
|
129
|
+
*/
|
|
130
|
+
roles?: string[];
|
|
131
|
+
/**
|
|
132
|
+
* Marks the account as initialized. The backend sets it on its own when the
|
|
133
|
+
* user completes the onboarding wizard; an administrator sends it explicitly
|
|
134
|
+
* to repair an account left at `false` by a wizard that crashed mid-way.
|
|
135
|
+
*/
|
|
136
|
+
isInitialized?: boolean;
|
|
137
|
+
/** Authentication policy, set via the caller's login-policy mapping. */
|
|
138
|
+
authenticationType?: string;
|
|
139
|
+
mfaRainbowPolicyId?: string;
|
|
140
|
+
rainbowPasswordlessPolicyId?: string;
|
|
141
|
+
singleSignOnId?: string;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Admin sub-service for user management within a company.
|
|
145
|
+
*
|
|
146
|
+
* Accessible via `adminService.user`.
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* ```ts
|
|
150
|
+
* const users = await adminService.user.getAll(companyId);
|
|
151
|
+
* const users = await adminService.user.getAll(companyId, 'full', [{ key: 'roles', value: 'admin' }]);
|
|
152
|
+
* const newUser = await adminService.user.create('john@acme.com', 'John', 'Doe', 'p@ss', companyId);
|
|
153
|
+
* await adminService.user.update({ id: '123', firstName: 'Jane' });
|
|
154
|
+
* await adminService.user.remove(userId);
|
|
155
|
+
* ```
|
|
156
|
+
*/
|
|
157
|
+
export interface SDKAdminUserService {
|
|
158
|
+
events: <const E extends keyof AdminUserServiceEvents & string>(...names: E[]) => Observable<ServiceEventsToUnion<Pick<AdminUserServiceEvents, E>>>;
|
|
159
|
+
start: () => void;
|
|
160
|
+
/** Stops the service, removing XMPP handlers and completing the event stream. */
|
|
161
|
+
stop: () => void;
|
|
162
|
+
/**
|
|
163
|
+
* Fetches all users belonging to a company.
|
|
164
|
+
*
|
|
165
|
+
* @param companyRef - The target company, as either its string ID or a {@link Company} instance.
|
|
166
|
+
* @param detailsLevel - Optional response format (`"small"`, `"medium"`, `"full"`). Defaults to `"small"`.
|
|
167
|
+
* @param filters - Optional array of `{ key, value }` query parameter objects for server-side filtering.
|
|
168
|
+
* @returns An array of raw user data objects.
|
|
169
|
+
* @throws {@link RainbowError} when the request fails.
|
|
170
|
+
*/
|
|
171
|
+
getAll: (companyRef: string | Company, detailsLevel?: string, filters?: Array<{
|
|
172
|
+
key: string;
|
|
173
|
+
value: string;
|
|
174
|
+
}>) => Promise<unknown[]>;
|
|
175
|
+
/**
|
|
176
|
+
* Creates a new user account inside a company.
|
|
177
|
+
*
|
|
178
|
+
* @param login - Login email address for the new user.
|
|
179
|
+
* @param firstName - First name of the new user.
|
|
180
|
+
* @param lastName - Last name of the new user.
|
|
181
|
+
* @param password - Initial password for the new user.
|
|
182
|
+
* @param companyRef - The target company, as either its string ID or a {@link Company} instance.
|
|
183
|
+
* @param tags - Optional array of tag strings to assign to the user.
|
|
184
|
+
* @returns The raw data of the created user.
|
|
185
|
+
* @throws {@link RainbowError} when creation fails.
|
|
186
|
+
*/
|
|
187
|
+
create: (login: string, firstName: string, lastName: string, password: string, companyRef: string | Company, tags?: string[]) => Promise<unknown>;
|
|
188
|
+
/**
|
|
189
|
+
* Deletes a user account.
|
|
190
|
+
*
|
|
191
|
+
* @param userId - The unique identifier of the user to delete.
|
|
192
|
+
* @param pendingDelete - When `true`, schedules the user for pending termination instead of immediate deletion.
|
|
193
|
+
* @throws {@link RainbowError} when the deletion fails.
|
|
194
|
+
*/
|
|
195
|
+
remove: (userId: string, pendingDelete?: boolean) => Promise<void>;
|
|
196
|
+
/**
|
|
197
|
+
* Cancels the pending deletion of a user account, restoring it to active state.
|
|
198
|
+
*
|
|
199
|
+
* @param userId - The unique identifier of the user to restore.
|
|
200
|
+
* @returns The raw data of the restored user.
|
|
201
|
+
* @throws {@link RainbowError} when the request fails.
|
|
202
|
+
*/
|
|
203
|
+
cancelDelete: (userId: string) => Promise<unknown>;
|
|
204
|
+
/**
|
|
205
|
+
* Force-deletes a user account (superadmin only).
|
|
206
|
+
*
|
|
207
|
+
* @param userId - The unique identifier of the user to force-delete.
|
|
208
|
+
* @returns The raw data of the deleted user.
|
|
209
|
+
* @throws {@link RainbowError} when the deletion fails.
|
|
210
|
+
*/
|
|
211
|
+
forceDelete: (userId: string) => Promise<unknown>;
|
|
212
|
+
/**
|
|
213
|
+
* Updates an existing user account.
|
|
214
|
+
*
|
|
215
|
+
* The `user` object must contain an `id` property. The call is a no-op when
|
|
216
|
+
* `user` is falsy or has no `id`.
|
|
217
|
+
*
|
|
218
|
+
* @param user - Partial or full user object. Must include `id`.
|
|
219
|
+
* @throws {@link RainbowError} when the update fails.
|
|
220
|
+
*/
|
|
221
|
+
update: (user: AdminUserUpdatePayload) => Promise<void>;
|
|
222
|
+
/**
|
|
223
|
+
* Searches users with advanced filtering and pagination.
|
|
224
|
+
*
|
|
225
|
+
* @param companyRef - The target company, as either its string ID or a {@link Company} instance.
|
|
226
|
+
* @param page - Page number (1-based).
|
|
227
|
+
* @param pageSize - Number of users per page.
|
|
228
|
+
* @param searchPattern - Optional text to search by display name or phone number.
|
|
229
|
+
* @param options - Optional filters and sort options.
|
|
230
|
+
* @returns A {@link UserSearchResult} with the matching users and pagination metadata.
|
|
231
|
+
* @throws {@link RainbowError} when the request fails.
|
|
232
|
+
*/
|
|
233
|
+
search: (companyRef: string | Company, page: number, pageSize: number, searchPattern?: string, options?: UserSearchOptions) => Promise<UserSearchResult>;
|
|
234
|
+
/**
|
|
235
|
+
* Exports the list of deleted (pending-termination) users for a company as a CSV Blob.
|
|
236
|
+
*
|
|
237
|
+
* The returned Blob has MIME type `text/csv; charset=utf-8-sig` and is prefixed with a
|
|
238
|
+
* UTF-8 BOM so that spreadsheet applications open it correctly.
|
|
239
|
+
*
|
|
240
|
+
* @param companyRef - The target company, as either its string ID or a {@link Company} instance.
|
|
241
|
+
* @returns A {@link Blob} containing the CSV data.
|
|
242
|
+
* @throws {@link RainbowError} when the request fails.
|
|
243
|
+
*/
|
|
244
|
+
exportDeletedUsers: (companyRef: string | Company) => Promise<Blob>;
|
|
245
|
+
/**
|
|
246
|
+
* Fetches all users matching the given search pattern and filter options, handling pagination transparently.
|
|
247
|
+
*
|
|
248
|
+
* @param companyRef - The target company, as either its string ID or a {@link Company} instance.
|
|
249
|
+
* @param searchPattern - Optional text to filter users by display name or phone number.
|
|
250
|
+
* @param options - Optional filters and sort options (same as {@link search}).
|
|
251
|
+
* @returns All matching {@link User} instances.
|
|
252
|
+
* @throws {@link RainbowError} when the request fails.
|
|
253
|
+
*/
|
|
254
|
+
fetchAllUsers: (companyRef: string | Company, searchPattern?: string, options?: UserSearchOptions) => Promise<User[]>;
|
|
255
|
+
/**
|
|
256
|
+
* Sets the tags assigned to a user, replacing the current tag list entirely.
|
|
257
|
+
*
|
|
258
|
+
* @param userId - The unique identifier of the user.
|
|
259
|
+
* @param tags - The new list of tag strings to assign to the user.
|
|
260
|
+
* @throws {@link RainbowError} when the request fails.
|
|
261
|
+
*/
|
|
262
|
+
setTags: (userId: string, tags: string[]) => Promise<void>;
|
|
263
|
+
/**
|
|
264
|
+
* Assigns tags to a set of users via mass provisioning.
|
|
265
|
+
* Replaces all existing tags on each user with the provided list.
|
|
266
|
+
* Resolves when the import completes (via XMPP notification).
|
|
267
|
+
*
|
|
268
|
+
* @param companyRef - Company owning the users.
|
|
269
|
+
* @param users - Users to update. Each must have a `loginEmail`.
|
|
270
|
+
* @param tags - Tag list to assign (up to 5). Pass an empty array to clear all tags.
|
|
271
|
+
*/
|
|
272
|
+
bulkSetTags: (companyRef: string | Company, users: Pick<User, "loginEmail">[], tags: string[]) => Promise<void>;
|
|
273
|
+
/**
|
|
274
|
+
* Deletes a set of users via mass provisioning.
|
|
275
|
+
* Resolves when the import completes (via XMPP notification).
|
|
276
|
+
*
|
|
277
|
+
* @param companyRef - Company owning the users.
|
|
278
|
+
* @param users - Users to delete. Each must have a `loginEmail`.
|
|
279
|
+
*/
|
|
280
|
+
bulkDelete: (companyRef: string | Company, users: Pick<User, "loginEmail">[]) => Promise<void>;
|
|
281
|
+
}
|
|
282
|
+
declare const SDKAdminUserServiceRB_base: object & (abstract new (...args: any[]) => import("../../services/service").EventsMixinTemplate<AdminUserServiceEvents>);
|
|
283
|
+
/**
|
|
284
|
+
* @internal
|
|
285
|
+
*/
|
|
286
|
+
export declare class SDKAdminUserServiceRB extends SDKAdminUserServiceRB_base implements SDKAdminUserService {
|
|
287
|
+
private readonly authService;
|
|
288
|
+
private readonly loggerService;
|
|
289
|
+
private readonly errorHelperService;
|
|
290
|
+
private readonly adminCompanyService;
|
|
291
|
+
private readonly contactService;
|
|
292
|
+
private readonly xmppService;
|
|
293
|
+
private xmppManagementHandler;
|
|
294
|
+
private readonly pendingImports;
|
|
295
|
+
stop(): void;
|
|
296
|
+
constructor(authService: AuthService, loggerService: LoggerService, errorHelperService: ErrorHelperService, adminCompanyService: SDKAdminCompanyService, contactService: ContactService);
|
|
297
|
+
start(): void;
|
|
298
|
+
private onManagementMessage;
|
|
299
|
+
getAll(companyRef: string | Company, detailsLevel?: string, filters?: Array<{
|
|
300
|
+
key: string;
|
|
301
|
+
value: string;
|
|
302
|
+
}>): Promise<unknown[]>;
|
|
303
|
+
create(login: string, firstName: string, lastName: string, password: string, companyRef: string | Company, tags?: string[]): Promise<unknown>;
|
|
304
|
+
cancelDelete(userId: string): Promise<unknown>;
|
|
305
|
+
forceDelete(userId: string): Promise<unknown>;
|
|
306
|
+
remove(userId: string, pendingDelete?: boolean): Promise<void>;
|
|
307
|
+
search(companyRef: string | Company, page: number, pageSize: number, searchPattern?: string, options?: UserSearchOptions): Promise<UserSearchResult>;
|
|
308
|
+
update(user: AdminUserUpdatePayload): Promise<void>;
|
|
309
|
+
fetchAllUsers(companyRef: string | Company, searchPattern?: string, options?: UserSearchOptions): Promise<User[]>;
|
|
310
|
+
exportDeletedUsers(companyRef: string | Company): Promise<Blob>;
|
|
311
|
+
/**
|
|
312
|
+
* Builds a lightweight User-compatible object from raw server JSON for listing purposes.
|
|
313
|
+
* Avoids the cost of instantiating a full Contact (updateFromUserData, computeDisplayName, updateAvatar).
|
|
314
|
+
* Only includes fields needed for the admin user table.
|
|
315
|
+
*/
|
|
316
|
+
private parseUserForListing;
|
|
317
|
+
private buildInitialsAvatar;
|
|
318
|
+
/**
|
|
319
|
+
* Assigns tags to a set of users via mass provisioning.
|
|
320
|
+
* Replaces all existing tags on each user with the provided list.
|
|
321
|
+
*
|
|
322
|
+
* @param companyRef - Company owning the users.
|
|
323
|
+
* @param users - Users to update. Each must have a `loginEmail`.
|
|
324
|
+
* @param tags - Tag list to assign (up to 5). Pass an empty array to clear all tags.
|
|
325
|
+
*/
|
|
326
|
+
bulkSetTags(companyRef: string | Company, users: Pick<User, "loginEmail">[], tags: string[]): Promise<void>;
|
|
327
|
+
/**
|
|
328
|
+
* Deletes a set of users via mass provisioning.
|
|
329
|
+
*
|
|
330
|
+
* @param companyRef - Company owning the users.
|
|
331
|
+
* @param users - Users to delete. Each must have a `loginEmail`.
|
|
332
|
+
*/
|
|
333
|
+
bulkDelete(companyRef: string | Company, users: Pick<User, "loginEmail">[]): Promise<void>;
|
|
334
|
+
private massProvision;
|
|
335
|
+
setTags(userId: string, tags: string[]): Promise<void>;
|
|
336
|
+
}
|
|
337
|
+
export {};
|
|
338
|
+
//# sourceMappingURL=admin-user.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-user.service.d.ts","sourceRoot":"","sources":["../../../src/services/admin/admin-user.service.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACjG,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAElF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2DAA2D,CAAC;AACxG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AAIzF;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,2DAA2D;IAC3D,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC,4DAA4D;IAC5D,mBAAmB,EAAE;QAAE,IAAI,EAAE,IAAI,CAAC;KAAE,CAAC;IACrC,oFAAoF;IACpF,qBAAqB,EAAE;QAAE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG;YAAE,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;IAqD3B,OAAO,CAAC,mBAAmB;IA4B3B;;;;;;;OAOG;IACU,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAaxH;;;;;OAKG;IACU,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;YASzF,aAAa;IAuBd,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CActE"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module Admin
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Enumeration of the possible details levels in data.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum DetailLevel {
|
|
8
|
+
/** Minimum number of fields. */
|
|
9
|
+
SMALL = "small",
|
|
10
|
+
/** Medium number of fields. */
|
|
11
|
+
MEDIUM = "medium",
|
|
12
|
+
/** All fields. */
|
|
13
|
+
FULL = "full"
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Interface that represents a paginated list of items.
|
|
17
|
+
*/
|
|
18
|
+
export interface IPaginatedList<T> {
|
|
19
|
+
items: T[];
|
|
20
|
+
total: number;
|
|
21
|
+
limit?: number;
|
|
22
|
+
offset?: number;
|
|
23
|
+
}
|
|
24
|
+
type IfEquals<X, Y, A = X, B = never> = (<T>() => T extends X ? 1 : 2) extends (<T>() => T extends Y ? 1 : 2) ? A : B;
|
|
25
|
+
/** Produces a union of a type's writable keys. */
|
|
26
|
+
export type WritableKeys<T> = {
|
|
27
|
+
[P in keyof T]: IfEquals<{
|
|
28
|
+
[Q in P]: T[P];
|
|
29
|
+
}, {
|
|
30
|
+
-readonly [Q in P]: T[P];
|
|
31
|
+
}, P>;
|
|
32
|
+
}[keyof T];
|
|
33
|
+
/** Constructs a type containing only the writable properties of T. */
|
|
34
|
+
export type Writable<T> = Pick<T, WritableKeys<T>>;
|
|
35
|
+
/** Removes `readonly` from all properties of T. */
|
|
36
|
+
export type Mutable<Type> = {
|
|
37
|
+
-readonly [Property in keyof Type]: Type[Property];
|
|
38
|
+
};
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=admin.common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.common.d.ts","sourceRoot":"","sources":["../../../src/services/admin/admin.common.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,oBAAY,WAAW;IACnB,gCAAgC;IAChC,KAAK,UAAU;IACf,+BAA+B;IAC/B,MAAM,WAAW;IACjB,kBAAkB;IAClB,IAAI,SAAS;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC;IAC7B,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,KAAK,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEtH,kDAAkD;AAClD,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,QAAQ,CAAC;SAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KAAE,EAAE;QAAE,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KAAE,EAAE,CAAC,CAAC;CAAE,CAAC,MAAM,CAAC,CAAC,CAAC;AAEzH,sEAAsE;AACtE,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AAEnD,mDAAmD;AACnD,MAAM,MAAM,OAAO,CAAC,IAAI,IAAI;IAAE,CAAC,UAAU,QAAQ,IAAI,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC;CAAG,CAAC"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module Admin
|
|
3
|
+
*/
|
|
4
|
+
import { Service } from "../../services/service";
|
|
5
|
+
import type { SDKAdminCompanyService } from "../../services/admin/admin-company.service";
|
|
6
|
+
import type { SDKAdminUserService } from "../../services/admin/admin-user.service";
|
|
7
|
+
import type { SDKAdminDepartmentService } from "../../services/admin/admin-department.service";
|
|
8
|
+
import type { SDKAdminTagService } from "../../services/admin/admin-tag.service";
|
|
9
|
+
import type { SDKAdminUserProfileService } from "../../services/admin/admin-user-profile.service";
|
|
10
|
+
import type { SDKAdminSubscriptionService } from "../../services/admin/admin-subscription.service";
|
|
11
|
+
import type { SDKAdminAlarmService } from "../../services/admin/admin-alarm.service";
|
|
12
|
+
import type { SDKAdminManagementService } from "../../services/admin/admin-management.service";
|
|
13
|
+
import type { SDKAdminRvcpService } from "../../services/admin/admin-rvcp.service";
|
|
14
|
+
import type { SDKAdminSiteService } from "../../services/admin/admin-site.service";
|
|
15
|
+
import type { SDKAdminInvitationService } from "../../services/admin/admin-invitation.service";
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const SDK_ADMIN_SVC = "SDKAdminService";
|
|
18
|
+
/**
|
|
19
|
+
* Entry point for all admin-related operations.
|
|
20
|
+
*
|
|
21
|
+
* Provides access to three specialised sub-services grouped by domain:
|
|
22
|
+
* - {@link SDKAdminCompanyService} — company CRUD
|
|
23
|
+
* - {@link SDKAdminUserService} — user CRUD within a company
|
|
24
|
+
* - {@link SDKAdminDepartmentService} — department read access
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const sdk = RainbowSDK.getInstance();
|
|
29
|
+
* const version = await sdk.adminService.getServerVersion();
|
|
30
|
+
* const companies = await sdk.adminService.company.getAll();
|
|
31
|
+
* const users = await sdk.adminService.user.getAll(companyId);
|
|
32
|
+
* const tags = await sdk.adminService.tag.getAll(companyId);
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export interface SDKAdminService {
|
|
36
|
+
/**
|
|
37
|
+
* Sub-service for company management (get, create, remove).
|
|
38
|
+
* @see {@link SDKAdminCompanyService}
|
|
39
|
+
*/
|
|
40
|
+
readonly company: SDKAdminCompanyService;
|
|
41
|
+
/**
|
|
42
|
+
* Sub-service for user management within a company (get, create, update, remove).
|
|
43
|
+
* @see {@link SDKAdminUserService}
|
|
44
|
+
*/
|
|
45
|
+
readonly user: SDKAdminUserService;
|
|
46
|
+
/**
|
|
47
|
+
* Sub-service for department read access.
|
|
48
|
+
* @see {@link SDKAdminDepartmentService}
|
|
49
|
+
*/
|
|
50
|
+
readonly department: SDKAdminDepartmentService;
|
|
51
|
+
/**
|
|
52
|
+
* Sub-service for user tag management (list, stats, rename, remove).
|
|
53
|
+
* @see {@link SDKAdminTagService}
|
|
54
|
+
*/
|
|
55
|
+
readonly tag: SDKAdminTagService;
|
|
56
|
+
/**
|
|
57
|
+
* Sub-service for user profile customization template management.
|
|
58
|
+
* @see {@link SDKAdminUserProfileService}
|
|
59
|
+
*/
|
|
60
|
+
readonly userProfile: SDKAdminUserProfileService;
|
|
61
|
+
/**
|
|
62
|
+
* Sub-service for company subscription management.
|
|
63
|
+
* @see {@link SDKAdminSubscriptionService}
|
|
64
|
+
*/
|
|
65
|
+
readonly subscription: SDKAdminSubscriptionService;
|
|
66
|
+
/**
|
|
67
|
+
* Sub-service for site management.
|
|
68
|
+
* @see {@link SDKAdminSiteService}
|
|
69
|
+
*/
|
|
70
|
+
readonly site: SDKAdminSiteService;
|
|
71
|
+
/**
|
|
72
|
+
* Sub-service for join-company invitation management.
|
|
73
|
+
* @see {@link SDKAdminInvitationService}
|
|
74
|
+
*/
|
|
75
|
+
readonly invitation: SDKAdminInvitationService;
|
|
76
|
+
/**
|
|
77
|
+
* Sub-service for alarm counter retrieval.
|
|
78
|
+
* @see {@link SDKAdminAlarmService}
|
|
79
|
+
*/
|
|
80
|
+
readonly alarm: SDKAdminAlarmService;
|
|
81
|
+
/**
|
|
82
|
+
* Sub-service for role checking and impersonation management.
|
|
83
|
+
* @see {@link SDKAdminManagementService}
|
|
84
|
+
*/
|
|
85
|
+
readonly management: SDKAdminManagementService;
|
|
86
|
+
/**
|
|
87
|
+
* Sub-service for RVCP (Rainbow Voice Cloud Platform) operations.
|
|
88
|
+
* @see {@link SDKAdminRvcpService}
|
|
89
|
+
*/
|
|
90
|
+
readonly rvcp: SDKAdminRvcpService;
|
|
91
|
+
/**
|
|
92
|
+
* Returns the Rainbow server version.
|
|
93
|
+
*
|
|
94
|
+
* This call also serves as an admin-access probe: it throws with a 403 error
|
|
95
|
+
* when the authenticated user does not have admin privileges.
|
|
96
|
+
*
|
|
97
|
+
* @returns The server version string (e.g. `"2.170.0"`).
|
|
98
|
+
* @throws {@link RainbowError} when the request fails or the user is not authorized.
|
|
99
|
+
*/
|
|
100
|
+
getServerVersion: () => Promise<string>;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* @internal
|
|
104
|
+
*/
|
|
105
|
+
export declare class SDKAdminServiceRB extends Service implements SDKAdminService {
|
|
106
|
+
private readonly authService;
|
|
107
|
+
private readonly loggerService;
|
|
108
|
+
private readonly errorHelperService;
|
|
109
|
+
private readonly xmppService;
|
|
110
|
+
private xmppHandlers;
|
|
111
|
+
readonly company: SDKAdminCompanyService;
|
|
112
|
+
readonly department: SDKAdminDepartmentService;
|
|
113
|
+
readonly tag: SDKAdminTagService;
|
|
114
|
+
readonly userProfile: SDKAdminUserProfileService;
|
|
115
|
+
readonly subscription: SDKAdminSubscriptionService;
|
|
116
|
+
readonly site: SDKAdminSiteService;
|
|
117
|
+
readonly user: SDKAdminUserService;
|
|
118
|
+
readonly invitation: SDKAdminInvitationService;
|
|
119
|
+
readonly alarm: SDKAdminAlarmService;
|
|
120
|
+
readonly management: SDKAdminManagementService;
|
|
121
|
+
readonly rvcp: SDKAdminRvcpService;
|
|
122
|
+
static getInstance(): SDKAdminServiceRB;
|
|
123
|
+
static build(): SDKAdminServiceRB;
|
|
124
|
+
protected constructor();
|
|
125
|
+
start(): Promise<void>;
|
|
126
|
+
/**
|
|
127
|
+
* Re-registers the XMPP handlers dropped by the disconnection. Deliberately does NOT go through
|
|
128
|
+
* `stop()`: the session state it clears (notably `management.company`) is only ever populated by
|
|
129
|
+
* `management.init()`, which the admin menu calls once on mount and never again — wiping it here
|
|
130
|
+
* would silently fall back to the administrator's own company for the rest of the session.
|
|
131
|
+
*/
|
|
132
|
+
reconnect(): Promise<void>;
|
|
133
|
+
stop(): Promise<void>;
|
|
134
|
+
private registerXmppHandlers;
|
|
135
|
+
private onManagementMessage;
|
|
136
|
+
getServerVersion(): Promise<string>;
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=admin.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.service.d.ts","sourceRoot":"","sources":["../../../src/services/admin/admin.service.ts"],"names":[],"mappings":"AAEA;;GAEG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAOhE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2DAA2D,CAAC;AAExG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAElG,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8DAA8D,CAAC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in-user.service";
|
|
5
|
+
export * from "./admin-department.service";
|
|
6
|
+
export * from "./admin-tag.service";
|
|
7
|
+
export * from "./admin-user-profile.service";
|
|
8
|
+
export * from "./admin-subscription.service";
|
|
9
|
+
export * from "./admin-alarm.service";
|
|
10
|
+
export * from "./admin-management.service";
|
|
11
|
+
export * from "./admin-rvcp.service";
|
|
12
|
+
export * from "./admin-site.service";
|
|
13
|
+
export * from "./admin-invitation.service";
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/admin/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC"}
|