@oneuptime/common 16.0.0 → 17.0.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 (572) hide show
  1. package/Models/AnalyticsModels/RumProductAnalyticsEvent.js +15 -6
  2. package/Models/AnalyticsModels/RumProductAnalyticsSession.js +27 -10
  3. package/Models/AnalyticsModels/RumProductAnalyticsUser.js +16 -4
  4. package/Models/AnalyticsModels/RumSession.js +12 -0
  5. package/Models/DatabaseModels/AlertSeverity.js +12 -3
  6. package/Models/DatabaseModels/DataAsset.d.mts +1 -0
  7. package/Models/DatabaseModels/DataAsset.d.ts +1 -0
  8. package/Models/DatabaseModels/DataAsset.js +23 -0
  9. package/Models/DatabaseModels/DataBiConnection.d.mts +2 -1
  10. package/Models/DatabaseModels/DataBiConnection.d.ts +2 -1
  11. package/Models/DatabaseModels/DataBiConnection.js +15 -0
  12. package/Models/DatabaseModels/DataCheck.d.mts +3 -0
  13. package/Models/DatabaseModels/DataCheck.d.ts +3 -0
  14. package/Models/DatabaseModels/DataCheck.js +49 -0
  15. package/Models/DatabaseModels/DataDashboard.d.mts +1 -0
  16. package/Models/DatabaseModels/DataDashboard.d.ts +1 -0
  17. package/Models/DatabaseModels/DataDashboard.js +15 -0
  18. package/Models/DatabaseModels/DataPipeline.d.mts +1 -0
  19. package/Models/DatabaseModels/DataPipeline.d.ts +1 -0
  20. package/Models/DatabaseModels/DataPipeline.js +25 -0
  21. package/Models/DatabaseModels/DataPipelineOwnerTeam.d.mts +19 -0
  22. package/Models/DatabaseModels/DataPipelineOwnerTeam.d.ts +19 -0
  23. package/Models/DatabaseModels/DataPipelineOwnerTeam.js +477 -0
  24. package/Models/DatabaseModels/DataPipelineOwnerTeam.mjs +2 -0
  25. package/Models/DatabaseModels/DataPipelineOwnerUser.d.mts +18 -0
  26. package/Models/DatabaseModels/DataPipelineOwnerUser.d.ts +18 -0
  27. package/Models/DatabaseModels/DataPipelineOwnerUser.js +476 -0
  28. package/Models/DatabaseModels/DataPipelineOwnerUser.mjs +2 -0
  29. package/Models/DatabaseModels/DataStore.d.mts +1 -0
  30. package/Models/DatabaseModels/DataStore.d.ts +1 -0
  31. package/Models/DatabaseModels/DataStore.js +23 -0
  32. package/Models/DatabaseModels/DataStoreFinding.d.mts +2 -0
  33. package/Models/DatabaseModels/DataStoreFinding.d.ts +2 -0
  34. package/Models/DatabaseModels/DataStoreFinding.js +21 -0
  35. package/Models/DatabaseModels/EmailLog.d.mts +1 -0
  36. package/Models/DatabaseModels/EmailLog.d.ts +1 -0
  37. package/Models/DatabaseModels/EmailLog.js +35 -0
  38. package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
  39. package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
  40. package/Models/DatabaseModels/GlobalConfig.js +128 -0
  41. package/Models/DatabaseModels/GlobalOidc.d.mts +1 -0
  42. package/Models/DatabaseModels/GlobalOidc.d.ts +1 -0
  43. package/Models/DatabaseModels/GlobalOidc.js +29 -0
  44. package/Models/DatabaseModels/IncidentSeverity.js +12 -3
  45. package/Models/DatabaseModels/Index.js +6 -0
  46. package/Models/DatabaseModels/Monitor.js +18 -0
  47. package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
  48. package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
  49. package/Models/DatabaseModels/NetworkDevice.js +49 -0
  50. package/Models/DatabaseModels/NetworkDeviceAutoImportRule.js +2 -2
  51. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRule.js +1 -1
  52. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +6 -0
  53. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +6 -0
  54. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +156 -1
  55. package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayer.js +1 -1
  56. package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayerUser.js +1 -1
  57. package/Models/DatabaseModels/Probe.d.mts +4 -0
  58. package/Models/DatabaseModels/Probe.d.ts +4 -0
  59. package/Models/DatabaseModels/Probe.js +100 -0
  60. package/Models/DatabaseModels/ProductFeedback.d.mts +2 -1
  61. package/Models/DatabaseModels/ProductFeedback.d.ts +2 -1
  62. package/Models/DatabaseModels/ProductFeedback.js +34 -2
  63. package/Models/DatabaseModels/Project.d.mts +4 -1
  64. package/Models/DatabaseModels/Project.d.ts +4 -1
  65. package/Models/DatabaseModels/Project.js +147 -7
  66. package/Models/DatabaseModels/ProjectCallSMSConfig.js +8 -2
  67. package/Models/DatabaseModels/ProjectOidc.d.mts +1 -0
  68. package/Models/DatabaseModels/ProjectOidc.d.ts +1 -0
  69. package/Models/DatabaseModels/ProjectOidc.js +46 -0
  70. package/Models/DatabaseModels/Reseller.js +8 -2
  71. package/Models/DatabaseModels/ResellerPlan.js +12 -3
  72. package/Models/DatabaseModels/RumApplication.d.mts +1 -0
  73. package/Models/DatabaseModels/RumApplication.d.ts +1 -0
  74. package/Models/DatabaseModels/RumApplication.js +58 -0
  75. package/Models/DatabaseModels/RumSessionErasureRequest.d.mts +1 -0
  76. package/Models/DatabaseModels/RumSessionErasureRequest.d.ts +1 -0
  77. package/Models/DatabaseModels/RumSessionErasureRequest.js +40 -0
  78. package/Models/DatabaseModels/SecurityCaseTask.d.mts +1 -0
  79. package/Models/DatabaseModels/SecurityCaseTask.d.ts +1 -0
  80. package/Models/DatabaseModels/SecurityCaseTask.js +27 -0
  81. package/Models/DatabaseModels/ServerEmailLog.d.mts +12 -0
  82. package/Models/DatabaseModels/ServerEmailLog.d.ts +12 -0
  83. package/Models/DatabaseModels/ServerEmailLog.js +206 -0
  84. package/Models/DatabaseModels/ServerEmailLog.mjs +2 -0
  85. package/Models/DatabaseModels/StatusPageGroup.js +1 -1
  86. package/Models/DatabaseModels/StatusPageResource.js +1 -1
  87. package/Models/DatabaseModels/TelemetryException.js +15 -2
  88. package/Models/DatabaseModels/TelemetryIngestionKey.js +10 -0
  89. package/Models/DatabaseModels/User.d.mts +3 -0
  90. package/Models/DatabaseModels/User.d.ts +3 -0
  91. package/Models/DatabaseModels/User.js +66 -0
  92. package/Models/DatabaseModels/UserSession.d.mts +1 -0
  93. package/Models/DatabaseModels/UserSession.d.ts +1 -0
  94. package/Models/DatabaseModels/UserSession.js +32 -0
  95. package/Models/DatabaseModels/WorkspaceLiveMessage.js +21 -15
  96. package/Models/DatabaseModels/WorkspaceNotificationLog.js +17 -9
  97. package/Models/DatabaseModels/WorkspaceNotificationRule.js +8 -2
  98. package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
  99. package/Server/Services/DatabaseService.d.mts +6 -0
  100. package/Server/Services/DatabaseService.d.ts +6 -0
  101. package/Server/Utils/Workspace/WorkspaceBase.d.mts +1 -0
  102. package/Server/Utils/Workspace/WorkspaceBase.d.ts +1 -0
  103. package/Types/AI/AIActionWords.js +1 -0
  104. package/Types/AI/AIChatPageContext.d.mts +1 -0
  105. package/Types/AI/AIChatPageContext.d.ts +1 -0
  106. package/Types/AI/AIChatPageContext.js +6 -0
  107. package/Types/AI/AIRunProducts.d.mts +14 -0
  108. package/Types/AI/AIRunProducts.d.ts +14 -0
  109. package/Types/AI/AIRunProducts.js +40 -0
  110. package/Types/AI/AIRunProducts.mjs +2 -0
  111. package/Types/AI/AskAiRatings.d.mts +31 -0
  112. package/Types/AI/AskAiRatings.d.ts +31 -0
  113. package/Types/AI/AskAiRatings.js +173 -0
  114. package/Types/AI/AskAiRatings.mjs +13 -0
  115. package/Types/Accounts/SignUpInvitation.d.mts +12 -0
  116. package/Types/Accounts/SignUpInvitation.d.ts +12 -0
  117. package/Types/Accounts/SignUpInvitation.js +84 -0
  118. package/Types/Accounts/SignUpInvitation.mjs +5 -0
  119. package/Types/Analytics/ActivationMilestone.d.mts +2 -1
  120. package/Types/Analytics/ActivationMilestone.d.ts +2 -1
  121. package/Types/Analytics/ActivationMilestone.js +11 -0
  122. package/Types/Analytics/ProductEvent.d.mts +11 -0
  123. package/Types/Analytics/ProductEvent.d.ts +11 -0
  124. package/Types/Analytics/ProductEvent.js +166 -13
  125. package/Types/Analytics/ProductEvent.mjs +3 -0
  126. package/Types/Backup/BackupScriptRun.d.mts +17 -0
  127. package/Types/Backup/BackupScriptRun.d.ts +17 -0
  128. package/Types/Backup/BackupScriptRun.js +96 -0
  129. package/Types/Backup/BackupScriptRun.mjs +6 -0
  130. package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.mts +2 -0
  131. package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.ts +2 -0
  132. package/Types/BaseDatabase/ReadAudience.d.mts +9 -0
  133. package/Types/BaseDatabase/ReadAudience.d.ts +9 -0
  134. package/Types/BaseDatabase/ReadAudience.js +2 -0
  135. package/Types/BaseDatabase/ReadAudience.mjs +1 -0
  136. package/Types/Cloud/CloudKeyMetricGroup.d.mts +17 -0
  137. package/Types/Cloud/CloudKeyMetricGroup.d.ts +17 -0
  138. package/Types/Cloud/CloudKeyMetricGroup.js +84 -0
  139. package/Types/Cloud/CloudKeyMetricGroup.mjs +5 -0
  140. package/Types/Cloud/CloudKeyMetrics.d.mts +28 -1
  141. package/Types/Cloud/CloudKeyMetrics.d.ts +28 -1
  142. package/Types/Cloud/CloudKeyMetrics.js +1209 -206
  143. package/Types/Cloud/CloudKeyMetrics.mjs +6 -0
  144. package/Types/Cloud/CloudResourceCatalog.js +43 -12
  145. package/Types/CloudConnection/CloudConnectionSetupCommands.d.mts +1 -0
  146. package/Types/CloudConnection/CloudConnectionSetupCommands.d.ts +1 -0
  147. package/Types/CloudConnection/CloudConnectionSetupCommands.js +49 -6
  148. package/Types/CloudConnection/CloudConnectionSetupCommands.mjs +1 -0
  149. package/Types/CloudConnection/CloudStreamTemplate.js +6 -2
  150. package/Types/CreateFormAddress.d.mts +3 -0
  151. package/Types/CreateFormAddress.d.ts +3 -0
  152. package/Types/CreateFormAddress.js +17 -0
  153. package/Types/CreateFormAddress.mjs +4 -0
  154. package/Types/DataObservability/DataAssetFreshness.d.mts +5 -0
  155. package/Types/DataObservability/DataAssetFreshness.d.ts +5 -0
  156. package/Types/DataObservability/DataAssetFreshness.js +28 -5
  157. package/Types/DataObservability/DataAssetFreshness.mjs +1 -0
  158. package/Types/DataObservability/DataBiLineage.d.mts +69 -0
  159. package/Types/DataObservability/DataBiLineage.d.ts +69 -0
  160. package/Types/DataObservability/DataBiLineage.js +198 -0
  161. package/Types/DataObservability/DataBiLineage.mjs +13 -0
  162. package/Types/DataObservability/DataLineageColumnTrail.d.mts +2 -1
  163. package/Types/DataObservability/DataLineageColumnTrail.d.ts +2 -1
  164. package/Types/DataObservability/DataLineageColumnTrail.js +41 -3
  165. package/Types/DataObservability/DataLineageColumnTrail.mjs +1 -0
  166. package/Types/DataObservability/DataLineageMap.d.mts +67 -1
  167. package/Types/DataObservability/DataLineageMap.d.ts +67 -1
  168. package/Types/DataObservability/DataLineageMap.js +335 -3
  169. package/Types/DataObservability/DataLineageMap.mjs +14 -0
  170. package/Types/DataObservability/DataObservabilityApiTypes.d.mts +42 -2
  171. package/Types/DataObservability/DataObservabilityApiTypes.d.ts +42 -2
  172. package/Types/DataObservability/DataObservabilityApiTypes.js +21 -1
  173. package/Types/DataObservability/DataObservabilityApiTypes.mjs +4 -0
  174. package/Types/DataObservability/DataObservabilityAttention.d.mts +5 -0
  175. package/Types/DataObservability/DataObservabilityAttention.d.ts +5 -0
  176. package/Types/DataObservability/DataObservabilityAttention.js +48 -1
  177. package/Types/DataObservability/DataObservabilityAttention.mjs +5 -0
  178. package/Types/DataObservability/DataPipelineSchedule.d.mts +4 -0
  179. package/Types/DataObservability/DataPipelineSchedule.d.ts +4 -0
  180. package/Types/DataObservability/DataPipelineSchedule.js +26 -6
  181. package/Types/DataObservability/DataPipelineSchedule.mjs +1 -0
  182. package/Types/DataObservability/DataTableLineage.d.mts +6 -0
  183. package/Types/DataObservability/DataTableLineage.d.ts +6 -0
  184. package/Types/DataSecurity/DataSecurityApiTypes.d.mts +24 -0
  185. package/Types/DataSecurity/DataSecurityApiTypes.d.ts +24 -0
  186. package/Types/DataSecurity/DataSecurityApiTypes.js +21 -1
  187. package/Types/DataSecurity/DataSecurityApiTypes.mjs +2 -0
  188. package/Types/DataSecurity/FindingSampleRecord.d.mts +16 -0
  189. package/Types/DataSecurity/FindingSampleRecord.d.ts +16 -0
  190. package/Types/DataSecurity/FindingSampleRecord.js +112 -0
  191. package/Types/DataSecurity/FindingSampleRecord.mjs +6 -0
  192. package/Types/Database/AccessControl/PermissionScopeNarrowing.js +6 -0
  193. package/Types/Database/MoveInList.d.mts +41 -0
  194. package/Types/Database/MoveInList.d.ts +41 -0
  195. package/Types/Database/MoveInList.js +177 -0
  196. package/Types/Database/MoveInList.mjs +4 -0
  197. package/Types/Email/ServerEmailLog.d.mts +41 -0
  198. package/Types/Email/ServerEmailLog.d.ts +41 -0
  199. package/Types/Email/ServerEmailLog.js +136 -0
  200. package/Types/Email/ServerEmailLog.mjs +11 -0
  201. package/Types/Exception/ProductSwitchedOffException.d.mts +12 -0
  202. package/Types/Exception/ProductSwitchedOffException.d.ts +12 -0
  203. package/Types/Exception/ProductSwitchedOffException.js +38 -0
  204. package/Types/Exception/ProductSwitchedOffException.mjs +2 -0
  205. package/Types/Exception/UnexplainedError.d.mts +7 -0
  206. package/Types/Exception/UnexplainedError.d.ts +7 -0
  207. package/Types/Exception/UnexplainedError.js +36 -1
  208. package/Types/Exception/UnexplainedError.mjs +2 -0
  209. package/Types/InstallationHealth/InstallationHealth.d.mts +39 -0
  210. package/Types/InstallationHealth/InstallationHealth.d.ts +39 -0
  211. package/Types/InstallationHealth/InstallationHealth.js +163 -0
  212. package/Types/Kubernetes/KubernetesHealth.d.mts +16 -0
  213. package/Types/Kubernetes/KubernetesHealth.d.ts +16 -0
  214. package/Types/Kubernetes/KubernetesHealth.js +128 -6
  215. package/Types/Kubernetes/KubernetesHealth.mjs +2 -0
  216. package/Types/Monitor/CloudAppAlertTemplates.d.mts +3 -13
  217. package/Types/Monitor/CloudAppAlertTemplates.d.ts +3 -13
  218. package/Types/Monitor/CloudAppAlertTemplates.js +13 -199
  219. package/Types/Monitor/CriteriaFilter.d.mts +2 -1
  220. package/Types/Monitor/CriteriaFilter.d.ts +2 -1
  221. package/Types/Monitor/CriteriaFilter.js +9 -1
  222. package/Types/Monitor/CriteriaFilterTerms.js +1 -0
  223. package/Types/Monitor/MessageQueueAlertTemplates.d.mts +6 -0
  224. package/Types/Monitor/MessageQueueAlertTemplates.d.ts +6 -0
  225. package/Types/Monitor/MessageQueueAlertTemplates.js +32 -0
  226. package/Types/Monitor/MessageQueueAlertTemplates.mjs +2 -0
  227. package/Types/Monitor/MonitorCriteriaInstance.d.mts +2 -0
  228. package/Types/Monitor/MonitorCriteriaInstance.d.ts +2 -0
  229. package/Types/Monitor/MonitorCriteriaInstance.js +52 -0
  230. package/Types/Monitor/MonitorMetricType.d.mts +2 -1
  231. package/Types/Monitor/MonitorMetricType.d.ts +2 -1
  232. package/Types/Monitor/MonitorMetricType.js +1 -0
  233. package/Types/Monitor/MonitorStepLimit.d.mts +8 -0
  234. package/Types/Monitor/MonitorStepLimit.d.ts +8 -0
  235. package/Types/Monitor/MonitorStepLimit.js +62 -0
  236. package/Types/Monitor/MonitorStepLimit.mjs +3 -0
  237. package/Types/Monitor/MonitorSteps.js +5 -0
  238. package/Types/Monitor/MonitorType.js +2 -1
  239. package/Types/Monitor/ProbeStatusMonitor/ProbeStatusMonitorResponse.d.mts +5 -0
  240. package/Types/Monitor/ProbeStatusMonitor/ProbeStatusMonitorResponse.d.ts +5 -0
  241. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.mts +1 -1
  242. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.ts +1 -1
  243. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.js +111 -1
  244. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.mts +7 -1
  245. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.ts +7 -1
  246. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.js +15 -0
  247. package/Types/Monitor/RequestHealthAlertTemplates.d.mts +66 -0
  248. package/Types/Monitor/RequestHealthAlertTemplates.d.ts +66 -0
  249. package/Types/Monitor/RequestHealthAlertTemplates.js +227 -0
  250. package/Types/Monitor/RequestHealthAlertTemplates.mjs +4 -0
  251. package/Types/Monitor/ServerlessAlertTemplates.d.mts +23 -0
  252. package/Types/Monitor/ServerlessAlertTemplates.d.ts +23 -0
  253. package/Types/Monitor/ServerlessAlertTemplates.js +111 -0
  254. package/Types/Monitor/ServerlessAlertTemplates.mjs +7 -0
  255. package/Types/Monitor/ServiceAlertTemplates.d.mts +3 -0
  256. package/Types/Monitor/ServiceAlertTemplates.d.ts +3 -0
  257. package/Types/Monitor/ServiceAlertTemplates.js +61 -0
  258. package/Types/Monitor/ServiceAlertTemplates.mjs +2 -0
  259. package/Types/Monitor/TelemetryRulePreview.js +18 -6
  260. package/Types/Monitor/WhoIsTold.d.mts +71 -0
  261. package/Types/Monitor/WhoIsTold.d.ts +71 -0
  262. package/Types/Monitor/WhoIsTold.js +348 -121
  263. package/Types/Monitor/WhoIsTold.mjs +7 -0
  264. package/Types/NetworkAutomation/RuleRunResult.js +9 -5
  265. package/Types/NetworkDevice/DiscoveredDevice.d.mts +40 -0
  266. package/Types/NetworkDevice/DiscoveredDevice.d.ts +40 -0
  267. package/Types/NetworkDevice/DiscoveredDevice.js +205 -1
  268. package/Types/NetworkDevice/DiscoveredDevice.mjs +9 -0
  269. package/Types/NetworkDevice/DiscoveryImport.js +8 -3
  270. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.mts +26 -3
  271. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.ts +26 -3
  272. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.js +75 -3
  273. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.mjs +2 -0
  274. package/Types/Notification/WhoWasTold.d.mts +190 -0
  275. package/Types/Notification/WhoWasTold.d.ts +190 -0
  276. package/Types/Notification/WhoWasTold.js +662 -0
  277. package/Types/Notification/WhoWasTold.mjs +16 -0
  278. package/Types/NotificationRule/PagingLadderDefault.d.mts +75 -0
  279. package/Types/NotificationRule/PagingLadderDefault.d.ts +75 -0
  280. package/Types/NotificationRule/PagingLadderDefault.js +529 -0
  281. package/Types/NotificationRule/PagingLadderDefault.mjs +24 -0
  282. package/Types/OnCallDutyPolicy/EveryNewEventRules.d.mts +7 -0
  283. package/Types/OnCallDutyPolicy/EveryNewEventRules.d.ts +7 -0
  284. package/Types/OnCallDutyPolicy/EveryNewEventRules.js +53 -2
  285. package/Types/OnCallDutyPolicy/EveryNewEventRules.mjs +3 -0
  286. package/Types/OnCallDutyPolicy/NotificationSetupToFinish.d.mts +6 -0
  287. package/Types/OnCallDutyPolicy/NotificationSetupToFinish.d.ts +6 -0
  288. package/Types/OnCallDutyPolicy/NotificationSetupToFinish.js +27 -0
  289. package/Types/OnCallDutyPolicy/NotificationSetupToFinish.mjs +3 -0
  290. package/Types/OnCallDutyPolicy/OnCallFireDrill.d.mts +83 -0
  291. package/Types/OnCallDutyPolicy/OnCallFireDrill.d.ts +83 -0
  292. package/Types/OnCallDutyPolicy/OnCallFireDrill.js +105 -0
  293. package/Types/OnCallDutyPolicy/OnCallFireDrill.mjs +9 -0
  294. package/Types/OnCallDutyPolicy/OnCallPagePassOn.js +12 -4
  295. package/Types/OnCallDutyPolicy/OnCallRunLevel.d.mts +12 -0
  296. package/Types/OnCallDutyPolicy/OnCallRunLevel.d.ts +12 -0
  297. package/Types/OnCallDutyPolicy/OnCallRunLevel.js +69 -8
  298. package/Types/OnCallDutyPolicy/OnCallRunLevel.mjs +3 -0
  299. package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +4 -0
  300. package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +4 -0
  301. package/Types/OnCallDutyPolicy/OnCallTestPage.js +20 -7
  302. package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +2 -0
  303. package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.mts +2 -0
  304. package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.ts +2 -0
  305. package/Types/OnCallDutyPolicy/ScheduleLayersSave.js +14 -1
  306. package/Types/OnCallDutyPolicy/ScheduleLayersSave.mjs +2 -0
  307. package/Types/OnCallDutyPolicy/UserOverrideEdit.d.mts +7 -0
  308. package/Types/OnCallDutyPolicy/UserOverrideEdit.d.ts +7 -0
  309. package/Types/OnCallDutyPolicy/UserOverrideEdit.js +63 -1
  310. package/Types/OnCallDutyPolicy/UserOverrideEdit.mjs +4 -0
  311. package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.mts +21 -1
  312. package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.ts +21 -1
  313. package/Types/OnCallDutyPolicy/UserOverrideOverlap.js +46 -2
  314. package/Types/Permission.d.mts +8 -0
  315. package/Types/Permission.d.ts +8 -0
  316. package/Types/Permission.js +84 -0
  317. package/Types/Probe/ProbeBehind.d.mts +48 -0
  318. package/Types/Probe/ProbeBehind.d.ts +48 -0
  319. package/Types/Probe/ProbeBehind.js +196 -0
  320. package/Types/Probe/ProbeBehind.mjs +6 -0
  321. package/Types/Product/ProductRecordTables.d.mts +8 -0
  322. package/Types/Product/ProductRecordTables.d.ts +8 -0
  323. package/Types/Product/ProductRecordTables.js +847 -0
  324. package/Types/Product/ProductRecordTables.mjs +5 -0
  325. package/Types/Product/ProductUsage.d.mts +2 -0
  326. package/Types/Product/ProductUsage.d.ts +2 -0
  327. package/Types/Product/ProductUsage.js +41 -6
  328. package/Types/Product/ProductUsage.mjs +2 -0
  329. package/Types/Product/ServerProductOffReason.d.mts +4 -0
  330. package/Types/Product/ServerProductOffReason.d.ts +4 -0
  331. package/Types/Product/ServerProductOffReason.js +19 -0
  332. package/Types/Product/ServerProductOffReason.mjs +2 -0
  333. package/Types/Product/ServerProducts.d.mts +2 -4
  334. package/Types/Product/ServerProducts.d.ts +2 -4
  335. package/Types/Product/ServerProducts.js +19 -17
  336. package/Types/ProductFeedback/ProductFeedback.d.mts +45 -1
  337. package/Types/ProductFeedback/ProductFeedback.d.ts +45 -1
  338. package/Types/ProductFeedback/ProductFeedback.js +185 -5
  339. package/Types/ProductFeedback/ProductFeedback.mjs +11 -0
  340. package/Types/PushNotification/PushNotificationCategory.d.mts +1 -0
  341. package/Types/PushNotification/PushNotificationCategory.d.ts +1 -0
  342. package/Types/PushNotification/PushNotificationCategory.js +17 -6
  343. package/Types/PushNotification/PushNotificationCategory.mjs +1 -0
  344. package/Types/Rules/RuleCriteriaFieldRegistry.d.mts +18 -0
  345. package/Types/Rules/RuleCriteriaFieldRegistry.d.ts +18 -0
  346. package/Types/Rules/RuleCriteriaFieldRegistry.js +34 -1
  347. package/Types/Rules/RuleCriteriaFieldRegistry.mjs +4 -0
  348. package/Types/Rum/ProductAnalytics.d.mts +9 -0
  349. package/Types/Rum/ProductAnalytics.d.ts +9 -0
  350. package/Types/Rum/ProductAnalytics.js +56 -8
  351. package/Types/Rum/ProductAnalytics.mjs +6 -0
  352. package/Types/Rum/ProductAnalyticsEvents.js +2 -1
  353. package/Types/Rum/SessionReplay.d.mts +3 -0
  354. package/Types/Rum/SessionReplay.d.ts +3 -0
  355. package/Types/Rum/SessionReplay.js +35 -1
  356. package/Types/Rum/SessionReplay.mjs +2 -0
  357. package/Types/Runbook/RunbookTriggerType.d.mts +1 -0
  358. package/Types/Runbook/RunbookTriggerType.d.ts +1 -0
  359. package/Types/Runbook/RunbookTriggerType.js +19 -1
  360. package/Types/Runbook/RunbookTriggerType.mjs +1 -0
  361. package/Types/SSO/IdentityProviderSignOut.d.mts +24 -0
  362. package/Types/SSO/IdentityProviderSignOut.d.ts +24 -0
  363. package/Types/SSO/IdentityProviderSignOut.js +124 -0
  364. package/Types/SSO/IdentityProviderSignOut.mjs +10 -0
  365. package/Types/SecurityCase/SecurityCaseEventEvidence.d.mts +4 -0
  366. package/Types/SecurityCase/SecurityCaseEventEvidence.d.ts +4 -0
  367. package/Types/SecurityCase/SecurityCaseEventEvidence.js +12 -0
  368. package/Types/SecurityCase/SecurityCaseMatches.d.mts +78 -0
  369. package/Types/SecurityCase/SecurityCaseMatches.d.ts +78 -0
  370. package/Types/SecurityCase/SecurityCaseMatches.js +252 -0
  371. package/Types/SecurityCase/SecurityCaseMatches.mjs +17 -0
  372. package/Types/ServerSending/ProjectCanSend.d.mts +10 -0
  373. package/Types/ServerSending/ProjectCanSend.d.ts +10 -0
  374. package/Types/ServerSending/ProjectCanSend.js +49 -0
  375. package/Types/ServerSending/ProjectCanSend.mjs +4 -0
  376. package/Types/ServerSending/ServerAlerts.d.mts +78 -0
  377. package/Types/ServerSending/ServerAlerts.d.ts +78 -0
  378. package/Types/ServerSending/ServerAlerts.js +393 -0
  379. package/Types/ServerSending/ServerAlerts.mjs +8 -0
  380. package/Types/ServerSending/ServerSendingStatus.d.mts +6 -0
  381. package/Types/ServerSending/ServerSendingStatus.d.ts +6 -0
  382. package/Types/ServerSending/ServerSendingStatus.js +23 -0
  383. package/Types/ServerSending/ServerSetUpProblem.d.mts +46 -0
  384. package/Types/ServerSending/ServerSetUpProblem.d.ts +46 -0
  385. package/Types/ServerSending/ServerSetUpProblem.js +164 -0
  386. package/Types/ServerSending/ServerSetUpProblem.mjs +6 -0
  387. package/Types/ServerSetup/ServerSetupChecklist.d.mts +35 -1
  388. package/Types/ServerSetup/ServerSetupChecklist.d.ts +35 -1
  389. package/Types/ServerSetup/ServerSetupChecklist.js +270 -33
  390. package/Types/ServerSetup/ServerSetupChecklist.mjs +5 -0
  391. package/Types/ServerSetup/ServerTestSend.d.mts +11 -0
  392. package/Types/ServerSetup/ServerTestSend.d.ts +11 -0
  393. package/Types/ServerSetup/ServerTestSend.js +60 -3
  394. package/Types/ServerSetup/ServerTestSend.mjs +2 -0
  395. package/Types/ServiceLevelObjective/SloStatus.d.mts +3 -0
  396. package/Types/ServiceLevelObjective/SloStatus.d.ts +3 -0
  397. package/Types/ServiceLevelObjective/SloStatus.js +38 -0
  398. package/Types/ServiceLevelObjective/SloStatus.mjs +2 -0
  399. package/Types/ServiceLevelObjective/SloStatusChange.d.mts +10 -0
  400. package/Types/ServiceLevelObjective/SloStatusChange.d.ts +10 -0
  401. package/Types/ServiceLevelObjective/SloStatusChange.js +71 -0
  402. package/Types/ServiceLevelObjective/SloStatusChange.mjs +5 -0
  403. package/Types/SetupHealth/SetupHealth.d.mts +31 -3
  404. package/Types/SetupHealth/SetupHealth.d.ts +31 -3
  405. package/Types/SetupHealth/SetupHealth.js +333 -4
  406. package/Types/SetupHealth/SetupHealth.mjs +5 -0
  407. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.js +8 -5
  408. package/Types/StatusPage/StatusPagePublicName.d.mts +6 -0
  409. package/Types/StatusPage/StatusPagePublicName.d.ts +6 -0
  410. package/Types/StatusPage/StatusPagePublicName.js +32 -0
  411. package/Types/StatusPage/StatusPagePublicName.mjs +3 -0
  412. package/Types/Team/InvitationEmailsNotSent.d.mts +28 -0
  413. package/Types/Team/InvitationEmailsNotSent.d.ts +28 -0
  414. package/Types/Team/InvitationEmailsNotSent.js +261 -0
  415. package/Types/Team/InvitationEmailsNotSent.mjs +13 -0
  416. package/Types/Team/ProjectMemberSearch.d.mts +15 -0
  417. package/Types/Team/ProjectMemberSearch.d.ts +15 -0
  418. package/Types/Team/ProjectMemberSearch.js +180 -0
  419. package/Types/Team/ProjectMemberSearch.mjs +10 -0
  420. package/Types/Team/ProjectRemovalReach.d.mts +15 -0
  421. package/Types/Team/ProjectRemovalReach.d.ts +15 -0
  422. package/Types/Team/ProjectRemovalReach.js +154 -0
  423. package/Types/Team/ProjectRemovalReach.mjs +8 -0
  424. package/Types/Team/ResendInvitation.d.mts +27 -0
  425. package/Types/Team/ResendInvitation.d.ts +27 -0
  426. package/Types/Team/ResendInvitation.js +123 -0
  427. package/Types/Team/ResendInvitation.mjs +12 -0
  428. package/Types/UsedBy/UsedBy.d.mts +1 -0
  429. package/Types/UsedBy/UsedBy.d.ts +1 -0
  430. package/Types/UsedBy/UsedBy.js +2 -0
  431. package/Types/UsedBy/UsedByServerProducts.js +1 -0
  432. package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +27 -4
  433. package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +27 -4
  434. package/Types/WelcomeChecklist/WelcomeChecklist.js +166 -42
  435. package/Types/WelcomeChecklist/WelcomeChecklist.mjs +8 -0
  436. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +4 -1
  437. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +4 -1
  438. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +175 -33
  439. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.mjs +1 -0
  440. package/Types/WelcomeChecklist/WelcomeChecklistState.d.mts +1 -0
  441. package/Types/WelcomeChecklist/WelcomeChecklistState.d.ts +1 -0
  442. package/Types/WelcomeChecklist/WelcomeChecklistState.js +30 -1
  443. package/Types/WelcomeChecklist/WelcomeChecklistState.mjs +1 -0
  444. package/Types/Workflow/Component.d.mts +0 -1
  445. package/Types/Workflow/Component.d.ts +0 -1
  446. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +1 -1
  447. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +1 -1
  448. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +23 -0
  449. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +23 -0
  450. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +12 -0
  451. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +12 -0
  452. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +106 -4
  453. package/Types/Workspace/WorkspaceMessagePayload.d.mts +2 -0
  454. package/Types/Workspace/WorkspaceMessagePayload.d.ts +2 -0
  455. package/Types/Workspace/WorkspaceMessagePayload.js +6 -1
  456. package/Types/Workspace/WorkspaceMessagePayload.mjs +1 -0
  457. package/UI/Components/Dropdown/Dropdown.d.mts +2 -0
  458. package/UI/Components/Dropdown/Dropdown.d.ts +2 -0
  459. package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.js +6 -1
  460. package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.js +6 -1
  461. package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +4 -1
  462. package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +4 -1
  463. package/Utils/Dashboard/MonitorListWidgetFormat.js +9 -4
  464. package/Utils/DataSecurity/CustomDataTypeDetector.js +3 -1
  465. package/Utils/DataSecurity/DetectorPrefilter.d.mts +9 -0
  466. package/Utils/DataSecurity/DetectorPrefilter.d.ts +9 -0
  467. package/Utils/DataSecurity/DetectorPrefilter.js +471 -0
  468. package/Utils/DataSecurity/DetectorPrefilter.mjs +6 -0
  469. package/Utils/DataSecurity/FieldClassifier.d.mts +2 -0
  470. package/Utils/DataSecurity/FieldClassifier.d.ts +2 -0
  471. package/Utils/DataSecurity/FieldClassifier.js +38 -8
  472. package/Utils/DataSecurity/OccurrenceExcerpt.d.mts +22 -0
  473. package/Utils/DataSecurity/OccurrenceExcerpt.d.ts +22 -0
  474. package/Utils/DataSecurity/OccurrenceExcerpt.js +270 -0
  475. package/Utils/DataSecurity/OccurrenceExcerpt.mjs +5 -0
  476. package/Utils/DataSecurity/TextScanner.d.mts +4 -0
  477. package/Utils/DataSecurity/TextScanner.d.ts +4 -0
  478. package/Utils/Monitor/DeviceMonitorDuplicates.d.mts +34 -0
  479. package/Utils/Monitor/DeviceMonitorDuplicates.d.ts +34 -0
  480. package/Utils/Monitor/DeviceMonitorDuplicates.js +134 -0
  481. package/Utils/Monitor/DeviceMonitorDuplicates.mjs +7 -0
  482. package/Utils/Monitor/DeviceMonitorTemplateUtil.d.mts +4 -0
  483. package/Utils/Monitor/DeviceMonitorTemplateUtil.d.ts +4 -0
  484. package/Utils/Monitor/DeviceMonitorTemplateUtil.js +33 -6
  485. package/Utils/Monitor/MonitorMetricType.js +11 -1
  486. package/Utils/Monitor/MonitorOverviewPresentationUtil.js +21 -3
  487. package/Utils/Monitor/ProbeFailureCauses.js +4 -1
  488. package/Utils/Monitor/ProbeStatusMonitorUtil.d.mts +5 -1
  489. package/Utils/Monitor/ProbeStatusMonitorUtil.d.ts +5 -1
  490. package/Utils/Monitor/ProbeStatusMonitorUtil.js +106 -0
  491. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.mts +3 -0
  492. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.ts +3 -0
  493. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.js +33 -4
  494. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.mjs +1 -0
  495. package/Utils/NetworkDevice/NetworkDeviceStoredManufacturer.d.mts +33 -0
  496. package/Utils/NetworkDevice/NetworkDeviceStoredManufacturer.d.ts +33 -0
  497. package/Utils/NetworkDevice/NetworkDeviceStoredManufacturer.js +105 -0
  498. package/Utils/NetworkDevice/NetworkDeviceStoredManufacturer.mjs +8 -0
  499. package/Utils/NetworkDevice/SnmpCredentialUtil.d.mts +5 -0
  500. package/Utils/NetworkDevice/SnmpCredentialUtil.d.ts +5 -0
  501. package/Utils/NetworkDevice/SnmpCredentialUtil.js +28 -3
  502. package/Utils/NetworkDevice/SnmpCredentialUtil.mjs +3 -0
  503. package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.d.mts +1 -0
  504. package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.d.ts +1 -0
  505. package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.js +20 -1
  506. package/Utils/Rules/RuleCriteriaMatcher.d.mts +1 -0
  507. package/Utils/Rules/RuleCriteriaMatcher.d.ts +1 -0
  508. package/Utils/Rules/RuleCriteriaMatcher.js +6 -0
  509. package/Utils/Rules/RuleCriteriaOwnerMatch.d.mts +10 -0
  510. package/Utils/Rules/RuleCriteriaOwnerMatch.d.ts +10 -0
  511. package/Utils/Rules/RuleCriteriaOwnerMatch.js +83 -0
  512. package/Utils/Rules/RuleCriteriaOwnerMatch.mjs +4 -0
  513. package/Utils/SecurityCase/SecurityCaseMatchRules.d.mts +27 -0
  514. package/Utils/SecurityCase/SecurityCaseMatchRules.d.ts +27 -0
  515. package/Utils/SecurityCase/SecurityCaseMatchRules.js +377 -0
  516. package/Utils/SecurityCase/SecurityCaseMatchRules.mjs +9 -0
  517. package/Utils/Slo/SloBulkRecommendedPolicy.d.mts +35 -0
  518. package/Utils/Slo/SloBulkRecommendedPolicy.d.ts +35 -0
  519. package/Utils/Slo/SloBulkRecommendedPolicy.js +168 -0
  520. package/Utils/Slo/SloBulkRecommendedPolicy.mjs +6 -0
  521. package/Utils/Slo/SloBurnRateRuleState.js +3 -6
  522. package/Utils/Slo/SloErrorBudgetPolicy.d.mts +17 -0
  523. package/Utils/Slo/SloErrorBudgetPolicy.d.ts +17 -0
  524. package/Utils/Slo/SloErrorBudgetPolicy.js +72 -1
  525. package/Utils/Slo/SloErrorBudgetPolicy.mjs +4 -0
  526. package/Utils/Slo/SloFeedMarkdown.d.mts +5 -2
  527. package/Utils/Slo/SloFeedMarkdown.d.ts +5 -2
  528. package/Utils/Slo/SloFeedMarkdown.js +19 -7
  529. package/Utils/Slo/SloFeedMarkdown.mjs +1 -0
  530. package/Utils/Slo/SloHealth.d.mts +5 -0
  531. package/Utils/Slo/SloHealth.d.ts +5 -0
  532. package/Utils/Slo/SloHealth.js +27 -0
  533. package/Utils/Slo/SloListWidgetFormat.js +5 -3
  534. package/Utils/Slo/SloMetricType.js +6 -5
  535. package/Utils/Slo/SloMonitorsFirstCheck.d.mts +13 -0
  536. package/Utils/Slo/SloMonitorsFirstCheck.d.ts +13 -0
  537. package/Utils/Slo/SloMonitorsFirstCheck.js +78 -0
  538. package/Utils/Slo/SloMonitorsFirstCheck.mjs +3 -0
  539. package/Utils/Slo/SloOverviewText.js +7 -0
  540. package/Utils/Slo/SloStatusColor.d.mts +3 -0
  541. package/Utils/Slo/SloStatusColor.d.ts +3 -0
  542. package/Utils/Slo/SloStatusColor.js +3 -0
  543. package/Utils/Slo/SloStatusPosts.d.mts +18 -0
  544. package/Utils/Slo/SloStatusPosts.d.ts +18 -0
  545. package/Utils/Slo/SloStatusPosts.js +95 -0
  546. package/Utils/Slo/SloStatusPosts.mjs +3 -0
  547. package/Utils/StatusPage/GridAxisValues.d.mts +2 -0
  548. package/Utils/StatusPage/GridAxisValues.d.ts +2 -0
  549. package/Utils/StatusPage/GridAxisValues.js +33 -0
  550. package/Utils/StatusPage/GridAxisValues.mjs +3 -0
  551. package/Utils/StatusPage/GroupHierarchyView.d.mts +2 -2
  552. package/Utils/StatusPage/GroupHierarchyView.d.ts +2 -2
  553. package/Utils/StatusPage/GroupHierarchyView.js +13 -12
  554. package/Utils/StatusPage/GroupNestingLayout.d.mts +1 -0
  555. package/Utils/StatusPage/GroupNestingLayout.d.ts +1 -0
  556. package/Utils/StatusPage/GroupNestingLayout.js +25 -5
  557. package/Utils/StatusPage/ResourceExplorer.d.mts +2 -2
  558. package/Utils/StatusPage/ResourceExplorer.d.ts +2 -2
  559. package/Utils/StatusPage/ResourceExplorer.js +15 -21
  560. package/Utils/StatusPage/StatusColorsOnDark.d.mts +5 -3
  561. package/Utils/StatusPage/StatusColorsOnDark.d.ts +5 -3
  562. package/Utils/StatusPage/StatusColorsOnDark.js +18 -6
  563. package/Utils/StatusPage/StatusColorsOnDark.mjs +1 -0
  564. package/Utils/Telemetry/MobileAppFaults.d.mts +8 -0
  565. package/Utils/Telemetry/MobileAppFaults.d.ts +8 -0
  566. package/Utils/Telemetry/MobileAppFaults.js +69 -0
  567. package/Utils/Telemetry/MobileAppFaults.mjs +6 -0
  568. package/Utils/Workspace/WorkspaceRefusal.d.mts +108 -0
  569. package/Utils/Workspace/WorkspaceRefusal.d.ts +108 -0
  570. package/Utils/Workspace/WorkspaceRefusal.js +769 -0
  571. package/Utils/Workspace/WorkspaceRefusal.mjs +50 -0
  572. package/package.json +4 -1
