@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.
- package/Models/AnalyticsModels/SecurityEvent.js +1 -1
- package/Models/DatabaseModels/AIInsight.js +2 -2
- package/Models/DatabaseModels/AIRunRecording.d.mts +12 -0
- package/Models/DatabaseModels/AIRunRecording.d.ts +12 -0
- package/Models/DatabaseModels/AIRunRecording.js +181 -0
- package/Models/DatabaseModels/AIRunRecording.mjs +2 -0
- package/Models/DatabaseModels/Alert.js +20 -4
- package/Models/DatabaseModels/AlertEpisode.js +2 -2
- package/Models/DatabaseModels/AlertEpisodeOnCallRule.js +3 -3
- package/Models/DatabaseModels/AlertGroupingRule.d.mts +1 -0
- package/Models/DatabaseModels/AlertGroupingRule.d.ts +1 -0
- package/Models/DatabaseModels/AlertGroupingRule.js +48 -2
- package/Models/DatabaseModels/AlertOnCallRule.js +3 -3
- package/Models/DatabaseModels/AlertSeverity.js +13 -4
- package/Models/DatabaseModels/AlertState.js +1 -1
- package/Models/DatabaseModels/CallLog.js +12 -12
- package/Models/DatabaseModels/DataStore.js +9 -0
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.mts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.ts +2 -0
- package/Models/DatabaseModels/EmailLog.js +14 -14
- package/Models/DatabaseModels/Form.js +3 -3
- package/Models/DatabaseModels/FormSubmission.js +6 -6
- package/Models/DatabaseModels/GlobalConfig.d.mts +1 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +1 -0
- package/Models/DatabaseModels/GlobalConfig.js +74 -45
- package/Models/DatabaseModels/Incident.js +20 -4
- package/Models/DatabaseModels/IncidentEpisode.js +2 -2
- package/Models/DatabaseModels/IncidentEpisodeOnCallRule.js +3 -3
- package/Models/DatabaseModels/IncidentGroupingRule.d.mts +1 -0
- package/Models/DatabaseModels/IncidentGroupingRule.d.ts +1 -0
- package/Models/DatabaseModels/IncidentGroupingRule.js +48 -2
- package/Models/DatabaseModels/IncidentOnCallRule.js +3 -3
- package/Models/DatabaseModels/IncidentSeverity.js +13 -4
- package/Models/DatabaseModels/IncidentSlaRule.js +2 -2
- package/Models/DatabaseModels/IncidentState.js +1 -1
- package/Models/DatabaseModels/IncidentTemplate.js +2 -2
- package/Models/DatabaseModels/Index.js +4 -0
- package/Models/DatabaseModels/InventoryItem.js +11 -0
- package/Models/DatabaseModels/Monitor.js +54 -20
- package/Models/DatabaseModels/MonitorNetworkDevice.d.mts +11 -0
- package/Models/DatabaseModels/MonitorNetworkDevice.d.ts +11 -0
- package/Models/DatabaseModels/MonitorNetworkDevice.js +189 -0
- package/Models/DatabaseModels/MonitorNetworkDevice.mjs +2 -0
- package/Models/DatabaseModels/MonitorProbe.js +22 -5
- package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
- package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
- package/Models/DatabaseModels/NetworkDevice.js +64 -7
- package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.js +39 -7
- package/Models/DatabaseModels/NetworkInterface.js +5 -5
- package/Models/DatabaseModels/OnCallDutyPolicy.js +4 -2
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRule.js +1 -1
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleSchedule.js +8 -5
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleTeam.js +5 -2
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleUser.js +5 -2
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +28 -11
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +10 -7
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.mts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +16 -11
- package/Models/DatabaseModels/OnCallDutyPolicyOwnerTeam.js +7 -4
- package/Models/DatabaseModels/OnCallDutyPolicyOwnerUser.js +7 -4
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +6 -3
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleCalendarFeed.js +4 -4
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayer.js +3 -3
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayerUser.js +6 -6
- package/Models/DatabaseModels/OnCallDutyPolicyTimeLog.js +9 -6
- package/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js +35 -7
- package/Models/DatabaseModels/OpenStackCloudCheck.js +8 -1
- package/Models/DatabaseModels/Project.d.mts +3 -0
- package/Models/DatabaseModels/Project.d.ts +3 -0
- package/Models/DatabaseModels/Project.js +142 -5
- package/Models/DatabaseModels/ProjectCallSMSConfig.js +3 -1
- package/Models/DatabaseModels/ProjectSmtpConfig.js +2 -0
- package/Models/DatabaseModels/ProxmoxCluster.d.mts +1 -0
- package/Models/DatabaseModels/ProxmoxCluster.d.ts +1 -0
- package/Models/DatabaseModels/ProxmoxCluster.js +52 -3
- package/Models/DatabaseModels/PublicNoteApprovalRequest.js +3 -3
- package/Models/DatabaseModels/PublicNoteApprovalStep.js +1 -1
- package/Models/DatabaseModels/PushNotificationLog.js +12 -12
- package/Models/DatabaseModels/Reseller.js +8 -2
- package/Models/DatabaseModels/ResellerPlan.js +8 -2
- package/Models/DatabaseModels/RunbookExecution.js +2 -2
- package/Models/DatabaseModels/RunbookRule.js +6 -6
- package/Models/DatabaseModels/ScheduledMaintenance.js +9 -6
- package/Models/DatabaseModels/ScheduledMaintenanceCalendarFeed.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceInternalNote.js +7 -4
- package/Models/DatabaseModels/ScheduledMaintenanceLabelRule.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +7 -7
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +3 -3
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerRule.js +6 -6
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerTeam.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerUser.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +10 -7
- package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +5 -5
- package/Models/DatabaseModels/Service.js +1 -1
- package/Models/DatabaseModels/ServiceLevelObjectiveBurnRateRule.js +4 -4
- package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.js +4 -4
- package/Models/DatabaseModels/SmsLog.js +12 -12
- package/Models/DatabaseModels/StatusPage.js +5 -5
- package/Models/DatabaseModels/StatusPageSubscriber.js +2 -2
- package/Models/DatabaseModels/TeamMember.js +10 -1
- package/Models/DatabaseModels/TelegramLog.js +12 -12
- package/Models/DatabaseModels/TelemetryIngestionKey.js +8 -5
- package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.js +7 -4
- package/Models/DatabaseModels/User.d.mts +4 -0
- package/Models/DatabaseModels/User.d.ts +4 -0
- package/Models/DatabaseModels/User.js +100 -0
- package/Models/DatabaseModels/UserOnCallLog.js +6 -6
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +3 -3
- package/Models/DatabaseModels/UserOnCallShiftReminderLog.js +2 -2
- package/Models/DatabaseModels/WebhookLog.js +12 -12
- package/Models/DatabaseModels/WhatsAppLog.js +12 -12
- package/Models/DatabaseModels/WorkspaceNotificationLog.js +12 -12
- package/Models/DatabaseModels/WorkspaceNotificationRule.js +36 -1
- package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
- package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.js +3 -3
- package/Server/Services/DatabaseService.d.mts +4 -1
- package/Server/Services/DatabaseService.d.ts +4 -1
- package/Server/Types/Database/CountBy.d.mts +1 -0
- package/Server/Types/Database/CountBy.d.ts +1 -0
- package/Server/Types/Database/UpdateLimit.d.mts +6 -0
- package/Server/Types/Database/UpdateLimit.d.ts +6 -0
- package/Types/AI/AIActionWords.d.mts +25 -1
- package/Types/AI/AIActionWords.d.ts +25 -1
- package/Types/AI/AIActionWords.js +166 -3
- package/Types/AI/AIActionWords.mjs +6 -0
- package/Types/AI/AIChatTypes.d.mts +4 -2
- package/Types/AI/AIChatTypes.d.ts +4 -2
- package/Types/AI/AIChatTypes.js +5 -0
- package/Types/AI/AiOutcomes.d.mts +57 -0
- package/Types/AI/AiOutcomes.d.ts +57 -0
- package/Types/AI/AiOutcomes.js +67 -0
- package/Types/AI/AiOutcomes.mjs +10 -0
- package/Types/AI/AiRunRefusal.d.mts +45 -0
- package/Types/AI/AiRunRefusal.d.ts +45 -0
- package/Types/AI/AiRunRefusal.js +187 -0
- package/Types/AI/AiRunRefusal.mjs +12 -0
- package/Types/AI/InvestigationRecording.d.mts +46 -0
- package/Types/AI/InvestigationRecording.d.ts +46 -0
- package/Types/AI/InvestigationRecording.js +42 -0
- package/Types/AI/InvestigationRecording.mjs +7 -0
- package/Types/API/HTTPResponse.d.mts +3 -0
- package/Types/API/HTTPResponse.d.ts +3 -0
- package/Types/API/HTTPResponse.js +15 -0
- package/Types/Analytics/ProductEvent.d.mts +6 -1
- package/Types/Analytics/ProductEvent.d.ts +6 -1
- package/Types/Analytics/ProductEvent.js +41 -0
- package/Types/AuditLog/AuditLogCoverage.d.mts +1 -0
- package/Types/AuditLog/AuditLogCoverage.d.ts +1 -0
- package/Types/AuditLog/AuditLogCoverage.js +4 -2
- package/Types/BaseDatabase/AggregateBy.d.mts +16 -0
- package/Types/BaseDatabase/AggregateBy.d.ts +16 -0
- package/Types/BaseDatabase/AggregationIntervalUtil.d.mts +16 -1
- package/Types/BaseDatabase/AggregationIntervalUtil.d.ts +16 -1
- package/Types/BaseDatabase/AggregationIntervalUtil.js +92 -2
- package/Types/BaseDatabase/ListResult.d.mts +1 -0
- package/Types/BaseDatabase/ListResult.d.ts +1 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.d.mts +47 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.d.ts +47 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.js +282 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.mjs +7 -0
- package/Types/Cloud/CloudResourceCatalog.d.mts +2 -0
- package/Types/Cloud/CloudResourceCatalog.d.ts +2 -0
- package/Types/Cloud/CloudResourceCatalog.js +33 -3
- package/Types/Cloud/CloudResourceCatalog.mjs +1 -0
- package/Types/Dashboard/DashboardAutoRefresh.d.mts +1 -0
- package/Types/Dashboard/DashboardAutoRefresh.d.ts +1 -0
- package/Types/Dashboard/DashboardAutoRefresh.js +21 -0
- package/Types/Dashboard/DashboardAutoRefresh.mjs +1 -0
- package/Types/DataObservability/DataCheckSuggestions.d.mts +25 -0
- package/Types/DataObservability/DataCheckSuggestions.d.ts +25 -0
- package/Types/DataObservability/DataCheckSuggestions.js +102 -65
- package/Types/DataObservability/DataCheckSuggestions.mjs +1 -0
- package/Types/Database/TableMetadata.d.mts +2 -0
- package/Types/Database/TableMetadata.d.ts +2 -0
- package/Types/Database/TableMetadata.js +6 -0
- package/Types/Date.d.mts +26 -2
- package/Types/Date.d.ts +26 -2
- package/Types/Date.js +81 -9
- package/Types/Date.mjs +1 -0
- package/Types/DateLanguage.d.mts +2 -0
- package/Types/DateLanguage.d.ts +2 -0
- package/Types/DateLanguage.js +44 -2
- package/Types/DateLanguage.mjs +2 -0
- package/Types/DirectionArrow.d.mts +7 -0
- package/Types/DirectionArrow.d.ts +7 -0
- package/Types/DirectionArrow.js +88 -0
- package/Types/DirectionArrow.mjs +7 -0
- package/Types/Docs/GlossaryTerm.d.mts +1 -0
- package/Types/Docs/GlossaryTerm.d.ts +1 -0
- package/Types/Docs/GlossaryTerm.js +2 -0
- package/Types/Docs/RetiredNames.d.mts +11 -0
- package/Types/Docs/RetiredNames.d.ts +11 -0
- package/Types/Docs/RetiredNames.js +139 -0
- package/Types/Docs/RetiredNames.mjs +3 -0
- package/Types/Email/ServerEmailEnvironment.d.mts +85 -0
- package/Types/Email/ServerEmailEnvironment.d.ts +85 -0
- package/Types/Email/ServerEmailEnvironment.js +793 -0
- package/Types/Email/ServerEmailEnvironment.mjs +14 -0
- package/Types/Exception/AiRunRefusalException.d.mts +6 -0
- package/Types/Exception/AiRunRefusalException.d.ts +6 -0
- package/Types/Exception/AiRunRefusalException.js +23 -0
- package/Types/Exception/AiRunRefusalException.mjs +2 -0
- package/Types/Exception/RefusalWithValues.d.mts +7 -0
- package/Types/Exception/RefusalWithValues.d.ts +7 -0
- package/Types/Exception/RefusalWithValues.js +76 -0
- package/Types/Exception/RefusalWithValues.mjs +3 -0
- package/Types/Exception/UnexplainedError.d.mts +13 -0
- package/Types/Exception/UnexplainedError.d.ts +13 -0
- package/Types/Exception/UnexplainedError.js +53 -1
- package/Types/Exception/UnexplainedError.mjs +1 -0
- package/Types/File/FileSize.d.mts +4 -1
- package/Types/File/FileSize.d.ts +4 -1
- package/Types/File/FileSize.js +18 -17
- package/Types/Form/FormTargetCatalog.js +2 -2
- package/Types/Form/FormTargetType.js +2 -2
- package/Types/HostCollector/HostCollector.d.mts +1 -0
- package/Types/HostCollector/HostCollector.d.ts +1 -0
- package/Types/HostCollector/HostCollector.js +26 -10
- package/Types/HostCollector/HostCollector.mjs +1 -0
- package/Types/ListData.d.mts +2 -0
- package/Types/ListData.d.ts +2 -0
- package/Types/ListData.js +4 -0
- package/Types/Monitor/MonitorCriteria.js +2 -2
- package/Types/Monitor/MonitorCriteriaInstance.js +9 -0
- package/Types/Monitor/MonitorNotCheckedReason.d.mts +7 -0
- package/Types/Monitor/MonitorNotCheckedReason.d.ts +7 -0
- package/Types/Monitor/MonitorNotCheckedReason.js +36 -0
- package/Types/Monitor/MonitorNotCheckedReason.mjs +4 -0
- package/Types/Monitor/MonitorStep.js +1 -1
- package/Types/Monitor/MonitorTemplateSyncField.d.mts +6 -0
- package/Types/Monitor/MonitorTemplateSyncField.d.ts +6 -0
- package/Types/Monitor/MonitorTemplateSyncField.js +106 -64
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.mts +1 -0
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.ts +1 -0
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.js +11 -3
- package/Types/Monitor/SnmpMonitor/NetworkTopology.d.mts +6 -0
- package/Types/Monitor/SnmpMonitor/NetworkTopology.d.ts +6 -0
- package/Types/Monitor/UptimeHistoryLabels.js +2 -2
- package/Types/Monitor/WhoIsTold.d.mts +3 -1
- package/Types/Monitor/WhoIsTold.d.ts +3 -1
- package/Types/Monitor/WhoIsTold.js +2 -1
- package/Types/NotificationRule/PagingLadder.d.mts +137 -0
- package/Types/NotificationRule/PagingLadder.d.ts +137 -0
- package/Types/NotificationRule/PagingLadder.js +682 -0
- package/Types/NotificationRule/PagingLadder.mjs +28 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.js +1 -1
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.mts +1 -0
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.ts +1 -0
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.js +12 -9
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +3 -1
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +3 -1
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +24 -6
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.d.mts +26 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.d.ts +26 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.js +136 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.mjs +18 -0
- package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.mts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.ts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.mts +12 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.ts +12 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.js +38 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.mjs +3 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +44 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +44 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +96 -5
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.mts +19 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.ts +19 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.js +222 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.mjs +6 -0
- package/Types/OnCallDutyPolicy/ScheduleLayerDefaults.js +5 -2
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.mts +92 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.ts +92 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.js +512 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.mjs +7 -0
- package/Types/OnCallDutyPolicy/UserOverrideCoverRequest.js +9 -1
- package/Types/OnCallDutyPolicy/UserOverrideEdit.d.mts +23 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.d.ts +23 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.js +105 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.mjs +6 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.mts +64 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.ts +64 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.js +237 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.mjs +14 -0
- package/Types/Permission.d.mts +2 -2
- package/Types/Permission.d.ts +2 -2
- package/Types/Permission.js +196 -195
- package/Types/Probe/ProbeCapability.d.mts +2 -1
- package/Types/Probe/ProbeCapability.d.ts +2 -1
- package/Types/Probe/ProbeCapability.js +10 -0
- package/Types/Product/ProductCatalog.d.mts +10 -0
- package/Types/Product/ProductCatalog.d.ts +10 -0
- package/Types/Product/ProductCatalog.js +208 -0
- package/Types/Product/ProductCatalog.mjs +6 -0
- package/Types/Product/ProductOfTable.d.mts +3 -0
- package/Types/Product/ProductOfTable.d.ts +3 -0
- package/Types/Product/ProductOfTable.js +68 -0
- package/Types/Product/ProductOfTable.mjs +3 -0
- package/Types/Product/ProjectProductsAnswer.d.mts +3 -0
- package/Types/Product/ProjectProductsAnswer.d.ts +3 -0
- package/Types/Product/ProjectProductsAnswer.js +35 -2
- package/Types/Product/ProjectProductsAnswer.mjs +1 -0
- package/Types/Product/ServerProducts.d.mts +65 -0
- package/Types/Product/ServerProducts.d.ts +65 -0
- package/Types/Product/ServerProducts.js +383 -0
- package/Types/Product/ServerProducts.mjs +26 -0
- package/Types/Product/ServerProductsAnswer.d.mts +21 -0
- package/Types/Product/ServerProductsAnswer.d.ts +21 -0
- package/Types/Product/ServerProductsAnswer.js +78 -0
- package/Types/Product/ServerProductsAnswer.mjs +5 -0
- package/Types/ProductFeedback/ProductFeedback.d.mts +3 -1
- package/Types/ProductFeedback/ProductFeedback.d.ts +3 -1
- package/Types/ProductFeedback/ProductFeedback.js +8 -0
- package/Types/ReaderLanguage.d.mts +1 -0
- package/Types/ReaderLanguage.d.ts +1 -0
- package/Types/ReaderLanguage.js +13 -1
- package/Types/ReaderLanguage.mjs +1 -0
- package/Types/Rules/RuleRun.js +2 -2
- package/Types/Rum/SessionReplayCustomEvents.d.mts +1 -0
- package/Types/Rum/SessionReplayCustomEvents.d.ts +1 -0
- package/Types/SampleProject/SampleProject.d.mts +54 -0
- package/Types/SampleProject/SampleProject.d.ts +54 -0
- package/Types/SampleProject/SampleProject.js +177 -0
- package/Types/SampleProject/SampleProject.mjs +22 -0
- package/Types/SampleProject/SampleProjectContent.d.mts +127 -0
- package/Types/SampleProject/SampleProjectContent.d.ts +127 -0
- package/Types/SampleProject/SampleProjectContent.js +397 -0
- package/Types/SampleProject/SampleProjectContent.mjs +18 -0
- package/Types/ScheduledMaintenance/MaintenanceCalendar.js +1 -1
- package/Types/ServerSending/ServerSendingStatus.d.mts +7 -0
- package/Types/ServerSending/ServerSendingStatus.d.ts +7 -0
- package/Types/ServerSending/ServerSendingStatus.js +49 -2
- package/Types/ServerSetup/ServerSetupChecklist.js +3 -3
- package/Types/StateTimeline/RowsKeptOnDelete.js +1 -1
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.mts +8 -0
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.ts +8 -0
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.js +50 -0
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.mjs +3 -0
- package/Types/StatusPage/PublicNoteSubscriberNotificationDefault.js +1 -1
- package/Types/Telemetry/CompatibleIngest.d.mts +20 -0
- package/Types/Telemetry/CompatibleIngest.d.ts +20 -0
- package/Types/Telemetry/CompatibleIngest.js +123 -0
- package/Types/Telemetry/CompatibleIngest.mjs +21 -0
- package/Types/Telemetry/TelemetryIngestSurface.d.mts +5 -0
- package/Types/Telemetry/TelemetryIngestSurface.d.ts +5 -0
- package/Types/Telemetry/TelemetryIngestSurface.js +54 -12
- package/Types/TimezoneAlias.d.mts +1 -0
- package/Types/TimezoneAlias.d.ts +1 -0
- package/Types/TimezoneAlias.js +13 -0
- package/Types/Translator.d.mts +1 -0
- package/Types/Translator.d.ts +1 -0
- package/Types/Translator.js +414 -50
- package/Types/Translator.mjs +1 -0
- package/Types/UsedBy/UsedBy.d.mts +103 -0
- package/Types/UsedBy/UsedBy.d.ts +103 -0
- package/Types/UsedBy/UsedBy.js +389 -0
- package/Types/UsedBy/UsedBy.mjs +20 -0
- package/Types/UsedBy/UsedByServerProducts.d.mts +4 -0
- package/Types/UsedBy/UsedByServerProducts.d.ts +4 -0
- package/Types/UsedBy/UsedByServerProducts.js +48 -0
- package/Types/UsedBy/UsedByServerProducts.mjs +3 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +6 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +6 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +54 -2
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +1 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +1 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +3 -0
- package/Types/Workflow/PassedOnFields.js +2 -1
- package/Types/Workflow/RunRecord.js +1 -1
- package/Types/Workflow/Templates.js +3 -3
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +2 -0
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +2 -0
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +28 -1
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +28 -1
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +84 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +84 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +456 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.mjs +5 -0
- package/Utils/AI/MeaningMatch.d.mts +36 -0
- package/Utils/AI/MeaningMatch.d.ts +36 -0
- package/Utils/AI/MeaningMatch.js +535 -0
- package/Utils/AI/MeaningMatch.mjs +7 -0
- package/Utils/ArchivableValues.js +1 -1
- package/Utils/AuditLog/AuditLogValues.js +2 -2
- package/Utils/Dashboard/ClockWidgetFormat.d.mts +14 -2
- package/Utils/Dashboard/ClockWidgetFormat.d.ts +14 -2
- package/Utils/Dashboard/ClockWidgetFormat.js +105 -2
- package/Utils/Dashboard/DashboardViewConfigSignature.d.mts +3 -0
- package/Utils/Dashboard/DashboardViewConfigSignature.d.ts +3 -0
- package/Utils/Dashboard/DashboardViewConfigSignature.js +45 -0
- package/Utils/Dashboard/DashboardViewConfigSignature.mjs +3 -0
- package/Utils/Dashboard/ValueWidgetSeries.d.mts +2 -0
- package/Utils/Dashboard/ValueWidgetSeries.d.ts +2 -0
- package/Utils/Dashboard/ValueWidgetSeries.js +75 -0
- package/Utils/DataSecurity/TextScanner.js +2 -2
- package/Utils/DeveloperDocs/AiAssistantExamples.js +4 -4
- package/Utils/DeveloperDocs/CliCommands.d.mts +1 -0
- package/Utils/DeveloperDocs/CliCommands.d.ts +1 -0
- package/Utils/DeveloperDocs/CliCommands.js +2 -1
- package/Utils/DeveloperDocs/CliResources.js +2 -1
- package/Utils/DeveloperDocs/ExampleBuilder.js +1 -1
- package/Utils/DeveloperDocs/ResourceProfiles.js +2 -2
- package/Utils/DeveloperDocs/TerraformSchema.js +3 -1
- package/Utils/GuidedSetup/StatusPageRecords.d.mts +5 -0
- package/Utils/GuidedSetup/StatusPageRecords.d.ts +5 -0
- package/Utils/GuidedSetup/StatusPageRecords.js +27 -2
- package/Utils/GuidedSetup/StatusPageRecords.mjs +1 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.js +6 -0
- package/Utils/HostAddressUtil.d.mts +1 -0
- package/Utils/HostAddressUtil.d.ts +1 -0
- package/Utils/HostAddressUtil.js +30 -0
- package/Utils/LinearRegExp/LinearRegExp.js +5 -1
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +8 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +8 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +1493 -131
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +1 -0
- package/Utils/Markdown/MarkdownTableCell.js +2 -1
- package/Utils/Markdown/OverLongText.js +523 -5
- package/Utils/Markdown/SlowMarkdown.d.mts +14 -0
- package/Utils/Markdown/SlowMarkdown.d.ts +14 -0
- package/Utils/Markdown/SlowMarkdown.js +595 -11
- package/Utils/Markdown/SlowMarkdown.mjs +6 -0
- package/Utils/Milliseconds.d.mts +7 -0
- package/Utils/Milliseconds.d.ts +7 -0
- package/Utils/Milliseconds.js +60 -0
- package/Utils/Milliseconds.mjs +4 -0
- package/Utils/ModelApiName.d.mts +11 -0
- package/Utils/ModelApiName.d.ts +11 -0
- package/Utils/ModelApiName.js +72 -0
- package/Utils/ModelApiName.mjs +5 -0
- package/Utils/Monitor/DeviceMacLearningUtil.d.mts +2 -1
- package/Utils/Monitor/DeviceMacLearningUtil.d.ts +2 -1
- package/Utils/Monitor/DeviceMacLearningUtil.js +26 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.mts +8 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.ts +8 -0
- package/Utils/Monitor/EndpointAttachmentUtil.js +97 -22
- package/Utils/Monitor/EndpointAttachmentUtil.mjs +4 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.mts +3 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.ts +3 -0
- package/Utils/Monitor/ExternalStatusPageReading.js +35 -1
- package/Utils/Monitor/ExternalStatusPageReading.mjs +2 -0
- package/Utils/Monitor/InterfaceInventoryUtil.d.mts +40 -0
- package/Utils/Monitor/InterfaceInventoryUtil.d.ts +40 -0
- package/Utils/Monitor/InterfaceInventoryUtil.js +217 -5
- package/Utils/Monitor/InterfaceInventoryUtil.mjs +8 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +63 -29
- package/Utils/Monitor/MonitorOverviewProbeUtil.js +13 -2
- package/Utils/Monitor/MonitorRootCauseWording.d.mts +2 -0
- package/Utils/Monitor/MonitorRootCauseWording.d.ts +2 -0
- package/Utils/Monitor/MonitorRootCauseWording.js +58 -4
- package/Utils/Monitor/MonitorTemplateLinkRefusal.d.mts +9 -0
- package/Utils/Monitor/MonitorTemplateLinkRefusal.d.ts +9 -0
- package/Utils/Monitor/MonitorTemplateLinkRefusal.js +45 -0
- package/Utils/Monitor/MonitorTemplateLinkRefusal.mjs +6 -0
- package/Utils/Monitor/MonitoringOff.d.mts +2 -0
- package/Utils/Monitor/MonitoringOff.d.ts +2 -0
- package/Utils/Monitor/MonitoringOff.js +21 -0
- package/Utils/Monitor/NetworkTopologyUtil.d.mts +2 -1
- package/Utils/Monitor/NetworkTopologyUtil.d.ts +2 -1
- package/Utils/Monitor/NetworkTopologyUtil.js +10 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.d.mts +2 -1
- package/Utils/Monitor/NotOperationalMonitorQuery.d.ts +2 -1
- package/Utils/Monitor/NotOperationalMonitorQuery.js +23 -4
- package/Utils/Monitor/ProbeFailureReading.d.mts +14 -0
- package/Utils/Monitor/ProbeFailureReading.d.ts +14 -0
- package/Utils/Monitor/ProbeFailureReading.js +137 -0
- package/Utils/Monitor/ProbeFailureReading.mjs +7 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.d.mts +9 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.d.ts +9 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.js +15 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.mjs +2 -0
- package/Utils/OpenStack/OpenStackCheckName.js +2 -1
- package/Utils/OpenStack/OpenStackLogScrub.js +1 -1
- package/Utils/OpenStack/OpenStackLogs.js +3 -2
- package/Utils/OpenStack/OpenStackTraces.js +2 -1
- package/Utils/Project/NextNumber.js +1 -1
- package/Utils/Project/NotificationChannels.js +5 -5
- package/Utils/Project/ProjectBalance.js +2 -2
- package/Utils/Project/TwilioAccount.js +2 -2
- package/Utils/PromQL/PromQLAst.d.mts +159 -0
- package/Utils/PromQL/PromQLAst.d.ts +159 -0
- package/Utils/PromQL/PromQLAst.js +118 -0
- package/Utils/PromQL/PromQLAst.mjs +12 -0
- package/Utils/PromQL/PromQLDuration.d.mts +2 -0
- package/Utils/PromQL/PromQLDuration.d.ts +2 -0
- package/Utils/PromQL/PromQLDuration.js +78 -0
- package/Utils/PromQL/PromQLDuration.mjs +3 -0
- package/Utils/PromQL/PromQLEngine.d.mts +15 -0
- package/Utils/PromQL/PromQLEngine.d.ts +15 -0
- package/Utils/PromQL/PromQLEngine.js +965 -0
- package/Utils/PromQL/PromQLEngine.mjs +7 -0
- package/Utils/PromQL/PromQLEngineTypes.d.mts +84 -0
- package/Utils/PromQL/PromQLEngineTypes.d.ts +84 -0
- package/Utils/PromQL/PromQLEngineTypes.js +10 -0
- package/Utils/PromQL/PromQLEngineTypes.mjs +2 -0
- package/Utils/PromQL/PromQLError.d.mts +11 -0
- package/Utils/PromQL/PromQLError.d.ts +11 -0
- package/Utils/PromQL/PromQLError.js +27 -0
- package/Utils/PromQL/PromQLError.mjs +3 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.d.mts +8 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.d.ts +8 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.js +773 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.mjs +3 -0
- package/Utils/PromQL/PromQLFunctions.d.mts +10 -0
- package/Utils/PromQL/PromQLFunctions.d.ts +10 -0
- package/Utils/PromQL/PromQLFunctions.js +127 -0
- package/Utils/PromQL/PromQLFunctions.mjs +4 -0
- package/Utils/PromQL/PromQLLabels.d.mts +11 -0
- package/Utils/PromQL/PromQLLabels.d.ts +11 -0
- package/Utils/PromQL/PromQLLabels.js +218 -0
- package/Utils/PromQL/PromQLLabels.mjs +9 -0
- package/Utils/PromQL/PromQLLexer.d.mts +39 -0
- package/Utils/PromQL/PromQLLexer.d.ts +39 -0
- package/Utils/PromQL/PromQLLexer.js +391 -0
- package/Utils/PromQL/PromQLLexer.mjs +3 -0
- package/Utils/PromQL/PromQLMath.d.mts +19 -0
- package/Utils/PromQL/PromQLMath.d.ts +19 -0
- package/Utils/PromQL/PromQLMath.js +200 -0
- package/Utils/PromQL/PromQLMath.mjs +9 -0
- package/Utils/PromQL/PromQLMetricNames.d.mts +21 -0
- package/Utils/PromQL/PromQLMetricNames.d.ts +21 -0
- package/Utils/PromQL/PromQLMetricNames.js +199 -0
- package/Utils/PromQL/PromQLMetricNames.mjs +8 -0
- package/Utils/PromQL/PromQLParser.d.mts +4 -0
- package/Utils/PromQL/PromQLParser.d.ts +4 -0
- package/Utils/PromQL/PromQLParser.js +831 -0
- package/Utils/PromQL/PromQLParser.mjs +4 -0
- package/Utils/PromQL/PromQLRegex.d.mts +9 -0
- package/Utils/PromQL/PromQLRegex.d.ts +9 -0
- package/Utils/PromQL/PromQLRegex.js +74 -0
- package/Utils/PromQL/PromQLRegex.mjs +2 -0
- package/Utils/PromQL/PrometheusResponse.d.mts +25 -0
- package/Utils/PromQL/PrometheusResponse.d.ts +25 -0
- package/Utils/PromQL/PrometheusResponse.js +90 -0
- package/Utils/PromQL/PrometheusResponse.mjs +3 -0
- package/Utils/Rum/PathInSentence.d.mts +5 -0
- package/Utils/Rum/PathInSentence.d.ts +5 -0
- package/Utils/Rum/PathInSentence.js +46 -0
- package/Utils/Rum/PathInSentence.mjs +6 -0
- package/Utils/Rum/UrlScrubber.d.mts +4 -0
- package/Utils/Rum/UrlScrubber.d.ts +4 -0
- package/Utils/Rum/UrlScrubber.js +143 -3
- package/Utils/Rum/UserFlow.d.mts +1 -1
- package/Utils/Rum/UserFlow.d.ts +1 -1
- package/Utils/Rum/UserFlow.js +180 -25
- package/Utils/Rum/UserFlow.mjs +1 -1
- package/Utils/Runbook/RunbookStepsSignature.d.mts +3 -0
- package/Utils/Runbook/RunbookStepsSignature.d.ts +3 -0
- package/Utils/Runbook/RunbookStepsSignature.js +30 -0
- package/Utils/Runbook/RunbookStepsSignature.mjs +3 -0
- package/Utils/ScheduledMaintenanceStart.d.mts +3 -0
- package/Utils/ScheduledMaintenanceStart.d.ts +3 -0
- package/Utils/ScheduledMaintenanceStart.js +9 -0
- package/Utils/Schema/ModelSchema.js +10 -1
- package/Utils/Schema/TypeSchemas.js +6 -0
- package/Utils/Slo/SloDuration.d.mts +5 -2
- package/Utils/Slo/SloDuration.d.ts +5 -2
- package/Utils/Slo/SloDuration.js +11 -6
- package/Utils/Slo/SloHealth.js +1 -1
- package/Utils/StateOrder.js +1 -4
- package/Utils/StateTimeline/StateTimelineRowDelete.js +1 -1
- package/Utils/Telemetry/HeartbeatAvailability.d.mts +4 -0
- package/Utils/Telemetry/HeartbeatAvailability.d.ts +4 -0
- package/Utils/Telemetry/HeartbeatAvailability.js +118 -26
- package/Utils/Uptime/DayUptimeGraphUtil.js +2 -2
- package/Utils/Uptime/UptimeMaintenanceUtil.js +2 -1
- package/Utils/ValueFormatter.d.mts +8 -6
- package/Utils/ValueFormatter.d.ts +8 -6
- package/Utils/ValueFormatter.js +145 -0
- 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
|
|
55
|
-
*
|
|
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:
|
|
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
|
|
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
|
|
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;
|
package/Types/DateLanguage.d.mts
CHANGED
|
@@ -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;
|
package/Types/DateLanguage.d.ts
CHANGED
|
@@ -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;
|
package/Types/DateLanguage.js
CHANGED
|
@@ -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 =
|
|
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) {
|
package/Types/DateLanguage.mjs
CHANGED
|
@@ -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
|
+
}
|