@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,146 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module User
|
|
3
|
+
*/
|
|
4
|
+
import { Service } from "../../services";
|
|
5
|
+
import type { ConnectedUser, User } from "../../models";
|
|
6
|
+
import { RBEvent } from "../../models";
|
|
7
|
+
import type { Subscription } from "rxjs";
|
|
8
|
+
import type { UsersByEmailsResult } from "../../models/user.model";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const USER_SVC = "UserService";
|
|
11
|
+
/**
|
|
12
|
+
* Users service events
|
|
13
|
+
* Can listen to it via `UserService.subscribe()` API.
|
|
14
|
+
* @eventProperty
|
|
15
|
+
*/
|
|
16
|
+
export declare enum UserServiceEvents {
|
|
17
|
+
/**
|
|
18
|
+
* @eventProperty
|
|
19
|
+
*/
|
|
20
|
+
ON_USER_CHANGED = "ON_USER_CHANGED"
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* User Service interface
|
|
24
|
+
*/
|
|
25
|
+
export interface UserService {
|
|
26
|
+
/**
|
|
27
|
+
* The current connectedUser
|
|
28
|
+
*/
|
|
29
|
+
connectedUser?: ConnectedUser;
|
|
30
|
+
/**
|
|
31
|
+
* Subscribe to updates from the user service, all events are of RBEvent<UserServiceEvents>
|
|
32
|
+
* @param callback - The callback function that will be called when events are received
|
|
33
|
+
* @param eventNames - Array of event to listen
|
|
34
|
+
* @returns Returns RxJS Subscription
|
|
35
|
+
*/
|
|
36
|
+
subscribe: (callback: (event: RBEvent<UserServiceEvents>) => any, eventNames?: UserServiceEvents | UserServiceEvents[]) => Subscription;
|
|
37
|
+
/**
|
|
38
|
+
* Get a user by one of its identifier
|
|
39
|
+
* The user is first search in service cache then server side.
|
|
40
|
+
* @param userRef - a user jid or user dbId or user jid tel
|
|
41
|
+
*/
|
|
42
|
+
getUserById: (userRef: string) => Promise<User | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* Retrieves users matching the given e-mail addresses.
|
|
45
|
+
*
|
|
46
|
+
* Each e-mail is looked up against the Rainbow directory. Found users are
|
|
47
|
+
* returned both as an indexed map (keyed by login e-mail) and as a flat
|
|
48
|
+
* array. E-mail addresses that did not match any Rainbow user are returned
|
|
49
|
+
* in the `emails` array so the caller can handle them as guest invitations.
|
|
50
|
+
*
|
|
51
|
+
* @param emails - List of e-mail addresses to resolve.
|
|
52
|
+
* @returns An object containing:
|
|
53
|
+
* - `contacts` — a map of `loginEmail → User` for matched users,
|
|
54
|
+
* - `contactsArray` — the same matched users as a flat array,
|
|
55
|
+
* - `emails` — e-mail addresses that could not be resolved to a user.
|
|
56
|
+
*/
|
|
57
|
+
getUsersByEmails: (emails: string[]) => Promise<any>;
|
|
58
|
+
/**
|
|
59
|
+
* Computes a deterministic color string associated with a user's display name.
|
|
60
|
+
* The same display name will always produce the same color, making it suitable
|
|
61
|
+
* for use as a user avatar background color.
|
|
62
|
+
* @param displayName - The display name of the user
|
|
63
|
+
* @returns A color string (e.g. a hex or CSS color value)
|
|
64
|
+
*/
|
|
65
|
+
computeUserColor: (displayName: string) => {
|
|
66
|
+
colorIndex: number;
|
|
67
|
+
color: string;
|
|
68
|
+
colorName: string;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Computes the avatar representation for a user.
|
|
72
|
+
* If no avatar update timestamp is provided, generates a default avatar image from the user's initials and color.
|
|
73
|
+
* Otherwise, returns a URL pointing to the server-side avatar image.
|
|
74
|
+
* @param objId - The unique identifier of the user
|
|
75
|
+
* @param initials - The user's initials, used to generate a default avatar
|
|
76
|
+
* @param color - The background color used when generating the default avatar
|
|
77
|
+
* @param size - The desired avatar size in pixels
|
|
78
|
+
* @param lastAvatarUpdate - Timestamp of the last avatar update; falsy if no custom avatar exists
|
|
79
|
+
* @returns An `HTMLImageElement` for a generated default avatar, an object with a `src` URL for a server avatar, or `null` if no initials are available
|
|
80
|
+
*/
|
|
81
|
+
computeUserAvatar: (objId: string | null, initials: string, color: string, size?: number, lastAvatarUpdate?: any) => HTMLImageElement | {
|
|
82
|
+
src: string;
|
|
83
|
+
} | null;
|
|
84
|
+
/**
|
|
85
|
+
* Computes the display name and initials for a user from their first and last name.
|
|
86
|
+
* The display order (first-last or last-first) is determined by the application settings.
|
|
87
|
+
* @param firstName - The user's first name
|
|
88
|
+
* @param lastName - The user's last name
|
|
89
|
+
* @returns An object containing the formatted `displayName` and the two-letter `initials`
|
|
90
|
+
*/
|
|
91
|
+
computeUserName: (firstName: string, lastName: string) => {
|
|
92
|
+
displayName: string;
|
|
93
|
+
initials: string;
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* User Service implementation
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
export declare class UserServiceRB extends Service implements UserService {
|
|
101
|
+
private rxSubject;
|
|
102
|
+
private readonly logger;
|
|
103
|
+
private readonly userInfoService;
|
|
104
|
+
private contactService?;
|
|
105
|
+
/**
|
|
106
|
+
* Returns the Favorite service singleton
|
|
107
|
+
*/
|
|
108
|
+
static getInstance(): UserServiceRB;
|
|
109
|
+
static build(): UserServiceRB;
|
|
110
|
+
private constructor();
|
|
111
|
+
get connectedUser(): ConnectedUser;
|
|
112
|
+
subscribe(handler: (event: RBEvent<UserServiceEvents>) => any, eventNames?: UserServiceEvents | UserServiceEvents[]): Subscription;
|
|
113
|
+
configure(contactService: any): void;
|
|
114
|
+
/**
|
|
115
|
+
* User service events send method
|
|
116
|
+
* Can listen to it via UserService.subscribe() API
|
|
117
|
+
* @param name - the name of the event
|
|
118
|
+
* @param data - the data to be send (an object)
|
|
119
|
+
*/
|
|
120
|
+
sendEvent(name: UserServiceEvents, data?: any): void;
|
|
121
|
+
/**
|
|
122
|
+
* Get a user by one of its identifier
|
|
123
|
+
* The user is first search in service cache then server side.
|
|
124
|
+
* @param userRef - a user jid or user dbId or user jid tel
|
|
125
|
+
*/
|
|
126
|
+
getUserById(userRef: string): Promise<User | undefined>;
|
|
127
|
+
getUsersByEmails(emails: string[]): Promise<UsersByEmailsResult>;
|
|
128
|
+
/**
|
|
129
|
+
* Check if the jid/dbId belongs to the connected user
|
|
130
|
+
* @param userRef - a user jid or user dbId or user jid tel
|
|
131
|
+
*/
|
|
132
|
+
isConnectedUser(userRef: string): boolean;
|
|
133
|
+
computeUserColor(displayName: string): {
|
|
134
|
+
colorIndex: number;
|
|
135
|
+
color: string;
|
|
136
|
+
colorName: string;
|
|
137
|
+
};
|
|
138
|
+
computeUserAvatar(objId: string | null, initials: string, color: string, size?: number, lastAvatarUpdate?: any): HTMLImageElement | {
|
|
139
|
+
src: string;
|
|
140
|
+
} | null;
|
|
141
|
+
computeUserName(firstName: string, lastName: string): {
|
|
142
|
+
displayName: string;
|
|
143
|
+
initials: string;
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=user.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.service.d.ts","sourceRoot":"","sources":["../../../src/services/users/user.service.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,OAAO,EAAiB,OAAO,EAAmB,MAAM,+BAA+B,CAAC;AACxF,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAGzC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAGnE,gBAAgB;AAChB,eAAO,MAAM,QAAQ,gBAAgB,CAAC;AAEtC;;;;GAIG;AACH,oBAAY,iBAAiB;IACzB;;MAEE;IACF,eAAe,oBAAoB;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAExB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B;;;;;OAKG;IACH,SAAS,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,iBAAiB,CAAC,KAAK,GAAG,EAAE,UAAU,CAAC,EAAE,iBAAiB,GAAG,iBAAiB,EAAE,KAAK,YAAY,CAAC;IAExI;;;;OAIG;IACH,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,GAAG,SAAS,CAAC,CAAC;IAE5D;;;;;;;;;;;;;OAaG;IACH,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAErD;;;;;;OAMG;IACH,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,GAAG,OAAO,CAAC,IAAI,GAAG,SAAS,CAAC;IAIvD,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAIvE;;;OAGG;IACI,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAIzC,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;KAAE;IAIhG,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,GAAG,GAAG,gBAAgB,GAAG;QAAE,GAAG,EAAE,MAAM,CAAC;KAAE,GAAG,IAAI;IAI3J,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;KAAE;CAG1G"}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module UsersLists
|
|
3
|
+
*/
|
|
4
|
+
import type { Subscription } from "rxjs";
|
|
5
|
+
import { BehaviorSubject } from "rxjs";
|
|
6
|
+
import { RBEvent } from "../../models/event.model";
|
|
7
|
+
import type { UsersList, UsersListProfile } from "../../models/usersList.model";
|
|
8
|
+
import { UsersListRB } from "../../models/usersList.model";
|
|
9
|
+
import type { Contact } from "../../models/contact.model";
|
|
10
|
+
import { Service } from "../../services/service";
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const USERSLISTS_SVC = "UsersListsService";
|
|
13
|
+
/**
|
|
14
|
+
* @eventProperty
|
|
15
|
+
* UsersLists service events send to other services
|
|
16
|
+
* Can listen to it via `UsersListsService.subscribe()` API
|
|
17
|
+
*/
|
|
18
|
+
export declare enum UsersListsServiceEvents {
|
|
19
|
+
/**
|
|
20
|
+
* @eventProperty
|
|
21
|
+
* This `RBEvent` is sent when a new users list has been created.
|
|
22
|
+
*
|
|
23
|
+
* **Event Data**
|
|
24
|
+
* - **data**: The new created users list (as UsersList model)
|
|
25
|
+
*/
|
|
26
|
+
ON_USERS_LIST_CREATED = "ON_USERS_LIST_CREATED",
|
|
27
|
+
/**
|
|
28
|
+
* @eventProperty
|
|
29
|
+
* This `RBEvent` is sent when the list information (name, description or favorite status) has been modified.
|
|
30
|
+
*
|
|
31
|
+
* **Event Data**
|
|
32
|
+
* - **data**: The updated users list (as UsersList object)
|
|
33
|
+
*/
|
|
34
|
+
ON_USERS_LIST_PROFILE_UPDATED = "ON_USERS_LIST_PROFILE_UPDATED",
|
|
35
|
+
/**
|
|
36
|
+
* @eventProperty
|
|
37
|
+
* This `RBEvent` is sent when a users list has been deleted.
|
|
38
|
+
*
|
|
39
|
+
* **Event Data**
|
|
40
|
+
* - **data**: The id (as string) of the users list that has been deleted.
|
|
41
|
+
*/
|
|
42
|
+
ON_USERS_LIST_DELETED = "ON_USERS_LIST_DELETED",
|
|
43
|
+
/**
|
|
44
|
+
* @eventProperty
|
|
45
|
+
* This `RBEvent` is sent when a user has been added to the list.
|
|
46
|
+
*
|
|
47
|
+
* **Event Data**
|
|
48
|
+
* - **user**: The user (as User object) added to the list
|
|
49
|
+
* - **list**: The users list (as UsersList object) to which the user has been added.
|
|
50
|
+
*/
|
|
51
|
+
ON_USER_ADDED_TO_LIST = "ON_USER_ADDED_TO_LIST",
|
|
52
|
+
/**
|
|
53
|
+
* @eventProperty
|
|
54
|
+
* This `RBEvent` is sent when a user has been removed from the list.
|
|
55
|
+
*
|
|
56
|
+
* **Event Data**
|
|
57
|
+
* - **userId**: The id (as string) of the user removed from the list.
|
|
58
|
+
* - **list**: The users list (as UsersList object) to which the user has been added.
|
|
59
|
+
*/
|
|
60
|
+
ON_USER_REMOVED_FROM_LIST = "ON_USER_REMOVED_FROM_LIST"
|
|
61
|
+
}
|
|
62
|
+
export interface UsersListsService {
|
|
63
|
+
/**
|
|
64
|
+
* Subscribe to the users lists updates, all events are of RBEvent<UsersListsServiceEvents>
|
|
65
|
+
* @param callback - The callback function that will be called when events are received
|
|
66
|
+
* @param eventNames - (optional) array of event to listen
|
|
67
|
+
* @returns Returns RxJS Subscription
|
|
68
|
+
*/
|
|
69
|
+
subscribe: (callback: (event: RBEvent<UsersListsServiceEvents>) => any, eventNames?: UsersListsServiceEvents | UsersListsServiceEvents[]) => Subscription;
|
|
70
|
+
/**
|
|
71
|
+
* Get all users lists with all their properties.
|
|
72
|
+
*/
|
|
73
|
+
getUsersLists: () => UsersList[];
|
|
74
|
+
/**
|
|
75
|
+
* Get the data associated with the specified users list.
|
|
76
|
+
* @param id - The id of the users list
|
|
77
|
+
*/
|
|
78
|
+
getUsersListById: (id: string) => UsersList;
|
|
79
|
+
/**
|
|
80
|
+
* Create a new list of users
|
|
81
|
+
* Only the name of the users list is mandatory.
|
|
82
|
+
* The other information (description and favorite status) are optional and can be set afterwards using the 'updateUsersListInfo' method.
|
|
83
|
+
* A ON_USERS_LIST_CREATED event is sent afterwards at the completion of the operation to notify about the users list creation.
|
|
84
|
+
* @param profile name - Name of the users list<br/>
|
|
85
|
+
* description - (optional) A description of the users list. If not specified, set by default to "".<br/>
|
|
86
|
+
* favorite - (optional) Flag indicating if the users list is marked as "favorite". If not specified, set by default to false.
|
|
87
|
+
*/
|
|
88
|
+
createUsersList: (profile: UsersListProfile) => Promise<any>;
|
|
89
|
+
/**
|
|
90
|
+
* Delete a users list specified either by its reference or by its unique identifier.
|
|
91
|
+
* A ON_USERS_LIST_DELETED event is sent afterwards at the completion of the operation to notify about the users list deletion.
|
|
92
|
+
* @param listRef - Reference or identifier of the users list to delete
|
|
93
|
+
*/
|
|
94
|
+
deleteUsersList: (listRef: string | UsersList) => Promise<any>;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
export declare class UsersListsServiceRB extends Service implements UsersListsService {
|
|
100
|
+
private portalURL;
|
|
101
|
+
private xmppManagementHandler;
|
|
102
|
+
private startInProgress;
|
|
103
|
+
private authService;
|
|
104
|
+
private xmppService;
|
|
105
|
+
private contactService;
|
|
106
|
+
private errorHelperService;
|
|
107
|
+
private logger;
|
|
108
|
+
private rxSubject;
|
|
109
|
+
serviceReady: BehaviorSubject<boolean>;
|
|
110
|
+
startupFailed: BehaviorSubject<boolean>;
|
|
111
|
+
private usersLists;
|
|
112
|
+
/**
|
|
113
|
+
* Returns the UsersListRB service singleton
|
|
114
|
+
*/
|
|
115
|
+
static getInstance(): UsersListsServiceRB;
|
|
116
|
+
static build(): UsersListsServiceRB;
|
|
117
|
+
private constructor();
|
|
118
|
+
start(): Promise<void>;
|
|
119
|
+
stop(): Promise<void>;
|
|
120
|
+
reconnect(): void;
|
|
121
|
+
private attachHandlers;
|
|
122
|
+
private removeHandlers;
|
|
123
|
+
/**
|
|
124
|
+
* Subscribe to the users lists updates, all events are of RBEvent<UsersListsServiceEvents>
|
|
125
|
+
* @param callback - The callback function that will be called when events are received
|
|
126
|
+
* @param eventNames - (optional) array of event to listen
|
|
127
|
+
* @returns Returns RxJS Subscription
|
|
128
|
+
*/
|
|
129
|
+
subscribe(callback: (event: RBEvent<UsersListsServiceEvents>) => any, eventNames?: UsersListsServiceEvents | UsersListsServiceEvents[]): Subscription;
|
|
130
|
+
/**
|
|
131
|
+
* UsersList service events send to other services via sendEvent()
|
|
132
|
+
* Can listen to it via UsersListsServiceRB.subscribe() API
|
|
133
|
+
* @param name - the name of the event
|
|
134
|
+
* @param data - the data to be send (an object)
|
|
135
|
+
*/
|
|
136
|
+
private sendEvent;
|
|
137
|
+
/**
|
|
138
|
+
* Management of XMPP management message
|
|
139
|
+
* @param stanza - The received stanza.
|
|
140
|
+
*/
|
|
141
|
+
private onUsersListMessageReceived;
|
|
142
|
+
/**
|
|
143
|
+
* Get all users lists from the server
|
|
144
|
+
*/
|
|
145
|
+
private getUsersListsFromServer;
|
|
146
|
+
/**
|
|
147
|
+
* Add a users list in cache ('usersLists' data)
|
|
148
|
+
* @param listId - The id of the list to add in cache
|
|
149
|
+
* @returns The data associated with the new users list
|
|
150
|
+
*/
|
|
151
|
+
addListToCache(listId: string): Promise<UsersListRB>;
|
|
152
|
+
/**
|
|
153
|
+
* Update a users list from cache ('usersLists' data)
|
|
154
|
+
* The modification may come from the client who performed the action, or from another connected client (from the same connected user).
|
|
155
|
+
* @param listId - The id of the list to remove from cache
|
|
156
|
+
* @param name - Name of the users list
|
|
157
|
+
* @param description - A description of the users list.
|
|
158
|
+
* @param isFavorite - Flag indicating if the users list is marked as "favorite".
|
|
159
|
+
* @returns The data associated with the updated users list
|
|
160
|
+
*/
|
|
161
|
+
private updateListFomCache;
|
|
162
|
+
/**
|
|
163
|
+
* Remove a users list from cache ('usersLists' data)
|
|
164
|
+
* @param listId - The id of the list to remove from cache
|
|
165
|
+
*/
|
|
166
|
+
private removeListFomCache;
|
|
167
|
+
/**
|
|
168
|
+
* Add a user to the members of a users list in cache ('usersLists' data)
|
|
169
|
+
* @param userId - The dbId of the user to add to users list
|
|
170
|
+
* @param listId - The id of the users list to which the user must be added
|
|
171
|
+
*/
|
|
172
|
+
private addUserToCache;
|
|
173
|
+
/**
|
|
174
|
+
* Remove a user from the members of a users list in cache ('usersLists' data)
|
|
175
|
+
* @param userId - The dbId of the user to remove from the list
|
|
176
|
+
* @param listId - The id of the users list in which the user must be removed
|
|
177
|
+
*/
|
|
178
|
+
private removeUserFromCache;
|
|
179
|
+
/**
|
|
180
|
+
* Log main infos for all retrieved users lists: list + members names
|
|
181
|
+
* @param lists - The users lists internal cache
|
|
182
|
+
*/
|
|
183
|
+
private logUsersLists;
|
|
184
|
+
/**
|
|
185
|
+
* Create a new list of users
|
|
186
|
+
* Only the name of the users list is mandatory.
|
|
187
|
+
* The other information (description and favorite status) are optional and can be set afterwards using the 'updateUsersListInfo' method.
|
|
188
|
+
* A ON_USERS_LIST_CREATED event is sent afterwards at the completion of the operation to notify about the users list creation.
|
|
189
|
+
* @param profile - Profile (general information) of the users list
|
|
190
|
+
*/
|
|
191
|
+
createUsersList(profile: UsersListProfile): Promise<any>;
|
|
192
|
+
/**
|
|
193
|
+
* Delete a users list specified either by its reference or by its unique identifier.
|
|
194
|
+
* A ON_USERS_LIST_DELETED event is sent afterwards at the completion of the operation to notify about the users list deletion.
|
|
195
|
+
* @param listRef - Reference or identifier of the users list to delete
|
|
196
|
+
*/
|
|
197
|
+
deleteUsersList(listRef: string | UsersList): Promise<any>;
|
|
198
|
+
/**
|
|
199
|
+
* Update the general information associated with the users list
|
|
200
|
+
* Only the general information, i.e. the name, the description and the favorite status can be updated using this method.
|
|
201
|
+
* Users are added to or removed from the list using methods 'addUserToList' and 'removeUserFromList' respectively.
|
|
202
|
+
* A ON_USERS_LIST_PROFILE_UPDATED event is sent afterwards at the completion of the operation to notify about the users list update.
|
|
203
|
+
* @param list - The users list with the general information to be updated
|
|
204
|
+
*/
|
|
205
|
+
updateUsersListInfo(list: UsersList): Promise<any>;
|
|
206
|
+
/**
|
|
207
|
+
* Add a user in a users list.
|
|
208
|
+
* A ON_USER_ADDED_TO_LIST event is sent afterwards at the completion of the operation to notify about adding the user to the list.
|
|
209
|
+
* @param user - The user to add to users list
|
|
210
|
+
* @param list - The users list to which the user is to be added
|
|
211
|
+
*/
|
|
212
|
+
addUserToList(user: Contact, list: UsersList): Promise<void>;
|
|
213
|
+
/**
|
|
214
|
+
* Remove a user from a users list.
|
|
215
|
+
* A ON_USER_REMOVED_FROM_LIST event is sent afterwards at the completion of the operation to notify about removing a user from the list.
|
|
216
|
+
* @param user - Reference of the user to remove from the list
|
|
217
|
+
* @param list - The users list from which the user is to be removed
|
|
218
|
+
*/
|
|
219
|
+
removeUserFromList(user: Contact, list: UsersList): Promise<any>;
|
|
220
|
+
/**
|
|
221
|
+
* Get all users lists data with their data
|
|
222
|
+
*/
|
|
223
|
+
getUsersLists(): UsersList[];
|
|
224
|
+
/**
|
|
225
|
+
* @public
|
|
226
|
+
* Get the data associated with a specifid users list.
|
|
227
|
+
* @param id - The unique identifier of the users list
|
|
228
|
+
* @returns The data associated with a users list
|
|
229
|
+
*/
|
|
230
|
+
getUsersListById(id: string): UsersList;
|
|
231
|
+
/**
|
|
232
|
+
* @public
|
|
233
|
+
* Get the data associated with a specifid users list.
|
|
234
|
+
* @param criteria - The criteria to find from usersList.name
|
|
235
|
+
* @returns The data associated with the found users list
|
|
236
|
+
*/
|
|
237
|
+
searchUsersListByName(criteria: string): UsersListRB[];
|
|
238
|
+
}
|
|
239
|
+
//# sourceMappingURL=usersLists.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usersLists.service.d.ts","sourceRoot":"","sources":["../../../src/services/users/usersLists.service.ts"],"names":[],"mappings":"AAEA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,EAAE,eAAe,EAAmB,MAAM,MAAM,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AAOzE,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAIhE,gBAAgB;AAChB,eAAO,MAAM,cAAc,sBAAsB,CAAC;AAElD;;;;GAIG;AACH,oBAAY,uBAAuB;IAE/B;;;;;;OAMG;IACH,qBAAqB,0BAA0B;IAE/C;;;;;;OAMG;IACH,6BAA6B,kCAAkC;IAE/D;;;;;;OAMG;IACH,qBAAqB,0BAA0B;IAE/C;;;;;;;OAOG;IACH,qBAAqB,0BAA0B;IAE/C;;;;;;;OAOG;IACH,y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@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Service } from "../service";
|
|
2
|
+
export declare const BROWSER_DB_SVC = "BrowserDatabaseService";
|
|
3
|
+
export interface DbStoreType {
|
|
4
|
+
}
|
|
5
|
+
interface UpgradeHandler {
|
|
6
|
+
version: number;
|
|
7
|
+
upgrade: (db: IDBDatabase, transaction: IDBTransaction, oldVersion: number) => void | Promise<void>;
|
|
8
|
+
rollback?: (db: IDBDatabase, transaction: IDBTransaction, targetVersion: number) => void | Promise<void>;
|
|
9
|
+
description?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface DatabaseConfig {
|
|
12
|
+
/**
|
|
13
|
+
* Name of the database
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* Version of the database
|
|
18
|
+
*/
|
|
19
|
+
version: number;
|
|
20
|
+
/**
|
|
21
|
+
* Upgrades that will be applied to the database (like migrations)
|
|
22
|
+
*/
|
|
23
|
+
upgrades: UpgradeHandler[];
|
|
24
|
+
onVersionChange?: (event: IDBVersionChangeEvent) => void;
|
|
25
|
+
onBlocked?: (event: Event) => void;
|
|
26
|
+
}
|
|
27
|
+
declare class DatabaseTransaction {
|
|
28
|
+
private transaction;
|
|
29
|
+
private _completed;
|
|
30
|
+
constructor(transaction: IDBTransaction);
|
|
31
|
+
private checkActive;
|
|
32
|
+
get<K extends keyof DbStoreType, T extends DbStoreType[K]>(storeName: K, key: IDBValidKey): Promise<T | undefined>;
|
|
33
|
+
put<K extends keyof DbStoreType>(storeName: K, value: DbStoreType[K], key?: IDBValidKey): Promise<IDBValidKey>;
|
|
34
|
+
delete(storeName: keyof DbStoreType, key: IDBValidKey): Promise<void>;
|
|
35
|
+
getAll<StoreName extends keyof DbStoreType, T extends DbStoreType[StoreName]>(storeName: StoreName): Promise<T[]>;
|
|
36
|
+
waitForCompletion(): Promise<void>;
|
|
37
|
+
abort(): void;
|
|
38
|
+
}
|
|
39
|
+
export declare class IndexedDBDatabase {
|
|
40
|
+
private config;
|
|
41
|
+
private loggerService;
|
|
42
|
+
private db;
|
|
43
|
+
constructor(config: DatabaseConfig);
|
|
44
|
+
/**
|
|
45
|
+
* Open an IndexDB database
|
|
46
|
+
*
|
|
47
|
+
* @returns
|
|
48
|
+
*/
|
|
49
|
+
open(): Promise<void>;
|
|
50
|
+
isOpen(): boolean;
|
|
51
|
+
createTransaction(mode: IDBTransactionMode, storeNames: (keyof DbStoreType)[]): DatabaseTransaction;
|
|
52
|
+
runTransaction<T>(mode: IDBTransactionMode, storeNames: (keyof DbStoreType)[], operation: (tx: DatabaseTransaction) => Promise<T>): Promise<T>;
|
|
53
|
+
close(): void;
|
|
54
|
+
}
|
|
55
|
+
export declare class BrowserDatabaseService extends Service {
|
|
56
|
+
static getInstance(): BrowserDatabaseService;
|
|
57
|
+
static build(): BrowserDatabaseService;
|
|
58
|
+
private instances;
|
|
59
|
+
/**
|
|
60
|
+
* Create a new {@link IndexedDBDatabase} instance
|
|
61
|
+
*
|
|
62
|
+
* @param config - Database config object
|
|
63
|
+
* @returns database instance
|
|
64
|
+
*/
|
|
65
|
+
createDbInstance(config: DatabaseConfig): IndexedDBDatabase;
|
|
66
|
+
deleteDatabase(name: string): Promise<void>;
|
|
67
|
+
}
|
|
68
|
+
export {};
|
|
69
|
+
//# sourceMappingURL=browserDatabase.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browserDatabase.service.d.ts","sourceRoot":"","sources":["../../../src/services/utilities/browserDatabase.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,eAAO,MAAM,cAAc,2BAA2B,CAAC;AAEvD,MAAM,WAAW,WAAW;CAAG;AAE/B,UAAU,cAAc;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,CAAC,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,GAAG,OA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H,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAaxC,KAAK,IAAI,IAAI;CAGhB;AAED,qBAAa,iBAAiB;IAId,OAAO,CAAC,MAAM;IAH1B,OAAO,CAAC,aAAa,CAA8C;IACnE,OAAO,CAAC,EAAE,CAA0B;gBAEhB,MAAM,EAAE,cAAc;IAE1C;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAgEpB,MAAM,IAAI,OAAO;IAQxB,iBAAiB,CAAC,IAAI,EAAE,kBAAkB,EAAE,UAAU,EAAE,CAAC,MAAM,WAAW,CAAC,EAAE,GAAG,mBAAmB;IAQ7F,cAAc,CAAC,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,UAAU,EAAE,CAAC,MAAM,WAAW,CAAC,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,mBAAmB,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAepJ,KAAK,IAAI,IAAI;CAShB;AAED,qBAAa,sBAAuB,SAAQ,OAAO;WACjC,WAAW;WACX,KAAK;IAEnB,OAAO,CAAC,SAAS,CAAwC;IAEzD;;;;;OAKG;IACH,gBAAgB,CAAC,MAAM,EAAE,cAAc,GAAG,iBAAiB;IAYrD,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAepD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Service } from "../../services/service";
|
|
2
|
+
export declare const ERROR_HELPER_SVC = "ErrorHelperService";
|
|
3
|
+
export declare class ErrorHelperInfo {
|
|
4
|
+
message: string;
|
|
5
|
+
error: any;
|
|
6
|
+
}
|
|
7
|
+
export declare class ErrorHelperService extends Service {
|
|
8
|
+
static ERROR_CODE_LABELS: Record<string, string>;
|
|
9
|
+
static PORTAL_ERROR_CODE_LABELS: Record<string, Record<string, string>>;
|
|
10
|
+
private i18n;
|
|
11
|
+
static getInstance(): ErrorHelperService;
|
|
12
|
+
static build(): ErrorHelperService;
|
|
13
|
+
protected constructor();
|
|
14
|
+
getErrorInfo(error: any, context?: string, params?: any): Promise<ErrorHelperInfo>;
|
|
15
|
+
private getTranslatedErrorMessage;
|
|
16
|
+
getLocalizedError(errorCode: string, params: any, portal: string): string;
|
|
17
|
+
private getErrorText;
|
|
18
|
+
private getTextWithoutIds;
|
|
19
|
+
private getFeature;
|
|
20
|
+
private getStatusText;
|
|
21
|
+
private getBadRequestFieldErrors;
|
|
22
|
+
getErrorCodeLabel(errorCode: string, portal?: string): string;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=errorHelper.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errorHelper.service.d.ts","sourceRoot":"","sources":["../../../src/services/utilities/errorHelper.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAEhE,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AAErD,qBAAa,eAAe;IACjB,OAAO,EAAE,MAAM,CAAM;IACrB,KAAK,EAAE,GAAG,CAAQ;CAC5B;AAED,qBAAa,kBAAmB,SAAQ,OAAO;IAC3C,OAAc,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAoNrD;IAEF,OAAc,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAsJ5E;IAEF,OAAO,CAAC,IAAI,CAA0C;WAExC,WAAW;WAIX,KAAK;IAInB,SAAS;IAII,YAAY,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,GAAE,MAAa,EAAE,MAAM,GAAE,GAAU;IA2DhF,OAAO,CAAC,yBAAyB;IAsB1B,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM;IAUhF,OAAO,CAAC,YAAY;IAsBpB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,aAAa;IAgBrB,OAAO,CAAC,wBAAwB;IAwCzB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM;CAOvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/utilities/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Service } from "../../services/service";
|
|
2
|
+
/** @internal */
|
|
3
|
+
export declare const UTILITIES_SVC = "UtilitiesService";
|
|
4
|
+
export declare class UtilitiesService extends Service {
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
* */
|
|
8
|
+
static getInstance(): UtilitiesService;
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
* */
|
|
12
|
+
static build(): UtilitiesService;
|
|
13
|
+
private rtlDirCheck;
|
|
14
|
+
private usableRandomChars;
|
|
15
|
+
private constructor();
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
* */
|
|
19
|
+
asyncForEach<T>(array: T[], callback: (item: T, index: number, array: T[]) => Promise<void>): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
* */
|
|
23
|
+
isRTL(str: string): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* */
|
|
27
|
+
randomString(length?: number): string;
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
* */
|
|
31
|
+
getUUID(): string;
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
* */
|
|
35
|
+
addUrlParameter(url: string, urlParameter: any): string;
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
* */
|
|
39
|
+
isNumeric(str: any): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
* */
|
|
43
|
+
asyncTimeout(ms: number): Promise<unknown>;
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* */
|
|
47
|
+
selectRandomly(possibilities: any[]): any;
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
* */
|
|
51
|
+
arrayMove(arr: any[], oldIndex: number, newIndex: number): void;
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* */
|
|
55
|
+
removeSpecialChars(initialStr: string): string;
|
|
56
|
+
getBase64Image(url: string): Promise<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Method checks for validity of an API Url for security reasons
|
|
59
|
+
* @param environmentApiUrl - url to check
|
|
60
|
+
* @returns true if environment is valid, false otherwise
|
|
61
|
+
*/
|
|
62
|
+
checkEnvironmentApiUrl(environmentApiUrl: string): Promise<boolean>;
|
|
63
|
+
}
|
|
64
|
+
export declare function asyncForEach(array: any[], callback: any): Promise<void>;
|
|
65
|
+
export declare function roundTo(value: number, decimals?: number): number;
|
|
66
|
+
/**
|
|
67
|
+
* Computes the MD5 hash of a given value encoded in Latin-1.
|
|
68
|
+
* The input is first parsed using Latin-1 encoding before hashing,
|
|
69
|
+
* and the result is returned as a hexadecimal string.
|
|
70
|
+
* @param date - The value to hash (typically a string or date-like value)
|
|
71
|
+
* @returns The MD5 hash as a lowercase hexadecimal string
|
|
72
|
+
*/
|
|
73
|
+
export declare function MD5(date: any): string;
|
|
74
|
+
//# sourceMappingURL=utilities.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.service.d.ts","sourceRoot":"","sources":["../../../src/services/utilities/utilities.service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGhE,gBAAgB;AAChB,eAAO,MAAM,aAAa,qBAAqB,CAA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