@finos/legend-extension-dsl-data-quality
Version:
Legend extension for Data Quality
59 lines • 3 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 ExportDataInfo, ExecutionPlanState } from '@finos/legend-query-builder';
import { type GeneratorFn, ActionState } from '@finos/legend-shared';
import { type ExecutionResult } from '@finos/legend-graph';
import type { DataQualityRelationValidationConfigurationState } from './DataQualityRelationValidationConfigurationState.js';
import type { DataQualityRelationValidation } from '../../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
export type DataQualityRelationResultCellDataType = string | number | boolean | null | undefined;
export interface DataQualityRelationRowDataType {
[key: string]: DataQualityRelationResultCellDataType;
}
export interface DataQualityRelationResultCellCoordinate {
rowIndex: number;
colIndex: number;
}
export declare const DEFAULT_LIMIT = 1000;
export declare class DataQualityRelationResultState {
readonly dataQualityRelationValidationConfigurationState: DataQualityRelationValidationConfigurationState;
readonly executionPlanState: ExecutionPlanState;
readonly exportState: ActionState;
previewLimit: number;
isRunningValidation: boolean;
isGeneratingPlan: boolean;
executionResult?: ExecutionResult | undefined;
executionDuration?: number | undefined;
latestRunHashCode?: string | undefined;
validationRunPromise: Promise<ExecutionResult> | undefined;
validationToRun: DataQualityRelationValidation | undefined;
constructor(dataQualityRelationValidationState: DataQualityRelationValidationConfigurationState);
setIsRunningValidation(val: boolean): void;
setExecutionResult(val: ExecutionResult | undefined): void;
setExecutionDuration(val: number | undefined): void;
setPreviewLimit(val: number): void;
setValidationRunPromise(promise: Promise<ExecutionResult> | undefined): void;
setValidationToRun(validation: DataQualityRelationValidation): void;
get checkForStaleResults(): boolean;
handleRunValidation(): void;
handleExport(format: string): void;
runValidation(): GeneratorFn<void>;
cancelValidation(): GeneratorFn<void>;
generatePlan(debug: boolean): GeneratorFn<void>;
getExportDataInfo(format: string): ExportDataInfo;
get exportDataFormatOptions(): string[];
exportData(format: string): GeneratorFn<void>;
}
//# sourceMappingURL=DataQualityRelationResultState.d.ts.map