@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
package/Types/Date.js CHANGED
@@ -36,7 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
36
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.ARABIC_DATE_TIME_SEPARATOR = exports.DATE_TIME_SEPARATOR = exports.Moment = void 0;
39
+ exports.ZERO_FRIENDLY_TIME_TEXT = exports.ARABIC_DATE_TIME_SEPARATOR = exports.DATE_TIME_SEPARATOR = exports.Moment = void 0;
40
40
  const InBetween_1 = __importDefault(require("./BaseDatabase/InBetween"));
41
41
  const DayOfWeek_1 = __importStar(require("./Day/DayOfWeek"));
42
42
  const BadDataException_1 = __importDefault(require("./Exception/BadDataException"));
@@ -51,8 +51,15 @@ exports.Moment = moment_timezone_1.default;
51
51
  /*
52
52
  * The custom shapes (getDateAsCustomFormattedStringInTimezone) a date's words
53
53
  * are written in the reader's language for, as Intl asks for them. A shape
54
- * with no words in it ("YYYY", "HH:mm:ss.SSS") reads the same in every
55
- * language; one that is not listed is written by moment, in English.
54
+ * with no words in it still takes the reader's digits: "HH:mm" here
55
+ * ("۲۲:۲۷" on a Persian page), and READER_DIGIT_CUSTOM_DATE_FORMATS, whose
56
+ * shapes keep moment's marks. A shape in neither list is moment's, in
57
+ * English and in Latin digits ("YYYY-MM-DD", which callers compare rather
58
+ * than show), so a shape a page shows belongs in one of them.
59
+ *
60
+ * English's "hh" keeps a 12-hour time's zero ("05:01 PM"), as moment writes
61
+ * it; no other language writes one there ("오후 5:01", "5:01 م"), so the
62
+ * reader's language takes the hour without it (getHourOption, issue #7279).
56
63
  */