@@ -0,0 +1,261 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.INVITATION_EMAILS_NOT_SENT_IN_PROJECTS_ROUTE = exports.MAX_PEOPLE_PER_INVITATION_EMAILS_READ = exports.INVITATION_EMAILS_NOT_SENT_ROUTE = void 0;
7
+ exports.readInvitationEmailsNotSentRequest = readInvitationEmailsNotSentRequest;
8
+ exports.toInvitationEmailsNotSentRequestJSON = toInvitationEmailsNotSentRequestJSON;
9
+ exports.toInvitationEmailsNotSentAnswerJSON = toInvitationEmailsNotSentAnswerJSON;
10
+ exports.readInvitationEmailsNotSentAnswer = readInvitationEmailsNotSentAnswer;
11
+ exports.getProjectInviteeKey = getProjectInviteeKey;
12
+ exports.readInvitationEmailsNotSentInProjectsRequest = readInvitationEmailsNotSentInProjectsRequest;
13
+ exports.toInvitationEmailsNotSentInProjectsRequestJSON = toInvitationEmailsNotSentInProjectsRequestJSON;
14
+ exports.toInvitationEmailsNotSentInProjectsAnswerJSON = toInvitationEmailsNotSentInProjectsAnswerJSON;
15
+ exports.readInvitationEmailsNotSentInProjectsAnswer = readInvitationEmailsNotSentInProjectsAnswer;
16
+ const BadDataException_1 = __importDefault(require("../Exception/BadDataException"));
17
+ const ObjectID_1 = __importDefault(require("../ObjectID"));
18
+ /*
19
+ * WHOSE INVITATION EMAIL WAS NOT SENT, ON A PAGE OF PEOPLE (#9511).
20
+ *
21
+ * On a server that can send email, the Users list showed every pending
22
+ * invitation as Invitation Sent, even one whose email the mail service
23
+ * refused - a wrong SMTP password, a full quota, an address the provider
24
+ * rejected - so nothing reached the person, and the person who invited them
25
+ * waited for an answer that would not come. The failure was in the
26
+ * project's Email Logs all along. Now the lists ask the server about the
27
+ * pending people they show (POST /team-member/invitation-emails-not-sent),
28
+ * and say Email Not Sent for each one whose latest invitation email failed,
29
+ * with the mail service's answer as the Email Log words it.
30
+ *
31
+ * The server reads the project's Email Logs with the caller's own
32
+ * permissions, so nobody is told a failure, or its reason, that they could
33
+ * not read under Notification Logs > Email: a caller who may not read them
34
+ * is answered with nobody. One read per page of people, never one per row.
35
+ *
36
+ * This module is the request and the answer, read the same way on both
37
+ * sides. React-free and server-free.
38
+ */
39
+ // Where the Dashboard asks, under the API (the team member route's own path).
40
+ exports.INVITATION_EMAILS_NOT_SENT_ROUTE = "/team-member/invitation-emails-not-sent";
41
+ // The most people one ask may name: a list's largest page.
42
+ exports.MAX_PEOPLE_PER_INVITATION_EMAILS_READ = 100;
43
+ // A user id as both sides compare it.
44
+ const toUserIdText = (userId) => {
45
+ return userId.trim().toLowerCase();
46
+ };
47
+ /*
48
+ * The people asked about, as the server takes them: their user ids, each
49
+ * once, at most MAX_PEOPLE_PER_INVITATION_EMAILS_READ. Anything else is
50
+ * refused rather than guessed at.
51
+ */
52
+ function readInvitationEmailsNotSentRequest(body) {
53
+ const userIds = body && typeof body === "object" && !Array.isArray(body)
54
+ ? body["userIds"]
55
+ : undefined;
56
+ if (!Array.isArray(userIds) ||
57
+ userIds.some((userId) => {
58
+ return typeof userId !== "string" || !ObjectID_1.default.isValidUUID(userId);
59
+ })) {
60
+ throw new BadDataException_1.default("Name the people to ask about by user ID.");
61
+ }
62
+ const unique = Array.from(new Set(userIds.map(toUserIdText)));
63
+ if (unique.length > exports.MAX_PEOPLE_PER_INVITATION_EMAILS_READ) {
64
+ throw new BadDataException_1.default(`Ask about at most ${exports.MAX_PEOPLE_PER_INVITATION_EMAILS_READ} people at a time.`);
65
+ }
66
+ return unique.map((userId) => {
67
+ return new ObjectID_1.default(userId);
68
+ });
69
+ }
70
+ // The request, as the Dashboard sends it: each person once, at most a page.
71
+ function toInvitationEmailsNotSentRequestJSON(userIds) {
72
+ return {
73
+ userIds: Array.from(new Set(userIds.map(toUserIdText).filter((userId) => {
74
+ return Boolean(userId);
75
+ }))).slice(0, exports.MAX_PEOPLE_PER_INVITATION_EMAILS_READ),
76
+ };
77
+ }
78
+ // The answer, as the route sends it.
79
+ function toInvitationEmailsNotSentAnswerJSON(people) {
80
+ return {
81
+ people: people.map((person) => {
82
+ return {
83
+ userId: toUserIdText(person.userId),
84
+ statusMessage: person.statusMessage,
85
+ };
86
+ }),
87
+ };
88
+ }
89
+ /*
90
+ * The answer, as the Dashboard reads it: a person with no id is dropped,
91
+ * each person once, and a reason that is not text reads as none.
92
+ */
93
+ function readInvitationEmailsNotSentAnswer(data) {
94
+ const json = data && typeof data === "object" && !Array.isArray(data)
95
+ ? data
96
+ : {};
97
+ const people = json["people"];
98
+ if (!Array.isArray(people)) {
99
+ return [];
100
+ }
101
+ const seen = new Set();
102
+ const answer = [];
103
+ for (const entry of people) {
104
+ if (!entry || typeof entry !== "object" || Array.isArray(entry)) {
105
+ continue;
106
+ }
107
+ const person = entry;
108
+ const userId = typeof person["userId"] === "string"
109
+ ? toUserIdText(person["userId"])
110
+ : "";
111
+ if (!userId || seen.has(userId)) {
112
+ continue;
113
+ }
114
+ seen.add(userId);
115
+ answer.push({
116
+ userId: userId,
117
+ statusMessage: typeof person["statusMessage"] === "string"
118
+ ? person["statusMessage"].trim()
119
+ : "",
120
+ });
121
+ }
122
+ return answer;
123
+ }
124
+ /*
125
+ * THE SAME, ACROSS PROJECTS, FOR A MASTER ADMIN (#9518).
126
+ *
127
+ * The Admin Dashboard lists a project's people too - a project's Users,
128
+ * one of its teams, one of its people - and a person's projects (Users > a
129
+ * person > Projects), and every one of them said Invitation Sent for a
130
+ * pending invitation whose email the mail service refused. It works in no
131
+ * project, and a person's projects are many, so it names each pending
132
+ * row's person with the row's project (POST /team-member/invitation-emails-
133
+ * not-sent-in-projects), and the server reads those projects' Email Logs,
134
+ * as master admins may (master admins only). The same rule decides: a
135
+ * person's latest invitation email to that project. One read per page,
136
+ * never one per row.
137
+ */
138
+ // Where the Admin Dashboard asks, under the API.
139
+ exports.INVITATION_EMAILS_NOT_SENT_IN_PROJECTS_ROUTE = "/team-member/invitation-emails-not-sent-in-projects";
140
+ // A project invitee as both sides compare them: "<project id>/<user id>".
141
+ function getProjectInviteeKey(invitee) {
142
+ return `${toUserIdText(invitee.projectId)}/${toUserIdText(invitee.userId)}`;
143
+ }
144
+ /*
145
+ * The invitees asked about, as the server takes them: a project and a
146
+ * person each, each pair once, at most MAX_PEOPLE_PER_INVITATION_EMAILS_READ.
147
+ * Anything else is refused rather than guessed at.
148
+ */
149
+ function readInvitationEmailsNotSentInProjectsRequest(body) {
150
+ const invitees = body && typeof body === "object" && !Array.isArray(body)
151
+ ? body["invitees"]
152
+ : undefined;
153
+ const isInvitee = (entry) => {
154
+ if (!entry || typeof entry !== "object" || Array.isArray(entry)) {
155
+ return false;
156
+ }
157
+ const projectId = entry["projectId"];
158
+ const userId = entry["userId"];
159
+ return (typeof projectId === "string" &&
160
+ ObjectID_1.default.isValidUUID(projectId) &&
161
+ typeof userId === "string" &&
162
+ ObjectID_1.default.isValidUUID(userId));
163
+ };
164
+ if (!Array.isArray(invitees) || !invitees.every(isInvitee)) {
165
+ throw new BadDataException_1.default("Name the people to ask about by project ID and user ID.");
166
+ }
167
+ const unique = new Map();
168
+ for (const entry of invitees) {
169
+ const invitee = {
170
+ projectId: toUserIdText(entry["projectId"]),
171
+ userId: toUserIdText(entry["userId"]),
172
+ };
173
+ unique.set(getProjectInviteeKey(invitee), invitee);
174
+ }
175
+ if (unique.size > exports.MAX_PEOPLE_PER_INVITATION_EMAILS_READ) {
176
+ throw new BadDataException_1.default(`Ask about at most ${exports.MAX_PEOPLE_PER_INVITATION_EMAILS_READ} people at a time.`);
177
+ }
178
+ return Array.from(unique.values()).map((invitee) => {
179
+ return {
180
+ projectId: new ObjectID_1.default(invitee.projectId),
181
+ userId: new ObjectID_1.default(invitee.userId),
182
+ };
183
+ });
184
+ }
185
+ // The request, as the Admin Dashboard sends it: each invitee once, at most a page.
186
+ function toInvitationEmailsNotSentInProjectsRequestJSON(invitees) {
187
+ const unique = new Map();
188
+ for (const invitee of invitees) {
189
+ const projectId = toUserIdText(invitee.projectId);
190
+ const userId = toUserIdText(invitee.userId);
191
+ if (!projectId || !userId) {
192
+ continue;
193
+ }
194
+ unique.set(getProjectInviteeKey(invitee), {
195
+ projectId: projectId,
196
+ userId: userId,
197
+ });
198
+ }
199
+ return {
200
+ invitees: Array.from(unique.values()).slice(0, exports.MAX_PEOPLE_PER_INVITATION_EMAILS_READ),
201
+ };
202
+ }
203
+ // The answer, as the route sends it.
204
+ function toInvitationEmailsNotSentInProjectsAnswerJSON(invitees) {
205
+ return {
206
+ invitees: invitees.map((invitee) => {
207
+ return {
208
+ projectId: toUserIdText(invitee.projectId),
209
+ userId: toUserIdText(invitee.userId),
210
+ statusMessage: invitee.statusMessage,
211
+ };
212
+ }),
213
+ };
214
+ }
215
+ /*
216
+ * The answer, as the Admin Dashboard reads it: an invitee with no project
217
+ * or no person is dropped, each pair once, and a reason that is not text
218
+ * reads as none.
219
+ */
220
+ function readInvitationEmailsNotSentInProjectsAnswer(data) {
221
+ const json = data && typeof data === "object" && !Array.isArray(data)
222
+ ? data
223
+ : {};
224
+ const invitees = json["invitees"];
225
+ if (!Array.isArray(invitees)) {
226
+ return [];
227
+ }
228
+ const seen = new Set();
229
+ const answer = [];
230
+ for (const entry of invitees) {
231
+ if (!entry || typeof entry !== "object" || Array.isArray(entry)) {
232
+ continue;
233
+ }
234
+ const invitee = entry;
235
+ const projectId = typeof invitee["projectId"] === "string"
236
+ ? toUserIdText(invitee["projectId"])
237
+ : "";
238
+ const userId = typeof invitee["userId"] === "string"
239
+ ? toUserIdText(invitee["userId"])
240
+ : "";
241
+ if (!projectId || !userId) {
242
+ continue;
243
+ }
244
+ const key = getProjectInviteeKey({
245
+ projectId: projectId,
246
+ userId: userId,
247
+ });
248
+ if (seen.has(key)) {
249
+ continue;
250
+ }
251
+ seen.add(key);
252
+ answer.push({
253
+ projectId: projectId,
254
+ userId: userId,
255
+ statusMessage: typeof invitee["statusMessage"] === "string"
256
+ ? invitee["statusMessage"].trim()
257
+ : "",
258
+ });
259
+ }
260
+ return answer;
261
+ }
@@ -0,0 +1,13 @@
1
+ import commonJsModule from "./InvitationEmailsNotSent.js";
2
+ export const INVITATION_EMAILS_NOT_SENT_IN_PROJECTS_ROUTE = commonJsModule.INVITATION_EMAILS_NOT_SENT_IN_PROJECTS_ROUTE;
3
+ export const INVITATION_EMAILS_NOT_SENT_ROUTE = commonJsModule.INVITATION_EMAILS_NOT_SENT_ROUTE;
4
+ export const MAX_PEOPLE_PER_INVITATION_EMAILS_READ = commonJsModule.MAX_PEOPLE_PER_INVITATION_EMAILS_READ;
5
+ export const getProjectInviteeKey = commonJsModule.getProjectInviteeKey;
6
+ export const readInvitationEmailsNotSentAnswer = commonJsModule.readInvitationEmailsNotSentAnswer;
7
+ export const readInvitationEmailsNotSentInProjectsAnswer = commonJsModule.readInvitationEmailsNotSentInProjectsAnswer;
8
+ export const readInvitationEmailsNotSentInProjectsRequest = commonJsModule.readInvitationEmailsNotSentInProjectsRequest;
9
+ export const readInvitationEmailsNotSentRequest = commonJsModule.readInvitationEmailsNotSentRequest;
10
+ export const toInvitationEmailsNotSentAnswerJSON = commonJsModule.toInvitationEmailsNotSentAnswerJSON;
11
+ export const toInvitationEmailsNotSentInProjectsAnswerJSON = commonJsModule.toInvitationEmailsNotSentInProjectsAnswerJSON;
12
+ export const toInvitationEmailsNotSentInProjectsRequestJSON = commonJsModule.toInvitationEmailsNotSentInProjectsRequestJSON;
13
+ export const toInvitationEmailsNotSentRequestJSON = commonJsModule.toInvitationEmailsNotSentRequestJSON;
@@ -0,0 +1,15 @@
1
+ import { JSONObject } from "../JSON.mjs";
2
+ export declare const PROJECT_MEMBER_SEARCH_ROUTE: string;
3
+ export declare const PROJECT_MEMBER_SEARCH_MIN_LENGTH: number;
4
+ export declare const PROJECT_MEMBER_SEARCH_MAX_LENGTH: number;
5
+ export declare const PROJECT_MEMBER_SEARCH_LIMIT: number;
6
+ export interface ProjectMemberSearchMatch {
7
+ userId: string;
8
+ name: string;
9
+ email?: string | undefined;
10
+ }
11
+ export declare function readProjectMemberSearchText(body: unknown): string;
12
+ export declare function toProjectMemberSearchAnswerJSON(matches: ReadonlyArray<ProjectMemberSearchMatch>): JSONObject;
13
+ export declare function readProjectMemberSearchAnswer(data: unknown): Array<ProjectMemberSearchMatch>;
14
+ export declare function getProjectMemberMatchRank(match: ProjectMemberSearchMatch, text: string): number;
15
+ export declare function rankProjectMemberMatches(matches: ReadonlyArray<ProjectMemberSearchMatch>, text: string): Array<ProjectMemberSearchMatch>;
@@ -0,0 +1,15 @@
1
+ import { JSONObject } from "../JSON";
2
+ export declare const PROJECT_MEMBER_SEARCH_ROUTE: string;
3
+ export declare const PROJECT_MEMBER_SEARCH_MIN_LENGTH: number;
4
+ export declare const PROJECT_MEMBER_SEARCH_MAX_LENGTH: number;
5
+ export declare const PROJECT_MEMBER_SEARCH_LIMIT: number;
6
+ export interface ProjectMemberSearchMatch {
7
+ userId: string;
8
+ name: string;
9
+ email?: string | undefined;
10
+ }
11
+ export declare function readProjectMemberSearchText(body: unknown): string;
12
+ export declare function toProjectMemberSearchAnswerJSON(matches: ReadonlyArray<ProjectMemberSearchMatch>): JSONObject;
13
+ export declare function readProjectMemberSearchAnswer(data: unknown): Array<ProjectMemberSearchMatch>;
14
+ export declare function getProjectMemberMatchRank(match: ProjectMemberSearchMatch, text: string): number;
15
+ export declare function rankProjectMemberMatches(matches: ReadonlyArray<ProjectMemberSearchMatch>, text: string): Array<ProjectMemberSearchMatch>;
@@ -0,0 +1,180 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PROJECT_MEMBER_SEARCH_LIMIT = exports.PROJECT_MEMBER_SEARCH_MAX_LENGTH = exports.PROJECT_MEMBER_SEARCH_MIN_LENGTH = exports.PROJECT_MEMBER_SEARCH_ROUTE = void 0;
7
+ exports.readProjectMemberSearchText = readProjectMemberSearchText;
8
+ exports.toProjectMemberSearchAnswerJSON = toProjectMemberSearchAnswerJSON;
9
+ exports.readProjectMemberSearchAnswer = readProjectMemberSearchAnswer;
10
+ exports.getProjectMemberMatchRank = getProjectMemberMatchRank;
11
+ exports.rankProjectMemberMatches = rankProjectMemberMatches;
12
+ const BadDataException_1 = __importDefault(require("../Exception/BadDataException"));
13
+ /*
14
+ * SEARCH FINDS THE PROJECT'S PEOPLE (#7036).
15
+ *
16
+ * Cmd/Ctrl+K found services, schedules, teams and the rest by name, and
17
+ * never a person: a project's people are its team memberships, and finding
18
+ * one by name or email is a search through the membership to the user. The
19
+ * Dashboard now asks the server (POST /team-member/search-members) with what
20
+ * was typed, and the server searches the project's members by name and by
21
+ * email, with the reader's own permissions, as the Users page lists them
22
+ * (Server/Utils/Team/ProjectMemberSearch):
23
+ *
24
+ * - Only someone who may see the project's people (the Users page) may ask;
25
+ * anyone else is refused.
26
+ * - Emails are searched, and shown, only for a reader the Users page shows
27
+ * them to.
28
+ * - Only the project's own members are found: someone in another project
29
+ * only, or an address no one has, gives the same empty answer, so an
30
+ * answer never says whether an email exists elsewhere.
31
+ * - Bound as Search's other record searches are: at least two letters,
32
+ * a few people per answer, asked once the reader stops typing.
33
+ *
34
+ * This module is the request and the answer, read the same way on both
35
+ * sides. React-free and server-free.
36
+ */
37
+ // Where the Dashboard asks, under the API (the team member route's own path).
38
+ exports.PROJECT_MEMBER_SEARCH_ROUTE = "/team-member/search-members";
39
+ /*
40
+ * The fewest letters a search needs, as Search's other record searches send
41
+ * none shorter (PROVIDER_SEARCH_MIN_QUERY_LENGTH): one letter is in nearly
42
+ * every name, and would list people for nothing.
43
+ */
44
+ exports.PROJECT_MEMBER_SEARCH_MIN_LENGTH = 2;
45
+ /*
46
+ * The longest text searched for: a name or an address is shorter. Anything
47
+ * longer is cut rather than refused, so a pasted line still finds whom it
48
+ * starts with.
49
+ */
50
+ exports.PROJECT_MEMBER_SEARCH_MAX_LENGTH = 100;
51
+ // The most people one answer lists, as Search lists five of each kind.
52
+ exports.PROJECT_MEMBER_SEARCH_LIMIT = 5;
53
+ /*
54
+ * What was typed, as the server takes it: text, trimmed and cut to its
55
+ * limit, of at least PROJECT_MEMBER_SEARCH_MIN_LENGTH letters - a shorter
56
+ * one is refused, never answered with everyone.
57
+ */
58
+ function readProjectMemberSearchText(body) {
59
+ if (!body || typeof body !== "object" || Array.isArray(body)) {
60
+ throw new BadDataException_1.default("The search must be a JSON object with text.");
61
+ }
62
+ const raw = body["text"];
63
+ if (typeof raw !== "string") {
64
+ throw new BadDataException_1.default("Send what was typed as text, a string.");
65
+ }
66
+ const text = raw
67
+ .trim()
68
+ .substring(0, exports.PROJECT_MEMBER_SEARCH_MAX_LENGTH)
69
+ .trim();
70
+ if (text.length < exports.PROJECT_MEMBER_SEARCH_MIN_LENGTH) {
71
+ throw new BadDataException_1.default(`Type at least ${exports.PROJECT_MEMBER_SEARCH_MIN_LENGTH} letters to search the project's members.`);
72
+ }
73
+ return text;
74
+ }
75
+ // The answer, as the route sends it.
76
+ function toProjectMemberSearchAnswerJSON(matches) {
77
+ return {
78
+ members: matches.map((match) => {
79
+ const json = { userId: match.userId, name: match.name };
80
+ if (match.email) {
81
+ json["email"] = match.email;
82
+ }
83
+ return json;
84
+ }),
85
+ };
86
+ }
87
+ /*
88
+ * The answer, as the Dashboard reads it: a row with no person, or with
89
+ * neither a name nor an email to show, is dropped rather than drawn empty;
90
+ * each person once; at most PROJECT_MEMBER_SEARCH_LIMIT of them.
91
+ */
92
+ function readProjectMemberSearchAnswer(data) {
93
+ const json = data && typeof data === "object" && !Array.isArray(data)
94
+ ? data
95
+ : {};
96
+ const members = json["members"];
97
+ const seen = new Set();
98
+ const matches = [];
99
+ for (const entry of Array.isArray(members) ? members : []) {
100
+ if (!entry || typeof entry !== "object" || Array.isArray(entry)) {
101
+ continue;
102
+ }
103
+ const member = entry;
104
+ const userId = member["userId"];
105
+ const name = typeof member["name"] === "string" ? member["name"].trim() : "";
106
+ const email = typeof member["email"] === "string" ? member["email"].trim() : "";
107
+ if (typeof userId !== "string" || !userId || seen.has(userId)) {
108
+ continue;
109
+ }
110
+ if (!name && !email) {
111
+ continue;
112
+ }
113
+ seen.add(userId);
114
+ matches.push({ userId, name, ...(email ? { email } : {}) });
115
+ if (matches.length >= exports.PROJECT_MEMBER_SEARCH_LIMIT) {
116
+ break;
117
+ }
118
+ }
119
+ return matches;
120
+ }
121
+ // Lowercase, accents aside: "José" is found by "jose".
122
+ const fold = (text) => {
123
+ return text.normalize("NFKD").replace(/[̀-ͯ]+/g, "").toLowerCase().trim();
124
+ };
125
+ /*
126
+ * How well a person matches what was typed, best first: their name starts
127
+ * with it, a word of their name does, their email does, or it is somewhere
128
+ * in either.
129
+ */
130
+ function getProjectMemberMatchRank(match, text) {
131
+ const typed = fold(text);
132
+ const name = fold(match.name);
133
+ const email = fold(match.email || "");
134
+ if (typed && name.startsWith(typed)) {
135
+ return 0;
136
+ }
137
+ if (typed &&
138
+ name.split(/\s+/).some((word) => {
139
+ return word.startsWith(typed);
140
+ })) {
141
+ return 1;
142
+ }
143
+ if (typed && email.startsWith(typed)) {
144
+ return 2;
145
+ }
146
+ return 3;
147
+ }
148
+ /*
149
+ * The people an answer lists: each once, best match first, then by name
150
+ * (a person with none by their email), at most
151
+ * PROJECT_MEMBER_SEARCH_LIMIT of them.
152
+ */
153
+ function rankProjectMemberMatches(matches, text) {
154
+ const byUser = new Map();
155
+ for (const match of matches) {
156
+ if (!match.userId || (!match.name && !match.email)) {
157
+ continue;
158
+ }
159
+ const known = byUser.get(match.userId);
160
+ // One person in several teams is one person; keep what is known of them.
161
+ byUser.set(match.userId, {
162
+ userId: match.userId,
163
+ name: match.name || (known === null || known === void 0 ? void 0 : known.name) || "",
164
+ ...(match.email || (known === null || known === void 0 ? void 0 : known.email)
165
+ ? { email: match.email || (known === null || known === void 0 ? void 0 : known.email) }
166
+ : {}),
167
+ });
168
+ }
169
+ const sortName = (match) => {
170
+ return fold(match.name || match.email || "");
171
+ };
172
+ return Array.from(byUser.values())
173
+ .sort((a, b) => {
174
+ return (getProjectMemberMatchRank(a, text) -
175
+ getProjectMemberMatchRank(b, text) ||
176
+ sortName(a).localeCompare(sortName(b)) ||
177
+ a.userId.localeCompare(b.userId));
178
+ })
179
+ .slice(0, exports.PROJECT_MEMBER_SEARCH_LIMIT);
180
+ }
@@ -0,0 +1,10 @@
1
+ import commonJsModule from "./ProjectMemberSearch.js";
2
+ export const PROJECT_MEMBER_SEARCH_LIMIT = commonJsModule.PROJECT_MEMBER_SEARCH_LIMIT;
3
+ export const PROJECT_MEMBER_SEARCH_MAX_LENGTH = commonJsModule.PROJECT_MEMBER_SEARCH_MAX_LENGTH;
4
+ export const PROJECT_MEMBER_SEARCH_MIN_LENGTH = commonJsModule.PROJECT_MEMBER_SEARCH_MIN_LENGTH;
5
+ export const PROJECT_MEMBER_SEARCH_ROUTE = commonJsModule.PROJECT_MEMBER_SEARCH_ROUTE;
6
+ export const getProjectMemberMatchRank = commonJsModule.getProjectMemberMatchRank;
7
+ export const rankProjectMemberMatches = commonJsModule.rankProjectMemberMatches;
8
+ export const readProjectMemberSearchAnswer = commonJsModule.readProjectMemberSearchAnswer;
9
+ export const readProjectMemberSearchText = commonJsModule.readProjectMemberSearchText;
10
+ export const toProjectMemberSearchAnswerJSON = commonJsModule.toProjectMemberSearchAnswerJSON;
@@ -0,0 +1,15 @@
1
+ import { JSONObject } from "../JSON.mjs";
2
+ import ObjectID from "../ObjectID.mjs";
3
+ export declare const PROJECT_REMOVAL_REACH_ROUTE: string;
4
+ export declare const MAX_PEOPLE_PER_PROJECT_REMOVAL_REACH: number;
5
+ export interface PersonKeptInProject {
6
+ userId: string;
7
+ teamNames: Array<string>;
8
+ hiddenTeamCount: number;
9
+ hasTeamInReach: boolean;
10
+ }
11
+ export declare function readProjectRemovalReachRequest(body: unknown): Array<ObjectID>;
12
+ export declare function toProjectRemovalReachRequestJSON(userIds: ReadonlyArray<string>): JSONObject;
13
+ export declare function toSortedTeamNames(names: ReadonlyArray<string>): Array<string>;
14
+ export declare function toProjectRemovalReachAnswerJSON(people: ReadonlyArray<PersonKeptInProject>): JSONObject;
15
+ export declare function readProjectRemovalReachAnswer(data: unknown): Array<PersonKeptInProject>;
@@ -0,0 +1,15 @@
1
+ import { JSONObject } from "../JSON";
2
+ import ObjectID from "../ObjectID";
3
+ export declare const PROJECT_REMOVAL_REACH_ROUTE: string;
4
+ export declare const MAX_PEOPLE_PER_PROJECT_REMOVAL_REACH: number;
5
+ export interface PersonKeptInProject {
6
+ userId: string;
7
+ teamNames: Array<string>;
8
+ hiddenTeamCount: number;
9
+ hasTeamInReach: boolean;
10
+ }
11
+ export declare function readProjectRemovalReachRequest(body: unknown): Array<ObjectID>;
12
+ export declare function toProjectRemovalReachRequestJSON(userIds: ReadonlyArray<string>): JSONObject;
13
+ export declare function toSortedTeamNames(names: ReadonlyArray<string>): Array<string>;
14
+ export declare function toProjectRemovalReachAnswerJSON(people: ReadonlyArray<PersonKeptInProject>): JSONObject;
15
+ export declare function readProjectRemovalReachAnswer(data: unknown): Array<PersonKeptInProject>;