@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.
Files changed (556) hide show
  1. package/README.md +44 -0
  2. package/lib/index.d.ts +8 -0
  3. package/lib/index.d.ts.map +1 -0
  4. package/lib/index.js +501 -0
  5. package/lib/index.js.map +7 -0
  6. package/lib/libs/index.d.ts +3 -0
  7. package/lib/libs/index.d.ts.map +1 -0
  8. package/lib/libs/strophe/strophe-plugin.d.ts +13 -0
  9. package/lib/libs/strophe/strophe-plugin.d.ts.map +1 -0
  10. package/lib/libs/strophe/strophe.jingle.d.ts +35 -0
  11. package/lib/libs/strophe/strophe.jingle.d.ts.map +1 -0
  12. package/lib/libs/strophe/strophe.jingle.sdp.d.ts +44 -0
  13. package/lib/libs/strophe/strophe.jingle.sdp.d.ts.map +1 -0
  14. package/lib/libs/strophe/strophe.jingle.session.d.ts +624 -0
  15. package/lib/libs/strophe/strophe.jingle.session.d.ts.map +1 -0
  16. package/lib/libs/strophe/strophe.jingle.session.stats.d.ts +791 -0
  17. package/lib/libs/strophe/strophe.jingle.session.stats.d.ts.map +1 -0
  18. package/lib/libs/strophe/strophe.lastactivity.d.ts +9 -0
  19. package/lib/libs/strophe/strophe.lastactivity.d.ts.map +1 -0
  20. package/lib/libs/strophe/strophe.mam.d.ts +11 -0
  21. package/lib/libs/strophe/strophe.mam.d.ts.map +1 -0
  22. package/lib/libs/strophe/strophe.ping.d.ts +39 -0
  23. package/lib/libs/strophe/strophe.ping.d.ts.map +1 -0
  24. package/lib/libs/strophe/strophe.rsm.d.ts +24 -0
  25. package/lib/libs/strophe/strophe.rsm.d.ts.map +1 -0
  26. package/lib/libs/strophe/types.d.ts +23 -0
  27. package/lib/libs/strophe/types.d.ts.map +1 -0
  28. package/lib/models/authSettings.model.d.ts +38 -0
  29. package/lib/models/authSettings.model.d.ts.map +1 -0
  30. package/lib/models/bubble.model.d.ts +1114 -0
  31. package/lib/models/bubble.model.d.ts.map +1 -0
  32. package/lib/models/bubbleConferenceRecap.model.d.ts +532 -0
  33. package/lib/models/bubbleConferenceRecap.model.d.ts.map +1 -0
  34. package/lib/models/call.model.d.ts +1271 -0
  35. package/lib/models/call.model.d.ts.map +1 -0
  36. package/lib/models/callLog.model.d.ts +361 -0
  37. package/lib/models/callLog.model.d.ts.map +1 -0
  38. package/lib/models/channel.model.d.ts +692 -0
  39. package/lib/models/channel.model.d.ts.map +1 -0
  40. package/lib/models/channelMessage.model.d.ts +300 -0
  41. package/lib/models/channelMessage.model.d.ts.map +1 -0
  42. package/lib/models/cli.model.d.ts +59 -0
  43. package/lib/models/cli.model.d.ts.map +1 -0
  44. package/lib/models/common/context.d.ts +37 -0
  45. package/lib/models/common/context.d.ts.map +1 -0
  46. package/lib/models/common/error.d.ts +26 -0
  47. package/lib/models/common/error.d.ts.map +1 -0
  48. package/lib/models/common/fileDescriptor.d.ts +317 -0
  49. package/lib/models/common/fileDescriptor.d.ts.map +1 -0
  50. package/lib/models/common/filePublicDownload.d.ts +26 -0
  51. package/lib/models/common/filePublicDownload.d.ts.map +1 -0
  52. package/lib/models/common/fileViewer.d.ts +20 -0
  53. package/lib/models/common/fileViewer.d.ts.map +1 -0
  54. package/lib/models/common/index.d.ts +9 -0
  55. package/lib/models/common/index.d.ts.map +1 -0
  56. package/lib/models/common/theme.d.ts +185 -0
  57. package/lib/models/common/theme.d.ts.map +1 -0
  58. package/lib/models/common/themeColor.d.ts +47 -0
  59. package/lib/models/common/themeColor.d.ts.map +1 -0
  60. package/lib/models/common/userTheme.d.ts +42 -0
  61. package/lib/models/common/userTheme.d.ts.map +1 -0
  62. package/lib/models/company-invitation.model.d.ts +42 -0
  63. package/lib/models/company-invitation.model.d.ts.map +1 -0
  64. package/lib/models/company.model.d.ts +639 -0
  65. package/lib/models/company.model.d.ts.map +1 -0
  66. package/lib/models/contact.model.d.ts +1208 -0
  67. package/lib/models/contact.model.d.ts.map +1 -0
  68. package/lib/models/conversation.model.d.ts +768 -0
  69. package/lib/models/conversation.model.d.ts.map +1 -0
  70. package/lib/models/customManifest.model.d.ts +82 -0
  71. package/lib/models/customManifest.model.d.ts.map +1 -0
  72. package/lib/models/dataChannel.model.d.ts +178 -0
  73. package/lib/models/dataChannel.model.d.ts.map +1 -0
  74. package/lib/models/dial-in-phone-numbers.model.d.ts +18 -0
  75. package/lib/models/dial-in-phone-numbers.model.d.ts.map +1 -0
  76. package/lib/models/directoryContact.model.d.ts +205 -0
  77. package/lib/models/directoryContact.model.d.ts.map +1 -0
  78. package/lib/models/event.model.d.ts +14 -0
  79. package/lib/models/event.model.d.ts.map +1 -0
  80. package/lib/models/favorite.model.d.ts +94 -0
  81. package/lib/models/favorite.model.d.ts.map +1 -0
  82. package/lib/models/fileDocument.model.d.ts +345 -0
  83. package/lib/models/fileDocument.model.d.ts.map +1 -0
  84. package/lib/models/geoLoc.model.d.ts +6 -0
  85. package/lib/models/geoLoc.model.d.ts.map +1 -0
  86. package/lib/models/index.d.ts +46 -0
  87. package/lib/models/index.d.ts.map +1 -0
  88. package/lib/models/invitation.model.d.ts +88 -0
  89. package/lib/models/invitation.model.d.ts.map +1 -0
  90. package/lib/models/invoices.model.d.ts +76 -0
  91. package/lib/models/invoices.model.d.ts.map +1 -0
  92. package/lib/models/logEntry.model.d.ts +23 -0
  93. package/lib/models/logEntry.model.d.ts.map +1 -0
  94. package/lib/models/message.model.d.ts +400 -0
  95. package/lib/models/message.model.d.ts.map +1 -0
  96. package/lib/models/messageAdditionalContent.parsers.d.ts +32 -0
  97. package/lib/models/messageAdditionalContent.parsers.d.ts.map +1 -0
  98. package/lib/models/offer.model.d.ts +16 -0
  99. package/lib/models/offer.model.d.ts.map +1 -0
  100. package/lib/models/p2pRecap.model.d.ts +372 -0
  101. package/lib/models/p2pRecap.model.d.ts.map +1 -0
  102. package/lib/models/paymentMethods.model.d.ts +98 -0
  103. package/lib/models/paymentMethods.model.d.ts.map +1 -0
  104. package/lib/models/personalRoutine.model.d.ts +173 -0
  105. package/lib/models/personalRoutine.model.d.ts.map +1 -0
  106. package/lib/models/poll.model.d.ts +139 -0
  107. package/lib/models/poll.model.d.ts.map +1 -0
  108. package/lib/models/rainbow-auth.model.d.ts +137 -0
  109. package/lib/models/rainbow-auth.model.d.ts.map +1 -0
  110. package/lib/models/searchTextConvResults.model.d.ts +30 -0
  111. package/lib/models/searchTextConvResults.model.d.ts.map +1 -0
  112. package/lib/models/site.model.d.ts +165 -0
  113. package/lib/models/site.model.d.ts.map +1 -0
  114. package/lib/models/subscription.model.d.ts +592 -0
  115. package/lib/models/subscription.model.d.ts.map +1 -0
  116. package/lib/models/telephonyConfig.model.d.ts +144 -0
  117. package/lib/models/telephonyConfig.model.d.ts.map +1 -0
  118. package/lib/models/telephonyForward.model.d.ts +47 -0
  119. package/lib/models/telephonyForward.model.d.ts.map +1 -0
  120. package/lib/models/todo.model.d.ts +103 -0
  121. package/lib/models/todo.model.d.ts.map +1 -0
  122. package/lib/models/transcription.model.d.ts +59 -0
  123. package/lib/models/transcription.model.d.ts.map +1 -0
  124. package/lib/models/user.model.d.ts +1008 -0
  125. package/lib/models/user.model.d.ts.map +1 -0
  126. package/lib/models/userProfileTemplate.model.d.ts +735 -0
  127. package/lib/models/userProfileTemplate.model.d.ts.map +1 -0
  128. package/lib/models/usersList.model.d.ts +117 -0
  129. package/lib/models/usersList.model.d.ts.map +1 -0
  130. package/lib/models/webConferenceParticipant.model.d.ts +135 -0
  131. package/lib/models/webConferenceParticipant.model.d.ts.map +1 -0
  132. package/lib/models/webConferenceSession.model.d.ts +658 -0
  133. package/lib/models/webConferenceSession.model.d.ts.map +1 -0
  134. package/lib/models/webinar.model.d.ts +738 -0
  135. package/lib/models/webinar.model.d.ts.map +1 -0
  136. package/lib/models/webinarRecap.model.d.ts +118 -0
  137. package/lib/models/webinarRecap.model.d.ts.map +1 -0
  138. package/lib/node.d.ts +3 -0
  139. package/lib/node.d.ts.map +1 -0
  140. package/lib/node.js +423 -0
  141. package/lib/node.js.map +7 -0
  142. package/lib/node.sdk.d.ts +41 -0
  143. package/lib/node.sdk.d.ts.map +1 -0
  144. package/lib/plugins/admin.plugin.d.ts +6 -0
  145. package/lib/plugins/admin.plugin.d.ts.map +1 -0
  146. package/lib/plugins/bubbleConference.plugin.d.ts +6 -0
  147. package/lib/plugins/bubbleConference.plugin.d.ts.map +1 -0
  148. package/lib/plugins/bubbleTag.plugin.d.ts +6 -0
  149. package/lib/plugins/bubbleTag.plugin.d.ts.map +1 -0
  150. package/lib/plugins/bubbles.plugin.d.ts +6 -0
  151. package/lib/plugins/bubbles.plugin.d.ts.map +1 -0
  152. package/lib/plugins/businessDirectory.plugin.d.ts +6 -0
  153. package/lib/plugins/businessDirectory.plugin.d.ts.map +1 -0
  154. package/lib/plugins/callRecorder.plugin.d.ts +6 -0
  155. package/lib/plugins/callRecorder.plugin.d.ts.map +1 -0
  156. package/lib/plugins/calllog.plugin.d.ts +6 -0
  157. package/lib/plugins/calllog.plugin.d.ts.map +1 -0
  158. package/lib/plugins/calls.plugin.d.ts +6 -0
  159. package/lib/plugins/calls.plugin.d.ts.map +1 -0
  160. package/lib/plugins/channels.plugin.d.ts +6 -0
  161. package/lib/plugins/channels.plugin.d.ts.map +1 -0
  162. package/lib/plugins/dataChannel.plugin.d.ts +6 -0
  163. package/lib/plugins/dataChannel.plugin.d.ts.map +1 -0
  164. package/lib/plugins/deviceManagement.plugin.d.ts +6 -0
  165. package/lib/plugins/deviceManagement.plugin.d.ts.map +1 -0
  166. package/lib/plugins/favorites.plugin.d.ts +6 -0
  167. package/lib/plugins/favorites.plugin.d.ts.map +1 -0
  168. package/lib/plugins/fileDocument.plugin.d.ts +6 -0
  169. package/lib/plugins/fileDocument.plugin.d.ts.map +1 -0
  170. package/lib/plugins/helpCenter.plugin.d.ts +6 -0
  171. package/lib/plugins/helpCenter.plugin.d.ts.map +1 -0
  172. package/lib/plugins/index.d.ts +27 -0
  173. package/lib/plugins/index.d.ts.map +1 -0
  174. package/lib/plugins/microsoft0365Ad.plugin.d.ts +6 -0
  175. package/lib/plugins/microsoft0365Ad.plugin.d.ts.map +1 -0
  176. package/lib/plugins/pbxUsers.plugin.d.ts +6 -0
  177. package/lib/plugins/pbxUsers.plugin.d.ts.map +1 -0
  178. package/lib/plugins/personalDirectory.plugin.d.ts +6 -0
  179. package/lib/plugins/personalDirectory.plugin.d.ts.map +1 -0
  180. package/lib/plugins/plugin.d.ts +8 -0
  181. package/lib/plugins/plugin.d.ts.map +1 -0
  182. package/lib/plugins/polls.plugin.d.ts +6 -0
  183. package/lib/plugins/polls.plugin.d.ts.map +1 -0
  184. package/lib/plugins/rpc.plugin.d.ts +6 -0
  185. package/lib/plugins/rpc.plugin.d.ts.map +1 -0
  186. package/lib/plugins/telemetry.plugin.d.ts +6 -0
  187. package/lib/plugins/telemetry.plugin.d.ts.map +1 -0
  188. package/lib/plugins/telephony.plugin.d.ts +6 -0
  189. package/lib/plugins/telephony.plugin.d.ts.map +1 -0
  190. package/lib/plugins/telephonyConfig.plugin.d.ts +6 -0
  191. package/lib/plugins/telephonyConfig.plugin.d.ts.map +1 -0
  192. package/lib/plugins/transcription.plugin.d.ts +6 -0
  193. package/lib/plugins/transcription.plugin.d.ts.map +1 -0
  194. package/lib/plugins/usersList.plugin.d.ts +6 -0
  195. package/lib/plugins/usersList.plugin.d.ts.map +1 -0
  196. package/lib/plugins/virtualBackground.plugin.d.ts +6 -0
  197. package/lib/plugins/virtualBackground.plugin.d.ts.map +1 -0
  198. package/lib/plugins/webinar.plugin.d.ts +6 -0
  199. package/lib/plugins/webinar.plugin.d.ts.map +1 -0
  200. package/lib/rainbow.sdk.d.ts +309 -0
  201. package/lib/rainbow.sdk.d.ts.map +1 -0
  202. package/lib/services/admin/admin-alarm.service.d.ts +42 -0
  203. package/lib/services/admin/admin-alarm.service.d.ts.map +1 -0
  204. package/lib/services/admin/admin-company.service.d.ts +167 -0
  205. package/lib/services/admin/admin-company.service.d.ts.map +1 -0
  206. package/lib/services/admin/admin-department.service.d.ts +39 -0
  207. package/lib/services/admin/admin-department.service.d.ts.map +1 -0
  208. package/lib/services/admin/admin-invitation.service.d.ts +114 -0
  209. package/lib/services/admin/admin-invitation.service.d.ts.map +1 -0
  210. package/lib/services/admin/admin-management.service.d.ts +100 -0
  211. package/lib/services/admin/admin-management.service.d.ts.map +1 -0
  212. package/lib/services/admin/admin-rvcp.service.d.ts +43 -0
  213. package/lib/services/admin/admin-rvcp.service.d.ts.map +1 -0
  214. package/lib/services/admin/admin-site.service.d.ts +64 -0
  215. package/lib/services/admin/admin-site.service.d.ts.map +1 -0
  216. package/lib/services/admin/admin-subscription.service.d.ts +135 -0
  217. package/lib/services/admin/admin-subscription.service.d.ts.map +1 -0
  218. package/lib/services/admin/admin-tag.service.d.ts +79 -0
  219. package/lib/services/admin/admin-tag.service.d.ts.map +1 -0
  220. package/lib/services/admin/admin-user-profile.service.d.ts +76 -0
  221. package/lib/services/admin/admin-user-profile.service.d.ts.map +1 -0
  222. package/lib/services/admin/admin-user.service.d.ts +338 -0
  223. package/lib/services/admin/admin-user.service.d.ts.map +1 -0
  224. package/lib/services/admin/admin.common.d.ts +40 -0
  225. package/lib/services/admin/admin.common.d.ts.map +1 -0
  226. package/lib/services/admin/admin.service.d.ts +138 -0
  227. package/lib/services/admin/admin.service.d.ts.map +1 -0
  228. package/lib/services/admin/index.d.ts +14 -0
  229. package/lib/services/admin/index.d.ts.map +1 -0
  230. package/lib/services/bot/bot.service.d.ts +121 -0
  231. package/lib/services/bot/bot.service.d.ts.map +1 -0
  232. package/lib/services/bubbles/bubble.service.d.ts +889 -0
  233. package/lib/services/bubbles/bubble.service.d.ts.map +1 -0
  234. package/lib/services/bubbles/bubbleTag.service.d.ts +132 -0
  235. package/lib/services/bubbles/bubbleTag.service.d.ts.map +1 -0
  236. package/lib/services/bubbles/index.d.ts +3 -0
  237. package/lib/services/bubbles/index.d.ts.map +1 -0
  238. package/lib/services/call/call.service.d.ts +297 -0
  239. package/lib/services/call/call.service.d.ts.map +1 -0
  240. package/lib/services/call/callRecorder.service.d.ts +358 -0
  241. package/lib/services/call/callRecorder.service.d.ts.map +1 -0
  242. package/lib/services/call/index.d.ts +3 -0
  243. package/lib/services/call/index.d.ts.map +1 -0
  244. package/lib/services/callLog/callLog.service.d.ts +563 -0
  245. package/lib/services/callLog/callLog.service.d.ts.map +1 -0
  246. package/lib/services/callLog/index.d.ts +5 -0
  247. package/lib/services/callLog/index.d.ts.map +1 -0
  248. package/lib/services/callLog/p2pRecap.service.d.ts +206 -0
  249. package/lib/services/callLog/p2pRecap.service.d.ts.map +1 -0
  250. package/lib/services/channels/channel.service.d.ts +626 -0
  251. package/lib/services/channels/channel.service.d.ts.map +1 -0
  252. package/lib/services/channels/index.d.ts +3 -0
  253. package/lib/services/channels/index.d.ts.map +1 -0
  254. package/lib/services/citrix/citrix.service.d.ts +30 -0
  255. package/lib/services/citrix/citrix.service.d.ts.map +1 -0
  256. package/lib/services/citrix/index.d.ts +3 -0
  257. package/lib/services/citrix/index.d.ts.map +1 -0
  258. package/lib/services/company/company-directory.service.d.ts +222 -0
  259. package/lib/services/company/company-directory.service.d.ts.map +1 -0
  260. package/lib/services/conference/bubbleConference.service.d.ts +1237 -0
  261. package/lib/services/conference/bubbleConference.service.d.ts.map +1 -0
  262. package/lib/services/conference/bubbleConferenceRecap.service.d.ts +159 -0
  263. package/lib/services/conference/bubbleConferenceRecap.service.d.ts.map +1 -0
  264. package/lib/services/conference/index.d.ts +5 -0
  265. package/lib/services/conference/index.d.ts.map +1 -0
  266. package/lib/services/conference/webConferenceHelper.d.ts +25 -0
  267. package/lib/services/conference/webConferenceHelper.d.ts.map +1 -0
  268. package/lib/services/conversation/conversation.service.d.ts +723 -0
  269. package/lib/services/conversation/conversation.service.d.ts.map +1 -0
  270. package/lib/services/conversation/conversationServiceBulkHistoryHandler.d.ts +39 -0
  271. package/lib/services/conversation/conversationServiceBulkHistoryHandler.d.ts.map +1 -0
  272. package/lib/services/conversation/conversationServiceEventHandler.d.ts +78 -0
  273. package/lib/services/conversation/conversationServiceEventHandler.d.ts.map +1 -0
  274. package/lib/services/conversation/index.d.ts +3 -0
  275. package/lib/services/conversation/index.d.ts.map +1 -0
  276. package/lib/services/core/account.service.d.ts +98 -0
  277. package/lib/services/core/account.service.d.ts.map +1 -0
  278. package/lib/services/core/auth.service.d.ts +303 -0
  279. package/lib/services/core/auth.service.d.ts.map +1 -0
  280. package/lib/services/core/company.service.d.ts +30 -0
  281. package/lib/services/core/company.service.d.ts.map +1 -0
  282. package/lib/services/core/connection.service.d.ts +209 -0
  283. package/lib/services/core/connection.service.d.ts.map +1 -0
  284. package/lib/services/core/contact.service.d.ts +617 -0
  285. package/lib/services/core/contact.service.d.ts.map +1 -0
  286. package/lib/services/core/country.service.d.ts +66 -0
  287. package/lib/services/core/country.service.d.ts.map +1 -0
  288. package/lib/services/core/directorySearch.service.d.ts +305 -0
  289. package/lib/services/core/directorySearch.service.d.ts.map +1 -0
  290. package/lib/services/core/event.service.d.ts +31 -0
  291. package/lib/services/core/event.service.d.ts.map +1 -0
  292. package/lib/services/core/i18n.service.d.ts +19 -0
  293. package/lib/services/core/i18n.service.d.ts.map +1 -0
  294. package/lib/services/core/imageUtils.service.d.ts +15 -0
  295. package/lib/services/core/imageUtils.service.d.ts.map +1 -0
  296. package/lib/services/core/index.d.ts +19 -0
  297. package/lib/services/core/index.d.ts.map +1 -0
  298. package/lib/services/core/logger.service.d.ts +143 -0
  299. package/lib/services/core/logger.service.d.ts.map +1 -0
  300. package/lib/services/core/logging.service.d.ts +51 -0
  301. package/lib/services/core/logging.service.d.ts.map +1 -0
  302. package/lib/services/core/main.service.d.ts +124 -0
  303. package/lib/services/core/main.service.d.ts.map +1 -0
  304. package/lib/services/core/presenceHelper.service.d.ts +73 -0
  305. package/lib/services/core/presenceHelper.service.d.ts.map +1 -0
  306. package/lib/services/core/profile.service.d.ts +453 -0
  307. package/lib/services/core/profile.service.d.ts.map +1 -0
  308. package/lib/services/core/settings.service.d.ts +82 -0
  309. package/lib/services/core/settings.service.d.ts.map +1 -0
  310. package/lib/services/core/userInfo.service.d.ts +25 -0
  311. package/lib/services/core/userInfo.service.d.ts.map +1 -0
  312. package/lib/services/core/userNetwork.service.d.ts +171 -0
  313. package/lib/services/core/userNetwork.service.d.ts.map +1 -0
  314. package/lib/services/core/xmpp.service.d.ts +99 -0
  315. package/lib/services/core/xmpp.service.d.ts.map +1 -0
  316. package/lib/services/dataChannel/dataChannel.service.d.ts +102 -0
  317. package/lib/services/dataChannel/dataChannel.service.d.ts.map +1 -0
  318. package/lib/services/dataChannel/index.d.ts +3 -0
  319. package/lib/services/dataChannel/index.d.ts.map +1 -0
  320. package/lib/services/deviceManagement/deviceEchoFilter.d.ts +86 -0
  321. package/lib/services/deviceManagement/deviceEchoFilter.d.ts.map +1 -0
  322. package/lib/services/deviceManagement/deviceManagement.service.d.ts +290 -0
  323. package/lib/services/deviceManagement/deviceManagement.service.d.ts.map +1 -0
  324. package/lib/services/deviceManagement/index.d.ts +2 -0
  325. package/lib/services/deviceManagement/index.d.ts.map +1 -0
  326. package/lib/services/deviceManagement/webHidManager.service.d.ts +616 -0
  327. package/lib/services/deviceManagement/webHidManager.service.d.ts.map +1 -0
  328. package/lib/services/directory/directory.service.d.ts +108 -0
  329. package/lib/services/directory/directory.service.d.ts.map +1 -0
  330. package/lib/services/directory/index.d.ts +3 -0
  331. package/lib/services/directory/index.d.ts.map +1 -0
  332. package/lib/services/directory/office365ad.service.d.ts +74 -0
  333. package/lib/services/directory/office365ad.service.d.ts.map +1 -0
  334. package/lib/services/directory/personal-directory.service.d.ts +425 -0
  335. package/lib/services/directory/personal-directory.service.d.ts.map +1 -0
  336. package/lib/services/directory/phonebook.service.d.ts +43 -0
  337. package/lib/services/directory/phonebook.service.d.ts.map +1 -0
  338. package/lib/services/event-mixin.d.ts +75 -0
  339. package/lib/services/event-mixin.d.ts.map +1 -0
  340. package/lib/services/favorites/favorites.service.d.ts +313 -0
  341. package/lib/services/favorites/favorites.service.d.ts.map +1 -0
  342. package/lib/services/favorites/index.d.ts +3 -0
  343. package/lib/services/favorites/index.d.ts.map +1 -0
  344. package/lib/services/fileDocument/fileDocument.service.d.ts +229 -0
  345. package/lib/services/fileDocument/fileDocument.service.d.ts.map +1 -0
  346. package/lib/services/fileDocument/index.d.ts +5 -0
  347. package/lib/services/fileDocument/index.d.ts.map +1 -0
  348. package/lib/services/files/fileDescriptorEventHandler.service.d.ts +18 -0
  349. package/lib/services/files/fileDescriptorEventHandler.service.d.ts.map +1 -0
  350. package/lib/services/files/fileServer.service.d.ts +268 -0
  351. package/lib/services/files/fileServer.service.d.ts.map +1 -0
  352. package/lib/services/files/fileStorage.service.d.ts +426 -0
  353. package/lib/services/files/fileStorage.service.d.ts.map +1 -0
  354. package/lib/services/helpcenter/helpCenter.service.d.ts +207 -0
  355. package/lib/services/helpcenter/helpCenter.service.d.ts.map +1 -0
  356. package/lib/services/helpcenter/index.d.ts +4 -0
  357. package/lib/services/helpcenter/index.d.ts.map +1 -0
  358. package/lib/services/helpcenter/whatsNew.service.d.ts +47 -0
  359. package/lib/services/helpcenter/whatsNew.service.d.ts.map +1 -0
  360. package/lib/services/horizon/horizon.service.d.ts +31 -0
  361. package/lib/services/horizon/horizon.service.d.ts.map +1 -0
  362. package/lib/services/horizon/index.d.ts +3 -0
  363. package/lib/services/horizon/index.d.ts.map +1 -0
  364. package/lib/services/index.d.ts +35 -0
  365. package/lib/services/index.d.ts.map +1 -0
  366. package/lib/services/launcher/config/sdkLaunchConfig.d.ts +8 -0
  367. package/lib/services/launcher/config/sdkLaunchConfig.d.ts.map +1 -0
  368. package/lib/services/localTranslation/chromeTranslation.engine.d.ts +79 -0
  369. package/lib/services/localTranslation/chromeTranslation.engine.d.ts.map +1 -0
  370. package/lib/services/localTranslation/index.d.ts +6 -0
  371. package/lib/services/localTranslation/index.d.ts.map +1 -0
  372. package/lib/services/localTranslation/localTranslation.service.d.ts +129 -0
  373. package/lib/services/localTranslation/localTranslation.service.d.ts.map +1 -0
  374. package/lib/services/localTranslation/translationEngine.d.ts +81 -0
  375. package/lib/services/localTranslation/translationEngine.d.ts.map +1 -0
  376. package/lib/services/metrics/analytics.service.d.ts +63 -0
  377. package/lib/services/metrics/analytics.service.d.ts.map +1 -0
  378. package/lib/services/metrics/index.d.ts +2 -0
  379. package/lib/services/metrics/index.d.ts.map +1 -0
  380. package/lib/services/notifications/index.d.ts +2 -0
  381. package/lib/services/notifications/index.d.ts.map +1 -0
  382. package/lib/services/notifications/notificationCenter.service.d.ts +178 -0
  383. package/lib/services/notifications/notificationCenter.service.d.ts.map +1 -0
  384. package/lib/services/notifications/notificationsViewer.service.d.ts +46 -0
  385. package/lib/services/notifications/notificationsViewer.service.d.ts.map +1 -0
  386. package/lib/services/personalRoutines/personal-routines.service.d.ts +159 -0
  387. package/lib/services/personalRoutines/personal-routines.service.d.ts.map +1 -0
  388. package/lib/services/polls/index.d.ts +2 -0
  389. package/lib/services/polls/index.d.ts.map +1 -0
  390. package/lib/services/polls/polls.service.d.ts +139 -0
  391. package/lib/services/polls/polls.service.d.ts.map +1 -0
  392. package/lib/services/ringing/index.d.ts +2 -0
  393. package/lib/services/ringing/index.d.ts.map +1 -0
  394. package/lib/services/ringing/ringing.service.d.ts +535 -0
  395. package/lib/services/ringing/ringing.service.d.ts.map +1 -0
  396. package/lib/services/rpc/index.d.ts +2 -0
  397. package/lib/services/rpc/index.d.ts.map +1 -0
  398. package/lib/services/rpc/rpc.service.d.ts +75 -0
  399. package/lib/services/rpc/rpc.service.d.ts.map +1 -0
  400. package/lib/services/service.d.ts +9 -0
  401. package/lib/services/service.d.ts.map +1 -0
  402. package/lib/services/speechRecognitionService/speechRecognition.service.d.ts +87 -0
  403. package/lib/services/speechRecognitionService/speechRecognition.service.d.ts.map +1 -0
  404. package/lib/services/subscription/index.d.ts +4 -0
  405. package/lib/services/subscription/index.d.ts.map +1 -0
  406. package/lib/services/subscription/invoices.service.d.ts +78 -0
  407. package/lib/services/subscription/invoices.service.d.ts.map +1 -0
  408. package/lib/services/subscription/paymentMethods.service.d.ts +164 -0
  409. package/lib/services/subscription/paymentMethods.service.d.ts.map +1 -0
  410. package/lib/services/subscription/subscription.service.d.ts +510 -0
  411. package/lib/services/subscription/subscription.service.d.ts.map +1 -0
  412. package/lib/services/support/index.d.ts +2 -0
  413. package/lib/services/support/index.d.ts.map +1 -0
  414. package/lib/services/support/support.model.d.ts +143 -0
  415. package/lib/services/support/support.model.d.ts.map +1 -0
  416. package/lib/services/support/support.service.d.ts +162 -0
  417. package/lib/services/support/support.service.d.ts.map +1 -0
  418. package/lib/services/telemetry/index.d.ts +3 -0
  419. package/lib/services/telemetry/index.d.ts.map +1 -0
  420. package/lib/services/telemetry/jsonRPC.service.d.ts +25 -0
  421. package/lib/services/telemetry/jsonRPC.service.d.ts.map +1 -0
  422. package/lib/services/telemetry/telemetry.service.d.ts +22 -0
  423. package/lib/services/telemetry/telemetry.service.d.ts.map +1 -0
  424. package/lib/services/telephony/index.d.ts +4 -0
  425. package/lib/services/telephony/index.d.ts.map +1 -0
  426. package/lib/services/telephony/supervision.service.d.ts +277 -0
  427. package/lib/services/telephony/supervision.service.d.ts.map +1 -0
  428. package/lib/services/telephony/telephony.service.d.ts +1476 -0
  429. package/lib/services/telephony/telephony.service.d.ts.map +1 -0
  430. package/lib/services/telephony/telephonyCcdAgent.service.d.ts +63 -0
  431. package/lib/services/telephony/telephonyCcdAgent.service.d.ts.map +1 -0
  432. package/lib/services/telephony/telephonyHybridEventHandler.d.ts +360 -0
  433. package/lib/services/telephony/telephonyHybridEventHandler.d.ts.map +1 -0
  434. package/lib/services/telephony/telephonyKeys.service.d.ts +86 -0
  435. package/lib/services/telephony/telephonyKeys.service.d.ts.map +1 -0
  436. package/lib/services/telephony/telephonySipWise.service.d.ts +543 -0
  437. package/lib/services/telephony/telephonySipWise.service.d.ts.map +1 -0
  438. package/lib/services/telephony/telephonySipWiseEventHandler.d.ts +462 -0
  439. package/lib/services/telephony/telephonySipWiseEventHandler.d.ts.map +1 -0
  440. package/lib/services/telephonyConfig/index.d.ts +3 -0
  441. package/lib/services/telephonyConfig/index.d.ts.map +1 -0
  442. package/lib/services/telephonyConfig/telephonyConfig.service.d.ts +150 -0
  443. package/lib/services/telephonyConfig/telephonyConfig.service.d.ts.map +1 -0
  444. package/lib/services/todo/todo.service.d.ts +358 -0
  445. package/lib/services/todo/todo.service.d.ts.map +1 -0
  446. package/lib/services/transcription/index.d.ts +2 -0
  447. package/lib/services/transcription/index.d.ts.map +1 -0
  448. package/lib/services/transcription/liveTranscription.service.d.ts +94 -0
  449. package/lib/services/transcription/liveTranscription.service.d.ts.map +1 -0
  450. package/lib/services/ulrMetadata/urlMetadata.service.d.ts +51 -0
  451. package/lib/services/ulrMetadata/urlMetadata.service.d.ts.map +1 -0
  452. package/lib/services/users/index.d.ts +3 -0
  453. package/lib/services/users/index.d.ts.map +1 -0
  454. package/lib/services/users/user.service.d.ts +146 -0
  455. package/lib/services/users/user.service.d.ts.map +1 -0
  456. package/lib/services/users/usersLists.service.d.ts +239 -0
  457. package/lib/services/users/usersLists.service.d.ts.map +1 -0
  458. package/lib/services/utilities/browserDatabase.service.d.ts +69 -0
  459. package/lib/services/utilities/browserDatabase.service.d.ts.map +1 -0
  460. package/lib/services/utilities/errorHelper.service.d.ts +24 -0
  461. package/lib/services/utilities/errorHelper.service.d.ts.map +1 -0
  462. package/lib/services/utilities/index.d.ts +4 -0
  463. package/lib/services/utilities/index.d.ts.map +1 -0
  464. package/lib/services/utilities/utilities.service.d.ts +74 -0
  465. package/lib/services/utilities/utilities.service.d.ts.map +1 -0
  466. package/lib/services/virtualBackground/RBVirtualBackground.service.d.ts +228 -0
  467. package/lib/services/virtualBackground/RBVirtualBackground.service.d.ts.map +1 -0
  468. package/lib/services/virtualBackground/index.d.ts +4 -0
  469. package/lib/services/virtualBackground/index.d.ts.map +1 -0
  470. package/lib/services/virtualBackground/personalVideoBackground.d.ts +190 -0
  471. package/lib/services/virtualBackground/personalVideoBackground.d.ts.map +1 -0
  472. package/lib/services/virtualBackground/pipeline/canvas2D/canvas2DPipeline.d.ts +66 -0
  473. package/lib/services/virtualBackground/pipeline/canvas2D/canvas2DPipeline.d.ts.map +1 -0
  474. package/lib/services/virtualBackground/pipeline/webgl2/blurStage.d.ts +88 -0
  475. package/lib/services/virtualBackground/pipeline/webgl2/blurStage.d.ts.map +1 -0
  476. package/lib/services/virtualBackground/pipeline/webgl2/imageStage.d.ts +69 -0
  477. package/lib/services/virtualBackground/pipeline/webgl2/imageStage.d.ts.map +1 -0
  478. package/lib/services/virtualBackground/pipeline/webgl2/jointBilateralFilter.d.ts +55 -0
  479. package/lib/services/virtualBackground/pipeline/webgl2/jointBilateralFilter.d.ts.map +1 -0
  480. package/lib/services/virtualBackground/pipeline/webgl2/resizingStage.d.ts +59 -0
  481. package/lib/services/virtualBackground/pipeline/webgl2/resizingStage.d.ts.map +1 -0
  482. package/lib/services/virtualBackground/pipeline/webgl2/softMax.d.ts +34 -0
  483. package/lib/services/virtualBackground/pipeline/webgl2/softMax.d.ts.map +1 -0
  484. package/lib/services/virtualBackground/pipeline/webgl2/webgl2Pipeline.d.ts +62 -0
  485. package/lib/services/virtualBackground/pipeline/webgl2/webgl2Pipeline.d.ts.map +1 -0
  486. package/lib/services/virtualBackground/pipeline/webgl2/webglHelper.d.ts +56 -0
  487. package/lib/services/virtualBackground/pipeline/webgl2/webglHelper.d.ts.map +1 -0
  488. package/lib/services/virtualBackground/virtualBackground.service.d.ts +399 -0
  489. package/lib/services/virtualBackground/virtualBackground.service.d.ts.map +1 -0
  490. package/lib/services/webinars/index.d.ts +10 -0
  491. package/lib/services/webinars/index.d.ts.map +1 -0
  492. package/lib/services/webinars/telemetry/webinarTelemetry.model.d.ts +71 -0
  493. package/lib/services/webinars/telemetry/webinarTelemetry.model.d.ts.map +1 -0
  494. package/lib/services/webinars/telemetry/webinarTelemetry.service.d.ts +86 -0
  495. package/lib/services/webinars/telemetry/webinarTelemetry.service.d.ts.map +1 -0
  496. package/lib/services/webinars/telemetry/webinarTelemetryDatabase.d.ts +31 -0
  497. package/lib/services/webinars/telemetry/webinarTelemetryDatabase.d.ts.map +1 -0
  498. package/lib/services/webinars/webinarAudioMixer.d.ts +45 -0
  499. package/lib/services/webinars/webinarAudioMixer.d.ts.map +1 -0
  500. package/lib/services/webinars/webinarConference.service.d.ts +323 -0
  501. package/lib/services/webinars/webinarConference.service.d.ts.map +1 -0
  502. package/lib/services/webinars/webinarConference.utils.d.ts +24 -0
  503. package/lib/services/webinars/webinarConference.utils.d.ts.map +1 -0
  504. package/lib/services/webinars/webinarParticipants.service.d.ts +43 -0
  505. package/lib/services/webinars/webinarParticipants.service.d.ts.map +1 -0
  506. package/lib/services/webinars/webinarSpeakers.service.d.ts +25 -0
  507. package/lib/services/webinars/webinarSpeakers.service.d.ts.map +1 -0
  508. package/lib/services/webinars/webinarStoryLine.service.d.ts +117 -0
  509. package/lib/services/webinars/webinarStoryLine.service.d.ts.map +1 -0
  510. package/lib/services/webinars/webinars.service.d.ts +600 -0
  511. package/lib/services/webinars/webinars.service.d.ts.map +1 -0
  512. package/lib/services/webrtc/index.d.ts +5 -0
  513. package/lib/services/webrtc/index.d.ts.map +1 -0
  514. package/lib/services/webrtc/webrtcConfigAndUtils.d.ts +170 -0
  515. package/lib/services/webrtc/webrtcConfigAndUtils.d.ts.map +1 -0
  516. package/lib/services/webrtc/webrtcP2P.service.d.ts +521 -0
  517. package/lib/services/webrtc/webrtcP2P.service.d.ts.map +1 -0
  518. package/lib/services/webrtc/webrtcP2PEventHandler.d.ts +55 -0
  519. package/lib/services/webrtc/webrtcP2PEventHandler.d.ts.map +1 -0
  520. package/lib/services/webrtcGateway/webrtcGateway.service.d.ts +605 -0
  521. package/lib/services/webrtcGateway/webrtcGateway.service.d.ts.map +1 -0
  522. package/lib/strophejs.d.ts +3 -0
  523. package/lib/strophejs.d.ts.map +1 -0
  524. package/lib/typings/helpers.d.ts +3 -0
  525. package/lib/typings/helpers.d.ts.map +1 -0
  526. package/lib/utils/allSettled.d.ts +2 -0
  527. package/lib/utils/allSettled.d.ts.map +1 -0
  528. package/lib/utils/anonymizer.d.ts +28 -0
  529. package/lib/utils/anonymizer.d.ts.map +1 -0
  530. package/lib/utils/branded.d.ts +4 -0
  531. package/lib/utils/branded.d.ts.map +1 -0
  532. package/lib/utils/browser.d.ts +231 -0
  533. package/lib/utils/browser.d.ts.map +1 -0
  534. package/lib/utils/index.d.ts +12 -0
  535. package/lib/utils/index.d.ts.map +1 -0
  536. package/lib/utils/mediaPermissionError.d.ts +2 -0
  537. package/lib/utils/mediaPermissionError.d.ts.map +1 -0
  538. package/lib/utils/promiseQueue.d.ts +10 -0
  539. package/lib/utils/promiseQueue.d.ts.map +1 -0
  540. package/lib/utils/randomString.d.ts +3 -0
  541. package/lib/utils/randomString.d.ts.map +1 -0
  542. package/lib/utils/recordingArchiveName.d.ts +13 -0
  543. package/lib/utils/recordingArchiveName.d.ts.map +1 -0
  544. package/lib/utils/serverTimestamp.d.ts +15 -0
  545. package/lib/utils/serverTimestamp.d.ts.map +1 -0
  546. package/lib/utils/stringifyError.d.ts +2 -0
  547. package/lib/utils/stringifyError.d.ts.map +1 -0
  548. package/lib/utils/video.d.ts +27 -0
  549. package/lib/utils/video.d.ts.map +1 -0
  550. package/lib/utils/wait.d.ts +2 -0
  551. package/lib/utils/wait.d.ts.map +1 -0
  552. package/lib/utils/xmlParser.d.ts +102 -0
  553. package/lib/utils/xmlParser.d.ts.map +1 -0
  554. package/lib/utils/xmlValidation.d.ts +119 -0
  555. package/lib/utils/xmlValidation.d.ts.map +1 -0
  556. package/package.json +58 -0
