@oneuptime/common 14.0.109 → 14.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (578) hide show
  1. package/Models/AnalyticsModels/SecurityEvent.js +1 -1
  2. package/Models/DatabaseModels/AIInsight.js +2 -2
  3. package/Models/DatabaseModels/AIRunRecording.d.mts +12 -0
  4. package/Models/DatabaseModels/AIRunRecording.d.ts +12 -0
  5. package/Models/DatabaseModels/AIRunRecording.js +181 -0
  6. package/Models/DatabaseModels/AIRunRecording.mjs +2 -0
  7. package/Models/DatabaseModels/Alert.js +20 -4
  8. package/Models/DatabaseModels/AlertEpisode.js +2 -2
  9. package/Models/DatabaseModels/AlertEpisodeOnCallRule.js +3 -3
  10. package/Models/DatabaseModels/AlertGroupingRule.d.mts +1 -0
  11. package/Models/DatabaseModels/AlertGroupingRule.d.ts +1 -0
  12. package/Models/DatabaseModels/AlertGroupingRule.js +48 -2
  13. package/Models/DatabaseModels/AlertOnCallRule.js +3 -3
  14. package/Models/DatabaseModels/AlertSeverity.js +13 -4
  15. package/Models/DatabaseModels/AlertState.js +1 -1
  16. package/Models/DatabaseModels/CallLog.js +12 -12
  17. package/Models/DatabaseModels/DataStore.js +9 -0
  18. package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.mts +2 -0
  19. package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.ts +2 -0
  20. package/Models/DatabaseModels/EmailLog.js +14 -14
  21. package/Models/DatabaseModels/Form.js +3 -3
  22. package/Models/DatabaseModels/FormSubmission.js +6 -6
  23. package/Models/DatabaseModels/GlobalConfig.d.mts +1 -0
  24. package/Models/DatabaseModels/GlobalConfig.d.ts +1 -0
  25. package/Models/DatabaseModels/GlobalConfig.js +74 -45
  26. package/Models/DatabaseModels/Incident.js +20 -4
  27. package/Models/DatabaseModels/IncidentEpisode.js +2 -2
  28. package/Models/DatabaseModels/IncidentEpisodeOnCallRule.js +3 -3
  29. package/Models/DatabaseModels/IncidentGroupingRule.d.mts +1 -0
  30. package/Models/DatabaseModels/IncidentGroupingRule.d.ts +1 -0
  31. package/Models/DatabaseModels/IncidentGroupingRule.js +48 -2
  32. package/Models/DatabaseModels/IncidentOnCallRule.js +3 -3
  33. package/Models/DatabaseModels/IncidentSeverity.js +13 -4
  34. package/Models/DatabaseModels/IncidentSlaRule.js +2 -2
  35. package/Models/DatabaseModels/IncidentState.js +1 -1
  36. package/Models/DatabaseModels/IncidentTemplate.js +2 -2
  37. package/Models/DatabaseModels/Index.js +4 -0
  38. package/Models/DatabaseModels/InventoryItem.js +11 -0
  39. package/Models/DatabaseModels/Monitor.js +54 -20
  40. package/Models/DatabaseModels/MonitorNetworkDevice.d.mts +11 -0
  41. package/Models/DatabaseModels/MonitorNetworkDevice.d.ts +11 -0
  42. package/Models/DatabaseModels/MonitorNetworkDevice.js +189 -0
  43. package/Models/DatabaseModels/MonitorNetworkDevice.mjs +2 -0
  44. package/Models/DatabaseModels/MonitorProbe.js +22 -5
  45. package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
  46. package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
  47. package/Models/DatabaseModels/NetworkDevice.js +64 -7
  48. package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
  49. package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
  50. package/Models/DatabaseModels/NetworkEndpoint.js +39 -7
  51. package/Models/DatabaseModels/NetworkInterface.js +5 -5
  52. package/Models/DatabaseModels/OnCallDutyPolicy.js +4 -2
  53. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRule.js +1 -1
  54. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleSchedule.js +8 -5
  55. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleTeam.js +5 -2
  56. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleUser.js +5 -2
  57. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +28 -11
  58. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +10 -7
  59. package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.mts +1 -0
  60. package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.ts +1 -0
  61. package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +16 -11
  62. package/Models/DatabaseModels/OnCallDutyPolicyOwnerTeam.js +7 -4
  63. package/Models/DatabaseModels/OnCallDutyPolicyOwnerUser.js +7 -4
  64. package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +6 -3
  65. package/Models/DatabaseModels/OnCallDutyPolicyScheduleCalendarFeed.js +4 -4
  66. package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayer.js +3 -3
  67. package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayerUser.js +6 -6
  68. package/Models/DatabaseModels/OnCallDutyPolicyTimeLog.js +9 -6
  69. package/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js +35 -7
  70. package/Models/DatabaseModels/OpenStackCloudCheck.js +8 -1
  71. package/Models/DatabaseModels/Project.d.mts +3 -0
  72. package/Models/DatabaseModels/Project.d.ts +3 -0
  73. package/Models/DatabaseModels/Project.js +142 -5
  74. package/Models/DatabaseModels/ProjectCallSMSConfig.js +3 -1
  75. package/Models/DatabaseModels/ProjectSmtpConfig.js +2 -0
  76. package/Models/DatabaseModels/ProxmoxCluster.d.mts +1 -0
  77. package/Models/DatabaseModels/ProxmoxCluster.d.ts +1 -0
  78. package/Models/DatabaseModels/ProxmoxCluster.js +52 -3
  79. package/Models/DatabaseModels/PublicNoteApprovalRequest.js +3 -3
  80. package/Models/DatabaseModels/PublicNoteApprovalStep.js +1 -1
  81. package/Models/DatabaseModels/PushNotificationLog.js +12 -12
  82. package/Models/DatabaseModels/Reseller.js +8 -2
  83. package/Models/DatabaseModels/ResellerPlan.js +8 -2
  84. package/Models/DatabaseModels/RunbookExecution.js +2 -2
  85. package/Models/DatabaseModels/RunbookRule.js +6 -6
  86. package/Models/DatabaseModels/ScheduledMaintenance.js +9 -6
  87. package/Models/DatabaseModels/ScheduledMaintenanceCalendarFeed.js +1 -1
  88. package/Models/DatabaseModels/ScheduledMaintenanceInternalNote.js +7 -4
  89. package/Models/DatabaseModels/ScheduledMaintenanceLabelRule.js +1 -1
  90. package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +7 -7
  91. package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +3 -3
  92. package/Models/DatabaseModels/ScheduledMaintenanceOwnerRule.js +6 -6
  93. package/Models/DatabaseModels/ScheduledMaintenanceOwnerTeam.js +4 -4
  94. package/Models/DatabaseModels/ScheduledMaintenanceOwnerUser.js +4 -4
  95. package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +10 -7
  96. package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +4 -4
  97. package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +4 -4
  98. package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +5 -5
  99. package/Models/DatabaseModels/Service.js +1 -1
  100. package/Models/DatabaseModels/ServiceLevelObjectiveBurnRateRule.js +4 -4
  101. package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.js +4 -4
  102. package/Models/DatabaseModels/SmsLog.js +12 -12
  103. package/Models/DatabaseModels/StatusPage.js +5 -5
  104. package/Models/DatabaseModels/StatusPageSubscriber.js +2 -2
  105. package/Models/DatabaseModels/TeamMember.js +10 -1
  106. package/Models/DatabaseModels/TelegramLog.js +12 -12
  107. package/Models/DatabaseModels/TelemetryIngestionKey.js +8 -5
  108. package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.js +7 -4
  109. package/Models/DatabaseModels/User.d.mts +4 -0
  110. package/Models/DatabaseModels/User.d.ts +4 -0
  111. package/Models/DatabaseModels/User.js +100 -0
  112. package/Models/DatabaseModels/UserOnCallLog.js +6 -6
  113. package/Models/DatabaseModels/UserOnCallLogTimeline.js +3 -3
  114. package/Models/DatabaseModels/UserOnCallShiftReminderLog.js +2 -2
  115. package/Models/DatabaseModels/WebhookLog.js +12 -12
  116. package/Models/DatabaseModels/WhatsAppLog.js +12 -12
  117. package/Models/DatabaseModels/WorkspaceNotificationLog.js +12 -12
  118. package/Models/DatabaseModels/WorkspaceNotificationRule.js +36 -1
  119. package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
  120. package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.js +3 -3
  121. package/Server/Services/DatabaseService.d.mts +4 -1
  122. package/Server/Services/DatabaseService.d.ts +4 -1
  123. package/Server/Types/Database/CountBy.d.mts +1 -0
  124. package/Server/Types/Database/CountBy.d.ts +1 -0
  125. package/Server/Types/Database/UpdateLimit.d.mts +6 -0
  126. package/Server/Types/Database/UpdateLimit.d.ts +6 -0
  127. package/Types/AI/AIActionWords.d.mts +25 -1
  128. package/Types/AI/AIActionWords.d.ts +25 -1
  129. package/Types/AI/AIActionWords.js +166 -3
  130. package/Types/AI/AIActionWords.mjs +6 -0
  131. package/Types/AI/AIChatTypes.d.mts +4 -2
  132. package/Types/AI/AIChatTypes.d.ts +4 -2
  133. package/Types/AI/AIChatTypes.js +5 -0
  134. package/Types/AI/AiOutcomes.d.mts +57 -0
  135. package/Types/AI/AiOutcomes.d.ts +57 -0
  136. package/Types/AI/AiOutcomes.js +67 -0
  137. package/Types/AI/AiOutcomes.mjs +10 -0
  138. package/Types/AI/AiRunRefusal.d.mts +45 -0
  139. package/Types/AI/AiRunRefusal.d.ts +45 -0
  140. package/Types/AI/AiRunRefusal.js +187 -0
  141. package/Types/AI/AiRunRefusal.mjs +12 -0
  142. package/Types/AI/InvestigationRecording.d.mts +46 -0
  143. package/Types/AI/InvestigationRecording.d.ts +46 -0
  144. package/Types/AI/InvestigationRecording.js +42 -0
  145. package/Types/AI/InvestigationRecording.mjs +7 -0
  146. package/Types/API/HTTPResponse.d.mts +3 -0
  147. package/Types/API/HTTPResponse.d.ts +3 -0
  148. package/Types/API/HTTPResponse.js +15 -0
  149. package/Types/Analytics/ProductEvent.d.mts +6 -1
  150. package/Types/Analytics/ProductEvent.d.ts +6 -1
  151. package/Types/Analytics/ProductEvent.js +41 -0
  152. package/Types/AuditLog/AuditLogCoverage.d.mts +1 -0
  153. package/Types/AuditLog/AuditLogCoverage.d.ts +1 -0
  154. package/Types/AuditLog/AuditLogCoverage.js +4 -2
  155. package/Types/BaseDatabase/AggregateBy.d.mts +16 -0
  156. package/Types/BaseDatabase/AggregateBy.d.ts +16 -0
  157. package/Types/BaseDatabase/AggregationIntervalUtil.d.mts +16 -1
  158. package/Types/BaseDatabase/AggregationIntervalUtil.d.ts +16 -1
  159. package/Types/BaseDatabase/AggregationIntervalUtil.js +92 -2
  160. package/Types/BaseDatabase/ListResult.d.mts +1 -0
  161. package/Types/BaseDatabase/ListResult.d.ts +1 -0
  162. package/Types/CallAndSMS/ServerTwilioEnvironment.d.mts +47 -0
  163. package/Types/CallAndSMS/ServerTwilioEnvironment.d.ts +47 -0
  164. package/Types/CallAndSMS/ServerTwilioEnvironment.js +282 -0
  165. package/Types/CallAndSMS/ServerTwilioEnvironment.mjs +7 -0
  166. package/Types/Cloud/CloudResourceCatalog.d.mts +2 -0
  167. package/Types/Cloud/CloudResourceCatalog.d.ts +2 -0
  168. package/Types/Cloud/CloudResourceCatalog.js +33 -3
  169. package/Types/Cloud/CloudResourceCatalog.mjs +1 -0
  170. package/Types/Dashboard/DashboardAutoRefresh.d.mts +1 -0
  171. package/Types/Dashboard/DashboardAutoRefresh.d.ts +1 -0
  172. package/Types/Dashboard/DashboardAutoRefresh.js +21 -0
  173. package/Types/Dashboard/DashboardAutoRefresh.mjs +1 -0
  174. package/Types/DataObservability/DataCheckSuggestions.d.mts +25 -0
  175. package/Types/DataObservability/DataCheckSuggestions.d.ts +25 -0
  176. package/Types/DataObservability/DataCheckSuggestions.js +102 -65
  177. package/Types/DataObservability/DataCheckSuggestions.mjs +1 -0
  178. package/Types/Database/TableMetadata.d.mts +2 -0
  179. package/Types/Database/TableMetadata.d.ts +2 -0
  180. package/Types/Database/TableMetadata.js +6 -0
  181. package/Types/Date.d.mts +26 -2
  182. package/Types/Date.d.ts +26 -2
  183. package/Types/Date.js +81 -9
  184. package/Types/Date.mjs +1 -0
  185. package/Types/DateLanguage.d.mts +2 -0
  186. package/Types/DateLanguage.d.ts +2 -0
  187. package/Types/DateLanguage.js +44 -2
  188. package/Types/DateLanguage.mjs +2 -0
  189. package/Types/DirectionArrow.d.mts +7 -0
  190. package/Types/DirectionArrow.d.ts +7 -0
  191. package/Types/DirectionArrow.js +88 -0
  192. package/Types/DirectionArrow.mjs +7 -0
  193. package/Types/Docs/GlossaryTerm.d.mts +1 -0
  194. package/Types/Docs/GlossaryTerm.d.ts +1 -0
  195. package/Types/Docs/GlossaryTerm.js +2 -0
  196. package/Types/Docs/RetiredNames.d.mts +11 -0
  197. package/Types/Docs/RetiredNames.d.ts +11 -0
  198. package/Types/Docs/RetiredNames.js +139 -0
  199. package/Types/Docs/RetiredNames.mjs +3 -0
  200. package/Types/Email/ServerEmailEnvironment.d.mts +85 -0
  201. package/Types/Email/ServerEmailEnvironment.d.ts +85 -0
  202. package/Types/Email/ServerEmailEnvironment.js +793 -0
  203. package/Types/Email/ServerEmailEnvironment.mjs +14 -0
  204. package/Types/Exception/AiRunRefusalException.d.mts +6 -0
  205. package/Types/Exception/AiRunRefusalException.d.ts +6 -0
  206. package/Types/Exception/AiRunRefusalException.js +23 -0
  207. package/Types/Exception/AiRunRefusalException.mjs +2 -0
  208. package/Types/Exception/RefusalWithValues.d.mts +7 -0
  209. package/Types/Exception/RefusalWithValues.d.ts +7 -0
  210. package/Types/Exception/RefusalWithValues.js +76 -0
  211. package/Types/Exception/RefusalWithValues.mjs +3 -0
  212. package/Types/Exception/UnexplainedError.d.mts +13 -0
  213. package/Types/Exception/UnexplainedError.d.ts +13 -0
  214. package/Types/Exception/UnexplainedError.js +53 -1
  215. package/Types/Exception/UnexplainedError.mjs +1 -0
  216. package/Types/File/FileSize.d.mts +4 -1
  217. package/Types/File/FileSize.d.ts +4 -1
  218. package/Types/File/FileSize.js +18 -17
  219. package/Types/Form/FormTargetCatalog.js +2 -2
  220. package/Types/Form/FormTargetType.js +2 -2
  221. package/Types/HostCollector/HostCollector.d.mts +1 -0
  222. package/Types/HostCollector/HostCollector.d.ts +1 -0
  223. package/Types/HostCollector/HostCollector.js +26 -10
  224. package/Types/HostCollector/HostCollector.mjs +1 -0
  225. package/Types/ListData.d.mts +2 -0
  226. package/Types/ListData.d.ts +2 -0
  227. package/Types/ListData.js +4 -0
  228. package/Types/Monitor/MonitorCriteria.js +2 -2
  229. package/Types/Monitor/MonitorCriteriaInstance.js +9 -0
  230. package/Types/Monitor/MonitorNotCheckedReason.d.mts +7 -0
  231. package/Types/Monitor/MonitorNotCheckedReason.d.ts +7 -0
  232. package/Types/Monitor/MonitorNotCheckedReason.js +36 -0
  233. package/Types/Monitor/MonitorNotCheckedReason.mjs +4 -0
  234. package/Types/Monitor/MonitorStep.js +1 -1
  235. package/Types/Monitor/MonitorTemplateSyncField.d.mts +6 -0
  236. package/Types/Monitor/MonitorTemplateSyncField.d.ts +6 -0
  237. package/Types/Monitor/MonitorTemplateSyncField.js +106 -64
  238. package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.mts +1 -0
  239. package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.ts +1 -0
  240. package/Types/Monitor/NtpMonitor/NtpMonitorUtil.js +11 -3
  241. package/Types/Monitor/SnmpMonitor/NetworkTopology.d.mts +6 -0
  242. package/Types/Monitor/SnmpMonitor/NetworkTopology.d.ts +6 -0
  243. package/Types/Monitor/UptimeHistoryLabels.js +2 -2
  244. package/Types/Monitor/WhoIsTold.d.mts +3 -1
  245. package/Types/Monitor/WhoIsTold.d.ts +3 -1
  246. package/Types/Monitor/WhoIsTold.js +2 -1
  247. package/Types/NotificationRule/PagingLadder.d.mts +137 -0
  248. package/Types/NotificationRule/PagingLadder.d.ts +137 -0
  249. package/Types/NotificationRule/PagingLadder.js +682 -0
  250. package/Types/NotificationRule/PagingLadder.mjs +28 -0
  251. package/Types/NotificationSetting/NotificationEmailRollupCategory.js +1 -1
  252. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.mts +1 -0
  253. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.ts +1 -0
  254. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.js +12 -9
  255. package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.mjs +1 -0
  256. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +3 -1
  257. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +3 -1
  258. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +24 -6
  259. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +1 -0
  260. package/Types/OnCallDutyPolicy/OnCallPageLine.d.mts +26 -0
  261. package/Types/OnCallDutyPolicy/OnCallPageLine.d.ts +26 -0
  262. package/Types/OnCallDutyPolicy/OnCallPageLine.js +136 -0
  263. package/Types/OnCallDutyPolicy/OnCallPageLine.mjs +18 -0
  264. package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.mts +1 -0
  265. package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.ts +1 -0
  266. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.mts +12 -0
  267. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.ts +12 -0
  268. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.js +38 -0
  269. package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.mjs +3 -0
  270. package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +44 -0
  271. package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +44 -0
  272. package/Types/OnCallDutyPolicy/OnCallTestPage.js +96 -5
  273. package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +1 -0
  274. package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.mts +19 -0
  275. package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.ts +19 -0
  276. package/Types/OnCallDutyPolicy/OnCallTestPageLine.js +222 -0
  277. package/Types/OnCallDutyPolicy/OnCallTestPageLine.mjs +6 -0
  278. package/Types/OnCallDutyPolicy/ScheduleLayerDefaults.js +5 -2
  279. package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.mts +92 -0
  280. package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.ts +92 -0
  281. package/Types/OnCallDutyPolicy/ScheduleLayersSave.js +512 -0
  282. package/Types/OnCallDutyPolicy/ScheduleLayersSave.mjs +7 -0
  283. package/Types/OnCallDutyPolicy/UserOverrideCoverRequest.js +9 -1
  284. package/Types/OnCallDutyPolicy/UserOverrideEdit.d.mts +23 -0
  285. package/Types/OnCallDutyPolicy/UserOverrideEdit.d.ts +23 -0
  286. package/Types/OnCallDutyPolicy/UserOverrideEdit.js +105 -0
  287. package/Types/OnCallDutyPolicy/UserOverrideEdit.mjs +6 -0
  288. package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.mts +64 -0
  289. package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.ts +64 -0
  290. package/Types/OnCallDutyPolicy/UserOverrideOverlap.js +237 -0
  291. package/Types/OnCallDutyPolicy/UserOverrideOverlap.mjs +14 -0
  292. package/Types/Permission.d.mts +2 -2
  293. package/Types/Permission.d.ts +2 -2
  294. package/Types/Permission.js +196 -195
  295. package/Types/Probe/ProbeCapability.d.mts +2 -1
  296. package/Types/Probe/ProbeCapability.d.ts +2 -1
  297. package/Types/Probe/ProbeCapability.js +10 -0
  298. package/Types/Product/ProductCatalog.d.mts +10 -0
  299. package/Types/Product/ProductCatalog.d.ts +10 -0
  300. package/Types/Product/ProductCatalog.js +208 -0
  301. package/Types/Product/ProductCatalog.mjs +6 -0
  302. package/Types/Product/ProductOfTable.d.mts +3 -0
  303. package/Types/Product/ProductOfTable.d.ts +3 -0
  304. package/Types/Product/ProductOfTable.js +68 -0
  305. package/Types/Product/ProductOfTable.mjs +3 -0
  306. package/Types/Product/ProjectProductsAnswer.d.mts +3 -0
  307. package/Types/Product/ProjectProductsAnswer.d.ts +3 -0
  308. package/Types/Product/ProjectProductsAnswer.js +35 -2
  309. package/Types/Product/ProjectProductsAnswer.mjs +1 -0
  310. package/Types/Product/ServerProducts.d.mts +65 -0
  311. package/Types/Product/ServerProducts.d.ts +65 -0
  312. package/Types/Product/ServerProducts.js +383 -0
  313. package/Types/Product/ServerProducts.mjs +26 -0
  314. package/Types/Product/ServerProductsAnswer.d.mts +21 -0
  315. package/Types/Product/ServerProductsAnswer.d.ts +21 -0
  316. package/Types/Product/ServerProductsAnswer.js +78 -0
  317. package/Types/Product/ServerProductsAnswer.mjs +5 -0
  318. package/Types/ProductFeedback/ProductFeedback.d.mts +3 -1
  319. package/Types/ProductFeedback/ProductFeedback.d.ts +3 -1
  320. package/Types/ProductFeedback/ProductFeedback.js +8 -0
  321. package/Types/ReaderLanguage.d.mts +1 -0
  322. package/Types/ReaderLanguage.d.ts +1 -0
  323. package/Types/ReaderLanguage.js +13 -1
  324. package/Types/ReaderLanguage.mjs +1 -0
  325. package/Types/Rules/RuleRun.js +2 -2
  326. package/Types/Rum/SessionReplayCustomEvents.d.mts +1 -0
  327. package/Types/Rum/SessionReplayCustomEvents.d.ts +1 -0
  328. package/Types/SampleProject/SampleProject.d.mts +54 -0
  329. package/Types/SampleProject/SampleProject.d.ts +54 -0
  330. package/Types/SampleProject/SampleProject.js +177 -0
  331. package/Types/SampleProject/SampleProject.mjs +22 -0
  332. package/Types/SampleProject/SampleProjectContent.d.mts +127 -0
  333. package/Types/SampleProject/SampleProjectContent.d.ts +127 -0
  334. package/Types/SampleProject/SampleProjectContent.js +397 -0
  335. package/Types/SampleProject/SampleProjectContent.mjs +18 -0
  336. package/Types/ScheduledMaintenance/MaintenanceCalendar.js +1 -1
  337. package/Types/ServerSending/ServerSendingStatus.d.mts +7 -0
  338. package/Types/ServerSending/ServerSendingStatus.d.ts +7 -0
  339. package/Types/ServerSending/ServerSendingStatus.js +49 -2
  340. package/Types/ServerSetup/ServerSetupChecklist.js +3 -3
  341. package/Types/StateTimeline/RowsKeptOnDelete.js +1 -1
  342. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.mts +8 -0
  343. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.ts +8 -0
  344. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.js +50 -0
  345. package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.mjs +3 -0
  346. package/Types/StatusPage/PublicNoteSubscriberNotificationDefault.js +1 -1
  347. package/Types/Telemetry/CompatibleIngest.d.mts +20 -0
  348. package/Types/Telemetry/CompatibleIngest.d.ts +20 -0
  349. package/Types/Telemetry/CompatibleIngest.js +123 -0
  350. package/Types/Telemetry/CompatibleIngest.mjs +21 -0
  351. package/Types/Telemetry/TelemetryIngestSurface.d.mts +5 -0
  352. package/Types/Telemetry/TelemetryIngestSurface.d.ts +5 -0
  353. package/Types/Telemetry/TelemetryIngestSurface.js +54 -12
  354. package/Types/TimezoneAlias.d.mts +1 -0
  355. package/Types/TimezoneAlias.d.ts +1 -0
  356. package/Types/TimezoneAlias.js +13 -0
  357. package/Types/Translator.d.mts +1 -0
  358. package/Types/Translator.d.ts +1 -0
  359. package/Types/Translator.js +414 -50
  360. package/Types/Translator.mjs +1 -0
  361. package/Types/UsedBy/UsedBy.d.mts +103 -0
  362. package/Types/UsedBy/UsedBy.d.ts +103 -0
  363. package/Types/UsedBy/UsedBy.js +389 -0
  364. package/Types/UsedBy/UsedBy.mjs +20 -0
  365. package/Types/UsedBy/UsedByServerProducts.d.mts +4 -0
  366. package/Types/UsedBy/UsedByServerProducts.d.ts +4 -0
  367. package/Types/UsedBy/UsedByServerProducts.js +48 -0
  368. package/Types/UsedBy/UsedByServerProducts.mjs +3 -0
  369. package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +6 -0
  370. package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +6 -0
  371. package/Types/WelcomeChecklist/WelcomeChecklist.js +54 -2
  372. package/Types/WelcomeChecklist/WelcomeChecklist.mjs +4 -0
  373. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +1 -0
  374. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +1 -0
  375. package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +3 -0
  376. package/Types/Workflow/PassedOnFields.js +2 -1
  377. package/Types/Workflow/RunRecord.js +1 -1
  378. package/Types/Workflow/Templates.js +3 -3
  379. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +2 -0
  380. package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +2 -0
  381. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +28 -1
  382. package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +28 -1
  383. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +84 -0
  384. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +84 -0
  385. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +456 -0
  386. package/Types/Workspace/NotificationRules/NotificationRuleUpdates.mjs +5 -0
  387. package/Utils/AI/MeaningMatch.d.mts +36 -0
  388. package/Utils/AI/MeaningMatch.d.ts +36 -0
  389. package/Utils/AI/MeaningMatch.js +535 -0
  390. package/Utils/AI/MeaningMatch.mjs +7 -0
  391. package/Utils/ArchivableValues.js +1 -1
  392. package/Utils/AuditLog/AuditLogValues.js +2 -2
  393. package/Utils/Dashboard/ClockWidgetFormat.d.mts +14 -2
  394. package/Utils/Dashboard/ClockWidgetFormat.d.ts +14 -2
  395. package/Utils/Dashboard/ClockWidgetFormat.js +105 -2
  396. package/Utils/Dashboard/DashboardViewConfigSignature.d.mts +3 -0
  397. package/Utils/Dashboard/DashboardViewConfigSignature.d.ts +3 -0
  398. package/Utils/Dashboard/DashboardViewConfigSignature.js +45 -0
  399. package/Utils/Dashboard/DashboardViewConfigSignature.mjs +3 -0
  400. package/Utils/Dashboard/ValueWidgetSeries.d.mts +2 -0
  401. package/Utils/Dashboard/ValueWidgetSeries.d.ts +2 -0
  402. package/Utils/Dashboard/ValueWidgetSeries.js +75 -0
  403. package/Utils/DataSecurity/TextScanner.js +2 -2
  404. package/Utils/DeveloperDocs/AiAssistantExamples.js +4 -4
  405. package/Utils/DeveloperDocs/CliCommands.d.mts +1 -0
  406. package/Utils/DeveloperDocs/CliCommands.d.ts +1 -0
  407. package/Utils/DeveloperDocs/CliCommands.js +2 -1
  408. package/Utils/DeveloperDocs/CliResources.js +2 -1
  409. package/Utils/DeveloperDocs/ExampleBuilder.js +1 -1
  410. package/Utils/DeveloperDocs/ResourceProfiles.js +2 -2
  411. package/Utils/DeveloperDocs/TerraformSchema.js +3 -1
  412. package/Utils/GuidedSetup/StatusPageRecords.d.mts +5 -0
  413. package/Utils/GuidedSetup/StatusPageRecords.d.ts +5 -0
  414. package/Utils/GuidedSetup/StatusPageRecords.js +27 -2
  415. package/Utils/GuidedSetup/StatusPageRecords.mjs +1 -0
  416. package/Utils/GuidedSetup/WebsiteMonitorRecords.js +6 -0
  417. package/Utils/HostAddressUtil.d.mts +1 -0
  418. package/Utils/HostAddressUtil.d.ts +1 -0
  419. package/Utils/HostAddressUtil.js +30 -0
  420. package/Utils/LinearRegExp/LinearRegExp.js +5 -1
  421. package/Utils/Markdown/LinkReferenceDefinitions.d.mts +8 -0
  422. package/Utils/Markdown/LinkReferenceDefinitions.d.ts +8 -0
  423. package/Utils/Markdown/LinkReferenceDefinitions.js +1493 -131
  424. package/Utils/Markdown/LinkReferenceDefinitions.mjs +1 -0
  425. package/Utils/Markdown/MarkdownTableCell.js +2 -1
  426. package/Utils/Markdown/OverLongText.js +523 -5
  427. package/Utils/Markdown/SlowMarkdown.d.mts +14 -0
  428. package/Utils/Markdown/SlowMarkdown.d.ts +14 -0
  429. package/Utils/Markdown/SlowMarkdown.js +595 -11
  430. package/Utils/Markdown/SlowMarkdown.mjs +6 -0
  431. package/Utils/Milliseconds.d.mts +7 -0
  432. package/Utils/Milliseconds.d.ts +7 -0
  433. package/Utils/Milliseconds.js +60 -0
  434. package/Utils/Milliseconds.mjs +4 -0
  435. package/Utils/ModelApiName.d.mts +11 -0
  436. package/Utils/ModelApiName.d.ts +11 -0
  437. package/Utils/ModelApiName.js +72 -0
  438. package/Utils/ModelApiName.mjs +5 -0
  439. package/Utils/Monitor/DeviceMacLearningUtil.d.mts +2 -1
  440. package/Utils/Monitor/DeviceMacLearningUtil.d.ts +2 -1
  441. package/Utils/Monitor/DeviceMacLearningUtil.js +26 -0
  442. package/Utils/Monitor/EndpointAttachmentUtil.d.mts +8 -0
  443. package/Utils/Monitor/EndpointAttachmentUtil.d.ts +8 -0
  444. package/Utils/Monitor/EndpointAttachmentUtil.js +97 -22
  445. package/Utils/Monitor/EndpointAttachmentUtil.mjs +4 -0
  446. package/Utils/Monitor/ExternalStatusPageReading.d.mts +3 -0
  447. package/Utils/Monitor/ExternalStatusPageReading.d.ts +3 -0
  448. package/Utils/Monitor/ExternalStatusPageReading.js +35 -1
  449. package/Utils/Monitor/ExternalStatusPageReading.mjs +2 -0
  450. package/Utils/Monitor/InterfaceInventoryUtil.d.mts +40 -0
  451. package/Utils/Monitor/InterfaceInventoryUtil.d.ts +40 -0
  452. package/Utils/Monitor/InterfaceInventoryUtil.js +217 -5
  453. package/Utils/Monitor/InterfaceInventoryUtil.mjs +8 -0
  454. package/Utils/Monitor/MonitorOverviewPresentationUtil.js +63 -29
  455. package/Utils/Monitor/MonitorOverviewProbeUtil.js +13 -2
  456. package/Utils/Monitor/MonitorRootCauseWording.d.mts +2 -0
  457. package/Utils/Monitor/MonitorRootCauseWording.d.ts +2 -0
  458. package/Utils/Monitor/MonitorRootCauseWording.js +58 -4
  459. package/Utils/Monitor/MonitorTemplateLinkRefusal.d.mts +9 -0
  460. package/Utils/Monitor/MonitorTemplateLinkRefusal.d.ts +9 -0
  461. package/Utils/Monitor/MonitorTemplateLinkRefusal.js +45 -0
  462. package/Utils/Monitor/MonitorTemplateLinkRefusal.mjs +6 -0
  463. package/Utils/Monitor/MonitoringOff.d.mts +2 -0
  464. package/Utils/Monitor/MonitoringOff.d.ts +2 -0
  465. package/Utils/Monitor/MonitoringOff.js +21 -0
  466. package/Utils/Monitor/NetworkTopologyUtil.d.mts +2 -1
  467. package/Utils/Monitor/NetworkTopologyUtil.d.ts +2 -1
  468. package/Utils/Monitor/NetworkTopologyUtil.js +10 -0
  469. package/Utils/Monitor/NotOperationalMonitorQuery.d.mts +2 -1
  470. package/Utils/Monitor/NotOperationalMonitorQuery.d.ts +2 -1
  471. package/Utils/Monitor/NotOperationalMonitorQuery.js +23 -4
  472. package/Utils/Monitor/ProbeFailureReading.d.mts +14 -0
  473. package/Utils/Monitor/ProbeFailureReading.d.ts +14 -0
  474. package/Utils/Monitor/ProbeFailureReading.js +137 -0
  475. package/Utils/Monitor/ProbeFailureReading.mjs +7 -0
  476. package/Utils/NetworkDevice/BoundMonitorNotChecked.d.mts +9 -0
  477. package/Utils/NetworkDevice/BoundMonitorNotChecked.d.ts +9 -0
  478. package/Utils/NetworkDevice/BoundMonitorNotChecked.js +15 -0
  479. package/Utils/NetworkDevice/BoundMonitorNotChecked.mjs +2 -0
  480. package/Utils/OpenStack/OpenStackCheckName.js +2 -1
  481. package/Utils/OpenStack/OpenStackLogScrub.js +1 -1
  482. package/Utils/OpenStack/OpenStackLogs.js +3 -2
  483. package/Utils/OpenStack/OpenStackTraces.js +2 -1
  484. package/Utils/Project/NextNumber.js +1 -1
  485. package/Utils/Project/NotificationChannels.js +5 -5
  486. package/Utils/Project/ProjectBalance.js +2 -2
  487. package/Utils/Project/TwilioAccount.js +2 -2
  488. package/Utils/PromQL/PromQLAst.d.mts +159 -0
  489. package/Utils/PromQL/PromQLAst.d.ts +159 -0
  490. package/Utils/PromQL/PromQLAst.js +118 -0
  491. package/Utils/PromQL/PromQLAst.mjs +12 -0
  492. package/Utils/PromQL/PromQLDuration.d.mts +2 -0
  493. package/Utils/PromQL/PromQLDuration.d.ts +2 -0
  494. package/Utils/PromQL/PromQLDuration.js +78 -0
  495. package/Utils/PromQL/PromQLDuration.mjs +3 -0
  496. package/Utils/PromQL/PromQLEngine.d.mts +15 -0
  497. package/Utils/PromQL/PromQLEngine.d.ts +15 -0
  498. package/Utils/PromQL/PromQLEngine.js +965 -0
  499. package/Utils/PromQL/PromQLEngine.mjs +7 -0
  500. package/Utils/PromQL/PromQLEngineTypes.d.mts +84 -0
  501. package/Utils/PromQL/PromQLEngineTypes.d.ts +84 -0
  502. package/Utils/PromQL/PromQLEngineTypes.js +10 -0
  503. package/Utils/PromQL/PromQLEngineTypes.mjs +2 -0
  504. package/Utils/PromQL/PromQLError.d.mts +11 -0
  505. package/Utils/PromQL/PromQLError.d.ts +11 -0
  506. package/Utils/PromQL/PromQLError.js +27 -0
  507. package/Utils/PromQL/PromQLError.mjs +3 -0
  508. package/Utils/PromQL/PromQLFunctionEvaluators.d.mts +8 -0
  509. package/Utils/PromQL/PromQLFunctionEvaluators.d.ts +8 -0
  510. package/Utils/PromQL/PromQLFunctionEvaluators.js +773 -0
  511. package/Utils/PromQL/PromQLFunctionEvaluators.mjs +3 -0
  512. package/Utils/PromQL/PromQLFunctions.d.mts +10 -0
  513. package/Utils/PromQL/PromQLFunctions.d.ts +10 -0
  514. package/Utils/PromQL/PromQLFunctions.js +127 -0
  515. package/Utils/PromQL/PromQLFunctions.mjs +4 -0
  516. package/Utils/PromQL/PromQLLabels.d.mts +11 -0
  517. package/Utils/PromQL/PromQLLabels.d.ts +11 -0
  518. package/Utils/PromQL/PromQLLabels.js +218 -0
  519. package/Utils/PromQL/PromQLLabels.mjs +9 -0
  520. package/Utils/PromQL/PromQLLexer.d.mts +39 -0
  521. package/Utils/PromQL/PromQLLexer.d.ts +39 -0
  522. package/Utils/PromQL/PromQLLexer.js +391 -0
  523. package/Utils/PromQL/PromQLLexer.mjs +3 -0
  524. package/Utils/PromQL/PromQLMath.d.mts +19 -0
  525. package/Utils/PromQL/PromQLMath.d.ts +19 -0
  526. package/Utils/PromQL/PromQLMath.js +200 -0
  527. package/Utils/PromQL/PromQLMath.mjs +9 -0
  528. package/Utils/PromQL/PromQLMetricNames.d.mts +21 -0
  529. package/Utils/PromQL/PromQLMetricNames.d.ts +21 -0
  530. package/Utils/PromQL/PromQLMetricNames.js +199 -0
  531. package/Utils/PromQL/PromQLMetricNames.mjs +8 -0
  532. package/Utils/PromQL/PromQLParser.d.mts +4 -0
  533. package/Utils/PromQL/PromQLParser.d.ts +4 -0
  534. package/Utils/PromQL/PromQLParser.js +831 -0
  535. package/Utils/PromQL/PromQLParser.mjs +4 -0
  536. package/Utils/PromQL/PromQLRegex.d.mts +9 -0
  537. package/Utils/PromQL/PromQLRegex.d.ts +9 -0
  538. package/Utils/PromQL/PromQLRegex.js +74 -0
  539. package/Utils/PromQL/PromQLRegex.mjs +2 -0
  540. package/Utils/PromQL/PrometheusResponse.d.mts +25 -0
  541. package/Utils/PromQL/PrometheusResponse.d.ts +25 -0
  542. package/Utils/PromQL/PrometheusResponse.js +90 -0
  543. package/Utils/PromQL/PrometheusResponse.mjs +3 -0
  544. package/Utils/Rum/PathInSentence.d.mts +5 -0
  545. package/Utils/Rum/PathInSentence.d.ts +5 -0
  546. package/Utils/Rum/PathInSentence.js +46 -0
  547. package/Utils/Rum/PathInSentence.mjs +6 -0
  548. package/Utils/Rum/UrlScrubber.d.mts +4 -0
  549. package/Utils/Rum/UrlScrubber.d.ts +4 -0
  550. package/Utils/Rum/UrlScrubber.js +143 -3
  551. package/Utils/Rum/UserFlow.d.mts +1 -1
  552. package/Utils/Rum/UserFlow.d.ts +1 -1
  553. package/Utils/Rum/UserFlow.js +180 -25
  554. package/Utils/Rum/UserFlow.mjs +1 -1
  555. package/Utils/Runbook/RunbookStepsSignature.d.mts +3 -0
  556. package/Utils/Runbook/RunbookStepsSignature.d.ts +3 -0
  557. package/Utils/Runbook/RunbookStepsSignature.js +30 -0
  558. package/Utils/Runbook/RunbookStepsSignature.mjs +3 -0
  559. package/Utils/ScheduledMaintenanceStart.d.mts +3 -0
  560. package/Utils/ScheduledMaintenanceStart.d.ts +3 -0
  561. package/Utils/ScheduledMaintenanceStart.js +9 -0
  562. package/Utils/Schema/ModelSchema.js +10 -1
  563. package/Utils/Schema/TypeSchemas.js +6 -0
  564. package/Utils/Slo/SloDuration.d.mts +5 -2
  565. package/Utils/Slo/SloDuration.d.ts +5 -2
  566. package/Utils/Slo/SloDuration.js +11 -6
  567. package/Utils/Slo/SloHealth.js +1 -1
  568. package/Utils/StateOrder.js +1 -4
  569. package/Utils/StateTimeline/StateTimelineRowDelete.js +1 -1
  570. package/Utils/Telemetry/HeartbeatAvailability.d.mts +4 -0
  571. package/Utils/Telemetry/HeartbeatAvailability.d.ts +4 -0
  572. package/Utils/Telemetry/HeartbeatAvailability.js +118 -26
  573. package/Utils/Uptime/DayUptimeGraphUtil.js +2 -2
  574. package/Utils/Uptime/UptimeMaintenanceUtil.js +2 -1
  575. package/Utils/ValueFormatter.d.mts +8 -6
  576. package/Utils/ValueFormatter.d.ts +8 -6
  577. package/Utils/ValueFormatter.js +145 -0
  578. package/package.json +1 -1
