@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,592 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module Subscription
|
|
3
|
+
*/
|
|
4
|
+
/** Billing cycle for a subscription. Pending backend field — will be added. */
|
|
5
|
+
export type ProductSubscriptionBillingCycle = "annual" | "monthly";
|
|
6
|
+
/**
|
|
7
|
+
* Lifecycle status of a company subscription.
|
|
8
|
+
*
|
|
9
|
+
* `creating` | `active` | `alerting` (running, flagged by billing) | `hold` | `terminated` come
|
|
10
|
+
* from the backend. `trial` and `terminating` are the interface's own and are never sent — read
|
|
11
|
+
* {@link CompanySubscription.effectiveStatus} rather than `status` to see them.
|
|
12
|
+
*/
|
|
13
|
+
export type CompanySubscriptionStatus = "trial" | "creating" | "active" | "alerting" | "hold" | "terminating" | "terminated";
|
|
14
|
+
/**
|
|
15
|
+
* A company subscription, as `GET .../companies/:companyId/subscriptions` (list) and
|
|
16
|
+
* `.../subscriptions/:subscriptionId` (single) return it — one shape for both.
|
|
17
|
+
*
|
|
18
|
+
* Field names mirror the payload 1:1, so the getters are what earns this a class: they carry what
|
|
19
|
+
* the raw fields mean once combined ({@link isCancelled}, {@link isRenewable}, …), so every screen
|
|
20
|
+
* answers those questions the same way. Writes go through the service.
|
|
21
|
+
*/
|
|
22
|
+
export declare class CompanySubscription {
|
|
23
|
+
/** Unique subscription identifier. */
|
|
24
|
+
readonly id: string;
|
|
25
|
+
/** Group/category name from the backend, e.g. "Webinar", "Collaboration". Shown in the UI and used for icon/category. */
|
|
26
|
+
readonly groupName: string;
|
|
27
|
+
/** Offer name from the backend, e.g. "Essential", "Business". */
|
|
28
|
+
readonly offerName: string;
|
|
29
|
+
/** Offer reference code from the backend, e.g. "RB-Essential", "RB-Webinar-Freemium". */
|
|
30
|
+
readonly offerReference: string;
|
|
31
|
+
/** Current lifecycle status. */
|
|
32
|
+
readonly status: CompanySubscriptionStatus;
|
|
33
|
+
/** Whether this subscription is a freemium (free trial) subscription. */
|
|
34
|
+
readonly isFreemium: boolean;
|
|
35
|
+
/** Whether this is the company's default subscription (e.g. the Essential base offer). */
|
|
36
|
+
readonly isDefault: boolean;
|
|
37
|
+
/** Product type for a freemium subscription, e.g. "collaboration", "webinar". Absent for non-freemium. */
|
|
38
|
+
readonly freemiumType?: string;
|
|
39
|
+
/** Backend billing model: `"none"`, `"nb_users"`, `"nb_services"`, `"usage"`, … */
|
|
40
|
+
readonly businessModel: string;
|
|
41
|
+
/** ISO-8601 — date the subscription was first created. Never changes. */
|
|
42
|
+
readonly startDate: string;
|
|
43
|
+
/** ISO-8601 — start of the current billing period. Updated on each renewal. */
|
|
44
|
+
readonly currentPeriodStart: string;
|
|
45
|
+
/** ISO-8601 — expiration / end date of the current period as returned by the backend. Absent for open-ended subscriptions. */
|
|
46
|
+
readonly expirationDate?: string;
|
|
47
|
+
/** Duration of one billing period in months. 1 = monthly, 12 = annual, 36 = 3-year. Absent on offers with no term. */
|
|
48
|
+
readonly durationMonths?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the subscription auto-renews. Only set by the backend on prepaid subscriptions,
|
|
51
|
+
* where `false` is what a cancellation leaves behind — see {@link isCancelled}. Written
|
|
52
|
+
* through `SubscriptionService.updateSubscription`.
|
|
53
|
+
*/
|
|
54
|
+
autoRenew?: boolean;
|
|
55
|
+
/** Total number of licences purchased. */
|
|
56
|
+
readonly licensesTotal: number;
|
|
57
|
+
/** Number of licences currently assigned to users. */
|
|
58
|
+
readonly licensesUsed: number;
|
|
59
|
+
/** Amount (excl. tax, EUR) due at next renewal. Optional — not yet from the billing API. */
|
|
60
|
+
readonly nextBillingAmountHt?: number;
|
|
61
|
+
private constructor();
|
|
62
|
+
/** Builds a {@link CompanySubscription} from the backend payload. */
|
|
63
|
+
static createFromData(data: Partial<CompanySubscription>): CompanySubscription;
|
|
64
|
+
/**
|
|
65
|
+
* End date of the current billing period (ISO-8601, date only).
|
|
66
|
+
*
|
|
67
|
+
* Uses the backend {@link expirationDate} when present; otherwise derives it
|
|
68
|
+
* as `currentPeriodStart + durationMonths` (fallback for offers the backend
|
|
69
|
+
* does not yet date). Empty when neither is available.
|
|
70
|
+
*/
|
|
71
|
+
get endDate(): string;
|
|
72
|
+
/**
|
|
73
|
+
* Whether the subscription has run past its end date.
|
|
74
|
+
*
|
|
75
|
+
* The single answer to "is this over?" — read it rather than comparing dates again, so every
|
|
76
|
+
* screen agrees on the same instant. It matters because the backend leaves a spent trial at
|
|
77
|
+
* `status: "trial"`: the date is what says it ended, not the status.
|
|
78
|
+
*
|
|
79
|
+
* Read live rather than resolved once, so a subscription that runs out while the app is open
|
|
80
|
+
* turns expired on its own.
|
|
81
|
+
*
|
|
82
|
+
* A subscription with no end date — the Essential base tier — never expires.
|
|
83
|
+
*/
|
|
84
|
+
isExpired(): boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Whether this subscription is billed monthly rather than on a prepaid term.
|
|
87
|
+
*
|
|
88
|
+
* A one-month period is the monthly plan; twelve months or more is a prepaid one. An absent
|
|
89
|
+
* duration reads as monthly, which is what the backend leaves on the offers carrying no term.
|
|
90
|
+
*/
|
|
91
|
+
get isMonthly(): boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Whether the subscription has been cancelled and is running out the period already paid for.
|
|
94
|
+
*
|
|
95
|
+
* The backend has no status for this, and the mark left behind differs by billing cycle
|
|
96
|
+
* because the two are cancelled through different calls:
|
|
97
|
+
* - **monthly** — deleting it leaves it `active` and stamps an {@link expirationDate} on it; a
|
|
98
|
+
* cron terminates it once that date is reached. That date is the only mark, and it only reads
|
|
99
|
+
* as one here, where a live monthly subscription otherwise carries none. A prepaid one always
|
|
100
|
+
* has an expiration date — the end of its term, not a cancellation — so it cannot be read
|
|
101
|
+
* the same way.
|
|
102
|
+
* - **prepaid** — cannot be deleted at all; it is cancelled by switching its renewal off, so
|
|
103
|
+
* {@link autoRenew} at `false` *is* the cancellation. Absent, the subscription is assumed to
|
|
104
|
+
* roll over, which is the standard contract — only an explicit `false` counts.
|
|
105
|
+
*/
|
|
106
|
+
get isCancelled(): boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Status as it should read, rather than as the backend spells it.
|
|
109
|
+
*
|
|
110
|
+
* A trial past its end date keeps `status: "trial"` server-side, so anything echoing the raw
|
|
111
|
+
* status claims the offer is still running. A cancelled monthly subscription stays `active`
|
|
112
|
+
* until the cron catches up, so it claims nothing happened at all. Every screen showing a
|
|
113
|
+
* status should read this.
|
|
114
|
+
*/
|
|
115
|
+
get effectiveStatus(): CompanySubscriptionStatus;
|
|
116
|
+
/**
|
|
117
|
+
* Offer name as it should be shown, rather than as the catalog spells it.
|
|
118
|
+
*
|
|
119
|
+
* Free offers are named "<product> Freemium" server-side — billing vocabulary the interface
|
|
120
|
+
* never uses, where the word is "trial". The suffix is swapped rather than dropped, so the
|
|
121
|
+
* offer still reads as a free one wherever no badge says it.
|
|
122
|
+
*/
|
|
123
|
+
get displayName(): string;
|
|
124
|
+
/**
|
|
125
|
+
* Whether this subscription's licences are seats, assigned one per user.
|
|
126
|
+
*
|
|
127
|
+
* Only these count towards "how many users can this company have": the `nb_services` offers
|
|
128
|
+
* (Webinar, and any other service-metered product) hold licences attached to the company
|
|
129
|
+
* itself, never assigned to anyone, so counting them would credit the company with seats no
|
|
130
|
+
* user can ever take. The base tier carries no business model of its own and is always a
|
|
131
|
+
* user tier.
|
|
132
|
+
*
|
|
133
|
+
* Mirrors the rule the legacy admin has always applied — `isDefault || nb_users || usage`.
|
|
134
|
+
*/
|
|
135
|
+
get isUserLicense(): boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Whether this is an internal offer granted for feature testing rather than sold.
|
|
138
|
+
*
|
|
139
|
+
* Today that is Beta alone. It is `nb_users` and carries a licence, so nothing but its
|
|
140
|
+
* reference tells it apart from a purchase — and counted as one it credits the company with a
|
|
141
|
+
* seat that exists for the tester, not for the company to hand out.
|
|
142
|
+
*/
|
|
143
|
+
get isInternal(): boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Whether the subscription is still serving its licences.
|
|
146
|
+
*
|
|
147
|
+
* A cancelled one counts until its last paid day: it is still billed and its seats are still
|
|
148
|
+
* assigned, so dropping it the moment it is cancelled would understate what the company has
|
|
149
|
+
* and could revoke seats users still hold.
|
|
150
|
+
*/
|
|
151
|
+
get isServingLicenses(): boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Whether the end date is a renewal or an ending.
|
|
154
|
+
*
|
|
155
|
+
* Only a live paid subscription rolls over. A trial is granted once, the Essential base tier
|
|
156
|
+
* has no term at all, a cancelled subscription runs to its date and stops, and an expired one
|
|
157
|
+
* is already over. Drives the wording around the end date — "renewal" promises a next period,
|
|
158
|
+
* and must not be said of a subscription that has none.
|
|
159
|
+
*/
|
|
160
|
+
get isRenewable(): boolean;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* How many user seats the company holds and how many are taken — the single answer to "can we
|
|
164
|
+
* still add a user?".
|
|
165
|
+
*
|
|
166
|
+
* Counts only the subscriptions whose licences are seats
|
|
167
|
+
* ({@link CompanySubscription.isUserLicense}): a service-metered offer such as Webinar holds its
|
|
168
|
+
* licences against the company, never against a user, so they grant nobody a place.
|
|
169
|
+
*/
|
|
170
|
+
export interface SeatUsage {
|
|
171
|
+
/** Seats assigned to users across every seat-based subscription still serving licences. */
|
|
172
|
+
readonly used: number;
|
|
173
|
+
/** Seats purchased across those same subscriptions. */
|
|
174
|
+
readonly total: number;
|
|
175
|
+
/** Seats left to assign — `total - used`, never negative. */
|
|
176
|
+
readonly available: number;
|
|
177
|
+
/** `used / total` as a rounded percentage; `0` when the company holds no seat at all. */
|
|
178
|
+
readonly occupancyPercent: number;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* {@link SeatUsage} net of the invitations already sent — what may still be handed out right now.
|
|
182
|
+
*
|
|
183
|
+
* A pending invitation has not taken its seat yet ({@link SeatUsage.used} does not count it), but
|
|
184
|
+
* it will the moment it is accepted. Inviting on the seats it stands to take is how a company ends
|
|
185
|
+
* up with more accepted invitations than licences, each of them failing at acceptance time, long
|
|
186
|
+
* after the admin has left the screen.
|
|
187
|
+
*/
|
|
188
|
+
export interface SeatAvailability extends SeatUsage {
|
|
189
|
+
/** Invitations sent and not yet answered — each one holds a seat in reserve. */
|
|
190
|
+
readonly pendingInvitations: number;
|
|
191
|
+
/**
|
|
192
|
+
* Seats that may still be offered — `total - used - pendingInvitations`, never negative.
|
|
193
|
+
*
|
|
194
|
+
* Narrower than {@link SeatUsage.available}, which this shadows: that one answers "how many
|
|
195
|
+
* seats are unassigned", this one "how many people may I still invite".
|
|
196
|
+
*/
|
|
197
|
+
readonly available: number;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Where the account stands commercially: what it runs, and whether it can be sold anything.
|
|
201
|
+
*
|
|
202
|
+
* Read from the subscriptions, never from the trial roles — those are rebuilt from the
|
|
203
|
+
* never-cleared `freemiumTypes` and survive both the trial's end and a purchase.
|
|
204
|
+
*
|
|
205
|
+
* Says nothing about which features are unlocked: `webinar_host`, the capabilities and
|
|
206
|
+
* `Company.hasWebinarAccess()` already answer that, and a paid customer has no trial role at all.
|
|
207
|
+
*/
|
|
208
|
+
export interface CommercialState {
|
|
209
|
+
/** Where the trial stands. `none` covers "never had one" and "no longer returned". */
|
|
210
|
+
readonly trial: "none" | "running" | "expired";
|
|
211
|
+
/** A paid subscription is live — nothing left for the offer catalog to sell. */
|
|
212
|
+
readonly hasPaid: boolean;
|
|
213
|
+
/** Whether this user may buy: a company admin, or a standalone buying for themselves. */
|
|
214
|
+
readonly canBuy: boolean;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* The company's trial, as the interface needs to talk about it: how long is left, whether it is
|
|
218
|
+
* over, and whether there is still anything to upsell.
|
|
219
|
+
*
|
|
220
|
+
* Exists so that "should we show the trial banner?" is answered once, here, rather than by each
|
|
221
|
+
* screen re-combining the trial, the paid subscriptions and the user's own flags its own way — the
|
|
222
|
+
* banner is shown in several places and they must all agree.
|
|
223
|
+
*
|
|
224
|
+
* The getters read the clock on each access, so a status held by a screen left open overnight
|
|
225
|
+
* answers for the day it is read. Callers still re-render for the number on screen to change.
|
|
226
|
+
*/
|
|
227
|
+
export declare class TrialStatus {
|
|
228
|
+
/** The trial this status describes — the running one, or the last to have ended. */
|
|
229
|
+
readonly subscription: CompanySubscription;
|
|
230
|
+
/** When the trial ends, or ended. */
|
|
231
|
+
readonly endDate: Date;
|
|
232
|
+
/**
|
|
233
|
+
* Whether the company runs a live paid subscription alongside the trial. Resolved with the
|
|
234
|
+
* trial so the two cannot disagree.
|
|
235
|
+
*/
|
|
236
|
+
readonly hasLivePaidSubscription: boolean;
|
|
237
|
+
/**
|
|
238
|
+
* Whether the user may act on an upsell: only a company administrator can subscribe.
|
|
239
|
+
* Site, organization and support admins carry the ADMIN role too but must not get the CTA.
|
|
240
|
+
*
|
|
241
|
+
* Deliberately narrower than {@link CommercialState.canBuy}, which also counts the
|
|
242
|
+
* standalone users of the default company. Widening it would hand the banner's CTA to a
|
|
243
|
+
* population that does not have it today.
|
|
244
|
+
*/
|
|
245
|
+
readonly canSubscribe: boolean;
|
|
246
|
+
constructor(
|
|
247
|
+
/** The trial this status describes — the running one, or the last to have ended. */
|
|
248
|
+
subscription: CompanySubscription,
|
|
249
|
+
/** When the trial ends, or ended. */
|
|
250
|
+
endDate: Date,
|
|
251
|
+
/**
|
|
252
|
+
* Whether the company runs a live paid subscription alongside the trial. Resolved with the
|
|
253
|
+
* trial so the two cannot disagree.
|
|
254
|
+
*/
|
|
255
|
+
hasLivePaidSubscription: boolean,
|
|
256
|
+
/**
|
|
257
|
+
* Whether the user may act on an upsell: only a company administrator can subscribe.
|
|
258
|
+
* Site, organization and support admins carry the ADMIN role too but must not get the CTA.
|
|
259
|
+
*
|
|
260
|
+
* Deliberately narrower than {@link CommercialState.canBuy}, which also counts the
|
|
261
|
+
* standalone users of the default company. Widening it would hand the banner's CTA to a
|
|
262
|
+
* population that does not have it today.
|
|
263
|
+
*/
|
|
264
|
+
canSubscribe: boolean);
|
|
265
|
+
/** Whether the trial has run past its end date. Delegated, so every screen agrees. */
|
|
266
|
+
get isExpired(): boolean;
|
|
267
|
+
/**
|
|
268
|
+
* Which product the trial is for — `"webinar"`, `"collaboration"`, … — so the interface names it
|
|
269
|
+
* rather than saying "your trial offer" while the company runs two. It is this trial's product,
|
|
270
|
+
* never the company's as a whole, which is what makes the day count readable.
|
|
271
|
+
*
|
|
272
|
+
* `undefined` when the backend omits `freemiumType`: fall back to the unnamed wording.
|
|
273
|
+
*/
|
|
274
|
+
get productType(): string | undefined;
|
|
275
|
+
/**
|
|
276
|
+
* Whole days left before the trial ends, floored at 0 once it has.
|
|
277
|
+
*
|
|
278
|
+
* Rounded up, so the last partial day still reads as one day left rather than none.
|
|
279
|
+
*/
|
|
280
|
+
get remainingDays(): number;
|
|
281
|
+
/**
|
|
282
|
+
* Whether there is still an upsell worth showing.
|
|
283
|
+
*
|
|
284
|
+
* A running trial always is — it has an end date the user needs to see coming — whatever else
|
|
285
|
+
* the company bought. Once expired, it only is while the company has no live paid subscription:
|
|
286
|
+
* an expired trial next to a purchase is a finished story.
|
|
287
|
+
*
|
|
288
|
+
* Says nothing about who is looking — read {@link canSubscribe} for the CTA.
|
|
289
|
+
*/
|
|
290
|
+
get shouldPromptUpsell(): boolean;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* A subscription offer from the catalog, as returned by `GET /offers?format=full` — the single
|
|
294
|
+
* catalog type for the whole tunnel, freemium self-subscribe and paid checkout alike.
|
|
295
|
+
*
|
|
296
|
+
* Fields come straight from the payload; only {@link cycle} and the two price fields are derived,
|
|
297
|
+
* by the service's offer mapper.
|
|
298
|
+
*/
|
|
299
|
+
export interface SubscriptionOffer {
|
|
300
|
+
/** The unique identifier of the offer. */
|
|
301
|
+
readonly id: string;
|
|
302
|
+
/** Whether this offer is a freemium (free trial) offer. */
|
|
303
|
+
readonly isFreemium: boolean;
|
|
304
|
+
/** The freemium product type from the backend, e.g. `"webinar"`, `"collaboration"`. */
|
|
305
|
+
readonly freemiumType: string;
|
|
306
|
+
/**
|
|
307
|
+
* Product group this offer belongs to (e.g. "Collaboration", "Webinar",
|
|
308
|
+
* "Enterprise"). Offers sharing a group are the same product in different
|
|
309
|
+
* billing cycles and collapse into one card.
|
|
310
|
+
*/
|
|
311
|
+
readonly groupName?: string;
|
|
312
|
+
/**
|
|
313
|
+
* Billing cycle derived from `isMonthly`: `"monthly"` or `"annual"`
|
|
314
|
+
* (1-year prepaid). Undefined for freemium offers (no billing).
|
|
315
|
+
*/
|
|
316
|
+
readonly cycle?: ProductSubscriptionBillingCycle;
|
|
317
|
+
/** Display name. */
|
|
318
|
+
readonly name?: string;
|
|
319
|
+
/** Monthly price (HT), flattened from the backend `prices[].unitPricePerMonth`. */
|
|
320
|
+
readonly monthlyPriceHt?: number;
|
|
321
|
+
/** Annual/total price (HT), flattened from the backend `prices[].unitPriceTotal` (prepaid offers). */
|
|
322
|
+
readonly annualPriceHt?: number;
|
|
323
|
+
[key: string]: unknown;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* One product variant within a group — one card. A variant always carries at least one of
|
|
327
|
+
* `monthly` or `annual`; {@link trial} is an additional property of that same variant, not a
|
|
328
|
+
* variant of its own. At most one variant per group carries a trial, and it is the cheapest one.
|
|
329
|
+
*
|
|
330
|
+
* @example
|
|
331
|
+
* // Webinar 120, the cheapest of its group: monthly = RB-Webinar-120,
|
|
332
|
+
* // annual = RB-Webinar-120-1Y, trial = RB-Webinar-Freemium
|
|
333
|
+
* // Webinar 500: monthly = RB-Webinar-500, annual = RB-Webinar-500-1Y
|
|
334
|
+
*/
|
|
335
|
+
export interface OfferVariant {
|
|
336
|
+
/**
|
|
337
|
+
* Stable identity of the variant within its group — the offer reference stripped of its
|
|
338
|
+
* billing-cycle suffix (e.g. `"RB-Webinar-120"`, `"RB-Webinar-Freemium"`).
|
|
339
|
+
*
|
|
340
|
+
* Use it as the tracking key when rendering a list: {@link label} is derived from the offer
|
|
341
|
+
* name and can collide across groups, the offer reference cannot.
|
|
342
|
+
*/
|
|
343
|
+
readonly key: string;
|
|
344
|
+
/**
|
|
345
|
+
* Human-readable variant label (e.g. "Webinar Pro", "Enterprise") — the catalog's offer name
|
|
346
|
+
* less its billing-cycle suffix; a trial shows its group name instead. Owned by the backend,
|
|
347
|
+
* so never derive anything from its shape.
|
|
348
|
+
*/
|
|
349
|
+
readonly label: string;
|
|
350
|
+
/** Monthly billing offer, if available. */
|
|
351
|
+
readonly monthly?: SubscriptionOffer;
|
|
352
|
+
/** Annual (prepaid) billing offer, if available. */
|
|
353
|
+
readonly annual?: SubscriptionOffer;
|
|
354
|
+
/**
|
|
355
|
+
* Free-trial offer attached to this variant — the same product, free for a month. Set on the
|
|
356
|
+
* cheapest paid variant of the group, which is precisely what the trial gives away, so the two
|
|
357
|
+
* are one card rather than two. Absent means the trial is spent or unavailable.
|
|
358
|
+
*
|
|
359
|
+
* Carries no price and no billing cycle: read it only for what the call to action subscribes to.
|
|
360
|
+
*/
|
|
361
|
+
readonly trial?: SubscriptionOffer;
|
|
362
|
+
/**
|
|
363
|
+
* Whether the company already runs a live subscription to {@link monthly}.
|
|
364
|
+
*
|
|
365
|
+
* Set per billing cycle rather than per variant: owning the monthly offer does not
|
|
366
|
+
* prevent buying the annual prepaid one of the same product, so the UI must be able
|
|
367
|
+
* to disable one cycle while keeping the other purchasable.
|
|
368
|
+
*/
|
|
369
|
+
readonly ownedMonthly?: boolean;
|
|
370
|
+
/** Whether the company already runs a live subscription to {@link annual}. See {@link ownedMonthly}. */
|
|
371
|
+
readonly ownedAnnual?: boolean;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* A product group (e.g. "Webinar", "Collaboration") with all its purchasable variants.
|
|
375
|
+
* The UI renders one card per variant; the billing-cycle switch selects which offer to subscribe to.
|
|
376
|
+
*/
|
|
377
|
+
export interface OfferGroup {
|
|
378
|
+
/** Group name as returned by the backend (e.g. `"Webinar"`, `"Collaboration"`). */
|
|
379
|
+
readonly groupName: string;
|
|
380
|
+
/** All purchasable variants in this group (e.g. Webinar 120, Webinar 500…). */
|
|
381
|
+
readonly variants: OfferVariant[];
|
|
382
|
+
}
|
|
383
|
+
/** The result returned after subscribing to an offer. */
|
|
384
|
+
export interface SubscriptionResult {
|
|
385
|
+
/** The current status of the subscription. */
|
|
386
|
+
readonly status: CompanySubscriptionStatus;
|
|
387
|
+
/** Whether Business Store / Zuora provisioning is still running. */
|
|
388
|
+
readonly syncOngoing?: boolean;
|
|
389
|
+
/** Whether this subscription includes webinar capabilities. */
|
|
390
|
+
readonly hasWebinar: boolean;
|
|
391
|
+
[key: string]: unknown;
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Purchase options required when subscribing to a paid offer.
|
|
395
|
+
* Not used for freemium offers (which are free and have no billing).
|
|
396
|
+
*/
|
|
397
|
+
export interface PurchaseOptions {
|
|
398
|
+
readonly cycle: ProductSubscriptionBillingCycle;
|
|
399
|
+
readonly seats: number;
|
|
400
|
+
/**
|
|
401
|
+
* Zuora payment method id, routing the purchase to `POST .../subscriptions/purchase` — the
|
|
402
|
+
* only endpoint that converts the company to direct-sell, which the backend requires before
|
|
403
|
+
* it accepts any subscription. Send it even when the Zuora account exists: the endpoint reuses
|
|
404
|
+
* the account rather than creating a second one.
|
|
405
|
+
*
|
|
406
|
+
* Omit it only for a company already sold direct, where `POST .../subscriptions` is enough.
|
|
407
|
+
*/
|
|
408
|
+
readonly paymentMethodId?: string;
|
|
409
|
+
/** Company VAT number, when eligible. Forwarded to the atomic purchase endpoint. */
|
|
410
|
+
readonly vatNumber?: string;
|
|
411
|
+
/** French SIRET, when applicable. Forwarded to the atomic purchase endpoint. */
|
|
412
|
+
readonly siret?: string;
|
|
413
|
+
/** Electronic billing address. Forwarded to the atomic purchase endpoint. */
|
|
414
|
+
readonly electronicAddress?: string;
|
|
415
|
+
/**
|
|
416
|
+
* Buyer's purchase order number, printed on the invoice so their accounting can match it
|
|
417
|
+
* against an internal commitment.
|
|
418
|
+
*
|
|
419
|
+
* Per-order and optional, unlike the fields above: it is captured at checkout rather than
|
|
420
|
+
* read back from the company billing info, and is therefore forwarded to **both**
|
|
421
|
+
* subscription-creation endpoints — the atomic purchase and the existing-account one.
|
|
422
|
+
*/
|
|
423
|
+
readonly purchaseOrderNumber?: string;
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Fields accepted by `PUT .../companies/:companyId/subscriptions/:subscriptionId`. Only the keys
|
|
427
|
+
* present are sent; the backend leaves the rest untouched.
|
|
428
|
+
*
|
|
429
|
+
* No payment field on purpose: the billing consequence (pro-rata charge now, or adjustment at
|
|
430
|
+
* renewal) is decided server-side.
|
|
431
|
+
*/
|
|
432
|
+
export interface UpdateSubscriptionPatch {
|
|
433
|
+
/** New **absolute total** number of licences, not a delta: 10 → 15 seats sends `15`. */
|
|
434
|
+
readonly maxNumberUsers?: number;
|
|
435
|
+
/** Enables or disables auto-renewal at the end of the current period. */
|
|
436
|
+
readonly autoRenew?: boolean;
|
|
437
|
+
/**
|
|
438
|
+
* Buyer's purchase order number, printed on the invoice. Optional, and per-order like the one
|
|
439
|
+
* on {@link PurchaseOptions}: adding seats raises a charge of its own, which the buyer's
|
|
440
|
+
* accounting has to match just the same.
|
|
441
|
+
*/
|
|
442
|
+
readonly purchaseOrderNumber?: string;
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Options accepted by `POST .../companies/:companyId/quotations` when pricing a
|
|
446
|
+
* change to an **existing** subscription.
|
|
447
|
+
*
|
|
448
|
+
* {@link SubscriptionService.getOfferQuotation} prices a catalog offer on the same endpoint.
|
|
449
|
+
*
|
|
450
|
+
* Prepaid-specific options (`prepaidDuration`, `prepaidRenewalOption`,
|
|
451
|
+
* `renewalVolume`, `renewalTerm`, `autoRenewToMonthly`) exist in the API but are
|
|
452
|
+
* not modelled here — the seat-change flow only quotes monthly subscriptions.
|
|
453
|
+
*/
|
|
454
|
+
export interface SubscriptionQuotationOptions {
|
|
455
|
+
/** New absolute total number of licences to price. */
|
|
456
|
+
readonly maxNumberUsers: number;
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* One charge of a quotation's invoice.
|
|
460
|
+
*
|
|
461
|
+
* Only the fields a screen reads are declared; the rest of the Zuora item (`chargeName`,
|
|
462
|
+
* `productName`, `productRatePlanChargeId`, `unitOfMeasure`…) reaches the caller through the
|
|
463
|
+
* index signature.
|
|
464
|
+
*/
|
|
465
|
+
export interface SubscriptionQuotationInvoiceItem {
|
|
466
|
+
/** Amount charged, excluding tax. */
|
|
467
|
+
readonly chargeAmount?: number;
|
|
468
|
+
/** Tax on this charge. */
|
|
469
|
+
readonly taxAmount?: number;
|
|
470
|
+
/** Number of units billed. */
|
|
471
|
+
readonly quantity?: number;
|
|
472
|
+
/** First day of the period this charge covers, `yyyy-mm-dd`. */
|
|
473
|
+
readonly serviceStartDate?: string;
|
|
474
|
+
/** Last day of the period this charge covers, `yyyy-mm-dd`. The renewal falls the day after. */
|
|
475
|
+
readonly serviceEndDate?: string;
|
|
476
|
+
readonly [key: string]: unknown;
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* A price quote returned by `POST .../companies/:companyId/quotations`.
|
|
480
|
+
*
|
|
481
|
+
* Every field is optional: the backend answers a different subset per offer, so treat an absent
|
|
482
|
+
* one as "do not show that row" rather than as licence to compute a stand-in.
|
|
483
|
+
*
|
|
484
|
+
* **Read the amount that matches the cycle, and never `contractedMrr` alone.** An annual offer
|
|
485
|
+
* answers *both* families, and its `contractedMrr` is the equivalent monthly rate, not what is
|
|
486
|
+
* charged: quoting one seat of a 588 €/year offer returns `contractedMrr: 49` alongside
|
|
487
|
+
* `totalContractedValue: 588`. Showing the 49 as the price is a factor-12 error. A monthly offer
|
|
488
|
+
* answers `contractedMrr` with `totalContractedValue: null`, which is how the two are told apart.
|
|
489
|
+
*
|
|
490
|
+
* `amountWithoutTax` / `amount` are what is actually charged now, tax excluded and included.
|
|
491
|
+
* On a first purchase they equal the recurring figure, there being no proration to apply.
|
|
492
|
+
*
|
|
493
|
+
* Tax-inclusive amounts come from the backend (`contractedMrrWithTax`,
|
|
494
|
+
* `totalContractedValueWithTax`, `amount`): never derive one from {@link taxRate}, which is wrong
|
|
495
|
+
* outside France and for reverse-charge accounts.
|
|
496
|
+
*
|
|
497
|
+
* The index signature stays: it remains the contract for anything not declared here — see the
|
|
498
|
+
* subscription API doc, and declare whatever a screen starts reading.
|
|
499
|
+
*/
|
|
500
|
+
export interface SubscriptionQuotation {
|
|
501
|
+
/** ISO 4217 currency code, e.g. `"EUR"`. Absent on some backends — default to `"EUR"`. */
|
|
502
|
+
readonly currency?: string;
|
|
503
|
+
/**
|
|
504
|
+
* Monthly recurring amount.
|
|
505
|
+
*
|
|
506
|
+
* The figure to show on a monthly offer. On an annual one it is the *equivalent* monthly rate
|
|
507
|
+
* — 49 against a 588 €/year contract — never the amount charged; show
|
|
508
|
+
* {@link totalContractedValue} there and keep this for a "x €/month, billed yearly" caption.
|
|
509
|
+
*/
|
|
510
|
+
readonly contractedMrr?: number;
|
|
511
|
+
/** Monthly public price, before any discount. */
|
|
512
|
+
readonly contractedWpl?: number;
|
|
513
|
+
/**
|
|
514
|
+
* Monthly recurring amount after the change, tax included.
|
|
515
|
+
*
|
|
516
|
+
* Backend-computed: never derive it from {@link taxRate}, which is wrong outside France and
|
|
517
|
+
* for reverse-charge accounts. Absent means "show no tax-inclusive line".
|
|
518
|
+
*
|
|
519
|
+
* Answered on both monthly and annual offers; mirrors {@link contractedMrr}, so on an annual
|
|
520
|
+
* offer it is likewise an equivalent monthly rate.
|
|
521
|
+
*/
|
|
522
|
+
readonly contractedMrrWithTax?: number;
|
|
523
|
+
/** Signed change in the monthly recurring amount. Not rendered by the legacy UI. */
|
|
524
|
+
readonly totalDeltaMrr?: number;
|
|
525
|
+
/**
|
|
526
|
+
* Total contracted value — the figure to show on an annual or prepaid offer.
|
|
527
|
+
*
|
|
528
|
+
* `null` on a monthly one, which is how a payload is told apart from an annual one.
|
|
529
|
+
*/
|
|
530
|
+
readonly totalContractedValue?: number;
|
|
531
|
+
/** Total public price of the contract, before any discount. */
|
|
532
|
+
readonly totalWplValue?: number;
|
|
533
|
+
/**
|
|
534
|
+
* Total contracted value, tax included. Backend-computed, same caveat as
|
|
535
|
+
* {@link contractedMrrWithTax}: never derive it from {@link taxRate}.
|
|
536
|
+
*/
|
|
537
|
+
readonly totalContractedValueWithTax?: number;
|
|
538
|
+
/** Signed change in the total contracted value. Rendered with an explicit `+` when positive. */
|
|
539
|
+
readonly totalDeltaTcv?: number;
|
|
540
|
+
/**
|
|
541
|
+
* When the contract ends. Answered on annual and prepaid offers, absent on monthly ones.
|
|
542
|
+
*
|
|
543
|
+
* A full ISO timestamp (`2027-09-14T00:00:00.000Z`), unlike the other dates here.
|
|
544
|
+
*/
|
|
545
|
+
readonly expirationDate?: string;
|
|
546
|
+
/** Discount applied: per month on a monthly subscription, total on a prepaid one. */
|
|
547
|
+
readonly totalDiscountedValue?: number;
|
|
548
|
+
/** Date the discounted price stops applying, `yyyy-mm-dd`. */
|
|
549
|
+
readonly discountEndDate?: string;
|
|
550
|
+
/** What is charged now, tax included. */
|
|
551
|
+
readonly amount?: number;
|
|
552
|
+
/** What is charged now, excluding tax. */
|
|
553
|
+
readonly amountWithoutTax?: number;
|
|
554
|
+
/**
|
|
555
|
+
* Tax on the invoice. The only trustworthy tax figure: never derive one from a rate, which is
|
|
556
|
+
* wrong outside France and for reverse-charge accounts. Absent means "show no tax row".
|
|
557
|
+
*/
|
|
558
|
+
readonly taxAmount?: number;
|
|
559
|
+
/**
|
|
560
|
+
* Tax rate applied, as a percentage — `20` for 20%.
|
|
561
|
+
*
|
|
562
|
+
* Informative only: never compute a tax or a gross amount from it, for the reason given on
|
|
563
|
+
* {@link taxAmount}. Read the backend's own tax-inclusive figures instead.
|
|
564
|
+
*/
|
|
565
|
+
readonly taxRate?: number;
|
|
566
|
+
/** Date through which charges are calculated on the invoice, `yyyy-mm-dd`. */
|
|
567
|
+
readonly invoiceTargetDate?: string;
|
|
568
|
+
/**
|
|
569
|
+
* The charges making up the invoice — **the charge being raised now, not a future schedule**.
|
|
570
|
+
*
|
|
571
|
+
* A new subscription answers a single item whose `chargeAmount` equals
|
|
572
|
+
* {@link amountWithoutTax}; its `serviceStartDate`/`serviceEndDate` are the period that
|
|
573
|
+
* payment covers, and the renewal falls the day after `serviceEndDate`.
|
|
574
|
+
*/
|
|
575
|
+
readonly invoiceItems?: readonly SubscriptionQuotationInvoiceItem[];
|
|
576
|
+
readonly [key: string]: unknown;
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* Outcome of a purchase, as the checkout screen needs to read it: did provisioning settle, and in
|
|
580
|
+
* what state did the subscription land.
|
|
581
|
+
*
|
|
582
|
+
* Deliberately not a receipt. The creation endpoints answer the subscription, not a total, and the
|
|
583
|
+
* checkout prices the order itself from the offer and the seat count — anything computed here would
|
|
584
|
+
* be a second, unreconciled source of truth.
|
|
585
|
+
*/
|
|
586
|
+
export interface SubscriptionPurchaseOrder {
|
|
587
|
+
/** Status at creation time; `creating` until provisioning completes. */
|
|
588
|
+
readonly status: CompanySubscriptionStatus;
|
|
589
|
+
/** `true` while Business Store / Zuora provisioning runs: the purchase is not settled yet. */
|
|
590
|
+
readonly syncOngoing: boolean;
|
|
591
|
+
}
|
|
592
|
+
//# sourceMappingURL=subscription.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription.model.d.ts","sourceRoot":"","sources":["../../src/models/subscription.model.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,+EAA+E;AAC/E,MAAM,MAAM,+BAA+B,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEnE;;;;;;GAMG;AACH,MAAM,MAAM,yBAAyB,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,aAAa,GAAG,YAAY,CAAC;AAS7H;;;;;;;GAOG;AACH,qBAAa,mBAAmB;IAC5B,sCAAsC;IACtC,SAAgB,EAAE,EAAE,MAAM,CAAM;IAChC,yHAAyH;IACzH,SAAgB,SAAS,EAAE,MAAM,CAAM;IACvC,iEAAiE;IACjE,SAAgB,SAAS,EAAE,MAAM,CAAM;IACvC,yFAAyF;IACzF,SAAgB,cAAc,EAAE,MAAM,CAAM;IAC5C,gCAAgC;IAChC,SAAgB,MAAM,EAAE,yBAAyB,CAAY;IAC7D,yEAAyE;IACzE,SAAgB,UAAU,EA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