@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
@@ -46,9 +46,10 @@ exports.SERVICE_LEVEL_OBJECTIVE_IDS_METRIC_ATTRIBUTE = "serviceLevelObjectiveIds
46
46
  exports.SERVICE_LEVEL_OBJECTIVE_NAMES_METRIC_ATTRIBUTE = "serviceLevelObjectiveNames";
47
47
  /*
48
48
  * Numeric encoding of the Status series. Ordered by severity so the Max
49
- * aggregation surfaces the worst state inside a chart bucket. Misconfigured
50
- * and Paused have no entry: those guard paths measure nothing, so they post
51
- * no point rather than a number that would read as a real health state.
49
+ * aggregation surfaces the worst state inside a chart bucket. Waiting,
50
+ * Misconfigured and Paused have no entry: those guard paths measure nothing,
51
+ * so they post no point rather than a number that would read as a real
52
+ * health state.
52
53
  */
53
54
  const STATUS_METRIC_VALUES = [
54
55
  { status: SloStatus_1.default.Healthy, value: 0 },
@@ -190,8 +191,8 @@ class SloMetricTypeUtil {
190
191
  }
191
192
  /*
192
193
  * The value posted on the Status series, or null for a status that must not
193
- * post one (the Misconfigured and Paused guards, and a status the worker
194
- * has not computed yet).
194
+ * post one (the Waiting, Misconfigured and Paused guards, and a status the
195
+ * worker has not computed yet).
195
196
  */
196
197
  static getStatusMetricValue(status) {
197
198
  for (const entry of STATUS_METRIC_VALUES) {
@@ -0,0 +1,13 @@
1
+ import { MonitorFirstCheckFields } from "../Monitor/MonitorFirstCheck.mjs";
2
+ import { MonitorPauseFlags } from "../Monitor/MonitorPauseState.mjs";
3
+ export declare const SLO_MONITOR_FIRST_CHECK_SELECT: {
4
+ monitorType: true;
5
+ firstMeasuredAt: true;
6
+ isArchived: true;
7
+ disableActiveMonitoring: true;
8
+ disableActiveMonitoringBecauseOfManualIncident: true;
9
+ disableActiveMonitoringBecauseOfScheduledMaintenanceEvent: true;
10
+ };
11
+ export type SloMonitorFirstCheckFields = MonitorFirstCheckFields & MonitorPauseFlags;
12
+ export type AreSloMonitorsWaitingForFirstCheckFunction = (monitors: Array<SloMonitorFirstCheckFields> | null | undefined) => boolean;
13
+ export declare const areSloMonitorsWaitingForFirstCheck: AreSloMonitorsWaitingForFirstCheckFunction;
@@ -0,0 +1,13 @@
1
+ import { MonitorFirstCheckFields } from "../Monitor/MonitorFirstCheck";
2
+ import { MonitorPauseFlags } from "../Monitor/MonitorPauseState";
3
+ export declare const SLO_MONITOR_FIRST_CHECK_SELECT: {
4
+ monitorType: true;
5
+ firstMeasuredAt: true;
6
+ isArchived: true;
7
+ disableActiveMonitoring: true;
8
+ disableActiveMonitoringBecauseOfManualIncident: true;
9
+ disableActiveMonitoringBecauseOfScheduledMaintenanceEvent: true;
10
+ };
11
+ export type SloMonitorFirstCheckFields = MonitorFirstCheckFields & MonitorPauseFlags;
12
+ export type AreSloMonitorsWaitingForFirstCheckFunction = (monitors: Array<SloMonitorFirstCheckFields> | null | undefined) => boolean;
13
+ export declare const areSloMonitorsWaitingForFirstCheck: AreSloMonitorsWaitingForFirstCheckFunction;
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.areSloMonitorsWaitingForFirstCheck = exports.SLO_MONITOR_FIRST_CHECK_SELECT = void 0;
40
+ const MonitorFirstCheck_1 = __importDefault(require("../Monitor/MonitorFirstCheck"));
41
+ const MonitorPauseState_1 = __importStar(require("../Monitor/MonitorPauseState"));
42
+ /*
43
+ * A MONITOR UPTIME SLO WAITING FOR ITS MONITORS' FIRST CHECK (issue #9089).
44
+ *
45
+ * An SLO leaves out the time before each monitor's first check (#9031), so
46
+ * an SLO whose monitors nothing has checked yet measures no time. Nothing is
47
+ * set up wrong: the SLO is measured from their first check, so the
48
+ * evaluation worker gives it a status of its own, Waiting (#9354;
49
+ * EvaluateSlos, the zero-data guard in measureMonitorSlo), where it was
50
+ * Misconfigured before. This is the one rule the worker's status and reason
51
+ * and the SLO page's banner all read, so the page never says "waiting for
52
+ * the first check" of an SLO the worker stopped for another reason, or the
53
+ * other way round.
54
+ *
55
+ * Waiting: at least one attached monitor is not paused (archived or with
56
+ * active monitoring off - an SLO whose monitors are all paused is Paused,
57
+ * and says so), and nothing has measured any of those that are not paused
58
+ * (MonitorFirstCheck.isNeverMeasured). A paused monitor is left out either
59
+ * way: nothing checks it now, so its first check is not what the SLO waits
60
+ * for. A monitor read without firstMeasuredAt counts as measured, as it
61
+ * does everywhere, so a read that forgets the column never claims it.
62
+ */
63
+ // What each attached monitor is read with before this can answer for it.
64
+ exports.SLO_MONITOR_FIRST_CHECK_SELECT = {
65
+ monitorType: true,
66
+ firstMeasuredAt: true,
67
+ ...MonitorPauseState_1.MONITOR_PAUSE_FLAGS_SELECT,
68
+ };
69
+ const areSloMonitorsWaitingForFirstCheck = (monitors) => {
70
+ const monitorsNotPaused = (monitors || []).filter((monitor) => {
71
+ return !MonitorPauseState_1.default.isPaused(monitor);
72
+ });
73
+ return (monitorsNotPaused.length > 0 &&
74
+ monitorsNotPaused.every((monitor) => {
75
+ return MonitorFirstCheck_1.default.isNeverMeasured(monitor);
76
+ }));
77
+ };
78
+ exports.areSloMonitorsWaitingForFirstCheck = areSloMonitorsWaitingForFirstCheck;
@@ -0,0 +1,3 @@
1
+ import commonJsModule from "./SloMonitorsFirstCheck.js";
2
+ export const SLO_MONITOR_FIRST_CHECK_SELECT = commonJsModule.SLO_MONITOR_FIRST_CHECK_SELECT;
3
+ export const areSloMonitorsWaitingForFirstCheck = commonJsModule.areSloMonitorsWaitingForFirstCheck;
@@ -127,6 +127,13 @@ const getSloHeadline = (data) => {
127
127
  if (data.isEnabled === false) {
128
128
  return "Disabled — not being measured";
129
129
  }
130
+ /*
131
+ * Set up right, and measured from its monitors' first check (#9354): the
132
+ * banner's own words, never "Cannot be evaluated".
133
+ */
134
+ if (data.sloStatus === SloStatus_1.default.Waiting) {
135
+ return "Waiting for the first check";
136
+ }
130
137
  if (data.sloStatus === SloStatus_1.default.Misconfigured) {
131
138
  return "Cannot be evaluated";
132
139
  }
@@ -6,6 +6,9 @@ import SloStatus from "../../Types/ServiceLevelObjective/SloStatus.mjs";
6
6
  * Healthy -> Green
7
7
  * At Risk -> Yellow
8
8
  * Budget Exhausted -> Red
9
+ * Waiting -> Blue (set up right, measured from its monitors' first
10
+ * check: worth knowing, needs nothing - the Info
11
+ * tone's blue)
9
12
  * Misconfigured -> Gray (nothing to measure — not a reliability signal)
10
13
  * Paused -> Gray (deliberately not being measured)
11
14
  * unknown/unset -> Gray (the worker has not evaluated the SLO yet, so
@@ -6,6 +6,9 @@ import SloStatus from "../../Types/ServiceLevelObjective/SloStatus";
6
6
  * Healthy -> Green
7
7
  * At Risk -> Yellow
8
8
  * Budget Exhausted -> Red
9
+ * Waiting -> Blue (set up right, measured from its monitors' first
10
+ * check: worth knowing, needs nothing - the Info
11
+ * tone's blue)
9
12
  * Misconfigured -> Gray (nothing to measure — not a reliability signal)
10
13
  * Paused -> Gray (deliberately not being measured)
11
14
  * unknown/unset -> Gray (the worker has not evaluated the SLO yet, so
@@ -17,6 +17,9 @@ const getSloStatusColor = (status) => {
17
17
  if (status === SloStatus_1.default.BudgetExhausted) {
18
18
  return BrandColors_1.Red;
19
19
  }
20
+ if (status === SloStatus_1.default.Waiting) {
21
+ return BrandColors_1.Blue500;
22
+ }
20
23
  return BrandColors_1.Gray500;
21
24
  };
22
25
  exports.getSloStatusColor = getSloStatusColor;
@@ -0,0 +1,18 @@
1
+ import SloStatus from "../../Types/ServiceLevelObjective/SloStatus.mjs";
2
+ import SloStatusChange from "../../Types/ServiceLevelObjective/SloStatusChange.mjs";
3
+ export declare const SLO_STATUS_POST_MIN_INTERVAL_MINUTES: number;
4
+ export interface SloStatusPost {
5
+ status: SloStatus;
6
+ postedAt: Date;
7
+ }
8
+ export interface SloStatusPostDecision {
9
+ change: SloStatusChange;
10
+ from: SloStatus | null;
11
+ }
12
+ export declare function decideSloStatusPost(data: {
13
+ lastPost: SloStatusPost | null;
14
+ previousStatus: SloStatus | null | undefined;
15
+ newStatus: SloStatus;
16
+ now: Date;
17
+ minIntervalMinutes?: number | undefined;
18
+ }): SloStatusPostDecision | null;
@@ -0,0 +1,18 @@
1
+ import SloStatus from "../../Types/ServiceLevelObjective/SloStatus";
2
+ import SloStatusChange from "../../Types/ServiceLevelObjective/SloStatusChange";
3
+ export declare const SLO_STATUS_POST_MIN_INTERVAL_MINUTES: number;
4
+ export interface SloStatusPost {
5
+ status: SloStatus;
6
+ postedAt: Date;
7
+ }
8
+ export interface SloStatusPostDecision {
9
+ change: SloStatusChange;
10
+ from: SloStatus | null;
11
+ }
12
+ export declare function decideSloStatusPost(data: {
13
+ lastPost: SloStatusPost | null;
14
+ previousStatus: SloStatus | null | undefined;
15
+ newStatus: SloStatus;
16
+ now: Date;
17
+ minIntervalMinutes?: number | undefined;
18
+ }): SloStatusPostDecision | null;
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.SLO_STATUS_POST_MIN_INTERVAL_MINUTES = void 0;
40
+ exports.decideSloStatusPost = decideSloStatusPost;
41
+ const Date_1 = __importDefault(require("../../Types/Date"));
42
+ const SloStatus_1 = require("../../Types/ServiceLevelObjective/SloStatus");
43
+ const SloStatusChange_1 = __importStar(require("../../Types/ServiceLevelObjective/SloStatusChange"));
44
+ /*
45
+ * AN SLO'S STATUS IN SLACK, MICROSOFT TEAMS AND MATTERMOST: WHEN TO SAY IT
46
+ * (#6596).
47
+ *
48
+ * The status already holds back a rolling window that hovers at a line: it
49
+ * leaves At Risk only once the budget is 5 points above the at-risk
50
+ * threshold, and Budget Exhausted only once 2% of the budget is back
51
+ * (SloUtil.computeSloStatus). An unsteady service can still cross those
52
+ * lines several times a day, and a channel that heard each crossing would
53
+ * learn to ignore the SLO. So the channels are told of an SLO's status at
54
+ * most once an interval (SLO_STATUS_POST_MIN_INTERVAL_MINUTES), and what
55
+ * they are told is always where the SLO is now:
56
+ *
57
+ * - a change is said against what the channels last heard, not against
58
+ * the status the evaluation started from: an SLO that went Healthy and
59
+ * came back to At Risk within the interval, after the channels heard
60
+ * "At Risk", says nothing at all;
61
+ * - a change that comes within the interval of the last one waits, and is
62
+ * said by the first evaluation after the interval if the SLO is still
63
+ * there - so the channels' last word is never one the SLO left;
64
+ * - an exhausted budget is said at once, whatever the interval: it is the
65
+ * one change a channel must not hear late, and it cannot repeat until
66
+ * the SLO has left Budget Exhausted and that was said.
67
+ *
68
+ * What the channels last heard is remembered by the server
69
+ * (SloWorkspaceNotifications); with nothing remembered - the first change,
70
+ * or a cache that lost it - the status the evaluation started from stands
71
+ * in for it, and nothing waits.
72
+ */
73
+ exports.SLO_STATUS_POST_MIN_INTERVAL_MINUTES = 60;
74
+ function decideSloStatusPost(data) {
75
+ var _a;
76
+ // A status that measures nothing says nothing about reliability.
77
+ if ((0, SloStatus_1.isSloUnmeasuredStatus)(data.newStatus)) {
78
+ return null;
79
+ }
80
+ const heard = data.lastPost
81
+ ? data.lastPost.status
82
+ : data.previousStatus || null;
83
+ const change = (0, SloStatusChange_1.getSloStatusChange)(heard, data.newStatus);
84
+ if (!change) {
85
+ return null;
86
+ }
87
+ const minIntervalMinutes = (_a = data.minIntervalMinutes) !== null && _a !== void 0 ? _a : exports.SLO_STATUS_POST_MIN_INTERVAL_MINUTES;
88
+ if (data.lastPost &&
89
+ change !== SloStatusChange_1.default.BudgetExhausted &&
90
+ Date_1.default.getDifferenceInMinutes(data.now, data.lastPost.postedAt) <
91
+ minIntervalMinutes) {
92
+ return null;
93
+ }
94
+ return { change: change, from: heard };
95
+ }
@@ -0,0 +1,3 @@
1
+ import commonJsModule from "./SloStatusPosts.js";
2
+ export const SLO_STATUS_POST_MIN_INTERVAL_MINUTES = commonJsModule.SLO_STATUS_POST_MIN_INTERVAL_MINUTES;
3
+ export const decideSloStatusPost = commonJsModule.decideSloStatusPost;
@@ -0,0 +1,2 @@
1
+ export declare const parseGridAxisValues: (raw?: string | null | undefined) => Array<string>;
2
+ export default parseGridAxisValues;
@@ -0,0 +1,2 @@
1
+ export declare const parseGridAxisValues: (raw?: string | null | undefined) => Array<string>;
2
+ export default parseGridAxisValues;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseGridAxisValues = void 0;
4
+ /*
5
+ * A GRID GROUP'S ROWS AND COLUMNS, AS ITS AXIS VALUES LIST THEM.
6
+ *
7
+ * A status page group in grid view names its rows and its columns as comma
8
+ * separated text (StatusPageGroup.rowAxisValues and columnAxisValues). The
9
+ * Dashboard's Resources screen (ResourceExplorer) and the public status page
10
+ * (GroupNestingLayout, the Overview) both read them here, so the two agree on
11
+ * which grids have no rows or columns yet (#9476).
12
+ *
13
+ * A module of its own, which imports nothing: it is all the public page needs
14
+ * of the Resources screen's model, and reading it from that model brought the
15
+ * model, and the group hierarchy its navigator draws, into every status
16
+ * page's first load (packages/Common/Scripts/first-load-budgets.js;
17
+ * Tests/UI/StatusPageOverviewFirstLoadBuild.test.ts holds them out of it).
18
+ */
19
+ const parseGridAxisValues = (raw) => {
20
+ if (!raw) {
21
+ return [];
22
+ }
23
+ return raw
24
+ .split(",")
25
+ .map((value) => {
26
+ return value.trim();
27
+ })
28
+ .filter((value) => {
29
+ return value.length > 0;
30
+ });
31
+ };
32
+ exports.parseGridAxisValues = parseGridAxisValues;
33
+ exports.default = exports.parseGridAxisValues;
@@ -0,0 +1,3 @@
1
+ import commonJsModule from "./GridAxisValues.js";
2
+ export default commonJsModule.default;
3
+ export const parseGridAxisValues = commonJsModule.parseGridAxisValues;
@@ -79,12 +79,12 @@ export default class StatusPageGroupHierarchyViewUtil {
79
79
  statusPageGroups: Array<StatusPageGroup>;
80
80
  index?: StatusPageGroupTreeIndex | undefined;
81
81
  }): number;
82
- static getReorderTargetOrder(data: {
82
+ static getReorderTargetId(data: {
83
83
  statusPageGroups: Array<StatusPageGroup>;
84
84
  statusPageGroupId: string;
85
85
  direction: "up" | "down";
86
86
  index?: StatusPageGroupTreeIndex | undefined;
87
- }): number | null;
87
+ }): string | null;
88
88
  static getSiblingGroups(data: {
89
89
  statusPageGroup: StatusPageGroup;
90
90
  statusPageGroups: Array<StatusPageGroup>;
@@ -79,12 +79,12 @@ export default class StatusPageGroupHierarchyViewUtil {
79
79
  statusPageGroups: Array<StatusPageGroup>;
80
80
  index?: StatusPageGroupTreeIndex | undefined;
81
81
  }): number;
82
- static getReorderTargetOrder(data: {
82
+ static getReorderTargetId(data: {
83
83
  statusPageGroups: Array<StatusPageGroup>;
84
84
  statusPageGroupId: string;
85
85
  direction: "up" | "down";
86
86
  index?: StatusPageGroupTreeIndex | undefined;
87
- }): number | null;
87
+ }): string | null;
88
88
  static getSiblingGroups(data: {
89
89
  statusPageGroup: StatusPageGroup;
90
90
  statusPageGroups: Array<StatusPageGroup>;
@@ -419,15 +419,20 @@ class StatusPageGroupHierarchyViewUtil {
419
419
  return height;
420
420
  }
421
421
  /*
422
- * The `order` a group has to be given to swap places with the sibling above
423
- * or below it.
422
+ * The group whose place a group takes to swap places with the sibling
423
+ * above or below it: that sibling's id, or null when there is none that
424
+ * way.
424
425
  *
425
426
  * `order` is one flat sequence across the whole status page rather than one
426
- * per parent, so a sibling's own order is the correct target: the service
427
- * renumbers everything between the two, which is what keeps every other
428
- * group's relative position intact.
427
+ * per parent, so the move is "take the sibling's place": the server moves
428
+ * the group there and steps everything between the two aside, which keeps
429
+ * every other group's relative position intact (POST
430
+ * /status-page-group/:id/move, Types/Database/MoveInList). Named by id,
431
+ * not by the sibling's number: a page numbered through the API can have
432
+ * two groups at one number, or a group with none, and a move must still
433
+ * swap them.
429
434
  */
430
- static getReorderTargetOrder(data) {
435
+ static getReorderTargetId(data) {
431
436
  const index = this.resolveIndex(data);
432
437
  const group = index.byId.get(data.statusPageGroupId);
433
438
  if (!group) {
@@ -441,14 +446,10 @@ class StatusPageGroupHierarchyViewUtil {
441
446
  const neighbourId = data.direction === "up"
442
447
  ? neighbours.previousSiblingId
443
448
  : neighbours.nextSiblingId;
444
- if (!neighbourId) {
449
+ if (!neighbourId || !index.byId.get(neighbourId)) {
445
450
  return null;
446
451
  }
447
- const neighbour = index.byId.get(neighbourId);
448
- if (!neighbour || typeof neighbour.order !== "number") {
449
- return null;
450
- }
451
- return neighbour.order;
452
+ return neighbourId;
452
453
  }
453
454
  /*
454
455
  * The groups drawn beside this one under the same parent, in render order.
@@ -65,6 +65,7 @@ export default class StatusPageGroupNestingLayoutUtil {
65
65
  activeScheduledMaintenanceCount: number;
66
66
  activeAnnouncementCount: number;
67
67
  }): boolean;
68
+ static isDrawnAsGrid(statusPageGroup: StatusPageGroup | null): boolean;
68
69
  static shouldRenderTimeAxis(data: {
69
70
  statusPageGroup: StatusPageGroup | null;
70
71
  statusPageResources: Array<StatusPageResource>;
@@ -65,6 +65,7 @@ export default class StatusPageGroupNestingLayoutUtil {
65
65
  activeScheduledMaintenanceCount: number;
66
66
  activeAnnouncementCount: number;
67
67
  }): boolean;
68
+ static isDrawnAsGrid(statusPageGroup: StatusPageGroup | null): boolean;
68
69
  static shouldRenderTimeAxis(data: {
69
70
  statusPageGroup: StatusPageGroup | null;
70
71
  statusPageResources: Array<StatusPageResource>;
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.StatusPageGroupRollupKind = void 0;
7
7
  const StatusPageGroupViewMode_1 = __importDefault(require("../../Types/StatusPage/StatusPageGroupViewMode"));
8
+ const GridAxisValues_1 = __importDefault(require("./GridAxisValues"));
8
9
  /*
9
10
  * Status page groups nest (Corporate Unit -> Region -> Market -> Site) and the
10
11
  * overview page draws that nesting.
@@ -259,6 +260,24 @@ class StatusPageGroupNestingLayoutUtil {
259
260
  data.activeScheduledMaintenanceCount === 0 &&
260
261
  data.activeAnnouncementCount === 0);
261
262
  }
263
+ /*
264
+ * Whether a group's resources are drawn as a grid: it is in grid view, and
265
+ * it has a row and a column to draw. A grid group with no rows or no
266
+ * columns yet has no cells, so the public page draws its resources the way
267
+ * a list group does, or the group's empty line if it has none. Its
268
+ * visitors cannot add the axes, and the error that stood in their place
269
+ * read as the status page failing (#9476). The values are read as the
270
+ * Dashboard's Resources screen reads them (GridAxisValues), so the two
271
+ * agree on which grids have no rows or columns.
272
+ */
273
+ static isDrawnAsGrid(statusPageGroup) {
274
+ if (!statusPageGroup ||
275
+ statusPageGroup.viewMode !== StatusPageGroupViewMode_1.default.Grid) {
276
+ return false;
277
+ }
278
+ return ((0, GridAxisValues_1.default)(statusPageGroup.rowAxisValues).length > 0 &&
279
+ (0, GridAxisValues_1.default)(statusPageGroup.columnAxisValues).length > 0);
280
+ }
262
281
  /*
263
282
  * Whether a group draws the time axis under its own resource list.
264
283
  *
@@ -268,15 +287,16 @@ class StatusPageGroupNestingLayoutUtil {
268
287
  * bars are indented past this one, and they may be collapsed, so an axis up
269
288
  * here would be labelling a column that is not there.
270
289
  *
271
- * A group in grid view draws a matrix of cells instead of bars, so its
272
- * resources are not something a time axis describes.
290
+ * A group drawn as a grid draws a matrix of cells instead of bars, so its
291
+ * resources are not something a time axis describes. A grid group with no
292
+ * rows or columns yet is drawn as a list (isDrawnAsGrid), bars and axis.
273
293
  */
274
294
  static shouldRenderTimeAxis(data) {
275
- var _a, _b, _c;
276
- if (((_a = data.statusPageGroup) === null || _a === void 0 ? void 0 : _a.viewMode) === StatusPageGroupViewMode_1.default.Grid) {
295
+ var _a, _b;
296
+ if (this.isDrawnAsGrid(data.statusPageGroup)) {
277
297
  return false;
278
298
  }
279
- const groupId = ((_c = (_b = data.statusPageGroup) === null || _b === void 0 ? void 0 : _b._id) === null || _c === void 0 ? void 0 : _c.toString()) || null;
299
+ const groupId = ((_b = (_a = data.statusPageGroup) === null || _a === void 0 ? void 0 : _a._id) === null || _b === void 0 ? void 0 : _b.toString()) || null;
280
300
  return (data.statusPageResources.find((resource) => {
281
301
  var _a;
282
302
  if (!resource.showStatusHistoryChart) {
@@ -139,11 +139,11 @@ export default class StatusPageResourceExplorerUtil {
139
139
  static getBulkRemoveConfirmMessage(data: {
140
140
  count: number;
141
141
  }): string;
142
- static getReorderTargetOrder(data: {
142
+ static getReorderTargetId(data: {
143
143
  statusPageResources: Array<StatusPageResource>;
144
144
  fromIndex: number;
145
145
  toIndex: number;
146
- }): number | null;
146
+ }): string | null;
147
147
  static getResourcesInNewOrder(data: {
148
148
  statusPageResources: Array<StatusPageResource>;
149
149
  fromIndex: number;
@@ -139,11 +139,11 @@ export default class StatusPageResourceExplorerUtil {
139
139
  static getBulkRemoveConfirmMessage(data: {
140
140
  count: number;
141
141
  }): string;
142
- static getReorderTargetOrder(data: {
142
+ static getReorderTargetId(data: {
143
143
  statusPageResources: Array<StatusPageResource>;
144
144
  fromIndex: number;
145
145
  toIndex: number;
146
- }): number | null;
146
+ }): string | null;
147
147
  static getResourcesInNewOrder(data: {
148
148
  statusPageResources: Array<StatusPageResource>;
149
149
  fromIndex: number;
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.StatusPageResourceSelectionType = void 0;
7
7
  const GroupHierarchyView_1 = __importDefault(require("./GroupHierarchyView"));
8
8
  const GroupTree_1 = __importDefault(require("./GroupTree"));
9
+ const GridAxisValues_1 = __importDefault(require("./GridAxisValues"));
9
10
  const DateLanguage_1 = require("../../Types/DateLanguage");
10
11
  /*
11
12
  * What the right hand pane is showing. "Ungrouped" is a real place on a status
@@ -523,17 +524,19 @@ class StatusPageResourceExplorerUtil {
523
524
  return `Are you sure you want to remove ${data.count.toLocaleString("en-US")} resources from this status page? The monitors themselves are not deleted.`;
524
525
  }
525
526
  /*
526
- * The `order` to write when a resource is dragged from one position to
527
- * another.
527
+ * The resource whose place a dragged resource takes: the one standing where
528
+ * it was dropped, by id.
528
529
  *
529
- * The server renumbers the group's siblings around whatever order it is
530
- * given, so the write is "take the place of the resource currently sitting
531
- * there" rather than an index - the same write the old table's drag and drop
532
- * made, and the only one StatusPageResourceService knows how to rebalance.
530
+ * The move is "take the place of the resource currently sitting there"
531
+ * rather than an index - the server moves the resource there and steps the
532
+ * rest of the group aside (POST /status-page-resource/:id/move,
533
+ * Types/Database/MoveInList). Named by id, not by that resource's number:
534
+ * a group numbered through the API can have two resources at one number,
535
+ * or one with none, and a drop must still land where it was made.
533
536
  *
534
537
  * Null when the move is a no-op or the positions are not real.
535
538
  */
536
- static getReorderTargetOrder(data) {
539
+ static getReorderTargetId(data) {
537
540
  const { statusPageResources, fromIndex, toIndex } = data;
538
541
  if (fromIndex === toIndex) {
539
542
  return null;
@@ -545,10 +548,10 @@ class StatusPageResourceExplorerUtil {
545
548
  return null;
546
549
  }
547
550
  const target = statusPageResources[toIndex];
548
- if (!target || target.order === undefined || target.order === null) {
551
+ if (!target || !target.id) {
549
552
  return null;
550
553
  }
551
- return target.order;
554
+ return target.id.toString();
552
555
  }
553
556
  /*
554
557
  * The list as it will look once the move lands, so the row can be drawn where
@@ -575,20 +578,11 @@ class StatusPageResourceExplorerUtil {
575
578
  /* Grid groups */
576
579
  /* ------------------------------------------------------------------ */
577
580
  /*
578
- * The comma separated axis values a grid group is defined by, as a list.
581
+ * The comma separated axis values a grid group is defined by, as a list:
582
+ * read as the public status page reads them (GridAxisValues).
579
583
  */
580
584
  static parseAxisValues(raw) {
581
- if (!raw) {
582
- return [];
583
- }
584
- return raw
585
- .split(",")
586
- .map((value) => {
587
- return value.trim();
588
- })
589
- .filter((value) => {
590
- return value.length > 0;
591
- });
585
+ return (0, GridAxisValues_1.default)(raw);
592
586
  }
593
587
  /*
594
588
  * A NUL separator rather than a space or a dash: axis values are free text,
@@ -2,12 +2,14 @@ import Color, { RGB } from "../../Types/Color.mjs";
2
2
  export declare const DARK_THEME_CARD: RGB;
3
3
  export declare const DARK_THEME_PAGE: RGB;
4
4
  export declare const STATUS_TEXT_MINIMUM_CONTRAST: number;
5
+ export declare const STATUS_TEXT_CONTRAST_ON_CARD: number;
5
6
  export declare const UPTIME_BAR_MINIMUM_CONTRAST: number;
6
7
  /**
7
8
  * The colour status text is drawn in on the dark theme: the colour itself
8
- * when it reads at 4.5:1 on the dark card, the nearest lighter shade of it
9
- * that does otherwise. Null for a colour that cannot be read, which the
10
- * text then keeps as it is.
9
+ * when it reads at 4.6:1 on the dark card (STATUS_TEXT_CONTRAST_ON_CARD),
10
+ * the nearest lighter shade of it that does otherwise - so it reads at
11
+ * 4.5:1 on every ground it is drawn on. Null for a colour that cannot be
12
+ * read, which the text then keeps as it is.
11
13
  */
12
14
  export declare function getStatusTextColorOnDark(color: Color | string | null | undefined): string | null;
13
15
  /**