@finos/legend-extension-dsl-data-space
Version:
Legend extension for Data Space DSL
53 lines • 4.43 kB
TypeScript
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { type QueryInfo, type AbstractPureGraphManager, type PureProtocolProcessorPlugin, type GraphManagerOperationReport, PureModel, V1_PureGraphManager, V1_MappingAnalysisCoveragePartition, V1_MappingModelCoveragePartition } from '@finos/legend-graph';
import type { Entity, ProjectGAVCoordinates, StoredFileGeneration } from '@finos/legend-storage';
import { type PlainObject, ActionState } from '@finos/legend-shared';
import { V1_DataSpace } from '../../../../graph-manager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.js';
import { DataSpaceAnalysisResult } from '../../../action/analytics/DataSpaceAnalysis.js';
import { DSL_DataSpace_PureGraphManagerExtension } from '../DSL_DataSpace_PureGraphManagerExtension.js';
import { type V1_DataSpaceAnalysisResult } from './engine/analytics/V1_DataSpaceAnalysis.js';
export declare class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_PureGraphManagerExtension {
graphManager: V1_PureGraphManager;
constructor(graphManager: AbstractPureGraphManager);
getSupportedProtocolVersion(): string;
getDataSpaceProtocolFromEntity(dataSpaceEntity: Entity): V1_DataSpace;
IsTemplateQueryIdValid(dataSpaceEntity: Entity, id: string): boolean;
addNewExecutableToDataSpaceEntity(dataSpaceEntity: Entity, currentQuery: QueryInfo, executable: {
id: string;
title: string;
description?: string;
}): Promise<Entity>;
analyzeDataSpace(dataSpacePath: string, entitiesRetriever: () => Promise<Entity[]>, cacheRetriever?: () => Promise<PlainObject<DataSpaceAnalysisResult>>, actionState?: ActionState): Promise<DataSpaceAnalysisResult>;
retrieveDataSpaceAnalysisFromFileGeneration: (fileGeneration: StoredFileGeneration[]) => PlainObject<V1_DataSpaceAnalysisResult> | undefined;
retrieveExecutionContextFromTemplateQueryId(dataSpaceAnalysisResult: PlainObject<V1_DataSpaceAnalysisResult>, templateQueryId: string, plugins: PureProtocolProcessorPlugin[]): string | undefined;
analyzeDataSpaceCoverage(dataSpacePath: string, entitiesWithClassifierRetriever: () => Promise<[
PlainObject<Entity>[],
PlainObject<Entity>[]
]>, cacheRetriever?: () => Promise<PlainObject<StoredFileGeneration>[]>, actionState?: ActionState, graphReport?: GraphManagerOperationReport | undefined, pureGraph?: PureModel | undefined, executionContext?: string | undefined, mappingPath?: string | undefined, projectInfo?: ProjectGAVCoordinates, templateQueryId?: string): Promise<DataSpaceAnalysisResult>;
retrieveDataSpaceAnalysisFromCache(cacheRetriever: () => Promise<PlainObject<DataSpaceAnalysisResult>>, actionState?: ActionState): Promise<DataSpaceAnalysisResult | undefined>;
private fetchDataSpaceAnalysisFromCache;
private fetchDataSpaceArtifactsFromCache;
processFunctionForMinimalGraph(entitiesWithClassifierRetriever: () => Promise<[
PlainObject<Entity>[],
PlainObject<Entity>[]
]>, graph: PureModel, dataSpaceAnalysisResult: DataSpaceAnalysisResult, plugins: PureProtocolProcessorPlugin[]): Promise<void>;
buildDataSpaceAnalytics(analytics: PlainObject<V1_DataSpaceAnalysisResult>, plugins: PureProtocolProcessorPlugin[], buildMinimalGraph?: boolean, mappingAnalysisCoveragePartition?: V1_MappingAnalysisCoveragePartition[], mappingModelCoveragePartition?: V1_MappingModelCoveragePartition[], graphReport?: GraphManagerOperationReport | undefined, pureGraph?: PureModel | undefined, executionContext?: string | undefined, mappingPath?: string | undefined, projectInfo?: ProjectGAVCoordinates, entitiesWithClassifierRetriever?: () => Promise<[
PlainObject<Entity>[],
PlainObject<Entity>[]
]>): Promise<DataSpaceAnalysisResult>;
}
//# sourceMappingURL=V1_DSL_DataSpace_PureGraphManagerExtension.d.ts.map