@oneuptime/common 14.0.107 → 14.0.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/AnalyticsModels/AuditLog.js +1 -1
- package/Models/DatabaseModels/CloudApp.d.mts +5 -0
- package/Models/DatabaseModels/CloudApp.d.ts +5 -0
- package/Models/DatabaseModels/CloudApp.js +112 -0
- package/Models/DatabaseModels/DataBiConnection.d.mts +4 -0
- package/Models/DatabaseModels/DataBiConnection.d.ts +4 -0
- package/Models/DatabaseModels/DataBiConnection.js +59 -2
- package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
- package/Models/DatabaseModels/GlobalConfig.js +111 -0
- package/Models/DatabaseModels/Index.js +9 -0
- package/Models/DatabaseModels/Monitor.js +14 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.d.mts +1 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.d.ts +1 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.js +43 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +4 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +4 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +132 -2
- package/Models/DatabaseModels/ProductFeedback.d.mts +11 -0
- package/Models/DatabaseModels/ProductFeedback.d.ts +11 -0
- package/Models/DatabaseModels/ProductFeedback.js +203 -0
- package/Models/DatabaseModels/ProductFeedback.mjs +2 -0
- package/Models/DatabaseModels/Project.d.mts +6 -0
- package/Models/DatabaseModels/Project.d.ts +6 -0
- package/Models/DatabaseModels/Project.js +237 -0
- package/Models/DatabaseModels/ProjectMilestone.d.mts +11 -0
- package/Models/DatabaseModels/ProjectMilestone.d.ts +11 -0
- package/Models/DatabaseModels/ProjectMilestone.js +207 -0
- package/Models/DatabaseModels/ProjectMilestone.mjs +2 -0
- package/Models/DatabaseModels/ProjectUserPreference.d.mts +11 -0
- package/Models/DatabaseModels/ProjectUserPreference.d.ts +11 -0
- package/Models/DatabaseModels/ProjectUserPreference.js +194 -0
- package/Models/DatabaseModels/ProjectUserPreference.mjs +2 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.d.mts +20 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.d.ts +20 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.js +353 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.mjs +2 -0
- package/Models/DatabaseModels/RumSessionPin.js +16 -2
- package/Models/DatabaseModels/RumSessionReplayView.js +8 -1
- package/Models/DatabaseModels/SecurityCase.js +8 -1
- package/Models/DatabaseModels/User.d.mts +2 -0
- package/Models/DatabaseModels/User.d.ts +2 -0
- package/Models/DatabaseModels/User.js +52 -0
- package/Models/DatabaseModels/UserOnCallLog.js +32 -4
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +10 -0
- package/Models/DatabaseModels/WhatsAppLog.d.mts +3 -0
- package/Models/DatabaseModels/WhatsAppLog.d.ts +3 -0
- package/Models/DatabaseModels/WhatsAppLog.js +62 -0
- package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.mts +20 -0
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.ts +20 -0
- package/Models/DatabaseModels/WorkspaceUserGroup.js +1 -1
- package/Server/Services/DatabaseService.d.mts +1 -0
- package/Server/Services/DatabaseService.d.ts +1 -0
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.mts +213 -0
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.ts +213 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.mts +4 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.ts +4 -0
- package/Types/AI/AIActionWords.d.mts +167 -7
- package/Types/AI/AIActionWords.d.ts +167 -7
- package/Types/AI/AIActionWords.js +474 -17
- package/Types/AI/AIActionWords.mjs +22 -0
- package/Types/AI/AIChatMessageStatus.js +3 -2
- package/Types/AI/AIChatRecordSeen.d.mts +6 -2
- package/Types/AI/AIChatRecordSeen.d.ts +6 -2
- package/Types/AI/AIChatRecordSeen.js +48 -9
- package/Types/AI/AIChatRecordSeen.mjs +2 -0
- package/Types/AI/AIChatTypes.d.mts +20 -1
- package/Types/AI/AIChatTypes.d.ts +20 -1
- package/Types/AI/AIChatTypes.js +46 -1
- package/Types/AI/AIChatTypes.mjs +3 -0
- package/Types/AI/AIRunAttempt.d.mts +8 -0
- package/Types/AI/AIRunAttempt.d.ts +8 -0
- package/Types/AI/AIRunAttempt.js +60 -6
- package/Types/AI/AIRunAttempt.mjs +3 -0
- package/Types/AI/AISetupActions.d.mts +9 -0
- package/Types/AI/AISetupActions.d.ts +9 -0
- package/Types/AI/AISetupActions.js +56 -0
- package/Types/AI/AISetupActions.mjs +10 -0
- package/Types/AI/CodeTask.d.mts +14 -0
- package/Types/AI/CodeTask.d.ts +14 -0
- package/Types/AI/InvestigationNotStartedReason.d.mts +7 -0
- package/Types/AI/InvestigationNotStartedReason.d.ts +7 -0
- package/Types/AI/RecordAiTokenLimit.d.mts +24 -0
- package/Types/AI/RecordAiTokenLimit.d.ts +24 -0
- package/Types/AI/RecordAiTokenLimit.js +153 -0
- package/Types/AI/RecordAiTokenLimit.mjs +8 -0
- package/Types/Accounts/SignInMessages.d.mts +8 -0
- package/Types/Accounts/SignInMessages.d.ts +8 -0
- package/Types/Accounts/SignInMessages.js +28 -0
- package/Types/Accounts/SignInMessages.mjs +5 -0
- package/Types/Analytics/ActivationMilestone.d.mts +48 -0
- package/Types/Analytics/ActivationMilestone.d.ts +48 -0
- package/Types/Analytics/ActivationMilestone.js +247 -0
- package/Types/Analytics/ActivationMilestone.mjs +16 -0
- package/Types/Analytics/ChecklistProgress.d.mts +11 -0
- package/Types/Analytics/ChecklistProgress.d.ts +11 -0
- package/Types/Analytics/ChecklistProgress.js +32 -0
- package/Types/Analytics/ChecklistProgress.mjs +2 -0
- package/Types/Analytics/ProductEvent.d.mts +61 -0
- package/Types/Analytics/ProductEvent.d.ts +61 -0
- package/Types/Analytics/ProductEvent.js +430 -0
- package/Types/Analytics/ProductEvent.mjs +14 -0
- package/Types/AuditLog/AuditLogAction.d.mts +5 -1
- package/Types/AuditLog/AuditLogAction.d.ts +5 -1
- package/Types/AuditLog/AuditLogAction.js +11 -0
- package/Types/AuditLog/AuditLogActionLabel.d.mts +3 -0
- package/Types/AuditLog/AuditLogActionLabel.d.ts +3 -0
- package/Types/AuditLog/AuditLogActionLabel.js +30 -0
- package/Types/AuditLog/AuditLogActionLabel.mjs +3 -0
- package/Types/AuditLog/AuditLogCoverage.d.mts +2 -1
- package/Types/AuditLog/AuditLogCoverage.d.ts +2 -1
- package/Types/AuditLog/AuditLogCoverage.js +8 -1
- package/Types/AuditLog/AuditLogRetention.js +7 -4
- package/Types/AuditLog/AuditLogSessionEvent.d.mts +45 -0
- package/Types/AuditLog/AuditLogSessionEvent.d.ts +45 -0
- package/Types/AuditLog/AuditLogSessionEvent.js +210 -0
- package/Types/AuditLog/AuditLogSessionEvent.mjs +14 -0
- package/Types/AutoRemediation/RemediationRound.d.mts +4 -0
- package/Types/AutoRemediation/RemediationRound.d.ts +4 -0
- package/Types/AutoRemediation/RemediationRound.js +19 -2
- package/Types/AutoRemediation/RemediationRoundName.d.mts +1 -0
- package/Types/AutoRemediation/RemediationRoundName.d.ts +1 -0
- package/Types/AutoRemediation/RemediationRoundName.js +5 -0
- package/Types/AutoRemediation/RemediationRoundName.mjs +1 -0
- package/Types/Cloud/CloudAppTelemetrySignal.d.mts +9 -0
- package/Types/Cloud/CloudAppTelemetrySignal.d.ts +9 -0
- package/Types/Cloud/CloudAppTelemetrySignal.js +41 -0
- package/Types/Cloud/CloudAppTelemetrySignal.mjs +4 -0
- package/Types/Cloud/CloudPlatform.js +7 -1
- package/Types/CodeInSentence.d.mts +8 -0
- package/Types/CodeInSentence.d.ts +8 -0
- package/Types/CodeInSentence.js +875 -0
- package/Types/CodeInSentence.mjs +4 -0
- package/Types/CodeRepository/CodeFileSeen.d.mts +5 -0
- package/Types/CodeRepository/CodeFileSeen.d.ts +5 -0
- package/Types/CodeRepository/CodeFileSeen.js +142 -27
- package/Types/CustomDomain/CustomDomainDnsCheckResult.d.mts +13 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.d.ts +13 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.js +80 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.mjs +2 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.d.mts +55 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.d.ts +55 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.js +199 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.mjs +8 -0
- package/Types/CustomDomain/DnsRecordCheck.d.mts +34 -0
- package/Types/CustomDomain/DnsRecordCheck.d.ts +34 -0
- package/Types/CustomDomain/DnsRecordCheck.js +175 -0
- package/Types/CustomDomain/DnsRecordCheck.mjs +6 -0
- package/Types/CustomDomain/DnsRecordCheckWords.d.mts +35 -0
- package/Types/CustomDomain/DnsRecordCheckWords.d.ts +35 -0
- package/Types/CustomDomain/DnsRecordCheckWords.js +151 -0
- package/Types/CustomDomain/DnsRecordCheckWords.mjs +5 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.mts +1 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.ts +1 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.js +11 -1
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.mjs +1 -0
- package/Types/Dashboard/DashboardComponentType.d.mts +2 -0
- package/Types/Dashboard/DashboardComponentType.d.ts +2 -0
- package/Types/Dashboard/DashboardComponentType.js +7 -0
- package/Types/Dashboard/DashboardComponents/ComponentArgument.d.mts +3 -1
- package/Types/Dashboard/DashboardComponents/ComponentArgument.d.ts +3 -1
- package/Types/Dashboard/DashboardComponents/ComponentArgument.js +3 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.mts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.ts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.js +2 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.mjs +1 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.mts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.ts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.js +2 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.mjs +1 -0
- package/Types/Dashboard/PublicDashboardServedSettings.js +15 -7
- package/Types/DataObservability/DataBiRefreshAlert.d.mts +44 -0
- package/Types/DataObservability/DataBiRefreshAlert.d.ts +44 -0
- package/Types/DataObservability/DataBiRefreshAlert.js +206 -0
- package/Types/DataObservability/DataBiRefreshAlert.mjs +12 -0
- package/Types/DataObservability/DataCheckType.d.mts +4 -0
- package/Types/DataObservability/DataCheckType.d.ts +4 -0
- package/Types/DataObservability/DataCheckType.js +17 -0
- package/Types/DataObservability/DataCheckType.mjs +1 -0
- package/Types/DataObservability/DataLineageColumnTrail.d.mts +10 -0
- package/Types/DataObservability/DataLineageColumnTrail.d.ts +10 -0
- package/Types/DataObservability/DataLineageColumnTrail.js +152 -0
- package/Types/DataObservability/DataLineageColumnTrail.mjs +4 -0
- package/Types/DataObservability/DataLineageExpansion.d.mts +29 -0
- package/Types/DataObservability/DataLineageExpansion.d.ts +29 -0
- package/Types/DataObservability/DataLineageExpansion.js +166 -0
- package/Types/DataObservability/DataLineageExpansion.mjs +4 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.mts +8 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +8 -0
- package/Types/DataObservability/DataObservabilityApiTypes.js +14 -0
- package/Types/DataObservability/DataTableLineage.d.mts +29 -1
- package/Types/DataObservability/DataTableLineage.d.ts +29 -1
- package/Types/DataObservability/DataTableLineage.js +27 -7
- package/Types/DataObservability/DataTableLineage.mjs +3 -0
- package/Types/Date.d.mts +22 -0
- package/Types/Date.d.ts +22 -0
- package/Types/Date.js +72 -3
- package/Types/DateLanguage.d.mts +7 -0
- package/Types/DateLanguage.d.ts +7 -0
- package/Types/DateLanguage.js +44 -1
- package/Types/DateLanguage.mjs +1 -0
- package/Types/Docs/DocsLanguage.d.mts +2 -0
- package/Types/Docs/DocsLanguage.d.ts +2 -0
- package/Types/Docs/DocsLanguage.js +23 -1
- package/Types/Docs/DocsLanguage.mjs +2 -0
- package/Types/Docs/GlossaryTerm.d.mts +82 -0
- package/Types/Docs/GlossaryTerm.d.ts +82 -0
- package/Types/Docs/GlossaryTerm.js +126 -0
- package/Types/Docs/GlossaryTerm.mjs +5 -0
- package/Types/Email/AmazonSesAuthenticationType.d.mts +23 -0
- package/Types/Email/AmazonSesAuthenticationType.d.ts +23 -0
- package/Types/Email/AmazonSesAuthenticationType.js +40 -0
- package/Types/Email/AmazonSesAuthenticationType.mjs +4 -0
- package/Types/Email/EmailServer.d.mts +2 -0
- package/Types/Email/EmailServer.d.ts +2 -0
- package/Types/Email/EmailTemplateType.d.mts +1 -0
- package/Types/Email/EmailTemplateType.d.ts +1 -0
- package/Types/Email/EmailTemplateType.js +2 -0
- package/Types/Exception/BadDataExceptionWithDetails.d.mts +6 -0
- package/Types/Exception/BadDataExceptionWithDetails.d.ts +6 -0
- package/Types/Exception/BadDataExceptionWithDetails.js +20 -0
- package/Types/Exception/BadDataExceptionWithDetails.mjs +2 -0
- package/Types/Exception/ErrorMessageRule.d.mts +4 -0
- package/Types/Exception/ErrorMessageRule.d.ts +4 -0
- package/Types/Exception/ErrorMessageRule.js +143 -0
- package/Types/Exception/ErrorMessageRule.mjs +5 -0
- package/Types/Exception/UnexplainedError.d.mts +45 -0
- package/Types/Exception/UnexplainedError.d.ts +45 -0
- package/Types/Exception/UnexplainedError.js +179 -0
- package/Types/Exception/UnexplainedError.mjs +11 -0
- package/Types/HashedString.js +9 -2
- package/Types/Icon/IconProp.d.mts +4 -1
- package/Types/Icon/IconProp.d.ts +4 -1
- package/Types/Icon/IconProp.js +6 -0
- package/Types/InstallationHealth/InstallationHealth.d.mts +122 -0
- package/Types/InstallationHealth/InstallationHealth.d.ts +122 -0
- package/Types/InstallationHealth/InstallationHealth.js +513 -0
- package/Types/InstallationHealth/InstallationHealth.mjs +13 -0
- package/Types/LLM/LLMProviderExchange.d.mts +17 -0
- package/Types/LLM/LLMProviderExchange.d.ts +17 -0
- package/Types/LLM/LLMProviderExchange.js +70 -0
- package/Types/LLM/LLMProviderExchange.mjs +5 -0
- package/Types/Monitor/CriteriaFilter.d.mts +1 -0
- package/Types/Monitor/CriteriaFilter.d.ts +1 -0
- package/Types/Monitor/CriteriaFilter.js +3 -1
- package/Types/Monitor/CriteriaFilterTerms.js +1 -0
- package/Types/Monitor/CriteriaFilterValues.d.mts +18 -0
- package/Types/Monitor/CriteriaFilterValues.d.ts +18 -0
- package/Types/Monitor/CriteriaFilterValues.js +346 -0
- package/Types/Monitor/CriteriaFilterValues.mjs +2 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.d.mts +13 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.d.ts +13 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.js +108 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.mjs +3 -0
- package/Types/Monitor/EvaluationSentence.d.mts +1 -0
- package/Types/Monitor/EvaluationSentence.d.ts +1 -0
- package/Types/Monitor/EvaluationSentence.js +34 -3
- package/Types/Monitor/EvaluationSentence.mjs +1 -0
- package/Types/Monitor/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.mts +1 -0
- package/Types/Monitor/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.ts +1 -0
- package/Types/Monitor/MonitorCriteriaInstance.js +22 -2
- package/Types/Monitor/MonitorStep.js +28 -11
- package/Types/Monitor/MonitorStepMetricMonitor.js +6 -1
- package/Types/Monitor/MonitorStepRollingTime.d.mts +12 -0
- package/Types/Monitor/MonitorStepRollingTime.d.ts +12 -0
- package/Types/Monitor/MonitorStepRollingTime.js +117 -0
- package/Types/Monitor/MonitorStepRollingTime.mjs +2 -0
- package/Types/Monitor/RetiredEvaluationTemplates.d.mts +2 -0
- package/Types/Monitor/RetiredEvaluationTemplates.d.ts +2 -0
- package/Types/Monitor/RetiredEvaluationTemplates.js +95 -0
- package/Types/Monitor/RetiredEvaluationTemplates.mjs +3 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.mts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.ts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.js +20 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.mjs +2 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.mts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.ts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.js +29 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.mjs +2 -0
- package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.mts +7 -0
- package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.ts +7 -0
- package/Types/Monitor/SeriesContext/SeriesLabelDisplay.js +11 -0
- package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.mts +1 -0
- package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.ts +1 -0
- package/Types/Monitor/TelemetryAlertRule.js +7 -2
- package/Types/Monitor/WhoIsTold.d.mts +165 -0
- package/Types/Monitor/WhoIsTold.d.ts +165 -0
- package/Types/Monitor/WhoIsTold.js +582 -0
- package/Types/Monitor/WhoIsTold.mjs +17 -0
- package/Types/NotificationRule/NotificationRepeat.d.mts +10 -0
- package/Types/NotificationRule/NotificationRepeat.d.ts +10 -0
- package/Types/NotificationRule/NotificationRepeat.js +51 -0
- package/Types/NotificationRule/NotificationRepeat.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +70 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +70 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +276 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +12 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.mts +6 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.ts +6 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.js +34 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.d.mts +9 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.d.ts +9 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.js +44 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.mjs +5 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +240 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +240 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +574 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +52 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.mts +31 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.ts +31 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.js +105 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.mjs +14 -0
- package/Types/PhoneNumberDirection.d.mts +6 -0
- package/Types/PhoneNumberDirection.d.ts +6 -0
- package/Types/PhoneNumberDirection.js +123 -0
- package/Types/PhoneNumberDirection.mjs +6 -0
- package/Types/Probe/ProbeMonitorResponse.d.mts +1 -0
- package/Types/Probe/ProbeMonitorResponse.d.ts +1 -0
- package/Types/Product/ProductKey.d.mts +58 -0
- package/Types/Product/ProductKey.d.ts +58 -0
- package/Types/Product/ProductKey.js +175 -0
- package/Types/Product/ProductKey.mjs +8 -0
- package/Types/Product/ProductPins.d.mts +10 -0
- package/Types/Product/ProductPins.d.ts +10 -0
- package/Types/Product/ProductPins.js +65 -0
- package/Types/Product/ProductPins.mjs +6 -0
- package/Types/Product/ProductUsage.d.mts +21 -0
- package/Types/Product/ProductUsage.d.ts +21 -0
- package/Types/Product/ProductUsage.js +175 -0
- package/Types/Product/ProductUsage.mjs +10 -0
- package/Types/Product/ProjectProducts.d.mts +60 -0
- package/Types/Product/ProjectProducts.d.ts +60 -0
- package/Types/Product/ProjectProducts.js +336 -0
- package/Types/Product/ProjectProducts.mjs +19 -0
- package/Types/Product/ProjectProductsAnswer.d.mts +20 -0
- package/Types/Product/ProjectProductsAnswer.d.ts +20 -0
- package/Types/Product/ProjectProductsAnswer.js +139 -0
- package/Types/Product/ProjectProductsAnswer.mjs +7 -0
- package/Types/ProductFeedback/NewGitHubIssue.d.mts +12 -0
- package/Types/ProductFeedback/NewGitHubIssue.d.ts +12 -0
- package/Types/ProductFeedback/NewGitHubIssue.js +64 -0
- package/Types/ProductFeedback/NewGitHubIssue.mjs +5 -0
- package/Types/ProductFeedback/ProductFeedback.d.mts +140 -0
- package/Types/ProductFeedback/ProductFeedback.d.ts +140 -0
- package/Types/ProductFeedback/ProductFeedback.js +517 -0
- package/Types/ProductFeedback/ProductFeedback.mjs +49 -0
- package/Types/ReadingDirection.d.mts +4 -0
- package/Types/ReadingDirection.d.ts +4 -0
- package/Types/ReadingDirection.js +303 -26
- package/Types/ReadingDirection.mjs +4 -0
- package/Types/Recommendation/RecommendationType.d.mts +2 -1
- package/Types/Recommendation/RecommendationType.d.ts +2 -1
- package/Types/Recommendation/RecommendationType.js +6 -0
- package/Types/Reminder/ReminderInterval.d.mts +7 -0
- package/Types/Reminder/ReminderInterval.d.ts +7 -0
- package/Types/Reminder/ReminderInterval.js +110 -0
- package/Types/Reminder/ReminderInterval.mjs +8 -0
- package/Types/Retention/ResolvedRecordRetention.d.mts +19 -0
- package/Types/Retention/ResolvedRecordRetention.d.ts +19 -0
- package/Types/Retention/ResolvedRecordRetention.js +124 -0
- package/Types/Retention/ResolvedRecordRetention.mjs +14 -0
- package/Types/RollingTime/RollingTimeUtil.d.mts +8 -0
- package/Types/RollingTime/RollingTimeUtil.d.ts +8 -0
- package/Types/RollingTime/RollingTimeUtil.js +249 -71
- package/Types/Rum/ProductAnalyticsSavedViews.d.mts +56 -0
- package/Types/Rum/ProductAnalyticsSavedViews.d.ts +56 -0
- package/Types/Rum/ProductAnalyticsSavedViews.js +219 -0
- package/Types/Rum/ProductAnalyticsSavedViews.mjs +14 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +116 -108
- package/Types/ServerSending/ServerSendingStatus.d.mts +69 -0
- package/Types/ServerSending/ServerSendingStatus.d.ts +69 -0
- package/Types/ServerSending/ServerSendingStatus.js +281 -0
- package/Types/ServerSending/ServerSendingStatus.mjs +7 -0
- package/Types/ServerSending/ServerSendingWords.d.mts +9 -0
- package/Types/ServerSending/ServerSendingWords.d.ts +9 -0
- package/Types/ServerSending/ServerSendingWords.js +95 -0
- package/Types/ServerSending/ServerSendingWords.mjs +7 -0
- package/Types/ServerSetup/ServerSetupChecklist.d.mts +172 -0
- package/Types/ServerSetup/ServerSetupChecklist.d.ts +172 -0
- package/Types/ServerSetup/ServerSetupChecklist.js +735 -0
- package/Types/ServerSetup/ServerSetupChecklist.mjs +12 -0
- package/Types/ServerSetup/ServerTestSend.d.mts +35 -0
- package/Types/ServerSetup/ServerTestSend.d.ts +35 -0
- package/Types/ServerSetup/ServerTestSend.js +160 -0
- package/Types/ServerSetup/ServerTestSend.mjs +10 -0
- package/Types/SetupHealth/SetupHealth.d.mts +283 -0
- package/Types/SetupHealth/SetupHealth.d.ts +283 -0
- package/Types/SetupHealth/SetupHealth.js +1047 -0
- package/Types/SetupHealth/SetupHealth.mjs +46 -0
- package/Types/StatusPage/StatusPageSummary.d.mts +1 -0
- package/Types/StatusPage/StatusPageSummary.d.ts +1 -0
- package/Types/StatusPage/StatusPageSummary.js +3 -0
- package/Types/StatusPage/UptimeDailyAggregate.d.mts +25 -0
- package/Types/StatusPage/UptimeDailyAggregate.d.ts +25 -0
- package/Types/Telemetry/LlmCallKind.js +1 -1
- package/Types/Telemetry/ServiceType.d.mts +1 -0
- package/Types/Telemetry/ServiceType.d.ts +1 -0
- package/Types/Telemetry/ServiceType.js +6 -0
- package/Types/Telemetry/TelemetryIngestionBudget.d.mts +1 -0
- package/Types/Telemetry/TelemetryIngestionBudget.d.ts +1 -0
- package/Types/Telemetry/TelemetryIngestionBudget.js +135 -2
- package/Types/Telemetry/TelemetryIngestionBudget.mjs +1 -0
- package/Types/ToolImport/ToolImportCatalog.d.mts +1 -0
- package/Types/ToolImport/ToolImportCatalog.d.ts +1 -0
- package/Types/ToolImport/ToolImportCatalog.js +54 -1
- package/Types/ToolImport/ToolImportCatalog.mjs +1 -0
- package/Types/Translator.js +64 -31
- package/Types/UserNotification/UserNotificationEventType.d.mts +2 -1
- package/Types/UserNotification/UserNotificationEventType.d.ts +2 -1
- package/Types/UserNotification/UserNotificationEventType.js +7 -0
- package/Types/UserSession/SessionEndCause.d.mts +17 -0
- package/Types/UserSession/SessionEndCause.d.ts +17 -0
- package/Types/UserSession/SessionEndCause.js +79 -0
- package/Types/UserSession/SessionEndCause.mjs +6 -0
- package/Types/UserSession/SessionSignIn.d.mts +44 -0
- package/Types/UserSession/SessionSignIn.d.ts +44 -0
- package/Types/UserSession/SessionSignIn.js +174 -0
- package/Types/UserSession/SessionSignIn.mjs +17 -0
- package/Types/WelcomeChecklist/ProjectGoal.d.mts +16 -0
- package/Types/WelcomeChecklist/ProjectGoal.d.ts +16 -0
- package/Types/WelcomeChecklist/ProjectGoal.js +94 -0
- package/Types/WelcomeChecklist/ProjectGoal.mjs +8 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +76 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +76 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +344 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +19 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +24 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +24 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +136 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.mjs +9 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.d.mts +27 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.d.ts +27 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.js +183 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.mjs +13 -0
- package/Types/Workflow/Documentation/AIDocumentation.js +1 -1
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.mts +7 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.ts +7 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.js +40 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.mjs +3 -0
- package/Types/Workspace/WorkspaceChannelMembers.d.mts +1 -0
- package/Types/Workspace/WorkspaceChannelMembers.d.ts +1 -0
- package/Types/Workspace/WorkspaceChannelMembers.js +9 -2
- package/UI/Components/Dropdown/Dropdown.d.mts +1 -0
- package/UI/Components/Dropdown/Dropdown.d.ts +1 -0
- package/Utils/API.js +10 -0
- package/Utils/Crypto.js +10 -3
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.mts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.ts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.js +67 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.mjs +2 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.mts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.ts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.js +68 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.mjs +2 -0
- package/Utils/Dashboard/DashboardWidgetIds.js +6 -1
- package/Utils/Dashboard/DashboardWidgetSorts.js +25 -4
- package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +37 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +37 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.js +86 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.mjs +10 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.d.mts +31 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.d.ts +31 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.js +89 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.mjs +6 -0
- package/Utils/GuidedSetup/StatusPageRecords.d.mts +36 -0
- package/Utils/GuidedSetup/StatusPageRecords.d.ts +36 -0
- package/Utils/GuidedSetup/StatusPageRecords.js +105 -0
- package/Utils/GuidedSetup/StatusPageRecords.mjs +6 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.d.mts +41 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.d.ts +41 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.js +204 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.mjs +9 -0
- package/Utils/Markdown/InlineImageDataUri.d.mts +9 -0
- package/Utils/Markdown/InlineImageDataUri.d.ts +9 -0
- package/Utils/Markdown/InlineImageDataUri.js +17 -1
- package/Utils/Markdown/InlineImageDataUri.mjs +1 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +12 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +12 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +539 -0
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +4 -0
- package/Utils/Metrics/MetricQueryCloudAggregation.js +2 -4
- package/Utils/Monitor/ExternalStatusPageReading.d.mts +9 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.ts +9 -0
- package/Utils/Monitor/ExternalStatusPageReading.js +77 -8
- package/Utils/Monitor/ExternalStatusPageReading.mjs +3 -0
- package/Utils/Monitor/ExternalStatusPageScope.js +17 -1
- package/Utils/Monitor/MonitorDestinationUtil.js +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +10 -1
- package/Utils/Monitor/MonitorRootCauseWording.js +28 -24
- package/Utils/Monitor/MonitorStatusHistoryUtil.d.mts +1 -0
- package/Utils/Monitor/MonitorStatusHistoryUtil.d.ts +1 -0
- package/Utils/Monitor/MonitorStatusHistoryUtil.js +1 -0
- package/Utils/Monitor/MonitorStepMetricQueries.js +2 -1
- package/Utils/Monitor/MonitorStepsValuesUtil.d.mts +13 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.d.ts +13 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.js +80 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.mjs +2 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.d.mts +2 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.d.ts +2 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.js +13 -17
- package/Utils/Monitor/MonitorSummarySnapshotUtil.js +5 -3
- package/Utils/Monitor/MonitorUptimeSummaryUtil.d.mts +1 -1
- package/Utils/Monitor/MonitorUptimeSummaryUtil.d.ts +1 -1
- package/Utils/Monitor/MonitorUptimeSummaryUtil.js +1 -0
- package/Utils/Monitor/MonitoringOff.d.mts +20 -0
- package/Utils/Monitor/MonitoringOff.d.ts +20 -0
- package/Utils/Monitor/MonitoringOff.js +81 -0
- package/Utils/Monitor/MonitoringOff.mjs +4 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.js +9 -7
- package/Utils/Monitor/StateChangeLogScreenshots.d.mts +8 -0
- package/Utils/Monitor/StateChangeLogScreenshots.d.ts +8 -0
- package/Utils/Monitor/StateChangeLogScreenshots.js +116 -0
- package/Utils/Monitor/StateChangeLogScreenshots.mjs +3 -0
- package/Utils/NetworkDevice/Naming/NamingLookup.d.mts +1 -1
- package/Utils/NetworkDevice/Naming/NamingLookup.d.ts +1 -1
- package/Utils/NetworkDevice/Naming/NamingLookup.js +14 -4
- package/Utils/NetworkDevice/Naming/NamingLookup.mjs +1 -0
- package/Utils/Slo/SloErrorBudgetPolicy.d.mts +2 -1
- package/Utils/Slo/SloErrorBudgetPolicy.d.ts +2 -1
- package/Utils/Slo/SloErrorBudgetPolicy.js +8 -2
- package/Utils/Slo/SloListWidgetFormat.d.mts +7 -1
- package/Utils/Slo/SloListWidgetFormat.d.ts +7 -1
- package/Utils/Slo/SloListWidgetFormat.js +20 -26
- package/Utils/Slo/SloOverviewText.d.mts +6 -1
- package/Utils/Slo/SloOverviewText.d.ts +6 -1
- package/Utils/Slo/SloOverviewText.js +3 -3
- package/Utils/Slo/SloProjection.d.mts +18 -0
- package/Utils/Slo/SloProjection.d.ts +18 -0
- package/Utils/Slo/SloProjection.js +53 -12
- package/Utils/Slo/SloProjection.mjs +2 -0
- package/Utils/Slo/SloUtil.d.mts +18 -9
- package/Utils/Slo/SloUtil.d.ts +18 -9
- package/Utils/Slo/SloUtil.js +47 -10
- package/Utils/Slo/SloWidgetFormat.d.mts +69 -11
- package/Utils/Slo/SloWidgetFormat.d.ts +69 -11
- package/Utils/Slo/SloWidgetFormat.js +198 -50
- package/Utils/Slo/SloWidgetFormat.mjs +7 -0
- package/Utils/StatusPage/FrozenMonitorResources.d.mts +41 -0
- package/Utils/StatusPage/FrozenMonitorResources.d.ts +41 -0
- package/Utils/StatusPage/FrozenMonitorResources.js +155 -0
- package/Utils/StatusPage/FrozenMonitorResources.mjs +4 -0
- package/Utils/StatusPage/GroupNestingLayout.d.mts +2 -0
- package/Utils/StatusPage/GroupNestingLayout.d.ts +2 -0
- package/Utils/StatusPage/GroupNestingLayout.js +12 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.mts +48 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.ts +48 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.js +181 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.mjs +2 -0
- package/Utils/StatusPage/ResourceExplorer.d.mts +1 -10
- package/Utils/StatusPage/ResourceExplorer.d.ts +1 -10
- package/Utils/StatusPage/ResourceExplorer.js +11 -29
- package/Utils/StatusPage/ResourceUptime.d.mts +6 -1
- package/Utils/StatusPage/ResourceUptime.d.ts +6 -1
- package/Utils/StatusPage/ResourceUptime.js +31 -6
- package/Utils/StatusPage/StatusPageSummaryBuilder.d.mts +1 -0
- package/Utils/StatusPage/StatusPageSummaryBuilder.d.ts +1 -0
- package/Utils/StatusPage/StatusPageSummaryBuilder.js +12 -1
- package/Utils/StatusPage/StatusPageUptimeTimezone.d.mts +41 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.d.ts +41 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.js +114 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.mjs +2 -0
- package/Utils/StatusPage/UptimeDailyAggregateUtil.d.mts +3 -1
- package/Utils/StatusPage/UptimeDailyAggregateUtil.d.ts +3 -1
- package/Utils/StatusPage/UptimeDailyAggregateUtil.js +69 -50
- package/Utils/Telemetry/CloudInstanceIdentity.js +12 -7
- package/Utils/Uptime/DayUptimeGraphUtil.d.mts +8 -0
- package/Utils/Uptime/DayUptimeGraphUtil.d.ts +8 -0
- package/Utils/Uptime/DayUptimeGraphUtil.js +41 -6
- package/Utils/Uptime/UptimeMaintenanceUtil.d.mts +3 -0
- package/Utils/Uptime/UptimeMaintenanceUtil.d.ts +3 -0
- package/Utils/Uptime/UptimeMaintenanceUtil.js +49 -0
- package/Utils/Uptime/UptimeUtil.d.mts +38 -1
- package/Utils/Uptime/UptimeUtil.d.ts +38 -1
- package/Utils/Uptime/UptimeUtil.js +270 -75
- package/Utils/Uptime/WorstStatusTimeline.d.mts +31 -0
- package/Utils/Uptime/WorstStatusTimeline.d.ts +31 -0
- package/Utils/Uptime/WorstStatusTimeline.js +190 -0
- package/Utils/Uptime/WorstStatusTimeline.mjs +2 -0
- package/Utils/Workspace/WorkspaceSummarySetup.d.mts +25 -0
- package/Utils/Workspace/WorkspaceSummarySetup.d.ts +25 -0
- package/Utils/Workspace/WorkspaceSummarySetup.js +215 -0
- package/Utils/Workspace/WorkspaceSummarySetup.mjs +11 -0
- package/package.json +1 -1
- package/Utils/StatusPage/ArchivedMonitorResources.d.mts +0 -10
- package/Utils/StatusPage/ArchivedMonitorResources.d.ts +0 -10
- package/Utils/StatusPage/ArchivedMonitorResources.js +0 -33
- package/Utils/StatusPage/ArchivedMonitorResources.mjs +0 -2
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import ActivationMilestone from "../Analytics/ActivationMilestone";
|
|
2
|
+
import { PlanType } from "../Billing/SubscriptionPlan";
|
|
3
|
+
import ProjectGoal from "./ProjectGoal";
|
|
4
|
+
export declare enum WelcomeStep {
|
|
5
|
+
ServerEmail = "server_email",
|
|
6
|
+
Import = "import",
|
|
7
|
+
Monitor = "monitor",
|
|
8
|
+
Infrastructure = "infrastructure",
|
|
9
|
+
Telemetry = "telemetry",
|
|
10
|
+
OnCall = "on_call",
|
|
11
|
+
StatusPage = "status_page",
|
|
12
|
+
Team = "team"
|
|
13
|
+
}
|
|
14
|
+
export declare const WELCOME_STEP_ORDER: ReadonlyArray<WelcomeStep>;
|
|
15
|
+
export declare const isWelcomeStep: (value: unknown) => value is WelcomeStep;
|
|
16
|
+
export declare const STEPS_OF_GOAL: Readonly<Record<ProjectGoal, ReadonlyArray<WelcomeStep>>>;
|
|
17
|
+
export declare const DEFAULT_WELCOME_STEPS: ReadonlyArray<WelcomeStep>;
|
|
18
|
+
export declare const getStepsForGoals: (goals: ReadonlyArray<ProjectGoal> | null) => Array<WelcomeStep>;
|
|
19
|
+
export declare const STEP_DONE_BY_MILESTONES: Readonly<Record<WelcomeStep, ReadonlyArray<ActivationMilestone>>>;
|
|
20
|
+
export interface WelcomeOutcomeFacts {
|
|
21
|
+
reached: ReadonlyArray<ActivationMilestone> | Set<ActivationMilestone>;
|
|
22
|
+
hasRuleThatPagesSomeone: boolean;
|
|
23
|
+
hasFinishedImport: boolean;
|
|
24
|
+
serverCanSendEmail: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare const isWelcomeStepDoneByMilestones: (step: WelcomeStep, reached: ReadonlyArray<ActivationMilestone> | Set<ActivationMilestone>) => boolean;
|
|
27
|
+
export declare const isWelcomeStepDone: (step: WelcomeStep, facts: WelcomeOutcomeFacts) => boolean;
|
|
28
|
+
export declare const needsOnCallRuleCheck: (data: {
|
|
29
|
+
steps: ReadonlyArray<WelcomeStep>;
|
|
30
|
+
reached: ReadonlyArray<ActivationMilestone> | Set<ActivationMilestone>;
|
|
31
|
+
}) => boolean;
|
|
32
|
+
export interface WelcomePlanFacts {
|
|
33
|
+
isFreePlan: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare const getWelcomeStepPlanNeed: (step: WelcomeStep, plan: WelcomePlanFacts) => PlanType | null;
|
|
36
|
+
export interface WelcomeChecklistStepState {
|
|
37
|
+
step: WelcomeStep;
|
|
38
|
+
isDone: boolean;
|
|
39
|
+
needsPlan: PlanType | null;
|
|
40
|
+
isNext: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface WelcomeChecklist {
|
|
43
|
+
steps: Array<WelcomeChecklistStepState>;
|
|
44
|
+
doneCount: number;
|
|
45
|
+
totalCount: number;
|
|
46
|
+
isProjectFinished: boolean;
|
|
47
|
+
}
|
|
48
|
+
export declare const buildWelcomeChecklist: (data: {
|
|
49
|
+
goals: ReadonlyArray<ProjectGoal> | null;
|
|
50
|
+
facts: WelcomeOutcomeFacts;
|
|
51
|
+
plan: WelcomePlanFacts;
|
|
52
|
+
readerIsServerAdmin: boolean;
|
|
53
|
+
}) => WelcomeChecklist;
|
|
54
|
+
export declare const PROJECT_IN_USE_MILESTONES: ReadonlyArray<ActivationMilestone>;
|
|
55
|
+
export declare const isProjectInUse: (reached: ReadonlyArray<ActivationMilestone> | Set<ActivationMilestone>) => boolean;
|
|
56
|
+
export declare const shouldAskForGoals: (data: {
|
|
57
|
+
goals: ReadonlyArray<ProjectGoal> | null;
|
|
58
|
+
canChooseGoals: boolean;
|
|
59
|
+
isFinished: boolean;
|
|
60
|
+
reached: ReadonlyArray<ActivationMilestone> | Set<ActivationMilestone>;
|
|
61
|
+
}) => boolean;
|
|
62
|
+
export declare enum WelcomeAudience {
|
|
63
|
+
SetUp = "set_up",
|
|
64
|
+
InvitedMember = "invited_member"
|
|
65
|
+
}
|
|
66
|
+
export declare const getWelcomeAudience: (data: {
|
|
67
|
+
isMasterAdmin: boolean;
|
|
68
|
+
isProjectOwnerOrAdmin: boolean;
|
|
69
|
+
}) => WelcomeAudience;
|
|
70
|
+
export interface LegacyChecklistCounts {
|
|
71
|
+
monitors: number;
|
|
72
|
+
statusPages: number;
|
|
73
|
+
teamMembers: number;
|
|
74
|
+
onCallPolicies: number;
|
|
75
|
+
}
|
|
76
|
+
export declare const isLegacyChecklistComplete: (counts: LegacyChecklistCounts) => boolean;
|
|
@@ -0,0 +1,344 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.isLegacyChecklistComplete = exports.getWelcomeAudience = exports.WelcomeAudience = exports.shouldAskForGoals = exports.isProjectInUse = exports.PROJECT_IN_USE_MILESTONES = exports.buildWelcomeChecklist = exports.getWelcomeStepPlanNeed = exports.needsOnCallRuleCheck = exports.isWelcomeStepDone = exports.isWelcomeStepDoneByMilestones = exports.STEP_DONE_BY_MILESTONES = exports.getStepsForGoals = exports.DEFAULT_WELCOME_STEPS = exports.STEPS_OF_GOAL = exports.isWelcomeStep = exports.WELCOME_STEP_ORDER = exports.WelcomeStep = void 0;
|
|
40
|
+
const ActivationMilestone_1 = __importDefault(require("../Analytics/ActivationMilestone"));
|
|
41
|
+
const SubscriptionPlan_1 = require("../Billing/SubscriptionPlan");
|
|
42
|
+
const ProjectGoal_1 = __importStar(require("./ProjectGoal"));
|
|
43
|
+
/*
|
|
44
|
+
* THE WELCOME CHECKLIST ON HOME (issue #6803): which steps a project is
|
|
45
|
+
* shown, in which order, and when each is done.
|
|
46
|
+
*
|
|
47
|
+
* - The steps come from the goals the project chose (ProjectGoal): each
|
|
48
|
+
* goal brings its own (STEPS_OF_GOAL), and a project that skipped the
|
|
49
|
+
* question, or never answered it, gets DEFAULT_WELCOME_STEPS. They are
|
|
50
|
+
* always shown in WELCOME_STEP_ORDER, the order of "How OneUptime
|
|
51
|
+
* works": monitors, then who is told, then status pages.
|
|
52
|
+
* - A step is done when the thing works, not when a record exists
|
|
53
|
+
* (isWelcomeStepDone): a monitor that has reported, a status page that
|
|
54
|
+
* shows a monitor, a second person who accepted. Most of these are the
|
|
55
|
+
* project's activation milestones (#6830, STEP_DONE_BY_MILESTONES),
|
|
56
|
+
* which the server keeps the moment they first become true - and sends
|
|
57
|
+
* to product analytics then, as activation/<milestone>.
|
|
58
|
+
* - A step the project's plan cannot finish says which plan it needs
|
|
59
|
+
* (getWelcomeStepPlanNeed) and is not counted.
|
|
60
|
+
* - The next step is the first one left to do that the plan allows.
|
|
61
|
+
*
|
|
62
|
+
* The server builds the checklist (Server/Services/WelcomeChecklistService)
|
|
63
|
+
* and sends it to Home in one answer (WelcomeChecklistAnswer.ts); the
|
|
64
|
+
* Dashboard draws it with each step's words and pages
|
|
65
|
+
* (Components/Home/WelcomeChecklist/WelcomeChecklistCatalog.ts).
|
|
66
|
+
*
|
|
67
|
+
* Pure: the server, the Dashboard and their tests read it.
|
|
68
|
+
*/
|
|
69
|
+
var WelcomeStep;
|
|
70
|
+
(function (WelcomeStep) {
|
|
71
|
+
/*
|
|
72
|
+
* A master admin of a self-hosted server that cannot send email yet: set
|
|
73
|
+
* it up in the Admin Dashboard. Not one of the project's own steps.
|
|
74
|
+
*/
|
|
75
|
+
WelcomeStep["ServerEmail"] = "server_email";
|
|
76
|
+
// Bring monitors, on-call and status pages over from another tool.
|
|
77
|
+
WelcomeStep["Import"] = "import";
|
|
78
|
+
// A monitor that has reported its first result.
|
|
79
|
+
WelcomeStep["Monitor"] = "monitor";
|
|
80
|
+
// A server, Kubernetes cluster or cloud that sends its first metrics.
|
|
81
|
+
WelcomeStep["Infrastructure"] = "infrastructure";
|
|
82
|
+
// The project's first logs, metrics, traces, exceptions or profiles.
|
|
83
|
+
WelcomeStep["Telemetry"] = "telemetry";
|
|
84
|
+
// Somebody is told when something breaks.
|
|
85
|
+
WelcomeStep["OnCall"] = "on_call";
|
|
86
|
+
// A status page that shows a monitor.
|
|
87
|
+
WelcomeStep["StatusPage"] = "status_page";
|
|
88
|
+
// A second person in the project.
|
|
89
|
+
WelcomeStep["Team"] = "team";
|
|
90
|
+
})(WelcomeStep || (exports.WelcomeStep = WelcomeStep = {}));
|
|
91
|
+
/*
|
|
92
|
+
* Every step, in the order the checklist shows them: the order a problem
|
|
93
|
+
* flows through OneUptime ("How OneUptime works"), with what feeds it first
|
|
94
|
+
* and the team last. The server's email comes before everything: without
|
|
95
|
+
* it nobody is told by email, and nobody gets an invitation.
|
|
96
|
+
*/
|
|
97
|
+
exports.WELCOME_STEP_ORDER = [
|
|
98
|
+
WelcomeStep.ServerEmail,
|
|
99
|
+
WelcomeStep.Import,
|
|
100
|
+
WelcomeStep.Monitor,
|
|
101
|
+
WelcomeStep.Infrastructure,
|
|
102
|
+
WelcomeStep.Telemetry,
|
|
103
|
+
WelcomeStep.OnCall,
|
|
104
|
+
WelcomeStep.StatusPage,
|
|
105
|
+
WelcomeStep.Team,
|
|
106
|
+
];
|
|
107
|
+
const isWelcomeStep = (value) => {
|
|
108
|
+
return (typeof value === "string" &&
|
|
109
|
+
exports.WELCOME_STEP_ORDER.includes(value));
|
|
110
|
+
};
|
|
111
|
+
exports.isWelcomeStep = isWelcomeStep;
|
|
112
|
+
// The steps each goal brings.
|
|
113
|
+
exports.STEPS_OF_GOAL = {
|
|
114
|
+
[ProjectGoal_1.default.Uptime]: [WelcomeStep.Monitor, WelcomeStep.OnCall],
|
|
115
|
+
[ProjectGoal_1.default.OnCall]: [
|
|
116
|
+
WelcomeStep.Monitor,
|
|
117
|
+
WelcomeStep.OnCall,
|
|
118
|
+
WelcomeStep.Team,
|
|
119
|
+
],
|
|
120
|
+
[ProjectGoal_1.default.StatusPage]: [WelcomeStep.Monitor, WelcomeStep.StatusPage],
|
|
121
|
+
[ProjectGoal_1.default.Telemetry]: [WelcomeStep.Telemetry],
|
|
122
|
+
[ProjectGoal_1.default.Infrastructure]: [WelcomeStep.Infrastructure],
|
|
123
|
+
[ProjectGoal_1.default.Import]: [WelcomeStep.Import, WelcomeStep.OnCall],
|
|
124
|
+
// The quickest thing that shows OneUptime working: a website monitor.
|
|
125
|
+
[ProjectGoal_1.default.Explore]: [WelcomeStep.Monitor],
|
|
126
|
+
};
|
|
127
|
+
/*
|
|
128
|
+
* The steps of a project that skipped the question or never answered it:
|
|
129
|
+
* the four the checklist always had, in the checklist's order.
|
|
130
|
+
*/
|
|
131
|
+
exports.DEFAULT_WELCOME_STEPS = [
|
|
132
|
+
WelcomeStep.Monitor,
|
|
133
|
+
WelcomeStep.OnCall,
|
|
134
|
+
WelcomeStep.StatusPage,
|
|
135
|
+
WelcomeStep.Team,
|
|
136
|
+
];
|
|
137
|
+
// The project's own steps for its goals, each once, in the checklist's order.
|
|
138
|
+
const getStepsForGoals = (goals) => {
|
|
139
|
+
const known = (0, ProjectGoal_1.parseProjectGoals)(goals ? [...goals] : null) || [];
|
|
140
|
+
const wanted = new Set();
|
|
141
|
+
if (known.length === 0) {
|
|
142
|
+
for (const step of exports.DEFAULT_WELCOME_STEPS) {
|
|
143
|
+
wanted.add(step);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
for (const goal of known) {
|
|
147
|
+
for (const step of exports.STEPS_OF_GOAL[goal]) {
|
|
148
|
+
wanted.add(step);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
return exports.WELCOME_STEP_ORDER.filter((step) => {
|
|
152
|
+
return wanted.has(step);
|
|
153
|
+
});
|
|
154
|
+
};
|
|
155
|
+
exports.getStepsForGoals = getStepsForGoals;
|
|
156
|
+
/*
|
|
157
|
+
* The milestones, any one of which finishes a step. The test page (#6811)
|
|
158
|
+
* and a real page that reached someone both prove somebody is told; any
|
|
159
|
+
* telemetry is a first result for "See my logs, metrics and traces"; a
|
|
160
|
+
* server or cluster's agents send metrics first.
|
|
161
|
+
*/
|
|
162
|
+
exports.STEP_DONE_BY_MILESTONES = {
|
|
163
|
+
[WelcomeStep.ServerEmail]: [],
|
|
164
|
+
[WelcomeStep.Import]: [],
|
|
165
|
+
[WelcomeStep.Monitor]: [ActivationMilestone_1.default.FirstCheckResultReceived],
|
|
166
|
+
[WelcomeStep.Infrastructure]: [ActivationMilestone_1.default.FirstMetricsReceived],
|
|
167
|
+
[WelcomeStep.Telemetry]: [
|
|
168
|
+
ActivationMilestone_1.default.FirstLogsReceived,
|
|
169
|
+
ActivationMilestone_1.default.FirstTracesReceived,
|
|
170
|
+
ActivationMilestone_1.default.FirstMetricsReceived,
|
|
171
|
+
ActivationMilestone_1.default.FirstExceptionsReceived,
|
|
172
|
+
ActivationMilestone_1.default.FirstProfilesReceived,
|
|
173
|
+
],
|
|
174
|
+
[WelcomeStep.OnCall]: [
|
|
175
|
+
ActivationMilestone_1.default.FirstTestPageAcknowledged,
|
|
176
|
+
ActivationMilestone_1.default.FirstNotificationDelivered,
|
|
177
|
+
],
|
|
178
|
+
[WelcomeStep.StatusPage]: [ActivationMilestone_1.default.FirstStatusPageMonitorAdded],
|
|
179
|
+
[WelcomeStep.Team]: [ActivationMilestone_1.default.SecondMemberJoined],
|
|
180
|
+
};
|
|
181
|
+
const toSet = (reached) => {
|
|
182
|
+
return reached instanceof Set ? reached : new Set(reached);
|
|
183
|
+
};
|
|
184
|
+
// Whether one of the step's milestones is reached.
|
|
185
|
+
const isWelcomeStepDoneByMilestones = (step, reached) => {
|
|
186
|
+
const reachedSet = toSet(reached);
|
|
187
|
+
return exports.STEP_DONE_BY_MILESTONES[step].some((milestone) => {
|
|
188
|
+
return reachedSet.has(milestone);
|
|
189
|
+
});
|
|
190
|
+
};
|
|
191
|
+
exports.isWelcomeStepDoneByMilestones = isWelcomeStepDoneByMilestones;
|
|
192
|
+
/*
|
|
193
|
+
* THE OUTCOME RULES: whether a step is done. One place, so each rule is
|
|
194
|
+
* tested on its own (WelcomeChecklist.test.ts breaks each once).
|
|
195
|
+
*/
|
|
196
|
+
const isWelcomeStepDone = (step, facts) => {
|
|
197
|
+
switch (step) {
|
|
198
|
+
case WelcomeStep.ServerEmail:
|
|
199
|
+
return facts.serverCanSendEmail;
|
|
200
|
+
case WelcomeStep.Import:
|
|
201
|
+
return facts.hasFinishedImport;
|
|
202
|
+
case WelcomeStep.OnCall:
|
|
203
|
+
return ((0, exports.isWelcomeStepDoneByMilestones)(step, facts.reached) ||
|
|
204
|
+
facts.hasRuleThatPagesSomeone);
|
|
205
|
+
default:
|
|
206
|
+
return (0, exports.isWelcomeStepDoneByMilestones)(step, facts.reached);
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
exports.isWelcomeStepDone = isWelcomeStepDone;
|
|
210
|
+
/*
|
|
211
|
+
* Whether the server needs to look at the project's on-call rules: the
|
|
212
|
+
* steps include "who is told" and no milestone has finished it yet. The
|
|
213
|
+
* check reads rules and responders, so it is skipped whenever it cannot
|
|
214
|
+
* change the answer.
|
|
215
|
+
*/
|
|
216
|
+
const needsOnCallRuleCheck = (data) => {
|
|
217
|
+
return (data.steps.includes(WelcomeStep.OnCall) &&
|
|
218
|
+
!(0, exports.isWelcomeStepDoneByMilestones)(WelcomeStep.OnCall, data.reached));
|
|
219
|
+
};
|
|
220
|
+
exports.needsOnCallRuleCheck = needsOnCallRuleCheck;
|
|
221
|
+
/*
|
|
222
|
+
* The plan a step needs, when the project's plan cannot finish it, or null.
|
|
223
|
+
* Only inviting the team is held back today: the Free plan has one person,
|
|
224
|
+
* and the invitation would be refused on submit.
|
|
225
|
+
*/
|
|
226
|
+
const getWelcomeStepPlanNeed = (step, plan) => {
|
|
227
|
+
if (step === WelcomeStep.Team && plan.isFreePlan) {
|
|
228
|
+
return SubscriptionPlan_1.PlanType.Growth;
|
|
229
|
+
}
|
|
230
|
+
return null;
|
|
231
|
+
};
|
|
232
|
+
exports.getWelcomeStepPlanNeed = getWelcomeStepPlanNeed;
|
|
233
|
+
const buildWelcomeChecklist = (data) => {
|
|
234
|
+
const keys = (0, exports.getStepsForGoals)(data.goals);
|
|
235
|
+
// Shown to the one person who can fix it, and only while it is broken.
|
|
236
|
+
if (data.readerIsServerAdmin && !data.facts.serverCanSendEmail) {
|
|
237
|
+
keys.unshift(WelcomeStep.ServerEmail);
|
|
238
|
+
}
|
|
239
|
+
let hasNext = false;
|
|
240
|
+
const steps = keys.map((step) => {
|
|
241
|
+
const isDone = (0, exports.isWelcomeStepDone)(step, data.facts);
|
|
242
|
+
const needsPlan = isDone
|
|
243
|
+
? null
|
|
244
|
+
: (0, exports.getWelcomeStepPlanNeed)(step, data.plan);
|
|
245
|
+
const isNext = !hasNext && !isDone && needsPlan === null;
|
|
246
|
+
if (isNext) {
|
|
247
|
+
hasNext = true;
|
|
248
|
+
}
|
|
249
|
+
return {
|
|
250
|
+
step: step,
|
|
251
|
+
isDone: isDone,
|
|
252
|
+
needsPlan: needsPlan,
|
|
253
|
+
isNext: isNext,
|
|
254
|
+
};
|
|
255
|
+
});
|
|
256
|
+
const counted = steps.filter((state) => {
|
|
257
|
+
return state.needsPlan === null;
|
|
258
|
+
});
|
|
259
|
+
const projectSteps = counted.filter((state) => {
|
|
260
|
+
return state.step !== WelcomeStep.ServerEmail;
|
|
261
|
+
});
|
|
262
|
+
return {
|
|
263
|
+
steps: steps,
|
|
264
|
+
doneCount: counted.filter((state) => {
|
|
265
|
+
return state.isDone;
|
|
266
|
+
}).length,
|
|
267
|
+
totalCount: counted.length,
|
|
268
|
+
isProjectFinished: projectSteps.length > 0 &&
|
|
269
|
+
projectSteps.every((state) => {
|
|
270
|
+
return state.isDone;
|
|
271
|
+
}),
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
exports.buildWelcomeChecklist = buildWelcomeChecklist;
|
|
275
|
+
/*
|
|
276
|
+
* The milestones that say a project is already in use: it has monitors,
|
|
277
|
+
* telemetry, a status page with a monitor, or on-call that ran. A project
|
|
278
|
+
* like that is not asked what it came to do - its people already know -
|
|
279
|
+
* and keeps the four steps it always had. A second member alone does not
|
|
280
|
+
* count: inviting a co-founder is often the first thing a new project does.
|
|
281
|
+
*/
|
|
282
|
+
exports.PROJECT_IN_USE_MILESTONES = [
|
|
283
|
+
ActivationMilestone_1.default.FirstMonitorCreated,
|
|
284
|
+
ActivationMilestone_1.default.FirstCheckResultReceived,
|
|
285
|
+
ActivationMilestone_1.default.FirstNotificationDelivered,
|
|
286
|
+
ActivationMilestone_1.default.FirstIncidentOrAlertAcknowledged,
|
|
287
|
+
ActivationMilestone_1.default.FirstStatusPageMonitorAdded,
|
|
288
|
+
ActivationMilestone_1.default.FirstStatusPageSubscriberAdded,
|
|
289
|
+
ActivationMilestone_1.default.FirstOnCallPolicyExecuted,
|
|
290
|
+
ActivationMilestone_1.default.FirstLogsReceived,
|
|
291
|
+
ActivationMilestone_1.default.FirstTracesReceived,
|
|
292
|
+
ActivationMilestone_1.default.FirstMetricsReceived,
|
|
293
|
+
ActivationMilestone_1.default.FirstExceptionsReceived,
|
|
294
|
+
ActivationMilestone_1.default.FirstProfilesReceived,
|
|
295
|
+
];
|
|
296
|
+
const isProjectInUse = (reached) => {
|
|
297
|
+
const reachedSet = toSet(reached);
|
|
298
|
+
return exports.PROJECT_IN_USE_MILESTONES.some((milestone) => {
|
|
299
|
+
return reachedSet.has(milestone);
|
|
300
|
+
});
|
|
301
|
+
};
|
|
302
|
+
exports.isProjectInUse = isProjectInUse;
|
|
303
|
+
/*
|
|
304
|
+
* Whether Home asks "What do you want to do first?": once, of someone who
|
|
305
|
+
* may answer for the project, while it has no answer, is not finished, and
|
|
306
|
+
* is not in use yet.
|
|
307
|
+
*/
|
|
308
|
+
const shouldAskForGoals = (data) => {
|
|
309
|
+
return (data.canChooseGoals &&
|
|
310
|
+
data.goals === null &&
|
|
311
|
+
!data.isFinished &&
|
|
312
|
+
!(0, exports.isProjectInUse)(data.reached));
|
|
313
|
+
};
|
|
314
|
+
exports.shouldAskForGoals = shouldAskForGoals;
|
|
315
|
+
/*
|
|
316
|
+
* Who the Welcome card is for.
|
|
317
|
+
*
|
|
318
|
+
* SetUp the people who set the project up: its Owners and
|
|
319
|
+
* Admins (and a master admin). They share one checklist.
|
|
320
|
+
* InvitedMember everyone else: they did not come to set the project up,
|
|
321
|
+
* and the owner's checklist is not theirs. Home draws
|
|
322
|
+
* nothing for them today; their own first hour - can
|
|
323
|
+
* OneUptime reach me, when am I on call - is #6807, which
|
|
324
|
+
* plugs in where Home reads this.
|
|
325
|
+
*/
|
|
326
|
+
var WelcomeAudience;
|
|
327
|
+
(function (WelcomeAudience) {
|
|
328
|
+
WelcomeAudience["SetUp"] = "set_up";
|
|
329
|
+
WelcomeAudience["InvitedMember"] = "invited_member";
|
|
330
|
+
})(WelcomeAudience || (exports.WelcomeAudience = WelcomeAudience = {}));
|
|
331
|
+
const getWelcomeAudience = (data) => {
|
|
332
|
+
return data.isMasterAdmin || data.isProjectOwnerOrAdmin
|
|
333
|
+
? WelcomeAudience.SetUp
|
|
334
|
+
: WelcomeAudience.InvitedMember;
|
|
335
|
+
};
|
|
336
|
+
exports.getWelcomeAudience = getWelcomeAudience;
|
|
337
|
+
const isLegacyChecklistComplete = (counts) => {
|
|
338
|
+
return (counts.monitors > 0 &&
|
|
339
|
+
counts.statusPages > 0 &&
|
|
340
|
+
// Every project starts with its creator as its first member.
|
|
341
|
+
counts.teamMembers > 1 &&
|
|
342
|
+
counts.onCallPolicies > 0);
|
|
343
|
+
};
|
|
344
|
+
exports.isLegacyChecklistComplete = isLegacyChecklistComplete;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import commonJsModule from "./WelcomeChecklist.js";
|
|
2
|
+
export const DEFAULT_WELCOME_STEPS = commonJsModule.DEFAULT_WELCOME_STEPS;
|
|
3
|
+
export const PROJECT_IN_USE_MILESTONES = commonJsModule.PROJECT_IN_USE_MILESTONES;
|
|
4
|
+
export const STEPS_OF_GOAL = commonJsModule.STEPS_OF_GOAL;
|
|
5
|
+
export const STEP_DONE_BY_MILESTONES = commonJsModule.STEP_DONE_BY_MILESTONES;
|
|
6
|
+
export const WELCOME_STEP_ORDER = commonJsModule.WELCOME_STEP_ORDER;
|
|
7
|
+
export const WelcomeAudience = commonJsModule.WelcomeAudience;
|
|
8
|
+
export const WelcomeStep = commonJsModule.WelcomeStep;
|
|
9
|
+
export const buildWelcomeChecklist = commonJsModule.buildWelcomeChecklist;
|
|
10
|
+
export const getStepsForGoals = commonJsModule.getStepsForGoals;
|
|
11
|
+
export const getWelcomeAudience = commonJsModule.getWelcomeAudience;
|
|
12
|
+
export const getWelcomeStepPlanNeed = commonJsModule.getWelcomeStepPlanNeed;
|
|
13
|
+
export const isLegacyChecklistComplete = commonJsModule.isLegacyChecklistComplete;
|
|
14
|
+
export const isProjectInUse = commonJsModule.isProjectInUse;
|
|
15
|
+
export const isWelcomeStep = commonJsModule.isWelcomeStep;
|
|
16
|
+
export const isWelcomeStepDone = commonJsModule.isWelcomeStepDone;
|
|
17
|
+
export const isWelcomeStepDoneByMilestones = commonJsModule.isWelcomeStepDoneByMilestones;
|
|
18
|
+
export const needsOnCallRuleCheck = commonJsModule.needsOnCallRuleCheck;
|
|
19
|
+
export const shouldAskForGoals = commonJsModule.shouldAskForGoals;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { JSONObject } from "../JSON.mjs";
|
|
2
|
+
import ProjectGoal from "./ProjectGoal.mjs";
|
|
3
|
+
import { WelcomeAudience, WelcomeChecklistStepState } from "./WelcomeChecklist.mjs";
|
|
4
|
+
export declare const WELCOME_CHECKLIST_ROUTE: string;
|
|
5
|
+
export declare const WELCOME_CHECKLIST_GOALS_ROUTE: string;
|
|
6
|
+
export declare const WELCOME_CHECKLIST_HIDE_ROUTE: string;
|
|
7
|
+
export declare const WELCOME_CHECKLIST_SHOW_ROUTE: string;
|
|
8
|
+
export declare const WELCOME_CHECKLIST_BROWSER_STATE_ROUTE: string;
|
|
9
|
+
export interface WelcomeChecklistAnswer {
|
|
10
|
+
audience: WelcomeAudience;
|
|
11
|
+
goals: Array<ProjectGoal> | null;
|
|
12
|
+
shouldAskForGoals: boolean;
|
|
13
|
+
canChooseGoals: boolean;
|
|
14
|
+
isHiddenForMe: boolean;
|
|
15
|
+
isFinished: boolean;
|
|
16
|
+
canSendEmail: boolean;
|
|
17
|
+
hasAcknowledgedTestPage: boolean;
|
|
18
|
+
steps: Array<WelcomeChecklistStepState>;
|
|
19
|
+
doneCount: number;
|
|
20
|
+
totalCount: number;
|
|
21
|
+
}
|
|
22
|
+
export declare const getEmptyWelcomeChecklistAnswer: () => WelcomeChecklistAnswer;
|
|
23
|
+
export declare const toWelcomeChecklistAnswerJSON: (answer: WelcomeChecklistAnswer) => JSONObject;
|
|
24
|
+
export declare const parseWelcomeChecklistAnswer: (value: unknown) => WelcomeChecklistAnswer | null;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { JSONObject } from "../JSON";
|
|
2
|
+
import ProjectGoal from "./ProjectGoal";
|
|
3
|
+
import { WelcomeAudience, WelcomeChecklistStepState } from "./WelcomeChecklist";
|
|
4
|
+
export declare const WELCOME_CHECKLIST_ROUTE: string;
|
|
5
|
+
export declare const WELCOME_CHECKLIST_GOALS_ROUTE: string;
|
|
6
|
+
export declare const WELCOME_CHECKLIST_HIDE_ROUTE: string;
|
|
7
|
+
export declare const WELCOME_CHECKLIST_SHOW_ROUTE: string;
|
|
8
|
+
export declare const WELCOME_CHECKLIST_BROWSER_STATE_ROUTE: string;
|
|
9
|
+
export interface WelcomeChecklistAnswer {
|
|
10
|
+
audience: WelcomeAudience;
|
|
11
|
+
goals: Array<ProjectGoal> | null;
|
|
12
|
+
shouldAskForGoals: boolean;
|
|
13
|
+
canChooseGoals: boolean;
|
|
14
|
+
isHiddenForMe: boolean;
|
|
15
|
+
isFinished: boolean;
|
|
16
|
+
canSendEmail: boolean;
|
|
17
|
+
hasAcknowledgedTestPage: boolean;
|
|
18
|
+
steps: Array<WelcomeChecklistStepState>;
|
|
19
|
+
doneCount: number;
|
|
20
|
+
totalCount: number;
|
|
21
|
+
}
|
|
22
|
+
export declare const getEmptyWelcomeChecklistAnswer: () => WelcomeChecklistAnswer;
|
|
23
|
+
export declare const toWelcomeChecklistAnswerJSON: (answer: WelcomeChecklistAnswer) => JSONObject;
|
|
24
|
+
export declare const parseWelcomeChecklistAnswer: (value: unknown) => WelcomeChecklistAnswer | null;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseWelcomeChecklistAnswer = exports.toWelcomeChecklistAnswerJSON = exports.getEmptyWelcomeChecklistAnswer = exports.WELCOME_CHECKLIST_BROWSER_STATE_ROUTE = exports.WELCOME_CHECKLIST_SHOW_ROUTE = exports.WELCOME_CHECKLIST_HIDE_ROUTE = exports.WELCOME_CHECKLIST_GOALS_ROUTE = exports.WELCOME_CHECKLIST_ROUTE = void 0;
|
|
4
|
+
const SubscriptionPlan_1 = require("../Billing/SubscriptionPlan");
|
|
5
|
+
const ProjectGoal_1 = require("./ProjectGoal");
|
|
6
|
+
const WelcomeChecklist_1 = require("./WelcomeChecklist");
|
|
7
|
+
/*
|
|
8
|
+
* THE ONE ANSWER HOME READS FOR ITS WELCOME CARD (issue #6803):
|
|
9
|
+
* GET /api/welcome-checklist, for the project in the `tenantid` header and
|
|
10
|
+
* the person asking. Everything the card draws is in it - whether to ask
|
|
11
|
+
* the question, the steps with what is done and what is next, and whether
|
|
12
|
+
* this person hid the card - so a second member and another browser see
|
|
13
|
+
* the same thing.
|
|
14
|
+
*
|
|
15
|
+
* The routes below change it, and each answers with the new answer:
|
|
16
|
+
*
|
|
17
|
+
* POST /welcome-checklist/goals { goals: [...] } choose (or, with
|
|
18
|
+
* [], skip) - an Owner or Admin
|
|
19
|
+
* POST /welcome-checklist/hide hide the card for me
|
|
20
|
+
* POST /welcome-checklist/show show it again for me
|
|
21
|
+
* POST /welcome-checklist/browser-state { wasDismissed, wasFinished } -
|
|
22
|
+
* what this browser remembered of
|
|
23
|
+
* the checklist before this one
|
|
24
|
+
*
|
|
25
|
+
* Server/API/WelcomeChecklistAPI.ts serves them; Server/Services/
|
|
26
|
+
* WelcomeChecklistService.ts works the answer out.
|
|
27
|
+
*/
|
|
28
|
+
exports.WELCOME_CHECKLIST_ROUTE = "/welcome-checklist";
|
|
29
|
+
exports.WELCOME_CHECKLIST_GOALS_ROUTE = "/welcome-checklist/goals";
|
|
30
|
+
exports.WELCOME_CHECKLIST_HIDE_ROUTE = "/welcome-checklist/hide";
|
|
31
|
+
exports.WELCOME_CHECKLIST_SHOW_ROUTE = "/welcome-checklist/show";
|
|
32
|
+
exports.WELCOME_CHECKLIST_BROWSER_STATE_ROUTE = "/welcome-checklist/browser-state";
|
|
33
|
+
// An answer with nothing to show: what Home draws when it cannot read one.
|
|
34
|
+
const getEmptyWelcomeChecklistAnswer = () => {
|
|
35
|
+
return {
|
|
36
|
+
audience: WelcomeChecklist_1.WelcomeAudience.InvitedMember,
|
|
37
|
+
goals: null,
|
|
38
|
+
shouldAskForGoals: false,
|
|
39
|
+
canChooseGoals: false,
|
|
40
|
+
isHiddenForMe: false,
|
|
41
|
+
isFinished: false,
|
|
42
|
+
canSendEmail: true,
|
|
43
|
+
hasAcknowledgedTestPage: false,
|
|
44
|
+
steps: [],
|
|
45
|
+
doneCount: 0,
|
|
46
|
+
totalCount: 0,
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
exports.getEmptyWelcomeChecklistAnswer = getEmptyWelcomeChecklistAnswer;
|
|
50
|
+
const toWelcomeChecklistAnswerJSON = (answer) => {
|
|
51
|
+
return {
|
|
52
|
+
audience: answer.audience,
|
|
53
|
+
goals: answer.goals ? [...answer.goals] : null,
|
|
54
|
+
shouldAskForGoals: answer.shouldAskForGoals,
|
|
55
|
+
canChooseGoals: answer.canChooseGoals,
|
|
56
|
+
isHiddenForMe: answer.isHiddenForMe,
|
|
57
|
+
isFinished: answer.isFinished,
|
|
58
|
+
canSendEmail: answer.canSendEmail,
|
|
59
|
+
hasAcknowledgedTestPage: answer.hasAcknowledgedTestPage,
|
|
60
|
+
steps: answer.steps.map((state) => {
|
|
61
|
+
return {
|
|
62
|
+
step: state.step,
|
|
63
|
+
isDone: state.isDone,
|
|
64
|
+
needsPlan: state.needsPlan,
|
|
65
|
+
isNext: state.isNext,
|
|
66
|
+
};
|
|
67
|
+
}),
|
|
68
|
+
doneCount: answer.doneCount,
|
|
69
|
+
totalCount: answer.totalCount,
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
exports.toWelcomeChecklistAnswerJSON = toWelcomeChecklistAnswerJSON;
|
|
73
|
+
const isPlanType = (value) => {
|
|
74
|
+
return (typeof value === "string" &&
|
|
75
|
+
Object.values(SubscriptionPlan_1.PlanType).includes(value));
|
|
76
|
+
};
|
|
77
|
+
const toCount = (value) => {
|
|
78
|
+
return typeof value === "number" && Number.isFinite(value) && value >= 0
|
|
79
|
+
? Math.floor(value)
|
|
80
|
+
: 0;
|
|
81
|
+
};
|
|
82
|
+
/*
|
|
83
|
+
* The answer a response body holds, or null when it is not one. Steps the
|
|
84
|
+
* Dashboard does not know (a newer server) are left out, and at most one
|
|
85
|
+
* step is next.
|
|
86
|
+
*/
|
|
87
|
+
const parseWelcomeChecklistAnswer = (value) => {
|
|
88
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
const raw = value;
|
|
92
|
+
if (raw["audience"] !== WelcomeChecklist_1.WelcomeAudience.SetUp &&
|
|
93
|
+
raw["audience"] !== WelcomeChecklist_1.WelcomeAudience.InvitedMember) {
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
const steps = [];
|
|
97
|
+
let hasNext = false;
|
|
98
|
+
if (Array.isArray(raw["steps"])) {
|
|
99
|
+
for (const item of raw["steps"]) {
|
|
100
|
+
if (!item || typeof item !== "object") {
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
const step = item;
|
|
104
|
+
if (!(0, WelcomeChecklist_1.isWelcomeStep)(step["step"])) {
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
107
|
+
const isNext = step["isNext"] === true && !hasNext;
|
|
108
|
+
if (isNext) {
|
|
109
|
+
hasNext = true;
|
|
110
|
+
}
|
|
111
|
+
steps.push({
|
|
112
|
+
step: step["step"],
|
|
113
|
+
isDone: step["isDone"] === true,
|
|
114
|
+
needsPlan: isPlanType(step["needsPlan"]) ? step["needsPlan"] : null,
|
|
115
|
+
isNext: isNext,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
const goals = Array.isArray(raw["goals"])
|
|
120
|
+
? (0, ProjectGoal_1.parseProjectGoals)(raw["goals"].filter(ProjectGoal_1.isProjectGoal))
|
|
121
|
+
: null;
|
|
122
|
+
return {
|
|
123
|
+
audience: raw["audience"],
|
|
124
|
+
goals: goals,
|
|
125
|
+
shouldAskForGoals: raw["shouldAskForGoals"] === true,
|
|
126
|
+
canChooseGoals: raw["canChooseGoals"] === true,
|
|
127
|
+
isHiddenForMe: raw["isHiddenForMe"] === true,
|
|
128
|
+
isFinished: raw["isFinished"] === true,
|
|
129
|
+
canSendEmail: raw["canSendEmail"] !== false,
|
|
130
|
+
hasAcknowledgedTestPage: raw["hasAcknowledgedTestPage"] === true,
|
|
131
|
+
steps: steps,
|
|
132
|
+
doneCount: toCount(raw["doneCount"]),
|
|
133
|
+
totalCount: toCount(raw["totalCount"]),
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
exports.parseWelcomeChecklistAnswer = parseWelcomeChecklistAnswer;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import commonJsModule from "./WelcomeChecklistAnswer.js";
|
|
2
|
+
export const WELCOME_CHECKLIST_BROWSER_STATE_ROUTE = commonJsModule.WELCOME_CHECKLIST_BROWSER_STATE_ROUTE;
|
|
3
|
+
export const WELCOME_CHECKLIST_GOALS_ROUTE = commonJsModule.WELCOME_CHECKLIST_GOALS_ROUTE;
|
|
4
|
+
export const WELCOME_CHECKLIST_HIDE_ROUTE = commonJsModule.WELCOME_CHECKLIST_HIDE_ROUTE;
|
|
5
|
+
export const WELCOME_CHECKLIST_ROUTE = commonJsModule.WELCOME_CHECKLIST_ROUTE;
|
|
6
|
+
export const WELCOME_CHECKLIST_SHOW_ROUTE = commonJsModule.WELCOME_CHECKLIST_SHOW_ROUTE;
|
|
7
|
+
export const getEmptyWelcomeChecklistAnswer = commonJsModule.getEmptyWelcomeChecklistAnswer;
|
|
8
|
+
export const parseWelcomeChecklistAnswer = commonJsModule.parseWelcomeChecklistAnswer;
|
|
9
|
+
export const toWelcomeChecklistAnswerJSON = commonJsModule.toWelcomeChecklistAnswerJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { JSONObject } from "../JSON.mjs";
|
|
2
|
+
export declare enum WelcomeChecklistFinishedBy {
|
|
3
|
+
Outcomes = "outcomes",
|
|
4
|
+
Legacy = "legacy",
|
|
5
|
+
Browser = "browser"
|
|
6
|
+
}
|
|
7
|
+
export interface WelcomeChecklistState {
|
|
8
|
+
startedWithOutcomes?: boolean | undefined;
|
|
9
|
+
legacyCheckedAt?: string | undefined;
|
|
10
|
+
goalsChosenAt?: string | undefined;
|
|
11
|
+
goalsChosenByUserId?: string | undefined;
|
|
12
|
+
finishedAt?: string | undefined;
|
|
13
|
+
finishedBy?: WelcomeChecklistFinishedBy | undefined;
|
|
14
|
+
hiddenForUserIds?: Array<string> | undefined;
|
|
15
|
+
testPageAcknowledgedByUserIds?: Array<string> | undefined;
|
|
16
|
+
}
|
|
17
|
+
export declare const MAX_HIDDEN_FOR_USER_IDS: number;
|
|
18
|
+
export declare const parseWelcomeChecklistState: (value: unknown) => WelcomeChecklistState;
|
|
19
|
+
export declare const toWelcomeChecklistStateJSON: (state: WelcomeChecklistState) => JSONObject;
|
|
20
|
+
export declare const getNewProjectWelcomeChecklistState: () => WelcomeChecklistState;
|
|
21
|
+
export declare const needsLegacyCheck: (state: WelcomeChecklistState) => boolean;
|
|
22
|
+
export declare const isWelcomeChecklistFinished: (state: WelcomeChecklistState) => boolean;
|
|
23
|
+
export declare const isWelcomeChecklistHiddenFor: (state: WelcomeChecklistState, userId: string | null | undefined) => boolean;
|
|
24
|
+
export declare const withWelcomeChecklistHiddenFor: (state: WelcomeChecklistState, userId: string, isHidden: boolean) => WelcomeChecklistState;
|
|
25
|
+
export declare const hasAcknowledgedTestPage: (state: WelcomeChecklistState, userId: string | null | undefined) => boolean;
|
|
26
|
+
export declare const withTestPageAcknowledgedBy: (state: WelcomeChecklistState, userId: string) => WelcomeChecklistState;
|
|
27
|
+
export declare const withWelcomeChecklistFinished: (state: WelcomeChecklistState, finishedBy: WelcomeChecklistFinishedBy, at: Date) => WelcomeChecklistState;
|