57
64
  const LOCALIZED_CUSTOM_DATE_FORMATS = {
58
65
  "MMM D": { month: "short", day: "numeric" },
@@ -64,10 +71,23 @@ const LOCALIZED_CUSTOM_DATE_FORMATS = {
64
71
  "MMMM YYYY": { month: "long", year: "numeric" },
65
72
  "MMMM D, YYYY": { month: "long", day: "numeric", year: "numeric" },
66
73
  "h:mm A": { hour: "numeric", minute: "2-digit", hour12: true },
67
- "hh:mm A": { hour: "2-digit", minute: "2-digit", hour12: true },
74
+ "hh:mm A": { hour: (0, DateLanguage_1.getHourOption)(true), minute: "2-digit", hour12: true },
68
75
  // A 24-hour time of day, in the reader's digits: "۲۲:۲۷" on a Persian page.
69
76
  "HH:mm": { hour: "2-digit", minute: "2-digit", hourCycle: "h23" },
70
77
  };
78
+ /*
79
+ * The custom shapes with no words in them that are written as moment writes
80
+ * them, in the reader's digits (inReaderDigits) - the digits "HH:mm" takes:
81
+ * Persian's own, and the Latin ones of every other language of the
82
+ * product, Arabic too. Only the digits change, so the shape is the same in
83
+ * every language; Intl would put a comma before the milliseconds in German
84
+ * ("11:55:59,120") and dots between the hours, minutes and seconds in
85
+ * Danish ("11.55.59,120").
86
+ */
87
+ const READER_DIGIT_CUSTOM_DATE_FORMATS = [
88
+ // An exception breadcrumb's Clock time: "۱۱:۵۵:۵۹.۱۲۰" on a Persian page.
89
+ "HH:mm:ss.SSS",
90
+ ];
71
91
  // A whole number of nanoseconds, as fromUnixNano reads one exactly.
72
92
  const UNIX_NANO_INTEGER_PATTERN = /^[+-]?\d+$/;
73
93
  /*
@@ -124,6 +144,8 @@ const CLICKHOUSE_DATE_TIME_MEMO_SLOTS = 256;
124
144
  // NaN never equals a second, so an empty slot is never read.
125
145
  const clickhouseDateTimeMemoSeconds = new Float64Array(CLICKHOUSE_DATE_TIME_MEMO_SLOTS).fill(Number.NaN);
126
146
  const clickhouseDateTimeMemoTexts = new Array(CLICKHOUSE_DATE_TIME_MEMO_SLOTS).fill("");
147
+ // What a duration of nothing reads in English, with writesZero.
148
+ exports.ZERO_FRIENDLY_TIME_TEXT = "0 secs";
127
149
  class OneUptimeDate {
128
150
  static padDatePart(value) {
129
151
  return value.toString().padStart(2, "0");
@@ -814,7 +836,9 @@ class OneUptimeDate {
814
836
  };
815
837
  const options = LOCALIZED_CUSTOM_DATE_FORMATS[data.format];
816
838
  if (!options) {
817
- return english();
839
+ return READER_DIGIT_CUSTOM_DATE_FORMATS.includes(data.format)
840
+ ? this.inReaderDigits(english)
841
+ : english();
818
842
  }
819
843
  return (0, DateLanguage_1.writeInDateDisplayLanguage)(english, (_language, locale) => {
820
844
  const format = (0, DateLanguage_1.getDateTimeFormat)({
@@ -1274,11 +1298,31 @@ class OneUptimeDate {
1274
1298
  }
1275
1299
  /**
1276
1300
  * Render an instant as the value of an `<input type="datetime-local">` — a
1277
- * bare wall-clock with no offset — read in the current timezone.
1301
+ * bare wall-clock with no offset — read in the current timezone, to the
1302
+ * second ("2026-11-13T11:15:52").
1303
+ *
1304
+ * A field people schedule with shows toDateTimeLocalMinuteString instead:
1305
+ * a value with seconds makes the browser's picker show and ask for them
1306
+ * too. Only a field that compares with event timestamps (a telemetry time
1307
+ * range) keeps the seconds, by opting in (Input's showSecondsForDateTime).
1278
1308
  */
1279
1309
  static toDateTimeLocalString(date) {
1280
1310
  return this.inCurrentTimezone(date).format("YYYY-MM-DDTHH:mm:ss");
1281
1311
  }
1312
+ /**
1313
+ * The value an `<input type="datetime-local">` shows a person who picks a
1314
+ * time to schedule or record something: the wall clock in the current
1315
+ * timezone, to the minute ("2026-11-13T11:15"). Without seconds in its
1316
+ * value, the browser's picker shows hours and minutes and no seconds
1317
+ * column, and what is picked comes back to the minute.
1318
+ *
1319
+ * The seconds of an instant stored with them are not shown, and not lost:
1320
+ * a field left as it was keeps the value it was given (Input changes its
1321
+ * value only when the person changes the field).
1322
+ */
1323
+ static toDateTimeLocalMinuteString(date) {
1324
+ return this.inCurrentTimezone(date).format("YYYY-MM-DDTHH:mm");
1325
+ }
1282
1326
  /**
1283
1327
  * Inverse of toDateTimeLocalString: turn the offset-less wall-clock a user
1284
1328
  * typed into a `<input type="date">` / `<input type="datetime-local">` into
@@ -1502,10 +1546,22 @@ class OneUptimeDate {
1502
1546
  /*
1503
1547
  * "1 year 2 months 3 days 4 hours 5 mins 6 secs", each unit that is not
1504
1548
  * zero, counted on the calendar from the epoch - and in the reader's
1505
- * language when a frontend set one ("1 J. 2 Mon. 3 Tg.").
1549
+ * language when a frontend set one ("1 J. 2 Mon. 3 Tg."). `options` keeps
1550
+ * only the largest units, and writes a duration of nothing.
1506
1551
  */
1507
- static secondsToFormattedFriendlyTimeString(seconds) {
1508
- const parts = this.getFriendlyTimeParts(seconds);
1552
+ static secondsToFormattedFriendlyTimeString(seconds, options) {
1553
+ const maxUnits = options === null || options === void 0 ? void 0 : options.maxUnits;
1554
+ const allParts = this.getFriendlyTimeParts(seconds);
1555
+ const parts = maxUnits !== undefined && maxUnits >= 1
1556
+ ? allParts.slice(0, Math.floor(maxUnits))
1557
+ : allParts;
1558
+ if (parts.length === 0 && (options === null || options === void 0 ? void 0 : options.writesZero)) {
1559
+ return (0, DateLanguage_1.writeInDateDisplayLanguage)(() => {
1560
+ return exports.ZERO_FRIENDLY_TIME_TEXT;
1561
+ }, (_language, locale) => {
1562
+ return this.formatLocalizedDuration([{ count: 0, unit: "second" }], locale, "short", "narrow");
1563
+ });
1564
+ }
1509
1565
  return (0, DateLanguage_1.writeInDateDisplayLanguage)(() => {
1510
1566
  return parts
1511
1567
  .map((part) => {
@@ -1610,6 +1666,22 @@ class OneUptimeDate {
1610
1666
  }
1611
1667
  return (0, moment_timezone_1.default)(date).endOf("day").toDate();
1612
1668
  }
1669
+ /*
1670
+ * The start of the minute `date` falls in: its seconds and milliseconds
1671
+ * dropped, as a new Date (the one given is left as it was). The same
1672
+ * instant in every timezone, since every zone's offset today is a whole
1673
+ * number of minutes.
1674
+ *
1675
+ * What "now" is in a field people schedule with: an override, a rotation
1676
+ * or an announcement that starts now starts at the minute the field shows
1677
+ * (11:15, never 11:15:52), which has already begun - never a minute late.
1678
+ */
1679
+ static getStartOfMinute(date) {
1680
+ const instant = this.fromString(date);
1681
+ const millisecondsInAMinute = 60 * 1000;
1682
+ return new Date(Math.floor(instant.getTime() / millisecondsInAMinute) *
1683
+ millisecondsInAMinute);
1684
+ }
1613
1685
  /*
1614
1686
  * Calendar arithmetic - "the previous calendar month", "add 3 calendar
1615
1687
  * months" - as opposed to the fixed-length arithmetic the rest of this class
package/Types/Date.mjs CHANGED
@@ -3,3 +3,4 @@ export default commonJsModule.default;
3
3
  export const ARABIC_DATE_TIME_SEPARATOR = commonJsModule.ARABIC_DATE_TIME_SEPARATOR;
4
4
  export const DATE_TIME_SEPARATOR = commonJsModule.DATE_TIME_SEPARATOR;
5
5
  export const Moment = commonJsModule.Moment;
6
+ export const ZERO_FRIENDLY_TIME_TEXT = commonJsModule.ZERO_FRIENDLY_TIME_TEXT;
@@ -36,6 +36,8 @@ export interface DateTextShape {
36
36
  hideYear?: boolean | undefined;
37
37
  twoDigitDay?: boolean | undefined;
38
38
  }
39
+ export declare const getHourOption: (use12HourFormat: boolean | undefined) => "numeric" | "2-digit";
40
+ export declare const getLocaleClockHourOption: (pinnedLocale: string) => "numeric" | "2-digit";
39
41
  export declare const getDateTimeOptions: (shape: DateTextShape) => Intl.DateTimeFormatOptions;
40
42
  export declare const formatDateText: (data: {
41
43
  date: Date;
@@ -36,6 +36,8 @@ export interface DateTextShape {
36
36
  hideYear?: boolean | undefined;
37
37
  twoDigitDay?: boolean | undefined;
38
38
  }
39
+ export declare const getHourOption: (use12HourFormat: boolean | undefined) => "numeric" | "2-digit";
40
+ export declare const getLocaleClockHourOption: (pinnedLocale: string) => "numeric" | "2-digit";
39
41
  export declare const getDateTimeOptions: (shape: DateTextShape) => Intl.DateTimeFormatOptions;
40
42
  export declare const formatDateText: (data: {
41
43
  date: Date;
@@ -33,7 +33,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
33
33
  return (mod && mod.__esModule) ? mod : { "default": mod };
34
34
  };
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.writeDigitsInLocale = exports.getDigitsOf = exports.formatDecimal = exports.formatDurationText = exports.formatDurationUnit = exports.formatRelativeAmount = exports.formatRelativeDate = exports.getRelativeDistance = exports.formatDateText = exports.getDateTimeOptions = exports.getDateTimeFormat = exports.writeInDateDisplayLanguage = exports.forgetRememberedDateTexts = exports.getEnglishOf = exports.rememberEnglishOf = exports.MAX_REMEMBERED_DATE_TEXTS = exports.formatReaderFigure = exports.formatReaderNumber = exports.getReaderDateLocale = exports.getReaderNumberLocale = exports.getDateLocale = exports.getNumberLocale = exports.writesLatinDigits = exports.LATIN_DIGIT_LANGUAGES = exports.setDateDisplayLanguage = exports.getDateDisplayLanguage = exports.isEnglishDateLanguage = exports.ENGLISH_DATE_LANGUAGE = void 0;
36
+ exports.writeDigitsInLocale = exports.getDigitsOf = exports.formatDecimal = exports.formatDurationText = exports.formatDurationUnit = exports.formatRelativeAmount = exports.formatRelativeDate = exports.getRelativeDistance = exports.formatDateText = exports.getDateTimeOptions = exports.getLocaleClockHourOption = exports.getHourOption = exports.getDateTimeFormat = exports.writeInDateDisplayLanguage = exports.forgetRememberedDateTexts = exports.getEnglishOf = exports.rememberEnglishOf = exports.MAX_REMEMBERED_DATE_TEXTS = exports.formatReaderFigure = exports.formatReaderNumber = exports.getReaderDateLocale = exports.getReaderNumberLocale = exports.getDateLocale = exports.getNumberLocale = exports.writesLatinDigits = exports.LATIN_DIGIT_LANGUAGES = exports.setDateDisplayLanguage = exports.getDateDisplayLanguage = exports.isEnglishDateLanguage = exports.ENGLISH_DATE_LANGUAGE = void 0;
37
37
  exports.withDateDisplayLanguage = withDateDisplayLanguage;
38
38
  exports.inEnglishDates = inEnglishDates;
39
39
  const moment_timezone_1 = __importDefault(require("moment-timezone"));
@@ -392,6 +392,48 @@ const getDateTimeFormat = (data) => {
392
392
  return null;
393
393
  };
394
394
  exports.getDateTimeFormat = getDateTimeFormat;
395
+ /*
396
+ * How Intl writes the hour of a time of day on the reader's clock.
397
+ *
398
+ * A 12-hour time's hour has no leading zero in any language: "5:14 AM",
399
+ * "오전 5:14", "上午5:14", "5:14 am", "5:14 ص", "۵:۱۴ ق.ظ.". Asked for two
400
+ * digits there, Intl wrote "오전 05:14" and "05:14 ص" in every language but
401
+ * English, which moment writes "5:14 AM" (issue #7279). A 24-hour time keeps
402
+ * its zero: "05:14" - "numeric" would drop it in German, French, Japanese
403
+ * and most others ("5:14") while Korean, Hindi and Arabic keep it.
404
+ */
405
+ const getHourOption = (use12HourFormat) => {
406
+ return use12HourFormat ? "numeric" : "2-digit";
407
+ };
408
+ exports.getHourOption = getHourOption;
409
+ const LOCALE_CLOCK_HOUR_OPTIONS = new Map();
410
+ /*
411
+ * The hour of a time that follows its language's own clock, not the
412
+ * reader's 12- or 24-hour setting: a calendar's grid, a chart's axis, a
413
+ * diagnostics line. Korean, Traditional Chinese, Hindi, Arabic and US
414
+ * English read a 12-hour clock ("오전 5:14", "5:14 ص", "5:14 AM"), the
415
+ * others a 24-hour one ("05:14"). A two-digit hour asked of the language's own clock
416
+ * wrote "오전 05:14" (issue #7279). `pinnedLocale` is a locale already made
417
+ * for the language (getNumberLocale, getDateLocale, getReaderDateLocale).
418
+ */
419
+ const getLocaleClockHourOption = (pinnedLocale) => {
420
+ const remembered = LOCALE_CLOCK_HOUR_OPTIONS.get(pinnedLocale);
421
+ if (remembered) {
422
+ return remembered;
423
+ }
424
+ let hour = "2-digit";
425
+ try {
426
+ hour = (0, exports.getHourOption)(new Intl.DateTimeFormat(pinnedLocale, {
427
+ hour: "numeric",
428
+ }).resolvedOptions().hour12);
429
+ }
430
+ catch (_a) {
431
+ // A locale Intl refuses: the 24-hour hour, as before.
432
+ }
433
+ LOCALE_CLOCK_HOUR_OPTIONS.set(pinnedLocale, hour);
434
+ return hour;
435
+ };
436
+ exports.getLocaleClockHourOption = getLocaleClockHourOption;
395
437
  // The Intl options a shape of OneUptimeDate's dates asks for.
396
438
  const getDateTimeOptions = (shape) => {
397
439
  const options = {
@@ -405,7 +447,7 @@ const getDateTimeOptions = (shape) => {
405
447
  options.weekday = "short";
406
448
  }
407
449
  if (!shape.onlyShowDate) {
408
- options.hour = "2-digit";
450
+ options.hour = (0, exports.getHourOption)(shape.use12HourFormat);
409
451
  options.minute = "2-digit";
410
452
  options.hour12 = Boolean(shape.use12HourFormat);
411
453
  if (shape.showSeconds) {
@@ -17,6 +17,8 @@ export const getDateTimeFormat = commonJsModule.getDateTimeFormat;
17
17
  export const getDateTimeOptions = commonJsModule.getDateTimeOptions;
18
18
  export const getDigitsOf = commonJsModule.getDigitsOf;
19
19
  export const getEnglishOf = commonJsModule.getEnglishOf;
20
+ export const getHourOption = commonJsModule.getHourOption;
21
+ export const getLocaleClockHourOption = commonJsModule.getLocaleClockHourOption;
20
22
  export const getNumberLocale = commonJsModule.getNumberLocale;
21
23
  export const getReaderDateLocale = commonJsModule.getReaderDateLocale;
22
24
  export const getReaderNumberLocale = commonJsModule.getReaderNumberLocale;
@@ -0,0 +1,7 @@
1
+ import { ReadingDirection } from "./ReadingDirection.mjs";
2
+ export declare const RIGHTWARDS_ARROW: string;
3
+ export declare const LEFTWARDS_ARROW: string;
4
+ export declare const getArrowOn: (language: string | null | undefined) => string;
5
+ export declare const getArrowBack: (language: string | null | undefined) => string;
6
+ export declare const joinWithArrowsInDirection: (values: ReadonlyArray<string>, direction: ReadingDirection) => string;
7
+ export declare const joinWithArrowsOn: (values: ReadonlyArray<string>, language: string | null | undefined) => string;
@@ -0,0 +1,7 @@
1
+ import { ReadingDirection } from "./ReadingDirection";
2
+ export declare const RIGHTWARDS_ARROW: string;
3
+ export declare const LEFTWARDS_ARROW: string;
4
+ export declare const getArrowOn: (language: string | null | undefined) => string;
5
+ export declare const getArrowBack: (language: string | null | undefined) => string;
6
+ export declare const joinWithArrowsInDirection: (values: ReadonlyArray<string>, direction: ReadingDirection) => string;
7
+ export declare const joinWithArrowsOn: (values: ReadonlyArray<string>, language: string | null | undefined) => string;
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.joinWithArrowsOn = exports.joinWithArrowsInDirection = exports.getArrowBack = exports.getArrowOn = exports.LEFTWARDS_ARROW = exports.RIGHTWARDS_ARROW = void 0;
4
+ const ReadingDirection_1 = require("./ReadingDirection");
5
+ /*
6
+ * AN ARROW THAT POINTS THE WAY ITS LINE IS READ.
7
+ *
8
+ * A browser turns a bracket, ">" and "›" round on a line read from the
9
+ * right, but draws "→" and "←" as they are written. So an arrow a
10
+ * component wrote into its line pointed back on an Arabic or Persian page:
11
+ * between two values ("Declared → Acknowledged", "12.5% → 15.0%") from the
12
+ * second to the first, after a link's words ("Show on map →") back into
13
+ * them. Those languages write such an arrow "←" (the Dashboard's
14
+ * Locales/ARABIC.md), and so do the Persian docs.
15
+ *
16
+ * A component takes its arrow from here, for the language its line is
17
+ * read in, and never writes one itself:
18
+ *
19
+ * - getArrowOn: to what comes next - the second of two values, where a
20
+ * link leads. "→", and "←" in a language read from the right.
21
+ * - getArrowBack: to what came before - "← Back", a field that takes an
22
+ * answer's value ("Severity ← from answer"). "←", and "→".
23
+ * - joinWithArrowsOn: values in the order they are read, with the arrow
24
+ * on between each two. Each value is set apart where it could move the
25
+ * arrow (setApartInSentence): between two names in Latin letters the
26
+ * bidi algorithm would draw an arrow from the left on a Persian page,
27
+ * between two Persian ones from the right on an English page. Set
28
+ * apart, each value reads its own way and the arrow is the line's.
29
+ * - joinWithArrowsInDirection: the same in a line read one way on every
30
+ * page, as the names of a diagram drawn from the left everywhere are.
31
+ *
32
+ * Common/UI's DirectionArrow draws the arrow in a component.
33
+ * ComponentArrowsInRightToLeftPages (Common/Tests/App) fails on an arrow
34
+ * written into the Dashboard's or the shared UI's components instead.
35
+ */
36
+ exports.RIGHTWARDS_ARROW = "→";
37
+ exports.LEFTWARDS_ARROW = "←";
38
+ // The arrow to what comes next, in a line read `direction`.
39
+ const getArrowOnInDirection = (direction) => {
40
+ return direction === ReadingDirection_1.RIGHT_TO_LEFT ? exports.LEFTWARDS_ARROW : exports.RIGHTWARDS_ARROW;
41
+ };
42
+ // The arrow to what comes next, in a line read in `language`.
43
+ const getArrowOn = (language) => {
44
+ return getArrowOnInDirection((0, ReadingDirection_1.getReadingDirection)(language));
45
+ };
46
+ exports.getArrowOn = getArrowOn;
47
+ // The arrow to what came before, in a line read in `language`.
48
+ const getArrowBack = (language) => {
49
+ return (0, ReadingDirection_1.getReadingDirection)(language) === ReadingDirection_1.RIGHT_TO_LEFT
50
+ ? exports.RIGHTWARDS_ARROW
51
+ : exports.LEFTWARDS_ARROW;
52
+ };
53
+ exports.getArrowBack = getArrowBack;
54
+ // RIGHT-TO-LEFT ISOLATE: what follows it, up to its PDI, reads from the right.
55
+ const RIGHT_TO_LEFT_ISOLATE = String.fromCharCode(0x2067);
56
+ /*
57
+ * "first → second → third" in a line read `direction`: the values in
58
+ * the order they are read, each set apart where it could move the arrow.
59
+ * Read from the left, two names in Latin letters are written exactly as
60
+ * they were joined before ("m5.2xlarge → m5.xlarge").
61
+ *
62
+ * Read from the right, the whole is set apart once more, right to left
63
+ * (RLI ... PDI). A sentence that takes it as one of its values may set
64
+ * that value apart (setsValuesApart), and an isolate with no letter of its
65
+ * own outside the values it sets apart reads from the left: every arrow
66
+ * in it would point back again.
67
+ *
68
+ * A line takes its direction from the language its page reads
69
+ * (joinWithArrowsOn), except the names of a diagram drawn from the left on
70
+ * every page: the user flow map's bands run left to right on an Arabic
71
+ * page too, so a band is named the map's way there, "/home → /cart".
72
+ */
73
+ const joinWithArrowsInDirection = (values, direction) => {
74
+ const joined = values
75
+ .map((value) => {
76
+ return (0, ReadingDirection_1.setApartInSentence)(value, direction);
77
+ })
78
+ .join(` ${getArrowOnInDirection(direction)} `);
79
+ return direction === ReadingDirection_1.RIGHT_TO_LEFT && values.length > 1
80
+ ? `${RIGHT_TO_LEFT_ISOLATE}${joined}${ReadingDirection_1.POP_DIRECTIONAL_ISOLATE}`
81
+ : joined;
82
+ };
83
+ exports.joinWithArrowsInDirection = joinWithArrowsInDirection;
84
+ // The same, in a line read in `language`: the way its page reads.
85
+ const joinWithArrowsOn = (values, language) => {
86
+ return (0, exports.joinWithArrowsInDirection)(values, (0, ReadingDirection_1.getReadingDirection)(language));
87
+ };
88
+ exports.joinWithArrowsOn = joinWithArrowsOn;
@@ -0,0 +1,7 @@
1
+ import commonJsModule from "./DirectionArrow.js";
2
+ export const LEFTWARDS_ARROW = commonJsModule.LEFTWARDS_ARROW;
3
+ export const RIGHTWARDS_ARROW = commonJsModule.RIGHTWARDS_ARROW;
4
+ export const getArrowBack = commonJsModule.getArrowBack;
5
+ export const getArrowOn = commonJsModule.getArrowOn;
6
+ export const joinWithArrowsInDirection = commonJsModule.joinWithArrowsInDirection;
7
+ export const joinWithArrowsOn = commonJsModule.joinWithArrowsOn;
@@ -14,6 +14,7 @@ declare enum GlossaryTerm {
14
14
  OnCallSchedule = "on-call-schedule",
15
15
  Layer = "layer",
16
16
  NotificationMethod = "notification-method",
17
+ HowToReachMe = "how-to-reach-me",
17
18
  StatusPage = "status-page",
18
19
  Subscriber = "subscriber",
19
20
  ScheduledMaintenance = "scheduled-maintenance",
@@ -14,6 +14,7 @@ declare enum GlossaryTerm {
14
14
  OnCallSchedule = "on-call-schedule",
15
15
  Layer = "layer",
16
16
  NotificationMethod = "notification-method",
17
+ HowToReachMe = "how-to-reach-me",
17
18
  StatusPage = "status-page",
18
19
  Subscriber = "subscriber",
19
20
  ScheduledMaintenance = "scheduled-maintenance",
@@ -41,6 +41,8 @@ var GlossaryTerm;
41
41
  GlossaryTerm["OnCallSchedule"] = "on-call-schedule";
42
42
  GlossaryTerm["Layer"] = "layer";
43
43
  GlossaryTerm["NotificationMethod"] = "notification-method";
44
+ // A person's own paging rules: the page #6820 named, #6817 defined.
45
+ GlossaryTerm["HowToReachMe"] = "how-to-reach-me";
44
46
  GlossaryTerm["StatusPage"] = "status-page";
45
47
  GlossaryTerm["Subscriber"] = "subscriber";
46
48
  GlossaryTerm["ScheduledMaintenance"] = "scheduled-maintenance";
@@ -0,0 +1,11 @@
1
+ import GlossaryTerm from "./GlossaryTerm.mjs";
2
+ export interface RetiredName {
3
+ name: string;
4
+ nowCalled: string;
5
+ glossaryTerm: GlossaryTerm;
6
+ pattern: RegExp;
7
+ example?: string | undefined;
8
+ retiredIn: string;
9
+ }
10
+ export declare const RETIRED_NAMES: ReadonlyArray<RetiredName>;
11
+ export declare function findRetiredNames(text: string): Array<RetiredName>;
@@ -0,0 +1,11 @@
1
+ import GlossaryTerm from "./GlossaryTerm";
2
+ export interface RetiredName {
3
+ name: string;
4
+ nowCalled: string;
5
+ glossaryTerm: GlossaryTerm;
6
+ pattern: RegExp;
7
+ example?: string | undefined;
8
+ retiredIn: string;
9
+ }
10
+ export declare const RETIRED_NAMES: ReadonlyArray<RetiredName>;
11
+ export declare function findRetiredNames(text: string): Array<RetiredName>;
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.RETIRED_NAMES = void 0;
7
+ exports.findRetiredNames = findRetiredNames;
8
+ const GlossaryTerm_1 = __importDefault(require("./GlossaryTerm"));
9
+ exports.RETIRED_NAMES = [
10
+ {
11
+ name: "On-Call Duty",
12
+ nowCalled: "On-Call",
13
+ glossaryTerm: GlossaryTerm_1.default.OnCallPolicy,
14
+ // Also the policies and schedules it named, written in lower case.
15
+ pattern: /\bOn[- ]Call Duty\b|\b[Oo]n[- ]call[- ]duty (?:polic(?:y|ies)|schedules?)\b/,
16
+ retiredIn: "#6817 part 1",
17
+ },
18
+ {
19
+ name: "On Call",
20
+ nowCalled: "On-Call",
21
+ glossaryTerm: GlossaryTerm_1.default.OnCallPolicy,
22
+ // "On Call Policy", "User On Call Time", a heading of its own; never "whoever is on call".
23
+ pattern: /\bOn Call (?!Duty\b)(?=[A-Z])|^On Call$/,
24
+ example: "User On Call Time",
25
+ retiredIn: "#6817 part 1",
26
+ },
27
+ {
28
+ name: "On-Call Policy Schedule",
29
+ nowCalled: "On-Call Schedule",
30
+ glossaryTerm: GlossaryTerm_1.default.OnCallSchedule,
31
+ pattern: /\bon-call policy schedules?\b/i,
32
+ retiredIn: "#6817 part 1",
33
+ },
34
+ {
35
+ name: "Personal On-Call Rules",
36
+ nowCalled: "How to Reach Me",
37
+ glossaryTerm: GlossaryTerm_1.default.HowToReachMe,
38
+ pattern: /\bpersonal on-call rules?\b/i,
39
+ retiredIn: "#6817 part 1",
40
+ },
41
+ {
42
+ name: "Project Settings > Notifications > Notification Settings",
43
+ nowCalled: "Project Settings > Notifications > Notification Channels",
44
+ glossaryTerm: GlossaryTerm_1.default.NotificationSettings,
45
+ // The project's page; User Settings' page keeps the name.
46
+ pattern: /Project Settings\**\s*(?:→|>|›)\s*\**Notifications\**\s*(?:→|>|›)\s*\**Notification Settings/,
47
+ retiredIn: "#6817 part 1",
48
+ },
49
+ {
50
+ name: "Performance Profiles",
51
+ nowCalled: "Profiles",
52
+ glossaryTerm: GlossaryTerm_1.default.Profiles,
53
+ pattern: /\bPerformance Profiles?\b/,
54
+ retiredIn: "#6817 part 2",
55
+ },
56
+ {
57
+ name: "Profiler",
58
+ nowCalled: "Profiles",
59
+ glossaryTerm: GlossaryTerm_1.default.Profiles,
60
+ /*
61
+ * The page's title. Never "a profiler", the tool that sends profiles,
62
+ * nor one's own name: React's <Profiler>, the OpenTelemetry eBPF
63
+ * Profiler, Pyroscope.Profiler.Native.so.
64
+ */
65
+ pattern: /(?<!<|\w\.|eBPF )\bProfiler\b(?!>|\.\w)/,
66
+ retiredIn: "#6817 part 2",
67
+ },
68
+ {
69
+ name: "Continuous Profiling",
70
+ nowCalled: "Profiles",
71
+ glossaryTerm: GlossaryTerm_1.default.Profiles,
72
+ pattern: /\bContinuous Profiling\b/,
73
+ retiredIn: "#6817 part 2",
74
+ },
75
+ {
76
+ name: "Exception Tracking",
77
+ nowCalled: "Exceptions",
78
+ glossaryTerm: GlossaryTerm_1.default.Exception,
79
+ pattern: /\bException Tracking\b/,
80
+ retiredIn: "#6817 part 2",
81
+ },
82
+ {
83
+ name: "Monitor Criteria",
84
+ nowCalled: "Criteria",
85
+ glossaryTerm: GlossaryTerm_1.default.Criteria,
86
+ // Also "Monitoring Criteria"; the API's monitor steps keep their name.
87
+ pattern: /\bMonitor(?:ing)? Criteria\b/,
88
+ retiredIn: "#6817 part 2",
89
+ },
90
+ {
91
+ name: "Telemetry Ingestion Key",
92
+ nowCalled: "Ingestion Key",
93
+ glossaryTerm: GlossaryTerm_1.default.IngestionKey,
94
+ pattern: /\bTelemetry Ingestion Keys?\b/,
95
+ retiredIn: "#6817 part 2",
96
+ },
97
+ {
98
+ name: "Service Catalog",
99
+ nowCalled: "Services",
100
+ glossaryTerm: GlossaryTerm_1.default.Service,
101
+ pattern: /\bService Catalog\b/,
102
+ retiredIn: "#6817 part 3",
103
+ },
104
+ {
105
+ name: "Telemetry Service",
106
+ nowCalled: "Service",
107
+ glossaryTerm: GlossaryTerm_1.default.Service,
108
+ pattern: /\bTelemetry Services?\b/,
109
+ retiredIn: "#6817 part 3",
110
+ },
111
+ {
112
+ name: "Scheduled Maintenance Event",
113
+ nowCalled: "Maintenance Event",
114
+ glossaryTerm: GlossaryTerm_1.default.ScheduledMaintenance,
115
+ // One record: the product keeps its name, Scheduled Maintenance.
116
+ pattern: /\bScheduled Maintenance Events?\b/,
117
+ retiredIn: "#6817 part 3",
118
+ },
119
+ {
120
+ name: "Scheduled Event",
121
+ nowCalled: "Maintenance Event",
122
+ glossaryTerm: GlossaryTerm_1.default.ScheduledMaintenance,
123
+ pattern: /\bScheduled Events?\b/,
124
+ retiredIn: "#6817 part 3",
125
+ },
126
+ {
127
+ name: "Event State",
128
+ nowCalled: "Maintenance State",
129
+ glossaryTerm: GlossaryTerm_1.default.ScheduledMaintenance,
130
+ pattern: /\bEvent States?\b/,
131
+ retiredIn: "#6817 part 3",
132
+ },
133
+ ];
134
+ // The retired names a text uses, by name.
135
+ function findRetiredNames(text) {
136
+ return exports.RETIRED_NAMES.filter((retired) => {
137
+ return retired.pattern.test(text);
138
+ });
139
+ }
@@ -0,0 +1,3 @@
1
+ import commonJsModule from "./RetiredNames.js";
2
+ export const RETIRED_NAMES = commonJsModule.RETIRED_NAMES;
3
+ export const findRetiredNames = commonJsModule.findRetiredNames;