@@ -88,12 +88,47 @@ export declare function getOnCallTestPageDeliveryStatus(data: {
88
88
  isAcknowledged?: boolean | null | undefined;
89
89
  isDelivered?: boolean | null | undefined;
90
90
  }): OnCallTestPageDeliveryStatus;
91
+ export declare enum OnCallTestPageLineCode {
92
+ MethodNotVerified = "MethodNotVerified",
93
+ ChannelOff = "ChannelOff",
94
+ PushDeviceNoLongerReceives = "PushDeviceNoLongerReceives",
95
+ OptedOut = "OptedOut",
96
+ NoRuleNoFallback = "NoRuleNoFallback",
97
+ NoRuleFallsBack = "NoRuleFallsBack",
98
+ NoVerifiedMethod = "NoVerifiedMethod",
99
+ FallbackFailed = "FallbackFailed",
100
+ NotProjectMember = "NotProjectMember",
101
+ AwayWithNobodyCovering = "AwayWithNobodyCovering",
102
+ TeamHasNoMembers = "TeamHasNoMembers",
103
+ NobodyNextInRotation = "NobodyNextInRotation",
104
+ NobodyOnCall = "NobodyOnCall",
105
+ LevelHasNoResponders = "LevelHasNoResponders",
106
+ LevelPagedNobody = "LevelPagedNobody",
107
+ AlreadyPaged = "AlreadyPaged",
108
+ SendingToPerson = "SendingToPerson",
109
+ RulesRan = "RulesRan",
110
+ RunUnreadable = "RunUnreadable",
111
+ NobodyPaged = "NobodyPaged",
112
+ FirstLevelReachedNobody = "FirstLevelReachedNobody",
113
+ EndedUnanswered = "EndedUnanswered",
114
+ WentThroughEveryLevel = "WentThroughEveryLevel",
115
+ PolicyHasNoLevels = "PolicyHasNoLevels"
116
+ }
117
+ export interface OnCallTestPageLine {
118
+ code: OnCallTestPageLineCode;
119
+ channel?: OnCallPageChannel | undefined;
120
+ isMobileApp?: boolean | undefined;
121
+ name?: string | undefined;
122
+ awayUntil?: string | undefined;
123
+ minutes?: number | undefined;
124
+ }
91
125
  export interface OnCallTestPageDelivery {
92
126
  id: string;
93
127
  channel: OnCallPageChannel | null;
94
128
  address?: string | undefined;
95
129
  status: OnCallTestPageDeliveryStatus;
96
130
  statusMessage: string;
131
+ statusMessageCode?: OnCallTestPageLine | undefined;
97
132
  fix?: OnCallTestPageFix | undefined;
98
133
  canAcknowledge: boolean;
99
134
  sentAt: string;
@@ -116,6 +151,7 @@ export interface OnCallTestPageStep {
116
151
  coveringForName?: string | undefined;
117
152
  status: OnCallTestPageStepStatus;
118
153
  statusMessage: string;
154
+ statusMessageCode?: OnCallTestPageLine | undefined;
119
155
  deliveries: Array<OnCallTestPageDelivery>;
120
156
  }
121
157
  export interface OnCallTestPageResult {
@@ -128,6 +164,7 @@ export interface OnCallTestPageResult {
128
164
  walksEscalation: boolean;
129
165
  status: OnCallTestPageStatus;
130
166
  statusMessage: string;
167
+ statusMessageCode?: OnCallTestPageLine | undefined;
131
168
  startedAt: string;
132
169
  endsAt: string;
133
170
  acknowledgedByName?: string | undefined;
@@ -142,6 +179,7 @@ export interface OnCallTestPagePreviewMethod {
142
179
  notifyAfterMinutes: number;
143
180
  isVerified: boolean;
144
181
  canAcknowledge: boolean;
182
+ isFallback?: boolean | undefined;
145
183
  }
146
184
  export declare enum OnCallTestPageReachedThroughCode {
147
185
  Team = "Team",
@@ -157,6 +195,8 @@ export declare enum OnCallTestPageWarningCode {
157
195
  OptedOut = "OptedOut",
158
196
  NoRuleNoFallback = "NoRuleNoFallback",
159
197
  NoRuleFallsBack = "NoRuleFallsBack",
198
+ NoRuleFallsBackToListed = "NoRuleFallsBackToListed",
199
+ NoRuleNothingToFallBackTo = "NoRuleNothingToFallBackTo",
160
200
  ChannelOff = "ChannelOff",
161
201
  MethodNotVerified = "MethodNotVerified"
162
202
  }
@@ -200,6 +240,10 @@ export interface OnCallTestPageCost {
200
240
  callCount: number;
201
241
  whatsAppCount: number;
202
242
  telegramCount: number;
243
+ paidSmsCount?: number | undefined;
244
+ paidCallCount?: number | undefined;
245
+ paidWhatsAppCount?: number | undefined;
246
+ paidTelegramCount?: number | undefined;
203
247
  estimatedCostInUSDCents?: number | undefined;
204
248
  }
205
249
  export interface OnCallTestPagePreviewLevel {
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.OnCallTestPageNotPagedCode = exports.OnCallTestPageWarningCode = exports.OnCallTestPageReachedThroughCode = exports.OnCallTestPageStepStatus = exports.OnCallTestPageFix = exports.OnCallTestPageDeliveryStatus = exports.OnCallTestPageStatus = exports.OnCallTestPageKind = exports.ON_CALL_TEST_PAGE_NOTIFICATION_ACKNOWLEDGED_MESSAGE = exports.ON_CALL_TEST_PAGE_ANSWERED_MESSAGE = exports.ON_CALL_TEST_PAGE_ANSWERED_TITLE = exports.ON_CALL_TEST_PAGE_ACKNOWLEDGE_MESSAGE = exports.ON_CALL_TEST_PAGE_ACKNOWLEDGE_TITLE = exports.ON_CALL_TEST_PAGE_ACKNOWLEDGEABLE_CHANNELS = exports.ON_CALL_TEST_PAGE_RUN_UNREADABLE_MESSAGE = exports.ON_CALL_TEST_PAGE_RULES_RAN_MESSAGE = exports.ON_CALL_TEST_PAGE_WENT_THROUGH_EVERY_LEVEL_MESSAGE = exports.ON_CALL_TEST_PAGE_ENDED_UNANSWERED_MESSAGE = exports.ON_CALL_TEST_PAGE_FIRST_LEVEL_REACHED_NOBODY_MESSAGE = exports.ON_CALL_TEST_PAGE_FIRST_LEVEL_PAGED_MESSAGE = exports.ON_CALL_TEST_PAGE_NOBODY_PAGED_MESSAGE = exports.ON_CALL_TEST_PAGE_STARTED_ELSEWHERE_MESSAGE = exports.ON_CALL_TEST_PAGE_LIMIT_UNREADABLE_MESSAGE = exports.ON_CALL_TEST_PAGE_PROJECT_LIMIT_MESSAGE = exports.ON_CALL_TEST_PAGES_PER_PROJECT_PER_HOUR = exports.ON_CALL_TEST_PAGE_POLICY_INTERVAL_IN_SECONDS = exports.ON_CALL_TEST_PAGE_PERSON_INTERVAL_IN_SECONDS = exports.ON_CALL_TEST_PAGE_ESCALATION_WAIT_IN_MINUTES = exports.ON_CALL_TEST_PAGE_ANSWER_WINDOW_IN_MINUTES = exports.ON_CALL_TEST_PAGE_RECORD_KINDS = exports.OnCallTestPageRecordKind = void 0;
6
+ exports.OnCallTestPageNotPagedCode = exports.OnCallTestPageWarningCode = exports.OnCallTestPageReachedThroughCode = exports.OnCallTestPageStepStatus = exports.OnCallTestPageLineCode = exports.OnCallTestPageFix = exports.OnCallTestPageDeliveryStatus = exports.OnCallTestPageStatus = exports.OnCallTestPageKind = exports.ON_CALL_TEST_PAGE_NOTIFICATION_ACKNOWLEDGED_MESSAGE = exports.ON_CALL_TEST_PAGE_ANSWERED_MESSAGE = exports.ON_CALL_TEST_PAGE_ANSWERED_TITLE = exports.ON_CALL_TEST_PAGE_ACKNOWLEDGE_MESSAGE = exports.ON_CALL_TEST_PAGE_ACKNOWLEDGE_TITLE = exports.ON_CALL_TEST_PAGE_ACKNOWLEDGEABLE_CHANNELS = exports.ON_CALL_TEST_PAGE_RUN_UNREADABLE_MESSAGE = exports.ON_CALL_TEST_PAGE_RULES_RAN_MESSAGE = exports.ON_CALL_TEST_PAGE_WENT_THROUGH_EVERY_LEVEL_MESSAGE = exports.ON_CALL_TEST_PAGE_ENDED_UNANSWERED_MESSAGE = exports.ON_CALL_TEST_PAGE_FIRST_LEVEL_REACHED_NOBODY_MESSAGE = exports.ON_CALL_TEST_PAGE_FIRST_LEVEL_PAGED_MESSAGE = exports.ON_CALL_TEST_PAGE_NOBODY_PAGED_MESSAGE = exports.ON_CALL_TEST_PAGE_STARTED_ELSEWHERE_MESSAGE = exports.ON_CALL_TEST_PAGE_LIMIT_UNREADABLE_MESSAGE = exports.ON_CALL_TEST_PAGE_PROJECT_LIMIT_MESSAGE = exports.ON_CALL_TEST_PAGES_PER_PROJECT_PER_HOUR = exports.ON_CALL_TEST_PAGE_POLICY_INTERVAL_IN_SECONDS = exports.ON_CALL_TEST_PAGE_PERSON_INTERVAL_IN_SECONDS = exports.ON_CALL_TEST_PAGE_ESCALATION_WAIT_IN_MINUTES = exports.ON_CALL_TEST_PAGE_ANSWER_WINDOW_IN_MINUTES = exports.ON_CALL_TEST_PAGE_RECORD_KINDS = exports.OnCallTestPageRecordKind = void 0;
7
7
  exports.isOnCallTestPageRecordKind = isOnCallTestPageRecordKind;
8
8
  exports.getOnCallTestPageRuleType = getOnCallTestPageRuleType;
9
9
  exports.isOnCallTestPage = isOnCallTestPage;
@@ -428,6 +428,74 @@ function getOnCallTestPageDeliveryStatus(data) {
428
428
  return OnCallTestPageDeliveryStatus.Sending;
429
429
  }
430
430
  }
431
+ /*
432
+ * WHAT A RESULT'S LINE SAYS, AS A CODE (#7260). A message that did not go
433
+ * out, a person or target that was not paged, and how the test ended are
434
+ * written on the run's rows in English, for every reader of the execution
435
+ * logs. The result reads the lines it knows back into a code with the
436
+ * values it names (OnCallTestPageLine.ts), so the Dashboard words it in the
437
+ * reader's language. Each line keeps its English `statusMessage`: for other
438
+ * readers of the API, for a Dashboard that does not know a code yet, and
439
+ * for a line no code stands for - a provider's own error, which is shown
440
+ * as written.
441
+ */
442
+ var OnCallTestPageLineCode;
443
+ (function (OnCallTestPageLineCode) {
444
+ /*
445
+ * A MESSAGE'S LINE. Its method is not verified - a custom channel: turned
446
+ * off - so the test did not use it. `channel`.
447
+ */
448
+ OnCallTestPageLineCode["MethodNotVerified"] = "MethodNotVerified";
449
+ // Its channel is switched off in the project. `channel`.
450
+ OnCallTestPageLineCode["ChannelOff"] = "ChannelOff";
451
+ /*
452
+ * Its push device, or browser, no longer receives push notifications.
453
+ * `isMobileApp`: a phone's app rather than a browser.
454
+ */
455
+ OnCallTestPageLineCode["PushDeviceNoLongerReceives"] = "PushDeviceNoLongerReceives";
456
+ // A PERSON'S, OR A TARGET'S, LINE. They opted out of pages of this severity.
457
+ OnCallTestPageLineCode["OptedOut"] = "OptedOut";
458
+ // No rule covers the severity, and the project does not fall back.
459
+ OnCallTestPageLineCode["NoRuleNoFallback"] = "NoRuleNoFallback";
460
+ // No rule covers the severity: their verified methods were paged instead.
461
+ OnCallTestPageLineCode["NoRuleFallsBack"] = "NoRuleFallsBack";
462
+ // No rule covers the severity, and they have no verified method. `name`.
463
+ OnCallTestPageLineCode["NoVerifiedMethod"] = "NoVerifiedMethod";
464
+ // No rule covers the severity, and paging their verified methods failed.
465
+ OnCallTestPageLineCode["FallbackFailed"] = "FallbackFailed";
466
+ // They are not a member of the project. `name`.
467
+ OnCallTestPageLineCode["NotProjectMember"] = "NotProjectMember";
468
+ // They are away, and nobody covers for them. `name`, `awayUntil`.
469
+ OnCallTestPageLineCode["AwayWithNobodyCovering"] = "AwayWithNobodyCovering";
470
+ // A team the level names has no members. `name`: the team's.
471
+ OnCallTestPageLineCode["TeamHasNoMembers"] = "TeamHasNoMembers";
472
+ // A schedule it pages by rotation has nobody next. `name`: the schedule's.
473
+ OnCallTestPageLineCode["NobodyNextInRotation"] = "NobodyNextInRotation";
474
+ // A schedule it names has nobody on call. `name`: the schedule's.
475
+ OnCallTestPageLineCode["NobodyOnCall"] = "NobodyOnCall";
476
+ // The level names nobody: the run moved on at once.
477
+ OnCallTestPageLineCode["LevelHasNoResponders"] = "LevelHasNoResponders";
478
+ // The level named somebody and paged nobody: the run moved on at once.
479
+ OnCallTestPageLineCode["LevelPagedNobody"] = "LevelPagedNobody";
480
+ // Paged already by this test, so not paged again.
481
+ OnCallTestPageLineCode["AlreadyPaged"] = "AlreadyPaged";
482
+ // Being paged: their messages are on their way.
483
+ OnCallTestPageLineCode["SendingToPerson"] = "SendingToPerson";
484
+ // Every rule for the severity ran.
485
+ OnCallTestPageLineCode["RulesRan"] = "RulesRan";
486
+ // The test does not say which kind and severity it tests.
487
+ OnCallTestPageLineCode["RunUnreadable"] = "RunUnreadable";
488
+ // THE TEST'S OWN LINE, once it ended or failed. It reached nobody.
489
+ OnCallTestPageLineCode["NobodyPaged"] = "NobodyPaged";
490
+ // Its first level reached nobody.
491
+ OnCallTestPageLineCode["FirstLevelReachedNobody"] = "FirstLevelReachedNobody";
492
+ // Nobody acknowledged it in time. `minutes`.
493
+ OnCallTestPageLineCode["EndedUnanswered"] = "EndedUnanswered";
494
+ // It went through every level, and nobody acknowledged it.
495
+ OnCallTestPageLineCode["WentThroughEveryLevel"] = "WentThroughEveryLevel";
496
+ // The policy has no escalation levels.
497
+ OnCallTestPageLineCode["PolicyHasNoLevels"] = "PolicyHasNoLevels";
498
+ })(OnCallTestPageLineCode || (exports.OnCallTestPageLineCode = OnCallTestPageLineCode = {}));
431
499
  // What became of one person, or one target, of a test.
432
500
  var OnCallTestPageStepStatus;
433
501
  (function (OnCallTestPageStepStatus) {
@@ -471,8 +539,23 @@ var OnCallTestPageWarningCode;
471
539
  OnCallTestPageWarningCode["OptedOut"] = "OptedOut";
472
540
  // No rule covers the severity, and the project does not fall back.
473
541
  OnCallTestPageWarningCode["NoRuleNoFallback"] = "NoRuleNoFallback";
474
- // No rule covers the severity: the test goes to every verified method.
542
+ /*
543
+ * No rule covers the severity: the test goes to every verified method.
544
+ * Said by a preview that does not read what the fallback picks; one that
545
+ * does says one of the two below instead (#7262).
546
+ */
475
547
  OnCallTestPageWarningCode["NoRuleFallsBack"] = "NoRuleFallsBack";
548
+ /*
549
+ * No rule covers the severity: like a real page, the test falls back to
550
+ * the methods listed for the person - the ones the fallback picks.
551
+ */
552
+ OnCallTestPageWarningCode["NoRuleFallsBackToListed"] = "NoRuleFallsBackToListed";
553
+ /*
554
+ * No rule covers the severity, and the fallback has no method it may use
555
+ * (none verified, or only ones on channels the project turned off): the
556
+ * test sends the person nothing.
557
+ */
558
+ OnCallTestPageWarningCode["NoRuleNothingToFallBackTo"] = "NoRuleNothingToFallBackTo";
476
559
  // A channel a rule of theirs uses is switched off in the project.
477
560
  OnCallTestPageWarningCode["ChannelOff"] = "ChannelOff";
478
561
  // A method a rule of theirs uses is not verified (a custom channel: off).
@@ -520,9 +603,13 @@ function isOnCallTestPageWalkLevelReached(startsAfterMinutes) {
520
603
  return startsAfterMinutes < exports.ON_CALL_TEST_PAGE_ANSWER_WINDOW_IN_MINUTES;
521
604
  }
522
605
  /*
523
- * What a test costs, from what each person's methods are. A project's own
524
- * Twilio account pays for its SMS and calls itself; WhatsApp and Telegram
525
- * are always paid from the balance where billing is on.
606
+ * What a test costs, from what each person's methods are - the ones their
607
+ * rules name, or the ones the fallback picks for a person with no rule
608
+ * (#7262): each verified one is sent. A project's own Twilio account pays
609
+ * for its SMS and calls itself; WhatsApp and Telegram are always paid from
610
+ * the balance where billing is on. It counts what is sent, and beside it
611
+ * what the balance pays for (#7263): a sentence that says "paid from this
612
+ * project's SMS and call balance" lists only that.
526
613
  */
527
614
  function getOnCallTestPageCost(data) {
528
615
  let smsCount = 0;
@@ -559,6 +646,10 @@ function getOnCallTestPageCost(data) {
559
646
  callCount: callCount,
560
647
  whatsAppCount: whatsAppCount,
561
648
  telegramCount: telegramCount,
649
+ paidSmsCount: paidSms,
650
+ paidCallCount: paidCalls,
651
+ paidWhatsAppCount: paidWhatsApp,
652
+ paidTelegramCount: paidTelegram,
562
653
  };
563
654
  if (isPaid && data.prices) {
564
655
  // A test call is a short one: a minute.
@@ -24,6 +24,7 @@ export const ON_CALL_TEST_PAGE_WENT_THROUGH_EVERY_LEVEL_MESSAGE = commonJsModule
24
24
  export const OnCallTestPageDeliveryStatus = commonJsModule.OnCallTestPageDeliveryStatus;
25
25
  export const OnCallTestPageFix = commonJsModule.OnCallTestPageFix;
26
26
  export const OnCallTestPageKind = commonJsModule.OnCallTestPageKind;
27
+ export const OnCallTestPageLineCode = commonJsModule.OnCallTestPageLineCode;
27
28
  export const OnCallTestPageNotPagedCode = commonJsModule.OnCallTestPageNotPagedCode;
28
29
  export const OnCallTestPageReachedThroughCode = commonJsModule.OnCallTestPageReachedThroughCode;
29
30
  export const OnCallTestPageRecordKind = commonJsModule.OnCallTestPageRecordKind;
@@ -0,0 +1,19 @@
1
+ import { OnCallPageChannel } from "./OnCallPageChannel.mjs";
2
+ import { OnCallTestPageLine } from "./OnCallTestPage.mjs";
3
+ export type OnCallTestPageNotVerifiedChannel = OnCallPageChannel.Email | OnCallPageChannel.SMS | OnCallPageChannel.WhatsApp | OnCallPageChannel.Call | OnCallPageChannel.Telegram | OnCallPageChannel.Slack | OnCallPageChannel.MicrosoftTeams | OnCallPageChannel.Mattermost;
4
+ export declare function getOnCallTestPageNotVerifiedMessage(data: {
5
+ channel: OnCallTestPageNotVerifiedChannel;
6
+ address?: string | undefined;
7
+ }): string;
8
+ export declare function getOnCallTestPageCustomChannelOffMessage(channelName: string): string;
9
+ export declare function readOnCallTestPageDeliveryLine(data: {
10
+ statusMessage: string | null | undefined;
11
+ channel: OnCallPageChannel | null | undefined;
12
+ }): OnCallTestPageLine | null;
13
+ export declare function readOnCallTestPageStepLine(data: {
14
+ statusMessage: string | null | undefined;
15
+ userName?: string | undefined;
16
+ teamName?: string | undefined;
17
+ scheduleName?: string | undefined;
18
+ }): OnCallTestPageLine | null;
19
+ export declare function readOnCallTestPageRunLine(statusMessage: string | null | undefined): OnCallTestPageLine | null;
@@ -0,0 +1,19 @@
1
+ import { OnCallPageChannel } from "./OnCallPageChannel";
2
+ import { OnCallTestPageLine } from "./OnCallTestPage";
3
+ export type OnCallTestPageNotVerifiedChannel = OnCallPageChannel.Email | OnCallPageChannel.SMS | OnCallPageChannel.WhatsApp | OnCallPageChannel.Call | OnCallPageChannel.Telegram | OnCallPageChannel.Slack | OnCallPageChannel.MicrosoftTeams | OnCallPageChannel.Mattermost;
4
+ export declare function getOnCallTestPageNotVerifiedMessage(data: {
5
+ channel: OnCallTestPageNotVerifiedChannel;
6
+ address?: string | undefined;
7
+ }): string;
8
+ export declare function getOnCallTestPageCustomChannelOffMessage(channelName: string): string;
9
+ export declare function readOnCallTestPageDeliveryLine(data: {
10
+ statusMessage: string | null | undefined;
11
+ channel: OnCallPageChannel | null | undefined;
12
+ }): OnCallTestPageLine | null;
13
+ export declare function readOnCallTestPageStepLine(data: {
14
+ statusMessage: string | null | undefined;
15
+ userName?: string | undefined;
16
+ teamName?: string | undefined;
17
+ scheduleName?: string | undefined;
18
+ }): OnCallTestPageLine | null;
19
+ export declare function readOnCallTestPageRunLine(statusMessage: string | null | undefined): OnCallTestPageLine | null;
@@ -0,0 +1,222 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getOnCallTestPageNotVerifiedMessage = getOnCallTestPageNotVerifiedMessage;
4
+ exports.getOnCallTestPageCustomChannelOffMessage = getOnCallTestPageCustomChannelOffMessage;
5
+ exports.readOnCallTestPageDeliveryLine = readOnCallTestPageDeliveryLine;
6
+ exports.readOnCallTestPageStepLine = readOnCallTestPageStepLine;
7
+ exports.readOnCallTestPageRunLine = readOnCallTestPageRunLine;
8
+ const NotificationChannels_1 = require("../../Utils/Project/NotificationChannels");
9
+ const AlreadyPagedTimelineMessage_1 = require("./AlreadyPagedTimelineMessage");
10
+ const AwayTimelineMessage_1 = require("./AwayTimelineMessage");
11
+ const OnCallDirectPage_1 = require("./OnCallDirectPage");
12
+ const OnCallDutyPolicyRunEnding_1 = require("./OnCallDutyPolicyRunEnding");
13
+ const OnCallEmptyLevel_1 = require("./OnCallEmptyLevel");
14
+ const OnCallPageLine_1 = require("./OnCallPageLine");
15
+ const OnCallPageChannel_1 = require("./OnCallPageChannel");
16
+ const OnCallTestPage_1 = require("./OnCallTestPage");
17
+ const NextInRotation_1 = require("./NextInRotation");
18
+ /*
19
+ * How each line is written: around the method's address for an email or a
20
+ * phone number, as a whole for an account.
21
+ */
22
+ const NOT_VERIFIED_LINES = {
23
+ [OnCallPageChannel_1.OnCallPageChannel.Email]: {
24
+ prefix: "Email notification not sent because email ",
25
+ suffix: " is not verified.",
26
+ },
27
+ [OnCallPageChannel_1.OnCallPageChannel.SMS]: {
28
+ prefix: "SMS not sent because phone ",
29
+ suffix: " is not verified.",
30
+ },
31
+ [OnCallPageChannel_1.OnCallPageChannel.WhatsApp]: {
32
+ prefix: "WhatsApp message not sent because phone ",
33
+ suffix: " is not verified.",
34
+ },
35
+ [OnCallPageChannel_1.OnCallPageChannel.Call]: {
36
+ prefix: "Call not sent because phone ",
37
+ suffix: " is not verified.",
38
+ },
39
+ [OnCallPageChannel_1.OnCallPageChannel.Telegram]: {
40
+ whole: "Telegram message not sent because the Telegram account is not verified.",
41
+ },
42
+ [OnCallPageChannel_1.OnCallPageChannel.Slack]: {
43
+ whole: "Slack message not sent because the Slack account is not verified.",
44
+ },
45
+ [OnCallPageChannel_1.OnCallPageChannel.MicrosoftTeams]: {
46
+ whole: "Microsoft Teams message not sent because the Microsoft Teams account is not verified.",
47
+ },
48
+ [OnCallPageChannel_1.OnCallPageChannel.Mattermost]: {
49
+ whole: "Mattermost message not sent because the Mattermost account is not verified.",
50
+ },
51
+ };
52
+ /*
53
+ * A message a test did not send, because its method is not verified:
54
+ * "SMS not sent because phone +15550100 is not verified."
55
+ */
56
+ function getOnCallTestPageNotVerifiedMessage(data) {
57
+ const line = NOT_VERIFIED_LINES[data.channel];
58
+ if ("whole" in line) {
59
+ return line.whole;
60
+ }
61
+ return `${line.prefix}${data.address || ""}${line.suffix}`;
62
+ }
63
+ function isNotVerifiedMessage(message, channel) {
64
+ const line = NOT_VERIFIED_LINES[channel] || null;
65
+ if (!line) {
66
+ return false;
67
+ }
68
+ if ("whole" in line) {
69
+ return message === line.whole;
70
+ }
71
+ return (message.length > line.prefix.length + line.suffix.length &&
72
+ message.startsWith(line.prefix) &&
73
+ message.endsWith(line.suffix));
74
+ }
75
+ /*
76
+ * A message a test did not send to a custom channel that is turned off:
77
+ * "Not sent: Ops bridge is turned off."
78
+ */
79
+ const CUSTOM_CHANNEL_OFF_PREFIX = "Not sent: ";
80
+ const CUSTOM_CHANNEL_OFF_SUFFIX = " is turned off.";
81
+ function getOnCallTestPageCustomChannelOffMessage(channelName) {
82
+ return `${CUSTOM_CHANNEL_OFF_PREFIX}${channelName}${CUSTOM_CHANNEL_OFF_SUFFIX}`;
83
+ }
84
+ function isCustomChannelOffMessage(message) {
85
+ return (message.length >
86
+ CUSTOM_CHANNEL_OFF_PREFIX.length + CUSTOM_CHANNEL_OFF_SUFFIX.length &&
87
+ message.startsWith(CUSTOM_CHANNEL_OFF_PREFIX) &&
88
+ message.endsWith(CUSTOM_CHANNEL_OFF_SUFFIX));
89
+ }
90
+ // The channels the project can switch off, by the page's name for them.
91
+ const PROJECT_CHANNEL_OF = {
92
+ [OnCallPageChannel_1.OnCallPageChannel.SMS]: NotificationChannels_1.ProjectNotificationChannel.SMS,
93
+ [OnCallPageChannel_1.OnCallPageChannel.Call]: NotificationChannels_1.ProjectNotificationChannel.Call,
94
+ [OnCallPageChannel_1.OnCallPageChannel.WhatsApp]: NotificationChannels_1.ProjectNotificationChannel.WhatsApp,
95
+ [OnCallPageChannel_1.OnCallPageChannel.Telegram]: NotificationChannels_1.ProjectNotificationChannel.Telegram,
96
+ };
97
+ /*
98
+ * What one message's line says, as a code: a method that is not verified,
99
+ * a channel switched off in the project, a push device that no longer
100
+ * receives. Null for any other line - a provider's own error, a message on
101
+ * its way - and for a row that names no method.
102
+ */
103
+ function readOnCallTestPageDeliveryLine(data) {
104
+ const message = (data.statusMessage || "").trim();
105
+ const channel = data.channel;
106
+ if (!message || !channel) {
107
+ return null;
108
+ }
109
+ if (isNotVerifiedMessage(message, channel)) {
110
+ return { code: OnCallTestPage_1.OnCallTestPageLineCode.MethodNotVerified, channel: channel };
111
+ }
112
+ if (channel === OnCallPageChannel_1.OnCallPageChannel.CustomChannel &&
113
+ isCustomChannelOffMessage(message)) {
114
+ return { code: OnCallTestPage_1.OnCallTestPageLineCode.MethodNotVerified, channel: channel };
115
+ }
116
+ if (channel === OnCallPageChannel_1.OnCallPageChannel.Push) {
117
+ if (message === OnCallPageLine_1.PUSH_NOT_SENT_TO_APP_THAT_NO_LONGER_RECEIVES_MESSAGE) {
118
+ return {
119
+ code: OnCallTestPage_1.OnCallTestPageLineCode.PushDeviceNoLongerReceives,
120
+ isMobileApp: true,
121
+ };
122
+ }
123
+ if (message === OnCallPageLine_1.PUSH_NOT_SENT_TO_BROWSER_THAT_NO_LONGER_RECEIVES_MESSAGE) {
124
+ return {
125
+ code: OnCallTestPage_1.OnCallTestPageLineCode.PushDeviceNoLongerReceives,
126
+ isMobileApp: false,
127
+ };
128
+ }
129
+ }
130
+ const projectChannel = PROJECT_CHANNEL_OF[channel];
131
+ if (projectChannel &&
132
+ message === (0, NotificationChannels_1.getProjectNotificationChannelOffMessage)(projectChannel)) {
133
+ return { code: OnCallTestPage_1.OnCallTestPageLineCode.ChannelOff, channel: channel };
134
+ }
135
+ return null;
136
+ }
137
+ // A code that names somebody, or something, by name - when there is one.
138
+ function withName(code, name) {
139
+ return name ? { code: code, name: name } : { code: code };
140
+ }
141
+ /*
142
+ * What one line of the run's timeline says - a person, a team, a schedule
143
+ * or a level - as a code with the name it is about. Null for any other line.
144
+ */
145
+ function readOnCallTestPageStepLine(data) {
146
+ const message = (data.statusMessage || "").trim();
147
+ if (!message) {
148
+ return null;
149
+ }
150
+ // The line a page with no rule writes, whichever name of the page it gives.
151
+ if ((0, OnCallPageLine_1.isOnCallNoNotificationRulesStatusMessage)(message)) {
152
+ return { code: OnCallTestPage_1.OnCallTestPageLineCode.NoRuleNoFallback };
153
+ }
154
+ switch (message) {
155
+ case OnCallPageLine_1.NOT_A_PROJECT_MEMBER_STATUS_MESSAGE:
156
+ case OnCallPageLine_1.NOT_A_PROJECT_MEMBER_TIMELINE_MESSAGE:
157
+ return withName(OnCallTestPage_1.OnCallTestPageLineCode.NotProjectMember, data.userName);
158
+ case OnCallDirectPage_1.ON_CALL_DIRECT_PAGE_EMPTY_TEAM_TIMELINE_MESSAGE:
159
+ return withName(OnCallTestPage_1.OnCallTestPageLineCode.TeamHasNoMembers, data.teamName);
160
+ case NextInRotation_1.NOBODY_NEXT_IN_ROTATION_TIMELINE_MESSAGE:
161
+ return withName(OnCallTestPage_1.OnCallTestPageLineCode.NobodyNextInRotation, data.scheduleName);
162
+ case OnCallPageLine_1.NOBODY_ON_CALL_IN_SCHEDULE_TIMELINE_MESSAGE:
163
+ return withName(OnCallTestPage_1.OnCallTestPageLineCode.NobodyOnCall, data.scheduleName);
164
+ case AlreadyPagedTimelineMessage_1.ALREADY_PAGED_TIMELINE_MESSAGE:
165
+ return { code: OnCallTestPage_1.OnCallTestPageLineCode.AlreadyPaged };
166
+ case OnCallPageLine_1.SENDING_NOTIFICATION_TO_USER_TIMELINE_MESSAGE:
167
+ return { code: OnCallTestPage_1.OnCallTestPageLineCode.SendingToPerson };
168
+ case OnCallTestPage_1.ON_CALL_TEST_PAGE_RULES_RAN_MESSAGE:
169
+ return { code: OnCallTestPage_1.OnCallTestPageLineCode.RulesRan };
170
+ case OnCallTestPage_1.ON_CALL_TEST_PAGE_RUN_UNREADABLE_MESSAGE:
171
+ return { code: OnCallTestPage_1.OnCallTestPageLineCode.RunUnreadable };
172
+ }
173
+ switch ((0, OnCallEmptyLevel_1.readOnCallEmptyLevelLine)(message)) {
174
+ case OnCallEmptyLevel_1.OnCallEmptyLevelLine.NoResponders:
175
+ return { code: OnCallTestPage_1.OnCallTestPageLineCode.LevelHasNoResponders };
176
+ case OnCallEmptyLevel_1.OnCallEmptyLevelLine.PagedNobody:
177
+ return { code: OnCallTestPage_1.OnCallTestPageLineCode.LevelPagedNobody };
178
+ default:
179
+ break;
180
+ }
181
+ const awayUntil = (0, AwayTimelineMessage_1.readAwayUntil)(message);
182
+ if (awayUntil) {
183
+ return Object.assign(Object.assign({}, withName(OnCallTestPage_1.OnCallTestPageLineCode.AwayWithNobodyCovering, data.userName)), { awayUntil: awayUntil.toISOString() });
184
+ }
185
+ if ((0, OnCallPageLine_1.isOnCallOptedOutStatusMessage)(message)) {
186
+ return { code: OnCallTestPage_1.OnCallTestPageLineCode.OptedOut };
187
+ }
188
+ if ((0, OnCallPageLine_1.isOnCallFallbackNotifiedStatusMessage)(message)) {
189
+ return { code: OnCallTestPage_1.OnCallTestPageLineCode.NoRuleFallsBack };
190
+ }
191
+ if ((0, OnCallPageLine_1.isOnCallNoVerifiedMethodStatusMessage)(message)) {
192
+ return withName(OnCallTestPage_1.OnCallTestPageLineCode.NoVerifiedMethod, data.userName);
193
+ }
194
+ if ((0, OnCallPageLine_1.isOnCallFallbackFailedStatusMessage)(message)) {
195
+ return { code: OnCallTestPage_1.OnCallTestPageLineCode.FallbackFailed };
196
+ }
197
+ return null;
198
+ }
199
+ /*
200
+ * What the run's own line says once the test ended or failed, as a code.
201
+ * Null for any other line - one that is still paging, an error's own words.
202
+ */
203
+ function readOnCallTestPageRunLine(statusMessage) {
204
+ switch ((statusMessage || "").trim()) {
205
+ case OnCallTestPage_1.ON_CALL_TEST_PAGE_NOBODY_PAGED_MESSAGE:
206
+ case OnCallDutyPolicyRunEnding_1.ON_CALL_POLICY_RUN_NOBODY_NOTIFIED_MESSAGE:
207
+ return { code: OnCallTestPage_1.OnCallTestPageLineCode.NobodyPaged };
208
+ case OnCallTestPage_1.ON_CALL_TEST_PAGE_FIRST_LEVEL_REACHED_NOBODY_MESSAGE:
209
+ return { code: OnCallTestPage_1.OnCallTestPageLineCode.FirstLevelReachedNobody };
210
+ case OnCallTestPage_1.ON_CALL_TEST_PAGE_ENDED_UNANSWERED_MESSAGE:
211
+ return {
212
+ code: OnCallTestPage_1.OnCallTestPageLineCode.EndedUnanswered,
213
+ minutes: OnCallTestPage_1.ON_CALL_TEST_PAGE_ANSWER_WINDOW_IN_MINUTES,
214
+ };
215
+ case OnCallTestPage_1.ON_CALL_TEST_PAGE_WENT_THROUGH_EVERY_LEVEL_MESSAGE:
216
+ return { code: OnCallTestPage_1.OnCallTestPageLineCode.WentThroughEveryLevel };
217
+ case OnCallPageLine_1.ON_CALL_POLICY_HAS_NO_ESCALATION_RULES_MESSAGE:
218
+ return { code: OnCallTestPage_1.OnCallTestPageLineCode.PolicyHasNoLevels };
219
+ default:
220
+ return null;
221
+ }
222
+ }
@@ -0,0 +1,6 @@
1
+ import commonJsModule from "./OnCallTestPageLine.js";
2
+ export const getOnCallTestPageCustomChannelOffMessage = commonJsModule.getOnCallTestPageCustomChannelOffMessage;
3
+ export const getOnCallTestPageNotVerifiedMessage = commonJsModule.getOnCallTestPageNotVerifiedMessage;
4
+ export const readOnCallTestPageDeliveryLine = commonJsModule.readOnCallTestPageDeliveryLine;
5
+ export const readOnCallTestPageRunLine = commonJsModule.readOnCallTestPageRunLine;
6
+ export const readOnCallTestPageStepLine = commonJsModule.readOnCallTestPageStepLine;
@@ -22,7 +22,9 @@ const RestrictionTimes_1 = __importDefault(require("./RestrictionTimes"));
22
22
  *
23
23
  * A new layer:
24
24
  *
25
- * - is on call from now: the first person in it is on call at once;
25
+ * - is on call from now: the first person in it is on call at once. Now
26
+ * is the minute it is (11:15, not 11:15:52), as Rotation starts at shows
27
+ * it, so its hand-offs fall on the minute every summary prints;
26
28
  * - hands off once a week, the rotation most on-call teams run, unless the
27
29
  * caller picks another;
28
30
  * - hands off for the first time one rotation after it starts, at the same
@@ -80,7 +82,8 @@ const getFirstHandOffTime = (data) => {
80
82
  exports.getFirstHandOffTime = getFirstHandOffTime;
81
83
  // A new layer, ready to be created (see the note at the top).
82
84
  const buildNewScheduleLayer = (data) => {
83
- const startsAt = data.startsAt || Date_1.default.getCurrentDate();
85
+ const startsAt = data.startsAt ||
86
+ Date_1.default.getStartOfMinute(Date_1.default.getCurrentDate());
84
87
  // A copy: the layer must not share a rotation the caller may change.
85
88
  const rotation = data.rotation
86
89
  ? Recurring_1.default.fromJSON(Recurring_1.default.fromJSON(data.rotation).toJSON())
@@ -0,0 +1,92 @@
1
+ import { JSONObject } from "../JSON.mjs";
2
+ export declare const SCHEDULE_LAYERS_SAVE_ROUTE: string;
3
+ export declare const getScheduleLayersSaveRoute: (scheduleId: string) => string;
4
+ export declare const SCHEDULE_LAYERS_SAVE_MAX_LAYERS: number;
5
+ export declare const SCHEDULE_LAYERS_SAVE_MAX_USERS_PER_LAYER: number;
6
+ export declare const SCHEDULE_LAYERS_SAVE_MAX_USERS: number;
7
+ export interface ScheduleLayersSaveUser {
8
+ layerUserId?: string | undefined;
9
+ userId: string;
10
+ }
11
+ export interface ScheduleLayersSaveLayer {
12
+ layerId: string;
13
+ users: Array<ScheduleLayersSaveUser>;
14
+ }
15
+ export interface ScheduleLayersSaveRequest {
16
+ basedOnVersion: string;
17
+ layers: Array<ScheduleLayersSaveLayer>;
18
+ deletedLayerIds: Array<string>;
19
+ }
20
+ export interface ScheduleLayersStateLayer {
21
+ id: string;
22
+ order: number;
23
+ }
24
+ export interface ScheduleLayersStateLayerUser {
25
+ id: string;
26
+ layerId: string;
27
+ userId: string;
28
+ order: number;
29
+ }
30
+ export interface ScheduleLayersState {
31
+ layers: Array<ScheduleLayersStateLayer>;
32
+ layerUsers: Array<ScheduleLayersStateLayerUser>;
33
+ }
34
+ export interface ScheduleLayerChanges {
35
+ layerId: string;
36
+ addedCount: number;
37
+ removedCount: number;
38
+ isTurnOrderChanged: boolean;
39
+ }
40
+ export interface ScheduleLayersChanges {
41
+ hasChanges: boolean;
42
+ isLayerOrderChanged: boolean;
43
+ deletedLayerIds: Array<string>;
44
+ layers: Array<ScheduleLayerChanges>;
45
+ }
46
+ export interface ScheduleLayerOrderWrite {
47
+ layer: ScheduleLayersStateLayer;
48
+ order: number;
49
+ }
50
+ export interface ScheduleLayerUserOrderWrite {
51
+ layerUser: ScheduleLayersStateLayerUser;
52
+ order: number;
53
+ }
54
+ export interface ScheduleLayerUserCreate {
55
+ layerId: string;
56
+ userId: string;
57
+ order: number;
58
+ }
59
+ export interface ScheduleLayersSavePlan {
60
+ layerDeletes: Array<ScheduleLayersStateLayer>;
61
+ layerOrderUpdates: Array<ScheduleLayerOrderWrite>;
62
+ layerUserDeletes: Array<ScheduleLayersStateLayerUser>;
63
+ layerUserOrderUpdates: Array<ScheduleLayerUserOrderWrite>;
64
+ layerUserCreates: Array<ScheduleLayerUserCreate>;
65
+ layerUsersOfDeletedLayers: Array<ScheduleLayersStateLayerUser>;
66
+ layerOrderUpdatesAreMoves: boolean;
67
+ layerUserMoves: Array<ScheduleLayerUserOrderWrite>;
68
+ changes: ScheduleLayersChanges;
69
+ }
70
+ export interface ScheduleLayersSaveResult {
71
+ version: string;
72
+ deletedLayers: number;
73
+ movedLayers: number;
74
+ addedLayerUsers: number;
75
+ removedLayerUsers: number;
76
+ movedLayerUsers: number;
77
+ }
78
+ export default class ScheduleLayersSaveUtil {
79
+ static getVersion(state: ScheduleLayersState): string;
80
+ static getLayerUsersInTurnOrder(state: ScheduleLayersState, layerId: string): Array<ScheduleLayersStateLayerUser>;
81
+ static getLayersInPriorityOrder(state: ScheduleLayersState): Array<ScheduleLayersStateLayer>;
82
+ static getUnchangedRequest(state: ScheduleLayersState): ScheduleLayersSaveRequest;
83
+ static requestToJSON(request: ScheduleLayersSaveRequest): JSONObject;
84
+ static parseRequest(body: unknown): ScheduleLayersSaveRequest;
85
+ static plan(data: {
86
+ state: ScheduleLayersState;
87
+ request: ScheduleLayersSaveRequest;
88
+ }): ScheduleLayersSavePlan;
89
+ static isEmpty(plan: ScheduleLayersSavePlan): boolean;
90
+ static resultToJSON(result: ScheduleLayersSaveResult): JSONObject;
91
+ static resultFromJSON(json: unknown): ScheduleLayersSaveResult;
92
+ }