@@ -0,0 +1,114 @@
1
+ /**
2
+ * @module Admin
3
+ */
4
+ import type { Observable } from "rxjs";
5
+ import type { CompanyInvitation, CompanyInvitationResult } from "../../models/company-invitation.model";
6
+ import type { SeatAvailability } from "../../models/subscription.model";
7
+ import type { ServiceEventsToUnion } from "../service";
8
+ import type { AuthService } from "../core/auth.service";
9
+ import type { LoggerService } from "../core/logger.service";
10
+ import type { ErrorHelperService } from "../utilities/errorHelper.service";
11
+ /**
12
+ * Events emitted by {@link SDKAdminInvitationService} after successful invitation operations.
13
+ */
14
+ export interface AdminInvitationServiceEvents {
15
+ /** Fired after an invitation has been cancelled. */
16
+ ON_ADMIN_INVITATION_CANCELLED: {
17
+ invitationId: string;
18
+ };
19
+ /** Fired after an invitation email has been re-sent. */
20
+ ON_ADMIN_INVITATION_RESENT: {
21
+ invitationId: string;
22
+ };
23
+ /** Fired after a new invitation has been successfully created. */
24
+ ON_ADMIN_INVITATION_CREATED: {
25
+ invitation: CompanyInvitation;
26
+ };
27
+ }
28
+ /**
29
+ * Admin sub-service for company join-invitation management.
30
+ *
31
+ * Accessible via `adminService.invitation`.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const result = await adminService.invitation.getAll(companyId);
36
+ * await adminService.invitation.resend(companyId, invitationId);
37
+ * await adminService.invitation.cancel(companyId, invitationId);
38
+ * ```
39
+ */
40
+ export interface SDKAdminInvitationService {
41
+ events: <const E extends keyof AdminInvitationServiceEvents & string>(...names: E[]) => Observable<ServiceEventsToUnion<Pick<AdminInvitationServiceEvents, E>>>;
42
+ /**
43
+ * Fetches all pending, declined, or failed join-company invitations for a company.
44
+ *
45
+ * @param companyId - The unique identifier of the company.
46
+ * @returns An object with the list of invitations and the total count.
47
+ * @throws {@link RainbowError} when the request fails.
48
+ */
49
+ getAll: (companyId: string) => Promise<CompanyInvitationResult>;
50
+ /**
51
+ * Re-sends the invitation email to the invited user.
52
+ *
53
+ * @param companyId - The unique identifier of the company.
54
+ * @param invitationId - The unique identifier of the invitation to re-send.
55
+ * @throws {@link RainbowError} when the request fails.
56
+ */
57
+ resend: (companyId: string, invitationId: string) => Promise<void>;
58
+ /**
59
+ * Cancels a pending join-company invitation.
60
+ *
61
+ * @param companyId - The unique identifier of the company.
62
+ * @param invitationId - The unique identifier of the invitation to cancel.
63
+ * @throws {@link RainbowError} when the request fails.
64
+ */
65
+ cancel: (companyId: string, invitationId: string) => Promise<void>;
66
+ /**
67
+ * Sends a join-company invitation to a Rainbow user or an email address.
68
+ * Emits {@link AdminInvitationServiceEvents.ON_ADMIN_INVITATION_CREATED} on success.
69
+ *
70
+ * @param companyId - The unique identifier of the company.
71
+ * @param invitedUserId - The Rainbow user ID to invite (mutually exclusive with `email`).
72
+ * @param email - The email address to invite (mutually exclusive with `invitedUserId`).
73
+ * @throws {@link RainbowError} when the request fails.
74
+ */
75
+ invite: (companyId: string, invitedUserId?: string, email?: string) => Promise<void>;
76
+ /**
77
+ * How many people may still be invited: the company's seats, minus the ones already assigned,
78
+ * minus the invitations still awaiting an answer.
79
+ *
80
+ * Read this before letting an admin queue invitations. {@link SeatUsage} alone is not enough:
81
+ * a pending invitation takes no seat yet but will take one on acceptance, so inviting against
82
+ * the seats it stands to claim produces invitations that all fail at acceptance time, long
83
+ * after the admin has left the screen.
84
+ *
85
+ * Counts the seat-based subscriptions only — the `nb_services` offers (Webinar) hold their
86
+ * licences against the company and let nobody in. See
87
+ * {@link CompanySubscription.isUserLicense}.
88
+ *
89
+ * Reads the invitation list through {@link getAll}, which the backend caps at 200 — past that
90
+ * the reserved count is understated and the check turns permissive rather than blocking.
91
+ *
92
+ * @param companyId - The company being invited to.
93
+ * @returns The seat counters, `available` already net of the pending invitations.
94
+ * @throws {@link RainbowError} when the invitation list cannot be fetched.
95
+ */
96
+ getSeatAvailability: (companyId: string) => Promise<SeatAvailability>;
97
+ }
98
+ declare const SDKAdminInvitationServiceRB_base: object & (abstract new (...args: any[]) => import("../event-mixin").EventsMixinTemplate<AdminInvitationServiceEvents>);
99
+ /**
100
+ * @internal
101
+ */
102
+ export declare class SDKAdminInvitationServiceRB extends SDKAdminInvitationServiceRB_base implements SDKAdminInvitationService {
103
+ private readonly authService;
104
+ private readonly loggerService;
105
+ private readonly errorHelperService;
106
+ constructor(authService: AuthService, loggerService: LoggerService, errorHelperService: ErrorHelperService);
107
+ getAll(companyId: string): Promise<CompanyInvitationResult>;
108
+ getSeatAvailability(companyId: string): Promise<SeatAvailability>;
109
+ resend(companyId: string, invitationId: string): Promise<void>;
110
+ cancel(companyId: string, invitationId: string): Promise<void>;
111
+ invite(companyId: string, invitedUserId?: string, email?: string): Promise<void>;
112
+ }
113
+ export {};
114
+ //# sourceMappingURL=admin-invitation.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-invitation.service.d.ts","sourceRoot":"","sources":["../../../src/services/admin/admin-invitation.service.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AACxG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAKxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,4BAA4B;IACzC,oDAAoD;IACpD,6BAA6B,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;KAAE,CAAC;IACzD,wDAAwD;IACxD,0BAA0B,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;KAAE,CAAC;IACtD,kEAAkE;IAClE,2BAA2B,EAAE;QAAE,UAAU,EAAE,iBAAiB,CAAC;KAAE,CAAC;CACnE;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,yBAAyB;IACtC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,SAAS,MAAM,4BAA4B,GAAG,MAAM,EAAE,GAAG,KAAK,EAAE,CAAC,EAAE,KAAK,UAAU,C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EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAe9D,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CA+BhG"}
@@ -0,0 +1,100 @@
1
+ /**
2
+ * @module Admin
3
+ */
4
+ import type { Company } from "../../models/company.model";
5
+ import type { SDKAdminCompanyService } from "./admin-company.service";
6
+ /**
7
+ * Admin sub-service for role checking and impersonation management.
8
+ *
9
+ * Accessible via `adminService.management`.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const isSuperadmin = adminService.management.isSuperadmin();
14
+ * const company = adminService.management.getMyCompany();
15
+ * await adminService.management.setAdminImpersonation(companyId);
16
+ * ```
17
+ */
18
+ export interface SDKAdminManagementService {
19
+ init: (companyService: SDKAdminCompanyService) => Promise<void>;
20
+ stop: () => void;
21
+ getMyCompany: () => Company;
22
+ setAdminImpersonation: (companyId: string) => Promise<void>;
23
+ clearAdminImpersonation: () => Promise<void>;
24
+ isAdminImpersonationActive: () => boolean;
25
+ isSuperadmin: (impersonation?: boolean | null) => boolean;
26
+ isOrganizationAdmin: (impersonation?: boolean | null) => boolean;
27
+ isCompanyAdmin: () => boolean;
28
+ isBPAdmin: () => boolean;
29
+ isBPAdminOperations: () => boolean;
30
+ isBPAdminFinance: () => boolean;
31
+ isBPAnalytics: () => boolean;
32
+ isECAdmin: () => boolean;
33
+ isECAnalytics: () => boolean;
34
+ isSiteAdmin: () => boolean;
35
+ isBusinessAdmin: () => boolean;
36
+ isCustomerSuccessAdmin: () => boolean;
37
+ isSalesAnalyticsAdmin: () => boolean;
38
+ isPrivacyOperationAdmin: () => boolean;
39
+ isMyCompanyVAD: () => boolean;
40
+ isMyCompanyDR: () => boolean;
41
+ isMyCompanyPremium: () => boolean;
42
+ isMyCompanyBP: () => boolean;
43
+ isRainbowEdge: () => boolean;
44
+ isBusinessDirectoryAdminEnabled: () => boolean;
45
+ isAllowedToManagePbxEquipmentsForCompany: (company: Company) => boolean;
46
+ isAllowedToManageTvEquipmentsForCompany: (company: Company) => boolean;
47
+ isAllowedToSellRainbowEdge: () => boolean;
48
+ }
49
+ /**
50
+ * @internal
51
+ */
52
+ export declare class SDKAdminManagementServiceRB implements SDKAdminManagementService {
53
+ private readonly contactService;
54
+ private readonly loggerService;
55
+ private readonly eventService;
56
+ private readonly profileService;
57
+ private companyService;
58
+ private company;
59
+ private impersonation;
60
+ init(companyService: SDKAdminCompanyService): Promise<void>;
61
+ /**
62
+ * Drops the session state. The service is a singleton living in `window.rainbow.services`, so it
63
+ * outlives a logout: without this reset an impersonation still in progress would stay active for
64
+ * the next user connecting in the same tab. No `ADMIN_MENU_CHANGE` here — the UI is being torn
65
+ * down, unlike {@link clearAdminImpersonation} which must notify it.
66
+ */
67
+ stop(): void;
68
+ setAdminImpersonation(companyId: string): Promise<void>;
69
+ clearAdminImpersonation(): Promise<void>;
70
+ isAdminImpersonationActive(): boolean;
71
+ getMyCompany(): Company;
72
+ isSuperadmin(impersonation?: boolean | null): boolean;
73
+ isOrganizationAdmin(impersonation?: boolean | null): boolean;
74
+ isCompanyAdmin(): boolean;
75
+ isBusinessAdmin(): boolean;
76
+ isCustomerSuccessAdmin(): boolean;
77
+ isSalesAnalyticsAdmin(): boolean;
78
+ isPrivacyOperationAdmin(): boolean;
79
+ isSiteAdmin(): boolean;
80
+ isECAdmin(): boolean;
81
+ isBPAdmin(): boolean;
82
+ isBPAdminOperations(): boolean;
83
+ isBPAdminFinance(): boolean;
84
+ isBPAnalytics(): boolean;
85
+ isECAnalytics(): boolean;
86
+ isMyCompanyVAD(): boolean;
87
+ isMyCompanyDR(): boolean;
88
+ isMyCompanyPremium(): boolean;
89
+ isMyCompanyBP(): boolean;
90
+ isRainbowEdge(): boolean;
91
+ isBusinessDirectoryAdminEnabled(): boolean;
92
+ isAllowedToManagePbxEquipmentsForCompany(company: Company): boolean;
93
+ isAllowedToManageTvEquipmentsForCompany(company: Company): boolean;
94
+ isAllowedToSellRainbowEdge(): boolean;
95
+ private getAdministrator;
96
+ private isAdminActive;
97
+ private isAdminCompanyEC;
98
+ private isAdminCompanyBP;
99
+ }
100
+ //# sourceMappingURL=admin-management.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-management.service.d.ts","sourceRoot":"","sources":["../../../src/services/admin/admin-management.service.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AAGzE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEtE;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,yBAAyB;IAEtC,IAAI,EAAE,CAAC,cAAc,EAAE,sBAAsB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChE,IAAI,EAAE,MAAM,IAAI,CAAC;IAEjB,YAAY,EAAE,MAAM,OAAO,CAAC;IAC5B,qBAAqB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5D,uBAAuB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,0BAA0B,EAAE,MAAM,OAAO,CAAC;IAE1C,YAAY,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,GAAG,IAAI,KAAK,OAAO,CAAC;IAC1D,mBAAmB,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,GAAG,IAAI,KAAK,OAAO,CAAC;IACjE,cAAc,EAAE,MAAM,OAAO,CAAC;IAC9B,SAAS,EAAE,MAAM,OAAO,CAAC;IACzB,mBAAmB,EAAE,MAAM,OAAO,CAAC;IACnC,gBAAgB,EAAE,MAAM,OAAO,CAAC;IAChC,aAAa,EAAE,MAAM,OAAO,CAAC;IAC7B,SAAS,EAAE,MAAM,OAAO,CAAC;IACzB,aAAa,EAAE,MAAM,OAAO,CAAC;IAC7B,WAAW,E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AAO;IAW3D,mBAAmB,CAAC,aAAa,GAAE,OAAO,GAAG,IAAW,GAAG,OAAO;IAclE,cAAc,IAAI,OAAO;IAIzB,eAAe,IAAI,OAAO;IAI1B,sBAAsB,IAAI,OAAO;IAIjC,qBAAqB,IAAI,OAAO;IAIhC,uBAAuB,IAAI,OAAO;IAIlC,WAAW,IAAI,OAAO;IAItB,SAAS,IAAI,OAAO;IAIpB,SAAS,IAAI,OAAO;IAIpB,mBAAmB,IAAI,OAAO;IAI9B,gBAAgB,IAAI,OAAO;IAI3B,aAAa,IAAI,OAAO;IAIxB,aAAa,IAAI,OAAO;IAMxB,cAAc,IAAI,OAAO;IAIzB,aAAa,IAAI,OAAO;IAIxB,kBAAkB,IAAI,OAAO;IAI7B,aAAa,IAAI,OAAO;IAIxB,aAAa,IAAI,OAAO;IAKxB,+BAA+B,IAAI,OAAO;IAI1C,wCAAwC,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO;IAKnE,uCAAuC,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO;IAIlE,0BAA0B,IAAI,OAAO;IAM5C,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,gBAAgB;CAG3B"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * @module Admin
3
+ */
4
+ import type { AuthService } from "../../services/core/auth.service";
5
+ import type { LoggerService } from "../../services/core/logger.service";
6
+ import type { ErrorHelperService } from "../../services/utilities/errorHelper.service";
7
+ /**
8
+ * Admin sub-service for RVCP (Rainbow Voice Cloud Platform) operations.
9
+ *
10
+ * Accessible via `adminService.rvcp`.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const result = await adminService.rvcp.getGlobalDdiNumbers(1, 10);
15
+ * console.log(result.total);
16
+ * ```
17
+ */
18
+ export interface SDKAdminRvcpService {
19
+ /**
20
+ * Fetches global DDI (Direct Dial-In) numbers with pagination.
21
+ *
22
+ * @param page - Page number (1-based).
23
+ * @param pageSize - Number of items per page.
24
+ * @returns An object containing the total count of DDI numbers.
25
+ * @throws {@link RainbowError} when the request fails.
26
+ */
27
+ getGlobalDdiNumbers: (page: number, pageSize: number) => Promise<{
28
+ total: number;
29
+ }>;
30
+ }
31
+ /**
32
+ * @internal
33
+ */
34
+ export declare class SDKAdminRvcpServiceRB implements SDKAdminRvcpService {
35
+ private readonly authService;
36
+ private readonly loggerService;
37
+ private readonly errorHelperService;
38
+ constructor(authService: AuthService, loggerService: LoggerService, errorHelperService: ErrorHelperService);
39
+ getGlobalDdiNumbers(page: number, pageSize: number): Promise<{
40
+ total: number;
41
+ }>;
42
+ }
43
+ //# sourceMappingURL=admin-rvcp.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-rvcp.service.d.ts","sourceRoot":"","sources":["../../../src/services/admin/admin-rvcp.service.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAC;AACnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AACvF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6DAA6D,CAAC;AAEtG;;;;;;;;;;GAUG;AACH,MAAM,WAAW,mBAAmB;IAEhC;;;;;;;OAOG;IACH,mBAAmB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;KAAE,CAAC,CAAC;CACxF;AAED;;GAEG;AACH,qBAAa,qBAAsB,YAAW,mBAAmB;IAEzD,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;gBAFlB,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,aAAa,EAC5B,kBAAkB,EAAE,kBAAkB;IAG9C,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;KAAE,CAAC;CAsBhG"}
@@ -0,0 +1,64 @@
1
+ /**
2
+ * @module Admin
3
+ */
4
+ import { Site } from "../..";
5
+ import type { AuthService, LoggerService, ErrorHelperService } from "../..";
6
+ /**
7
+ * A paginated list of items.
8
+ */
9
+ export interface PaginatedList<T> {
10
+ items: T[];
11
+ total: number;
12
+ limit?: number;
13
+ }
14
+ /**
15
+ * Options for filtering the site list.
16
+ */
17
+ export interface SiteListOptions {
18
+ /** Filter sites by name pattern. */
19
+ searchPattern?: string;
20
+ /** Filter sites visible by BP. */
21
+ isVisibleByBP?: boolean;
22
+ /** Filter sites by company identifier. */
23
+ companyId?: string;
24
+ /** Include the number of users per site. */
25
+ nbUsers?: boolean;
26
+ /** Include the number of systems per site. */
27
+ nbSystems?: boolean;
28
+ /** Include the number of Cloud PBX DDIs per site. */
29
+ nbCloudPbxDdis?: boolean;
30
+ }
31
+ /**
32
+ * Admin sub-service for site management.
33
+ *
34
+ * Accessible via `adminService.site`.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const result = await adminService.site.getAll();
39
+ * const result = await adminService.site.getAll(1, 20, { companyId, nbUsers: true });
40
+ * ```
41
+ */
42
+ export interface SDKAdminSiteService {
43
+ /**
44
+ * Fetches a paginated list of sites.
45
+ *
46
+ * @param page - Page number (1-based). Defaults to `1`.
47
+ * @param pageSize - Number of items per page. Defaults to `20`.
48
+ * @param options - Optional filters.
49
+ * @returns A {@link PaginatedList} of {@link Site} objects.
50
+ * @throws {@link RainbowError} when the request fails.
51
+ */
52
+ getAll: (page?: number, pageSize?: number, options?: SiteListOptions) => Promise<PaginatedList<Site>>;
53
+ }
54
+ /**
55
+ * @internal
56
+ */
57
+ export declare class SDKAdminSiteServiceRB implements SDKAdminSiteService {
58
+ private readonly authService;
59
+ private readonly loggerService;
60
+ private readonly errorHelperService;
61
+ constructor(authService: AuthService, loggerService: LoggerService, errorHelperService: ErrorHelperService);
62
+ getAll(page?: number, pageSize?: number, options?: SiteListOptions): Promise<PaginatedList<Site>>;
63
+ }
64
+ //# sourceMappingURL=admin-site.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-site.service.d.ts","sourceRoot":"","sources":["../../../src/services/admin/admin-site.service.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,KAAK,EAAY,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAErG;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC;IAC5B,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,oCAAoC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kCAAkC;IAClC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qDAAqD;IACrD,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,mBAAmB;IAEhC;;;;;;;;OAQG;IACH,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,KAAK,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;CACzG;AAED;;GAEG;AACH,qBAAa,qBAAsB,YAAW,mBAAmB;IAEzD,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;gBAFlB,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,aAAa,EAC5B,kBAAkB,EAAE,kBAAkB;IAG9C,MAAM,CAAC,IAAI,GAAE,MAAU,EAAE,QAAQ,GAAE,MAAW,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;CAqCxH"}
@@ -0,0 +1,135 @@
1
+ /**
2
+ * @module Admin
3
+ */
4
+ import type { User } from "../../models/user.model";
5
+ import type { AuthService } from "../../services/core/auth.service";
6
+ import type { ContactService } from "../../services/core/contact.service";
7
+ import type { LoggerService } from "../../services/core/logger.service";
8
+ import type { ErrorHelperService } from "../../services/utilities/errorHelper.service";
9
+ import type { UserSearchResult } from "../../services/admin/admin-user.service";
10
+ /**
11
+ * A company subscription as returned by the Rainbow API.
12
+ */
13
+ export interface SubscriptionData {
14
+ /** The unique identifier of the subscription. */
15
+ readonly id: string;
16
+ /** The current status of the subscription (e.g. `"active"`, `"terminated"`, `"terminating"`). */
17
+ readonly status: string;
18
+ /** Whether this is the default (Essential) subscription. */
19
+ readonly isDefault: boolean;
20
+ /** Business model type (e.g. `"nb_users"`, `"usage"`, `"nb_services"`, `"flat_fee"`). */
21
+ readonly businessModel: string;
22
+ /** Group classification (e.g. `"Essential"`, `"Business"`, `"Enterprise"`, `"Room"`). */
23
+ readonly groupName: string;
24
+ /** Display name of the subscription offer. */
25
+ readonly offerName: string;
26
+ [key: string]: unknown;
27
+ }
28
+ /**
29
+ * Admin sub-service for company subscription management.
30
+ *
31
+ * Accessible via `adminService.subscription`.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const subscriptions = await adminService.subscription.getAll(companyId);
36
+ * ```
37
+ */
38
+ export interface SDKAdminSubscriptionService {
39
+ /**
40
+ * Fetches the active subscriptions for a company.
41
+ *
42
+ * Results are cached per `companyId` and reused on subsequent calls.
43
+ * Call {@link invalidateCache} to force a refresh.
44
+ *
45
+ * Terminated and terminating subscriptions are excluded from the result.
46
+ *
47
+ * @param companyId - The unique identifier of the company.
48
+ * @returns An array of {@link SubscriptionData} objects.
49
+ * @throws {@link RainbowError} when the request fails.
50
+ */
51
+ getAll: (companyId: string) => Promise<SubscriptionData[]>;
52
+ /** Clears the subscriptions cache for all companies. */
53
+ invalidateCache: () => void;
54
+ /** Clears the subscriptions cache and releases resources. */
55
+ stop: () => void;
56
+ /**
57
+ * Checks whether a company has at least one subscription to a sold or trial (demo) offer.
58
+ *
59
+ * @param companyId - The unique identifier of the company.
60
+ * @returns `true` if the company has at least one sold or trial subscription.
61
+ */
62
+ hasAtLeastOneSubscriptionToSoldOrTrialOffer: (companyId: string) => Promise<boolean>;
63
+ /**
64
+ * Checks whether a company has at least one subscription to a paid offer (purchasable by
65
+ * credit card). Stricter than {@link hasAtLeastOneSubscriptionToSoldOrTrialOffer}: trial
66
+ * (demo) subscriptions are excluded.
67
+ *
68
+ * @param companyId - The unique identifier of the company.
69
+ * @returns `true` if the company has at least one credit-card-sellable subscription.
70
+ */
71
+ hasAtLeastOnePaidSubscription: (companyId: string) => Promise<boolean>;
72
+ /**
73
+ * Checks whether a company has a webinar offer subscription (free or paid).
74
+ *
75
+ * @param companyId - The unique identifier of the company.
76
+ * @returns `true` if the company has at least one webinar subscription.
77
+ */
78
+ hasWebinarSubscription: (companyId: string) => Promise<boolean>;
79
+ /**
80
+ * Checks whether a company has a collaboration offer subscription (free or paid).
81
+ *
82
+ * @param companyId - The unique identifier of the company.
83
+ * @returns `true` if the company has at least one collaboration subscription.
84
+ */
85
+ hasCollaborationSubscription: (companyId: string) => Promise<boolean>;
86
+ /**
87
+ * Fetches the users assigned to a subscription, with pagination.
88
+ *
89
+ * @param companyId - The unique identifier of the company.
90
+ * @param subscriptionId - The unique identifier of the subscription.
91
+ * @param page - Page number (1-based).
92
+ * @param pageSize - Number of users per page.
93
+ * @returns A paginated result with users, total, limit and offset.
94
+ * @throws {@link RainbowError} when the request fails.
95
+ */
96
+ getUsers: (companyId: string, subscriptionId: string, page: number, pageSize: number) => Promise<UserSearchResult>;
97
+ /**
98
+ * Fetches all users assigned to a subscription, handling pagination transparently.
99
+ *
100
+ * @param companyId - The unique identifier of the company.
101
+ * @param subscriptionId - The unique identifier of the subscription.
102
+ * @returns All {@link User} instances assigned to the subscription.
103
+ * @throws {@link RainbowError} when the request fails.
104
+ */
105
+ fetchAllUsers: (companyId: string, subscriptionId: string) => Promise<User[]>;
106
+ }
107
+ /**
108
+ * @internal
109
+ */
110
+ export declare class SDKAdminSubscriptionServiceRB implements SDKAdminSubscriptionService {
111
+ private readonly authService;
112
+ private readonly loggerService;
113
+ private readonly errorHelperService;
114
+ private readonly contactService;
115
+ private readonly cache;
116
+ constructor(authService: AuthService, loggerService: LoggerService, errorHelperService: ErrorHelperService, contactService: ContactService);
117
+ invalidateCache(): void;
118
+ stop(): void;
119
+ getUsers(companyId: string, subscriptionId: string, page: number, pageSize: number): Promise<UserSearchResult>;
120
+ fetchAllUsers(companyId: string, subscriptionId: string): Promise<User[]>;
121
+ hasAtLeastOneSubscriptionToSoldOrTrialOffer(companyId: string): Promise<boolean>;
122
+ hasAtLeastOnePaidSubscription(companyId: string): Promise<boolean>;
123
+ /** True if the company has a webinar offer subscription (free or paid). */
124
+ hasWebinarSubscription(companyId: string): Promise<boolean>;
125
+ /** True if the company has a collaboration offer subscription (free or paid). */
126
+ hasCollaborationSubscription(companyId: string): Promise<boolean>;
127
+ /**
128
+ * Classifies an offer by string-matching `groupName`/`offerName` — the same convention
129
+ * used across admin-ng (subscriptionList, subscriptionDetail, invoices) since the API
130
+ * exposes no dedicated offer-category field.
131
+ */
132
+ private hasSubscriptionMatching;
133
+ getAll(companyId: string): Promise<SubscriptionData[]>;
134
+ }
135
+ //# sourceMappingURL=admin-subscription.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-subscription.service.d.ts","sourceRoot":"","sources":["../../../src/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,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAShF,6BAA6B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAS/E,2EAA2E;IAC9D,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIxE,iFAAiF;IACpE,4BAA4B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI9E;;;;OAIG;YACW,uBAAuB;IAYxB,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;CAoBtE"}
@@ -0,0 +1,79 @@
1
+ /**
2
+ * @module Admin
3
+ */
4
+ import type { AuthService } from "../../services/core/auth.service";
5
+ import type { LoggerService } from "../../services/core/logger.service";
6
+ import type { ErrorHelperService } from "../../services/utilities/errorHelper.service";
7
+ /**
8
+ * Statistics for a single tag — how many entities carry it.
9
+ */
10
+ export interface TagStats {
11
+ /** Tag name. */
12
+ tag: string;
13
+ /** Number of users this tag is assigned to. */
14
+ count: number;
15
+ }
16
+ /**
17
+ * Admin sub-service for user tag management within a company.
18
+ *
19
+ * Accessible via `adminService.tag`.
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const tags = await adminService.tag.getAll(companyId);
24
+ * const stats = await adminService.tag.getStats(companyId);
25
+ * await adminService.tag.rename('vip', 'priority', companyId);
26
+ * await adminService.tag.remove('priority', companyId);
27
+ * ```
28
+ */
29
+ export interface SDKAdminTagService {
30
+ /**
31
+ * Fetches the list of tags assigned to users in a company.
32
+ *
33
+ * @param companyId - The unique identifier of the company.
34
+ * @returns An array of tag name strings.
35
+ * @throws {@link RainbowError} when the request fails.
36
+ */
37
+ getAll: (companyId: string) => Promise<string[]>;
38
+ /**
39
+ * Fetches usage statistics for all tags in a company.
40
+ *
41
+ * Each entry reports a tag name and the number of users it is assigned to.
42
+ *
43
+ * @param companyId - The unique identifier of the company.
44
+ * @returns An array of {@link TagStats} objects.
45
+ * @throws {@link RainbowError} when the request fails.
46
+ */
47
+ getStats: (companyId: string) => Promise<TagStats[]>;
48
+ /**
49
+ * Renames a tag across all users in a company.
50
+ *
51
+ * @param tag - The current tag name to rename.
52
+ * @param newName - The new tag name.
53
+ * @param companyId - The unique identifier of the company.
54
+ * @throws {@link RainbowError} when the rename fails.
55
+ */
56
+ rename: (tag: string, newName: string, companyId: string) => Promise<void>;
57
+ /**
58
+ * Removes a tag from all users in a company.
59
+ *
60
+ * @param tag - The tag name to remove.
61
+ * @param companyId - The unique identifier of the company.
62
+ * @throws {@link RainbowError} when the deletion fails.
63
+ */
64
+ remove: (tag: string, companyId: string) => Promise<void>;
65
+ }
66
+ /**
67
+ * @internal
68
+ */
69
+ export declare class SDKAdminTagServiceRB implements SDKAdminTagService {
70
+ private readonly authService;
71
+ private readonly loggerService;
72
+ private readonly errorHelperService;
73
+ constructor(authService: AuthService, loggerService: LoggerService, errorHelperService: ErrorHelperService);
74
+ getAll(companyId: string): Promise<string[]>;
75
+ getStats(companyId: string): Promise<TagStats[]>;
76
+ rename(tag: string, newName: string, companyId: string): Promise<void>;
77
+ remove(tag: string, companyId: string): Promise<void>;
78
+ }
79
+ //# sourceMappingURL=admin-tag.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-tag.service.d.ts","sourceRoot":"","sources":["../../../src/services/admin/admin-tag.service.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAC;AACnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AACvF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6DAA6D,CAAC;AAEtG;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB,gBAAgB;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;GAYG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fileTemplateDTO, AuthService, LoggerService, ErrorHelperService } from "../..";
6
+ /**
7
+ * Admin sub-service for user profile customization template management.
8
+ *
9
+ * Accessible via `adminService.userProfile`.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const templates = await adminService.userProfile.getAll(companyId);
14
+ * const templates = await adminService.userProfile.getAll(companyId, 'full');
15
+ * ```
16
+ */
17
+ export interface SDKAdminUserProfileService {
18
+ /**
19
+ * Fetches the list of customization templates available for a company.
20
+ *
21
+ * @param companyId - The unique identifier of the company.
22
+ * @param format - Optional response detail level (`"small"`, `"medium"`, `"full"`). Defaults to `"medium"`.
23
+ * @returns An array of {@link UserProfileTemplate} objects.
24
+ * @throws {@link RainbowError} when the request fails.
25
+ */
26
+ getAll: (companyId: string, format?: string) => Promise<UserProfileTemplate[]>;
27
+ /**
28
+ * Creates a customization template (profile) owned by a company.
29
+ *
30
+ * @param companyId - The unique identifier of the company that owns the template.
31
+ * @param name - The name of the template to create.
32
+ * @param permissions - The set of feature permissions to set at creation (defaults apply otherwise).
33
+ * @returns The created {@link UserProfileTemplate}.
34
+ * @throws {@link RainbowError} when the request fails.
35
+ */
36
+ create: (companyId: string, name: string, permissions?: Partial<IUserProfileFeatureCustomizationDTO>) => Promise<UserProfileTemplate>;
37
+ /**
38
+ * Updates an existing customization template (profile).
39
+ *
40
+ * @param templateId - The unique identifier of the template to update.
41
+ * @param attributes - The set of attributes / feature permissions to update.
42
+ * @returns The updated {@link UserProfileTemplate}.
43
+ * @throws {@link RainbowError} when the request fails.
44
+ */
45
+ update: (templateId: string, attributes: Partial<IUserProfileTemplateDTO>) => Promise<UserProfileTemplate>;
46
+ /**
47
+ * Deletes a customization template (profile).
48
+ *
49
+ * @param templateId - The unique identifier of the template to delete.
50
+ * @throws {@link RainbowError} when the request fails.
51
+ */
52
+ delete: (templateId: string) => Promise<void>;
53
+ /**
54
+ * Applies a customization template to a company, making it the company's default profile.
55
+ *
56
+ * @param companyId - The unique identifier of the company.
57
+ * @param templateName - The name of the template to apply.
58
+ * @throws {@link RainbowError} when the request fails.
59
+ */
60
+ applyToCompany: (companyId: string, templateName: string) => Promise<void>;
61
+ }
62
+ /**
63
+ * @internal
64
+ */
65
+ export declare class SDKAdminUserProfileServiceRB implements SDKAdminUserProfileService {
66
+ private readonly authService;
67
+ private readonly loggerService;
68
+ private readonly errorHelperService;
69
+ constructor(authService: AuthService, loggerService: LoggerService, errorHelperService: ErrorHelperService);
70
+ getAll(companyId: string, format?: string): Promise<UserProfileTemplate[]>;
71
+ create(companyId: string, name: string, permissions?: Partial<IUserProfileFeatureCustomizationDTO>): Promise<UserProfileTemplate>;
72
+ update(templateId: string, attributes: Partial<IUserProfileTemplateDTO>): Promise<UserProfileTemplate>;
73
+ delete(templateId: string): Promise<void>;
74
+ applyToCompany(companyId: string, templateName: string): Promise<void>;
75
+ }
76
+ //# sourceMappingURL=admin-user-profile.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-user-profile.service.d.ts","sourceRoot":"","sources":["../../../src/services/admin/admin-user-profile.service.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,mCAAmC,EAAE,uBAAuB,EAAE,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAEzJ;;;;;;;;;;GAUG;AACH,MAAM,WAAW,0BAA0B;IAEvC;;;;;;;OAOG;IACH,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAC;IAE/E;;;;;;;;OAQG;IACH,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,OAAO,CAAC,mCAAmC,CAAC,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEtI;;;;;;;OAOG;I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