@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
|
@@ -0,0 +1,735 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.SERVER_SETUP_CHECKED_WORDS = exports.SERVER_SETUP_STATUS_WORDS = exports.SERVER_SETUP_CHECKS = exports.SERVER_SETUP_ADMIN_PATHS = exports.SERVER_SETUP_GUIDES = exports.ServerSetupChoiceKind = exports.FINISHED_SERVER_SETUP_STATUSES = exports.ServerSetupStatus = exports.ServerSetupCheckTier = exports.ServerSetupCheckId = void 0;
|
|
37
|
+
const Translator_1 = require("../Translator");
|
|
38
|
+
const ServerSendingStatus_1 = __importStar(require("../ServerSending/ServerSendingStatus"));
|
|
39
|
+
/*
|
|
40
|
+
* WHAT A NEW SELF-HOSTED SERVER NEEDS, AND WHERE EACH STANDS.
|
|
41
|
+
*
|
|
42
|
+
* A server that has just started is not finished: it cannot send email, SMS
|
|
43
|
+
* or calls, it may be on plain HTTP, and nobody has decided who may sign up
|
|
44
|
+
* (#6824). This is the one list of what it needs, in the order it matters,
|
|
45
|
+
* each with what it is for, how it is checked, where it is fixed and how it
|
|
46
|
+
* is tested:
|
|
47
|
+
*
|
|
48
|
+
* - required: email, HTTPS, who can sign up;
|
|
49
|
+
* - recommended: SMS and calls, a probe that reports, backups, update
|
|
50
|
+
* checks;
|
|
51
|
+
* - optional: browser push, an AI provider, single sign-on.
|
|
52
|
+
*
|
|
53
|
+
* Whether each is done is worked out from the server's real state on every
|
|
54
|
+
* read (Server/Utils/ServerSetup/ServerSetupChecklist reads the facts and
|
|
55
|
+
* hands them to evaluate, below). The only things stored are what an admin
|
|
56
|
+
* chose (GlobalConfig.serverSetupChoices): that a server does without
|
|
57
|
+
* something ("We will use email and push only"), that it is backed up some
|
|
58
|
+
* way the server cannot see, and each admin's "Hide" of the card.
|
|
59
|
+
*
|
|
60
|
+
* Read by the Admin Dashboard's Server setup page (/admin/setup), the card a
|
|
61
|
+
* master admin sees on the Dashboard while a required check is open, and
|
|
62
|
+
* `npm run doctor` (#6826), which prints the same checks in a terminal:
|
|
63
|
+
* every sentence here is plain English with {{placeholders}}, filled by
|
|
64
|
+
* fillTemplate there and translated in the browsers.
|
|
65
|
+
*
|
|
66
|
+
* Pure, with no Node or browser APIs.
|
|
67
|
+
*/
|
|
68
|
+
var ServerSetupCheckId;
|
|
69
|
+
(function (ServerSetupCheckId) {
|
|
70
|
+
ServerSetupCheckId["Email"] = "email";
|
|
71
|
+
ServerSetupCheckId["Https"] = "https";
|
|
72
|
+
ServerSetupCheckId["Signups"] = "signups";
|
|
73
|
+
ServerSetupCheckId["SmsAndCalls"] = "sms-and-calls";
|
|
74
|
+
ServerSetupCheckId["Probes"] = "probes";
|
|
75
|
+
ServerSetupCheckId["Backups"] = "backups";
|
|
76
|
+
ServerSetupCheckId["UpdateChecks"] = "update-checks";
|
|
77
|
+
ServerSetupCheckId["BrowserPush"] = "browser-push";
|
|
78
|
+
ServerSetupCheckId["AiProvider"] = "ai-provider";
|
|
79
|
+
ServerSetupCheckId["SingleSignOn"] = "single-sign-on";
|
|
80
|
+
})(ServerSetupCheckId || (exports.ServerSetupCheckId = ServerSetupCheckId = {}));
|
|
81
|
+
var ServerSetupCheckTier;
|
|
82
|
+
(function (ServerSetupCheckTier) {
|
|
83
|
+
ServerSetupCheckTier["Required"] = "required";
|
|
84
|
+
ServerSetupCheckTier["Recommended"] = "recommended";
|
|
85
|
+
ServerSetupCheckTier["Optional"] = "optional";
|
|
86
|
+
})(ServerSetupCheckTier || (exports.ServerSetupCheckTier = ServerSetupCheckTier = {}));
|
|
87
|
+
/*
|
|
88
|
+
* Where a check stands. Done, skipped and confirmed count as finished; the
|
|
89
|
+
* others do not.
|
|
90
|
+
*
|
|
91
|
+
* - not-set-up nothing is set up for it yet;
|
|
92
|
+
* - untested set up, and nothing has shown that it works yet (email,
|
|
93
|
+
* SMS and calls: nothing has gone out since the settings
|
|
94
|
+
* were saved);
|
|
95
|
+
* - failing set up, and it does not work: why is in `failure`;
|
|
96
|
+
* - done it works, as the server can see;
|
|
97
|
+
* - skipped an admin chose to do without it;
|
|
98
|
+
* - confirmed an admin said it is done, where the server cannot see it.
|
|
99
|
+
*/
|
|
100
|
+
var ServerSetupStatus;
|
|
101
|
+
(function (ServerSetupStatus) {
|
|
102
|
+
ServerSetupStatus["NotSetUp"] = "not-set-up";
|
|
103
|
+
ServerSetupStatus["Untested"] = "untested";
|
|
104
|
+
ServerSetupStatus["Failing"] = "failing";
|
|
105
|
+
ServerSetupStatus["Done"] = "done";
|
|
106
|
+
ServerSetupStatus["Skipped"] = "skipped";
|
|
107
|
+
ServerSetupStatus["Confirmed"] = "confirmed";
|
|
108
|
+
})(ServerSetupStatus || (exports.ServerSetupStatus = ServerSetupStatus = {}));
|
|
109
|
+
exports.FINISHED_SERVER_SETUP_STATUSES = [
|
|
110
|
+
ServerSetupStatus.Done,
|
|
111
|
+
ServerSetupStatus.Skipped,
|
|
112
|
+
ServerSetupStatus.Confirmed,
|
|
113
|
+
];
|
|
114
|
+
// What an admin can choose for a check, when the server cannot decide it.
|
|
115
|
+
var ServerSetupChoiceKind;
|
|
116
|
+
(function (ServerSetupChoiceKind) {
|
|
117
|
+
// The server does without it: SMS and calls, probes, update checks, or sign-ups kept open.
|
|
118
|
+
ServerSetupChoiceKind["Skipped"] = "skipped";
|
|
119
|
+
// It is done some way the server cannot see: backups.
|
|
120
|
+
ServerSetupChoiceKind["Confirmed"] = "confirmed";
|
|
121
|
+
})(ServerSetupChoiceKind || (exports.ServerSetupChoiceKind = ServerSetupChoiceKind = {}));
|
|
122
|
+
// The guides, for Docker Compose and the Helm chart alike.
|
|
123
|
+
exports.SERVER_SETUP_GUIDES = {
|
|
124
|
+
https: "/docs/installation/docker-compose#set-up-https",
|
|
125
|
+
backups: "/docs/installation/docker-compose#back-up-and-restore",
|
|
126
|
+
updateChecks: "/docs/self-hosted/update-checks",
|
|
127
|
+
browserPush: "/docs/self-hosted/push-notifications#self-hosted-setup",
|
|
128
|
+
};
|
|
129
|
+
// The Admin Dashboard's pages each check is fixed on.
|
|
130
|
+
exports.SERVER_SETUP_ADMIN_PATHS = {
|
|
131
|
+
setup: "/admin/setup",
|
|
132
|
+
email: "/admin/settings/smtp",
|
|
133
|
+
authentication: "/admin/settings/authentication",
|
|
134
|
+
callAndSms: "/admin/settings/call-and-sms",
|
|
135
|
+
probes: "/admin/settings/probes",
|
|
136
|
+
// Scheduled backups are the Enterprise Edition's (ee/AdminDashboard/Backups).
|
|
137
|
+
backups: "/admin/settings/backups",
|
|
138
|
+
llmProviders: "/admin/settings/llm-providers",
|
|
139
|
+
singleSignOn: "/admin/settings/sso",
|
|
140
|
+
};
|
|
141
|
+
// Every check, in the order it matters.
|
|
142
|
+
exports.SERVER_SETUP_CHECKS = [
|
|
143
|
+
{
|
|
144
|
+
id: ServerSetupCheckId.Email,
|
|
145
|
+
tier: ServerSetupCheckTier.Required,
|
|
146
|
+
title: (0, Translator_1.translationKey)("Email"),
|
|
147
|
+
adminPath: exports.SERVER_SETUP_ADMIN_PATHS.email,
|
|
148
|
+
choice: null,
|
|
149
|
+
tests: [ServerSendingStatus_1.ServerSendingChannel.Email],
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
id: ServerSetupCheckId.Https,
|
|
153
|
+
tier: ServerSetupCheckTier.Required,
|
|
154
|
+
title: (0, Translator_1.translationKey)("HTTPS"),
|
|
155
|
+
guidePath: exports.SERVER_SETUP_GUIDES.https,
|
|
156
|
+
choice: null,
|
|
157
|
+
tests: [],
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
id: ServerSetupCheckId.Signups,
|
|
161
|
+
tier: ServerSetupCheckTier.Required,
|
|
162
|
+
title: (0, Translator_1.translationKey)("Sign-ups"),
|
|
163
|
+
adminPath: exports.SERVER_SETUP_ADMIN_PATHS.authentication,
|
|
164
|
+
choice: ServerSetupChoiceKind.Skipped,
|
|
165
|
+
tests: [],
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
id: ServerSetupCheckId.SmsAndCalls,
|
|
169
|
+
tier: ServerSetupCheckTier.Recommended,
|
|
170
|
+
title: (0, Translator_1.translationKey)("SMS and calls"),
|
|
171
|
+
adminPath: exports.SERVER_SETUP_ADMIN_PATHS.callAndSms,
|
|
172
|
+
choice: ServerSetupChoiceKind.Skipped,
|
|
173
|
+
tests: [ServerSendingStatus_1.ServerSendingChannel.SMS, ServerSendingStatus_1.ServerSendingChannel.Call],
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
id: ServerSetupCheckId.Probes,
|
|
177
|
+
tier: ServerSetupCheckTier.Recommended,
|
|
178
|
+
title: (0, Translator_1.translationKey)("Probes"),
|
|
179
|
+
adminPath: exports.SERVER_SETUP_ADMIN_PATHS.probes,
|
|
180
|
+
choice: ServerSetupChoiceKind.Skipped,
|
|
181
|
+
tests: [],
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
id: ServerSetupCheckId.Backups,
|
|
185
|
+
tier: ServerSetupCheckTier.Recommended,
|
|
186
|
+
title: (0, Translator_1.translationKey)("Backups"),
|
|
187
|
+
guidePath: exports.SERVER_SETUP_GUIDES.backups,
|
|
188
|
+
choice: ServerSetupChoiceKind.Confirmed,
|
|
189
|
+
tests: [],
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
id: ServerSetupCheckId.UpdateChecks,
|
|
193
|
+
tier: ServerSetupCheckTier.Recommended,
|
|
194
|
+
title: (0, Translator_1.translationKey)("Update checks"),
|
|
195
|
+
guidePath: exports.SERVER_SETUP_GUIDES.updateChecks,
|
|
196
|
+
choice: ServerSetupChoiceKind.Skipped,
|
|
197
|
+
tests: [],
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
id: ServerSetupCheckId.BrowserPush,
|
|
201
|
+
tier: ServerSetupCheckTier.Optional,
|
|
202
|
+
title: (0, Translator_1.translationKey)("Browser push notifications"),
|
|
203
|
+
guidePath: exports.SERVER_SETUP_GUIDES.browserPush,
|
|
204
|
+
choice: null,
|
|
205
|
+
tests: [],
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
id: ServerSetupCheckId.AiProvider,
|
|
209
|
+
tier: ServerSetupCheckTier.Optional,
|
|
210
|
+
title: (0, Translator_1.translationKey)("AI provider"),
|
|
211
|
+
adminPath: exports.SERVER_SETUP_ADMIN_PATHS.llmProviders,
|
|
212
|
+
choice: null,
|
|
213
|
+
tests: [],
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
id: ServerSetupCheckId.SingleSignOn,
|
|
217
|
+
tier: ServerSetupCheckTier.Optional,
|
|
218
|
+
title: (0, Translator_1.translationKey)("Single sign-on"),
|
|
219
|
+
adminPath: exports.SERVER_SETUP_ADMIN_PATHS.singleSignOn,
|
|
220
|
+
choice: null,
|
|
221
|
+
tests: [],
|
|
222
|
+
},
|
|
223
|
+
];
|
|
224
|
+
/*
|
|
225
|
+
* What each check says, per status: one line that says what it is for and
|
|
226
|
+
* where it stands. A status a check never takes has no line.
|
|
227
|
+
*/
|
|
228
|
+
exports.SERVER_SETUP_STATUS_WORDS = {
|
|
229
|
+
[ServerSetupCheckId.Email]: {
|
|
230
|
+
[ServerSetupStatus.NotSetUp]: (0, Translator_1.translationKey)("Not set up yet: OneUptime cannot send invitations, password resets or alerts by email."),
|
|
231
|
+
[ServerSetupStatus.Untested]: (0, Translator_1.translationKey)("Set up, but not tested yet: send a test email to make sure it arrives."),
|
|
232
|
+
[ServerSetupStatus.Failing]: (0, Translator_1.translationKey)("Failing: emails have not gone out since {{time}}."),
|
|
233
|
+
[ServerSetupStatus.Done]: (0, Translator_1.translationKey)("Set up: OneUptime sends invitations, password resets and alerts by email."),
|
|
234
|
+
},
|
|
235
|
+
[ServerSetupCheckId.Https]: {
|
|
236
|
+
[ServerSetupStatus.NotSetUp]: (0, Translator_1.translationKey)("Not set up yet: passwords and sessions cross the network unencrypted, and passkeys need HTTPS."),
|
|
237
|
+
[ServerSetupStatus.Done]: (0, Translator_1.translationKey)("People reach this server over HTTPS."),
|
|
238
|
+
},
|
|
239
|
+
[ServerSetupCheckId.Signups]: {
|
|
240
|
+
[ServerSetupStatus.NotSetUp]: (0, Translator_1.translationKey)("Anyone who can open this server can create an account. Turn this off once your team has its accounts."),
|
|
241
|
+
[ServerSetupStatus.Done]: (0, Translator_1.translationKey)("Only people you invite can create an account."),
|
|
242
|
+
[ServerSetupStatus.Skipped]: (0, Translator_1.translationKey)("Anyone who can open this server can create an account, as chosen."),
|
|
243
|
+
},
|
|
244
|
+
[ServerSetupCheckId.SmsAndCalls]: {
|
|
245
|
+
[ServerSetupStatus.NotSetUp]: (0, Translator_1.translationKey)("Not set up yet: on-call alerts can only go out by email and push."),
|
|
246
|
+
[ServerSetupStatus.Untested]: (0, Translator_1.translationKey)("Set up, but not tested yet: send a test SMS or make a test call."),
|
|
247
|
+
[ServerSetupStatus.Failing]: (0, Translator_1.translationKey)("Failing: SMS or calls have not gone out since {{time}}."),
|
|
248
|
+
[ServerSetupStatus.Done]: (0, Translator_1.translationKey)("Set up: OneUptime sends on-call alerts by SMS and calls."),
|
|
249
|
+
[ServerSetupStatus.Skipped]: (0, Translator_1.translationKey)("Not used: on-call alerts go out by email and push."),
|
|
250
|
+
},
|
|
251
|
+
[ServerSetupCheckId.Probes]: {
|
|
252
|
+
[ServerSetupStatus.NotSetUp]: (0, Translator_1.translationKey)("No global probe is reporting, so monitors that run on global probes are not checked."),
|
|
253
|
+
[ServerSetupStatus.Done]: (0, Translator_1.translationKey)("A global probe is reporting, so monitors are being checked."),
|
|
254
|
+
[ServerSetupStatus.Skipped]: (0, Translator_1.translationKey)("Marked as not needed."),
|
|
255
|
+
},
|
|
256
|
+
[ServerSetupCheckId.Backups]: {
|
|
257
|
+
[ServerSetupStatus.NotSetUp]: (0, Translator_1.translationKey)("Not set up yet: back up the database regularly, so a lost disk does not lose your monitors, incidents and history."),
|
|
258
|
+
[ServerSetupStatus.Failing]: (0, Translator_1.translationKey)("Failing: the last backup failed on {{time}}."),
|
|
259
|
+
[ServerSetupStatus.Done]: (0, Translator_1.translationKey)("Backed up on a schedule."),
|
|
260
|
+
[ServerSetupStatus.Confirmed]: (0, Translator_1.translationKey)("Backed up, as an admin confirmed."),
|
|
261
|
+
},
|
|
262
|
+
[ServerSetupCheckId.UpdateChecks]: {
|
|
263
|
+
[ServerSetupStatus.NotSetUp]: (0, Translator_1.translationKey)("Off: nobody is told about new releases or security fixes."),
|
|
264
|
+
[ServerSetupStatus.Failing]: (0, Translator_1.translationKey)("On, but the last check could not reach GitHub."),
|
|
265
|
+
[ServerSetupStatus.Done]: (0, Translator_1.translationKey)("On: OneUptime checks every day for new releases and security fixes."),
|
|
266
|
+
[ServerSetupStatus.Skipped]: (0, Translator_1.translationKey)("Marked as not needed."),
|
|
267
|
+
},
|
|
268
|
+
[ServerSetupCheckId.BrowserPush]: {
|
|
269
|
+
[ServerSetupStatus.NotSetUp]: (0, Translator_1.translationKey)("Not set up: browser notifications need VAPID keys in config.env. Mobile push works without them."),
|
|
270
|
+
[ServerSetupStatus.Done]: (0, Translator_1.translationKey)("Set up: people can get alerts as browser notifications."),
|
|
271
|
+
},
|
|
272
|
+
[ServerSetupCheckId.AiProvider]: {
|
|
273
|
+
[ServerSetupStatus.NotSetUp]: (0, Translator_1.translationKey)("Not set up: add an AI provider so projects can use OneUptime AI."),
|
|
274
|
+
[ServerSetupStatus.Done]: (0, Translator_1.translationKey)("Set up: projects can use OneUptime AI."),
|
|
275
|
+
},
|
|
276
|
+
[ServerSetupCheckId.SingleSignOn]: {
|
|
277
|
+
[ServerSetupStatus.NotSetUp]: (0, Translator_1.translationKey)("Not set up: let people sign in with your company's identity provider."),
|
|
278
|
+
[ServerSetupStatus.Done]: (0, Translator_1.translationKey)("Set up: people can sign in with your identity provider."),
|
|
279
|
+
},
|
|
280
|
+
};
|
|
281
|
+
/*
|
|
282
|
+
* What a check's "done" was checked against, or why it is not: the second,
|
|
283
|
+
* smaller line under it. "smtp.example.com accepted an email on 11 Nov" says
|
|
284
|
+
* more than a tick.
|
|
285
|
+
*/
|
|
286
|
+
exports.SERVER_SETUP_CHECKED_WORDS = {
|
|
287
|
+
emailAccepted: (0, Translator_1.translationKey)("{{sentThrough}} accepted an email on {{time}}."),
|
|
288
|
+
smsAccepted: (0, Translator_1.translationKey)("{{sentThrough}} accepted an SMS on {{time}}."),
|
|
289
|
+
callAccepted: (0, Translator_1.translationKey)("{{sentThrough}} accepted a call on {{time}}."),
|
|
290
|
+
providerSaid: (0, Translator_1.translationKey)("{{sentThrough}} said: {{reason}}"),
|
|
291
|
+
lastBackup: (0, Translator_1.translationKey)("The last backup finished on {{time}}."),
|
|
292
|
+
lastUpdateCheck: (0, Translator_1.translationKey)("Last checked on {{time}}."),
|
|
293
|
+
chosenBy: (0, Translator_1.translationKey)("Chosen by {{name}} on {{time}}."),
|
|
294
|
+
chosenOn: (0, Translator_1.translationKey)("Chosen on {{time}}."),
|
|
295
|
+
};
|
|
296
|
+
const isObject = (value) => {
|
|
297
|
+
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
298
|
+
};
|
|
299
|
+
const readDate = (value) => {
|
|
300
|
+
if (typeof value !== "string" && !(value instanceof Date)) {
|
|
301
|
+
return null;
|
|
302
|
+
}
|
|
303
|
+
const date = value instanceof Date ? value : new Date(value);
|
|
304
|
+
return Number.isNaN(date.getTime()) ? null : date.toISOString();
|
|
305
|
+
};
|
|
306
|
+
const readText = (value, limit = 500) => {
|
|
307
|
+
if (typeof value !== "string") {
|
|
308
|
+
return null;
|
|
309
|
+
}
|
|
310
|
+
const text = value.trim();
|
|
311
|
+
return text ? text.slice(0, limit) : null;
|
|
312
|
+
};
|
|
313
|
+
class ServerSetupChecklistUtil {
|
|
314
|
+
static getDefinition(id) {
|
|
315
|
+
return exports.SERVER_SETUP_CHECKS.find((check) => {
|
|
316
|
+
return check.id === id;
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
static isCheckId(value) {
|
|
320
|
+
return Object.values(ServerSetupCheckId).includes(value);
|
|
321
|
+
}
|
|
322
|
+
static isFinished(status) {
|
|
323
|
+
return exports.FINISHED_SERVER_SETUP_STATUSES.includes(status);
|
|
324
|
+
}
|
|
325
|
+
// What was stored, read whole: anything that is not a choice or a hide is left out.
|
|
326
|
+
static readChoices(value) {
|
|
327
|
+
const choices = { choices: {}, hiddenBy: {} };
|
|
328
|
+
if (!isObject(value)) {
|
|
329
|
+
return choices;
|
|
330
|
+
}
|
|
331
|
+
if (isObject(value["choices"])) {
|
|
332
|
+
for (const [id, stored] of Object.entries(value["choices"])) {
|
|
333
|
+
if (!ServerSetupChecklistUtil.isCheckId(id) || !isObject(stored)) {
|
|
334
|
+
continue;
|
|
335
|
+
}
|
|
336
|
+
const kind = stored["kind"];
|
|
337
|
+
const at = readDate(stored["at"]);
|
|
338
|
+
// Only the choice the catalogue allows for that check.
|
|
339
|
+
if (!at ||
|
|
340
|
+
kind !== ServerSetupChecklistUtil.getDefinition(id).choice ||
|
|
341
|
+
!kind) {
|
|
342
|
+
continue;
|
|
343
|
+
}
|
|
344
|
+
choices.choices[id] = {
|
|
345
|
+
kind: kind,
|
|
346
|
+
at: at,
|
|
347
|
+
byUserId: readText(stored["byUserId"], 100),
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
if (isObject(value["hiddenBy"])) {
|
|
352
|
+
for (const [userId, stored] of Object.entries(value["hiddenBy"])) {
|
|
353
|
+
if (!isObject(stored)) {
|
|
354
|
+
continue;
|
|
355
|
+
}
|
|
356
|
+
const at = readDate(stored["at"]);
|
|
357
|
+
if (!at) {
|
|
358
|
+
continue;
|
|
359
|
+
}
|
|
360
|
+
choices.hiddenBy[userId] = {
|
|
361
|
+
at: at,
|
|
362
|
+
openRequired: Array.isArray(stored["openRequired"])
|
|
363
|
+
? stored["openRequired"].filter((id) => {
|
|
364
|
+
return ServerSetupChecklistUtil.isCheckId(id);
|
|
365
|
+
})
|
|
366
|
+
: [],
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
return choices;
|
|
371
|
+
}
|
|
372
|
+
/*
|
|
373
|
+
* The choices with one check's choice made (or undone, with null), by
|
|
374
|
+
* whom and when. A choice the catalogue does not allow for that check is
|
|
375
|
+
* refused.
|
|
376
|
+
*/
|
|
377
|
+
static withChoice(data) {
|
|
378
|
+
const next = {
|
|
379
|
+
choices: Object.assign({}, data.choices.choices),
|
|
380
|
+
hiddenBy: Object.assign({}, data.choices.hiddenBy),
|
|
381
|
+
};
|
|
382
|
+
if (data.kind === null) {
|
|
383
|
+
delete next.choices[data.check];
|
|
384
|
+
return next;
|
|
385
|
+
}
|
|
386
|
+
if (ServerSetupChecklistUtil.getDefinition(data.check).choice !== data.kind) {
|
|
387
|
+
throw new Error(`${data.check} cannot be marked as ${data.kind}.`);
|
|
388
|
+
}
|
|
389
|
+
next.choices[data.check] = {
|
|
390
|
+
kind: data.kind,
|
|
391
|
+
at: data.now.toISOString(),
|
|
392
|
+
byUserId: data.byUserId,
|
|
393
|
+
};
|
|
394
|
+
return next;
|
|
395
|
+
}
|
|
396
|
+
// The choices with the card hidden for one admin, over the checks open now.
|
|
397
|
+
static withHidden(data) {
|
|
398
|
+
return {
|
|
399
|
+
choices: Object.assign({}, data.choices.choices),
|
|
400
|
+
hiddenBy: Object.assign(Object.assign({}, data.choices.hiddenBy), { [data.userId]: {
|
|
401
|
+
at: data.now.toISOString(),
|
|
402
|
+
openRequired: [...data.openRequired],
|
|
403
|
+
} }),
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
/*
|
|
407
|
+
* Whether the card stays hidden for an admin: they hid it, and every
|
|
408
|
+
* required check open now was open then. One that opened since (email
|
|
409
|
+
* that starts failing, say) brings it back.
|
|
410
|
+
*/
|
|
411
|
+
static isHiddenFor(data) {
|
|
412
|
+
if (!data.userId) {
|
|
413
|
+
return false;
|
|
414
|
+
}
|
|
415
|
+
const hidden = data.choices.hiddenBy[data.userId];
|
|
416
|
+
if (!hidden) {
|
|
417
|
+
return false;
|
|
418
|
+
}
|
|
419
|
+
return data.openRequired.every((id) => {
|
|
420
|
+
return hidden.openRequired.includes(id);
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
// A channel that sends: its status, from the channel's own state.
|
|
424
|
+
static channelStatus(status) {
|
|
425
|
+
switch (status.state) {
|
|
426
|
+
case ServerSendingStatus_1.ServerSendingState.NotSetUp:
|
|
427
|
+
return ServerSetupStatus.NotSetUp;
|
|
428
|
+
case ServerSendingStatus_1.ServerSendingState.Untested:
|
|
429
|
+
return ServerSetupStatus.Untested;
|
|
430
|
+
case ServerSendingStatus_1.ServerSendingState.Failing:
|
|
431
|
+
return ServerSetupStatus.Failing;
|
|
432
|
+
default:
|
|
433
|
+
return ServerSetupStatus.Done;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
static result(data) {
|
|
437
|
+
const definition = ServerSetupChecklistUtil.getDefinition(data.id);
|
|
438
|
+
const isFinished = ServerSetupChecklistUtil.isFinished(data.status);
|
|
439
|
+
const isChoiceApplicable = data.isChoiceApplicable !== false;
|
|
440
|
+
// A choice is shown only while it is what the check stands on.
|
|
441
|
+
const stored = data.facts.choices.choices[data.id];
|
|
442
|
+
const choice = stored &&
|
|
443
|
+
(data.status === ServerSetupStatus.Skipped ||
|
|
444
|
+
data.status === ServerSetupStatus.Confirmed)
|
|
445
|
+
? stored
|
|
446
|
+
: null;
|
|
447
|
+
return {
|
|
448
|
+
id: data.id,
|
|
449
|
+
tier: definition.tier,
|
|
450
|
+
status: data.status,
|
|
451
|
+
isFinished: isFinished,
|
|
452
|
+
time: data.time || null,
|
|
453
|
+
sentThrough: data.sentThrough || null,
|
|
454
|
+
reason: data.reason || null,
|
|
455
|
+
channels: data.channels || [],
|
|
456
|
+
choice: choice,
|
|
457
|
+
/*
|
|
458
|
+
* Offered while the check is open and the choice would count, or
|
|
459
|
+
* while it stands on the choice (to undo it).
|
|
460
|
+
*/
|
|
461
|
+
canChoose: choice || (!isFinished && isChoiceApplicable)
|
|
462
|
+
? definition.choice
|
|
463
|
+
: null,
|
|
464
|
+
tests: data.tests || [],
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
static evaluateEmail(facts) {
|
|
468
|
+
const status = ServerSetupChecklistUtil.channelStatus(facts.email);
|
|
469
|
+
return ServerSetupChecklistUtil.result({
|
|
470
|
+
id: ServerSetupCheckId.Email,
|
|
471
|
+
status: status,
|
|
472
|
+
facts: facts,
|
|
473
|
+
time: status === ServerSetupStatus.Failing
|
|
474
|
+
? facts.email.failingSince
|
|
475
|
+
: facts.email.lastWorkedAt,
|
|
476
|
+
sentThrough: facts.emailSentThrough,
|
|
477
|
+
reason: status === ServerSetupStatus.Failing
|
|
478
|
+
? facts.email.lastFailure
|
|
479
|
+
: status === ServerSetupStatus.NotSetUp
|
|
480
|
+
? facts.email.setUpProblem
|
|
481
|
+
: null,
|
|
482
|
+
tests: status === ServerSetupStatus.NotSetUp
|
|
483
|
+
? []
|
|
484
|
+
: [ServerSendingStatus_1.ServerSendingChannel.Email],
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
/*
|
|
488
|
+
* SMS and calls, as one check: each that is set up has to have worked
|
|
489
|
+
* since its settings were saved (an account used for SMS only needs no
|
|
490
|
+
* calls). Failing wins, then untested. Nothing set up is open - unless an
|
|
491
|
+
* admin chose to do without them, which applies only while nothing is.
|
|
492
|
+
*/
|
|
493
|
+
static evaluateSmsAndCalls(facts) {
|
|
494
|
+
const channels = [
|
|
495
|
+
Object.assign(Object.assign({}, facts.sms), { sentThrough: facts.smsSentThrough }),
|
|
496
|
+
Object.assign(Object.assign({}, facts.call), { sentThrough: facts.callSentThrough }),
|
|
497
|
+
];
|
|
498
|
+
const setUp = channels.filter((channel) => {
|
|
499
|
+
return channel.state !== ServerSendingStatus_1.ServerSendingState.NotSetUp;
|
|
500
|
+
});
|
|
501
|
+
const tests = setUp.map((channel) => {
|
|
502
|
+
return channel.channel;
|
|
503
|
+
});
|
|
504
|
+
if (setUp.length === 0) {
|
|
505
|
+
return ServerSetupChecklistUtil.result({
|
|
506
|
+
id: ServerSetupCheckId.SmsAndCalls,
|
|
507
|
+
status: facts.choices.choices[ServerSetupCheckId.SmsAndCalls]
|
|
508
|
+
? ServerSetupStatus.Skipped
|
|
509
|
+
: ServerSetupStatus.NotSetUp,
|
|
510
|
+
facts: facts,
|
|
511
|
+
channels: channels,
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
const failing = setUp.filter((channel) => {
|
|
515
|
+
return channel.state === ServerSendingStatus_1.ServerSendingState.Failing;
|
|
516
|
+
});
|
|
517
|
+
if (failing.length > 0) {
|
|
518
|
+
const first = failing[0];
|
|
519
|
+
return ServerSetupChecklistUtil.result({
|
|
520
|
+
id: ServerSetupCheckId.SmsAndCalls,
|
|
521
|
+
status: ServerSetupStatus.Failing,
|
|
522
|
+
facts: facts,
|
|
523
|
+
time: first.failingSince,
|
|
524
|
+
sentThrough: first.sentThrough,
|
|
525
|
+
reason: first.lastFailure,
|
|
526
|
+
channels: channels,
|
|
527
|
+
tests: tests,
|
|
528
|
+
isChoiceApplicable: false,
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
const isUntested = setUp.some((channel) => {
|
|
532
|
+
return channel.state === ServerSendingStatus_1.ServerSendingState.Untested;
|
|
533
|
+
});
|
|
534
|
+
return ServerSetupChecklistUtil.result({
|
|
535
|
+
id: ServerSetupCheckId.SmsAndCalls,
|
|
536
|
+
status: isUntested ? ServerSetupStatus.Untested : ServerSetupStatus.Done,
|
|
537
|
+
facts: facts,
|
|
538
|
+
channels: channels,
|
|
539
|
+
tests: tests,
|
|
540
|
+
isChoiceApplicable: false,
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
static evaluateBackups(facts) {
|
|
544
|
+
const backup = facts.lastBackup;
|
|
545
|
+
const isConfirmed = Boolean(facts.choices.choices[ServerSetupCheckId.Backups]);
|
|
546
|
+
let status = isConfirmed
|
|
547
|
+
? ServerSetupStatus.Confirmed
|
|
548
|
+
: ServerSetupStatus.NotSetUp;
|
|
549
|
+
// A backup the server made itself says more than a confirmation.
|
|
550
|
+
if (backup && backup.succeeded) {
|
|
551
|
+
status = ServerSetupStatus.Done;
|
|
552
|
+
}
|
|
553
|
+
else if (backup && !backup.succeeded) {
|
|
554
|
+
status = ServerSetupStatus.Failing;
|
|
555
|
+
}
|
|
556
|
+
const answer = ServerSetupChecklistUtil.result({
|
|
557
|
+
id: ServerSetupCheckId.Backups,
|
|
558
|
+
status: status,
|
|
559
|
+
facts: facts,
|
|
560
|
+
time: backup ? backup.finishedAt : null,
|
|
561
|
+
reason: backup && !backup.succeeded ? backup.error : null,
|
|
562
|
+
// A failed backup the server made is not undone by a confirmation.
|
|
563
|
+
isChoiceApplicable: !backup,
|
|
564
|
+
});
|
|
565
|
+
answer.hasScheduledBackups = facts.hasScheduledBackups;
|
|
566
|
+
return answer;
|
|
567
|
+
}
|
|
568
|
+
static evaluateUpdateChecks(facts) {
|
|
569
|
+
const updates = facts.updateChecks;
|
|
570
|
+
let status = ServerSetupStatus.Done;
|
|
571
|
+
if (updates.isDisabled) {
|
|
572
|
+
status = ServerSetupStatus.NotSetUp;
|
|
573
|
+
}
|
|
574
|
+
else if (updates.lastFailure) {
|
|
575
|
+
status = ServerSetupStatus.Failing;
|
|
576
|
+
}
|
|
577
|
+
if (status !== ServerSetupStatus.Done &&
|
|
578
|
+
facts.choices.choices[ServerSetupCheckId.UpdateChecks]) {
|
|
579
|
+
status = ServerSetupStatus.Skipped;
|
|
580
|
+
}
|
|
581
|
+
return ServerSetupChecklistUtil.result({
|
|
582
|
+
id: ServerSetupCheckId.UpdateChecks,
|
|
583
|
+
status: status,
|
|
584
|
+
facts: facts,
|
|
585
|
+
time: updates.isDisabled ? null : updates.lastCheckedAt,
|
|
586
|
+
reason: status === ServerSetupStatus.Failing ? updates.lastFailure : null,
|
|
587
|
+
});
|
|
588
|
+
}
|
|
589
|
+
// A check that is done or not, with the choice to do without it.
|
|
590
|
+
static evaluateYesNo(data) {
|
|
591
|
+
let status = data.isDone
|
|
592
|
+
? ServerSetupStatus.Done
|
|
593
|
+
: ServerSetupStatus.NotSetUp;
|
|
594
|
+
if (!data.isDone &&
|
|
595
|
+
ServerSetupChecklistUtil.getDefinition(data.id).choice ===
|
|
596
|
+
ServerSetupChoiceKind.Skipped &&
|
|
597
|
+
data.facts.choices.choices[data.id]) {
|
|
598
|
+
status = ServerSetupStatus.Skipped;
|
|
599
|
+
}
|
|
600
|
+
return ServerSetupChecklistUtil.result({
|
|
601
|
+
id: data.id,
|
|
602
|
+
status: status,
|
|
603
|
+
facts: data.facts,
|
|
604
|
+
});
|
|
605
|
+
}
|
|
606
|
+
// Every check, in the catalogue's order.
|
|
607
|
+
static evaluate(facts) {
|
|
608
|
+
return [
|
|
609
|
+
ServerSetupChecklistUtil.evaluateEmail(facts),
|
|
610
|
+
ServerSetupChecklistUtil.evaluateYesNo({
|
|
611
|
+
id: ServerSetupCheckId.Https,
|
|
612
|
+
isDone: facts.isHttpsSetUp,
|
|
613
|
+
facts: facts,
|
|
614
|
+
}),
|
|
615
|
+
ServerSetupChecklistUtil.evaluateYesNo({
|
|
616
|
+
id: ServerSetupCheckId.Signups,
|
|
617
|
+
isDone: facts.areSignupsClosed,
|
|
618
|
+
facts: facts,
|
|
619
|
+
}),
|
|
620
|
+
ServerSetupChecklistUtil.evaluateSmsAndCalls(facts),
|
|
621
|
+
ServerSetupChecklistUtil.evaluateYesNo({
|
|
622
|
+
id: ServerSetupCheckId.Probes,
|
|
623
|
+
isDone: Boolean(facts.globalProbes && facts.globalProbes.reporting > 0),
|
|
624
|
+
facts: facts,
|
|
625
|
+
}),
|
|
626
|
+
ServerSetupChecklistUtil.evaluateBackups(facts),
|
|
627
|
+
ServerSetupChecklistUtil.evaluateUpdateChecks(facts),
|
|
628
|
+
ServerSetupChecklistUtil.evaluateYesNo({
|
|
629
|
+
id: ServerSetupCheckId.BrowserPush,
|
|
630
|
+
isDone: facts.isBrowserPushSetUp,
|
|
631
|
+
facts: facts,
|
|
632
|
+
}),
|
|
633
|
+
ServerSetupChecklistUtil.evaluateYesNo({
|
|
634
|
+
id: ServerSetupCheckId.AiProvider,
|
|
635
|
+
isDone: facts.hasAiProvider,
|
|
636
|
+
facts: facts,
|
|
637
|
+
}),
|
|
638
|
+
ServerSetupChecklistUtil.evaluateYesNo({
|
|
639
|
+
id: ServerSetupCheckId.SingleSignOn,
|
|
640
|
+
isDone: facts.hasSingleSignOn,
|
|
641
|
+
facts: facts,
|
|
642
|
+
}),
|
|
643
|
+
];
|
|
644
|
+
}
|
|
645
|
+
static getOpenRequired(checks) {
|
|
646
|
+
return checks
|
|
647
|
+
.filter((check) => {
|
|
648
|
+
return (check.tier === ServerSetupCheckTier.Required && !check.isFinished);
|
|
649
|
+
})
|
|
650
|
+
.map((check) => {
|
|
651
|
+
return check.id;
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
// The whole answer, for one reader.
|
|
655
|
+
static getAnswer(data) {
|
|
656
|
+
const checks = ServerSetupChecklistUtil.evaluate(data.facts);
|
|
657
|
+
const openRequired = ServerSetupChecklistUtil.getOpenRequired(checks);
|
|
658
|
+
return {
|
|
659
|
+
checks: checks,
|
|
660
|
+
openRequired: openRequired,
|
|
661
|
+
isHiddenForReader: ServerSetupChecklistUtil.isHiddenFor({
|
|
662
|
+
choices: data.facts.choices,
|
|
663
|
+
userId: data.readerUserId,
|
|
664
|
+
openRequired: openRequired,
|
|
665
|
+
}),
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
// The status line of a check, in English with its placeholders.
|
|
669
|
+
static getStatusWords(check) {
|
|
670
|
+
return exports.SERVER_SETUP_STATUS_WORDS[check.id][check.status] || "";
|
|
671
|
+
}
|
|
672
|
+
/*
|
|
673
|
+
* The answer of GET /global-config/setup-checklist, read in a browser, or
|
|
674
|
+
* null when it is not one (a failed read, a proxy's page): nothing is
|
|
675
|
+
* drawn then. A check row that is not one is left out.
|
|
676
|
+
*/
|
|
677
|
+
static parseAnswer(value) {
|
|
678
|
+
var _a;
|
|
679
|
+
if (!isObject(value) || !Array.isArray(value["checks"])) {
|
|
680
|
+
return null;
|
|
681
|
+
}
|
|
682
|
+
const checks = [];
|
|
683
|
+
for (const row of value["checks"]) {
|
|
684
|
+
if (!isObject(row) ||
|
|
685
|
+
!ServerSetupChecklistUtil.isCheckId(row["id"]) ||
|
|
686
|
+
!Object.values(ServerSetupStatus).includes(row["status"])) {
|
|
687
|
+
continue;
|
|
688
|
+
}
|
|
689
|
+
const id = row["id"];
|
|
690
|
+
const status = row["status"];
|
|
691
|
+
const definition = ServerSetupChecklistUtil.getDefinition(id);
|
|
692
|
+
const storedChoice = row["choice"];
|
|
693
|
+
const canChoose = row["canChoose"];
|
|
694
|
+
const channels = [];
|
|
695
|
+
const parsedChannels = (_a = ServerSendingStatus_1.default.parseAnswer({
|
|
696
|
+
channels: Array.isArray(row["channels"]) ? row["channels"] : [],
|
|
697
|
+
})) === null || _a === void 0 ? void 0 : _a.channels;
|
|
698
|
+
for (const channel of parsedChannels || []) {
|
|
699
|
+
const raw = row["channels"].find((candidate) => {
|
|
700
|
+
return (isObject(candidate) && candidate["channel"] === channel.channel);
|
|
701
|
+
});
|
|
702
|
+
channels.push(Object.assign(Object.assign({}, channel), { sentThrough: isObject(raw) ? readText(raw["sentThrough"], 200) : null }));
|
|
703
|
+
}
|
|
704
|
+
checks.push(Object.assign({ id: id, tier: definition.tier, status: status, isFinished: ServerSetupChecklistUtil.isFinished(status), time: readDate(row["time"]), sentThrough: readText(row["sentThrough"], 200), reason: readText(row["reason"]), channels: channels, choice: isObject(storedChoice) &&
|
|
705
|
+
storedChoice["kind"] === definition.choice &&
|
|
706
|
+
readDate(storedChoice["at"])
|
|
707
|
+
? {
|
|
708
|
+
kind: definition.choice,
|
|
709
|
+
at: readDate(storedChoice["at"]),
|
|
710
|
+
byUserId: readText(storedChoice["byUserId"], 100),
|
|
711
|
+
byName: readText(storedChoice["byName"], 200),
|
|
712
|
+
}
|
|
713
|
+
: null, canChoose: definition.choice && canChoose === definition.choice
|
|
714
|
+
? definition.choice
|
|
715
|
+
: null, tests: (Array.isArray(row["tests"]) ? row["tests"] : []).filter((test) => {
|
|
716
|
+
return (ServerSendingStatus_1.default.isChannel(test) &&
|
|
717
|
+
definition.tests.includes(test));
|
|
718
|
+
}) }, (id === ServerSetupCheckId.Backups
|
|
719
|
+
? { hasScheduledBackups: row["hasScheduledBackups"] === true }
|
|
720
|
+
: {})));
|
|
721
|
+
}
|
|
722
|
+
const openRequired = ServerSetupChecklistUtil.getOpenRequired(checks);
|
|
723
|
+
return {
|
|
724
|
+
checks: checks,
|
|
725
|
+
openRequired: openRequired,
|
|
726
|
+
isHiddenForReader: value["isHiddenForReader"] === true,
|
|
727
|
+
};
|
|
728
|
+
}
|
|
729
|
+
static getCheck(answer, id) {
|
|
730
|
+
return (answer.checks.find((check) => {
|
|
731
|
+
return check.id === id;
|
|
732
|
+
}) || null);
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
exports.default = ServerSetupChecklistUtil;
|