@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,309 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module RainbowSDK
|
|
3
|
+
*/
|
|
4
|
+
import "./strophejs";
|
|
5
|
+
import type { SDKPlugin } from "./plugins/plugin";
|
|
6
|
+
import { SettingsService } from "./services/core/settings.service";
|
|
7
|
+
import type { ConnectionService } from "./services/core/connection.service";
|
|
8
|
+
import type { ExternalLoggerInterface, LogLevelEnum } from "./services/core/logger.service";
|
|
9
|
+
import { LoggerService } from "./services/core/logger.service";
|
|
10
|
+
import type { UserNetworkService } from "./services/core/userNetwork.service";
|
|
11
|
+
import type { BubbleConferenceService, ConversationService, DirectorySearchService, I18nService, ProfileService, CountryService } from "./services";
|
|
12
|
+
import { NotificationsViewerService } from "./services";
|
|
13
|
+
import type { ConnectedUser } from "./models";
|
|
14
|
+
import { UtilitiesService } from "./services/utilities/utilities.service";
|
|
15
|
+
import type { BubbleService } from "./services/bubbles";
|
|
16
|
+
import type { WebinarService } from "./services/webinars/webinars.service";
|
|
17
|
+
import type { CallService } from "./services/call/call.service";
|
|
18
|
+
import type { FavoritesService } from "./services/favorites/favorites.service";
|
|
19
|
+
import type { CallLogService } from "./services/callLog/callLog.service";
|
|
20
|
+
import type { DataChannelService } from "./services/dataChannel";
|
|
21
|
+
import type { DeviceManagementService } from "./services/deviceManagement/deviceManagement.service";
|
|
22
|
+
import type { TelephonyConfigService } from "./services/telephonyConfig";
|
|
23
|
+
import type { SDKAdminService } from "./services/admin";
|
|
24
|
+
import type { BubbleTagService } from "./services/bubbles/bubbleTag.service";
|
|
25
|
+
import type { UserService } from "./services/users/user.service";
|
|
26
|
+
import type { FileDocumentService } from "./services/fileDocument/fileDocument.service";
|
|
27
|
+
import type { LiveTranscriptionService } from "./services/transcription/liveTranscription.service";
|
|
28
|
+
import type { LocalTranslationService } from "./services/localTranslation/localTranslation.service";
|
|
29
|
+
import type { TodoServiceRB } from "./services/todo/todo.service";
|
|
30
|
+
import type { BubbleConferenceRecapService } from "./services/conference/bubbleConferenceRecap.service";
|
|
31
|
+
import type { ChannelService } from "./services/channels/channel.service";
|
|
32
|
+
import type { CallRecorderService } from "./services/call/callRecorder.service";
|
|
33
|
+
import type { RPCService } from "./services/rpc/rpc.service";
|
|
34
|
+
import type { PollsService } from "./services/polls/polls.service";
|
|
35
|
+
import type { HelpCenterService } from "./services/helpcenter/helpCenter.service";
|
|
36
|
+
import type { WhatsNewService } from "./services/helpcenter/whatsNew.service";
|
|
37
|
+
export interface RainbowSDKAppConfig {
|
|
38
|
+
/** Rainbow xmpp resource prefix */
|
|
39
|
+
xmppResourcePrefix?: string;
|
|
40
|
+
/** Rainbow backend server url */
|
|
41
|
+
server?: string;
|
|
42
|
+
/** Rainbow application identifier */
|
|
43
|
+
applicationId?: string;
|
|
44
|
+
/** Rainbow application secretKey */
|
|
45
|
+
secretKey?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface RainbowSDKMarkdownParser {
|
|
48
|
+
markdownToHtml: (markdown: string) => string;
|
|
49
|
+
}
|
|
50
|
+
export interface RainbowSDKConfig {
|
|
51
|
+
/** Application configuration */
|
|
52
|
+
appConfig?: RainbowSDKAppConfig;
|
|
53
|
+
/** List of plugins to use in the application */
|
|
54
|
+
plugins?: SDKPlugin[];
|
|
55
|
+
/** When set to true, the sdk will try to connect with localStorage token information */
|
|
56
|
+
autoLogin?: boolean;
|
|
57
|
+
/** Specify the SDK internal log level */
|
|
58
|
+
logLevel?: LogLevelEnum;
|
|
59
|
+
/** When set to true, sone additional CONNECTING events will be emitted to manage a connection progress bar */
|
|
60
|
+
progressEvents?: boolean;
|
|
61
|
+
/** Markdown parser implementation to use across SDK service */
|
|
62
|
+
markdownParser?: RainbowSDKMarkdownParser;
|
|
63
|
+
/** @internal */
|
|
64
|
+
logger?: ExternalLoggerInterface;
|
|
65
|
+
/** @internal */
|
|
66
|
+
devMode?: boolean;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* This class is the **Web Rainbow SDK** main entry point
|
|
70
|
+
* It offers :
|
|
71
|
+
* + Lifecycle methods (create, start and stop methods)
|
|
72
|
+
* + A get method to fetch plugin services
|
|
73
|
+
* + Direct accesses to "core" plugins
|
|
74
|
+
*/
|
|
75
|
+
export declare class RainbowSDK {
|
|
76
|
+
/**
|
|
77
|
+
* Direct access to core ConnectedUser
|
|
78
|
+
* @returns the ConnectedUser instance
|
|
79
|
+
*/
|
|
80
|
+
get connectedUser(): ConnectedUser | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Direct access to core ConnectionService
|
|
83
|
+
* @returns the ConnectionService singleton instance
|
|
84
|
+
*/
|
|
85
|
+
get connectionService(): ConnectionService;
|
|
86
|
+
/**
|
|
87
|
+
* Direct access to core ConversationService
|
|
88
|
+
* @returns the ConversationService singleton instance if available
|
|
89
|
+
*/
|
|
90
|
+
get conversationService(): ConversationService;
|
|
91
|
+
/**
|
|
92
|
+
* Direct access to core UserService
|
|
93
|
+
* @returns the UserService singleton instance
|
|
94
|
+
*/
|
|
95
|
+
get userService(): UserService;
|
|
96
|
+
/**
|
|
97
|
+
* Direct access to core UtilitiesService
|
|
98
|
+
* @returns the UtilitiesService singleton instance
|
|
99
|
+
*/
|
|
100
|
+
get utils(): UtilitiesService;
|
|
101
|
+
/**
|
|
102
|
+
* Direct access to core LoggerService
|
|
103
|
+
* @returns the LoggerService singleton instance
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
get loggerService(): LoggerService;
|
|
107
|
+
/**
|
|
108
|
+
* Direct access to core i18nService
|
|
109
|
+
* @returns the I18nService singleton instance
|
|
110
|
+
* @internal
|
|
111
|
+
*/
|
|
112
|
+
get i18nService(): I18nService;
|
|
113
|
+
/**
|
|
114
|
+
* Direct access to core ProfileService
|
|
115
|
+
* @returns the ProfileService singleton instance
|
|
116
|
+
*/
|
|
117
|
+
get profileService(): ProfileService;
|
|
118
|
+
/**
|
|
119
|
+
* Direct access to core CountryService
|
|
120
|
+
* @returns the CountryService singleton instance
|
|
121
|
+
*/
|
|
122
|
+
get countryService(): CountryService;
|
|
123
|
+
/**
|
|
124
|
+
* Direct access to core UserNetworkService
|
|
125
|
+
* @returns the UserNetworkService singleton instance
|
|
126
|
+
*/
|
|
127
|
+
get userNetwork(): UserNetworkService;
|
|
128
|
+
/**
|
|
129
|
+
* Direct access to BubbleService
|
|
130
|
+
* @returns the BubbleService singleton instance if available
|
|
131
|
+
*/
|
|
132
|
+
get bubbleService(): BubbleService | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* Direct access to BubbleTagService
|
|
135
|
+
* @returns the BubbleService singleton instance if available
|
|
136
|
+
*/
|
|
137
|
+
get BubbleTagService(): BubbleTagService | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* Direct access to WebinarService
|
|
140
|
+
* @returns the WebinarService singleton instance if available
|
|
141
|
+
*/
|
|
142
|
+
get webinarService(): WebinarService | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* Direct access to FileDocumentService
|
|
145
|
+
* @returns the DocumentsService singleton instance if available
|
|
146
|
+
*/
|
|
147
|
+
get fileDocumentService(): FileDocumentService | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* Direct access to core DirectoryService
|
|
150
|
+
* @returns the DirectoryService singleton instance
|
|
151
|
+
*/
|
|
152
|
+
get directorySearchService(): DirectorySearchService;
|
|
153
|
+
/**
|
|
154
|
+
* Direct access to CallService
|
|
155
|
+
* @returns the CallService singleton instance if available
|
|
156
|
+
*/
|
|
157
|
+
get callService(): CallService | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* Direct access to CallRecorderService
|
|
160
|
+
* @returns the CallService singleton instance if available
|
|
161
|
+
*/
|
|
162
|
+
get callRecorderService(): CallRecorderService | undefined;
|
|
163
|
+
/**
|
|
164
|
+
* Direct access to FavoritesService
|
|
165
|
+
* @returns the FavoritesService singleton instance if available
|
|
166
|
+
*/
|
|
167
|
+
get favoritesService(): FavoritesService | undefined;
|
|
168
|
+
/**
|
|
169
|
+
* Direct access to CallLogService
|
|
170
|
+
* @returns the CallLogService singleton instance if available
|
|
171
|
+
*/
|
|
172
|
+
get callLogsService(): CallLogService | undefined;
|
|
173
|
+
/**
|
|
174
|
+
* Direct access to BubbleConferenceService
|
|
175
|
+
* @returns the BubbleConferenceService singleton instance if available
|
|
176
|
+
*/
|
|
177
|
+
get bubbleConferenceService(): BubbleConferenceService | undefined;
|
|
178
|
+
/**
|
|
179
|
+
* Direct access to DataChannelService
|
|
180
|
+
* @returns the DataChannelService singleton instance if available
|
|
181
|
+
*/
|
|
182
|
+
get dataChannelService(): DataChannelService | undefined;
|
|
183
|
+
/**
|
|
184
|
+
* Direct access to DeviceManagementService
|
|
185
|
+
* @returns the DeviceManagementService singleton instance if available
|
|
186
|
+
*/
|
|
187
|
+
get deviceManagementService(): DeviceManagementService | undefined;
|
|
188
|
+
/**
|
|
189
|
+
* Direct access to TelephonyConfigService
|
|
190
|
+
* @returns the TelephonyConfigService singleton instance if available
|
|
191
|
+
*/
|
|
192
|
+
get telephonyConfigService(): TelephonyConfigService | undefined;
|
|
193
|
+
/**
|
|
194
|
+
* Direct access to TranscriptionService
|
|
195
|
+
* @returns the TranscriptionService singleton instance if available
|
|
196
|
+
*/
|
|
197
|
+
get transcriptionService(): LiveTranscriptionService | undefined;
|
|
198
|
+
/**
|
|
199
|
+
* Direct access to LocalTranslationService (on-device translation, lazily created)
|
|
200
|
+
* @returns the LocalTranslationService singleton instance
|
|
201
|
+
*/
|
|
202
|
+
get localTranslationService(): LocalTranslationService;
|
|
203
|
+
/**
|
|
204
|
+
* Direct access to BubbleConferenceRecapService
|
|
205
|
+
* @returns the BubbleConferenceRecapService singleton instance if available
|
|
206
|
+
*/
|
|
207
|
+
get conferenceRecapService(): BubbleConferenceRecapService | undefined;
|
|
208
|
+
/**
|
|
209
|
+
* Direct access to ChannelService
|
|
210
|
+
* @returns the ChannelService singleton instance if available
|
|
211
|
+
*/
|
|
212
|
+
get channelService(): ChannelService | undefined;
|
|
213
|
+
/**
|
|
214
|
+
* Direct access to ChannelService
|
|
215
|
+
* @returns the ChannelService singleton instance if available
|
|
216
|
+
*/
|
|
217
|
+
get settingsService(): SettingsService;
|
|
218
|
+
/**
|
|
219
|
+
* Direct access to TodoServiceRB
|
|
220
|
+
* @returns the TodoServiceRB singleton instance if available
|
|
221
|
+
*/
|
|
222
|
+
get todoService(): TodoServiceRB | undefined;
|
|
223
|
+
/**
|
|
224
|
+
* Direct access to PollsService
|
|
225
|
+
* @returns the PollsService singleton instance if available
|
|
226
|
+
*/
|
|
227
|
+
get pollsService(): PollsService | undefined;
|
|
228
|
+
/**
|
|
229
|
+
* Direct access to NotificationsViewerService
|
|
230
|
+
* @returns the NotificationsViewerService singleton instance if available
|
|
231
|
+
*/
|
|
232
|
+
get notificationService(): NotificationsViewerService;
|
|
233
|
+
/**
|
|
234
|
+
* Direct access to AdminService
|
|
235
|
+
* @returns the AdminService singleton instance if available
|
|
236
|
+
*/
|
|
237
|
+
get adminService(): SDKAdminService | undefined;
|
|
238
|
+
/**
|
|
239
|
+
* Direct access to RPCService
|
|
240
|
+
* @returns the RPCService singleton instance if available
|
|
241
|
+
*/
|
|
242
|
+
get rpcService(): RPCService | undefined;
|
|
243
|
+
/**
|
|
244
|
+
* Direct access to HelpCenterService
|
|
245
|
+
* @returns the HelpCenterService singleton instance if available
|
|
246
|
+
*/
|
|
247
|
+
get helpCenterService(): HelpCenterService | undefined;
|
|
248
|
+
/**
|
|
249
|
+
* Direct access to WhatsNewService
|
|
250
|
+
* @returns the WhatsNewService singleton instance if available
|
|
251
|
+
*/
|
|
252
|
+
get whatsNewService(): WhatsNewService | undefined;
|
|
253
|
+
markdownParser: RainbowSDKMarkdownParser | undefined;
|
|
254
|
+
private _contactService;
|
|
255
|
+
private _userService;
|
|
256
|
+
private _loggerService;
|
|
257
|
+
private _connectionService;
|
|
258
|
+
private _utilitiesService;
|
|
259
|
+
private _conversationService;
|
|
260
|
+
private _directorySearchService;
|
|
261
|
+
private _errorHelperService;
|
|
262
|
+
private _notificationViewerService;
|
|
263
|
+
/**
|
|
264
|
+
* Static method to reach the RainbowSDK singleton instance
|
|
265
|
+
* @returns The Rainbow singleton instance
|
|
266
|
+
*/
|
|
267
|
+
static getInstance(): RainbowSDK;
|
|
268
|
+
/**
|
|
269
|
+
* Static method to create the RainbowSDK singleton instance
|
|
270
|
+
* @returns The Rainbow singleton instance
|
|
271
|
+
*/
|
|
272
|
+
static create(options?: RainbowSDKConfig): RainbowSDK;
|
|
273
|
+
private constructor();
|
|
274
|
+
/**
|
|
275
|
+
* Permits to enable console logs
|
|
276
|
+
* @param enable - when set to true logs are displayed on console
|
|
277
|
+
*/
|
|
278
|
+
enableLogs(enable: boolean): void;
|
|
279
|
+
/**
|
|
280
|
+
* Permits to specify logLevel
|
|
281
|
+
* @param logLevel - when set to true logs are displayed on console
|
|
282
|
+
*/
|
|
283
|
+
setLogLevel(logLevel: LogLevelEnum): void;
|
|
284
|
+
/**
|
|
285
|
+
* Permits to get current logLevel
|
|
286
|
+
*/
|
|
287
|
+
getLogLevel(): LogLevelEnum;
|
|
288
|
+
/**
|
|
289
|
+
* Permits to start the Rainbow SDK
|
|
290
|
+
* @returns resolve when Rainbow SDK is started
|
|
291
|
+
*/
|
|
292
|
+
start(): Promise<ConnectedUser | undefined>;
|
|
293
|
+
/**
|
|
294
|
+
* Permits to stop the Rainbow SDK
|
|
295
|
+
* @returns resolve when Rainbow SDK is stopped
|
|
296
|
+
*/
|
|
297
|
+
stop(): Promise<void>;
|
|
298
|
+
/**
|
|
299
|
+
* Get the current Rainbow SDK version
|
|
300
|
+
* @returns the current Rainbow SDK version
|
|
301
|
+
*/
|
|
302
|
+
getVersion(): string;
|
|
303
|
+
/**
|
|
304
|
+
* Permit to fetch the singleton instance of a named service
|
|
305
|
+
* @returns the singleton instance of a named service
|
|
306
|
+
*/
|
|
307
|
+
get<T = any>(serviceName: string): T | undefined;
|
|
308
|
+
}
|
|
309
|
+
//# sourceMappingURL=rainbow.sdk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rainbow.sdk.d.ts","sourceRoot":"","sources":["../src/rainbow.sdk.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKlD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAE5E,OAAO,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AAiB,CAAoD;IAC7E,OAAO,CAAC,oBAAoB,CAAuC;IACnE,OAAO,CAAC,uBAAuB,CAAkE;IACjG,OAAO,CAAC,mBAAmB,CAAoC;IAC/D,OAAO,CAAC,0BAA0B,CAA4C;IAE9E;;;OAGG;WACW,WAAW,IAAI,UAAU;IAOvC;;;OAGG;WACW,MAAM,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,UAAU;IAiF5D,OAAO;IAEP;;;OAGG;IACI,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI;IAIxC;;;OAGG;IACI,WAAW,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI;IAIhD;;OAEG;IACI,WAAW,IAAI,YAAY;IAIlC;;;OAGG;IACU,KAAK,IAAI,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;IAIxD;;;MAGE;IACW,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIlC;;;MAGE;IACK,UAAU,IAAI,MAAM;IAI3B;;;MAGE;IACK,GAAG,CAAC,CAAC,GAAG,GAAG,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;CAG1D"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module Admin
|
|
3
|
+
*/
|
|
4
|
+
import type { AuthService } from "../../services/core/auth.service";
|
|
5
|
+
import type { LoggerService } from "../../services/core/logger.service";
|
|
6
|
+
import type { ErrorHelperService } from "../../services/utilities/errorHelper.service";
|
|
7
|
+
/**
|
|
8
|
+
* Admin sub-service for alarm counter retrieval.
|
|
9
|
+
*
|
|
10
|
+
* Accessible via `adminService.alarm`.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const counter = await adminService.alarm.getAlarmCounter();
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export interface SDKAdminAlarmService {
|
|
18
|
+
/**
|
|
19
|
+
* Fetches the number of active alarms for a given company or business partner.
|
|
20
|
+
*
|
|
21
|
+
* @param options - Optional filter by companyId or bpId.
|
|
22
|
+
* @returns The number of active alarms.
|
|
23
|
+
*/
|
|
24
|
+
getAlarmCounter: (options?: {
|
|
25
|
+
companyId?: string;
|
|
26
|
+
bpId?: string;
|
|
27
|
+
}) => Promise<number>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
export declare class SDKAdminAlarmServiceRB implements SDKAdminAlarmService {
|
|
33
|
+
private readonly authService;
|
|
34
|
+
private readonly loggerService;
|
|
35
|
+
private readonly errorHelperService;
|
|
36
|
+
constructor(authService: AuthService, loggerService: LoggerService, errorHelperService: ErrorHelperService);
|
|
37
|
+
getAlarmCounter(options?: {
|
|
38
|
+
companyId?: string;
|
|
39
|
+
bpId?: string;
|
|
40
|
+
}): Promise<number>;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=admin-alarm.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-alarm.service.d.ts","sourceRoot":"","sources":["../../../src/services/admin/admin-alarm.service.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAC;AACnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AACvF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6DAA6D,CAAC;AAItG;;;;;;;;;GASG;AACH,MAAM,WAAW,oBAAoB;IAEjC;;;;;OAKG;IACH,eAAe,EAAE,CAAC,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;KAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CAC1F;AAED;;GAEG;AACH,qBAAa,sBAAuB,YAAW,oBAAoB;IAE3D,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;gBAFlB,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,aAAa,EAC5B,kBAAkB,EAAE,kBAAkB;IAG9C,eAAe,CAAC,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;CAqBlG"}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module Admin
|
|
3
|
+
*/
|
|
4
|
+
import { Company } from "../..";
|
|
5
|
+
/**
|
|
6
|
+
* The splash screen a company uses — the image shown while the application loads.
|
|
7
|
+
*
|
|
8
|
+
* A company holds at most one uploaded image, and {@link uploadedUsed} says whether that image
|
|
9
|
+
* or the default Rainbow screen is in use: uploading and selecting are two distinct steps.
|
|
10
|
+
*/
|
|
11
|
+
export interface SplashScreenInfo {
|
|
12
|
+
/** `true` when the company's Business Partner forbids customising the splash screen. */
|
|
13
|
+
readonly isForced: boolean;
|
|
14
|
+
/** `true` when the uploaded image is in use, `false` for the default Rainbow screen. */
|
|
15
|
+
readonly uploadedUsed: boolean;
|
|
16
|
+
/** ISO date of the last change. Also used to bust the image cache. */
|
|
17
|
+
readonly lastUpdateDate: string;
|
|
18
|
+
/** Identifier of the company the splash screen belongs to. */
|
|
19
|
+
readonly companyId: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Admin sub-service for company management.
|
|
23
|
+
*
|
|
24
|
+
* Accessible via `adminService.company`.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const company = await adminService.company.get(companyId);
|
|
29
|
+
* const all = await adminService.company.getAll();
|
|
30
|
+
* const created = await adminService.company.create('Acme', 'FR');
|
|
31
|
+
* await adminService.company.remove(company);
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export interface SDKAdminCompanyService {
|
|
35
|
+
/**
|
|
36
|
+
* Fetches a single company by its identifier.
|
|
37
|
+
*
|
|
38
|
+
* @param companyId - The unique identifier of the company.
|
|
39
|
+
* @returns The matching {@link Company} instance with full details.
|
|
40
|
+
* @throws {@link RainbowError} when the company is not found or the request fails.
|
|
41
|
+
*/
|
|
42
|
+
get: (companyId: string) => Promise<Company>;
|
|
43
|
+
/**
|
|
44
|
+
* Fetches all companies visible to the authenticated admin.
|
|
45
|
+
*
|
|
46
|
+
* @returns An array of {@link Company} instances.
|
|
47
|
+
* @throws {@link RainbowError} when the request fails.
|
|
48
|
+
*/
|
|
49
|
+
getAll: () => Promise<Company[]>;
|
|
50
|
+
/**
|
|
51
|
+
* Creates a new company.
|
|
52
|
+
*
|
|
53
|
+
* @param name - Display name of the company.
|
|
54
|
+
* @param country - ISO country code (e.g. `"FR"`, `"US"`).
|
|
55
|
+
* @param state - Optional state or region within the country.
|
|
56
|
+
* @returns The newly created {@link Company} instance.
|
|
57
|
+
* @throws {@link RainbowError} when creation fails.
|
|
58
|
+
*/
|
|
59
|
+
create: (name: string, country: string, state?: string) => Promise<Company>;
|
|
60
|
+
/**
|
|
61
|
+
* Creates the connected user's own company, for a user who has none yet.
|
|
62
|
+
*
|
|
63
|
+
* Unlike {@link create}, which is the administrator's endpoint, this goes through the
|
|
64
|
+
* end-user API: a standalone user carries no admin role and could not call the other one.
|
|
65
|
+
* The backend attaches the caller to the new company and makes them its administrator, so the
|
|
66
|
+
* connected contact must be refreshed afterwards — `isInDefaultCompany` and the roles change.
|
|
67
|
+
*
|
|
68
|
+
* @throws the backend error; `errorDetailsCode` 400500 / 400504 means the name is taken.
|
|
69
|
+
*/
|
|
70
|
+
createMyCompany: (name: string, country: string, state?: string) => Promise<Company>;
|
|
71
|
+
/**
|
|
72
|
+
* Deletes a company.
|
|
73
|
+
*
|
|
74
|
+
* @param companyRef - The company to delete, as either its string ID or a {@link Company} instance.
|
|
75
|
+
* @throws {@link RainbowError} when the deletion fails.
|
|
76
|
+
*/
|
|
77
|
+
remove: (companyRef: string | Company) => Promise<void>;
|
|
78
|
+
/**
|
|
79
|
+
* Resolves and sets the logo image on a company object.
|
|
80
|
+
*
|
|
81
|
+
* Computes the avatar image (either from the server or a generated fallback)
|
|
82
|
+
* and assigns it to `company.logo`.
|
|
83
|
+
*
|
|
84
|
+
* @param company - The company whose logo should be resolved.
|
|
85
|
+
* @returns The same {@link Company} instance with `logo` populated.
|
|
86
|
+
* @throws {@link RainbowError} when the logo resolution fails.
|
|
87
|
+
*/
|
|
88
|
+
getLogo: (company: Company) => Promise<Company>;
|
|
89
|
+
/**
|
|
90
|
+
* Loads the banner image for a company and assigns it to `company.banner`.
|
|
91
|
+
*
|
|
92
|
+
* @param company - The company whose banner should be loaded.
|
|
93
|
+
* @returns The same {@link Company} instance with `banner` populated (or unchanged when none exists).
|
|
94
|
+
*/
|
|
95
|
+
getBanner: (company: Company) => Promise<Company>;
|
|
96
|
+
/**
|
|
97
|
+
* Reads which splash screen a company currently uses.
|
|
98
|
+
*
|
|
99
|
+
* @param companyId - The unique identifier of the company.
|
|
100
|
+
* @returns The company's {@link SplashScreenInfo}.
|
|
101
|
+
* @throws {@link RainbowError} when the request fails.
|
|
102
|
+
*/
|
|
103
|
+
getSplashScreen: (companyId: string) => Promise<SplashScreenInfo>;
|
|
104
|
+
/**
|
|
105
|
+
* Uploads a custom splash screen image for a company, replacing any previous one.
|
|
106
|
+
*
|
|
107
|
+
* Uploading does not select the image on its own — call {@link setSplashScreen} to put it in
|
|
108
|
+
* use, unless the returned `uploadedUsed` already says the backend selected it.
|
|
109
|
+
*
|
|
110
|
+
* @param companyId - The unique identifier of the company.
|
|
111
|
+
* @param image - The image file, sent as-is with its own content type.
|
|
112
|
+
* @returns The updated {@link SplashScreenInfo}.
|
|
113
|
+
* @throws {@link RainbowError} when the upload fails; `errorDetailsCode` 413000 means the file
|
|
114
|
+
* exceeds the size the backend accepts.
|
|
115
|
+
*/
|
|
116
|
+
uploadSplashScreen: (companyId: string, image: File) => Promise<SplashScreenInfo>;
|
|
117
|
+
/**
|
|
118
|
+
* Chooses between the uploaded image and the default Rainbow screen.
|
|
119
|
+
*
|
|
120
|
+
* @param companyId - The unique identifier of the company.
|
|
121
|
+
* @param useUploaded - `true` to use the uploaded image, `false` for the default screen.
|
|
122
|
+
* @returns The updated {@link SplashScreenInfo}.
|
|
123
|
+
* @throws {@link RainbowError} when the request fails.
|
|
124
|
+
*/
|
|
125
|
+
setSplashScreen: (companyId: string, useUploaded: boolean) => Promise<SplashScreenInfo>;
|
|
126
|
+
/**
|
|
127
|
+
* Deletes the company's uploaded splash screen image, falling back to the default screen.
|
|
128
|
+
*
|
|
129
|
+
* @param companyId - The unique identifier of the company.
|
|
130
|
+
* @throws {@link RainbowError} when the deletion fails.
|
|
131
|
+
*/
|
|
132
|
+
removeSplashScreen: (companyId: string) => Promise<void>;
|
|
133
|
+
resolveId: (companyRef: string | Company) => string | undefined;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* @internal
|
|
137
|
+
*/
|
|
138
|
+
export declare class SDKAdminCompanyServiceRB implements SDKAdminCompanyService {
|
|
139
|
+
private readonly userInfoService;
|
|
140
|
+
private readonly authService;
|
|
141
|
+
private readonly loggerService;
|
|
142
|
+
private readonly errorHelperService;
|
|
143
|
+
private readonly userService;
|
|
144
|
+
getAll(): Promise<Company[]>;
|
|
145
|
+
get(companyId: string): Promise<Company>;
|
|
146
|
+
create(name: string, country: string, state?: string): Promise<Company>;
|
|
147
|
+
createMyCompany(name: string, country: string, state?: string): Promise<Company>;
|
|
148
|
+
remove(companyRef: string | Company): Promise<void>;
|
|
149
|
+
getLogo(company: Company): Promise<Company>;
|
|
150
|
+
getBanner(company: Company): Promise<Company>;
|
|
151
|
+
getSplashScreen(companyId: string): Promise<SplashScreenInfo>;
|
|
152
|
+
uploadSplashScreen(companyId: string, image: File): Promise<SplashScreenInfo>;
|
|
153
|
+
setSplashScreen(companyId: string, useUploaded: boolean): Promise<SplashScreenInfo>;
|
|
154
|
+
removeSplashScreen(companyId: string): Promise<void>;
|
|
155
|
+
/**
|
|
156
|
+
* Resolves a company reference to its string identifier.
|
|
157
|
+
*
|
|
158
|
+
* Accepts either a raw company ID string or a {@link Company} instance and
|
|
159
|
+
* returns the corresponding string ID. Returns `undefined` if the argument
|
|
160
|
+
* is neither.
|
|
161
|
+
*
|
|
162
|
+
* @param companyRef - A company ID string or a {@link Company} instance.
|
|
163
|
+
* @returns The resolved string identifier, or `undefined` when the input is unrecognised.
|
|
164
|
+
*/
|
|
165
|
+
resolveId(companyRef: string | Company): string | undefined;
|
|
166
|
+
}
|
|
167
|
+
//# sourceMappingURL=admin-company.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-company.service.d.ts","sourceRoot":"","sources":["../../../src/services/admin/admin-company.service.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAkD,MAAM,sBAAsB,CAAC;AAO/F;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAE7B,wFAAwF;IACxF,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAE3B,wFAAwF;IACxF,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAE/B,sEAAsE;IACtE,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAEhC,8DAA8D;IAC9D,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC9B;AAQD;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,sBAAsB;IAEnC;;;;;;OAMG;IACH,GAAG,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAE7C;;;;;OAKG;IACH,MAAM,EAAE,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAEjC;;;;;;;;OAQG;IACH,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAA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+
/**
|
|
6
|
+
* Admin sub-service for department read access.
|
|
7
|
+
*
|
|
8
|
+
* Accessible via `adminService.department`.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const departments = await adminService.department.getAll(companyId);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export interface SDKAdminDepartmentService {
|
|
16
|
+
/**
|
|
17
|
+
* Fetches all departments for a given company.
|
|
18
|
+
*
|
|
19
|
+
* Empty or falsy department entries returned by the server are filtered out.
|
|
20
|
+
* When `companyId` is omitted or empty, the server returns departments for
|
|
21
|
+
* the authenticated user's own company.
|
|
22
|
+
*
|
|
23
|
+
* @param companyId - The unique identifier of the company.
|
|
24
|
+
* @returns An array of raw department data objects.
|
|
25
|
+
* @throws {@link RainbowError} when the request fails.
|
|
26
|
+
*/
|
|
27
|
+
getAll: (companyId: string) => Promise<string[]>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
export declare class SDKAdminDepartmentServiceRB implements SDKAdminDepartmentService {
|
|
33
|
+
private readonly authService;
|
|
34
|
+
private readonly loggerService;
|
|
35
|
+
private readonly errorHelperService;
|
|
36
|
+
constructor(authService: AuthService, loggerService: LoggerService, errorHelperService: ErrorHelperService);
|
|
37
|
+
getAll(companyId: string): Promise<string[]>;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=admin-department.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-department.service.d.ts","sourceRoot":"","sources":["../../../src/services/admin/admin-department.service.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE3F;;;;;;;;;GASG;AACH,MAAM,WAAW,yBAAyB;IAEtC;;;;;;;;;;OAUG;IACH,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CACpD;AAED;;GAEG;AACH,qBAAa,2BAA4B,YAAW,yBAAyB;IAErE,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;gBAFlB,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,aAAa,EAC5B,kBAAkB,EAAE,kBAAkB;IAG9C,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAc5D"}
|