@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,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MAX_DATA_LINEAGE_DRAWN_TABLES = void 0;
|
|
7
|
+
exports.readLineageCardId = readLineageCardId;
|
|
8
|
+
exports.readDataLineageExpandRequest = readDataLineageExpandRequest;
|
|
9
|
+
const ObjectID_1 = __importDefault(require("../ObjectID"));
|
|
10
|
+
const DataTableLineage_1 = require("./DataTableLineage");
|
|
11
|
+
/*
|
|
12
|
+
* DRAWING MORE OF A LINEAGE DIAGRAM WHERE IT IS.
|
|
13
|
+
*
|
|
14
|
+
* A diagram draws at most MAX_DATA_LINEAGE_NEIGHBORS tables next to each
|
|
15
|
+
* card each way and counts the rest on the card ("+14"). Pressing the count
|
|
16
|
+
* asks for the next of them (Server/Utils/DataObservability/
|
|
17
|
+
* DataTableLineage: expand): the nearest that are not drawn yet, problems
|
|
18
|
+
* first, as the drawing chose its own, with how many each of them does not
|
|
19
|
+
* draw beyond it, the arrows between them and every card drawn already, the
|
|
20
|
+
* pipelines that load them from outside and the dashboards built on them.
|
|
21
|
+
* The diagram adds them where it is (the Dashboard's mergeLineageExpansion)
|
|
22
|
+
* instead of re-centering on that table, and Reset goes back to the drawing
|
|
23
|
+
* as it was read.
|
|
24
|
+
*
|
|
25
|
+
* The request names what is drawn already, so nothing is drawn twice: each
|
|
26
|
+
* table with its side and steps, and each dashboard. Nothing it names needs
|
|
27
|
+
* trusting: every read is the project's own, a table it names that is not
|
|
28
|
+
* the project's is never drawn, and the open alerts of the tables drawn are
|
|
29
|
+
* counted as the person who asked may see them, as the drawing's own are.
|
|
30
|
+
*/
|
|
31
|
+
// The most tables one drawing holds: its own, and the most each side.
|
|
32
|
+
exports.MAX_DATA_LINEAGE_DRAWN_TABLES = 2 * DataTableLineage_1.MAX_DATA_LINEAGE_TABLES_PER_SIDE + 1;
|
|
33
|
+
const TABLE_PREFIX = "table:";
|
|
34
|
+
const PIPELINE_PREFIX = "pipeline:";
|
|
35
|
+
// A card's id read apart: "table:<uuid>" or "pipeline:<uuid>", anything else null.
|
|
36
|
+
function readLineageCardId(value) {
|
|
37
|
+
if (typeof value !== "string") {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
for (const [prefix, kind] of [
|
|
41
|
+
[TABLE_PREFIX, "table"],
|
|
42
|
+
[PIPELINE_PREFIX, "pipeline"],
|
|
43
|
+
]) {
|
|
44
|
+
if (value.startsWith(prefix)) {
|
|
45
|
+
const id = value.slice(prefix.length);
|
|
46
|
+
return ObjectID_1.default.isValidUUID(id) ? { kind, id } : null;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
function readSide(value) {
|
|
52
|
+
return value === DataTableLineage_1.DataLineageSide.Upstream ||
|
|
53
|
+
value === DataTableLineage_1.DataLineageSide.Focus ||
|
|
54
|
+
value === DataTableLineage_1.DataLineageSide.Downstream
|
|
55
|
+
? value
|
|
56
|
+
: null;
|
|
57
|
+
}
|
|
58
|
+
function readDrawnTable(value) {
|
|
59
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
const item = value;
|
|
63
|
+
const side = readSide(item["side"]);
|
|
64
|
+
const depth = item["depth"];
|
|
65
|
+
if (typeof item["dataAssetId"] !== "string" ||
|
|
66
|
+
!ObjectID_1.default.isValidUUID(item["dataAssetId"]) ||
|
|
67
|
+
!side ||
|
|
68
|
+
typeof depth !== "number" ||
|
|
69
|
+
!Number.isInteger(depth) ||
|
|
70
|
+
Math.abs(depth) > exports.MAX_DATA_LINEAGE_DRAWN_TABLES) {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
return { dataAssetId: item["dataAssetId"], side, depth };
|
|
74
|
+
}
|
|
75
|
+
/*
|
|
76
|
+
* A request to draw more, read strictly: the request, or why it is refused,
|
|
77
|
+
* in words to send back. The drawing's own table is in the middle whatever
|
|
78
|
+
* the request says of it, and a table named twice is read once.
|
|
79
|
+
*/
|
|
80
|
+
function readDataLineageExpandRequest(body) {
|
|
81
|
+
var _a;
|
|
82
|
+
const data = body && typeof body === "object" && !Array.isArray(body)
|
|
83
|
+
? body
|
|
84
|
+
: {};
|
|
85
|
+
const focus = readLineageCardId(data["focusNodeId"]);
|
|
86
|
+
if (!focus) {
|
|
87
|
+
return "Name the card the drawing is about: focusNodeId, as table:<table ID> or pipeline:<pipeline ID>.";
|
|
88
|
+
}
|
|
89
|
+
const node = readLineageCardId(data["nodeId"]);
|
|
90
|
+
if (!node) {
|
|
91
|
+
return "Name the card to draw more of: nodeId, as table:<table ID> or pipeline:<pipeline ID>.";
|
|
92
|
+
}
|
|
93
|
+
const focusNodeId = data["focusNodeId"];
|
|
94
|
+
const nodeId = data["nodeId"];
|
|
95
|
+
if (node.kind === "pipeline" && nodeId !== focusNodeId) {
|
|
96
|
+
return "A pipeline's card counts the tables it does not draw only on its own drawing: name a table's card, or that pipeline's.";
|
|
97
|
+
}
|
|
98
|
+
const side = readSide(data["side"]);
|
|
99
|
+
if (side !== DataTableLineage_1.DataLineageSide.Upstream &&
|
|
100
|
+
side !== DataTableLineage_1.DataLineageSide.Downstream) {
|
|
101
|
+
return "Say which way to draw more: side, Upstream or Downstream.";
|
|
102
|
+
}
|
|
103
|
+
const given = data["tables"];
|
|
104
|
+
if (!Array.isArray(given)) {
|
|
105
|
+
return "Name the tables drawn: tables, each with its dataAssetId, side and depth.";
|
|
106
|
+
}
|
|
107
|
+
if (given.length > exports.MAX_DATA_LINEAGE_DRAWN_TABLES) {
|
|
108
|
+
return `Name at most ${exports.MAX_DATA_LINEAGE_DRAWN_TABLES} drawn tables: no drawing holds more.`;
|
|
109
|
+
}
|
|
110
|
+
const tables = new Map();
|
|
111
|
+
for (const entry of given) {
|
|
112
|
+
const table = readDrawnTable(entry);
|
|
113
|
+
if (!table) {
|
|
114
|
+
return "Name the tables drawn: tables, each with its dataAssetId, side and depth.";
|
|
115
|
+
}
|
|
116
|
+
const isFocus = focus.kind === "table" && table.dataAssetId === focus.id;
|
|
117
|
+
// Only the drawing's own table is in the middle, and it always is.
|
|
118
|
+
if (!isFocus && table.side === DataTableLineage_1.DataLineageSide.Focus) {
|
|
119
|
+
return "Only the table the drawing is about is in its middle: give every other table's side as Upstream or Downstream.";
|
|
120
|
+
}
|
|
121
|
+
if (!tables.has(table.dataAssetId)) {
|
|
122
|
+
tables.set(table.dataAssetId, isFocus
|
|
123
|
+
? {
|
|
124
|
+
dataAssetId: table.dataAssetId,
|
|
125
|
+
side: DataTableLineage_1.DataLineageSide.Focus,
|
|
126
|
+
depth: 0,
|
|
127
|
+
}
|
|
128
|
+
: table);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
if (focus.kind === "table" && !tables.has(focus.id)) {
|
|
132
|
+
tables.set(focus.id, {
|
|
133
|
+
dataAssetId: focus.id,
|
|
134
|
+
side: DataTableLineage_1.DataLineageSide.Focus,
|
|
135
|
+
depth: 0,
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
if (node.kind === "table") {
|
|
139
|
+
const drawn = tables.get(node.id);
|
|
140
|
+
if (!drawn) {
|
|
141
|
+
return "The card to draw more of is not on the drawing: name it among the tables drawn.";
|
|
142
|
+
}
|
|
143
|
+
if (drawn.side !== DataTableLineage_1.DataLineageSide.Focus && drawn.side !== side) {
|
|
144
|
+
return "A table upstream has more drawn upstream, and a table downstream downstream.";
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
const dashboards = (_a = data["dataDashboardIds"]) !== null && _a !== void 0 ? _a : [];
|
|
148
|
+
if (!Array.isArray(dashboards) ||
|
|
149
|
+
dashboards.some((id) => {
|
|
150
|
+
return typeof id !== "string" || !ObjectID_1.default.isValidUUID(id);
|
|
151
|
+
})) {
|
|
152
|
+
return "Name the dashboards drawn by their IDs: dataDashboardIds.";
|
|
153
|
+
}
|
|
154
|
+
const dataDashboardIds = Array.from(new Set(dashboards));
|
|
155
|
+
if (dataDashboardIds.length > DataTableLineage_1.MAX_DATA_LINEAGE_DASHBOARDS) {
|
|
156
|
+
return `Name at most ${DataTableLineage_1.MAX_DATA_LINEAGE_DASHBOARDS} drawn dashboards: no drawing holds more.`;
|
|
157
|
+
}
|
|
158
|
+
return {
|
|
159
|
+
focusNodeId,
|
|
160
|
+
nodeId,
|
|
161
|
+
side,
|
|
162
|
+
tables: Array.from(tables.values()),
|
|
163
|
+
dataDashboardIds,
|
|
164
|
+
withColumns: data["withColumns"] === true,
|
|
165
|
+
};
|
|
166
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import commonJsModule from "./DataLineageExpansion.js";
|
|
2
|
+
export const MAX_DATA_LINEAGE_DRAWN_TABLES = commonJsModule.MAX_DATA_LINEAGE_DRAWN_TABLES;
|
|
3
|
+
export const readDataLineageExpandRequest = commonJsModule.readDataLineageExpandRequest;
|
|
4
|
+
export const readLineageCardId = commonJsModule.readLineageCardId;
|
|
@@ -18,13 +18,18 @@ export declare const DATA_OBSERVABILITY_API_ROUTES: {
|
|
|
18
18
|
checkApply: string;
|
|
19
19
|
alertExplanation: (alertId: string) => string;
|
|
20
20
|
alertFeedback: (alertId: string) => string;
|
|
21
|
+
alertLineage: (alertId: string) => string;
|
|
21
22
|
quality: string;
|
|
22
23
|
watchedTables: string;
|
|
23
24
|
storeWatch: (dataStoreId: string) => string;
|
|
24
25
|
tableFreshness: string;
|
|
25
26
|
biSync: (dataBiConnectionId: string) => string;
|
|
27
|
+
biRefreshAlert: (dataBiConnectionId: string) => string;
|
|
26
28
|
tableDashboards: string;
|
|
27
29
|
tableLineage: string;
|
|
30
|
+
tableLineageAnswer: string;
|
|
31
|
+
pipelineLineage: string;
|
|
32
|
+
lineageExpand: string;
|
|
28
33
|
tableSensitivity: string;
|
|
29
34
|
tableErrors: string;
|
|
30
35
|
aiAppTables: string;
|
|
@@ -107,6 +112,9 @@ export interface DataObservabilityDataProductBadgeResetResponse {
|
|
|
107
112
|
export interface DataObservabilityCheckAlertResponse {
|
|
108
113
|
monitorId: string | null;
|
|
109
114
|
}
|
|
115
|
+
export interface DataObservabilityBiRefreshAlertResponse {
|
|
116
|
+
monitorId: string | null;
|
|
117
|
+
}
|
|
110
118
|
export declare enum DataObservabilityCollector {
|
|
111
119
|
OneUptime = "OneUptime",
|
|
112
120
|
Probe = "Probe"
|
|
@@ -18,13 +18,18 @@ export declare const DATA_OBSERVABILITY_API_ROUTES: {
|
|
|
18
18
|
checkApply: string;
|
|
19
19
|
alertExplanation: (alertId: string) => string;
|
|
20
20
|
alertFeedback: (alertId: string) => string;
|
|
21
|
+
alertLineage: (alertId: string) => string;
|
|
21
22
|
quality: string;
|
|
22
23
|
watchedTables: string;
|
|
23
24
|
storeWatch: (dataStoreId: string) => string;
|
|
24
25
|
tableFreshness: string;
|
|
25
26
|
biSync: (dataBiConnectionId: string) => string;
|
|
27
|
+
biRefreshAlert: (dataBiConnectionId: string) => string;
|
|
26
28
|
tableDashboards: string;
|
|
27
29
|
tableLineage: string;
|
|
30
|
+
tableLineageAnswer: string;
|
|
31
|
+
pipelineLineage: string;
|
|
32
|
+
lineageExpand: string;
|
|
28
33
|
tableSensitivity: string;
|
|
29
34
|
tableErrors: string;
|
|
30
35
|
aiAppTables: string;
|
|
@@ -107,6 +112,9 @@ export interface DataObservabilityDataProductBadgeResetResponse {
|
|
|
107
112
|
export interface DataObservabilityCheckAlertResponse {
|
|
108
113
|
monitorId: string | null;
|
|
109
114
|
}
|
|
115
|
+
export interface DataObservabilityBiRefreshAlertResponse {
|
|
116
|
+
monitorId: string | null;
|
|
117
|
+
}
|
|
110
118
|
export declare enum DataObservabilityCollector {
|
|
111
119
|
OneUptime = "OneUptime",
|
|
112
120
|
Probe = "Probe"
|
|
@@ -18,6 +18,10 @@ exports.DATA_OBSERVABILITY_API_ROUTES = {
|
|
|
18
18
|
alertFeedback: (alertId) => {
|
|
19
19
|
return `/data-observability/alerts/${alertId}/feedback`;
|
|
20
20
|
},
|
|
21
|
+
// The lineage around a data alert, with the ways to its cause and to the alerts it caused.
|
|
22
|
+
alertLineage: (alertId) => {
|
|
23
|
+
return `/data-observability/alerts/${alertId}/lineage`;
|
|
24
|
+
},
|
|
21
25
|
// How well Data Observability is working for the project.
|
|
22
26
|
quality: "/data-observability/quality",
|
|
23
27
|
watchedTables: "/data-observability/watched-tables",
|
|
@@ -72,10 +76,20 @@ exports.DATA_OBSERVABILITY_API_ROUTES = {
|
|
|
72
76
|
biSync: (dataBiConnectionId) => {
|
|
73
77
|
return `/data-observability/bi-connections/${dataBiConnectionId}/sync`;
|
|
74
78
|
},
|
|
79
|
+
// Makes the BI tool's monitor on failed refreshes match it: made, kept or removed.
|
|
80
|
+
biRefreshAlert: (dataBiConnectionId) => {
|
|
81
|
+
return `/data-observability/bi-connections/${dataBiConnectionId}/refresh-alert`;
|
|
82
|
+
},
|
|
75
83
|
// The dashboards built on a table, and on the tables built from it.
|
|
76
84
|
tableDashboards: "/data-observability/tables/dashboards",
|
|
77
85
|
// A table's lineage several steps each way, with how each table is now: what its Lineage tab draws.
|
|
78
86
|
tableLineage: "/data-observability/tables/lineage",
|
|
87
|
+
// A table's lineage told in words, problems first, by its name: what the MCP server's lineage tool asks.
|
|
88
|
+
tableLineageAnswer: "/data-observability/tables/lineage/answer",
|
|
89
|
+
// A pipeline's lineage: the tables it reads and writes, with how each is now: what its page draws.
|
|
90
|
+
pipelineLineage: "/data-observability/pipelines/lineage",
|
|
91
|
+
// The next tables a card of a lineage diagram does not draw: what pressing its count asks.
|
|
92
|
+
lineageExpand: "/data-observability/lineage/expand",
|
|
79
93
|
// What Data Security knows each of a table's columns holds.
|
|
80
94
|
tableSensitivity: "/data-observability/tables/sensitivity",
|
|
81
95
|
// The errors in the services that write a table, naming it.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DataAssetFreshness } from "./DataAssetFreshness.mjs";
|
|
2
2
|
import DataAssetKind from "./DataAssetKind.mjs";
|
|
3
3
|
import DataAssetLineageSource from "./DataAssetLineageSource.mjs";
|
|
4
|
+
import { DataColumnMapping } from "./DataColumnLineage.mjs";
|
|
4
5
|
export declare enum DataLineageNodeKind {
|
|
5
6
|
Table = "Table",
|
|
6
7
|
Pipeline = "Pipeline",
|
|
@@ -17,6 +18,7 @@ export declare enum DataLineageEdgeKind {
|
|
|
17
18
|
Reads = "Reads"
|
|
18
19
|
}
|
|
19
20
|
export declare const DEFAULT_DATA_LINEAGE_DEPTH: number;
|
|
21
|
+
export declare const DEFAULT_DATA_PIPELINE_LINEAGE_DEPTH: number;
|
|
20
22
|
export declare const MAX_DATA_LINEAGE_DEPTH: number;
|
|
21
23
|
export declare const DATA_LINEAGE_DEPTH_CHOICES: ReadonlyArray<number>;
|
|
22
24
|
export declare const MAX_DATA_LINEAGE_NEIGHBORS: number;
|
|
@@ -24,6 +26,7 @@ export declare const MAX_DATA_LINEAGE_TABLES_PER_SIDE: number;
|
|
|
24
26
|
export declare const MAX_DATA_LINEAGE_PIPELINES_PER_TABLE: number;
|
|
25
27
|
export declare const MAX_DATA_LINEAGE_DASHBOARDS: number;
|
|
26
28
|
export declare const MAX_DATA_LINEAGE_ERROR_LENGTH: number;
|
|
29
|
+
export declare const MAX_DATA_LINEAGE_COLUMN_MAPPINGS: number;
|
|
27
30
|
export interface DataTableLineagePipeline {
|
|
28
31
|
dataPipelineId: string;
|
|
29
32
|
name: string;
|
|
@@ -61,6 +64,15 @@ export interface DataTableLineageEdge {
|
|
|
61
64
|
seenIn: Array<DataAssetLineageSource>;
|
|
62
65
|
pipelines: Array<DataTableLineagePipeline>;
|
|
63
66
|
lastSeenAt: string | null;
|
|
67
|
+
columnMappings?: Array<DataColumnMapping> | undefined;
|
|
68
|
+
}
|
|
69
|
+
export interface DataLineageHighlight {
|
|
70
|
+
nodeIds: Array<string>;
|
|
71
|
+
edgeIds: Array<string>;
|
|
72
|
+
causeNodeIds: Array<string>;
|
|
73
|
+
consequenceNodeIds: Array<string>;
|
|
74
|
+
dataPipelineIds: Array<string>;
|
|
75
|
+
causeDataPipelineIds: Array<string>;
|
|
64
76
|
}
|
|
65
77
|
export interface DataTableLineage {
|
|
66
78
|
focusNodeId: string;
|
|
@@ -69,19 +81,35 @@ export interface DataTableLineage {
|
|
|
69
81
|
edges: Array<DataTableLineageEdge>;
|
|
70
82
|
hiddenDashboardCount: number;
|
|
71
83
|
isTruncated: boolean;
|
|
84
|
+
highlight?: DataLineageHighlight | undefined;
|
|
72
85
|
}
|
|
73
86
|
export interface DataTableLineageRequest {
|
|
74
87
|
dataAssetId: string;
|
|
75
88
|
depth?: number | undefined;
|
|
89
|
+
withColumns?: boolean | undefined;
|
|
90
|
+
}
|
|
91
|
+
export interface DataPipelineLineageRequest {
|
|
92
|
+
dataPipelineId: string;
|
|
93
|
+
depth?: number | undefined;
|
|
94
|
+
}
|
|
95
|
+
export interface DataAlertLineageAnswer {
|
|
96
|
+
lineage: DataTableLineage | null;
|
|
97
|
+
hasCause: boolean;
|
|
98
|
+
isCauseDrawn: boolean;
|
|
99
|
+
consequenceCount: number;
|
|
100
|
+
drawnConsequenceCount: number;
|
|
101
|
+
column: string | null;
|
|
102
|
+
isAlertOpen?: boolean | undefined;
|
|
76
103
|
}
|
|
77
104
|
export declare function getLineageTableNodeId(dataAssetId: string): string;
|
|
78
105
|
export declare function getLineagePipelineNodeId(dataPipelineId: string): string;
|
|
79
106
|
export declare function getLineageDashboardNodeId(dataDashboardId: string): string;
|
|
107
|
+
export declare function isLineagePipelineNodeId(nodeId: string): boolean;
|
|
80
108
|
export declare function getLineageEdgeId(data: {
|
|
81
109
|
kind: DataLineageEdgeKind;
|
|
82
110
|
source: string;
|
|
83
111
|
target: string;
|
|
84
112
|
}): string;
|
|
85
|
-
export declare function readDataLineageDepth(value: unknown): number;
|
|
113
|
+
export declare function readDataLineageDepth(value: unknown, fallback?: number): number;
|
|
86
114
|
export declare function isFailedLineageRunState(state: string | null | undefined): boolean;
|
|
87
115
|
export declare function isRunningLineageRunState(state: string | null | undefined): boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DataAssetFreshness } from "./DataAssetFreshness";
|
|
2
2
|
import DataAssetKind from "./DataAssetKind";
|
|
3
3
|
import DataAssetLineageSource from "./DataAssetLineageSource";
|
|
4
|
+
import { DataColumnMapping } from "./DataColumnLineage";
|
|
4
5
|
export declare enum DataLineageNodeKind {
|
|
5
6
|
Table = "Table",
|
|
6
7
|
Pipeline = "Pipeline",
|
|
@@ -17,6 +18,7 @@ export declare enum DataLineageEdgeKind {
|
|
|
17
18
|
Reads = "Reads"
|
|
18
19
|
}
|
|
19
20
|
export declare const DEFAULT_DATA_LINEAGE_DEPTH: number;
|
|
21
|
+
export declare const DEFAULT_DATA_PIPELINE_LINEAGE_DEPTH: number;
|
|
20
22
|
export declare const MAX_DATA_LINEAGE_DEPTH: number;
|
|
21
23
|
export declare const DATA_LINEAGE_DEPTH_CHOICES: ReadonlyArray<number>;
|
|
22
24
|
export declare const MAX_DATA_LINEAGE_NEIGHBORS: number;
|
|
@@ -24,6 +26,7 @@ export declare const MAX_DATA_LINEAGE_TABLES_PER_SIDE: number;
|
|
|
24
26
|
export declare const MAX_DATA_LINEAGE_PIPELINES_PER_TABLE: number;
|
|
25
27
|
export declare const MAX_DATA_LINEAGE_DASHBOARDS: number;
|
|
26
28
|
export declare const MAX_DATA_LINEAGE_ERROR_LENGTH: number;
|
|
29
|
+
export declare const MAX_DATA_LINEAGE_COLUMN_MAPPINGS: number;
|
|
27
30
|
export interface DataTableLineagePipeline {
|
|
28
31
|
dataPipelineId: string;
|
|
29
32
|
name: string;
|
|
@@ -61,6 +64,15 @@ export interface DataTableLineageEdge {
|
|
|
61
64
|
seenIn: Array<DataAssetLineageSource>;
|
|
62
65
|
pipelines: Array<DataTableLineagePipeline>;
|
|
63
66
|
lastSeenAt: string | null;
|
|
67
|
+
columnMappings?: Array<DataColumnMapping> | undefined;
|
|
68
|
+
}
|
|
69
|
+
export interface DataLineageHighlight {
|
|
70
|
+
nodeIds: Array<string>;
|
|
71
|
+
edgeIds: Array<string>;
|
|
72
|
+
causeNodeIds: Array<string>;
|
|
73
|
+
consequenceNodeIds: Array<string>;
|
|
74
|
+
dataPipelineIds: Array<string>;
|
|
75
|
+
causeDataPipelineIds: Array<string>;
|
|
64
76
|
}
|
|
65
77
|
export interface DataTableLineage {
|
|
66
78
|
focusNodeId: string;
|
|
@@ -69,19 +81,35 @@ export interface DataTableLineage {
|
|
|
69
81
|
edges: Array<DataTableLineageEdge>;
|
|
70
82
|
hiddenDashboardCount: number;
|
|
71
83
|
isTruncated: boolean;
|
|
84
|
+
highlight?: DataLineageHighlight | undefined;
|
|
72
85
|
}
|
|
73
86
|
export interface DataTableLineageRequest {
|
|
74
87
|
dataAssetId: string;
|
|
75
88
|
depth?: number | undefined;
|
|
89
|
+
withColumns?: boolean | undefined;
|
|
90
|
+
}
|
|
91
|
+
export interface DataPipelineLineageRequest {
|
|
92
|
+
dataPipelineId: string;
|
|
93
|
+
depth?: number | undefined;
|
|
94
|
+
}
|
|
95
|
+
export interface DataAlertLineageAnswer {
|
|
96
|
+
lineage: DataTableLineage | null;
|
|
97
|
+
hasCause: boolean;
|
|
98
|
+
isCauseDrawn: boolean;
|
|
99
|
+
consequenceCount: number;
|
|
100
|
+
drawnConsequenceCount: number;
|
|
101
|
+
column: string | null;
|
|
102
|
+
isAlertOpen?: boolean | undefined;
|
|
76
103
|
}
|
|
77
104
|
export declare function getLineageTableNodeId(dataAssetId: string): string;
|
|
78
105
|
export declare function getLineagePipelineNodeId(dataPipelineId: string): string;
|
|
79
106
|
export declare function getLineageDashboardNodeId(dataDashboardId: string): string;
|
|
107
|
+
export declare function isLineagePipelineNodeId(nodeId: string): boolean;
|
|
80
108
|
export declare function getLineageEdgeId(data: {
|
|
81
109
|
kind: DataLineageEdgeKind;
|
|
82
110
|
source: string;
|
|
83
111
|
target: string;
|
|
84
112
|
}): string;
|
|
85
|
-
export declare function readDataLineageDepth(value: unknown): number;
|
|
113
|
+
export declare function readDataLineageDepth(value: unknown, fallback?: number): number;
|
|
86
114
|
export declare function isFailedLineageRunState(state: string | null | undefined): boolean;
|
|
87
115
|
export declare function isRunningLineageRunState(state: string | null | undefined): boolean;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MAX_DATA_LINEAGE_ERROR_LENGTH = exports.MAX_DATA_LINEAGE_DASHBOARDS = exports.MAX_DATA_LINEAGE_PIPELINES_PER_TABLE = exports.MAX_DATA_LINEAGE_TABLES_PER_SIDE = exports.MAX_DATA_LINEAGE_NEIGHBORS = exports.DATA_LINEAGE_DEPTH_CHOICES = exports.MAX_DATA_LINEAGE_DEPTH = exports.DEFAULT_DATA_LINEAGE_DEPTH = exports.DataLineageEdgeKind = exports.DataLineageSide = exports.DataLineageNodeKind = void 0;
|
|
3
|
+
exports.MAX_DATA_LINEAGE_COLUMN_MAPPINGS = exports.MAX_DATA_LINEAGE_ERROR_LENGTH = exports.MAX_DATA_LINEAGE_DASHBOARDS = exports.MAX_DATA_LINEAGE_PIPELINES_PER_TABLE = exports.MAX_DATA_LINEAGE_TABLES_PER_SIDE = exports.MAX_DATA_LINEAGE_NEIGHBORS = exports.DATA_LINEAGE_DEPTH_CHOICES = exports.MAX_DATA_LINEAGE_DEPTH = exports.DEFAULT_DATA_PIPELINE_LINEAGE_DEPTH = exports.DEFAULT_DATA_LINEAGE_DEPTH = exports.DataLineageEdgeKind = exports.DataLineageSide = exports.DataLineageNodeKind = void 0;
|
|
4
4
|
exports.getLineageTableNodeId = getLineageTableNodeId;
|
|
5
5
|
exports.getLineagePipelineNodeId = getLineagePipelineNodeId;
|
|
6
6
|
exports.getLineageDashboardNodeId = getLineageDashboardNodeId;
|
|
7
|
+
exports.isLineagePipelineNodeId = isLineagePipelineNodeId;
|
|
7
8
|
exports.getLineageEdgeId = getLineageEdgeId;
|
|
8
9
|
exports.readDataLineageDepth = readDataLineageDepth;
|
|
9
10
|
exports.isFailedLineageRunState = isFailedLineageRunState;
|
|
@@ -32,8 +33,13 @@ exports.isRunningLineageRunState = isRunningLineageRunState;
|
|
|
32
33
|
*
|
|
33
34
|
* A drawing past a few dozen cards is read by nobody, so each table shows
|
|
34
35
|
* its nearest neighbours each way, problems first, and says how many more
|
|
35
|
-
* there are (hiddenUpstreamCount, hiddenDownstreamCount):
|
|
36
|
-
*
|
|
36
|
+
* there are (hiddenUpstreamCount, hiddenDownstreamCount): pressing that
|
|
37
|
+
* count draws the next of them where they are (DataLineageExpansion), and
|
|
38
|
+
* opening that table centers the drawing on it.
|
|
39
|
+
*
|
|
40
|
+
* Asked for with its columns (withColumns), each arrow between two tables
|
|
41
|
+
* also says which columns of one feed which of the other, where its sources
|
|
42
|
+
* name them, so the diagram can follow one column up and down.
|
|
37
43
|
*/
|
|
38
44
|
var DataLineageNodeKind;
|
|
39
45
|
(function (DataLineageNodeKind) {
|
|
@@ -59,6 +65,8 @@ var DataLineageEdgeKind;
|
|
|
59
65
|
})(DataLineageEdgeKind || (exports.DataLineageEdgeKind = DataLineageEdgeKind = {}));
|
|
60
66
|
// The steps each way a drawing shows unless asked for another number.
|
|
61
67
|
exports.DEFAULT_DATA_LINEAGE_DEPTH = 3;
|
|
68
|
+
// A pipeline's drawing: the tables it reads and the tables it writes, unless asked for more.
|
|
69
|
+
exports.DEFAULT_DATA_PIPELINE_LINEAGE_DEPTH = 1;
|
|
62
70
|
// The most steps each way one drawing walks: the depth a data alert's cause is looked for at.
|
|
63
71
|
exports.MAX_DATA_LINEAGE_DEPTH = 5;
|
|
64
72
|
// The choices the Lineage tab offers.
|
|
@@ -73,6 +81,13 @@ exports.MAX_DATA_LINEAGE_PIPELINES_PER_TABLE = 5;
|
|
|
73
81
|
exports.MAX_DATA_LINEAGE_DASHBOARDS = 25;
|
|
74
82
|
// The longest pipeline error a card carries: the pipeline's page has all of it.
|
|
75
83
|
exports.MAX_DATA_LINEAGE_ERROR_LENGTH = 500;
|
|
84
|
+
/*
|
|
85
|
+
* The most column pairs one answer carries, the arrows nearest the drawing's
|
|
86
|
+
* own card first; an arrow past them carries none, as one whose sources name
|
|
87
|
+
* no columns. Each arrow carries at most MAX_COLUMN_MAPPINGS_PER_EDGE, as
|
|
88
|
+
* kept.
|
|
89
|
+
*/
|
|
90
|
+
exports.MAX_DATA_LINEAGE_COLUMN_MAPPINGS = 10000;
|
|
76
91
|
function getLineageTableNodeId(dataAssetId) {
|
|
77
92
|
return `table:${dataAssetId}`;
|
|
78
93
|
}
|
|
@@ -82,22 +97,27 @@ function getLineagePipelineNodeId(dataPipelineId) {
|
|
|
82
97
|
function getLineageDashboardNodeId(dataDashboardId) {
|
|
83
98
|
return `dashboard:${dataDashboardId}`;
|
|
84
99
|
}
|
|
100
|
+
// Whether a card is a pipeline's: on a pipeline's own drawing, the card it is about.
|
|
101
|
+
function isLineagePipelineNodeId(nodeId) {
|
|
102
|
+
return nodeId.startsWith("pipeline:");
|
|
103
|
+
}
|
|
85
104
|
function getLineageEdgeId(data) {
|
|
86
105
|
return `${data.kind}:${data.source}>${data.target}`;
|
|
87
106
|
}
|
|
88
107
|
/*
|
|
89
108
|
* The steps each way a request asks for: a whole number from 1 to the most,
|
|
90
|
-
* the default when it names none or one that cannot be read
|
|
91
|
-
*
|
|
109
|
+
* the default when it names none or one that cannot be read (a table's
|
|
110
|
+
* three, unless another is given: a pipeline's one). A number past the most
|
|
111
|
+
* is the most, so a request for "all of it" draws what can be.
|
|
92
112
|
*/
|
|
93
|
-
function readDataLineageDepth(value) {
|
|
113
|
+
function readDataLineageDepth(value, fallback = exports.DEFAULT_DATA_LINEAGE_DEPTH) {
|
|
94
114
|
const number = typeof value === "number"
|
|
95
115
|
? value
|
|
96
116
|
: typeof value === "string" && value.trim() !== ""
|
|
97
117
|
? Number(value)
|
|
98
118
|
: NaN;
|
|
99
119
|
if (!Number.isFinite(number)) {
|
|
100
|
-
return
|
|
120
|
+
return fallback;
|
|
101
121
|
}
|
|
102
122
|
return Math.min(exports.MAX_DATA_LINEAGE_DEPTH, Math.max(1, Math.floor(number)));
|
|
103
123
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import commonJsModule from "./DataTableLineage.js";
|
|
2
2
|
export const DATA_LINEAGE_DEPTH_CHOICES = commonJsModule.DATA_LINEAGE_DEPTH_CHOICES;
|
|
3
3
|
export const DEFAULT_DATA_LINEAGE_DEPTH = commonJsModule.DEFAULT_DATA_LINEAGE_DEPTH;
|
|
4
|
+
export const DEFAULT_DATA_PIPELINE_LINEAGE_DEPTH = commonJsModule.DEFAULT_DATA_PIPELINE_LINEAGE_DEPTH;
|
|
4
5
|
export const DataLineageEdgeKind = commonJsModule.DataLineageEdgeKind;
|
|
5
6
|
export const DataLineageNodeKind = commonJsModule.DataLineageNodeKind;
|
|
6
7
|
export const DataLineageSide = commonJsModule.DataLineageSide;
|
|
8
|
+
export const MAX_DATA_LINEAGE_COLUMN_MAPPINGS = commonJsModule.MAX_DATA_LINEAGE_COLUMN_MAPPINGS;
|
|
7
9
|
export const MAX_DATA_LINEAGE_DASHBOARDS = commonJsModule.MAX_DATA_LINEAGE_DASHBOARDS;
|
|
8
10
|
export const MAX_DATA_LINEAGE_DEPTH = commonJsModule.MAX_DATA_LINEAGE_DEPTH;
|
|
9
11
|
export const MAX_DATA_LINEAGE_ERROR_LENGTH = commonJsModule.MAX_DATA_LINEAGE_ERROR_LENGTH;
|
|
@@ -15,5 +17,6 @@ export const getLineageEdgeId = commonJsModule.getLineageEdgeId;
|
|
|
15
17
|
export const getLineagePipelineNodeId = commonJsModule.getLineagePipelineNodeId;
|
|
16
18
|
export const getLineageTableNodeId = commonJsModule.getLineageTableNodeId;
|
|
17
19
|
export const isFailedLineageRunState = commonJsModule.isFailedLineageRunState;
|
|
20
|
+
export const isLineagePipelineNodeId = commonJsModule.isLineagePipelineNodeId;
|
|
18
21
|
export const isRunningLineageRunState = commonJsModule.isRunningLineageRunState;
|
|
19
22
|
export const readDataLineageDepth = commonJsModule.readDataLineageDepth;
|
package/Types/Date.d.mts
CHANGED
|
@@ -65,6 +65,7 @@ export default class OneUptimeDate {
|
|
|
65
65
|
use12HourFormat?: boolean | undefined;
|
|
66
66
|
}): string;
|
|
67
67
|
static getDateAsLocalDayMonthString(date: Date | string): string;
|
|
68
|
+
static getDateAsLocalDayMonthYearString(date: Date | string): string;
|
|
68
69
|
static getDateAsLocalDayMonthHourString(date: Date | string): string;
|
|
69
70
|
/**
|
|
70
71
|
* "02 Mar, 14:30" — a day-qualified wall clock, for chart axes whose
|
|
@@ -105,10 +106,14 @@ export default class OneUptimeDate {
|
|
|
105
106
|
* configured timezone (falling back to the one the browser reports), and the
|
|
106
107
|
* 12- vs 24-hour choice follows the operating system's clock preference
|
|
107
108
|
* unless a caller overrides it.
|
|
109
|
+
*
|
|
110
|
+
* With `showYear`, the year too: "Mar 1, 2025, 14:30" - for a window whose
|
|
111
|
+
* ends are not both in this year (isWindowInTheCurrentYear).
|
|
108
112
|
*/
|
|
109
113
|
static getDateAsLocalShortDateTimeString(date: Date | string, options?: {
|
|
110
114
|
use12HourFormat?: boolean | undefined;
|
|
111
115
|
includeSeconds?: boolean | undefined;
|
|
116
|
+
showYear?: boolean | undefined;
|
|
112
117
|
}): string;
|
|
113
118
|
/**
|
|
114
119
|
* A moment as a list's cell writes it: "Oct 22, 7:25 AM" - a date of this
|
|
@@ -134,6 +139,7 @@ export default class OneUptimeDate {
|
|
|
134
139
|
now?: Date | undefined;
|
|
135
140
|
}): string;
|
|
136
141
|
static getDateAsLocalMonthYearString(date: Date | string): string;
|
|
142
|
+
static getDateAsLocalYearString(date: Date | string): string;
|
|
137
143
|
static getMillisecondsBetweenTwoUnixNanoDates(startDate: number, endDate: number): number;
|
|
138
144
|
static moveDateToTheDayOfWeek(date: Date, moveToWeek: Date, dayOfWeek: DayOfWeek, timezone?: string | undefined): Date;
|
|
139
145
|
static getDayOfTheWeekIndex(date: Date): number;
|
|
@@ -170,6 +176,22 @@ export default class OneUptimeDate {
|
|
|
170
176
|
}): string;
|
|
171
177
|
private static getEnglishDateInTimezone;
|
|
172
178
|
static isSameYearInTimezone(a: Date | string, b: Date | string, timezone?: string | undefined): boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Whether both ends of a window fall in the current year, on the reader's
|
|
181
|
+
* calendar (the configured timezone, New Year included): a label of the
|
|
182
|
+
* window can then leave the year out, as the time range button does
|
|
183
|
+
* ("Mar 1, 14:30 – Mar 2, 09:00"). Otherwise it cannot: a custom range of
|
|
184
|
+
* exactly a year read "Nov 12, 9:49 AM – Nov 12, 9:49 AM", as if it were
|
|
185
|
+
* no time at all, and a range in an earlier year did not say which (issue
|
|
186
|
+
* #7124).
|
|
187
|
+
*
|
|
188
|
+
* "The current year" is the one `now` is in: now, unless a caller says.
|
|
189
|
+
*/
|
|
190
|
+
static isWindowInTheCurrentYear(data: {
|
|
191
|
+
start: Date | string;
|
|
192
|
+
end: Date | string;
|
|
193
|
+
now?: Date | undefined;
|
|
194
|
+
}): boolean;
|
|
173
195
|
static getDateAsCustomFormattedStringInTimezone(data: {
|
|
174
196
|
date: Date | string;
|
|
175
197
|
format: string;
|
package/Types/Date.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export default class OneUptimeDate {
|
|
|
65
65
|
use12HourFormat?: boolean | undefined;
|
|
66
66
|
}): string;
|
|
67
67
|
static getDateAsLocalDayMonthString(date: Date | string): string;
|
|
68
|
+
static getDateAsLocalDayMonthYearString(date: Date | string): string;
|
|
68
69
|
static getDateAsLocalDayMonthHourString(date: Date | string): string;
|
|
69
70
|
/**
|
|
70
71
|
* "02 Mar, 14:30" — a day-qualified wall clock, for chart axes whose
|
|
@@ -105,10 +106,14 @@ export default class OneUptimeDate {
|
|
|
105
106
|
* configured timezone (falling back to the one the browser reports), and the
|
|
106
107
|
* 12- vs 24-hour choice follows the operating system's clock preference
|
|
107
108
|
* unless a caller overrides it.
|
|
109
|
+
*
|
|
110
|
+
* With `showYear`, the year too: "Mar 1, 2025, 14:30" - for a window whose
|
|
111
|
+
* ends are not both in this year (isWindowInTheCurrentYear).
|
|
108
112
|
*/
|
|
109
113
|
static getDateAsLocalShortDateTimeString(date: Date | string, options?: {
|
|
110
114
|
use12HourFormat?: boolean | undefined;
|
|
111
115
|
includeSeconds?: boolean | undefined;
|
|
116
|
+
showYear?: boolean | undefined;
|
|
112
117
|
}): string;
|
|
113
118
|
/**
|
|
114
119
|
* A moment as a list's cell writes it: "Oct 22, 7:25 AM" - a date of this
|
|
@@ -134,6 +139,7 @@ export default class OneUptimeDate {
|
|
|
134
139
|
now?: Date | undefined;
|
|
135
140
|
}): string;
|
|
136
141
|
static getDateAsLocalMonthYearString(date: Date | string): string;
|
|
142
|
+
static getDateAsLocalYearString(date: Date | string): string;
|
|
137
143
|
static getMillisecondsBetweenTwoUnixNanoDates(startDate: number, endDate: number): number;
|
|
138
144
|
static moveDateToTheDayOfWeek(date: Date, moveToWeek: Date, dayOfWeek: DayOfWeek, timezone?: string | undefined): Date;
|
|
139
145
|
static getDayOfTheWeekIndex(date: Date): number;
|
|
@@ -170,6 +176,22 @@ export default class OneUptimeDate {
|
|
|
170
176
|
}): string;
|
|
171
177
|
private static getEnglishDateInTimezone;
|
|
172
178
|
static isSameYearInTimezone(a: Date | string, b: Date | string, timezone?: string | undefined): boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Whether both ends of a window fall in the current year, on the reader's
|
|
181
|
+
* calendar (the configured timezone, New Year included): a label of the
|
|
182
|
+
* window can then leave the year out, as the time range button does
|
|
183
|
+
* ("Mar 1, 14:30 – Mar 2, 09:00"). Otherwise it cannot: a custom range of
|
|
184
|
+
* exactly a year read "Nov 12, 9:49 AM – Nov 12, 9:49 AM", as if it were
|
|
185
|
+
* no time at all, and a range in an earlier year did not say which (issue
|
|
186
|
+
* #7124).
|
|
187
|
+
*
|
|
188
|
+
* "The current year" is the one `now` is in: now, unless a caller says.
|
|
189
|
+
*/
|
|
190
|
+
static isWindowInTheCurrentYear(data: {
|
|
191
|
+
start: Date | string;
|
|
192
|
+
end: Date | string;
|
|
193
|
+
now?: Date | undefined;
|
|
194
|
+
}): boolean;
|
|
173
195
|
static getDateAsCustomFormattedStringInTimezone(data: {
|
|
174
196
|
date: Date | string;
|
|
175
197
|
format: string;
|