@oneuptime/common 14.3.0 → 15.0.0
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/DatabaseModels/AIAgent.js +5 -1
- package/Models/DatabaseModels/AcmeCertificate.js +14 -0
- package/Models/DatabaseModels/Alert.js +6 -8
- package/Models/DatabaseModels/AlertEpisodeStateTimeline.js +3 -2
- package/Models/DatabaseModels/AlertSeverity.js +3 -12
- package/Models/DatabaseModels/ApiKey.d.mts +3 -1
- package/Models/DatabaseModels/ApiKey.d.ts +3 -1
- package/Models/DatabaseModels/ApiKey.js +67 -14
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.mts +1 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.ts +1 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.js +37 -4
- package/Models/DatabaseModels/CallLog.js +15 -3
- package/Models/DatabaseModels/CodeRepository.d.mts +1 -0
- package/Models/DatabaseModels/CodeRepository.d.ts +1 -0
- package/Models/DatabaseModels/CodeRepository.js +45 -2
- package/Models/DatabaseModels/CodeRepositoryMintedToken.d.mts +25 -0
- package/Models/DatabaseModels/CodeRepositoryMintedToken.d.ts +25 -0
- package/Models/DatabaseModels/CodeRepositoryMintedToken.js +436 -0
- package/Models/DatabaseModels/CodeRepositoryMintedToken.mjs +2 -0
- package/Models/DatabaseModels/Dashboard.js +10 -2
- package/Models/DatabaseModels/DashboardDomain.js +22 -27
- package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.d.mts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.d.ts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.js +30 -0
- package/Models/DatabaseModels/EmailLog.js +15 -3
- package/Models/DatabaseModels/File.js +4 -2
- package/Models/DatabaseModels/FormDomain.js +10 -2
- package/Models/DatabaseModels/GlobalConfig.d.mts +9 -1
- package/Models/DatabaseModels/GlobalConfig.d.ts +9 -1
- package/Models/DatabaseModels/GlobalConfig.js +186 -10
- package/Models/DatabaseModels/Incident.js +38 -44
- package/Models/DatabaseModels/IncidentEpisodePublicNote.js +11 -16
- package/Models/DatabaseModels/IncidentEpisodeStateTimeline.js +3 -2
- package/Models/DatabaseModels/IncidentPublicNote.js +11 -16
- package/Models/DatabaseModels/IncidentSeverity.js +3 -12
- package/Models/DatabaseModels/IncidentStateTimeline.js +12 -16
- package/Models/DatabaseModels/IncidentTemplate.js +6 -11
- package/Models/DatabaseModels/IncomingRequestSecret.d.mts +6 -0
- package/Models/DatabaseModels/IncomingRequestSecret.d.ts +6 -0
- package/Models/DatabaseModels/IncomingRequestSecret.js +156 -29
- package/Models/DatabaseModels/Index.js +2 -5
- package/Models/DatabaseModels/Monitor.d.mts +1 -0
- package/Models/DatabaseModels/Monitor.d.ts +1 -0
- package/Models/DatabaseModels/Monitor.js +97 -22
- package/Models/DatabaseModels/MonitorNetworkDevice.js +4 -1
- package/Models/DatabaseModels/MonitorTemplate.js +3 -1
- package/Models/DatabaseModels/MonitorTest.js +3 -1
- package/Models/DatabaseModels/NetworkDevice.js +16 -3
- package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.js +39 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +45 -12
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.d.mts +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.d.ts +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +93 -5
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.d.mts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.d.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +43 -0
- package/Models/DatabaseModels/Probe.js +5 -1
- package/Models/DatabaseModels/Project.d.mts +1 -1
- package/Models/DatabaseModels/Project.d.ts +1 -1
- package/Models/DatabaseModels/Project.js +59 -64
- package/Models/DatabaseModels/ProjectSmtpConfig.js +44 -49
- package/Models/DatabaseModels/PushNotificationLog.js +15 -3
- package/Models/DatabaseModels/Reseller.js +2 -8
- package/Models/DatabaseModels/ResellerPlan.js +2 -8
- package/Models/DatabaseModels/RunbookExecution.js +4 -4
- package/Models/DatabaseModels/Runner.d.mts +1 -0
- package/Models/DatabaseModels/Runner.d.ts +1 -0
- package/Models/DatabaseModels/Runner.js +50 -0
- package/Models/DatabaseModels/ScheduledMaintenance.js +32 -24
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +11 -16
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +12 -16
- package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +9 -8
- package/Models/DatabaseModels/ServiceLevelObjective.js +7 -0
- package/Models/DatabaseModels/SmsLog.js +15 -3
- package/Models/DatabaseModels/StatusPage.js +30 -11
- package/Models/DatabaseModels/StatusPageAnnouncement.js +19 -24
- package/Models/DatabaseModels/StatusPageDomain.js +24 -27
- package/Models/DatabaseModels/StatusPageSubscriber.js +5 -4
- package/Models/DatabaseModels/TelegramLog.js +15 -3
- package/Models/DatabaseModels/User.d.mts +0 -3
- package/Models/DatabaseModels/User.d.ts +0 -3
- package/Models/DatabaseModels/User.js +5 -73
- package/Models/DatabaseModels/UserOnCallLog.d.mts +1 -0
- package/Models/DatabaseModels/UserOnCallLog.d.ts +1 -0
- package/Models/DatabaseModels/UserOnCallLog.js +52 -5
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +10 -2
- package/Models/DatabaseModels/UserWebhook.js +14 -5
- package/Models/DatabaseModels/WebhookLog.js +15 -3
- package/Models/DatabaseModels/WhatsAppLog.js +15 -3
- package/Models/DatabaseModels/WorkspaceNotificationLog.js +15 -3
- package/Models/DatabaseModels/WorkspaceNotificationRule.js +10 -7
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.js +16 -2
- package/Models/DatabaseModels/WorkspaceUserAuthToken.js +13 -2
- package/Server/Services/DatabaseService.d.mts +57 -38
- package/Server/Services/DatabaseService.d.ts +57 -38
- package/Server/Types/Database/Permissions/PrivateRecordPermission.d.mts +123 -0
- package/Server/Types/Database/Permissions/PrivateRecordPermission.d.ts +123 -0
- package/Types/AI/AIActionWords.d.mts +14 -1
- package/Types/AI/AIActionWords.d.ts +14 -1
- package/Types/AI/AIActionWords.js +85 -1
- package/Types/AI/AIActionWords.mjs +4 -0
- package/Types/AI/AIAgentRunLimits.js +5 -4
- package/Types/AI/AIChatTypes.js +8 -3
- package/Types/AI/AIReadTableWords.js +7 -2
- package/Types/AI/AiActivityInsights.d.mts +1 -0
- package/Types/AI/AiActivityInsights.d.ts +1 -0
- package/Types/AI/CodeTask.d.mts +1 -0
- package/Types/AI/CodeTask.d.ts +1 -0
- package/Types/AI/CodeTask.js +7 -0
- package/Types/AI/ResourceAiAccessApi.d.mts +4 -0
- package/Types/AI/ResourceAiAccessApi.d.ts +4 -0
- package/Types/Accounts/MoreWaysToSignIn.d.mts +1 -0
- package/Types/Accounts/MoreWaysToSignIn.d.ts +1 -0
- package/Types/Accounts/MoreWaysToSignIn.js +11 -0
- package/Types/Accounts/MoreWaysToSignIn.mjs +2 -0
- package/Types/Accounts/SignInMessages.d.mts +5 -0
- package/Types/Accounts/SignInMessages.d.ts +5 -0
- package/Types/Accounts/SignInMessages.js +19 -1
- package/Types/Accounts/SignInMessages.mjs +2 -0
- package/Types/Analytics/ProductEvent.d.mts +7 -2
- package/Types/Analytics/ProductEvent.d.ts +7 -2
- package/Types/Analytics/ProductEvent.js +62 -12
- package/Types/ApiKey/ApiKeyShownOnce.d.mts +11 -0
- package/Types/ApiKey/ApiKeyShownOnce.d.ts +11 -0
- package/Types/ApiKey/ApiKeyShownOnce.js +78 -0
- package/Types/ApiKey/ApiKeyShownOnce.mjs +6 -0
- package/Types/AuditLog/AuditLogAction.d.mts +1 -0
- package/Types/AuditLog/AuditLogAction.d.ts +1 -0
- package/Types/AuditLog/AuditLogAction.js +11 -1
- package/Types/AuditLog/AuditLogActionLabel.js +1 -0
- package/Types/AuditLog/AuditLogCoverage.js +1 -0
- package/Types/AuditLog/AuditLogSessionEvent.d.mts +15 -3
- package/Types/AuditLog/AuditLogSessionEvent.d.ts +15 -3
- package/Types/AuditLog/AuditLogSessionEvent.js +107 -12
- package/Types/AuditLog/AuditLogSessionEvent.mjs +6 -0
- package/Types/AuditLog/AuditLogSignInFailure.d.mts +30 -0
- package/Types/AuditLog/AuditLogSignInFailure.d.ts +30 -0
- package/Types/AuditLog/AuditLogSignInFailure.js +109 -0
- package/Types/AuditLog/AuditLogSignInFailure.mjs +8 -0
- package/Types/AuditLog/AuditLogStatusPageSession.d.mts +29 -0
- package/Types/AuditLog/AuditLogStatusPageSession.d.ts +29 -0
- package/Types/AuditLog/AuditLogStatusPageSession.js +106 -0
- package/Types/AuditLog/AuditLogStatusPageSession.mjs +9 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.d.mts +11 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.d.ts +11 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.js +57 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.mjs +5 -0
- package/Types/AutoRemediation/RemediationApprovals.d.mts +39 -0
- package/Types/AutoRemediation/RemediationApprovals.d.ts +39 -0
- package/Types/AutoRemediation/RemediationApprovals.js +174 -8
- package/Types/AutoRemediation/RemediationApprovals.mjs +9 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.d.mts +15 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.d.ts +15 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.js +131 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.mjs +6 -0
- package/Types/BaseDatabase/SortNulls.d.mts +5 -0
- package/Types/BaseDatabase/SortNulls.d.ts +5 -0
- package/Types/BaseDatabase/SortNulls.js +14 -0
- package/Types/BaseDatabase/SortNulls.mjs +2 -0
- package/Types/Billing/AdminProjectInvoice.d.mts +20 -0
- package/Types/Billing/AdminProjectInvoice.d.ts +20 -0
- package/Types/Billing/AdminProjectInvoice.js +85 -0
- package/Types/Billing/AdminProjectInvoice.mjs +6 -0
- package/Types/CloudConnection/CloudAiAgentCost.d.mts +6 -2
- package/Types/CloudConnection/CloudAiAgentCost.d.ts +6 -2
- package/Types/CloudConnection/CloudAiAgentCost.js +28 -2
- package/Types/CloudConnection/CloudAiAgentCost.mjs +4 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.mts +19 -1
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.ts +19 -1
- package/Types/CloudConnection/CloudAiAgentSetupCommands.js +354 -16
- package/Types/CloudConnection/CloudAiAgentSetupCommands.mjs +17 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.d.mts +10 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.d.ts +10 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.js +69 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.mjs +11 -0
- package/Types/DataObservability/DataLineageMap.d.mts +147 -0
- package/Types/DataObservability/DataLineageMap.d.ts +147 -0
- package/Types/DataObservability/DataLineageMap.js +503 -0
- package/Types/DataObservability/DataLineageMap.mjs +20 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.mts +1 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +1 -0
- package/Types/DataObservability/DataObservabilityApiTypes.js +2 -0
- package/Types/Database/TableColumn.d.mts +1 -0
- package/Types/Database/TableColumn.d.ts +1 -0
- package/Types/Database/UserAttribution.js +7 -3
- package/Types/Date.d.mts +0 -2
- package/Types/Date.d.ts +0 -2
- package/Types/Date.js +12 -19
- package/Types/Email/EmailMessage.d.mts +2 -0
- package/Types/Email/EmailMessage.d.ts +2 -0
- package/Types/Email/EmailRecipients.d.mts +11 -0
- package/Types/Email/EmailRecipients.d.ts +11 -0
- package/Types/Email/EmailRecipients.js +84 -0
- package/Types/Email/EmailRecipients.mjs +6 -0
- package/Types/Email/EmailTemplateType.d.mts +2 -1
- package/Types/Email/EmailTemplateType.d.ts +2 -1
- package/Types/Email/EmailTemplateType.js +5 -0
- package/Types/IP/IP.js +27 -1
- package/Types/JoinedSerializableObjects.d.mts +6 -0
- package/Types/JoinedSerializableObjects.d.ts +6 -0
- package/Types/JoinedSerializableObjects.js +14 -0
- package/Types/JoinedSerializableObjects.mjs +3 -0
- package/Types/Kubernetes/KubernetesClusterAiLogs.d.mts +2 -0
- package/Types/Kubernetes/KubernetesClusterAiLogs.d.ts +2 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.d.mts +15 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.d.ts +15 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.js +81 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.mjs +5 -0
- package/Types/MeaningKeys.js +19 -0
- package/Types/Monitor/IncomingMonitor/IncomingMonitorRequest.d.mts +2 -0
- package/Types/Monitor/IncomingMonitor/IncomingMonitorRequest.d.ts +2 -0
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.d.mts +23 -1
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.d.ts +23 -1
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.js +105 -4
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.mjs +7 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.d.mts +11 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.d.ts +11 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.js +28 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.mjs +3 -0
- package/Types/Monitor/MonitorCriteria.js +8 -0
- package/Types/Monitor/MonitorCriteriaInstance.js +8 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.d.mts +12 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.d.ts +12 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.js +2 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.mjs +1 -0
- package/Types/Monitor/MonitorJsonTypes.d.mts +4 -0
- package/Types/Monitor/MonitorJsonTypes.d.ts +4 -0
- package/Types/Monitor/MonitorJsonTypes.js +31 -0
- package/Types/Monitor/MonitorJsonTypes.mjs +2 -0
- package/Types/Monitor/MonitorStep.js +8 -0
- package/Types/Monitor/MonitorSteps.js +8 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.d.mts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.d.ts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.js +21 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.mjs +2 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.d.mts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.d.ts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.js +24 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.mjs +2 -0
- package/Types/Monitor/UptimeHistoryLabels.d.mts +4 -0
- package/Types/Monitor/UptimeHistoryLabels.d.ts +4 -0
- package/Types/Monitor/UptimeHistoryLabels.js +4 -0
- package/Types/Monitor/WhoIsTold.d.mts +25 -0
- package/Types/Monitor/WhoIsTold.d.ts +25 -0
- package/Types/Monitor/WhoIsTold.js +171 -19
- package/Types/Monitor/WhoIsTold.mjs +3 -0
- package/Types/NoBreakSpaces.d.mts +5 -1
- package/Types/NoBreakSpaces.d.ts +5 -1
- package/Types/NoBreakSpaces.js +107 -52
- package/Types/NoBreakSpaces.mjs +1 -0
- package/Types/NotificationRule/PagingLadder.d.mts +2 -0
- package/Types/NotificationRule/PagingLadder.d.ts +2 -0
- package/Types/NotificationRule/PagingLadder.js +47 -1
- package/Types/NotificationRule/PagingLadder.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.d.mts +2 -1
- package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.d.ts +2 -1
- package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.js +6 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.d.mts +5 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.d.ts +5 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.js +41 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallLogLine.d.mts +6 -1
- package/Types/OnCallDutyPolicy/OnCallLogLine.d.ts +6 -1
- package/Types/OnCallDutyPolicy/OnCallLogLine.js +60 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.d.mts +32 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.d.ts +32 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.js +192 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.mjs +14 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.d.mts +40 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.d.ts +40 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.js +142 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.mjs +13 -0
- package/Types/Password.d.mts +18 -12
- package/Types/Password.d.ts +18 -12
- package/Types/Password.js +63 -58
- package/Types/Password.mjs +3 -3
- package/Types/Permission.d.mts +4 -0
- package/Types/Permission.d.ts +4 -0
- package/Types/Permission.js +48 -0
- package/Types/PrivateRecord/PrivateRecordParts.js +50 -0
- package/Types/Probe/ProbeCapability.d.mts +2 -1
- package/Types/Probe/ProbeCapability.d.ts +2 -1
- package/Types/Probe/ProbeCapability.js +11 -0
- package/Types/Product/ProjectProducts.d.mts +1 -15
- package/Types/Product/ProjectProducts.d.ts +1 -15
- package/Types/Product/ProjectProducts.js +38 -129
- package/Types/Product/ProjectProducts.mjs +1 -5
- package/Types/Product/ProjectProductsAnswer.js +5 -6
- package/Types/ProductFeedback/ProductFeedback.d.mts +29 -4
- package/Types/ProductFeedback/ProductFeedback.d.ts +29 -4
- package/Types/ProductFeedback/ProductFeedback.js +176 -28
- package/Types/ProductFeedback/ProductFeedback.mjs +11 -1
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.mts +6 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.ts +6 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.js +20 -1
- package/Types/ResourceAiAgent/CloudAiAgentNames.mjs +5 -0
- package/Types/ResourceAiAgent/ResourceAiAccess.d.mts +3 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.d.ts +3 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.js +18 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.mjs +2 -0
- package/Types/Retention/ResolvedRecordRetention.d.mts +33 -0
- package/Types/Retention/ResolvedRecordRetention.d.ts +33 -0
- package/Types/Retention/ResolvedRecordRetention.js +211 -1
- package/Types/Retention/ResolvedRecordRetention.mjs +13 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.d.mts +28 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.d.ts +28 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.js +134 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.mjs +5 -0
- package/Types/Rules/RuleEmptiedLimit.d.mts +20 -0
- package/Types/Rules/RuleEmptiedLimit.d.ts +20 -0
- package/Types/Rules/RuleEmptiedLimit.js +131 -0
- package/Types/Rules/RuleEmptiedLimit.mjs +9 -0
- package/Types/Runbook/RunbookStepTimeout.js +11 -10
- package/Types/Runner/GlobalRunnerRepositoryTokens.d.mts +18 -0
- package/Types/Runner/GlobalRunnerRepositoryTokens.d.ts +18 -0
- package/Types/Runner/GlobalRunnerRepositoryTokens.js +97 -0
- package/Types/Runner/GlobalRunnerRepositoryTokens.mjs +8 -0
- package/Types/Runner/GlobalRunnerSandbox.d.mts +38 -0
- package/Types/Runner/GlobalRunnerSandbox.d.ts +38 -0
- package/Types/Runner/GlobalRunnerSandbox.js +178 -0
- package/Types/Runner/GlobalRunnerSandbox.mjs +9 -0
- package/Types/Runner/GlobalRunnerWork.js +9 -4
- package/Types/Runner/RunnerCodeFixCapability.d.mts +14 -0
- package/Types/Runner/RunnerCodeFixCapability.d.ts +14 -0
- package/Types/Runner/RunnerCodeFixCapability.js +103 -0
- package/Types/Runner/RunnerCodeFixCapability.mjs +7 -0
- package/Types/Runner/RunnerCodeFixes.d.mts +3 -0
- package/Types/Runner/RunnerCodeFixes.d.ts +3 -0
- package/Types/Runner/RunnerCodeFixes.js +27 -4
- package/Types/Runner/RunnerCodeFixes.mjs +1 -0
- package/Types/SSO/SessionsWithoutSso.d.mts +10 -0
- package/Types/SSO/SessionsWithoutSso.d.ts +10 -0
- package/Types/SSO/SessionsWithoutSso.js +39 -0
- package/Types/SSO/SessionsWithoutSso.mjs +5 -0
- package/Types/SerializableObjectDictionary.js +11 -8
- package/Types/SetupHealth/SetupHealth.d.mts +47 -2
- package/Types/SetupHealth/SetupHealth.d.ts +47 -2
- package/Types/SetupHealth/SetupHealth.js +228 -1
- package/Types/SetupHealth/SetupHealth.mjs +12 -0
- package/Types/StatusPage/StatusPageReport.d.mts +5 -2
- package/Types/StatusPage/StatusPageReport.d.ts +5 -2
- package/Types/StatusPage/SubscriberNotificationTemplateVariables.js +2 -2
- package/Types/StatusPage/UptimeDailyAggregate.d.mts +1 -0
- package/Types/StatusPage/UptimeDailyAggregate.d.ts +1 -0
- package/Types/Telemetry/LlmConventions.d.mts +1 -1
- package/Types/Telemetry/LlmConventions.d.ts +1 -1
- package/Types/Telemetry/LlmConventions.js +1 -1
- package/Types/Telemetry/ScrubRule.d.mts +1 -0
- package/Types/Telemetry/ScrubRule.d.ts +1 -0
- package/Types/Telemetry/ScrubRule.js +47 -0
- package/Types/Translator.d.mts +5 -2
- package/Types/Translator.d.ts +5 -2
- package/Types/Translator.js +43 -19
- package/Types/UsedBy/UsedBy.d.mts +107 -4
- package/Types/UsedBy/UsedBy.d.ts +107 -4
- package/Types/UsedBy/UsedBy.js +339 -6
- package/Types/UsedBy/UsedBy.mjs +12 -0
- package/Types/UsedBy/UsedByServerProducts.d.mts +5 -2
- package/Types/UsedBy/UsedByServerProducts.d.ts +5 -2
- package/Types/UsedBy/UsedByServerProducts.js +115 -6
- package/Types/UsedBy/UsedByServerProducts.mjs +1 -0
- package/Types/UserNotification/UserNotificationExecutionStatus.d.mts +2 -1
- package/Types/UserNotification/UserNotificationExecutionStatus.d.ts +2 -1
- package/Types/UserNotification/UserNotificationExecutionStatus.js +7 -0
- package/Types/UserSession/SessionEndCause.d.mts +1 -0
- package/Types/UserSession/SessionEndCause.d.ts +1 -0
- package/Types/UserSession/SessionEndCause.js +8 -1
- package/Types/WelcomeChecklist/ProjectGoal.js +5 -5
- package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +63 -1
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +0 -1
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +0 -1
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +0 -3
- package/Types/Workflow/WatchedFields.d.mts +1 -0
- package/Types/Workflow/WatchedFields.d.ts +1 -0
- package/Types/Workflow/WatchedFields.js +10 -1
- package/Types/Workflow/WatchedFields.mjs +1 -0
- package/Types/Workflow/WorkflowPrivateRecords.d.mts +2 -0
- package/Types/Workflow/WorkflowPrivateRecords.d.ts +2 -0
- package/Types/Workflow/WorkflowPrivateRecords.js +33 -0
- package/Types/Workflow/WorkflowPrivateRecords.mjs +3 -0
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +1 -0
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +1 -0
- package/Types/Workspace/NotificationRules/EventType.js +4 -3
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +19 -2
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +19 -2
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +127 -8
- package/Types/Workspace/WorkspaceLiveMessageKey.d.mts +5 -1
- package/Types/Workspace/WorkspaceLiveMessageKey.d.ts +5 -1
- package/Types/Workspace/WorkspaceLiveMessageKey.js +12 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.mts +6 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.ts +6 -0
- package/Utils/API.d.mts +6 -7
- package/Utils/API.d.ts +6 -7
- package/Utils/API.js +57 -35
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.mts +10 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.ts +10 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.js +89 -1
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.mjs +4 -0
- package/Utils/Billing/InvoiceAmount.d.mts +4 -0
- package/Utils/Billing/InvoiceAmount.d.ts +4 -0
- package/Utils/Billing/InvoiceAmount.js +35 -0
- package/Utils/Billing/InvoiceAmount.mjs +2 -0
- package/Utils/CertificateReissue.js +4 -3
- package/Utils/CronScheduleText.js +10 -3
- package/Utils/CronTab.js +6 -33
- package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +5 -18
- package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +5 -18
- package/Utils/Dashboard/MonitorListWidgetFormat.js +54 -18
- package/Utils/DeveloperDocs/ResourceProfiles.js +2 -1
- package/Utils/DeveloperDocs/TerraformSchema.js +3 -2
- package/Utils/LinearRegExp/LinearRegExp.d.mts +1 -0
- package/Utils/LinearRegExp/LinearRegExp.d.ts +1 -0
- package/Utils/LinearRegExp/LinearRegExp.js +17 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +6 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +6 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +477 -152
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +1 -0
- package/Utils/Markdown/SlowMarkdown.js +168 -33
- package/Utils/Metrics/MetricFormulaEvaluator.d.mts +20 -4
- package/Utils/Metrics/MetricFormulaEvaluator.d.ts +20 -4
- package/Utils/Metrics/MetricFormulaEvaluator.js +233 -29
- package/Utils/Metrics/MetricResultUnitConverter.js +7 -1
- package/Utils/Metrics/MetricSeriesArrivalUtil.d.mts +4 -0
- package/Utils/Metrics/MetricSeriesArrivalUtil.d.ts +4 -0
- package/Utils/Metrics/MetricSeriesArrivalUtil.js +27 -0
- package/Utils/Metrics/MetricZeroFill.d.mts +45 -0
- package/Utils/Metrics/MetricZeroFill.d.ts +45 -0
- package/Utils/Metrics/MetricZeroFill.js +145 -0
- package/Utils/Metrics/MetricZeroFill.mjs +2 -0
- package/Utils/ModelImportExport.js +4 -1
- package/Utils/Monitor/EndpointAttachmentUtil.d.mts +3 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.ts +3 -0
- package/Utils/Monitor/EndpointAttachmentUtil.js +57 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.d.mts +9 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.d.ts +9 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.js +52 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.mjs +5 -0
- package/Utils/Monitor/MonitorFirstCheck.d.mts +32 -0
- package/Utils/Monitor/MonitorFirstCheck.d.ts +32 -0
- package/Utils/Monitor/MonitorFirstCheck.js +128 -0
- package/Utils/Monitor/MonitorFirstCheck.mjs +4 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.d.mts +12 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.d.ts +12 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.js +87 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.mjs +2 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.d.mts +11 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.d.ts +11 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.js +86 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.mjs +2 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +4 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +4 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +122 -4
- package/Utils/Monitor/MonitorRowStatus.d.mts +56 -0
- package/Utils/Monitor/MonitorRowStatus.d.ts +56 -0
- package/Utils/Monitor/MonitorRowStatus.js +189 -0
- package/Utils/Monitor/MonitorRowStatus.mjs +6 -0
- package/Utils/Monitor/MonitorSummarySnapshotUtil.js +3 -2
- package/Utils/Monitor/MonitorUptimeSummaryUtil.js +14 -3
- package/Utils/NetworkDevice/TransceiverHealthUtil.js +2 -2
- package/Utils/Profiles/ProfileFrames.js +11 -4
- package/Utils/Profiles/ProfileFunctionNames.d.mts +2 -0
- package/Utils/Profiles/ProfileFunctionNames.d.ts +2 -0
- package/Utils/Profiles/ProfileFunctionNames.js +104 -0
- package/Utils/Profiles/ProfileFunctionNames.mjs +3 -0
- package/Utils/Project/ProjectBalance.js +2 -2
- package/Utils/Project/TwilioAccount.d.mts +3 -0
- package/Utils/Project/TwilioAccount.d.ts +3 -0
- package/Utils/Project/TwilioAccount.js +58 -18
- package/Utils/Project/TwilioAccount.mjs +2 -0
- package/Utils/ResponseTooLarge.d.mts +5 -0
- package/Utils/ResponseTooLarge.d.ts +5 -0
- package/Utils/ResponseTooLarge.js +69 -0
- package/Utils/ResponseTooLarge.mjs +2 -0
- package/Utils/RetryAfter.d.mts +17 -0
- package/Utils/RetryAfter.d.ts +17 -0
- package/Utils/RetryAfter.js +251 -0
- package/Utils/RetryAfter.mjs +5 -0
- package/Utils/ScheduledMaintenanceStart.js +2 -3
- package/Utils/Schema/BaseSchema.d.mts +12 -5
- package/Utils/Schema/BaseSchema.d.ts +12 -5
- package/Utils/Schema/BaseSchema.js +43 -4
- package/Utils/Schema/BaseSchema.mjs +1 -0
- package/Utils/Schema/ModelSchema.d.mts +10 -0
- package/Utils/Schema/ModelSchema.d.ts +10 -0
- package/Utils/Schema/ModelSchema.js +251 -22
- package/Utils/Slo/SloMonthlyReport.d.mts +187 -0
- package/Utils/Slo/SloMonthlyReport.d.ts +187 -0
- package/Utils/Slo/SloMonthlyReport.js +945 -0
- package/Utils/Slo/SloMonthlyReport.mjs +35 -0
- package/Utils/Slo/SloOverviewText.js +7 -2
- package/Utils/Slo/SloProjection.js +2 -1
- package/Utils/Slo/SloUtil.d.mts +5 -0
- package/Utils/Slo/SloUtil.d.ts +5 -0
- package/Utils/Slo/SloUtil.js +5 -0
- package/Utils/Slo/SloWidgetFormat.js +3 -1
- package/Utils/StatusPage/FrozenMonitorResources.d.mts +30 -0
- package/Utils/StatusPage/FrozenMonitorResources.d.ts +30 -0
- package/Utils/StatusPage/FrozenMonitorResources.js +147 -12
- package/Utils/StatusPage/FrozenMonitorResources.mjs +2 -0
- package/Utils/StatusPage/GroupNestingLayout.js +3 -2
- package/Utils/StatusPage/HistoryChartBarColors.d.mts +2 -0
- package/Utils/StatusPage/HistoryChartBarColors.d.ts +2 -0
- package/Utils/StatusPage/HistoryChartBarColors.js +15 -1
- package/Utils/StatusPage/HistoryChartBarColors.mjs +2 -0
- package/Utils/StatusPage/Report.js +12 -4
- package/Utils/StatusPage/ReportText.d.mts +4 -0
- package/Utils/StatusPage/ReportText.d.ts +4 -0
- package/Utils/StatusPage/ReportText.js +22 -2
- package/Utils/StatusPage/ReportText.mjs +1 -0
- package/Utils/StatusPage/ResourceUptime.js +32 -25
- package/Utils/StatusPage/UptimeDailyAggregateUtil.js +17 -3
- package/Utils/Syslog/SyslogMessageParser.d.mts +25 -0
- package/Utils/Syslog/SyslogMessageParser.d.ts +25 -0
- package/Utils/Syslog/SyslogMessageParser.js +428 -100
- package/Utils/Syslog/SyslogMessageParser.mjs +3 -0
- package/Utils/Syslog/SyslogRawCopies.d.mts +20 -0
- package/Utils/Syslog/SyslogRawCopies.d.ts +20 -0
- package/Utils/Syslog/SyslogRawCopies.js +283 -0
- package/Utils/Syslog/SyslogRawCopies.mjs +2 -0
- package/Utils/Telemetry/CorrelationIdAttributes.d.mts +8 -0
- package/Utils/Telemetry/CorrelationIdAttributes.d.ts +8 -0
- package/Utils/Telemetry/CorrelationIdAttributes.js +118 -0
- package/Utils/Telemetry/CorrelationIdAttributes.mjs +5 -0
- package/Utils/Telemetry/ScrubJsonKeys.d.mts +11 -0
- package/Utils/Telemetry/ScrubJsonKeys.d.ts +11 -0
- package/Utils/Telemetry/ScrubJsonKeys.js +505 -0
- package/Utils/Telemetry/ScrubJsonKeys.mjs +2 -0
- package/Utils/Telemetry/ScrubJsonText.d.mts +25 -0
- package/Utils/Telemetry/ScrubJsonText.d.ts +25 -0
- package/Utils/Telemetry/ScrubJsonText.js +568 -0
- package/Utils/Telemetry/ScrubJsonText.mjs +4 -0
- package/Utils/Telemetry/ScrubMask.d.mts +1 -0
- package/Utils/Telemetry/ScrubMask.d.ts +1 -0
- package/Utils/Telemetry/ScrubMask.js +54 -0
- package/Utils/Telemetry/ScrubMask.mjs +2 -0
- package/Utils/Telemetry/ScrubNestedValues.d.mts +5 -2
- package/Utils/Telemetry/ScrubNestedValues.d.ts +5 -2
- package/Utils/Telemetry/ScrubNestedValues.js +56 -9
- package/Utils/Uptime/DayUptimeGraphUtil.d.mts +17 -0
- package/Utils/Uptime/DayUptimeGraphUtil.d.ts +17 -0
- package/Utils/Uptime/DayUptimeGraphUtil.js +91 -3
- package/Utils/Uptime/DayUptimeGraphUtil.mjs +1 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.d.mts +11 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.d.ts +11 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.js +188 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.mjs +2 -0
- package/package.json +1 -1
- package/Models/DatabaseModels/GreenlockCertificate.d.mts +0 -10
- package/Models/DatabaseModels/GreenlockCertificate.d.ts +0 -10
- package/Models/DatabaseModels/GreenlockCertificate.js +0 -143
- package/Models/DatabaseModels/GreenlockCertificate.mjs +0 -2
- package/Models/DatabaseModels/GreenlockChallenge.d.mts +0 -10
- package/Models/DatabaseModels/GreenlockChallenge.d.ts +0 -10
- package/Models/DatabaseModels/GreenlockChallenge.js +0 -144
- package/Models/DatabaseModels/GreenlockChallenge.mjs +0 -2
- package/Types/SampleProject/SampleProject.d.mts +0 -54
- package/Types/SampleProject/SampleProject.d.ts +0 -54
- package/Types/SampleProject/SampleProject.js +0 -177
- package/Types/SampleProject/SampleProject.mjs +0 -22
- package/Types/SampleProject/SampleProjectContent.d.mts +0 -127
- package/Types/SampleProject/SampleProjectContent.d.ts +0 -127
- package/Types/SampleProject/SampleProjectContent.js +0 -397
- package/Types/SampleProject/SampleProjectContent.mjs +0 -18
|
@@ -0,0 +1,503 @@
|
|
|
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_MAP_OPERATIONS = exports.MAX_DATA_LINEAGE_MAP_DASHBOARDS = exports.MAX_DATA_LINEAGE_MAP_NODES = exports.MAX_DATA_LINEAGE_MAP_USAGE_ROWS = exports.MAX_DATA_LINEAGE_MAP_LINEAGE_ROWS = exports.EVIDENCE_ORDER = exports.DataLineageMapEvidence = exports.DataLineageMapEdgeKind = exports.DataLineageMapNodeKind = void 0;
|
|
7
|
+
exports.getLineageMapTableNodeId = getLineageMapTableNodeId;
|
|
8
|
+
exports.getLineageMapPipelineNodeId = getLineageMapPipelineNodeId;
|
|
9
|
+
exports.getLineageMapDashboardNodeId = getLineageMapDashboardNodeId;
|
|
10
|
+
exports.getLineageMapServiceNodeId = getLineageMapServiceNodeId;
|
|
11
|
+
exports.getLineageMapEdgeId = getLineageMapEdgeId;
|
|
12
|
+
exports.chooseDataLineageMapFlows = chooseDataLineageMapFlows;
|
|
13
|
+
exports.assembleDataLineageMap = assembleDataLineageMap;
|
|
14
|
+
exports.traceDataLineageMap = traceDataLineageMap;
|
|
15
|
+
exports.hasFailedLineageMapPipeline = hasFailedLineageMapPipeline;
|
|
16
|
+
exports.isLineageMapNodeInTrouble = isLineageMapNodeInTrouble;
|
|
17
|
+
const DataAssetFreshness_1 = require("./DataAssetFreshness");
|
|
18
|
+
const DataAssetLineageSource_1 = __importDefault(require("./DataAssetLineageSource"));
|
|
19
|
+
const DataAssetUsage_1 = require("./DataAssetUsage");
|
|
20
|
+
/*
|
|
21
|
+
* THE PROJECT'S LINEAGE MAP: WHO WRITES AND READS WHICH DATA, AND WHERE IT
|
|
22
|
+
* FLOWS, ACROSS THE WHOLE PROJECT (#9114).
|
|
23
|
+
*
|
|
24
|
+
* A table's Lineage tab draws a few steps around one table. The map draws
|
|
25
|
+
* every flow the project has seen at once, so a person can see what
|
|
26
|
+
* depends on what without knowing which table to start from. Every arrow
|
|
27
|
+
* on it is a fact OneUptime recorded, never a guess:
|
|
28
|
+
*
|
|
29
|
+
* - Feeds: one table is built from another (DataAssetLineage with both
|
|
30
|
+
* tables): a pipeline's run (OpenLineage, dbt, Fivetran, Airbyte, a job
|
|
31
|
+
* in traces), the database's query history, or a view's definition.
|
|
32
|
+
* - Writes: a pipeline loads a table from data OneUptime does not watch
|
|
33
|
+
* (DataAssetLineage with no upstream table), or a service's database
|
|
34
|
+
* spans change the table's rows (DataAssetUsage, Write).
|
|
35
|
+
* - Reads: a service's database spans read the table (DataAssetUsage,
|
|
36
|
+
* Read), or a BI dashboard or reverse ETL sync is built on it
|
|
37
|
+
* (DataDashboard's tables).
|
|
38
|
+
*
|
|
39
|
+
* A project can have tens of thousands of tables, and a drawing past a few
|
|
40
|
+
* hundred cards is read by nobody, so the map holds the flows seen most
|
|
41
|
+
* recently first, at most MAX_DATA_LINEAGE_MAP_NODES cards, and says when
|
|
42
|
+
* there were more (isTruncated). What it draws is still true.
|
|
43
|
+
*
|
|
44
|
+
* The rows are read by Server/Utils/DataObservability/DataLineageMap; the
|
|
45
|
+
* choosing and the drawing's facts are worked out here, free of the
|
|
46
|
+
* database, so they can be pinned in plain tests.
|
|
47
|
+
*/
|
|
48
|
+
var DataLineageMapNodeKind;
|
|
49
|
+
(function (DataLineageMapNodeKind) {
|
|
50
|
+
DataLineageMapNodeKind["Service"] = "Service";
|
|
51
|
+
DataLineageMapNodeKind["Table"] = "Table";
|
|
52
|
+
DataLineageMapNodeKind["Pipeline"] = "Pipeline";
|
|
53
|
+
DataLineageMapNodeKind["Dashboard"] = "Dashboard";
|
|
54
|
+
})(DataLineageMapNodeKind || (exports.DataLineageMapNodeKind = DataLineageMapNodeKind = {}));
|
|
55
|
+
var DataLineageMapEdgeKind;
|
|
56
|
+
(function (DataLineageMapEdgeKind) {
|
|
57
|
+
// One table is built from another.
|
|
58
|
+
DataLineageMapEdgeKind["Feeds"] = "Feeds";
|
|
59
|
+
// A pipeline or a service writes a table.
|
|
60
|
+
DataLineageMapEdgeKind["Writes"] = "Writes";
|
|
61
|
+
// A service or a dashboard reads a table.
|
|
62
|
+
DataLineageMapEdgeKind["Reads"] = "Reads";
|
|
63
|
+
})(DataLineageMapEdgeKind || (exports.DataLineageMapEdgeKind = DataLineageMapEdgeKind = {}));
|
|
64
|
+
// Where an arrow was seen: a lineage source, a service's spans, or a BI tool.
|
|
65
|
+
var DataLineageMapEvidence;
|
|
66
|
+
(function (DataLineageMapEvidence) {
|
|
67
|
+
DataLineageMapEvidence["Pipeline"] = "Pipeline";
|
|
68
|
+
DataLineageMapEvidence["QueryHistory"] = "Query History";
|
|
69
|
+
DataLineageMapEvidence["ViewDefinition"] = "View Definition";
|
|
70
|
+
DataLineageMapEvidence["Traces"] = "Traces";
|
|
71
|
+
DataLineageMapEvidence["BiTool"] = "BI Tool";
|
|
72
|
+
})(DataLineageMapEvidence || (exports.DataLineageMapEvidence = DataLineageMapEvidence = {}));
|
|
73
|
+
// The order an arrow names where it was seen in.
|
|
74
|
+
exports.EVIDENCE_ORDER = [
|
|
75
|
+
DataLineageMapEvidence.Pipeline,
|
|
76
|
+
DataLineageMapEvidence.QueryHistory,
|
|
77
|
+
DataLineageMapEvidence.ViewDefinition,
|
|
78
|
+
DataLineageMapEvidence.Traces,
|
|
79
|
+
DataLineageMapEvidence.BiTool,
|
|
80
|
+
];
|
|
81
|
+
// The most lineage rows read, the newest first.
|
|
82
|
+
exports.MAX_DATA_LINEAGE_MAP_LINEAGE_ROWS = 5000;
|
|
83
|
+
// The most rows of services reading and writing tables read, the newest first.
|
|
84
|
+
exports.MAX_DATA_LINEAGE_MAP_USAGE_ROWS = 5000;
|
|
85
|
+
// The most cards one map draws: services, tables, pipelines and dashboards together.
|
|
86
|
+
exports.MAX_DATA_LINEAGE_MAP_NODES = 400;
|
|
87
|
+
// The most dashboards one map draws, of the cards above.
|
|
88
|
+
exports.MAX_DATA_LINEAGE_MAP_DASHBOARDS = 100;
|
|
89
|
+
// The most operations an arrow from a service names.
|
|
90
|
+
exports.MAX_DATA_LINEAGE_MAP_OPERATIONS = 6;
|
|
91
|
+
function getLineageMapTableNodeId(dataAssetId) {
|
|
92
|
+
return `table:${dataAssetId}`;
|
|
93
|
+
}
|
|
94
|
+
function getLineageMapPipelineNodeId(dataPipelineId) {
|
|
95
|
+
return `pipeline:${dataPipelineId}`;
|
|
96
|
+
}
|
|
97
|
+
function getLineageMapDashboardNodeId(dataDashboardId) {
|
|
98
|
+
return `dashboard:${dataDashboardId}`;
|
|
99
|
+
}
|
|
100
|
+
// A service by its id; one known only by name, by its name.
|
|
101
|
+
function getLineageMapServiceNodeId(data) {
|
|
102
|
+
return data.serviceId
|
|
103
|
+
? `service:${data.serviceId}`
|
|
104
|
+
: `service-name:${data.serviceName.trim().toLowerCase()}`;
|
|
105
|
+
}
|
|
106
|
+
function getLineageMapEdgeId(data) {
|
|
107
|
+
return `${data.kind}:${data.source}>${data.target}`;
|
|
108
|
+
}
|
|
109
|
+
function timeOf(value) {
|
|
110
|
+
return value ? value.getTime() : 0;
|
|
111
|
+
}
|
|
112
|
+
// The cards a flow needs, as node ids.
|
|
113
|
+
function lineageRowNodes(row) {
|
|
114
|
+
const downstream = getLineageMapTableNodeId(row.downstreamDataAssetId);
|
|
115
|
+
if (row.upstreamDataAssetId) {
|
|
116
|
+
if (row.upstreamDataAssetId === row.downstreamDataAssetId) {
|
|
117
|
+
// A table built from itself (an append, a merge): no flow to draw.
|
|
118
|
+
return null;
|
|
119
|
+
}
|
|
120
|
+
return [getLineageMapTableNodeId(row.upstreamDataAssetId), downstream];
|
|
121
|
+
}
|
|
122
|
+
if (row.dataPipelineId) {
|
|
123
|
+
return [getLineageMapPipelineNodeId(row.dataPipelineId), downstream];
|
|
124
|
+
}
|
|
125
|
+
return null;
|
|
126
|
+
}
|
|
127
|
+
function usageRowNodes(row) {
|
|
128
|
+
if (!row.serviceName.trim() && !row.serviceId) {
|
|
129
|
+
return null;
|
|
130
|
+
}
|
|
131
|
+
return [
|
|
132
|
+
getLineageMapServiceNodeId(row),
|
|
133
|
+
getLineageMapTableNodeId(row.dataAssetId),
|
|
134
|
+
];
|
|
135
|
+
}
|
|
136
|
+
/*
|
|
137
|
+
* Which flows the map draws: every flow, newest first, as long as the cards
|
|
138
|
+
* it needs fit in the most a map draws; a flow whose cards are drawn
|
|
139
|
+
* already always fits. The room left goes to dashboards, at most
|
|
140
|
+
* MAX_DATA_LINEAGE_MAP_DASHBOARDS. A flow left out, or rows past those
|
|
141
|
+
* read, make the map truncated.
|
|
142
|
+
*/
|
|
143
|
+
function chooseDataLineageMapFlows(data) {
|
|
144
|
+
var _a;
|
|
145
|
+
const maxNodes = (_a = data.maxNodes) !== null && _a !== void 0 ? _a : exports.MAX_DATA_LINEAGE_MAP_NODES;
|
|
146
|
+
const flows = [];
|
|
147
|
+
for (const row of data.lineage) {
|
|
148
|
+
const nodes = lineageRowNodes(row);
|
|
149
|
+
if (nodes) {
|
|
150
|
+
flows.push({ nodes, lastSeenAt: timeOf(row.lastSeenAt), lineage: row });
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
for (const row of data.usages) {
|
|
154
|
+
const nodes = usageRowNodes(row);
|
|
155
|
+
if (nodes) {
|
|
156
|
+
flows.push({ nodes, lastSeenAt: timeOf(row.lastSeenAt), usage: row });
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
// Newest first; ties in the order read, so a choice is the same each time.
|
|
160
|
+
const ordered = flows
|
|
161
|
+
.map((flow, index) => {
|
|
162
|
+
return { flow, index };
|
|
163
|
+
})
|
|
164
|
+
.sort((a, b) => {
|
|
165
|
+
return b.flow.lastSeenAt - a.flow.lastSeenAt || a.index - b.index;
|
|
166
|
+
})
|
|
167
|
+
.map((entry) => {
|
|
168
|
+
return entry.flow;
|
|
169
|
+
});
|
|
170
|
+
const drawn = new Set();
|
|
171
|
+
const lineage = [];
|
|
172
|
+
const usages = [];
|
|
173
|
+
let isTruncated = Boolean(data.hadMoreRows);
|
|
174
|
+
for (const flow of ordered) {
|
|
175
|
+
const needed = flow.nodes.filter((id) => {
|
|
176
|
+
return !drawn.has(id);
|
|
177
|
+
}).length;
|
|
178
|
+
if (drawn.size + needed > maxNodes) {
|
|
179
|
+
isTruncated = true;
|
|
180
|
+
continue;
|
|
181
|
+
}
|
|
182
|
+
for (const id of flow.nodes) {
|
|
183
|
+
drawn.add(id);
|
|
184
|
+
}
|
|
185
|
+
if (flow.lineage) {
|
|
186
|
+
lineage.push(flow.lineage);
|
|
187
|
+
}
|
|
188
|
+
if (flow.usage) {
|
|
189
|
+
usages.push(flow.usage);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
const dataAssetIds = new Set();
|
|
193
|
+
const dataPipelineIds = new Set();
|
|
194
|
+
for (const row of lineage) {
|
|
195
|
+
dataAssetIds.add(row.downstreamDataAssetId);
|
|
196
|
+
if (row.upstreamDataAssetId) {
|
|
197
|
+
dataAssetIds.add(row.upstreamDataAssetId);
|
|
198
|
+
}
|
|
199
|
+
if (row.dataPipelineId) {
|
|
200
|
+
dataPipelineIds.add(row.dataPipelineId);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
for (const row of usages) {
|
|
204
|
+
dataAssetIds.add(row.dataAssetId);
|
|
205
|
+
}
|
|
206
|
+
return {
|
|
207
|
+
lineage,
|
|
208
|
+
usages,
|
|
209
|
+
dataAssetIds: Array.from(dataAssetIds).sort(),
|
|
210
|
+
dataPipelineIds: Array.from(dataPipelineIds).sort(),
|
|
211
|
+
dashboardRoom: Math.max(0, Math.min(exports.MAX_DATA_LINEAGE_MAP_DASHBOARDS, maxNodes - drawn.size)),
|
|
212
|
+
isTruncated,
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
function lineageEvidence(source) {
|
|
216
|
+
if (source === DataAssetLineageSource_1.default.QueryHistory) {
|
|
217
|
+
return DataLineageMapEvidence.QueryHistory;
|
|
218
|
+
}
|
|
219
|
+
if (source === DataAssetLineageSource_1.default.ViewDefinition) {
|
|
220
|
+
return DataLineageMapEvidence.ViewDefinition;
|
|
221
|
+
}
|
|
222
|
+
return DataLineageMapEvidence.Pipeline;
|
|
223
|
+
}
|
|
224
|
+
function isFailedRunState(state) {
|
|
225
|
+
return state === "FAIL" || state === "ABORT";
|
|
226
|
+
}
|
|
227
|
+
function compareText(a, b) {
|
|
228
|
+
return a < b ? -1 : a > b ? 1 : 0;
|
|
229
|
+
}
|
|
230
|
+
/*
|
|
231
|
+
* The map from what was chosen and read: one card per service, table,
|
|
232
|
+
* pipeline and dashboard, one arrow per pair and kind, every place it was
|
|
233
|
+
* seen together. A flow whose table or pipeline is gone - removed since its
|
|
234
|
+
* row was written - is left out: an arrow to nothing says nothing true.
|
|
235
|
+
*/
|
|
236
|
+
function assembleDataLineageMap(data) {
|
|
237
|
+
const tables = new Map(data.tables.map((table) => {
|
|
238
|
+
return [table.dataAssetId, table];
|
|
239
|
+
}));
|
|
240
|
+
const pipelines = new Map(data.pipelines.map((pipeline) => {
|
|
241
|
+
return [pipeline.dataPipelineId, pipeline];
|
|
242
|
+
}));
|
|
243
|
+
const nodes = new Map();
|
|
244
|
+
const edges = new Map();
|
|
245
|
+
const addTable = (dataAssetId) => {
|
|
246
|
+
const table = tables.get(dataAssetId);
|
|
247
|
+
if (!table) {
|
|
248
|
+
return null;
|
|
249
|
+
}
|
|
250
|
+
const id = getLineageMapTableNodeId(dataAssetId);
|
|
251
|
+
if (!nodes.has(id)) {
|
|
252
|
+
const freshness = (0, DataAssetFreshness_1.getDataAssetFreshness)({
|
|
253
|
+
kind: table.assetKind,
|
|
254
|
+
lastChangedAt: table.lastChangedAt,
|
|
255
|
+
updateIntervalInSeconds: table.updateIntervalInSeconds,
|
|
256
|
+
now: data.now,
|
|
257
|
+
});
|
|
258
|
+
nodes.set(id, {
|
|
259
|
+
id,
|
|
260
|
+
kind: DataLineageMapNodeKind.Table,
|
|
261
|
+
name: table.assetKey || table.name || dataAssetId,
|
|
262
|
+
dataAssetId,
|
|
263
|
+
database: table.database,
|
|
264
|
+
assetKind: table.assetKind,
|
|
265
|
+
freshness: freshness.freshness,
|
|
266
|
+
lateBySeconds: freshness.overdueBySeconds,
|
|
267
|
+
isDropped: table.isDropped,
|
|
268
|
+
openAlertCount: data.openAlertCounts.get(dataAssetId) || 0,
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
return id;
|
|
272
|
+
};
|
|
273
|
+
const addEdge = (edge) => {
|
|
274
|
+
const id = getLineageMapEdgeId(edge);
|
|
275
|
+
let kept = edges.get(id);
|
|
276
|
+
if (!kept) {
|
|
277
|
+
kept = {
|
|
278
|
+
id,
|
|
279
|
+
source: edge.source,
|
|
280
|
+
target: edge.target,
|
|
281
|
+
kind: edge.kind,
|
|
282
|
+
seenIn: [],
|
|
283
|
+
pipelines: [],
|
|
284
|
+
operations: [],
|
|
285
|
+
lastSeenAt: null,
|
|
286
|
+
lastSeenTime: -1,
|
|
287
|
+
evidence: new Set(),
|
|
288
|
+
};
|
|
289
|
+
edges.set(id, kept);
|
|
290
|
+
}
|
|
291
|
+
if (!kept.evidence.has(edge.evidence)) {
|
|
292
|
+
kept.evidence.add(edge.evidence);
|
|
293
|
+
kept.seenIn.push(edge.evidence);
|
|
294
|
+
}
|
|
295
|
+
if (edge.pipeline &&
|
|
296
|
+
!kept.pipelines.some((pipeline) => {
|
|
297
|
+
return pipeline.dataPipelineId === edge.pipeline.dataPipelineId;
|
|
298
|
+
})) {
|
|
299
|
+
kept.pipelines.push({
|
|
300
|
+
dataPipelineId: edge.pipeline.dataPipelineId,
|
|
301
|
+
name: edge.pipeline.jobName,
|
|
302
|
+
lastRunState: edge.pipeline.lastRunState,
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
for (const operation of edge.operations || []) {
|
|
306
|
+
if (kept.operations.length < exports.MAX_DATA_LINEAGE_MAP_OPERATIONS &&
|
|
307
|
+
!kept.operations.includes(operation)) {
|
|
308
|
+
kept.operations.push(operation);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
if (edge.lastSeenAt && edge.lastSeenAt.getTime() > kept.lastSeenTime) {
|
|
312
|
+
kept.lastSeenTime = edge.lastSeenAt.getTime();
|
|
313
|
+
kept.lastSeenAt = edge.lastSeenAt.toISOString();
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
for (const row of data.choice.lineage) {
|
|
317
|
+
const downstream = addTable(row.downstreamDataAssetId);
|
|
318
|
+
if (!downstream) {
|
|
319
|
+
continue;
|
|
320
|
+
}
|
|
321
|
+
const pipeline = row.dataPipelineId
|
|
322
|
+
? pipelines.get(row.dataPipelineId)
|
|
323
|
+
: undefined;
|
|
324
|
+
if (row.upstreamDataAssetId) {
|
|
325
|
+
const upstream = addTable(row.upstreamDataAssetId);
|
|
326
|
+
if (!upstream || upstream === downstream) {
|
|
327
|
+
continue;
|
|
328
|
+
}
|
|
329
|
+
addEdge({
|
|
330
|
+
kind: DataLineageMapEdgeKind.Feeds,
|
|
331
|
+
source: upstream,
|
|
332
|
+
target: downstream,
|
|
333
|
+
evidence: lineageEvidence(row.source),
|
|
334
|
+
lastSeenAt: row.lastSeenAt,
|
|
335
|
+
pipeline,
|
|
336
|
+
});
|
|
337
|
+
continue;
|
|
338
|
+
}
|
|
339
|
+
if (!pipeline) {
|
|
340
|
+
continue;
|
|
341
|
+
}
|
|
342
|
+
const pipelineNodeId = getLineageMapPipelineNodeId(pipeline.dataPipelineId);
|
|
343
|
+
if (!nodes.has(pipelineNodeId)) {
|
|
344
|
+
nodes.set(pipelineNodeId, {
|
|
345
|
+
id: pipelineNodeId,
|
|
346
|
+
kind: DataLineageMapNodeKind.Pipeline,
|
|
347
|
+
name: pipeline.jobName || pipeline.dataPipelineId,
|
|
348
|
+
dataPipelineId: pipeline.dataPipelineId,
|
|
349
|
+
jobNamespace: pipeline.jobNamespace,
|
|
350
|
+
lastRunState: pipeline.lastRunState,
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
addEdge({
|
|
354
|
+
kind: DataLineageMapEdgeKind.Writes,
|
|
355
|
+
source: pipelineNodeId,
|
|
356
|
+
target: downstream,
|
|
357
|
+
evidence: DataLineageMapEvidence.Pipeline,
|
|
358
|
+
lastSeenAt: row.lastSeenAt,
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
for (const row of data.choice.usages) {
|
|
362
|
+
const table = addTable(row.dataAssetId);
|
|
363
|
+
if (!table) {
|
|
364
|
+
continue;
|
|
365
|
+
}
|
|
366
|
+
const serviceNodeId = getLineageMapServiceNodeId(row);
|
|
367
|
+
if (!nodes.has(serviceNodeId)) {
|
|
368
|
+
nodes.set(serviceNodeId, {
|
|
369
|
+
id: serviceNodeId,
|
|
370
|
+
kind: DataLineageMapNodeKind.Service,
|
|
371
|
+
name: row.serviceName.trim() || row.serviceId || "",
|
|
372
|
+
serviceId: row.serviceId,
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
const isWrite = row.accessKind === DataAssetUsage_1.DataAssetAccessKind.Write;
|
|
376
|
+
addEdge({
|
|
377
|
+
kind: isWrite
|
|
378
|
+
? DataLineageMapEdgeKind.Writes
|
|
379
|
+
: DataLineageMapEdgeKind.Reads,
|
|
380
|
+
source: isWrite ? serviceNodeId : table,
|
|
381
|
+
target: isWrite ? table : serviceNodeId,
|
|
382
|
+
evidence: DataLineageMapEvidence.Traces,
|
|
383
|
+
lastSeenAt: row.lastSeenAt,
|
|
384
|
+
operations: row.operations,
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
let dashboardsDrawn = 0;
|
|
388
|
+
let isTruncated = data.choice.isTruncated;
|
|
389
|
+
for (const dashboard of [...data.dashboards].sort((a, b) => {
|
|
390
|
+
return compareText(a.name, b.name);
|
|
391
|
+
})) {
|
|
392
|
+
const tableIds = Array.from(new Set(dashboard.dataAssetIds))
|
|
393
|
+
.filter((id) => {
|
|
394
|
+
return nodes.has(getLineageMapTableNodeId(id));
|
|
395
|
+
})
|
|
396
|
+
.sort(compareText);
|
|
397
|
+
if (tableIds.length === 0) {
|
|
398
|
+
continue;
|
|
399
|
+
}
|
|
400
|
+
if (dashboardsDrawn >= data.choice.dashboardRoom) {
|
|
401
|
+
isTruncated = true;
|
|
402
|
+
break;
|
|
403
|
+
}
|
|
404
|
+
const dashboardNodeId = getLineageMapDashboardNodeId(dashboard.dataDashboardId);
|
|
405
|
+
nodes.set(dashboardNodeId, {
|
|
406
|
+
id: dashboardNodeId,
|
|
407
|
+
kind: DataLineageMapNodeKind.Dashboard,
|
|
408
|
+
name: dashboard.name || dashboard.dataDashboardId,
|
|
409
|
+
dataDashboardId: dashboard.dataDashboardId,
|
|
410
|
+
tool: dashboard.tool,
|
|
411
|
+
url: dashboard.url,
|
|
412
|
+
});
|
|
413
|
+
dashboardsDrawn++;
|
|
414
|
+
for (const tableId of tableIds) {
|
|
415
|
+
addEdge({
|
|
416
|
+
kind: DataLineageMapEdgeKind.Reads,
|
|
417
|
+
source: getLineageMapTableNodeId(tableId),
|
|
418
|
+
target: dashboardNodeId,
|
|
419
|
+
evidence: DataLineageMapEvidence.BiTool,
|
|
420
|
+
lastSeenAt: null,
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
// A failed run first on each arrow, as a table's diagram orders them.
|
|
425
|
+
const finished = Array.from(edges.values()).map((edge) => {
|
|
426
|
+
return {
|
|
427
|
+
id: edge.id,
|
|
428
|
+
source: edge.source,
|
|
429
|
+
target: edge.target,
|
|
430
|
+
kind: edge.kind,
|
|
431
|
+
seenIn: [...edge.seenIn].sort((a, b) => {
|
|
432
|
+
return exports.EVIDENCE_ORDER.indexOf(a) - exports.EVIDENCE_ORDER.indexOf(b);
|
|
433
|
+
}),
|
|
434
|
+
pipelines: [...edge.pipelines].sort((a, b) => {
|
|
435
|
+
return (Number(isFailedRunState(b.lastRunState)) -
|
|
436
|
+
Number(isFailedRunState(a.lastRunState)) ||
|
|
437
|
+
compareText(a.name, b.name));
|
|
438
|
+
}),
|
|
439
|
+
operations: edge.operations,
|
|
440
|
+
lastSeenAt: edge.lastSeenAt,
|
|
441
|
+
};
|
|
442
|
+
});
|
|
443
|
+
return {
|
|
444
|
+
nodes: Array.from(nodes.values()).sort((a, b) => {
|
|
445
|
+
return compareText(a.id, b.id);
|
|
446
|
+
}),
|
|
447
|
+
edges: finished.sort((a, b) => {
|
|
448
|
+
return compareText(a.id, b.id);
|
|
449
|
+
}),
|
|
450
|
+
isTruncated,
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
function traceDataLineageMap(map, nodeId) {
|
|
454
|
+
const into = new Map();
|
|
455
|
+
const outOf = new Map();
|
|
456
|
+
for (const edge of map.edges) {
|
|
457
|
+
into.set(edge.target, [...(into.get(edge.target) || []), edge]);
|
|
458
|
+
outOf.set(edge.source, [...(outOf.get(edge.source) || []), edge]);
|
|
459
|
+
}
|
|
460
|
+
const edgeIds = new Set();
|
|
461
|
+
const walk = (adjacency, next) => {
|
|
462
|
+
const seen = new Set([nodeId]);
|
|
463
|
+
const queue = [nodeId];
|
|
464
|
+
while (queue.length > 0) {
|
|
465
|
+
const current = queue.shift();
|
|
466
|
+
for (const edge of adjacency.get(current) || []) {
|
|
467
|
+
edgeIds.add(edge.id);
|
|
468
|
+
const other = next(edge);
|
|
469
|
+
if (!seen.has(other)) {
|
|
470
|
+
seen.add(other);
|
|
471
|
+
queue.push(other);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
seen.delete(nodeId);
|
|
476
|
+
return seen;
|
|
477
|
+
};
|
|
478
|
+
const upstream = walk(into, (edge) => {
|
|
479
|
+
return edge.source;
|
|
480
|
+
});
|
|
481
|
+
const downstream = walk(outOf, (edge) => {
|
|
482
|
+
return edge.target;
|
|
483
|
+
});
|
|
484
|
+
return { upstream, downstream, edgeIds };
|
|
485
|
+
}
|
|
486
|
+
// Whether an arrow's data moved by a pipeline whose latest run failed.
|
|
487
|
+
function hasFailedLineageMapPipeline(edge) {
|
|
488
|
+
return edge.pipelines.some((pipeline) => {
|
|
489
|
+
return isFailedRunState(pipeline.lastRunState);
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
// Whether a card is in trouble: a table late or with an open alert, a pipeline whose latest run failed.
|
|
493
|
+
function isLineageMapNodeInTrouble(node) {
|
|
494
|
+
if (node.kind === DataLineageMapNodeKind.Table) {
|
|
495
|
+
return (!node.isDropped &&
|
|
496
|
+
((node.openAlertCount || 0) > 0 ||
|
|
497
|
+
node.freshness === DataAssetFreshness_1.DataAssetFreshness.Late));
|
|
498
|
+
}
|
|
499
|
+
if (node.kind === DataLineageMapNodeKind.Pipeline) {
|
|
500
|
+
return isFailedRunState(node.lastRunState);
|
|
501
|
+
}
|
|
502
|
+
return false;
|
|
503
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import commonJsModule from "./DataLineageMap.js";
|
|
2
|
+
export const DataLineageMapEdgeKind = commonJsModule.DataLineageMapEdgeKind;
|
|
3
|
+
export const DataLineageMapEvidence = commonJsModule.DataLineageMapEvidence;
|
|
4
|
+
export const DataLineageMapNodeKind = commonJsModule.DataLineageMapNodeKind;
|
|
5
|
+
export const EVIDENCE_ORDER = commonJsModule.EVIDENCE_ORDER;
|
|
6
|
+
export const MAX_DATA_LINEAGE_MAP_DASHBOARDS = commonJsModule.MAX_DATA_LINEAGE_MAP_DASHBOARDS;
|
|
7
|
+
export const MAX_DATA_LINEAGE_MAP_LINEAGE_ROWS = commonJsModule.MAX_DATA_LINEAGE_MAP_LINEAGE_ROWS;
|
|
8
|
+
export const MAX_DATA_LINEAGE_MAP_NODES = commonJsModule.MAX_DATA_LINEAGE_MAP_NODES;
|
|
9
|
+
export const MAX_DATA_LINEAGE_MAP_OPERATIONS = commonJsModule.MAX_DATA_LINEAGE_MAP_OPERATIONS;
|
|
10
|
+
export const MAX_DATA_LINEAGE_MAP_USAGE_ROWS = commonJsModule.MAX_DATA_LINEAGE_MAP_USAGE_ROWS;
|
|
11
|
+
export const assembleDataLineageMap = commonJsModule.assembleDataLineageMap;
|
|
12
|
+
export const chooseDataLineageMapFlows = commonJsModule.chooseDataLineageMapFlows;
|
|
13
|
+
export const getLineageMapDashboardNodeId = commonJsModule.getLineageMapDashboardNodeId;
|
|
14
|
+
export const getLineageMapEdgeId = commonJsModule.getLineageMapEdgeId;
|
|
15
|
+
export const getLineageMapPipelineNodeId = commonJsModule.getLineageMapPipelineNodeId;
|
|
16
|
+
export const getLineageMapServiceNodeId = commonJsModule.getLineageMapServiceNodeId;
|
|
17
|
+
export const getLineageMapTableNodeId = commonJsModule.getLineageMapTableNodeId;
|
|
18
|
+
export const hasFailedLineageMapPipeline = commonJsModule.hasFailedLineageMapPipeline;
|
|
19
|
+
export const isLineageMapNodeInTrouble = commonJsModule.isLineageMapNodeInTrouble;
|
|
20
|
+
export const traceDataLineageMap = commonJsModule.traceDataLineageMap;
|
|
@@ -90,6 +90,8 @@ exports.DATA_OBSERVABILITY_API_ROUTES = {
|
|
|
90
90
|
pipelineLineage: "/data-observability/pipelines/lineage",
|
|
91
91
|
// The next tables a card of a lineage diagram does not draw: what pressing its count asks.
|
|
92
92
|
lineageExpand: "/data-observability/lineage/expand",
|
|
93
|
+
// Every flow the project has seen, newest first: who writes and reads which tables, and what feeds what. What the Lineage Map draws.
|
|
94
|
+
lineageMap: "/data-observability/lineage/map",
|
|
93
95
|
// What Data Security knows each of a table's columns holds.
|
|
94
96
|
tableSensitivity: "/data-observability/tables/sensitivity",
|
|
95
97
|
// The errors in the services that write a table, naming it.
|
|
@@ -94,9 +94,13 @@ class UserAttribution {
|
|
|
94
94
|
}
|
|
95
95
|
/*
|
|
96
96
|
* A column's metadata, as it applies: a column OneUptime decides is
|
|
97
|
-
* computed - OneUptime fills it in - so the
|
|
98
|
-
*
|
|
99
|
-
*
|
|
97
|
+
* computed - OneUptime fills it in - so the API reference and the
|
|
98
|
+
* Terraform provider offer it for reading only. A create's column check
|
|
99
|
+
* holds a value a caller gives a computed column to its create list
|
|
100
|
+
* (ColumnPermission.checkComputedColumnsSentOnCreate), and these lists are
|
|
101
|
+
* empty, but DatabaseService takes the value out of a write made in a
|
|
102
|
+
* project before that check, so a client that sends one keeps working.
|
|
103
|
+
* Other columns are returned as they are.
|
|
100
104
|
*/
|
|
101
105
|
static getColumnMetadata(columnName, metadata) {
|
|
102
106
|
if (!UserAttribution.isDecidedByServer(columnName)) {
|
package/Types/Date.d.mts
CHANGED
|
@@ -253,7 +253,6 @@ export default class OneUptimeDate {
|
|
|
253
253
|
static getCurrentDate(): Date;
|
|
254
254
|
static fromNow(date: Date, now?: Date | undefined): string;
|
|
255
255
|
static differenceBetweenTwoDatesAsFromattedString(date1: Date, date2: Date): string;
|
|
256
|
-
static toTimeString(date: Date | string, use12HourFormat?: boolean): string;
|
|
257
256
|
static isSame(date1: Date, date2: Date): boolean;
|
|
258
257
|
static getWholeDaysOfTimeBetween(startDate: Date | string, endDate: Date | string): number;
|
|
259
258
|
static getDaysBetweenTwoDates(startDate: Date, endDate: Date): number;
|
|
@@ -358,7 +357,6 @@ export default class OneUptimeDate {
|
|
|
358
357
|
static getSomeMinutesAfter(minutes: PositiveNumber | number): Date;
|
|
359
358
|
static getSomeHoursAfter(hours: PositiveNumber | number): Date;
|
|
360
359
|
static getSomeDaysAfter(days: PositiveNumber | number): Date;
|
|
361
|
-
static secondsToFormattedTimeString(seconds: number): string;
|
|
362
360
|
static toUnixTimestamp(date: Date): number;
|
|
363
361
|
static secondsToFormattedFriendlyTimeString(seconds: number, options?: FriendlyTimeOptions | undefined): string;
|
|
364
362
|
private static getFriendlyTimeParts;
|
package/Types/Date.d.ts
CHANGED
|
@@ -253,7 +253,6 @@ export default class OneUptimeDate {
|
|
|
253
253
|
static getCurrentDate(): Date;
|
|
254
254
|
static fromNow(date: Date, now?: Date | undefined): string;
|
|
255
255
|
static differenceBetweenTwoDatesAsFromattedString(date1: Date, date2: Date): string;
|
|
256
|
-
static toTimeString(date: Date | string, use12HourFormat?: boolean): string;
|
|
257
256
|
static isSame(date1: Date, date2: Date): boolean;
|
|
258
257
|
static getWholeDaysOfTimeBetween(startDate: Date | string, endDate: Date | string): number;
|
|
259
258
|
static getDaysBetweenTwoDates(startDate: Date, endDate: Date): number;
|
|
@@ -358,7 +357,6 @@ export default class OneUptimeDate {
|
|
|
358
357
|
static getSomeMinutesAfter(minutes: PositiveNumber | number): Date;
|
|
359
358
|
static getSomeHoursAfter(hours: PositiveNumber | number): Date;
|
|
360
359
|
static getSomeDaysAfter(days: PositiveNumber | number): Date;
|
|
361
|
-
static secondsToFormattedTimeString(seconds: number): string;
|
|
362
360
|
static toUnixTimestamp(date: Date): number;
|
|
363
361
|
static secondsToFormattedFriendlyTimeString(seconds: number, options?: FriendlyTimeOptions | undefined): string;
|
|
364
362
|
private static getFriendlyTimeParts;
|