@finos/legend-extension-dsl-data-quality
Version:
Legend extension for Data Quality
82 lines • 3.98 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 PackageableElementVisitor, type GraphFetchTree, type Mapping, type PackageableElementReference, type PackageableRuntime, type RawLambda, type ParameterValue, type RawVariableExpression, type EXECUTION_SERIALIZATION_FORMAT, PackageableElement } from '@finos/legend-graph';
import { type Hashable } from '@finos/legend-shared';
import type { DataSpace } from '@finos/legend-extension-dsl-data-space/graph';
import type { DataQualityRootGraphFetchTree } from './DataQualityGraphFetchTree.js';
export declare enum RelationValidationType {
ROW_LEVEL = "ROW_LEVEL",
AGGREGATE = "AGGREGATE"
}
export interface DQExecuteInputOptions {
lambdaParameterValues?: ParameterValue[];
clientVersion?: string | undefined;
validationName?: string | undefined;
previewLimit?: number | undefined;
runQuery?: boolean | undefined;
serializationFormat?: EXECUTION_SERIALIZATION_FORMAT | undefined;
}
export declare abstract class DataQualityExecutionContext implements Hashable {
abstract get hashCode(): string;
}
export declare class DataSpaceDataQualityExecutionContext extends DataQualityExecutionContext {
context: string;
dataSpace: PackageableElementReference<DataSpace>;
get hashCode(): string;
}
export declare class MappingAndRuntimeDataQualityExecutionContext extends DataQualityExecutionContext {
mapping: PackageableElementReference<Mapping>;
runtime: PackageableElementReference<PackageableRuntime>;
get hashCode(): string;
}
export declare abstract class DataQualityValidationConfiguration extends PackageableElement {
}
export declare class DataQualityClassValidationsConfiguration extends DataQualityValidationConfiguration implements Hashable {
context: DataQualityExecutionContext;
dataQualityRootGraphFetchTree: DataQualityRootGraphFetchTree | undefined;
filter?: RawLambda | undefined;
protected get _elementHashCode(): string;
accept_PackageableElementVisitor<T>(visitor: PackageableElementVisitor<T>): T;
}
export declare class DataQualityServiceValidationConfiguration extends DataQualityValidationConfiguration implements Hashable {
serviceName: string | undefined;
contextName: string | undefined;
dataQualityRootGraphFetchTree: GraphFetchTree | undefined;
protected get _elementHashCode(): string;
accept_PackageableElementVisitor<T>(visitor: PackageableElementVisitor<T>): T;
}
export declare class DataQualityRelationQueryLambda implements Hashable {
body?: object | undefined;
parameters: RawVariableExpression[];
get hashCode(): string;
}
export declare class DataQualityRelationValidation implements Hashable {
readonly _UUID: string;
name: string;
description: string | undefined;
assertion: RawLambda;
type?: RelationValidationType;
constructor(name: string, assertion: RawLambda);
get hashCode(): string;
}
export declare class DataQualityRelationValidationConfiguration extends DataQualityValidationConfiguration implements Hashable {
query: DataQualityRelationQueryLambda;
validations: DataQualityRelationValidation[];
runtime?: PackageableElementReference<PackageableRuntime> | undefined;
protected get _elementHashCode(): string;
accept_PackageableElementVisitor<T>(visitor: PackageableElementVisitor<T>): T;
}
//# sourceMappingURL=DataQualityValidationConfiguration.d.ts.map