@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
|
@@ -149,6 +149,22 @@ let User = class User extends UserModel_1.default {
|
|
|
149
149
|
this.deletedByUser = undefined;
|
|
150
150
|
this.deletedByUserId = undefined;
|
|
151
151
|
this.enableTwoFactorAuth = undefined;
|
|
152
|
+
/*
|
|
153
|
+
* "Ask me how things went" (issue #6832), on while this is false: the
|
|
154
|
+
* question at the end of a guided setup, Was this clear? and the
|
|
155
|
+
* first-week check-in. Their own to switch off, on User Profile or with
|
|
156
|
+
* "Don't ask me again" on a question. Give feedback in Help stays: the
|
|
157
|
+
* person opens it.
|
|
158
|
+
*/
|
|
159
|
+
this.disableFeedbackQuestions = undefined;
|
|
160
|
+
/*
|
|
161
|
+
* The questions OneUptime asked this person, and when: question key
|
|
162
|
+
* (`setup_flow:website_down`, `check_in:<project id>`) to an ISO date
|
|
163
|
+
* (Types/ProductFeedback/ProductFeedback, readAskedQuestions). Each is
|
|
164
|
+
* asked once, and at most one a week. Written by OneUptime only
|
|
165
|
+
* (ProductFeedbackService, as root), when it asks.
|
|
166
|
+
*/
|
|
167
|
+
this.feedbackQuestionsAsked = undefined;
|
|
152
168
|
}
|
|
153
169
|
};
|
|
154
170
|
__decorate([
|
|
@@ -1125,6 +1141,42 @@ __decorate([
|
|
|
1125
1141
|
}),
|
|
1126
1142
|
__metadata("design:type", Boolean)
|
|
1127
1143
|
], User.prototype, "enableTwoFactorAuth", void 0);
|
|
1144
|
+
__decorate([
|
|
1145
|
+
(0, ColumnAccessControl_1.default)({
|
|
1146
|
+
create: [],
|
|
1147
|
+
read: [Permission_1.default.CurrentUser],
|
|
1148
|
+
update: [Permission_1.default.CurrentUser],
|
|
1149
|
+
}),
|
|
1150
|
+
(0, TableColumn_1.default)({
|
|
1151
|
+
title: "Disable Feedback Questions",
|
|
1152
|
+
description: "When true, OneUptime never asks this person how things went: no question at the end of a guided setup, no Was this clear?, no first-week check-in.",
|
|
1153
|
+
type: TableColumnType_1.default.Boolean,
|
|
1154
|
+
defaultValue: false,
|
|
1155
|
+
}),
|
|
1156
|
+
(0, typeorm_1.Column)({
|
|
1157
|
+
type: ColumnType_1.default.Boolean,
|
|
1158
|
+
nullable: true,
|
|
1159
|
+
default: false,
|
|
1160
|
+
}),
|
|
1161
|
+
__metadata("design:type", Boolean)
|
|
1162
|
+
], User.prototype, "disableFeedbackQuestions", void 0);
|
|
1163
|
+
__decorate([
|
|
1164
|
+
(0, ColumnAccessControl_1.default)({
|
|
1165
|
+
create: [],
|
|
1166
|
+
read: [],
|
|
1167
|
+
update: [],
|
|
1168
|
+
}),
|
|
1169
|
+
(0, TableColumn_1.default)({
|
|
1170
|
+
title: "Feedback Questions Asked",
|
|
1171
|
+
description: "The questions OneUptime asked this person about how things went, and when, so none is asked twice and at most one a week.",
|
|
1172
|
+
type: TableColumnType_1.default.JSON,
|
|
1173
|
+
}),
|
|
1174
|
+
(0, typeorm_1.Column)({
|
|
1175
|
+
type: ColumnType_1.default.JSON,
|
|
1176
|
+
nullable: true,
|
|
1177
|
+
}),
|
|
1178
|
+
__metadata("design:type", Object)
|
|
1179
|
+
], User.prototype, "feedbackQuestionsAsked", void 0);
|
|
1128
1180
|
User = __decorate([
|
|
1129
1181
|
(0, EnableDocumentation_1.default)({
|
|
1130
1182
|
isMasterAdminApiDocs: true,
|
|
@@ -405,7 +405,14 @@ __decorate([
|
|
|
405
405
|
create: [],
|
|
406
406
|
read: [Permission_1.default.CurrentUser],
|
|
407
407
|
update: [],
|
|
408
|
-
})
|
|
408
|
+
})
|
|
409
|
+
/*
|
|
410
|
+
* Indexed: deleting the record it points at finds these rows by it
|
|
411
|
+
* (the foreign key's ON DELETE), as the purge of resolved incidents
|
|
412
|
+
* and alerts does in batches (#6903), without reading the whole table.
|
|
413
|
+
*/
|
|
414
|
+
,
|
|
415
|
+
(0, typeorm_1.Index)(),
|
|
409
416
|
(0, TableColumn_1.default)({
|
|
410
417
|
type: TableColumnType_1.default.ObjectID,
|
|
411
418
|
title: "Triggered By Incident ID",
|
|
@@ -449,7 +456,14 @@ __decorate([
|
|
|
449
456
|
create: [],
|
|
450
457
|
read: [Permission_1.default.CurrentUser],
|
|
451
458
|
update: [],
|
|
452
|
-
})
|
|
459
|
+
})
|
|
460
|
+
/*
|
|
461
|
+
* Indexed: deleting the record it points at finds these rows by it
|
|
462
|
+
* (the foreign key's ON DELETE), as the purge of resolved incidents
|
|
463
|
+
* and alerts does in batches (#6903), without reading the whole table.
|
|
464
|
+
*/
|
|
465
|
+
,
|
|
466
|
+
(0, typeorm_1.Index)(),
|
|
453
467
|
(0, TableColumn_1.default)({
|
|
454
468
|
type: TableColumnType_1.default.ObjectID,
|
|
455
469
|
title: "Triggered By Alert ID",
|
|
@@ -493,7 +507,14 @@ __decorate([
|
|
|
493
507
|
create: [],
|
|
494
508
|
read: [Permission_1.default.CurrentUser],
|
|
495
509
|
update: [],
|
|
496
|
-
})
|
|
510
|
+
})
|
|
511
|
+
/*
|
|
512
|
+
* Indexed: deleting the record it points at finds these rows by it
|
|
513
|
+
* (the foreign key's ON DELETE), as the purge of resolved incidents
|
|
514
|
+
* and alerts does in batches (#6903), without reading the whole table.
|
|
515
|
+
*/
|
|
516
|
+
,
|
|
517
|
+
(0, typeorm_1.Index)(),
|
|
497
518
|
(0, TableColumn_1.default)({
|
|
498
519
|
type: TableColumnType_1.default.ObjectID,
|
|
499
520
|
title: "Triggered By Alert Episode ID",
|
|
@@ -537,7 +558,14 @@ __decorate([
|
|
|
537
558
|
create: [],
|
|
538
559
|
read: [Permission_1.default.CurrentUser],
|
|
539
560
|
update: [],
|
|
540
|
-
})
|
|
561
|
+
})
|
|
562
|
+
/*
|
|
563
|
+
* Indexed: deleting the record it points at finds these rows by it
|
|
564
|
+
* (the foreign key's ON DELETE), as the purge of resolved incidents
|
|
565
|
+
* and alerts does in batches (#6903), without reading the whole table.
|
|
566
|
+
*/
|
|
567
|
+
,
|
|
568
|
+
(0, typeorm_1.Index)(),
|
|
541
569
|
(0, TableColumn_1.default)({
|
|
542
570
|
type: TableColumnType_1.default.ObjectID,
|
|
543
571
|
title: "Triggered By Incident Episode ID",
|
|
@@ -1457,6 +1457,16 @@ UserOnCallLogTimeline = __decorate([
|
|
|
1457
1457
|
(0, typeorm_1.Index)(["userId", "createdAt"]),
|
|
1458
1458
|
(0, typeorm_1.Index)(["onCallDutyPolicyExecutionLogId", "status"]),
|
|
1459
1459
|
(0, typeorm_1.Index)(["projectId", "status"])
|
|
1460
|
+
/*
|
|
1461
|
+
* The notifications still going out, oldest first: what the stuck check
|
|
1462
|
+
* reads every five minutes (OnCallStuckNotifications). Only those that say
|
|
1463
|
+
* Sending are in it - a handful at any moment, where the table keeps every
|
|
1464
|
+
* notification ever sent - and the check's read implies its predicate.
|
|
1465
|
+
*/
|
|
1466
|
+
,
|
|
1467
|
+
(0, typeorm_1.Index)(["createdAt"], {
|
|
1468
|
+
where: `"status" = 'Sending' AND "deletedAt" IS NULL`,
|
|
1469
|
+
})
|
|
1460
1470
|
/*
|
|
1461
1471
|
* The history of the pages sent to a person: who was paged, when, through
|
|
1462
1472
|
* which of their notification rules and methods, and how it went. The rule
|
|
@@ -10,6 +10,7 @@ import OnCallDutyPolicy from "./OnCallDutyPolicy.mjs";
|
|
|
10
10
|
import OnCallDutyPolicyEscalationRule from "./OnCallDutyPolicyEscalationRule.mjs";
|
|
11
11
|
import OnCallDutyPolicySchedule from "./OnCallDutyPolicySchedule.mjs";
|
|
12
12
|
import Team from "./Team.mjs";
|
|
13
|
+
import UserOnCallLogTimeline from "./UserOnCallLogTimeline.mjs";
|
|
13
14
|
import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel.mjs";
|
|
14
15
|
import ObjectID from "../../Types/ObjectID.mjs";
|
|
15
16
|
import Phone from "../../Types/Phone.mjs";
|
|
@@ -46,6 +47,8 @@ export default class WhatsAppLog extends BaseModel {
|
|
|
46
47
|
onCallDutyPolicyEscalationRuleId?: ObjectID;
|
|
47
48
|
onCallDutyPolicySchedule?: OnCallDutyPolicySchedule;
|
|
48
49
|
onCallDutyPolicyScheduleId?: ObjectID;
|
|
50
|
+
userOnCallLogTimeline?: UserOnCallLogTimeline;
|
|
51
|
+
userOnCallLogTimelineId?: ObjectID;
|
|
49
52
|
deletedByUser?: User;
|
|
50
53
|
deletedByUserId?: ObjectID;
|
|
51
54
|
}
|
|
@@ -10,6 +10,7 @@ import OnCallDutyPolicy from "./OnCallDutyPolicy";
|
|
|
10
10
|
import OnCallDutyPolicyEscalationRule from "./OnCallDutyPolicyEscalationRule";
|
|
11
11
|
import OnCallDutyPolicySchedule from "./OnCallDutyPolicySchedule";
|
|
12
12
|
import Team from "./Team";
|
|
13
|
+
import UserOnCallLogTimeline from "./UserOnCallLogTimeline";
|
|
13
14
|
import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel";
|
|
14
15
|
import ObjectID from "../../Types/ObjectID";
|
|
15
16
|
import Phone from "../../Types/Phone";
|
|
@@ -46,6 +47,8 @@ export default class WhatsAppLog extends BaseModel {
|
|
|
46
47
|
onCallDutyPolicyEscalationRuleId?: ObjectID;
|
|
47
48
|
onCallDutyPolicySchedule?: OnCallDutyPolicySchedule;
|
|
48
49
|
onCallDutyPolicyScheduleId?: ObjectID;
|
|
50
|
+
userOnCallLogTimeline?: UserOnCallLogTimeline;
|
|
51
|
+
userOnCallLogTimelineId?: ObjectID;
|
|
49
52
|
deletedByUser?: User;
|
|
50
53
|
deletedByUserId?: ObjectID;
|
|
51
54
|
}
|
|
@@ -24,6 +24,7 @@ const OnCallDutyPolicy_1 = __importDefault(require("./OnCallDutyPolicy"));
|
|
|
24
24
|
const OnCallDutyPolicyEscalationRule_1 = __importDefault(require("./OnCallDutyPolicyEscalationRule"));
|
|
25
25
|
const OnCallDutyPolicySchedule_1 = __importDefault(require("./OnCallDutyPolicySchedule"));
|
|
26
26
|
const Team_1 = __importDefault(require("./Team"));
|
|
27
|
+
const UserOnCallLogTimeline_1 = __importDefault(require("./UserOnCallLogTimeline"));
|
|
27
28
|
const DatabaseBaseModel_1 = __importDefault(require("./DatabaseBaseModel/DatabaseBaseModel"));
|
|
28
29
|
const Route_1 = __importDefault(require("../../Types/API/Route"));
|
|
29
30
|
const ColumnAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/ColumnAccessControl"));
|
|
@@ -77,6 +78,8 @@ let WhatsAppLog = class WhatsAppLog extends DatabaseBaseModel_1.default {
|
|
|
77
78
|
this.onCallDutyPolicyEscalationRuleId = undefined;
|
|
78
79
|
this.onCallDutyPolicySchedule = undefined;
|
|
79
80
|
this.onCallDutyPolicyScheduleId = undefined;
|
|
81
|
+
this.userOnCallLogTimeline = undefined;
|
|
82
|
+
this.userOnCallLogTimelineId = undefined;
|
|
80
83
|
this.deletedByUser = undefined;
|
|
81
84
|
this.deletedByUserId = undefined;
|
|
82
85
|
}
|
|
@@ -955,6 +958,65 @@ __decorate([
|
|
|
955
958
|
}),
|
|
956
959
|
__metadata("design:type", ObjectID_1.default)
|
|
957
960
|
], WhatsAppLog.prototype, "onCallDutyPolicyScheduleId", void 0);
|
|
961
|
+
__decorate([
|
|
962
|
+
(0, ColumnAccessControl_1.default)({
|
|
963
|
+
create: [],
|
|
964
|
+
read: [
|
|
965
|
+
Permission_1.default.ProjectOwner,
|
|
966
|
+
Permission_1.default.ProjectAdmin,
|
|
967
|
+
Permission_1.default.ProjectMember,
|
|
968
|
+
Permission_1.default.Viewer,
|
|
969
|
+
Permission_1.default.ReadWhatsAppLog,
|
|
970
|
+
],
|
|
971
|
+
update: [],
|
|
972
|
+
}),
|
|
973
|
+
(0, TableColumn_1.default)({
|
|
974
|
+
manyToOneRelationColumn: "userOnCallLogTimelineId",
|
|
975
|
+
type: TableColumnType_1.default.Entity,
|
|
976
|
+
modelType: UserOnCallLogTimeline_1.default,
|
|
977
|
+
title: "User On-Call Log Timeline",
|
|
978
|
+
description: "On-call notification timeline entry this WhatsApp message was sent for (if any): the message was an on-call page.",
|
|
979
|
+
example: "f1a2b3c4-d5e6-47f8-9a0b-1c2d3e4f5a6b",
|
|
980
|
+
}),
|
|
981
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
982
|
+
return UserOnCallLogTimeline_1.default;
|
|
983
|
+
}, {
|
|
984
|
+
eager: false,
|
|
985
|
+
nullable: true,
|
|
986
|
+
onDelete: "CASCADE",
|
|
987
|
+
orphanedRowAction: "nullify",
|
|
988
|
+
}),
|
|
989
|
+
(0, typeorm_1.JoinColumn)({ name: "userOnCallLogTimelineId" }),
|
|
990
|
+
__metadata("design:type", UserOnCallLogTimeline_1.default)
|
|
991
|
+
], WhatsAppLog.prototype, "userOnCallLogTimeline", void 0);
|
|
992
|
+
__decorate([
|
|
993
|
+
(0, ColumnAccessControl_1.default)({
|
|
994
|
+
create: [],
|
|
995
|
+
read: [
|
|
996
|
+
Permission_1.default.ProjectOwner,
|
|
997
|
+
Permission_1.default.ProjectAdmin,
|
|
998
|
+
Permission_1.default.ProjectMember,
|
|
999
|
+
Permission_1.default.Viewer,
|
|
1000
|
+
Permission_1.default.ReadWhatsAppLog,
|
|
1001
|
+
],
|
|
1002
|
+
update: [],
|
|
1003
|
+
}),
|
|
1004
|
+
(0, typeorm_1.Index)(),
|
|
1005
|
+
(0, TableColumn_1.default)({
|
|
1006
|
+
type: TableColumnType_1.default.ObjectID,
|
|
1007
|
+
required: false,
|
|
1008
|
+
canReadOnRelationQuery: true,
|
|
1009
|
+
title: "User On-Call Log Timeline ID",
|
|
1010
|
+
description: "ID of the on-call notification timeline entry this WhatsApp message was sent for (if any).",
|
|
1011
|
+
example: "f1a2b3c4-d5e6-47f8-9a0b-1c2d3e4f5a6b",
|
|
1012
|
+
}),
|
|
1013
|
+
(0, typeorm_1.Column)({
|
|
1014
|
+
type: ColumnType_1.default.ObjectID,
|
|
1015
|
+
nullable: true,
|
|
1016
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
1017
|
+
}),
|
|
1018
|
+
__metadata("design:type", ObjectID_1.default)
|
|
1019
|
+
], WhatsAppLog.prototype, "userOnCallLogTimelineId", void 0);
|
|
958
1020
|
__decorate([
|
|
959
1021
|
(0, ColumnAccessControl_1.default)({
|
|
960
1022
|
create: [],
|
|
@@ -572,7 +572,7 @@ __decorate([
|
|
|
572
572
|
}),
|
|
573
573
|
(0, TableColumn_1.default)({
|
|
574
574
|
title: "Team Name",
|
|
575
|
-
description: "Microsoft Teams team name
|
|
575
|
+
description: "The team the summary's channels are in: for Microsoft Teams, the team's name; for Mattermost, the team's id - empty to look in the default team first, then in the bot's other teams. Not used for Slack.",
|
|
576
576
|
required: false,
|
|
577
577
|
unique: false,
|
|
578
578
|
type: TableColumnType_1.default.LongText,
|
|
@@ -34,15 +34,27 @@ export interface SlackChannelCacheEntry {
|
|
|
34
34
|
id: string;
|
|
35
35
|
name: string;
|
|
36
36
|
lastUpdated: string;
|
|
37
|
+
teamId?: string | undefined;
|
|
37
38
|
}
|
|
38
39
|
export interface SlackChannelCache {
|
|
39
40
|
[channelName: string]: SlackChannelCacheEntry;
|
|
40
41
|
}
|
|
42
|
+
export interface SlackOrganizationWorkspace {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
}
|
|
41
46
|
export interface SlackMiscData extends MiscData {
|
|
42
47
|
teamId: string;
|
|
43
48
|
teamName: string;
|
|
44
49
|
botUserId: string;
|
|
45
50
|
channelCache?: SlackChannelCache;
|
|
51
|
+
isEnterpriseInstall?: boolean | undefined;
|
|
52
|
+
enterpriseId?: string | undefined;
|
|
53
|
+
enterpriseName?: string | undefined;
|
|
54
|
+
workspaces?: Array<SlackOrganizationWorkspace> | undefined;
|
|
55
|
+
workspacesReadAt?: string | undefined;
|
|
56
|
+
defaultWorkspaceId?: string | undefined;
|
|
57
|
+
removedWorkspaces?: Array<SlackOrganizationWorkspace> | undefined;
|
|
46
58
|
}
|
|
47
59
|
export interface MicrosoftTeamsMiscData extends MiscData {
|
|
48
60
|
tenantId: string;
|
|
@@ -56,6 +68,11 @@ export interface MicrosoftTeamsMiscData extends MiscData {
|
|
|
56
68
|
availableChats?: Record<string, MicrosoftTeamsChat>;
|
|
57
69
|
installedTeams?: Record<string, MicrosoftTeamsInstalledTeam>;
|
|
58
70
|
}
|
|
71
|
+
export interface MattermostConnectionTeam {
|
|
72
|
+
id: string;
|
|
73
|
+
name: string;
|
|
74
|
+
displayName: string;
|
|
75
|
+
}
|
|
59
76
|
export interface MattermostMiscData extends MiscData {
|
|
60
77
|
serverUrl: string;
|
|
61
78
|
teamId: string;
|
|
@@ -63,6 +80,9 @@ export interface MattermostMiscData extends MiscData {
|
|
|
63
80
|
teamDisplayName: string;
|
|
64
81
|
botUserId: string;
|
|
65
82
|
botUsername: string;
|
|
83
|
+
teams?: Array<MattermostConnectionTeam> | undefined;
|
|
84
|
+
teamsReadAt?: string | undefined;
|
|
85
|
+
removedTeams?: Array<MattermostConnectionTeam> | undefined;
|
|
66
86
|
}
|
|
67
87
|
export type WorkspaceMiscData = SlackMiscData | MicrosoftTeamsMiscData | MattermostMiscData;
|
|
68
88
|
export declare const LegacyServerOnlyMiscDataKeys: ReadonlyArray<string>;
|
|
@@ -34,15 +34,27 @@ export interface SlackChannelCacheEntry {
|
|
|
34
34
|
id: string;
|
|
35
35
|
name: string;
|
|
36
36
|
lastUpdated: string;
|
|
37
|
+
teamId?: string | undefined;
|
|
37
38
|
}
|
|
38
39
|
export interface SlackChannelCache {
|
|
39
40
|
[channelName: string]: SlackChannelCacheEntry;
|
|
40
41
|
}
|
|
42
|
+
export interface SlackOrganizationWorkspace {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
}
|
|
41
46
|
export interface SlackMiscData extends MiscData {
|
|
42
47
|
teamId: string;
|
|
43
48
|
teamName: string;
|
|
44
49
|
botUserId: string;
|
|
45
50
|
channelCache?: SlackChannelCache;
|
|
51
|
+
isEnterpriseInstall?: boolean | undefined;
|
|
52
|
+
enterpriseId?: string | undefined;
|
|
53
|
+
enterpriseName?: string | undefined;
|
|
54
|
+
workspaces?: Array<SlackOrganizationWorkspace> | undefined;
|
|
55
|
+
workspacesReadAt?: string | undefined;
|
|
56
|
+
defaultWorkspaceId?: string | undefined;
|
|
57
|
+
removedWorkspaces?: Array<SlackOrganizationWorkspace> | undefined;
|
|
46
58
|
}
|
|
47
59
|
export interface MicrosoftTeamsMiscData extends MiscData {
|
|
48
60
|
tenantId: string;
|
|
@@ -56,6 +68,11 @@ export interface MicrosoftTeamsMiscData extends MiscData {
|
|
|
56
68
|
availableChats?: Record<string, MicrosoftTeamsChat>;
|
|
57
69
|
installedTeams?: Record<string, MicrosoftTeamsInstalledTeam>;
|
|
58
70
|
}
|
|
71
|
+
export interface MattermostConnectionTeam {
|
|
72
|
+
id: string;
|
|
73
|
+
name: string;
|
|
74
|
+
displayName: string;
|
|
75
|
+
}
|
|
59
76
|
export interface MattermostMiscData extends MiscData {
|
|
60
77
|
serverUrl: string;
|
|
61
78
|
teamId: string;
|
|
@@ -63,6 +80,9 @@ export interface MattermostMiscData extends MiscData {
|
|
|
63
80
|
teamDisplayName: string;
|
|
64
81
|
botUserId: string;
|
|
65
82
|
botUsername: string;
|
|
83
|
+
teams?: Array<MattermostConnectionTeam> | undefined;
|
|
84
|
+
teamsReadAt?: string | undefined;
|
|
85
|
+
removedTeams?: Array<MattermostConnectionTeam> | undefined;
|
|
66
86
|
}
|
|
67
87
|
export type WorkspaceMiscData = SlackMiscData | MicrosoftTeamsMiscData | MattermostMiscData;
|
|
68
88
|
export declare const LegacyServerOnlyMiscDataKeys: ReadonlyArray<string>;
|
|
@@ -242,7 +242,7 @@ __decorate([
|
|
|
242
242
|
required: false,
|
|
243
243
|
type: TableColumnType_1.default.ShortText,
|
|
244
244
|
title: "Workspace Team ID",
|
|
245
|
-
description: "Microsoft Teams
|
|
245
|
+
description: "Microsoft Teams: the team the tag is in (its Microsoft 365 group id). Slack installed for a whole Enterprise organization: the workspace the user group is in (T...). Empty for a Slack user group of a project connected to one workspace.",
|
|
246
246
|
}),
|
|
247
247
|
(0, typeorm_1.Column)({
|
|
248
248
|
nullable: true,
|
|
@@ -492,6 +492,7 @@ declare class DatabaseService<TBaseModel extends BaseModel> extends BaseService
|
|
|
492
492
|
updateColumnsByIdIfUnlockedWithoutHooks(input: {
|
|
493
493
|
id: ObjectID;
|
|
494
494
|
data: PartialEntity<TBaseModel>;
|
|
495
|
+
expectedData?: PartialEntity<TBaseModel>;
|
|
495
496
|
skipUpdateDateColumn?: boolean;
|
|
496
497
|
}): Promise<boolean>;
|
|
497
498
|
hasRowWithIdWithoutHooks(id: ObjectID): Promise<boolean>;
|
|
@@ -492,6 +492,7 @@ declare class DatabaseService<TBaseModel extends BaseModel> extends BaseService
|
|
|
492
492
|
updateColumnsByIdIfUnlockedWithoutHooks(input: {
|
|
493
493
|
id: ObjectID;
|
|
494
494
|
data: PartialEntity<TBaseModel>;
|
|
495
|
+
expectedData?: PartialEntity<TBaseModel>;
|
|
495
496
|
skipUpdateDateColumn?: boolean;
|
|
496
497
|
}): Promise<boolean>;
|
|
497
498
|
hasRowWithIdWithoutHooks(id: ObjectID): Promise<boolean>;
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import MailTransportType from "../../../Types/Email/MailTransportType.mjs";
|
|
2
|
+
import { OnCallPageChannel } from "../../../Types/OnCallDutyPolicy/OnCallPageChannel.mjs";
|
|
3
|
+
import SmsStatus from "../../../Types/SmsStatus.mjs";
|
|
4
|
+
import WhatsAppStatus from "../../../Types/WhatsAppStatus.mjs";
|
|
5
|
+
export declare enum NotificationDeliveryChannel {
|
|
6
|
+
Email = "email",
|
|
7
|
+
SMS = "sms",
|
|
8
|
+
Call = "call",
|
|
9
|
+
WhatsApp = "whatsapp",
|
|
10
|
+
Telegram = "telegram",
|
|
11
|
+
Push = "push",
|
|
12
|
+
Webhook = "webhook",
|
|
13
|
+
Slack = "slack",
|
|
14
|
+
MicrosoftTeams = "microsoft_teams",
|
|
15
|
+
Mattermost = "mattermost",
|
|
16
|
+
CustomChannel = "custom_channel"
|
|
17
|
+
}
|
|
18
|
+
export declare enum NotificationDeliveryProvider {
|
|
19
|
+
None = "none",
|
|
20
|
+
Twilio = "twilio",
|
|
21
|
+
SmsAndCallGateway = "sms_and_call_gateway",
|
|
22
|
+
SMTP = "smtp",
|
|
23
|
+
SendGrid = "sendgrid",
|
|
24
|
+
AmazonSES = "amazon_ses",
|
|
25
|
+
Mailgun = "mailgun",
|
|
26
|
+
Postmark = "postmark",
|
|
27
|
+
Resend = "resend",
|
|
28
|
+
MicrosoftGraph = "microsoft_graph",
|
|
29
|
+
Expo = "expo",
|
|
30
|
+
PushRelay = "push_relay",
|
|
31
|
+
WebPush = "web_push",
|
|
32
|
+
MetaWhatsApp = "meta_whatsapp",
|
|
33
|
+
TelegramBotApi = "telegram_bot_api",
|
|
34
|
+
Slack = "slack",
|
|
35
|
+
MicrosoftTeams = "microsoft_teams",
|
|
36
|
+
Mattermost = "mattermost",
|
|
37
|
+
Webhook = "webhook",
|
|
38
|
+
CustomChannel = "custom_channel"
|
|
39
|
+
}
|
|
40
|
+
export declare enum NotificationDeliveryOutcome {
|
|
41
|
+
Success = "success",
|
|
42
|
+
Failure = "failure",
|
|
43
|
+
NotSent = "not_sent"
|
|
44
|
+
}
|
|
45
|
+
export declare enum NotificationProviderConfig {
|
|
46
|
+
Global = "global",
|
|
47
|
+
Project = "project"
|
|
48
|
+
}
|
|
49
|
+
export declare enum NotificationTriggerType {
|
|
50
|
+
Incident = "incident",
|
|
51
|
+
Alert = "alert",
|
|
52
|
+
IncidentEpisode = "incident_episode",
|
|
53
|
+
AlertEpisode = "alert_episode"
|
|
54
|
+
}
|
|
55
|
+
export declare enum NotificationTriggerSource {
|
|
56
|
+
Automatic = "automatic",
|
|
57
|
+
Manual = "manual"
|
|
58
|
+
}
|
|
59
|
+
export declare enum OnCallPageStart {
|
|
60
|
+
MonitorDataReceived = "monitor_data_received",
|
|
61
|
+
RecordCreated = "record_created",
|
|
62
|
+
PageStarted = "page_started"
|
|
63
|
+
}
|
|
64
|
+
export declare enum NotificationSchedule {
|
|
65
|
+
RuleWait = "rule_wait",
|
|
66
|
+
Repeat = "repeat",
|
|
67
|
+
Escalation = "escalation",
|
|
68
|
+
PolicyRepeat = "policy_repeat"
|
|
69
|
+
}
|
|
70
|
+
export declare enum NotificationDestination {
|
|
71
|
+
DirectMessage = "direct_message",
|
|
72
|
+
Channel = "channel",
|
|
73
|
+
IncomingWebhook = "incoming_webhook",
|
|
74
|
+
StatusPageSubscriber = "status_page_subscriber"
|
|
75
|
+
}
|
|
76
|
+
export declare enum NotificationDeliveryStatus {
|
|
77
|
+
Delivered = "delivered",
|
|
78
|
+
Undelivered = "undelivered",
|
|
79
|
+
Failed = "failed",
|
|
80
|
+
Answered = "answered",
|
|
81
|
+
NotAnswered = "not_answered"
|
|
82
|
+
}
|
|
83
|
+
export declare enum NotificationMetricAttribute {
|
|
84
|
+
Channel = "notification.channel",
|
|
85
|
+
Provider = "notification.provider",
|
|
86
|
+
ProviderConfig = "notification.provider.config",
|
|
87
|
+
Outcome = "outcome",
|
|
88
|
+
OnCallPage = "notification.on_call_page",
|
|
89
|
+
CustomChannelId = "notification.custom_channel.id",
|
|
90
|
+
CustomChannelName = "notification.custom_channel.name",
|
|
91
|
+
TriggerType = "notification.trigger.type",
|
|
92
|
+
TriggerSource = "notification.trigger.source",
|
|
93
|
+
MonitorType = "monitor.type",
|
|
94
|
+
PageStart = "notification.page.start",
|
|
95
|
+
Destination = "notification.destination",
|
|
96
|
+
Schedule = "notification.schedule"
|
|
97
|
+
}
|
|
98
|
+
export declare const MAX_CUSTOM_CHANNEL_NAME_LENGTH: number;
|
|
99
|
+
export interface NotificationCustomChannelIdentity {
|
|
100
|
+
id: string;
|
|
101
|
+
name?: string | undefined;
|
|
102
|
+
}
|
|
103
|
+
export interface NotificationDispatchStart {
|
|
104
|
+
channel: NotificationDeliveryChannel;
|
|
105
|
+
provider?: NotificationDeliveryProvider | undefined;
|
|
106
|
+
providerConfig?: NotificationProviderConfig | undefined;
|
|
107
|
+
isOnCallPage?: boolean | undefined;
|
|
108
|
+
customChannel?: NotificationCustomChannelIdentity | undefined;
|
|
109
|
+
destination?: NotificationDestination | undefined;
|
|
110
|
+
}
|
|
111
|
+
export interface NotificationDeliveryReport {
|
|
112
|
+
channel: NotificationDeliveryChannel;
|
|
113
|
+
provider: NotificationDeliveryProvider;
|
|
114
|
+
providerConfig?: NotificationProviderConfig | undefined;
|
|
115
|
+
isOnCallPage: boolean;
|
|
116
|
+
status: NotificationDeliveryStatus;
|
|
117
|
+
timeToStatusInMs?: number | undefined;
|
|
118
|
+
}
|
|
119
|
+
export type NotificationMetricAttributes = Record<string, string>;
|
|
120
|
+
export declare class NotificationDispatch {
|
|
121
|
+
private readonly channel;
|
|
122
|
+
private provider;
|
|
123
|
+
private providerConfig;
|
|
124
|
+
private isOnCallPage;
|
|
125
|
+
private customChannel;
|
|
126
|
+
private readonly destination;
|
|
127
|
+
private outcome;
|
|
128
|
+
private readonly startedAtInNs;
|
|
129
|
+
private isEnded;
|
|
130
|
+
constructor(start: NotificationDispatchStart);
|
|
131
|
+
setProvider(provider: NotificationDeliveryProvider, providerConfig?: NotificationProviderConfig | undefined): void;
|
|
132
|
+
setCustomChannel(customChannel: NotificationCustomChannelIdentity | undefined): void;
|
|
133
|
+
setIsOnCallPage(isOnCallPage: boolean): void;
|
|
134
|
+
markSucceeded(): void;
|
|
135
|
+
markFailed(): void;
|
|
136
|
+
markNotSent(): void;
|
|
137
|
+
getOutcome(): NotificationDeliveryOutcome | undefined;
|
|
138
|
+
getProvider(): NotificationDeliveryProvider;
|
|
139
|
+
isRecorded(): boolean;
|
|
140
|
+
getAttributes(outcome: NotificationDeliveryOutcome): NotificationMetricAttributes;
|
|
141
|
+
end(outcomeIfNotMarked: NotificationDeliveryOutcome): void;
|
|
142
|
+
}
|
|
143
|
+
export default class NotificationDeliveryMetrics {
|
|
144
|
+
static startDispatch(start: NotificationDispatchStart): NotificationDispatch;
|
|
145
|
+
static measureDispatch<T>(start: NotificationDispatchStart, send: (dispatch: NotificationDispatch) => Promise<T>): Promise<T>;
|
|
146
|
+
static recordNotSent(start: NotificationDispatchStart): void;
|
|
147
|
+
static recordFailedBeforeSend(start: NotificationDispatchStart): void;
|
|
148
|
+
private static recordWithoutDuration;
|
|
149
|
+
static recordDelivery(report: NotificationDeliveryReport): void;
|
|
150
|
+
static recordTrigger(data: {
|
|
151
|
+
type: NotificationTriggerType;
|
|
152
|
+
source: NotificationTriggerSource;
|
|
153
|
+
monitorType?: string | undefined;
|
|
154
|
+
}): void;
|
|
155
|
+
static recordTimeToSend(data: {
|
|
156
|
+
channel: NotificationDeliveryChannel;
|
|
157
|
+
customChannel?: NotificationCustomChannelIdentity | undefined;
|
|
158
|
+
triggerType?: NotificationTriggerType | undefined;
|
|
159
|
+
pageStart: OnCallPageStart;
|
|
160
|
+
timeToSendInMs: number;
|
|
161
|
+
}): void;
|
|
162
|
+
static recordSendLag(data: {
|
|
163
|
+
channel: NotificationDeliveryChannel;
|
|
164
|
+
customChannel?: NotificationCustomChannelIdentity | undefined;
|
|
165
|
+
triggerType?: NotificationTriggerType | undefined;
|
|
166
|
+
schedule: NotificationSchedule;
|
|
167
|
+
lagInMs: number;
|
|
168
|
+
}): void;
|
|
169
|
+
static getDispatchAttributes(data: {
|
|
170
|
+
channel: NotificationDeliveryChannel;
|
|
171
|
+
provider: NotificationDeliveryProvider;
|
|
172
|
+
providerConfig: NotificationProviderConfig;
|
|
173
|
+
isOnCallPage: boolean;
|
|
174
|
+
customChannel?: NotificationCustomChannelIdentity | undefined;
|
|
175
|
+
destination?: NotificationDestination | undefined;
|
|
176
|
+
outcome: NotificationDeliveryOutcome;
|
|
177
|
+
}): NotificationMetricAttributes;
|
|
178
|
+
static getDeliveryAttributes(data: {
|
|
179
|
+
channel: NotificationDeliveryChannel;
|
|
180
|
+
provider: NotificationDeliveryProvider;
|
|
181
|
+
providerConfig?: NotificationProviderConfig | undefined;
|
|
182
|
+
isOnCallPage: boolean;
|
|
183
|
+
status: NotificationDeliveryStatus;
|
|
184
|
+
}): NotificationMetricAttributes;
|
|
185
|
+
static getMillisecondsSince(writtenAt: Date | null | undefined, now?: Date): number | undefined;
|
|
186
|
+
static getDeliveryStatusOfSms(status: SmsStatus | null | undefined): NotificationDeliveryStatus | null;
|
|
187
|
+
static getDeliveryStatusOfWhatsApp(status: WhatsAppStatus | null | undefined): NotificationDeliveryStatus | null;
|
|
188
|
+
static getTriggerAttributes(data: {
|
|
189
|
+
type: NotificationTriggerType;
|
|
190
|
+
source: NotificationTriggerSource;
|
|
191
|
+
monitorType?: string | undefined;
|
|
192
|
+
}): NotificationMetricAttributes;
|
|
193
|
+
static getTimeToSendAttributes(data: {
|
|
194
|
+
channel: NotificationDeliveryChannel;
|
|
195
|
+
customChannel?: NotificationCustomChannelIdentity | undefined;
|
|
196
|
+
triggerType?: NotificationTriggerType | undefined;
|
|
197
|
+
pageStart: OnCallPageStart;
|
|
198
|
+
}): NotificationMetricAttributes;
|
|
199
|
+
static getSendLagAttributes(data: {
|
|
200
|
+
channel: NotificationDeliveryChannel;
|
|
201
|
+
customChannel?: NotificationCustomChannelIdentity | undefined;
|
|
202
|
+
triggerType?: NotificationTriggerType | undefined;
|
|
203
|
+
schedule: NotificationSchedule;
|
|
204
|
+
}): NotificationMetricAttributes;
|
|
205
|
+
static getTriggerTypeOf(row: {
|
|
206
|
+
triggeredByIncidentId?: unknown;
|
|
207
|
+
triggeredByAlertId?: unknown;
|
|
208
|
+
triggeredByIncidentEpisodeId?: unknown;
|
|
209
|
+
triggeredByAlertEpisodeId?: unknown;
|
|
210
|
+
}): NotificationTriggerType | undefined;
|
|
211
|
+
static getChannelOfOnCallPage(channel: OnCallPageChannel): NotificationDeliveryChannel | null;
|
|
212
|
+
static getMailProvider(transport: MailTransportType): NotificationDeliveryProvider;
|
|
213
|
+
}
|