@finos/legend-extension-dsl-data-quality
Version:
Legend extension for Data Quality
57 lines • 3.15 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 EditorStore, NewElementDriver } from '@finos/legend-application-studio';
import { type DataQualityValidationConfiguration, DataQualityRelationValidation } from '../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
import { type Mapping, type PackageableRuntime } from '@finos/legend-graph';
import { type PackageableElementOption } from '@finos/legend-lego/graph-editor';
import { DataSpace } from '@finos/legend-extension-dsl-data-space/graph';
export type RuntimeOption = {
label: string;
value: PackageableRuntime | undefined;
};
export declare enum CLASS_ELEMENT_CREATION_BASIS {
MAPPING_RUNTIME_BASED = "Mapping/Runtime",
DATASPACE_BASED = "DataSpace"
}
export declare enum DQ_VALIDATION_ELEMENT_TYPE {
CLASS_VALIDATION = "ClassValidation",
SERVICE_VALIDATION = "ServiceValidation",
RELATION_VALIDATION = "RelationValidation"
}
export declare class DataQuality_ElementDriver extends NewElementDriver<DataQualityValidationConfiguration> {
dqValidationElementType: DQ_VALIDATION_ELEMENT_TYPE;
dqClassElementCreationBasis: CLASS_ELEMENT_CREATION_BASIS;
dataSpaceSelected: PackageableElementOption<DataSpace> | undefined;
mappingSelected: PackageableElementOption<Mapping> | undefined;
runtimeSelected: RuntimeOption | undefined;
constructor(editorStore: EditorStore);
get dataSpaceOptions(): PackageableElementOption<DataSpace>[];
get mappingOptions(): PackageableElementOption<Mapping>[];
get compatibleMappingRuntimes(): PackageableRuntime[];
get runtimeOptions(): RuntimeOption[];
get isValid(): boolean;
setDataSpaceSelected(dataSpace: PackageableElementOption<DataSpace> | undefined): void;
setMappingSelected(mappingSelected: PackageableElementOption<Mapping> | undefined): void;
setRuntimeSelected(runtimeSelected: RuntimeOption | undefined): void;
setDqClassElementCreationBasis(dqClassElementCreationBasis: CLASS_ELEMENT_CREATION_BASIS): void;
setDqValidationElementType(dqValidationElementType: DQ_VALIDATION_ELEMENT_TYPE): void;
createDefaultValidation(): DataQualityRelationValidation[];
createRelationValidationElement(name: string): DataQualityValidationConfiguration;
createServiceValidationElement(name: string): DataQualityValidationConfiguration;
createClassValidationElement(name: string): DataQualityValidationConfiguration;
createElement(name: string): DataQualityValidationConfiguration;
}
//# sourceMappingURL=DSL_DataQuality_ElementDriver.d.ts.map