@oneuptime/common 14.0.108 → 14.0.110
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/AnalyticsModels/SecurityEvent.js +1 -1
- package/Models/DatabaseModels/AIInsight.js +2 -2
- package/Models/DatabaseModels/Alert.js +2 -2
- 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/CloudApp.d.mts +5 -0
- package/Models/DatabaseModels/CloudApp.d.ts +5 -0
- package/Models/DatabaseModels/CloudApp.js +112 -0
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.mts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.ts +2 -0
- package/Models/DatabaseModels/EmailLog.js +12 -12
- package/Models/DatabaseModels/FormSubmission.js +2 -2
- package/Models/DatabaseModels/GlobalConfig.d.mts +6 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +6 -0
- package/Models/DatabaseModels/GlobalConfig.js +139 -0
- package/Models/DatabaseModels/Incident.js +2 -2
- 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/IncidentState.js +1 -1
- package/Models/DatabaseModels/IncidentTemplate.js +2 -2
- package/Models/DatabaseModels/Index.js +7 -0
- package/Models/DatabaseModels/Monitor.js +17 -3
- 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/NetworkDevice.d.mts +1 -0
- package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
- package/Models/DatabaseModels/NetworkDevice.js +41 -0
- 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.d.mts +4 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +4 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +141 -8
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +10 -7
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +14 -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/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 +8 -0
- package/Models/DatabaseModels/Project.d.ts +8 -0
- package/Models/DatabaseModels/Project.js +333 -2
- 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/ProxmoxCluster.d.mts +1 -0
- package/Models/DatabaseModels/ProxmoxCluster.d.ts +1 -0
- package/Models/DatabaseModels/ProxmoxCluster.js +52 -3
- package/Models/DatabaseModels/PushNotificationLog.js +12 -12
- package/Models/DatabaseModels/Reseller.js +8 -2
- package/Models/DatabaseModels/ResellerPlan.js +8 -2
- package/Models/DatabaseModels/RumSessionPin.js +16 -2
- package/Models/DatabaseModels/RumSessionReplayView.js +8 -1
- package/Models/DatabaseModels/ScheduledMaintenance.js +6 -3
- package/Models/DatabaseModels/ScheduledMaintenanceInternalNote.js +7 -4
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +2 -2
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +7 -4
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +1 -1
- package/Models/DatabaseModels/SecurityCase.js +8 -1
- 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/TelegramLog.js +12 -12
- package/Models/DatabaseModels/TelemetryIngestionKey.js +8 -5
- package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.js +7 -4
- package/Models/DatabaseModels/User.d.mts +6 -0
- package/Models/DatabaseModels/User.d.ts +6 -0
- package/Models/DatabaseModels/User.js +152 -0
- package/Models/DatabaseModels/UserOnCallLog.js +38 -10
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +13 -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/WorkspaceNotificationSummary.js +1 -1
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.mts +9 -0
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.ts +9 -0
- package/Server/Services/DatabaseService.d.mts +1 -0
- package/Server/Services/DatabaseService.d.ts +1 -0
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.mts +2 -1
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.ts +2 -1
- package/Server/Utils/Workspace/WorkspaceBase.d.mts +1 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.ts +1 -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 +21 -2
- package/Types/AI/AIChatTypes.d.ts +21 -2
- package/Types/AI/AIChatTypes.js +49 -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/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 +66 -0
- package/Types/Analytics/ProductEvent.d.ts +66 -0
- package/Types/Analytics/ProductEvent.js +471 -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 +3 -1
- package/Types/AuditLog/AuditLogCoverage.d.ts +3 -1
- package/Types/AuditLog/AuditLogCoverage.js +12 -3
- 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/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/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/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/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 +1 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +1 -0
- package/Types/DataObservability/DataObservabilityApiTypes.js +2 -0
- package/Types/DataObservability/DataTableLineage.d.mts +7 -0
- package/Types/DataObservability/DataTableLineage.d.ts +7 -0
- package/Types/DataObservability/DataTableLineage.js +15 -3
- package/Types/DataObservability/DataTableLineage.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 +42 -1
- package/Types/Date.d.ts +42 -1
- package/Types/Date.js +114 -5
- package/Types/DateLanguage.d.mts +9 -0
- package/Types/DateLanguage.d.ts +9 -0
- package/Types/DateLanguage.js +87 -2
- package/Types/DateLanguage.mjs +3 -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/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 +83 -0
- package/Types/Docs/GlossaryTerm.d.ts +83 -0
- package/Types/Docs/GlossaryTerm.js +128 -0
- package/Types/Docs/GlossaryTerm.mjs +5 -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/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/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 +58 -0
- package/Types/Exception/UnexplainedError.d.ts +58 -0
- package/Types/Exception/UnexplainedError.js +231 -0
- package/Types/Exception/UnexplainedError.mjs +12 -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/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/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 +2 -0
- package/Types/Monitor/CriteriaFilterValues.d.ts +2 -0
- package/Types/Monitor/CriteriaFilterValues.js +22 -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/MonitorCriteria.js +2 -2
- 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/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/WhoIsTold.d.mts +167 -0
- package/Types/Monitor/WhoIsTold.d.ts +167 -0
- package/Types/Monitor/WhoIsTold.js +583 -0
- package/Types/Monitor/WhoIsTold.mjs +17 -0
- 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/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/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/OnCallTestPage.d.mts +284 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +284 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +665 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +53 -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/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/OnCallDutyPolicy/ScheduleLayerDefaults.js +5 -2
- package/Types/OnCallDutyPolicy/UserOverrideCoverRequest.js +9 -1
- package/Types/Permission.d.mts +2 -2
- package/Types/Permission.d.ts +2 -2
- package/Types/Permission.js +194 -193
- 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/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/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/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/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 +23 -0
- package/Types/Product/ProjectProductsAnswer.d.ts +23 -0
- package/Types/Product/ProjectProductsAnswer.js +172 -0
- package/Types/Product/ProjectProductsAnswer.mjs +8 -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/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 +142 -0
- package/Types/ProductFeedback/ProductFeedback.d.ts +142 -0
- package/Types/ProductFeedback/ProductFeedback.js +525 -0
- package/Types/ProductFeedback/ProductFeedback.mjs +49 -0
- package/Types/ReadingDirection.d.mts +2 -0
- package/Types/ReadingDirection.d.ts +2 -0
- package/Types/ReadingDirection.js +83 -2
- package/Types/ReadingDirection.mjs +2 -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 +1 -0
- package/Types/RollingTime/RollingTimeUtil.d.ts +1 -0
- package/Types/RollingTime/RollingTimeUtil.js +9 -0
- 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/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +108 -101
- 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/TelemetryIngestSurface.js +6 -5
- 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.d.mts +1 -0
- package/Types/Translator.d.ts +1 -0
- package/Types/Translator.js +104 -33
- 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/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 +82 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +82 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +396 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +23 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +25 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +25 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +139 -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/Workflow/PassedOnFields.js +2 -1
- package/Types/Workflow/Templates.js +1 -1
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +2 -0
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +2 -0
- 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/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/API.js +10 -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/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/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/TerraformSchema.js +3 -1
- 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 +20 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +20 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +1901 -0
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +5 -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/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.js +8 -3
- package/Utils/Monitor/ExternalStatusPageReading.d.mts +12 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.ts +12 -0
- package/Utils/Monitor/ExternalStatusPageReading.js +111 -8
- package/Utils/Monitor/ExternalStatusPageReading.mjs +5 -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/MonitorStatusHistoryUtil.d.mts +1 -0
- package/Utils/Monitor/MonitorStatusHistoryUtil.d.ts +1 -0
- package/Utils/Monitor/MonitorStatusHistoryUtil.js +1 -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/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/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/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/NotificationChannels.js +5 -5
- package/Utils/Project/ProjectBalance.js +2 -2
- package/Utils/Project/TwilioAccount.js +2 -2
- 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/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/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 -0
- package/Utils/StatusPage/ResourceExplorer.d.ts +1 -0
- package/Utils/StatusPage/ResourceExplorer.js +11 -1
- 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 +51 -1
- 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/ValueFormatter.d.mts +8 -6
- package/Utils/ValueFormatter.d.ts +8 -6
- package/Utils/ValueFormatter.js +145 -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
package/Types/Date.d.mts
CHANGED
|
@@ -65,6 +65,7 @@ export default class OneUptimeDate {
|
|
|
65
65
|
use12HourFormat?: boolean | undefined;
|
|
66
66
|
}): string;
|
|
67
67
|
static getDateAsLocalDayMonthString(date: Date | string): string;
|
|
68
|
+
static getDateAsLocalDayMonthYearString(date: Date | string): string;
|
|
68
69
|
static getDateAsLocalDayMonthHourString(date: Date | string): string;
|
|
69
70
|
/**
|
|
70
71
|
* "02 Mar, 14:30" — a day-qualified wall clock, for chart axes whose
|
|
@@ -105,10 +106,14 @@ export default class OneUptimeDate {
|
|
|
105
106
|
* configured timezone (falling back to the one the browser reports), and the
|
|
106
107
|
* 12- vs 24-hour choice follows the operating system's clock preference
|
|
107
108
|
* unless a caller overrides it.
|
|
109
|
+
*
|
|
110
|
+
* With `showYear`, the year too: "Mar 1, 2025, 14:30" - for a window whose
|
|
111
|
+
* ends are not both in this year (isWindowInTheCurrentYear).
|
|
108
112
|
*/
|
|
109
113
|
static getDateAsLocalShortDateTimeString(date: Date | string, options?: {
|
|
110
114
|
use12HourFormat?: boolean | undefined;
|
|
111
115
|
includeSeconds?: boolean | undefined;
|
|
116
|
+
showYear?: boolean | undefined;
|
|
112
117
|
}): string;
|
|
113
118
|
/**
|
|
114
119
|
* A moment as a list's cell writes it: "Oct 22, 7:25 AM" - a date of this
|
|
@@ -134,6 +139,7 @@ export default class OneUptimeDate {
|
|
|
134
139
|
now?: Date | undefined;
|
|
135
140
|
}): string;
|
|
136
141
|
static getDateAsLocalMonthYearString(date: Date | string): string;
|
|
142
|
+
static getDateAsLocalYearString(date: Date | string): string;
|
|
137
143
|
static getMillisecondsBetweenTwoUnixNanoDates(startDate: number, endDate: number): number;
|
|
138
144
|
static moveDateToTheDayOfWeek(date: Date, moveToWeek: Date, dayOfWeek: DayOfWeek, timezone?: string | undefined): Date;
|
|
139
145
|
static getDayOfTheWeekIndex(date: Date): number;
|
|
@@ -170,6 +176,22 @@ export default class OneUptimeDate {
|
|
|
170
176
|
}): string;
|
|
171
177
|
private static getEnglishDateInTimezone;
|
|
172
178
|
static isSameYearInTimezone(a: Date | string, b: Date | string, timezone?: string | undefined): boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Whether both ends of a window fall in the current year, on the reader's
|
|
181
|
+
* calendar (the configured timezone, New Year included): a label of the
|
|
182
|
+
* window can then leave the year out, as the time range button does
|
|
183
|
+
* ("Mar 1, 14:30 – Mar 2, 09:00"). Otherwise it cannot: a custom range of
|
|
184
|
+
* exactly a year read "Nov 12, 9:49 AM – Nov 12, 9:49 AM", as if it were
|
|
185
|
+
* no time at all, and a range in an earlier year did not say which (issue
|
|
186
|
+
* #7124).
|
|
187
|
+
*
|
|
188
|
+
* "The current year" is the one `now` is in: now, unless a caller says.
|
|
189
|
+
*/
|
|
190
|
+
static isWindowInTheCurrentYear(data: {
|
|
191
|
+
start: Date | string;
|
|
192
|
+
end: Date | string;
|
|
193
|
+
now?: Date | undefined;
|
|
194
|
+
}): boolean;
|
|
173
195
|
static getDateAsCustomFormattedStringInTimezone(data: {
|
|
174
196
|
date: Date | string;
|
|
175
197
|
format: string;
|
|
@@ -256,9 +278,27 @@ export default class OneUptimeDate {
|
|
|
256
278
|
static timezoneOffsetDate(date: Date): Date;
|
|
257
279
|
/**
|
|
258
280
|
* Render an instant as the value of an `<input type="datetime-local">` — a
|
|
259
|
-
* bare wall-clock with no offset — read in the current timezone
|
|
281
|
+
* bare wall-clock with no offset — read in the current timezone, to the
|
|
282
|
+
* second ("2026-11-13T11:15:52").
|
|
283
|
+
*
|
|
284
|
+
* A field people schedule with shows toDateTimeLocalMinuteString instead:
|
|
285
|
+
* a value with seconds makes the browser's picker show and ask for them
|
|
286
|
+
* too. Only a field that compares with event timestamps (a telemetry time
|
|
287
|
+
* range) keeps the seconds, by opting in (Input's showSecondsForDateTime).
|
|
260
288
|
*/
|
|
261
289
|
static toDateTimeLocalString(date: Date): string;
|
|
290
|
+
/**
|
|
291
|
+
* The value an `<input type="datetime-local">` shows a person who picks a
|
|
292
|
+
* time to schedule or record something: the wall clock in the current
|
|
293
|
+
* timezone, to the minute ("2026-11-13T11:15"). Without seconds in its
|
|
294
|
+
* value, the browser's picker shows hours and minutes and no seconds
|
|
295
|
+
* column, and what is picked comes back to the minute.
|
|
296
|
+
*
|
|
297
|
+
* The seconds of an instant stored with them are not shown, and not lost:
|
|
298
|
+
* a field left as it was keeps the value it was given (Input changes its
|
|
299
|
+
* value only when the person changes the field).
|
|
300
|
+
*/
|
|
301
|
+
static toDateTimeLocalMinuteString(date: Date): string;
|
|
262
302
|
/**
|
|
263
303
|
* Inverse of toDateTimeLocalString: turn the offset-less wall-clock a user
|
|
264
304
|
* typed into a `<input type="date">` / `<input type="datetime-local">` into
|
|
@@ -325,6 +365,7 @@ export default class OneUptimeDate {
|
|
|
325
365
|
static getCurrentYear(): number;
|
|
326
366
|
static getStartOfDay(date: Date, timezone?: string | undefined): Date;
|
|
327
367
|
static getEndOfDay(date: Date, timezone?: string | undefined): Date;
|
|
368
|
+
static getStartOfMinute(date: Date | string): Date;
|
|
328
369
|
private static toMomentCalendarUnit;
|
|
329
370
|
private static inTimezone;
|
|
330
371
|
static getStartOfCalendarUnit(date: Date, unit: CalendarUnit, timezone?: string | undefined): Date;
|
package/Types/Date.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export default class OneUptimeDate {
|
|
|
65
65
|
use12HourFormat?: boolean | undefined;
|
|
66
66
|
}): string;
|
|
67
67
|
static getDateAsLocalDayMonthString(date: Date | string): string;
|
|
68
|
+
static getDateAsLocalDayMonthYearString(date: Date | string): string;
|
|
68
69
|
static getDateAsLocalDayMonthHourString(date: Date | string): string;
|
|
69
70
|
/**
|
|
70
71
|
* "02 Mar, 14:30" — a day-qualified wall clock, for chart axes whose
|
|
@@ -105,10 +106,14 @@ export default class OneUptimeDate {
|
|
|
105
106
|
* configured timezone (falling back to the one the browser reports), and the
|
|
106
107
|
* 12- vs 24-hour choice follows the operating system's clock preference
|
|
107
108
|
* unless a caller overrides it.
|
|
109
|
+
*
|
|
110
|
+
* With `showYear`, the year too: "Mar 1, 2025, 14:30" - for a window whose
|
|
111
|
+
* ends are not both in this year (isWindowInTheCurrentYear).
|
|
108
112
|
*/
|
|
109
113
|
static getDateAsLocalShortDateTimeString(date: Date | string, options?: {
|
|
110
114
|
use12HourFormat?: boolean | undefined;
|
|
111
115
|
includeSeconds?: boolean | undefined;
|
|
116
|
+
showYear?: boolean | undefined;
|
|
112
117
|
}): string;
|
|
113
118
|
/**
|
|
114
119
|
* A moment as a list's cell writes it: "Oct 22, 7:25 AM" - a date of this
|
|
@@ -134,6 +139,7 @@ export default class OneUptimeDate {
|
|
|
134
139
|
now?: Date | undefined;
|
|
135
140
|
}): string;
|
|
136
141
|
static getDateAsLocalMonthYearString(date: Date | string): string;
|
|
142
|
+
static getDateAsLocalYearString(date: Date | string): string;
|
|
137
143
|
static getMillisecondsBetweenTwoUnixNanoDates(startDate: number, endDate: number): number;
|
|
138
144
|
static moveDateToTheDayOfWeek(date: Date, moveToWeek: Date, dayOfWeek: DayOfWeek, timezone?: string | undefined): Date;
|
|
139
145
|
static getDayOfTheWeekIndex(date: Date): number;
|
|
@@ -170,6 +176,22 @@ export default class OneUptimeDate {
|
|
|
170
176
|
}): string;
|
|
171
177
|
private static getEnglishDateInTimezone;
|
|
172
178
|
static isSameYearInTimezone(a: Date | string, b: Date | string, timezone?: string | undefined): boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Whether both ends of a window fall in the current year, on the reader's
|
|
181
|
+
* calendar (the configured timezone, New Year included): a label of the
|
|
182
|
+
* window can then leave the year out, as the time range button does
|
|
183
|
+
* ("Mar 1, 14:30 – Mar 2, 09:00"). Otherwise it cannot: a custom range of
|
|
184
|
+
* exactly a year read "Nov 12, 9:49 AM – Nov 12, 9:49 AM", as if it were
|
|
185
|
+
* no time at all, and a range in an earlier year did not say which (issue
|
|
186
|
+
* #7124).
|
|
187
|
+
*
|
|
188
|
+
* "The current year" is the one `now` is in: now, unless a caller says.
|
|
189
|
+
*/
|
|
190
|
+
static isWindowInTheCurrentYear(data: {
|
|
191
|
+
start: Date | string;
|
|
192
|
+
end: Date | string;
|
|
193
|
+
now?: Date | undefined;
|
|
194
|
+
}): boolean;
|
|
173
195
|
static getDateAsCustomFormattedStringInTimezone(data: {
|
|
174
196
|
date: Date | string;
|
|
175
197
|
format: string;
|
|
@@ -256,9 +278,27 @@ export default class OneUptimeDate {
|
|
|
256
278
|
static timezoneOffsetDate(date: Date): Date;
|
|
257
279
|
/**
|
|
258
280
|
* Render an instant as the value of an `<input type="datetime-local">` — a
|
|
259
|
-
* bare wall-clock with no offset — read in the current timezone
|
|
281
|
+
* bare wall-clock with no offset — read in the current timezone, to the
|
|
282
|
+
* second ("2026-11-13T11:15:52").
|
|
283
|
+
*
|
|
284
|
+
* A field people schedule with shows toDateTimeLocalMinuteString instead:
|
|
285
|
+
* a value with seconds makes the browser's picker show and ask for them
|
|
286
|
+
* too. Only a field that compares with event timestamps (a telemetry time
|
|
287
|
+
* range) keeps the seconds, by opting in (Input's showSecondsForDateTime).
|
|
260
288
|
*/
|
|
261
289
|
static toDateTimeLocalString(date: Date): string;
|
|
290
|
+
/**
|
|
291
|
+
* The value an `<input type="datetime-local">` shows a person who picks a
|
|
292
|
+
* time to schedule or record something: the wall clock in the current
|
|
293
|
+
* timezone, to the minute ("2026-11-13T11:15"). Without seconds in its
|
|
294
|
+
* value, the browser's picker shows hours and minutes and no seconds
|
|
295
|
+
* column, and what is picked comes back to the minute.
|
|
296
|
+
*
|
|
297
|
+
* The seconds of an instant stored with them are not shown, and not lost:
|
|
298
|
+
* a field left as it was keeps the value it was given (Input changes its
|
|
299
|
+
* value only when the person changes the field).
|
|
300
|
+
*/
|
|
301
|
+
static toDateTimeLocalMinuteString(date: Date): string;
|
|
262
302
|
/**
|
|
263
303
|
* Inverse of toDateTimeLocalString: turn the offset-less wall-clock a user
|
|
264
304
|
* typed into a `<input type="date">` / `<input type="datetime-local">` into
|
|
@@ -325,6 +365,7 @@ export default class OneUptimeDate {
|
|
|
325
365
|
static getCurrentYear(): number;
|
|
326
366
|
static getStartOfDay(date: Date, timezone?: string | undefined): Date;
|
|
327
367
|
static getEndOfDay(date: Date, timezone?: string | undefined): Date;
|
|
368
|
+
static getStartOfMinute(date: Date | string): Date;
|
|
328
369
|
private static toMomentCalendarUnit;
|
|
329
370
|
private static inTimezone;
|
|
330
371
|
static getStartOfCalendarUnit(date: Date, unit: CalendarUnit, timezone?: string | undefined): Date;
|
package/Types/Date.js
CHANGED
|
@@ -53,6 +53,10 @@ exports.Moment = moment_timezone_1.default;
|
|
|
53
53
|
* are written in the reader's language for, as Intl asks for them. A shape
|
|
54
54
|
* with no words in it ("YYYY", "HH:mm:ss.SSS") reads the same in every
|
|
55
55
|
* language; one that is not listed is written by moment, in English.
|
|
56
|
+
*
|
|
57
|
+
* English's "hh" keeps a 12-hour time's zero ("05:01 PM"), as moment writes
|
|
58
|
+
* it; no other language writes one there ("오후 5:01", "5:01 م"), so the
|
|
59
|
+
* reader's language takes the hour without it (getHourOption, issue #7279).
|
|
56
60
|
*/
|
|
57
61
|
const LOCALIZED_CUSTOM_DATE_FORMATS = {
|
|
58
62
|
"MMM D": { month: "short", day: "numeric" },
|
|
@@ -64,7 +68,7 @@ const LOCALIZED_CUSTOM_DATE_FORMATS = {
|
|
|
64
68
|
"MMMM YYYY": { month: "long", year: "numeric" },
|
|
65
69
|
"MMMM D, YYYY": { month: "long", day: "numeric", year: "numeric" },
|
|
66
70
|
"h:mm A": { hour: "numeric", minute: "2-digit", hour12: true },
|
|
67
|
-
"hh:mm A": { hour:
|
|
71
|
+
"hh:mm A": { hour: (0, DateLanguage_1.getHourOption)(true), minute: "2-digit", hour12: true },
|
|
68
72
|
// A 24-hour time of day, in the reader's digits: "۲۲:۲۷" on a Persian page.
|
|
69
73
|
"HH:mm": { hour: "2-digit", minute: "2-digit", hourCycle: "h23" },
|
|
70
74
|
};
|
|
@@ -417,6 +421,31 @@ class OneUptimeDate {
|
|
|
417
421
|
});
|
|
418
422
|
});
|
|
419
423
|
}
|
|
424
|
+
/*
|
|
425
|
+
* A day with its month and its year, as a chart's axis names a day when
|
|
426
|
+
* its window holds a year or more: "02 Mar 2026" in English. In such a
|
|
427
|
+
* window "12 Nov" is two days, a year apart (XAxisUtil).
|
|
428
|
+
*
|
|
429
|
+
* In another language, as that language writes a short date with its year
|
|
430
|
+
* (Intl): "2. März 2026", "2 mars 2026", "2026年3月2日", "۲ مارس ۲۰۲۶".
|
|
431
|
+
*/
|
|
432
|
+
static getDateAsLocalDayMonthYearString(date) {
|
|
433
|
+
const instant = this.fromString(date);
|
|
434
|
+
return (0, DateLanguage_1.writeInDateDisplayLanguage)(() => {
|
|
435
|
+
const local = this.inCurrentTimezone(instant);
|
|
436
|
+
const day = this.padDatePart(local.date());
|
|
437
|
+
const month = this.getLocalShortMonthName(instant);
|
|
438
|
+
return `${day} ${month} ${local.year()}`;
|
|
439
|
+
}, (language, locale) => {
|
|
440
|
+
// "2. März 2026", "2 mars 2026", "2026年3月2日", "۲ مارس ۲۰۲۶".
|
|
441
|
+
return this.getLocalizedDateText({
|
|
442
|
+
date: instant,
|
|
443
|
+
language,
|
|
444
|
+
locale,
|
|
445
|
+
shape: { onlyShowDate: true },
|
|
446
|
+
});
|
|
447
|
+
});
|
|
448
|
+
}
|
|
420
449
|
/*
|
|
421
450
|
* The hour a chart's bucket starts at, with its day: "02 Mar, 14:00" in
|
|
422
451
|
* English.
|
|
@@ -501,11 +530,15 @@ class OneUptimeDate {
|
|
|
501
530
|
* configured timezone (falling back to the one the browser reports), and the
|
|
502
531
|
* 12- vs 24-hour choice follows the operating system's clock preference
|
|
503
532
|
* unless a caller overrides it.
|
|
533
|
+
*
|
|
534
|
+
* With `showYear`, the year too: "Mar 1, 2025, 14:30" - for a window whose
|
|
535
|
+
* ends are not both in this year (isWindowInTheCurrentYear).
|
|
504
536
|
*/
|
|
505
537
|
static getDateAsLocalShortDateTimeString(date, options) {
|
|
506
538
|
var _a;
|
|
507
539
|
date = this.fromString(date);
|
|
508
540
|
const use12HourFormat = (_a = options === null || options === void 0 ? void 0 : options.use12HourFormat) !== null && _a !== void 0 ? _a : this.getUserPrefers12HourFormat();
|
|
541
|
+
const showYear = Boolean(options === null || options === void 0 ? void 0 : options.showYear);
|
|
509
542
|
let timeFormat = use12HourFormat ? "h:mm" : "HH:mm";
|
|
510
543
|
if (options === null || options === void 0 ? void 0 : options.includeSeconds) {
|
|
511
544
|
timeFormat += ":ss";
|
|
@@ -514,16 +547,20 @@ class OneUptimeDate {
|
|
|
514
547
|
timeFormat += " A";
|
|
515
548
|
}
|
|
516
549
|
const instant = date;
|
|
550
|
+
const dateFormat = showYear ? "MMM D, YYYY" : "MMM D";
|
|
517
551
|
return (0, DateLanguage_1.writeInDateDisplayLanguage)(() => {
|
|
518
|
-
return this.inCurrentTimezone(instant).format(
|
|
552
|
+
return this.inCurrentTimezone(instant).format(`${dateFormat}, ${timeFormat}`);
|
|
519
553
|
}, (language, locale) => {
|
|
520
|
-
|
|
554
|
+
/*
|
|
555
|
+
* "1. März, 14:30", "1 mars, 14:30", "3月1日 14:30"; with the year,
|
|
556
|
+
* "1. März 2025, 14:30", "1 mars 2025, 14:30", "2025年3月1日 14:30".
|
|
557
|
+
*/
|
|
521
558
|
return this.getLocalizedDateText({
|
|
522
559
|
date: instant,
|
|
523
560
|
language,
|
|
524
561
|
locale,
|
|
525
562
|
shape: {
|
|
526
|
-
hideYear:
|
|
563
|
+
hideYear: !showYear,
|
|
527
564
|
use12HourFormat,
|
|
528
565
|
showSeconds: Boolean(options === null || options === void 0 ? void 0 : options.includeSeconds),
|
|
529
566
|
},
|
|
@@ -587,6 +624,26 @@ class OneUptimeDate {
|
|
|
587
624
|
return format ? format.format(instant) : null;
|
|
588
625
|
});
|
|
589
626
|
}
|
|
627
|
+
/*
|
|
628
|
+
* A moment's year on the reader's calendar (the configured timezone), as
|
|
629
|
+
* the reader's language writes a year alone: "2026"; "۲۰۲۶" in Persian;
|
|
630
|
+
* "2026年" in Japanese and Chinese; "2026년" in Korean. A yearly chart
|
|
631
|
+
* axis names its ticks with it, as its month ticks are named with
|
|
632
|
+
* getDateAsLocalMonthYearString ("2026年10月").
|
|
633
|
+
*/
|
|
634
|
+
static getDateAsLocalYearString(date) {
|
|
635
|
+
const instant = this.fromString(date);
|
|
636
|
+
return (0, DateLanguage_1.writeInDateDisplayLanguage)(() => {
|
|
637
|
+
return this.inCurrentTimezone(instant).year().toString();
|
|
638
|
+
}, (_language, locale) => {
|
|
639
|
+
const format = (0, DateLanguage_1.getDateTimeFormat)({
|
|
640
|
+
locale,
|
|
641
|
+
timezones: this.getCurrentTimezoneNames(),
|
|
642
|
+
options: { year: "numeric" },
|
|
643
|
+
});
|
|
644
|
+
return format ? format.format(instant) : null;
|
|
645
|
+
});
|
|
646
|
+
}
|
|
590
647
|
static getMillisecondsBetweenTwoUnixNanoDates(startDate, endDate) {
|
|
591
648
|
return endDate - startDate;
|
|
592
649
|
}
|
|
@@ -728,6 +785,22 @@ class OneUptimeDate {
|
|
|
728
785
|
};
|
|
729
786
|
return yearOf(a) === yearOf(b);
|
|
730
787
|
}
|
|
788
|
+
/**
|
|
789
|
+
* Whether both ends of a window fall in the current year, on the reader's
|
|
790
|
+
* calendar (the configured timezone, New Year included): a label of the
|
|
791
|
+
* window can then leave the year out, as the time range button does
|
|
792
|
+
* ("Mar 1, 14:30 – Mar 2, 09:00"). Otherwise it cannot: a custom range of
|
|
793
|
+
* exactly a year read "Nov 12, 9:49 AM – Nov 12, 9:49 AM", as if it were
|
|
794
|
+
* no time at all, and a range in an earlier year did not say which (issue
|
|
795
|
+
* #7124).
|
|
796
|
+
*
|
|
797
|
+
* "The current year" is the one `now` is in: now, unless a caller says.
|
|
798
|
+
*/
|
|
799
|
+
static isWindowInTheCurrentYear(data) {
|
|
800
|
+
const now = data.now || this.getCurrentDate();
|
|
801
|
+
return (this.isSameYearInTimezone(data.start, now) &&
|
|
802
|
+
this.isSameYearInTimezone(data.end, now));
|
|
803
|
+
}
|
|
731
804
|
/*
|
|
732
805
|
* Format an instant with an explicit moment format string, resolved in an
|
|
733
806
|
* IANA timezone. The formatted-string helpers above each bake in a layout;
|
|
@@ -1205,11 +1278,31 @@ class OneUptimeDate {
|
|
|
1205
1278
|
}
|
|
1206
1279
|
/**
|
|
1207
1280
|
* Render an instant as the value of an `<input type="datetime-local">` — a
|
|
1208
|
-
* bare wall-clock with no offset — read in the current timezone
|
|
1281
|
+
* bare wall-clock with no offset — read in the current timezone, to the
|
|
1282
|
+
* second ("2026-11-13T11:15:52").
|
|
1283
|
+
*
|
|
1284
|
+
* A field people schedule with shows toDateTimeLocalMinuteString instead:
|
|
1285
|
+
* a value with seconds makes the browser's picker show and ask for them
|
|
1286
|
+
* too. Only a field that compares with event timestamps (a telemetry time
|
|
1287
|
+
* range) keeps the seconds, by opting in (Input's showSecondsForDateTime).
|
|
1209
1288
|
*/
|
|
1210
1289
|
static toDateTimeLocalString(date) {
|
|
1211
1290
|
return this.inCurrentTimezone(date).format("YYYY-MM-DDTHH:mm:ss");
|
|
1212
1291
|
}
|
|
1292
|
+
/**
|
|
1293
|
+
* The value an `<input type="datetime-local">` shows a person who picks a
|
|
1294
|
+
* time to schedule or record something: the wall clock in the current
|
|
1295
|
+
* timezone, to the minute ("2026-11-13T11:15"). Without seconds in its
|
|
1296
|
+
* value, the browser's picker shows hours and minutes and no seconds
|
|
1297
|
+
* column, and what is picked comes back to the minute.
|
|
1298
|
+
*
|
|
1299
|
+
* The seconds of an instant stored with them are not shown, and not lost:
|
|
1300
|
+
* a field left as it was keeps the value it was given (Input changes its
|
|
1301
|
+
* value only when the person changes the field).
|
|
1302
|
+
*/
|
|
1303
|
+
static toDateTimeLocalMinuteString(date) {
|
|
1304
|
+
return this.inCurrentTimezone(date).format("YYYY-MM-DDTHH:mm");
|
|
1305
|
+
}
|
|
1213
1306
|
/**
|
|
1214
1307
|
* Inverse of toDateTimeLocalString: turn the offset-less wall-clock a user
|
|
1215
1308
|
* typed into a `<input type="date">` / `<input type="datetime-local">` into
|
|
@@ -1541,6 +1634,22 @@ class OneUptimeDate {
|
|
|
1541
1634
|
}
|
|
1542
1635
|
return (0, moment_timezone_1.default)(date).endOf("day").toDate();
|
|
1543
1636
|
}
|
|
1637
|
+
/*
|
|
1638
|
+
* The start of the minute `date` falls in: its seconds and milliseconds
|
|
1639
|
+
* dropped, as a new Date (the one given is left as it was). The same
|
|
1640
|
+
* instant in every timezone, since every zone's offset today is a whole
|
|
1641
|
+
* number of minutes.
|
|
1642
|
+
*
|
|
1643
|
+
* What "now" is in a field people schedule with: an override, a rotation
|
|
1644
|
+
* or an announcement that starts now starts at the minute the field shows
|
|
1645
|
+
* (11:15, never 11:15:52), which has already begun - never a minute late.
|
|
1646
|
+
*/
|
|
1647
|
+
static getStartOfMinute(date) {
|
|
1648
|
+
const instant = this.fromString(date);
|
|
1649
|
+
const millisecondsInAMinute = 60 * 1000;
|
|
1650
|
+
return new Date(Math.floor(instant.getTime() / millisecondsInAMinute) *
|
|
1651
|
+
millisecondsInAMinute);
|
|
1652
|
+
}
|
|
1544
1653
|
/*
|
|
1545
1654
|
* Calendar arithmetic - "the previous calendar month", "add 3 calendar
|
|
1546
1655
|
* months" - as opposed to the fixed-length arithmetic the rest of this class
|
package/Types/DateLanguage.d.mts
CHANGED
|
@@ -11,6 +11,13 @@ export declare const getDateLocale: (language: string | null | undefined) => str
|
|
|
11
11
|
export declare const getReaderNumberLocale: () => string;
|
|
12
12
|
export declare const getReaderDateLocale: () => string;
|
|
13
13
|
export declare const formatReaderNumber: (value: number, options?: Intl.NumberFormatOptions) => string;
|
|
14
|
+
export interface ReaderFigureOptions {
|
|
15
|
+
decimals: number;
|
|
16
|
+
dropTrailingZeros?: boolean | undefined;
|
|
17
|
+
isPercent?: boolean | undefined;
|
|
18
|
+
language?: string | undefined;
|
|
19
|
+
}
|
|
20
|
+
export declare const formatReaderFigure: (value: number, options: ReaderFigureOptions) => string;
|
|
14
21
|
export declare const MAX_REMEMBERED_DATE_TEXTS: number;
|
|
15
22
|
export declare const rememberEnglishOf: (localized: string, english: () => string) => void;
|
|
16
23
|
export declare const getEnglishOf: (text: string) => string | undefined;
|
|
@@ -29,6 +36,8 @@ export interface DateTextShape {
|
|
|
29
36
|
hideYear?: boolean | undefined;
|
|
30
37
|
twoDigitDay?: boolean | undefined;
|
|
31
38
|
}
|
|
39
|
+
export declare const getHourOption: (use12HourFormat: boolean | undefined) => "numeric" | "2-digit";
|
|
40
|
+
export declare const getLocaleClockHourOption: (pinnedLocale: string) => "numeric" | "2-digit";
|
|
32
41
|
export declare const getDateTimeOptions: (shape: DateTextShape) => Intl.DateTimeFormatOptions;
|
|
33
42
|
export declare const formatDateText: (data: {
|
|
34
43
|
date: Date;
|
package/Types/DateLanguage.d.ts
CHANGED
|
@@ -11,6 +11,13 @@ export declare const getDateLocale: (language: string | null | undefined) => str
|
|
|
11
11
|
export declare const getReaderNumberLocale: () => string;
|
|
12
12
|
export declare const getReaderDateLocale: () => string;
|
|
13
13
|
export declare const formatReaderNumber: (value: number, options?: Intl.NumberFormatOptions) => string;
|
|
14
|
+
export interface ReaderFigureOptions {
|
|
15
|
+
decimals: number;
|
|
16
|
+
dropTrailingZeros?: boolean | undefined;
|
|
17
|
+
isPercent?: boolean | undefined;
|
|
18
|
+
language?: string | undefined;
|
|
19
|
+
}
|
|
20
|
+
export declare const formatReaderFigure: (value: number, options: ReaderFigureOptions) => string;
|
|
14
21
|
export declare const MAX_REMEMBERED_DATE_TEXTS: number;
|
|
15
22
|
export declare const rememberEnglishOf: (localized: string, english: () => string) => void;
|
|
16
23
|
export declare const getEnglishOf: (text: string) => string | undefined;
|
|
@@ -29,6 +36,8 @@ export interface DateTextShape {
|
|
|
29
36
|
hideYear?: boolean | undefined;
|
|
30
37
|
twoDigitDay?: boolean | undefined;
|
|
31
38
|
}
|
|
39
|
+
export declare const getHourOption: (use12HourFormat: boolean | undefined) => "numeric" | "2-digit";
|
|
40
|
+
export declare const getLocaleClockHourOption: (pinnedLocale: string) => "numeric" | "2-digit";
|
|
32
41
|
export declare const getDateTimeOptions: (shape: DateTextShape) => Intl.DateTimeFormatOptions;
|
|
33
42
|
export declare const formatDateText: (data: {
|
|
34
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.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"));
|
|
@@ -235,6 +235,49 @@ const formatReaderNumber = (value, options) => {
|
|
|
235
235
|
}
|
|
236
236
|
};
|
|
237
237
|
exports.formatReaderNumber = formatReaderNumber;
|
|
238
|
+
const figureFormatCache = new Map();
|
|
239
|
+
const getFigureFormat = (language, options) => {
|
|
240
|
+
const key = [
|
|
241
|
+
language,
|
|
242
|
+
options.decimals,
|
|
243
|
+
options.dropTrailingZeros ? "drop" : "keep",
|
|
244
|
+
options.isPercent ? "percent" : "decimal",
|
|
245
|
+
].join("|");
|
|
246
|
+
if (!figureFormatCache.has(key)) {
|
|
247
|
+
let format = null;
|
|
248
|
+
try {
|
|
249
|
+
format = new Intl.NumberFormat((0, exports.getNumberLocale)(language), {
|
|
250
|
+
style: options.isPercent ? "percent" : "decimal",
|
|
251
|
+
minimumFractionDigits: options.dropTrailingZeros ? 0 : options.decimals,
|
|
252
|
+
maximumFractionDigits: options.decimals,
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
catch (_a) {
|
|
256
|
+
format = null;
|
|
257
|
+
}
|
|
258
|
+
figureFormatCache.set(key, format);
|
|
259
|
+
}
|
|
260
|
+
return figureFormatCache.get(key) || null;
|
|
261
|
+
};
|
|
262
|
+
const formatReaderFigure = (value, options) => {
|
|
263
|
+
const decimals = Math.max(0, Math.min(20, Math.floor(options.decimals)));
|
|
264
|
+
const fixed = value.toFixed(decimals);
|
|
265
|
+
const english = `${options.dropTrailingZeros ? Number(fixed).toString() : fixed}${options.isPercent ? "%" : ""}`;
|
|
266
|
+
const language = normalizeLanguage(options.language === undefined
|
|
267
|
+
? (0, exports.getDateDisplayLanguage)()
|
|
268
|
+
: options.language);
|
|
269
|
+
if ((0, exports.isEnglishDateLanguage)(language) || !Number.isFinite(value)) {
|
|
270
|
+
return english;
|
|
271
|
+
}
|
|
272
|
+
const format = getFigureFormat(language, Object.assign(Object.assign({}, options), { decimals: decimals }));
|
|
273
|
+
if (!format) {
|
|
274
|
+
return english;
|
|
275
|
+
}
|
|
276
|
+
// Rounded once, as toFixed rounds it, so every language says the same figure.
|
|
277
|
+
const rounded = Number(fixed);
|
|
278
|
+
return format.format(options.isPercent ? rounded / 100 : rounded);
|
|
279
|
+
};
|
|
280
|
+
exports.formatReaderFigure = formatReaderFigure;
|
|
238
281
|
/*
|
|
239
282
|
* THE ENGLISH OF A DATE WRITTEN IN ANOTHER LANGUAGE.
|
|
240
283
|
*
|
|
@@ -349,6 +392,48 @@ const getDateTimeFormat = (data) => {
|
|
|
349
392
|
return null;
|
|
350
393
|
};
|
|
351
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;
|
|
352
437
|
// The Intl options a shape of OneUptimeDate's dates asks for.
|
|
353
438
|
const getDateTimeOptions = (shape) => {
|
|
354
439
|
const options = {
|
|
@@ -362,7 +447,7 @@ const getDateTimeOptions = (shape) => {
|
|
|
362
447
|
options.weekday = "short";
|
|
363
448
|
}
|
|
364
449
|
if (!shape.onlyShowDate) {
|
|
365
|
-
options.hour =
|
|
450
|
+
options.hour = (0, exports.getHourOption)(shape.use12HourFormat);
|
|
366
451
|
options.minute = "2-digit";
|
|
367
452
|
options.hour12 = Boolean(shape.use12HourFormat);
|
|
368
453
|
if (shape.showSeconds) {
|
package/Types/DateLanguage.mjs
CHANGED
|
@@ -7,6 +7,7 @@ export const formatDateText = commonJsModule.formatDateText;
|
|
|
7
7
|
export const formatDecimal = commonJsModule.formatDecimal;
|
|
8
8
|
export const formatDurationText = commonJsModule.formatDurationText;
|
|
9
9
|
export const formatDurationUnit = commonJsModule.formatDurationUnit;
|
|
10
|
+
export const formatReaderFigure = commonJsModule.formatReaderFigure;
|
|
10
11
|
export const formatReaderNumber = commonJsModule.formatReaderNumber;
|
|
11
12
|
export const formatRelativeAmount = commonJsModule.formatRelativeAmount;
|
|
12
13
|
export const formatRelativeDate = commonJsModule.formatRelativeDate;
|
|
@@ -16,6 +17,8 @@ export const getDateTimeFormat = commonJsModule.getDateTimeFormat;
|
|
|
16
17
|
export const getDateTimeOptions = commonJsModule.getDateTimeOptions;
|
|
17
18
|
export const getDigitsOf = commonJsModule.getDigitsOf;
|
|
18
19
|
export const getEnglishOf = commonJsModule.getEnglishOf;
|
|
20
|
+
export const getHourOption = commonJsModule.getHourOption;
|
|
21
|
+
export const getLocaleClockHourOption = commonJsModule.getLocaleClockHourOption;
|
|
19
22
|
export const getNumberLocale = commonJsModule.getNumberLocale;
|
|
20
23
|
export const getReaderDateLocale = commonJsModule.getReaderDateLocale;
|
|
21
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;
|