@oneuptime/common 14.0.107 → 14.0.109
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/AuditLog.js +1 -1
- package/Models/DatabaseModels/CloudApp.d.mts +5 -0
- package/Models/DatabaseModels/CloudApp.d.ts +5 -0
- package/Models/DatabaseModels/CloudApp.js +112 -0
- package/Models/DatabaseModels/DataBiConnection.d.mts +4 -0
- package/Models/DatabaseModels/DataBiConnection.d.ts +4 -0
- package/Models/DatabaseModels/DataBiConnection.js +59 -2
- package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
- package/Models/DatabaseModels/GlobalConfig.js +111 -0
- package/Models/DatabaseModels/Index.js +9 -0
- package/Models/DatabaseModels/Monitor.js +14 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.d.mts +1 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.d.ts +1 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.js +43 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +4 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +4 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +132 -2
- package/Models/DatabaseModels/ProductFeedback.d.mts +11 -0
- package/Models/DatabaseModels/ProductFeedback.d.ts +11 -0
- package/Models/DatabaseModels/ProductFeedback.js +203 -0
- package/Models/DatabaseModels/ProductFeedback.mjs +2 -0
- package/Models/DatabaseModels/Project.d.mts +6 -0
- package/Models/DatabaseModels/Project.d.ts +6 -0
- package/Models/DatabaseModels/Project.js +237 -0
- package/Models/DatabaseModels/ProjectMilestone.d.mts +11 -0
- package/Models/DatabaseModels/ProjectMilestone.d.ts +11 -0
- package/Models/DatabaseModels/ProjectMilestone.js +207 -0
- package/Models/DatabaseModels/ProjectMilestone.mjs +2 -0
- package/Models/DatabaseModels/ProjectUserPreference.d.mts +11 -0
- package/Models/DatabaseModels/ProjectUserPreference.d.ts +11 -0
- package/Models/DatabaseModels/ProjectUserPreference.js +194 -0
- package/Models/DatabaseModels/ProjectUserPreference.mjs +2 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.d.mts +20 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.d.ts +20 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.js +353 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.mjs +2 -0
- package/Models/DatabaseModels/RumSessionPin.js +16 -2
- package/Models/DatabaseModels/RumSessionReplayView.js +8 -1
- package/Models/DatabaseModels/SecurityCase.js +8 -1
- package/Models/DatabaseModels/User.d.mts +2 -0
- package/Models/DatabaseModels/User.d.ts +2 -0
- package/Models/DatabaseModels/User.js +52 -0
- package/Models/DatabaseModels/UserOnCallLog.js +32 -4
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +10 -0
- package/Models/DatabaseModels/WhatsAppLog.d.mts +3 -0
- package/Models/DatabaseModels/WhatsAppLog.d.ts +3 -0
- package/Models/DatabaseModels/WhatsAppLog.js +62 -0
- package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.mts +20 -0
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.ts +20 -0
- package/Models/DatabaseModels/WorkspaceUserGroup.js +1 -1
- package/Server/Services/DatabaseService.d.mts +1 -0
- package/Server/Services/DatabaseService.d.ts +1 -0
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.mts +213 -0
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.ts +213 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.mts +4 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.ts +4 -0
- package/Types/AI/AIActionWords.d.mts +167 -7
- package/Types/AI/AIActionWords.d.ts +167 -7
- package/Types/AI/AIActionWords.js +474 -17
- package/Types/AI/AIActionWords.mjs +22 -0
- package/Types/AI/AIChatMessageStatus.js +3 -2
- package/Types/AI/AIChatRecordSeen.d.mts +6 -2
- package/Types/AI/AIChatRecordSeen.d.ts +6 -2
- package/Types/AI/AIChatRecordSeen.js +48 -9
- package/Types/AI/AIChatRecordSeen.mjs +2 -0
- package/Types/AI/AIChatTypes.d.mts +20 -1
- package/Types/AI/AIChatTypes.d.ts +20 -1
- package/Types/AI/AIChatTypes.js +46 -1
- package/Types/AI/AIChatTypes.mjs +3 -0
- package/Types/AI/AIRunAttempt.d.mts +8 -0
- package/Types/AI/AIRunAttempt.d.ts +8 -0
- package/Types/AI/AIRunAttempt.js +60 -6
- package/Types/AI/AIRunAttempt.mjs +3 -0
- package/Types/AI/AISetupActions.d.mts +9 -0
- package/Types/AI/AISetupActions.d.ts +9 -0
- package/Types/AI/AISetupActions.js +56 -0
- package/Types/AI/AISetupActions.mjs +10 -0
- package/Types/AI/CodeTask.d.mts +14 -0
- package/Types/AI/CodeTask.d.ts +14 -0
- package/Types/AI/InvestigationNotStartedReason.d.mts +7 -0
- package/Types/AI/InvestigationNotStartedReason.d.ts +7 -0
- package/Types/AI/RecordAiTokenLimit.d.mts +24 -0
- package/Types/AI/RecordAiTokenLimit.d.ts +24 -0
- package/Types/AI/RecordAiTokenLimit.js +153 -0
- package/Types/AI/RecordAiTokenLimit.mjs +8 -0
- package/Types/Accounts/SignInMessages.d.mts +8 -0
- package/Types/Accounts/SignInMessages.d.ts +8 -0
- package/Types/Accounts/SignInMessages.js +28 -0
- package/Types/Accounts/SignInMessages.mjs +5 -0
- package/Types/Analytics/ActivationMilestone.d.mts +48 -0
- package/Types/Analytics/ActivationMilestone.d.ts +48 -0
- package/Types/Analytics/ActivationMilestone.js +247 -0
- package/Types/Analytics/ActivationMilestone.mjs +16 -0
- package/Types/Analytics/ChecklistProgress.d.mts +11 -0
- package/Types/Analytics/ChecklistProgress.d.ts +11 -0
- package/Types/Analytics/ChecklistProgress.js +32 -0
- package/Types/Analytics/ChecklistProgress.mjs +2 -0
- package/Types/Analytics/ProductEvent.d.mts +61 -0
- package/Types/Analytics/ProductEvent.d.ts +61 -0
- package/Types/Analytics/ProductEvent.js +430 -0
- package/Types/Analytics/ProductEvent.mjs +14 -0
- package/Types/AuditLog/AuditLogAction.d.mts +5 -1
- package/Types/AuditLog/AuditLogAction.d.ts +5 -1
- package/Types/AuditLog/AuditLogAction.js +11 -0
- package/Types/AuditLog/AuditLogActionLabel.d.mts +3 -0
- package/Types/AuditLog/AuditLogActionLabel.d.ts +3 -0
- package/Types/AuditLog/AuditLogActionLabel.js +30 -0
- package/Types/AuditLog/AuditLogActionLabel.mjs +3 -0
- package/Types/AuditLog/AuditLogCoverage.d.mts +2 -1
- package/Types/AuditLog/AuditLogCoverage.d.ts +2 -1
- package/Types/AuditLog/AuditLogCoverage.js +8 -1
- package/Types/AuditLog/AuditLogRetention.js +7 -4
- package/Types/AuditLog/AuditLogSessionEvent.d.mts +45 -0
- package/Types/AuditLog/AuditLogSessionEvent.d.ts +45 -0
- package/Types/AuditLog/AuditLogSessionEvent.js +210 -0
- package/Types/AuditLog/AuditLogSessionEvent.mjs +14 -0
- package/Types/AutoRemediation/RemediationRound.d.mts +4 -0
- package/Types/AutoRemediation/RemediationRound.d.ts +4 -0
- package/Types/AutoRemediation/RemediationRound.js +19 -2
- package/Types/AutoRemediation/RemediationRoundName.d.mts +1 -0
- package/Types/AutoRemediation/RemediationRoundName.d.ts +1 -0
- package/Types/AutoRemediation/RemediationRoundName.js +5 -0
- package/Types/AutoRemediation/RemediationRoundName.mjs +1 -0
- package/Types/Cloud/CloudAppTelemetrySignal.d.mts +9 -0
- package/Types/Cloud/CloudAppTelemetrySignal.d.ts +9 -0
- package/Types/Cloud/CloudAppTelemetrySignal.js +41 -0
- package/Types/Cloud/CloudAppTelemetrySignal.mjs +4 -0
- package/Types/Cloud/CloudPlatform.js +7 -1
- package/Types/CodeInSentence.d.mts +8 -0
- package/Types/CodeInSentence.d.ts +8 -0
- package/Types/CodeInSentence.js +875 -0
- package/Types/CodeInSentence.mjs +4 -0
- package/Types/CodeRepository/CodeFileSeen.d.mts +5 -0
- package/Types/CodeRepository/CodeFileSeen.d.ts +5 -0
- package/Types/CodeRepository/CodeFileSeen.js +142 -27
- package/Types/CustomDomain/CustomDomainDnsCheckResult.d.mts +13 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.d.ts +13 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.js +80 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.mjs +2 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.d.mts +55 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.d.ts +55 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.js +199 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.mjs +8 -0
- package/Types/CustomDomain/DnsRecordCheck.d.mts +34 -0
- package/Types/CustomDomain/DnsRecordCheck.d.ts +34 -0
- package/Types/CustomDomain/DnsRecordCheck.js +175 -0
- package/Types/CustomDomain/DnsRecordCheck.mjs +6 -0
- package/Types/CustomDomain/DnsRecordCheckWords.d.mts +35 -0
- package/Types/CustomDomain/DnsRecordCheckWords.d.ts +35 -0
- package/Types/CustomDomain/DnsRecordCheckWords.js +151 -0
- package/Types/CustomDomain/DnsRecordCheckWords.mjs +5 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.mts +1 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.ts +1 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.js +11 -1
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.mjs +1 -0
- package/Types/Dashboard/DashboardComponentType.d.mts +2 -0
- package/Types/Dashboard/DashboardComponentType.d.ts +2 -0
- package/Types/Dashboard/DashboardComponentType.js +7 -0
- package/Types/Dashboard/DashboardComponents/ComponentArgument.d.mts +3 -1
- package/Types/Dashboard/DashboardComponents/ComponentArgument.d.ts +3 -1
- package/Types/Dashboard/DashboardComponents/ComponentArgument.js +3 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.mts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.ts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.js +2 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.mjs +1 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.mts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.ts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.js +2 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.mjs +1 -0
- package/Types/Dashboard/PublicDashboardServedSettings.js +15 -7
- package/Types/DataObservability/DataBiRefreshAlert.d.mts +44 -0
- package/Types/DataObservability/DataBiRefreshAlert.d.ts +44 -0
- package/Types/DataObservability/DataBiRefreshAlert.js +206 -0
- package/Types/DataObservability/DataBiRefreshAlert.mjs +12 -0
- package/Types/DataObservability/DataCheckType.d.mts +4 -0
- package/Types/DataObservability/DataCheckType.d.ts +4 -0
- package/Types/DataObservability/DataCheckType.js +17 -0
- package/Types/DataObservability/DataCheckType.mjs +1 -0
- package/Types/DataObservability/DataLineageColumnTrail.d.mts +10 -0
- package/Types/DataObservability/DataLineageColumnTrail.d.ts +10 -0
- package/Types/DataObservability/DataLineageColumnTrail.js +152 -0
- package/Types/DataObservability/DataLineageColumnTrail.mjs +4 -0
- package/Types/DataObservability/DataLineageExpansion.d.mts +29 -0
- package/Types/DataObservability/DataLineageExpansion.d.ts +29 -0
- package/Types/DataObservability/DataLineageExpansion.js +166 -0
- package/Types/DataObservability/DataLineageExpansion.mjs +4 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.mts +8 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +8 -0
- package/Types/DataObservability/DataObservabilityApiTypes.js +14 -0
- package/Types/DataObservability/DataTableLineage.d.mts +29 -1
- package/Types/DataObservability/DataTableLineage.d.ts +29 -1
- package/Types/DataObservability/DataTableLineage.js +27 -7
- package/Types/DataObservability/DataTableLineage.mjs +3 -0
- package/Types/Date.d.mts +22 -0
- package/Types/Date.d.ts +22 -0
- package/Types/Date.js +72 -3
- package/Types/DateLanguage.d.mts +7 -0
- package/Types/DateLanguage.d.ts +7 -0
- package/Types/DateLanguage.js +44 -1
- package/Types/DateLanguage.mjs +1 -0
- package/Types/Docs/DocsLanguage.d.mts +2 -0
- package/Types/Docs/DocsLanguage.d.ts +2 -0
- package/Types/Docs/DocsLanguage.js +23 -1
- package/Types/Docs/DocsLanguage.mjs +2 -0
- package/Types/Docs/GlossaryTerm.d.mts +82 -0
- package/Types/Docs/GlossaryTerm.d.ts +82 -0
- package/Types/Docs/GlossaryTerm.js +126 -0
- package/Types/Docs/GlossaryTerm.mjs +5 -0
- package/Types/Email/AmazonSesAuthenticationType.d.mts +23 -0
- package/Types/Email/AmazonSesAuthenticationType.d.ts +23 -0
- package/Types/Email/AmazonSesAuthenticationType.js +40 -0
- package/Types/Email/AmazonSesAuthenticationType.mjs +4 -0
- package/Types/Email/EmailServer.d.mts +2 -0
- package/Types/Email/EmailServer.d.ts +2 -0
- package/Types/Email/EmailTemplateType.d.mts +1 -0
- package/Types/Email/EmailTemplateType.d.ts +1 -0
- package/Types/Email/EmailTemplateType.js +2 -0
- package/Types/Exception/BadDataExceptionWithDetails.d.mts +6 -0
- package/Types/Exception/BadDataExceptionWithDetails.d.ts +6 -0
- package/Types/Exception/BadDataExceptionWithDetails.js +20 -0
- package/Types/Exception/BadDataExceptionWithDetails.mjs +2 -0
- package/Types/Exception/ErrorMessageRule.d.mts +4 -0
- package/Types/Exception/ErrorMessageRule.d.ts +4 -0
- package/Types/Exception/ErrorMessageRule.js +143 -0
- package/Types/Exception/ErrorMessageRule.mjs +5 -0
- package/Types/Exception/UnexplainedError.d.mts +45 -0
- package/Types/Exception/UnexplainedError.d.ts +45 -0
- package/Types/Exception/UnexplainedError.js +179 -0
- package/Types/Exception/UnexplainedError.mjs +11 -0
- package/Types/HashedString.js +9 -2
- package/Types/Icon/IconProp.d.mts +4 -1
- package/Types/Icon/IconProp.d.ts +4 -1
- package/Types/Icon/IconProp.js +6 -0
- package/Types/InstallationHealth/InstallationHealth.d.mts +122 -0
- package/Types/InstallationHealth/InstallationHealth.d.ts +122 -0
- package/Types/InstallationHealth/InstallationHealth.js +513 -0
- package/Types/InstallationHealth/InstallationHealth.mjs +13 -0
- package/Types/LLM/LLMProviderExchange.d.mts +17 -0
- package/Types/LLM/LLMProviderExchange.d.ts +17 -0
- package/Types/LLM/LLMProviderExchange.js +70 -0
- package/Types/LLM/LLMProviderExchange.mjs +5 -0
- package/Types/Monitor/CriteriaFilter.d.mts +1 -0
- package/Types/Monitor/CriteriaFilter.d.ts +1 -0
- package/Types/Monitor/CriteriaFilter.js +3 -1
- package/Types/Monitor/CriteriaFilterTerms.js +1 -0
- package/Types/Monitor/CriteriaFilterValues.d.mts +18 -0
- package/Types/Monitor/CriteriaFilterValues.d.ts +18 -0
- package/Types/Monitor/CriteriaFilterValues.js +346 -0
- package/Types/Monitor/CriteriaFilterValues.mjs +2 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.d.mts +13 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.d.ts +13 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.js +108 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.mjs +3 -0
- package/Types/Monitor/EvaluationSentence.d.mts +1 -0
- package/Types/Monitor/EvaluationSentence.d.ts +1 -0
- package/Types/Monitor/EvaluationSentence.js +34 -3
- package/Types/Monitor/EvaluationSentence.mjs +1 -0
- package/Types/Monitor/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.mts +1 -0
- package/Types/Monitor/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.ts +1 -0
- package/Types/Monitor/MonitorCriteriaInstance.js +22 -2
- package/Types/Monitor/MonitorStep.js +28 -11
- package/Types/Monitor/MonitorStepMetricMonitor.js +6 -1
- package/Types/Monitor/MonitorStepRollingTime.d.mts +12 -0
- package/Types/Monitor/MonitorStepRollingTime.d.ts +12 -0
- package/Types/Monitor/MonitorStepRollingTime.js +117 -0
- package/Types/Monitor/MonitorStepRollingTime.mjs +2 -0
- package/Types/Monitor/RetiredEvaluationTemplates.d.mts +2 -0
- package/Types/Monitor/RetiredEvaluationTemplates.d.ts +2 -0
- package/Types/Monitor/RetiredEvaluationTemplates.js +95 -0
- package/Types/Monitor/RetiredEvaluationTemplates.mjs +3 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.mts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.ts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.js +20 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.mjs +2 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.mts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.ts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.js +29 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.mjs +2 -0
- package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.mts +7 -0
- package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.ts +7 -0
- package/Types/Monitor/SeriesContext/SeriesLabelDisplay.js +11 -0
- package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.mts +1 -0
- package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.ts +1 -0
- package/Types/Monitor/TelemetryAlertRule.js +7 -2
- package/Types/Monitor/WhoIsTold.d.mts +165 -0
- package/Types/Monitor/WhoIsTold.d.ts +165 -0
- package/Types/Monitor/WhoIsTold.js +582 -0
- package/Types/Monitor/WhoIsTold.mjs +17 -0
- package/Types/NotificationRule/NotificationRepeat.d.mts +10 -0
- package/Types/NotificationRule/NotificationRepeat.d.ts +10 -0
- package/Types/NotificationRule/NotificationRepeat.js +51 -0
- package/Types/NotificationRule/NotificationRepeat.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +70 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +70 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +276 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +12 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.mts +6 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.ts +6 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.js +34 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.d.mts +9 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.d.ts +9 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.js +44 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.mjs +5 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +240 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +240 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +574 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +52 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.mts +31 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.ts +31 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.js +105 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.mjs +14 -0
- package/Types/PhoneNumberDirection.d.mts +6 -0
- package/Types/PhoneNumberDirection.d.ts +6 -0
- package/Types/PhoneNumberDirection.js +123 -0
- package/Types/PhoneNumberDirection.mjs +6 -0
- package/Types/Probe/ProbeMonitorResponse.d.mts +1 -0
- package/Types/Probe/ProbeMonitorResponse.d.ts +1 -0
- package/Types/Product/ProductKey.d.mts +58 -0
- package/Types/Product/ProductKey.d.ts +58 -0
- package/Types/Product/ProductKey.js +175 -0
- package/Types/Product/ProductKey.mjs +8 -0
- package/Types/Product/ProductPins.d.mts +10 -0
- package/Types/Product/ProductPins.d.ts +10 -0
- package/Types/Product/ProductPins.js +65 -0
- package/Types/Product/ProductPins.mjs +6 -0
- package/Types/Product/ProductUsage.d.mts +21 -0
- package/Types/Product/ProductUsage.d.ts +21 -0
- package/Types/Product/ProductUsage.js +175 -0
- package/Types/Product/ProductUsage.mjs +10 -0
- package/Types/Product/ProjectProducts.d.mts +60 -0
- package/Types/Product/ProjectProducts.d.ts +60 -0
- package/Types/Product/ProjectProducts.js +336 -0
- package/Types/Product/ProjectProducts.mjs +19 -0
- package/Types/Product/ProjectProductsAnswer.d.mts +20 -0
- package/Types/Product/ProjectProductsAnswer.d.ts +20 -0
- package/Types/Product/ProjectProductsAnswer.js +139 -0
- package/Types/Product/ProjectProductsAnswer.mjs +7 -0
- package/Types/ProductFeedback/NewGitHubIssue.d.mts +12 -0
- package/Types/ProductFeedback/NewGitHubIssue.d.ts +12 -0
- package/Types/ProductFeedback/NewGitHubIssue.js +64 -0
- package/Types/ProductFeedback/NewGitHubIssue.mjs +5 -0
- package/Types/ProductFeedback/ProductFeedback.d.mts +140 -0
- package/Types/ProductFeedback/ProductFeedback.d.ts +140 -0
- package/Types/ProductFeedback/ProductFeedback.js +517 -0
- package/Types/ProductFeedback/ProductFeedback.mjs +49 -0
- package/Types/ReadingDirection.d.mts +4 -0
- package/Types/ReadingDirection.d.ts +4 -0
- package/Types/ReadingDirection.js +303 -26
- package/Types/ReadingDirection.mjs +4 -0
- package/Types/Recommendation/RecommendationType.d.mts +2 -1
- package/Types/Recommendation/RecommendationType.d.ts +2 -1
- package/Types/Recommendation/RecommendationType.js +6 -0
- package/Types/Reminder/ReminderInterval.d.mts +7 -0
- package/Types/Reminder/ReminderInterval.d.ts +7 -0
- package/Types/Reminder/ReminderInterval.js +110 -0
- package/Types/Reminder/ReminderInterval.mjs +8 -0
- package/Types/Retention/ResolvedRecordRetention.d.mts +19 -0
- package/Types/Retention/ResolvedRecordRetention.d.ts +19 -0
- package/Types/Retention/ResolvedRecordRetention.js +124 -0
- package/Types/Retention/ResolvedRecordRetention.mjs +14 -0
- package/Types/RollingTime/RollingTimeUtil.d.mts +8 -0
- package/Types/RollingTime/RollingTimeUtil.d.ts +8 -0
- package/Types/RollingTime/RollingTimeUtil.js +249 -71
- package/Types/Rum/ProductAnalyticsSavedViews.d.mts +56 -0
- package/Types/Rum/ProductAnalyticsSavedViews.d.ts +56 -0
- package/Types/Rum/ProductAnalyticsSavedViews.js +219 -0
- package/Types/Rum/ProductAnalyticsSavedViews.mjs +14 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +116 -108
- package/Types/ServerSending/ServerSendingStatus.d.mts +69 -0
- package/Types/ServerSending/ServerSendingStatus.d.ts +69 -0
- package/Types/ServerSending/ServerSendingStatus.js +281 -0
- package/Types/ServerSending/ServerSendingStatus.mjs +7 -0
- package/Types/ServerSending/ServerSendingWords.d.mts +9 -0
- package/Types/ServerSending/ServerSendingWords.d.ts +9 -0
- package/Types/ServerSending/ServerSendingWords.js +95 -0
- package/Types/ServerSending/ServerSendingWords.mjs +7 -0
- package/Types/ServerSetup/ServerSetupChecklist.d.mts +172 -0
- package/Types/ServerSetup/ServerSetupChecklist.d.ts +172 -0
- package/Types/ServerSetup/ServerSetupChecklist.js +735 -0
- package/Types/ServerSetup/ServerSetupChecklist.mjs +12 -0
- package/Types/ServerSetup/ServerTestSend.d.mts +35 -0
- package/Types/ServerSetup/ServerTestSend.d.ts +35 -0
- package/Types/ServerSetup/ServerTestSend.js +160 -0
- package/Types/ServerSetup/ServerTestSend.mjs +10 -0
- package/Types/SetupHealth/SetupHealth.d.mts +283 -0
- package/Types/SetupHealth/SetupHealth.d.ts +283 -0
- package/Types/SetupHealth/SetupHealth.js +1047 -0
- package/Types/SetupHealth/SetupHealth.mjs +46 -0
- package/Types/StatusPage/StatusPageSummary.d.mts +1 -0
- package/Types/StatusPage/StatusPageSummary.d.ts +1 -0
- package/Types/StatusPage/StatusPageSummary.js +3 -0
- package/Types/StatusPage/UptimeDailyAggregate.d.mts +25 -0
- package/Types/StatusPage/UptimeDailyAggregate.d.ts +25 -0
- package/Types/Telemetry/LlmCallKind.js +1 -1
- package/Types/Telemetry/ServiceType.d.mts +1 -0
- package/Types/Telemetry/ServiceType.d.ts +1 -0
- package/Types/Telemetry/ServiceType.js +6 -0
- package/Types/Telemetry/TelemetryIngestionBudget.d.mts +1 -0
- package/Types/Telemetry/TelemetryIngestionBudget.d.ts +1 -0
- package/Types/Telemetry/TelemetryIngestionBudget.js +135 -2
- package/Types/Telemetry/TelemetryIngestionBudget.mjs +1 -0
- package/Types/ToolImport/ToolImportCatalog.d.mts +1 -0
- package/Types/ToolImport/ToolImportCatalog.d.ts +1 -0
- package/Types/ToolImport/ToolImportCatalog.js +54 -1
- package/Types/ToolImport/ToolImportCatalog.mjs +1 -0
- package/Types/Translator.js +64 -31
- package/Types/UserNotification/UserNotificationEventType.d.mts +2 -1
- package/Types/UserNotification/UserNotificationEventType.d.ts +2 -1
- package/Types/UserNotification/UserNotificationEventType.js +7 -0
- package/Types/UserSession/SessionEndCause.d.mts +17 -0
- package/Types/UserSession/SessionEndCause.d.ts +17 -0
- package/Types/UserSession/SessionEndCause.js +79 -0
- package/Types/UserSession/SessionEndCause.mjs +6 -0
- package/Types/UserSession/SessionSignIn.d.mts +44 -0
- package/Types/UserSession/SessionSignIn.d.ts +44 -0
- package/Types/UserSession/SessionSignIn.js +174 -0
- package/Types/UserSession/SessionSignIn.mjs +17 -0
- package/Types/WelcomeChecklist/ProjectGoal.d.mts +16 -0
- package/Types/WelcomeChecklist/ProjectGoal.d.ts +16 -0
- package/Types/WelcomeChecklist/ProjectGoal.js +94 -0
- package/Types/WelcomeChecklist/ProjectGoal.mjs +8 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +76 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +76 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +344 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +19 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +24 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +24 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +136 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.mjs +9 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.d.mts +27 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.d.ts +27 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.js +183 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.mjs +13 -0
- package/Types/Workflow/Documentation/AIDocumentation.js +1 -1
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.mts +7 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.ts +7 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.js +40 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.mjs +3 -0
- package/Types/Workspace/WorkspaceChannelMembers.d.mts +1 -0
- package/Types/Workspace/WorkspaceChannelMembers.d.ts +1 -0
- package/Types/Workspace/WorkspaceChannelMembers.js +9 -2
- package/UI/Components/Dropdown/Dropdown.d.mts +1 -0
- package/UI/Components/Dropdown/Dropdown.d.ts +1 -0
- package/Utils/API.js +10 -0
- package/Utils/Crypto.js +10 -3
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.mts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.ts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.js +67 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.mjs +2 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.mts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.ts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.js +68 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.mjs +2 -0
- package/Utils/Dashboard/DashboardWidgetIds.js +6 -1
- package/Utils/Dashboard/DashboardWidgetSorts.js +25 -4
- package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +37 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +37 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.js +86 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.mjs +10 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.d.mts +31 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.d.ts +31 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.js +89 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.mjs +6 -0
- package/Utils/GuidedSetup/StatusPageRecords.d.mts +36 -0
- package/Utils/GuidedSetup/StatusPageRecords.d.ts +36 -0
- package/Utils/GuidedSetup/StatusPageRecords.js +105 -0
- package/Utils/GuidedSetup/StatusPageRecords.mjs +6 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.d.mts +41 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.d.ts +41 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.js +204 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.mjs +9 -0
- package/Utils/Markdown/InlineImageDataUri.d.mts +9 -0
- package/Utils/Markdown/InlineImageDataUri.d.ts +9 -0
- package/Utils/Markdown/InlineImageDataUri.js +17 -1
- package/Utils/Markdown/InlineImageDataUri.mjs +1 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +12 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +12 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +539 -0
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +4 -0
- package/Utils/Metrics/MetricQueryCloudAggregation.js +2 -4
- package/Utils/Monitor/ExternalStatusPageReading.d.mts +9 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.ts +9 -0
- package/Utils/Monitor/ExternalStatusPageReading.js +77 -8
- package/Utils/Monitor/ExternalStatusPageReading.mjs +3 -0
- package/Utils/Monitor/ExternalStatusPageScope.js +17 -1
- package/Utils/Monitor/MonitorDestinationUtil.js +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +10 -1
- package/Utils/Monitor/MonitorRootCauseWording.js +28 -24
- package/Utils/Monitor/MonitorStatusHistoryUtil.d.mts +1 -0
- package/Utils/Monitor/MonitorStatusHistoryUtil.d.ts +1 -0
- package/Utils/Monitor/MonitorStatusHistoryUtil.js +1 -0
- package/Utils/Monitor/MonitorStepMetricQueries.js +2 -1
- package/Utils/Monitor/MonitorStepsValuesUtil.d.mts +13 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.d.ts +13 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.js +80 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.mjs +2 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.d.mts +2 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.d.ts +2 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.js +13 -17
- package/Utils/Monitor/MonitorSummarySnapshotUtil.js +5 -3
- package/Utils/Monitor/MonitorUptimeSummaryUtil.d.mts +1 -1
- package/Utils/Monitor/MonitorUptimeSummaryUtil.d.ts +1 -1
- package/Utils/Monitor/MonitorUptimeSummaryUtil.js +1 -0
- package/Utils/Monitor/MonitoringOff.d.mts +20 -0
- package/Utils/Monitor/MonitoringOff.d.ts +20 -0
- package/Utils/Monitor/MonitoringOff.js +81 -0
- package/Utils/Monitor/MonitoringOff.mjs +4 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.js +9 -7
- package/Utils/Monitor/StateChangeLogScreenshots.d.mts +8 -0
- package/Utils/Monitor/StateChangeLogScreenshots.d.ts +8 -0
- package/Utils/Monitor/StateChangeLogScreenshots.js +116 -0
- package/Utils/Monitor/StateChangeLogScreenshots.mjs +3 -0
- package/Utils/NetworkDevice/Naming/NamingLookup.d.mts +1 -1
- package/Utils/NetworkDevice/Naming/NamingLookup.d.ts +1 -1
- package/Utils/NetworkDevice/Naming/NamingLookup.js +14 -4
- package/Utils/NetworkDevice/Naming/NamingLookup.mjs +1 -0
- package/Utils/Slo/SloErrorBudgetPolicy.d.mts +2 -1
- package/Utils/Slo/SloErrorBudgetPolicy.d.ts +2 -1
- package/Utils/Slo/SloErrorBudgetPolicy.js +8 -2
- package/Utils/Slo/SloListWidgetFormat.d.mts +7 -1
- package/Utils/Slo/SloListWidgetFormat.d.ts +7 -1
- package/Utils/Slo/SloListWidgetFormat.js +20 -26
- package/Utils/Slo/SloOverviewText.d.mts +6 -1
- package/Utils/Slo/SloOverviewText.d.ts +6 -1
- package/Utils/Slo/SloOverviewText.js +3 -3
- package/Utils/Slo/SloProjection.d.mts +18 -0
- package/Utils/Slo/SloProjection.d.ts +18 -0
- package/Utils/Slo/SloProjection.js +53 -12
- package/Utils/Slo/SloProjection.mjs +2 -0
- package/Utils/Slo/SloUtil.d.mts +18 -9
- package/Utils/Slo/SloUtil.d.ts +18 -9
- package/Utils/Slo/SloUtil.js +47 -10
- package/Utils/Slo/SloWidgetFormat.d.mts +69 -11
- package/Utils/Slo/SloWidgetFormat.d.ts +69 -11
- package/Utils/Slo/SloWidgetFormat.js +198 -50
- package/Utils/Slo/SloWidgetFormat.mjs +7 -0
- package/Utils/StatusPage/FrozenMonitorResources.d.mts +41 -0
- package/Utils/StatusPage/FrozenMonitorResources.d.ts +41 -0
- package/Utils/StatusPage/FrozenMonitorResources.js +155 -0
- package/Utils/StatusPage/FrozenMonitorResources.mjs +4 -0
- package/Utils/StatusPage/GroupNestingLayout.d.mts +2 -0
- package/Utils/StatusPage/GroupNestingLayout.d.ts +2 -0
- package/Utils/StatusPage/GroupNestingLayout.js +12 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.mts +48 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.ts +48 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.js +181 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.mjs +2 -0
- package/Utils/StatusPage/ResourceExplorer.d.mts +1 -10
- package/Utils/StatusPage/ResourceExplorer.d.ts +1 -10
- package/Utils/StatusPage/ResourceExplorer.js +11 -29
- package/Utils/StatusPage/ResourceUptime.d.mts +6 -1
- package/Utils/StatusPage/ResourceUptime.d.ts +6 -1
- package/Utils/StatusPage/ResourceUptime.js +31 -6
- package/Utils/StatusPage/StatusPageSummaryBuilder.d.mts +1 -0
- package/Utils/StatusPage/StatusPageSummaryBuilder.d.ts +1 -0
- package/Utils/StatusPage/StatusPageSummaryBuilder.js +12 -1
- package/Utils/StatusPage/StatusPageUptimeTimezone.d.mts +41 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.d.ts +41 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.js +114 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.mjs +2 -0
- package/Utils/StatusPage/UptimeDailyAggregateUtil.d.mts +3 -1
- package/Utils/StatusPage/UptimeDailyAggregateUtil.d.ts +3 -1
- package/Utils/StatusPage/UptimeDailyAggregateUtil.js +69 -50
- package/Utils/Telemetry/CloudInstanceIdentity.js +12 -7
- package/Utils/Uptime/DayUptimeGraphUtil.d.mts +8 -0
- package/Utils/Uptime/DayUptimeGraphUtil.d.ts +8 -0
- package/Utils/Uptime/DayUptimeGraphUtil.js +41 -6
- package/Utils/Uptime/UptimeMaintenanceUtil.d.mts +3 -0
- package/Utils/Uptime/UptimeMaintenanceUtil.d.ts +3 -0
- package/Utils/Uptime/UptimeMaintenanceUtil.js +49 -0
- package/Utils/Uptime/UptimeUtil.d.mts +38 -1
- package/Utils/Uptime/UptimeUtil.d.ts +38 -1
- package/Utils/Uptime/UptimeUtil.js +270 -75
- package/Utils/Uptime/WorstStatusTimeline.d.mts +31 -0
- package/Utils/Uptime/WorstStatusTimeline.d.ts +31 -0
- package/Utils/Uptime/WorstStatusTimeline.js +190 -0
- package/Utils/Uptime/WorstStatusTimeline.mjs +2 -0
- package/Utils/Workspace/WorkspaceSummarySetup.d.mts +25 -0
- package/Utils/Workspace/WorkspaceSummarySetup.d.ts +25 -0
- package/Utils/Workspace/WorkspaceSummarySetup.js +215 -0
- package/Utils/Workspace/WorkspaceSummarySetup.mjs +11 -0
- package/package.json +1 -1
- package/Utils/StatusPage/ArchivedMonitorResources.d.mts +0 -10
- package/Utils/StatusPage/ArchivedMonitorResources.d.ts +0 -10
- package/Utils/StatusPage/ArchivedMonitorResources.js +0 -33
- package/Utils/StatusPage/ArchivedMonitorResources.mjs +0 -2
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* "ku-Latn"), the language otherwise.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.getTextReadingDirection = exports.setApartInSentence = exports.isSetApartInSentence = exports.POP_DIRECTIONAL_ISOLATE = exports.FIRST_STRONG_ISOLATE = exports.getTextReadingDirectionByMostLetters = exports.TEXT_DIRECTION_SCAN_LENGTH = exports.isRightToLeftLanguage = exports.getReadingDirection = exports.RIGHT_TO_LEFT_SCRIPTS = exports.RIGHT_TO_LEFT_LANGUAGES = exports.RIGHT_TO_LEFT = exports.LEFT_TO_RIGHT = void 0;
|
|
18
|
+
exports.getTextReadingDirection = exports.isNumberJoinedToASign = exports.isNumberAlone = exports.setApartInSentence = exports.isSetApartInSentence = exports.POP_DIRECTIONAL_ISOLATE = exports.FIRST_STRONG_ISOLATE = exports.hasEnglishWords = exports.hasRightToLeftWords = exports.getTextReadingDirectionByMostLetters = exports.TEXT_DIRECTION_SCAN_LENGTH = exports.isRightToLeftLanguage = exports.getReadingDirection = exports.RIGHT_TO_LEFT_SCRIPTS = exports.RIGHT_TO_LEFT_LANGUAGES = exports.RIGHT_TO_LEFT = exports.LEFT_TO_RIGHT = void 0;
|
|
19
19
|
exports.LEFT_TO_RIGHT = "ltr";
|
|
20
20
|
exports.RIGHT_TO_LEFT = "rtl";
|
|
21
21
|
// Languages written from right to left, by their primary subtag.
|
|
@@ -110,51 +110,258 @@ exports.isRightToLeftLanguage = isRightToLeftLanguage;
|
|
|
110
110
|
*/
|
|
111
111
|
exports.TEXT_DIRECTION_SCAN_LENGTH = 4096;
|
|
112
112
|
const FIRST_LETTER_REGEX = /\p{L}/u;
|
|
113
|
-
|
|
113
|
+
/*
|
|
114
|
+
* A letter of a script written from right to left, by the scripts that use
|
|
115
|
+
* it (its script extensions), as the bidi algorithm reads it: the Arabic
|
|
116
|
+
* Tatweel (U+0640, "ـ") is a letter of no one script - Arabic, Syriac,
|
|
117
|
+
* Mandaic and Adlam stretch their words with it - and the bidi algorithm
|
|
118
|
+
* draws it as an Arabic letter. Arabic writes it after the article or a
|
|
119
|
+
* preposition put in front of a Latin name ("أحداث الـ CronJob", "لـ
|
|
120
|
+
* SMTP"): read by its script alone, it was a Latin letter, and the line
|
|
121
|
+
* came out left to right, its Arabic words in the wrong order. No other
|
|
122
|
+
* letter is used by these scripts without being of one of them.
|
|
123
|
+
*/
|
|
124
|
+
const RIGHT_TO_LEFT_LETTER_REGEX = /[\p{Script_Extensions=Arabic}\p{Script_Extensions=Hebrew}\p{Script_Extensions=Syriac}\p{Script_Extensions=Thaana}\p{Script_Extensions=Nko}\p{Script_Extensions=Adlam}\p{Script_Extensions=Hanifi_Rohingya}\p{Script_Extensions=Mandaic}\p{Script_Extensions=Samaritan}]/u;
|
|
114
125
|
// One letter, of any script.
|
|
115
126
|
const LETTER_REGEX = /^\p{L}$/u;
|
|
127
|
+
// Each isolate's opening mark: LRI, RLI, FSI.
|
|
128
|
+
const ISOLATE_INITIATOR_REGEX = /^[\u{2066}-\u{2068}]$/u;
|
|
116
129
|
/*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
* so it can be read as a whole: "`kubectl` را اجرا کنید" and "API پرداخت از
|
|
120
|
-
* کار افتاده" are Persian sentences that start with an English word, and
|
|
121
|
-
* laid out from that first letter their Persian words came out in the
|
|
122
|
-
* wrong order. "Checkout API (EU)" and "Rolled back v2.4.1." read left to
|
|
123
|
-
* right, their full stop at their end. A tie goes to the first letter.
|
|
124
|
-
* Null when there is no letter, so the text follows the page; only the
|
|
125
|
-
* first TEXT_DIRECTION_SCAN_LENGTH characters are read.
|
|
130
|
+
* A web address: a scheme from the start of a word ("https://",
|
|
131
|
+
* "s3://"), up to the next space or isolate mark.
|
|
126
132
|
*/
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
|
|
133
|
+
const WEB_ADDRESS_REGEX = /(?<![A-Za-z0-9+.-])[A-Za-z][A-Za-z0-9+.-]{0,31}:\/\/[^\s\u{2066}-\u{2069}]*/gu;
|
|
134
|
+
const getDirectionByCount = (count) => {
|
|
135
|
+
if (count.rightToLeft === count.leftToRight) {
|
|
136
|
+
return count.first;
|
|
130
137
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
138
|
+
return count.rightToLeft > count.leftToRight ? exports.RIGHT_TO_LEFT : exports.LEFT_TO_RIGHT;
|
|
139
|
+
};
|
|
140
|
+
const countLetters = (text) => {
|
|
141
|
+
const outside = { rightToLeft: 0, leftToRight: 0, first: null };
|
|
142
|
+
const inside = { rightToLeft: 0, leftToRight: 0, first: null };
|
|
143
|
+
// How many isolates the scan is in.
|
|
144
|
+
let depth = 0;
|
|
145
|
+
// Each address counted as if it were set apart.
|
|
146
|
+
const scanned = text
|
|
147
|
+
.slice(0, exports.TEXT_DIRECTION_SCAN_LENGTH)
|
|
148
|
+
.replace(WEB_ADDRESS_REGEX, (address) => {
|
|
149
|
+
return `${exports.FIRST_STRONG_ISOLATE}${address}${exports.POP_DIRECTIONAL_ISOLATE}`;
|
|
150
|
+
});
|
|
134
151
|
// By code point, so a letter outside the Basic Multilingual Plane counts once.
|
|
135
|
-
for (const character of
|
|
152
|
+
for (const character of scanned) {
|
|
153
|
+
if (ISOLATE_INITIATOR_REGEX.test(character)) {
|
|
154
|
+
depth++;
|
|
155
|
+
continue;
|
|
156
|
+
}
|
|
157
|
+
// A PDI with no isolate open closes nothing.
|
|
158
|
+
if (character === exports.POP_DIRECTIONAL_ISOLATE) {
|
|
159
|
+
depth = Math.max(0, depth - 1);
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
136
162
|
if (!LETTER_REGEX.test(character)) {
|
|
137
163
|
continue;
|
|
138
164
|
}
|
|
139
165
|
const direction = RIGHT_TO_LEFT_LETTER_REGEX.test(character)
|
|
140
166
|
? exports.RIGHT_TO_LEFT
|
|
141
167
|
: exports.LEFT_TO_RIGHT;
|
|
168
|
+
const count = depth > 0 ? inside : outside;
|
|
142
169
|
if (direction === exports.RIGHT_TO_LEFT) {
|
|
143
|
-
|
|
170
|
+
count.rightToLeft++;
|
|
144
171
|
}
|
|
145
172
|
else {
|
|
146
|
-
|
|
173
|
+
count.leftToRight++;
|
|
147
174
|
}
|
|
148
|
-
|
|
175
|
+
count.first = count.first || direction;
|
|
149
176
|
}
|
|
150
|
-
|
|
151
|
-
|
|
177
|
+
return { outside, inside };
|
|
178
|
+
};
|
|
179
|
+
const getTextReadingDirectionByMostLetters = (text) => {
|
|
180
|
+
if (!text) {
|
|
181
|
+
return null;
|
|
152
182
|
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
: exports.LEFT_TO_RIGHT;
|
|
183
|
+
const counts = countLetters(text);
|
|
184
|
+
return (getDirectionByCount(counts.outside) || getDirectionByCount(counts.inside));
|
|
156
185
|
};
|
|
157
186
|
exports.getTextReadingDirectionByMostLetters = getTextReadingDirectionByMostLetters;
|
|
187
|
+
/*
|
|
188
|
+
* WHETHER A TEXT HAS WORDS OF A RIGHT-TO-LEFT SCRIPT OF ITS OWN: a letter
|
|
189
|
+
* of one outside what it sets apart - an isolate, a web address - counted
|
|
190
|
+
* as getTextReadingDirectionByMostLetters counts. An Arabic or Persian
|
|
191
|
+
* sentence has, however many names, paths and commands it gives in Latin
|
|
192
|
+
* letters ("Microsoft Teams غير متصل بعد!"); an English sentence has not,
|
|
193
|
+
* nor one that sets a Persian name apart. Only the first
|
|
194
|
+
* TEXT_DIRECTION_SCAN_LENGTH characters are read.
|
|
195
|
+
*/
|
|
196
|
+
const hasRightToLeftWords = (text) => {
|
|
197
|
+
return Boolean(text) && countLetters(text).outside.rightToLeft > 0;
|
|
198
|
+
};
|
|
199
|
+
exports.hasRightToLeftWords = hasRightToLeftWords;
|
|
200
|
+
/*
|
|
201
|
+
* WHETHER A TEXT HAS ENGLISH WORDS OF ITS OWN: whether it is an English
|
|
202
|
+
* sentence, not a name or a label in Latin letters. An answer from the
|
|
203
|
+
* server is English, and it may quote a name someone typed in Arabic or
|
|
204
|
+
* Persian ("A custom channel named قناة الطوارئ already exists."), so it
|
|
205
|
+
* has right-to-left letters of its own too (hasRightToLeftWords). What
|
|
206
|
+
* tells it from an Arabic sentence that names products ("Microsoft Teams
|
|
207
|
+
* غير متصل بعد!") are the small words an English sentence is made of: "is",
|
|
208
|
+
* "the", "already", "not" (ENGLISH_SENTENCE_WORDS). One counts when it is
|
|
209
|
+
* written in lower case outside what the text sets apart in an isolate,
|
|
210
|
+
* quotes, marks as code or in bold, or leaves to a value ({{name}}), and
|
|
211
|
+
* is not inside a name written in Title Case ("Red Hat OpenStack Services
|
|
212
|
+
* on OpenShift", "Add an Integration"). Only the first
|
|
213
|
+
* TEXT_DIRECTION_SCAN_LENGTH characters are read.
|
|
214
|
+
*/
|
|
215
|
+
const ENGLISH_SENTENCE_WORDS = new Set([
|
|
216
|
+
"already",
|
|
217
|
+
"also",
|
|
218
|
+
"an",
|
|
219
|
+
"and",
|
|
220
|
+
"another",
|
|
221
|
+
"any",
|
|
222
|
+
"are",
|
|
223
|
+
"aren't",
|
|
224
|
+
"as",
|
|
225
|
+
"at",
|
|
226
|
+
"be",
|
|
227
|
+
"been",
|
|
228
|
+
"but",
|
|
229
|
+
"by",
|
|
230
|
+
"can",
|
|
231
|
+
"can't",
|
|
232
|
+
"cannot",
|
|
233
|
+
"could",
|
|
234
|
+
"couldn't",
|
|
235
|
+
"did",
|
|
236
|
+
"do",
|
|
237
|
+
"does",
|
|
238
|
+
"doesn't",
|
|
239
|
+
"don't",
|
|
240
|
+
"each",
|
|
241
|
+
"every",
|
|
242
|
+
"for",
|
|
243
|
+
"from",
|
|
244
|
+
"had",
|
|
245
|
+
"has",
|
|
246
|
+
"have",
|
|
247
|
+
"here",
|
|
248
|
+
"how",
|
|
249
|
+
"if",
|
|
250
|
+
"in",
|
|
251
|
+
"into",
|
|
252
|
+
"is",
|
|
253
|
+
"isn't",
|
|
254
|
+
"it",
|
|
255
|
+
"it's",
|
|
256
|
+
"its",
|
|
257
|
+
"may",
|
|
258
|
+
"must",
|
|
259
|
+
"no",
|
|
260
|
+
"not",
|
|
261
|
+
"of",
|
|
262
|
+
"on",
|
|
263
|
+
"only",
|
|
264
|
+
"or",
|
|
265
|
+
"other",
|
|
266
|
+
"our",
|
|
267
|
+
"please",
|
|
268
|
+
"should",
|
|
269
|
+
"so",
|
|
270
|
+
"some",
|
|
271
|
+
"than",
|
|
272
|
+
"that",
|
|
273
|
+
"the",
|
|
274
|
+
"their",
|
|
275
|
+
"then",
|
|
276
|
+
"there",
|
|
277
|
+
"these",
|
|
278
|
+
"they",
|
|
279
|
+
"this",
|
|
280
|
+
"those",
|
|
281
|
+
"to",
|
|
282
|
+
"too",
|
|
283
|
+
"was",
|
|
284
|
+
"wasn't",
|
|
285
|
+
"we",
|
|
286
|
+
"were",
|
|
287
|
+
"what",
|
|
288
|
+
"when",
|
|
289
|
+
"where",
|
|
290
|
+
"which",
|
|
291
|
+
"who",
|
|
292
|
+
"will",
|
|
293
|
+
"with",
|
|
294
|
+
"won't",
|
|
295
|
+
"would",
|
|
296
|
+
"yet",
|
|
297
|
+
"you",
|
|
298
|
+
"your",
|
|
299
|
+
]);
|
|
300
|
+
/*
|
|
301
|
+
* What a text quotes, marks as code or in bold, or leaves to a value: not
|
|
302
|
+
* its own words. Each kind opens with its own sign and is read no further
|
|
303
|
+
* than 256 characters for its close.
|
|
304
|
+
*/
|
|
305
|
+
const QUOTED_OR_CODE_REGEX = /\{\{[^{}]{0,256}\}\}|`[^`]{0,256}`|\*\*[^*]{0,256}\*\*|\u{00AB}[^\u{00AB}\u{00BB}]{0,256}\u{00BB}|\u{201C}[^\u{201C}\u{201D}]{0,256}\u{201D}|"[^"]{0,256}"/gu;
|
|
306
|
+
const SPACES_REGEX = /\s+/u;
|
|
307
|
+
const CURLY_APOSTROPHE_REGEX = /\u{2019}/gu;
|
|
308
|
+
// A Latin letter, or an apostrophe inside a word ("isn't", "it’s").
|
|
309
|
+
const isWordCharacter = (character) => {
|
|
310
|
+
return ((character >= "a" && character <= "z") ||
|
|
311
|
+
(character >= "A" && character <= "Z") ||
|
|
312
|
+
character === "'" ||
|
|
313
|
+
character === "\u{2019}");
|
|
314
|
+
};
|
|
315
|
+
// A piece of text between spaces without the signs round it: "exists." is "exists".
|
|
316
|
+
const getWordOf = (piece) => {
|
|
317
|
+
let start = 0;
|
|
318
|
+
let end = piece.length;
|
|
319
|
+
while (start < end && !isWordCharacter(piece.charAt(start))) {
|
|
320
|
+
start++;
|
|
321
|
+
}
|
|
322
|
+
while (end > start && !isWordCharacter(piece.charAt(end - 1))) {
|
|
323
|
+
end--;
|
|
324
|
+
}
|
|
325
|
+
return piece.slice(start, end).replace(CURLY_APOSTROPHE_REGEX, "'");
|
|
326
|
+
};
|
|
327
|
+
const isTitleCaseWord = (word) => {
|
|
328
|
+
const first = word ? word.charAt(0) : "";
|
|
329
|
+
return first >= "A" && first <= "Z";
|
|
330
|
+
};
|
|
331
|
+
const hasEnglishWords = (text) => {
|
|
332
|
+
if (!text) {
|
|
333
|
+
return false;
|
|
334
|
+
}
|
|
335
|
+
/*
|
|
336
|
+
* The text outside its isolates, with a space where each was. A web
|
|
337
|
+
* address holds no word of its own: it runs to the next space.
|
|
338
|
+
*/
|
|
339
|
+
let ownText = "";
|
|
340
|
+
let depth = 0;
|
|
341
|
+
for (const character of text.slice(0, exports.TEXT_DIRECTION_SCAN_LENGTH)) {
|
|
342
|
+
if (ISOLATE_INITIATOR_REGEX.test(character)) {
|
|
343
|
+
ownText += depth === 0 ? " " : "";
|
|
344
|
+
depth++;
|
|
345
|
+
continue;
|
|
346
|
+
}
|
|
347
|
+
if (character === exports.POP_DIRECTIONAL_ISOLATE) {
|
|
348
|
+
depth = Math.max(0, depth - 1);
|
|
349
|
+
continue;
|
|
350
|
+
}
|
|
351
|
+
if (depth === 0) {
|
|
352
|
+
ownText += character;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
const words = ownText
|
|
356
|
+
.replace(QUOTED_OR_CODE_REGEX, " ")
|
|
357
|
+
.split(SPACES_REGEX)
|
|
358
|
+
.map(getWordOf);
|
|
359
|
+
return words.some((word, index) => {
|
|
360
|
+
return (ENGLISH_SENTENCE_WORDS.has(word) &&
|
|
361
|
+
!(isTitleCaseWord(words[index - 1]) && isTitleCaseWord(words[index + 1])));
|
|
362
|
+
});
|
|
363
|
+
};
|
|
364
|
+
exports.hasEnglishWords = hasEnglishWords;
|
|
158
365
|
/*
|
|
159
366
|
* A VALUE PUT INTO A SENTENCE, SET APART FROM IT.
|
|
160
367
|
*
|
|
@@ -206,6 +413,76 @@ const setApartInSentence = (value, sentenceDirection) => {
|
|
|
206
413
|
: value;
|
|
207
414
|
};
|
|
208
415
|
exports.setApartInSentence = setApartInSentence;
|
|
416
|
+
/*
|
|
417
|
+
* A NUMBER KEEPS THE SIGNS A SENTENCE WRITES AGAINST IT.
|
|
418
|
+
*
|
|
419
|
+
* The bidi algorithm reads two numbers with one separator between them as
|
|
420
|
+
* one number - a slash, a colon, a full stop or a comma (its common
|
|
421
|
+
* separators), a plus or a minus (its European separators): "3/5",
|
|
422
|
+
* "09:30", "1.2" - and a number sign in front of a number as part of it:
|
|
423
|
+
* "#42". To the sentence around it an isolate is one sign of its own, so a
|
|
424
|
+
* number set apart in one is cut off from the signs beside it: "الأجهزة
|
|
425
|
+
* المتصلة: {{online}}/{{count}}", each count set apart, was drawn "5/3"
|
|
426
|
+
* where it reads "3/5", and Persian's "حادثه #{{number}}", whose
|
|
427
|
+
* right-to-left mark (U+200F) before the sign keeps it in front of the
|
|
428
|
+
* number ("#۴۲"), was drawn "۴۲#".
|
|
429
|
+
*
|
|
430
|
+
* So a value that is a number and nothing else, joined to another number
|
|
431
|
+
* by one separator or written after a number sign, is not set apart (the
|
|
432
|
+
* Translator's setsValuesApart): it is drawn with its sign the way the
|
|
433
|
+
* sentence writes it - "3/5", "09:30", the Persian "#۴۲" and the Arabic
|
|
434
|
+
* "42#" - as where no value is set apart. A name, an address or a time
|
|
435
|
+
* beside it is still set apart, and so is a number written apart from its
|
|
436
|
+
* signs. Whether two numbers join is read from the sentence with its
|
|
437
|
+
* values as they are (`before` and `after`): a sign between a number and a
|
|
438
|
+
* name joins nothing.
|
|
439
|
+
*
|
|
440
|
+
* A number with a percent or a currency sign stays set apart. After
|
|
441
|
+
* Arabic or Persian words the bidi algorithm reads its sign with the
|
|
442
|
+
* sentence, from the right ("%45", "5$"), but at the start of a sentence
|
|
443
|
+
* it reads the two left to right ("45%"): left as they are, "{{kept}}%
|
|
444
|
+
* kept, {{discarded}}% dropped" drew its first percent "45%" and its
|
|
445
|
+
* second "%55". Set apart, every one is drawn as the sentence reads.
|
|
446
|
+
*/
|
|
447
|
+
// The bidi algorithm's common and European separators: one between two numbers joins them.
|
|
448
|
+
const NUMBER_SEPARATOR_REGEX = /^[+,\-./:\u{00A0}\u{060C}\u{202F}\u{2044}\u{207A}\u{207B}\u{208A}\u{208B}\u{2212}\u{FB29}\u{FE50}\u{FE52}\u{FE55}\u{FE62}\u{FE63}\u{FF0B}\u{FF0C}\u{FF0D}\u{FF0E}\u{FF0F}\u{FF1A}]$/u;
|
|
449
|
+
// A number sign - "#", and its small and full-width forms: in front of a number, part of it.
|
|
450
|
+
const NUMBER_SIGN_REGEX = /^[#\u{FE5F}\u{FF03}]$/u;
|
|
451
|
+
/*
|
|
452
|
+
* A number and nothing else, as Intl writes one in any language: "42",
|
|
453
|
+
* "1,234.5", "1.234,5", "1 234", "1'234", "۱٬۲۳۴٫۵", and a negative one
|
|
454
|
+
* with the mark Intl puts in front of its sign - a left-to-right mark
|
|
455
|
+
* (U+200E) in Persian and Arabic with Latin digits, an Arabic letter mark
|
|
456
|
+
* (U+061C) with Arabic ones, a right-to-left mark (U+200F) in Sorani -
|
|
457
|
+
* and after it in Pashto.
|
|
458
|
+
*/
|
|
459
|
+
const NUMBER_ALONE_REGEX = /^[\u{200E}\u{200F}\u{061C}]?(?:[+\-\u{2212}][\u{200E}\u{200F}\u{061C}]?)?\p{Nd}+(?:[,.'\u{00A0}\u{066B}\u{066C}\u{2009}\u{2019}\u{202F}]\p{Nd}+)*$/u;
|
|
460
|
+
// No number Intl writes is longer: a longer value is not read as one.
|
|
461
|
+
const NUMBER_ALONE_LENGTH = 64;
|
|
462
|
+
// Whether `value` is a number and nothing else.
|
|
463
|
+
const isNumberAlone = (value) => {
|
|
464
|
+
return value.length <= NUMBER_ALONE_LENGTH && NUMBER_ALONE_REGEX.test(value);
|
|
465
|
+
};
|
|
466
|
+
exports.isNumberAlone = isNumberAlone;
|
|
467
|
+
/*
|
|
468
|
+
* Whether `value`, a number written in a sentence between the text
|
|
469
|
+
* `before` it and the text `after` it (the sentence's values filled in as
|
|
470
|
+
* they are), is drawn as one with a sign written against it: one
|
|
471
|
+
* separator between it and a digit, or a number sign in front of it.
|
|
472
|
+
*/
|
|
473
|
+
const isNumberJoinedToASign = (value, before, after) => {
|
|
474
|
+
if (!(0, exports.isNumberAlone)(value)) {
|
|
475
|
+
return false;
|
|
476
|
+
}
|
|
477
|
+
const signBefore = before.charAt(before.length - 1);
|
|
478
|
+
const signAfter = after.charAt(0);
|
|
479
|
+
return (NUMBER_SIGN_REGEX.test(signBefore) ||
|
|
480
|
+
(NUMBER_SEPARATOR_REGEX.test(signBefore) &&
|
|
481
|
+
DIGIT_REGEX.test(before.charAt(before.length - 2))) ||
|
|
482
|
+
(NUMBER_SEPARATOR_REGEX.test(signAfter) &&
|
|
483
|
+
DIGIT_REGEX.test(after.charAt(1))));
|
|
484
|
+
};
|
|
485
|
+
exports.isNumberJoinedToASign = isNumberJoinedToASign;
|
|
209
486
|
const getTextReadingDirection = (text) => {
|
|
210
487
|
if (!text) {
|
|
211
488
|
return null;
|
|
@@ -9,6 +9,10 @@ export const TEXT_DIRECTION_SCAN_LENGTH = commonJsModule.TEXT_DIRECTION_SCAN_LEN
|
|
|
9
9
|
export const getReadingDirection = commonJsModule.getReadingDirection;
|
|
10
10
|
export const getTextReadingDirection = commonJsModule.getTextReadingDirection;
|
|
11
11
|
export const getTextReadingDirectionByMostLetters = commonJsModule.getTextReadingDirectionByMostLetters;
|
|
12
|
+
export const hasEnglishWords = commonJsModule.hasEnglishWords;
|
|
13
|
+
export const hasRightToLeftWords = commonJsModule.hasRightToLeftWords;
|
|
14
|
+
export const isNumberAlone = commonJsModule.isNumberAlone;
|
|
15
|
+
export const isNumberJoinedToASign = commonJsModule.isNumberJoinedToASign;
|
|
12
16
|
export const isRightToLeftLanguage = commonJsModule.isRightToLeftLanguage;
|
|
13
17
|
export const isSetApartInSentence = commonJsModule.isSetApartInSentence;
|
|
14
18
|
export const setApartInSentence = commonJsModule.setApartInSentence;
|
|
@@ -22,5 +22,11 @@ var RecommendationType;
|
|
|
22
22
|
RecommendationType["DataCheck"] = "DataCheck";
|
|
23
23
|
// A database the project knows of with no connection (Server/Utils/DataObservability/DataSourceSuggestions).
|
|
24
24
|
RecommendationType["DataSource"] = "DataSource";
|
|
25
|
+
/*
|
|
26
|
+
* A Setup health finding the team hides on purpose ("We do not page for
|
|
27
|
+
* this on purpose"): the check as the recommendation, the record it is
|
|
28
|
+
* about as the resource (Types/SetupHealth/SetupHealth).
|
|
29
|
+
*/
|
|
30
|
+
RecommendationType["SetupHealth"] = "SetupHealth";
|
|
25
31
|
})(RecommendationType || (RecommendationType = {}));
|
|
26
32
|
exports.default = RecommendationType;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const REMINDER_INTERVAL_COLUMN: string;
|
|
2
|
+
export declare const MIN_REMINDER_INTERVAL_IN_MINUTES: number;
|
|
3
|
+
export declare const MAX_REMINDER_INTERVAL_IN_MINUTES: number;
|
|
4
|
+
export declare const REMINDER_INTERVAL_REFUSAL: string;
|
|
5
|
+
export declare function readReminderIntervalInMinutes(value: unknown): number | null;
|
|
6
|
+
export declare function getReminderIntervalRefusal(value: unknown): string | null;
|
|
7
|
+
export declare function getReminderIntervalInMinutes(value: unknown): number | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const REMINDER_INTERVAL_COLUMN: string;
|
|
2
|
+
export declare const MIN_REMINDER_INTERVAL_IN_MINUTES: number;
|
|
3
|
+
export declare const MAX_REMINDER_INTERVAL_IN_MINUTES: number;
|
|
4
|
+
export declare const REMINDER_INTERVAL_REFUSAL: string;
|
|
5
|
+
export declare function readReminderIntervalInMinutes(value: unknown): number | null;
|
|
6
|
+
export declare function getReminderIntervalRefusal(value: unknown): string | null;
|
|
7
|
+
export declare function getReminderIntervalInMinutes(value: unknown): number | null;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* HOW OFTEN A REMINDER RULE REMINDS: ITS INTERVAL, IN MINUTES.
|
|
4
|
+
*
|
|
5
|
+
* An incident's, an alert's and a scheduled maintenance event's reminder
|
|
6
|
+
* rules (IncidentReminderRule, AlertReminderRule,
|
|
7
|
+
* ScheduledMaintenanceReminderRule) remind the record's owners every
|
|
8
|
+
* "Reminder Interval (Minutes)" (reminderIntervalInMinutes) while it is
|
|
9
|
+
* open. The workers that send them (Workers/Jobs/IncidentOwners,
|
|
10
|
+
* AlertOwners and ScheduledMaintenanceOwners,
|
|
11
|
+
* SendUnresolvedReminderNotification) run every minute: each sends the
|
|
12
|
+
* reminders that are due and puts the next one that many minutes later.
|
|
13
|
+
*
|
|
14
|
+
* The interval's only check was the one every required column has - is
|
|
15
|
+
* there a value at all - the check that refused the 0% error budget policy
|
|
16
|
+
* tier of #6978. It refused 0 as "reminderIntervalInMinutes is required",
|
|
17
|
+
* and it took -5, which put each next reminder five minutes in the past:
|
|
18
|
+
* the owners were reminded every minute, by every channel they have, until
|
|
19
|
+
* the record was resolved. An edit was not checked at all, so 0 saved
|
|
20
|
+
* there, and the rule then reminded nobody.
|
|
21
|
+
*
|
|
22
|
+
* Every write now holds the interval to a whole number of minutes from 1 to
|
|
23
|
+
* a year: the Dashboard's forms, and the API, Terraform, MCP and workflows
|
|
24
|
+
* through the three rules' services (Server/Utils/Rules/ReminderIntervalCheck).
|
|
25
|
+
* A rule saved before with an interval below a minute reminds nobody, as a
|
|
26
|
+
* rule without one always did, instead of reminding every minute.
|
|
27
|
+
*
|
|
28
|
+
* Server-free and React-free: the services, the workers and the Dashboard
|
|
29
|
+
* read the same numbers and words from here.
|
|
30
|
+
*/
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.REMINDER_INTERVAL_REFUSAL = exports.MAX_REMINDER_INTERVAL_IN_MINUTES = exports.MIN_REMINDER_INTERVAL_IN_MINUTES = exports.REMINDER_INTERVAL_COLUMN = void 0;
|
|
33
|
+
exports.readReminderIntervalInMinutes = readReminderIntervalInMinutes;
|
|
34
|
+
exports.getReminderIntervalRefusal = getReminderIntervalRefusal;
|
|
35
|
+
exports.getReminderIntervalInMinutes = getReminderIntervalInMinutes;
|
|
36
|
+
// The column every reminder rule keeps its interval in.
|
|
37
|
+
exports.REMINDER_INTERVAL_COLUMN = "reminderIntervalInMinutes";
|
|
38
|
+
// The shortest interval: the workers that remind run once a minute.
|
|
39
|
+
exports.MIN_REMINDER_INTERVAL_IN_MINUTES = 1;
|
|
40
|
+
/*
|
|
41
|
+
* The longest: a year. Far longer than anything stays open, and a bound
|
|
42
|
+
* keeps a typo - a number of seconds, say - from being saved as a number
|
|
43
|
+
* the column cannot hold.
|
|
44
|
+
*/
|
|
45
|
+
exports.MAX_REMINDER_INTERVAL_IN_MINUTES = 365 * 24 * 60;
|
|
46
|
+
exports.REMINDER_INTERVAL_REFUSAL = `Reminder Interval (Minutes) must be a whole number of minutes from ${exports.MIN_REMINDER_INTERVAL_IN_MINUTES} to ${exports.MAX_REMINDER_INTERVAL_IN_MINUTES} (a year).`;
|
|
47
|
+
/*
|
|
48
|
+
* The whole number a value is - a number, or one written as text ("30") -
|
|
49
|
+
* or null for anything else: nothing, an empty box, a part of a minute,
|
|
50
|
+
* words, true.
|
|
51
|
+
*/
|
|
52
|
+
function readWholeNumber(value) {
|
|
53
|
+
let minutes;
|
|
54
|
+
if (typeof value === "number") {
|
|
55
|
+
minutes = value;
|
|
56
|
+
}
|
|
57
|
+
else if (typeof value === "string" && value.trim().length > 0) {
|
|
58
|
+
minutes = Number(value.trim());
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
return Number.isInteger(minutes) ? minutes : null;
|
|
64
|
+
}
|
|
65
|
+
/*
|
|
66
|
+
* The interval a write may save, as the number the column stores - one
|
|
67
|
+
* sent as text is the number it spells - or null when it may not be saved:
|
|
68
|
+
* anything but a whole number of minutes from 1 to a year.
|
|
69
|
+
*/
|
|
70
|
+
function readReminderIntervalInMinutes(value) {
|
|
71
|
+
const minutes = readWholeNumber(value);
|
|
72
|
+
if (minutes === null ||
|
|
73
|
+
minutes < exports.MIN_REMINDER_INTERVAL_IN_MINUTES ||
|
|
74
|
+
minutes > exports.MAX_REMINDER_INTERVAL_IN_MINUTES) {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
return minutes;
|
|
78
|
+
}
|
|
79
|
+
/*
|
|
80
|
+
* Why a value cannot be saved as a rule's interval, or null when it can.
|
|
81
|
+
* Nothing at all (undefined) is no interval written: an update keeps the
|
|
82
|
+
* rule's own, and a create without one is refused by the required-column
|
|
83
|
+
* check ("reminderIntervalInMinutes is required"). Null, an empty box, 0,
|
|
84
|
+
* a negative number, a part of a minute and anything over a year are
|
|
85
|
+
* refused.
|
|
86
|
+
*/
|
|
87
|
+
function getReminderIntervalRefusal(value) {
|
|
88
|
+
if (value === undefined) {
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
return readReminderIntervalInMinutes(value) === null
|
|
92
|
+
? exports.REMINDER_INTERVAL_REFUSAL
|
|
93
|
+
: null;
|
|
94
|
+
}
|
|
95
|
+
/*
|
|
96
|
+
* How often a saved rule reminds, in minutes, or null when it reminds
|
|
97
|
+
* nobody. What the workers, the services that schedule a record's next
|
|
98
|
+
* reminder, and the Dashboard's countdown to it read. A whole number of
|
|
99
|
+
* minutes from 1 up, read as at most a year. Anything else - no interval,
|
|
100
|
+
* or one below a minute, which only a rule saved before the check can hold
|
|
101
|
+
* - reminds nobody, as a rule without an interval always did: never every
|
|
102
|
+
* minute.
|
|
103
|
+
*/
|
|
104
|
+
function getReminderIntervalInMinutes(value) {
|
|
105
|
+
const minutes = readWholeNumber(value);
|
|
106
|
+
if (minutes === null || minutes < exports.MIN_REMINDER_INTERVAL_IN_MINUTES) {
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
return Math.min(minutes, exports.MAX_REMINDER_INTERVAL_IN_MINUTES);
|
|
110
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import commonJsModule from "./ReminderInterval.js";
|
|
2
|
+
export const MAX_REMINDER_INTERVAL_IN_MINUTES = commonJsModule.MAX_REMINDER_INTERVAL_IN_MINUTES;
|
|
3
|
+
export const MIN_REMINDER_INTERVAL_IN_MINUTES = commonJsModule.MIN_REMINDER_INTERVAL_IN_MINUTES;
|
|
4
|
+
export const REMINDER_INTERVAL_COLUMN = commonJsModule.REMINDER_INTERVAL_COLUMN;
|
|
5
|
+
export const REMINDER_INTERVAL_REFUSAL = commonJsModule.REMINDER_INTERVAL_REFUSAL;
|
|
6
|
+
export const getReminderIntervalInMinutes = commonJsModule.getReminderIntervalInMinutes;
|
|
7
|
+
export const getReminderIntervalRefusal = commonJsModule.getReminderIntervalRefusal;
|
|
8
|
+
export const readReminderIntervalInMinutes = commonJsModule.readReminderIntervalInMinutes;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum ResolvedRecordKind {
|
|
2
|
+
Incident = "Incident",
|
|
3
|
+
Alert = "Alert"
|
|
4
|
+
}
|
|
5
|
+
export declare const RESOLVED_RECORD_RETENTION_CHOICES_IN_DAYS: ReadonlyArray<number>;
|
|
6
|
+
export declare const KEEP_EVERY_RESOLVED_RECORD: number;
|
|
7
|
+
export declare const DEFAULT_RESOLVED_RECORD_RETENTION_IN_DAYS: number;
|
|
8
|
+
export declare const MIN_RESOLVED_RECORD_RETENTION_IN_DAYS: number;
|
|
9
|
+
export declare const DEFAULT_KEEP_INCIDENTS_WITH_COMPLETED_POSTMORTEM: boolean;
|
|
10
|
+
export declare function getResolvedRecordRetentionRefusal(kind: ResolvedRecordKind): string;
|
|
11
|
+
export declare function isResolvedRecordRetentionInDays(value: unknown): value is number;
|
|
12
|
+
export declare function getResolvedRecordRetentionProblem(value: unknown, kind: ResolvedRecordKind): string | null;
|
|
13
|
+
export declare function toResolvedRecordRetentionInDays(value: unknown): number;
|
|
14
|
+
export declare function readResolvedRecordRetentionInDays(value: unknown): number | undefined;
|
|
15
|
+
export declare function isResolvedRecordRetentionOn(days: number): boolean;
|
|
16
|
+
export declare function doesResolvedRecordRetentionDeleteMore(data: {
|
|
17
|
+
from: number;
|
|
18
|
+
to: number;
|
|
19
|
+
}): boolean;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum ResolvedRecordKind {
|
|
2
|
+
Incident = "Incident",
|
|
3
|
+
Alert = "Alert"
|
|
4
|
+
}
|
|
5
|
+
export declare const RESOLVED_RECORD_RETENTION_CHOICES_IN_DAYS: ReadonlyArray<number>;
|
|
6
|
+
export declare const KEEP_EVERY_RESOLVED_RECORD: number;
|
|
7
|
+
export declare const DEFAULT_RESOLVED_RECORD_RETENTION_IN_DAYS: number;
|
|
8
|
+
export declare const MIN_RESOLVED_RECORD_RETENTION_IN_DAYS: number;
|
|
9
|
+
export declare const DEFAULT_KEEP_INCIDENTS_WITH_COMPLETED_POSTMORTEM: boolean;
|
|
10
|
+
export declare function getResolvedRecordRetentionRefusal(kind: ResolvedRecordKind): string;
|
|
11
|
+
export declare function isResolvedRecordRetentionInDays(value: unknown): value is number;
|
|
12
|
+
export declare function getResolvedRecordRetentionProblem(value: unknown, kind: ResolvedRecordKind): string | null;
|
|
13
|
+
export declare function toResolvedRecordRetentionInDays(value: unknown): number;
|
|
14
|
+
export declare function readResolvedRecordRetentionInDays(value: unknown): number | undefined;
|
|
15
|
+
export declare function isResolvedRecordRetentionOn(days: number): boolean;
|
|
16
|
+
export declare function doesResolvedRecordRetentionDeleteMore(data: {
|
|
17
|
+
from: number;
|
|
18
|
+
to: number;
|
|
19
|
+
}): boolean;
|