@finos/legend-extension-dsl-data-quality 1.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/LICENSE +201 -0
- package/README.md +1 -0
- package/lib/components/DSL_DataQuality_ClassElementDriver.d.ts +46 -0
- package/lib/components/DSL_DataQuality_ClassElementDriver.d.ts.map +1 -0
- package/lib/components/DSL_DataQuality_ClassElementDriver.js +116 -0
- package/lib/components/DSL_DataQuality_ClassElementDriver.js.map +1 -0
- package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.d.ts +30 -0
- package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.d.ts.map +1 -0
- package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.js +161 -0
- package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.js.map +1 -0
- package/lib/components/DSL_DataQuality_LegendStudioPlugin_Extension.d.ts +25 -0
- package/lib/components/DSL_DataQuality_LegendStudioPlugin_Extension.d.ts.map +1 -0
- package/lib/components/DSL_DataQuality_LegendStudioPlugin_Extension.js +2 -0
- package/lib/components/DSL_DataQuality_LegendStudioPlugin_Extension.js.map +1 -0
- package/lib/components/DSL_DataQuality_ServiceElementDriver.d.ts +27 -0
- package/lib/components/DSL_DataQuality_ServiceElementDriver.d.ts.map +1 -0
- package/lib/components/DSL_DataQuality_ServiceElementDriver.js +41 -0
- package/lib/components/DSL_DataQuality_ServiceElementDriver.js.map +1 -0
- package/lib/components/DSL_NewDataQualityClassValidationElement.d.ts +19 -0
- package/lib/components/DSL_NewDataQualityClassValidationElement.d.ts.map +1 -0
- package/lib/components/DSL_NewDataQualityClassValidationElement.js +64 -0
- package/lib/components/DSL_NewDataQualityClassValidationElement.js.map +1 -0
- package/lib/components/DSL_NewDataQualityServiceValidationElement.d.ts +19 -0
- package/lib/components/DSL_NewDataQualityServiceValidationElement.d.ts.map +1 -0
- package/lib/components/DSL_NewDataQualityServiceValidationElement.js +41 -0
- package/lib/components/DSL_NewDataQualityServiceValidationElement.js.map +1 -0
- package/lib/components/DataQualityClassValidationEditor.d.ts +19 -0
- package/lib/components/DataQualityClassValidationEditor.d.ts.map +1 -0
- package/lib/components/DataQualityClassValidationEditor.js +29 -0
- package/lib/components/DataQualityClassValidationEditor.js.map +1 -0
- package/lib/components/DataQualityConstraintsSelection.d.ts +39 -0
- package/lib/components/DataQualityConstraintsSelection.d.ts.map +1 -0
- package/lib/components/DataQualityConstraintsSelection.js +133 -0
- package/lib/components/DataQualityConstraintsSelection.js.map +1 -0
- package/lib/components/DataQualityDataSpaceBuilder.d.ts +22 -0
- package/lib/components/DataQualityDataSpaceBuilder.d.ts.map +1 -0
- package/lib/components/DataQualityDataSpaceBuilder.js +101 -0
- package/lib/components/DataQualityDataSpaceBuilder.js.map +1 -0
- package/lib/components/DataQualityExplorerPanel.d.ts +29 -0
- package/lib/components/DataQualityExplorerPanel.d.ts.map +1 -0
- package/lib/components/DataQualityExplorerPanel.js +185 -0
- package/lib/components/DataQualityExplorerPanel.js.map +1 -0
- package/lib/components/DataQualityFilterPanel.d.ts +24 -0
- package/lib/components/DataQualityFilterPanel.d.ts.map +1 -0
- package/lib/components/DataQualityFilterPanel.js +32 -0
- package/lib/components/DataQualityFilterPanel.js.map +1 -0
- package/lib/components/DataQualityMappingAndRuntimeBuilder.d.ts +22 -0
- package/lib/components/DataQualityMappingAndRuntimeBuilder.d.ts.map +1 -0
- package/lib/components/DataQualityMappingAndRuntimeBuilder.js +98 -0
- package/lib/components/DataQualityMappingAndRuntimeBuilder.js.map +1 -0
- package/lib/components/DataQualityResultPanel.d.ts +22 -0
- package/lib/components/DataQualityResultPanel.d.ts.map +1 -0
- package/lib/components/DataQualityResultPanel.js +110 -0
- package/lib/components/DataQualityResultPanel.js.map +1 -0
- package/lib/components/DataQualityResultValues.d.ts +24 -0
- package/lib/components/DataQualityResultValues.d.ts.map +1 -0
- package/lib/components/DataQualityResultValues.js +31 -0
- package/lib/components/DataQualityResultValues.js.map +1 -0
- package/lib/components/DataQualityServiceValidationEditor.d.ts +19 -0
- package/lib/components/DataQualityServiceValidationEditor.d.ts.map +1 -0
- package/lib/components/DataQualityServiceValidationEditor.js +29 -0
- package/lib/components/DataQualityServiceValidationEditor.js.map +1 -0
- package/lib/components/DataQualitySideBar.d.ts +40 -0
- package/lib/components/DataQualitySideBar.d.ts.map +1 -0
- package/lib/components/DataQualitySideBar.js +78 -0
- package/lib/components/DataQualitySideBar.js.map +1 -0
- package/lib/components/DataQualityStructuralValidationsPanel.d.ts +22 -0
- package/lib/components/DataQualityStructuralValidationsPanel.d.ts.map +1 -0
- package/lib/components/DataQualityStructuralValidationsPanel.js +50 -0
- package/lib/components/DataQualityStructuralValidationsPanel.js.map +1 -0
- package/lib/components/DataQualityTabs.d.ts +22 -0
- package/lib/components/DataQualityTabs.d.ts.map +1 -0
- package/lib/components/DataQualityTabs.js +58 -0
- package/lib/components/DataQualityTabs.js.map +1 -0
- package/lib/components/DataQualityValidationEditor.d.ts +23 -0
- package/lib/components/DataQualityValidationEditor.d.ts.map +1 -0
- package/lib/components/DataQualityValidationEditor.js +24 -0
- package/lib/components/DataQualityValidationEditor.js.map +1 -0
- package/lib/components/constants/DataQualityConstants.d.ts +24 -0
- package/lib/components/constants/DataQualityConstants.d.ts.map +1 -0
- package/lib/components/constants/DataQualityConstants.js +25 -0
- package/lib/components/constants/DataQualityConstants.js.map +1 -0
- package/lib/components/index.d.ts +19 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +19 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/states/ConstraintState.d.ts +30 -0
- package/lib/components/states/ConstraintState.d.ts.map +1 -0
- package/lib/components/states/ConstraintState.js +55 -0
- package/lib/components/states/ConstraintState.js.map +1 -0
- package/lib/components/states/DataQualityClassValidationState.d.ts +43 -0
- package/lib/components/states/DataQualityClassValidationState.d.ts.map +1 -0
- package/lib/components/states/DataQualityClassValidationState.js +162 -0
- package/lib/components/states/DataQualityClassValidationState.js.map +1 -0
- package/lib/components/states/DataQualityGraphFetchTreeState.d.ts +34 -0
- package/lib/components/states/DataQualityGraphFetchTreeState.d.ts.map +1 -0
- package/lib/components/states/DataQualityGraphFetchTreeState.js +70 -0
- package/lib/components/states/DataQualityGraphFetchTreeState.js.map +1 -0
- package/lib/components/states/DataQualityQueryBuilderState.d.ts +19 -0
- package/lib/components/states/DataQualityQueryBuilderState.d.ts.map +1 -0
- package/lib/components/states/DataQualityQueryBuilderState.js +19 -0
- package/lib/components/states/DataQualityQueryBuilderState.js.map +1 -0
- package/lib/components/states/DataQualityResultState.d.ts +44 -0
- package/lib/components/states/DataQualityResultState.d.ts.map +1 -0
- package/lib/components/states/DataQualityResultState.js +154 -0
- package/lib/components/states/DataQualityResultState.js.map +1 -0
- package/lib/components/states/DataQualityServiceValidationState.d.ts +25 -0
- package/lib/components/states/DataQualityServiceValidationState.d.ts.map +1 -0
- package/lib/components/states/DataQualityServiceValidationState.js +33 -0
- package/lib/components/states/DataQualityServiceValidationState.js.map +1 -0
- package/lib/components/states/DataQualityState.d.ts +67 -0
- package/lib/components/states/DataQualityState.d.ts.map +1 -0
- package/lib/components/states/DataQualityState.js +204 -0
- package/lib/components/states/DataQualityState.js.map +1 -0
- package/lib/components/utils/DataQualityGraphFetchTreeUtil.d.ts +51 -0
- package/lib/components/utils/DataQualityGraphFetchTreeUtil.d.ts.map +1 -0
- package/lib/components/utils/DataQualityGraphFetchTreeUtil.js +321 -0
- package/lib/components/utils/DataQualityGraphFetchTreeUtil.js.map +1 -0
- package/lib/graph/metamodel/DSL_DataQuality_HashUtils.d.ts +29 -0
- package/lib/graph/metamodel/DSL_DataQuality_HashUtils.d.ts.map +1 -0
- package/lib/graph/metamodel/DSL_DataQuality_HashUtils.js +30 -0
- package/lib/graph/metamodel/DSL_DataQuality_HashUtils.js.map +1 -0
- package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.d.ts +22 -0
- package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.d.ts.map +1 -0
- package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.js +31 -0
- package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.js.map +1 -0
- package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.d.ts +26 -0
- package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.d.ts.map +1 -0
- package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.js +44 -0
- package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.js.map +1 -0
- package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.d.ts +47 -0
- package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.d.ts.map +1 -0
- package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js +75 -0
- package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js.map +1 -0
- package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.d.ts +20 -0
- package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.d.ts.map +1 -0
- package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.js +20 -0
- package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.js.map +1 -0
- package/lib/graph-manager/DSL_DataQuality_GraphManagerPreset.d.ts +20 -0
- package/lib/graph-manager/DSL_DataQuality_GraphManagerPreset.d.ts.map +1 -0
- package/lib/graph-manager/DSL_DataQuality_GraphManagerPreset.js +30 -0
- package/lib/graph-manager/DSL_DataQuality_GraphManagerPreset.js.map +1 -0
- package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.d.ts +26 -0
- package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.d.ts.map +1 -0
- package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.js +57 -0
- package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.js.map +1 -0
- package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.d.ts +7 -0
- package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.d.ts.map +1 -0
- package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.js +42 -0
- package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.js.map +1 -0
- package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.d.ts +24 -0
- package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.d.ts.map +1 -0
- package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.js +98 -0
- package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.js.map +1 -0
- package/lib/graph-manager/index.d.ts +19 -0
- package/lib/graph-manager/index.d.ts.map +1 -0
- package/lib/graph-manager/index.js +19 -0
- package/lib/graph-manager/index.js.map +1 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.d.ts +27 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.js +21 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.js.map +1 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.d.ts +25 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.js +140 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.js.map +1 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.d.ts +18 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.js +20 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts +41 -0
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.js +95 -0
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.d.ts +46 -0
- package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.js +76 -0
- package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.d.ts +22 -0
- package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.js +32 -0
- package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.d.ts +22 -0
- package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.js +31 -0
- package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationBuilderHelper.d.ts +24 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationBuilderHelper.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationBuilderHelper.js +92 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationBuilderHelper.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationSerializer.d.ts +20 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationSerializer.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationSerializer.js +56 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationSerializer.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationTransformer.d.ts +22 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationTransformer.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationTransformer.js +70 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationTransformer.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.d.ts +29 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.js +80 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.js.map +1 -0
- package/lib/index.css +17 -0
- package/lib/index.css.map +1 -0
- package/lib/package.json +87 -0
- package/package.json +87 -0
- package/src/components/DSL_DataQuality_ClassElementDriver.tsx +175 -0
- package/src/components/DSL_DataQuality_LegendStudioApplicationPlugin.tsx +220 -0
- package/src/components/DSL_DataQuality_LegendStudioPlugin_Extension.ts +39 -0
- package/src/components/DSL_DataQuality_ServiceElementDriver.tsx +57 -0
- package/src/components/DSL_NewDataQualityClassValidationElement.tsx +156 -0
- package/src/components/DSL_NewDataQualityServiceValidationElement.tsx +74 -0
- package/src/components/DataQualityClassValidationEditor.tsx +49 -0
- package/src/components/DataQualityConstraintsSelection.tsx +376 -0
- package/src/components/DataQualityDataSpaceBuilder.tsx +274 -0
- package/src/components/DataQualityExplorerPanel.tsx +584 -0
- package/src/components/DataQualityFilterPanel.tsx +50 -0
- package/src/components/DataQualityMappingAndRuntimeBuilder.tsx +224 -0
- package/src/components/DataQualityResultPanel.tsx +335 -0
- package/src/components/DataQualityResultValues.tsx +61 -0
- package/src/components/DataQualityServiceValidationEditor.tsx +49 -0
- package/src/components/DataQualitySideBar.tsx +216 -0
- package/src/components/DataQualityStructuralValidationsPanel.tsx +105 -0
- package/src/components/DataQualityTabs.tsx +104 -0
- package/src/components/DataQualityValidationEditor.tsx +52 -0
- package/src/components/constants/DataQualityConstants.ts +24 -0
- package/src/components/index.ts +19 -0
- package/src/components/states/ConstraintState.ts +70 -0
- package/src/components/states/DataQualityClassValidationState.ts +308 -0
- package/src/components/states/DataQualityGraphFetchTreeState.ts +125 -0
- package/src/components/states/DataQualityQueryBuilderState.ts +19 -0
- package/src/components/states/DataQualityResultState.ts +217 -0
- package/src/components/states/DataQualityServiceValidationState.ts +56 -0
- package/src/components/states/DataQualityState.ts +354 -0
- package/src/components/utils/DataQualityGraphFetchTreeUtil.ts +592 -0
- package/src/graph/metamodel/DSL_DataQuality_HashUtils.ts +29 -0
- package/src/graph/metamodel/DSL_DataQuality_PureGraphPlugin.ts +36 -0
- package/src/graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.ts +55 -0
- package/src/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.ts +107 -0
- package/src/graph-manager/DSL_DataQuality_GraphManagerHelper.ts +46 -0
- package/src/graph-manager/DSL_DataQuality_GraphManagerPreset.ts +31 -0
- package/src/graph-manager/DSL_DataQuality_GraphModifierHelper.ts +113 -0
- package/src/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.ts +59 -0
- package/src/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.ts +153 -0
- package/src/graph-manager/index.ts +19 -0
- package/src/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.ts +59 -0
- package/src/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.ts +283 -0
- package/src/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.ts +27 -0
- package/src/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.ts +246 -0
- package/src/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.ts +103 -0
- package/src/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.ts +37 -0
- package/src/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.ts +36 -0
- package/src/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationBuilderHelper.ts +241 -0
- package/src/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationSerializer.ts +113 -0
- package/src/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationTransformer.ts +139 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.ts +186 -0
- package/style/_data-quality-validation-builder.scss +1660 -0
- package/style/index.scss +67 -0
- package/tsconfig.json +137 -0
- package/tsconfig.package.json +9 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import packageJson from '../../../../package.json';
|
|
17
|
+
import { assertType } from '@finos/legend-shared';
|
|
18
|
+
import { V1_DataQualityClassValidationsConfiguration, V1_DataQualityServiceValidationsConfiguration, } from './v1/V1_DataQualityConstraintsConfiguration.js';
|
|
19
|
+
import { DataQualityClassValidationsConfiguration, DataQualityServiceValidationConfiguration, } from '../../../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
|
|
20
|
+
import { getOwnDataQualityClassValidationsConfiguration, getOwnDataQualityServiceValidationsConfiguration, } from '../../DSL_DataQuality_GraphManagerHelper.js';
|
|
21
|
+
import { V1_DATA_QUALITY_PROTOCOL_TYPE, V1_DATA_QUALITY_SERVICE_PROTOCOL_TYPE, V1_deserializeDataQualityClassValidation, V1_deserializeDataQualityServiceValidation, V1_serializeDataQualityClassValidation, V1_serializeDataQualityServiceValidation, } from './v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.js';
|
|
22
|
+
import { V1_transformDataQualityExecutionContext, V1_transformDataQualityGraphFetchTree, } from './v1/transformation/V1_ValueSpecificationTransformer.js';
|
|
23
|
+
import { V1_buildDataQualityExecutionContext, V1_buildDataQualityGraphFetchTree, } from './v1/transformation/V1_ValueSpecificationBuilderHelper.js';
|
|
24
|
+
import { V1_buildFullPath, V1_buildRawLambdaWithResolvedPaths, V1_initPackageableElement, V1_transformRawLambda, V1_ElementBuilder, V1_ProcessingContext, PureProtocolProcessorPlugin, } from '@finos/legend-graph';
|
|
25
|
+
const DATA_QUALITY_CLASSIFIER_PATH = 'meta::pure::metamodel::dataquality::DataQuality';
|
|
26
|
+
export class DSL_DataQuality_PureProtocolProcessorPlugin extends PureProtocolProcessorPlugin {
|
|
27
|
+
constructor() {
|
|
28
|
+
super(packageJson.extensions.pureProtocolProcessorPlugin, packageJson.version);
|
|
29
|
+
}
|
|
30
|
+
V1_getExtraElementBuilders() {
|
|
31
|
+
return [
|
|
32
|
+
new V1_ElementBuilder({
|
|
33
|
+
elementClassName: V1_DATA_QUALITY_PROTOCOL_TYPE,
|
|
34
|
+
_class: V1_DataQualityClassValidationsConfiguration,
|
|
35
|
+
firstPass: (elementProtocol, context) => {
|
|
36
|
+
assertType(elementProtocol, V1_DataQualityClassValidationsConfiguration);
|
|
37
|
+
const element = new DataQualityClassValidationsConfiguration(elementProtocol.name);
|
|
38
|
+
const path = V1_buildFullPath(elementProtocol.package, elementProtocol.name);
|
|
39
|
+
context.currentSubGraph.setOwnElementInExtension(path, element, DataQualityClassValidationsConfiguration);
|
|
40
|
+
return element;
|
|
41
|
+
},
|
|
42
|
+
secondPass: (elementProtocol, context) => {
|
|
43
|
+
assertType(elementProtocol, V1_DataQualityClassValidationsConfiguration);
|
|
44
|
+
const path = V1_buildFullPath(elementProtocol.package, elementProtocol.name);
|
|
45
|
+
const element = getOwnDataQualityClassValidationsConfiguration(path, context.currentSubGraph);
|
|
46
|
+
element.context = V1_buildDataQualityExecutionContext(elementProtocol.context, context);
|
|
47
|
+
element.dataQualityRootGraphFetchTree =
|
|
48
|
+
elementProtocol.dataQualityRootGraphFetchTree
|
|
49
|
+
? V1_buildDataQualityGraphFetchTree(elementProtocol.dataQualityRootGraphFetchTree, context, undefined, [], new V1_ProcessingContext(''), true)
|
|
50
|
+
: undefined;
|
|
51
|
+
element.filter = elementProtocol.filter
|
|
52
|
+
? V1_buildRawLambdaWithResolvedPaths(elementProtocol.filter.parameters, elementProtocol.filter.body, context)
|
|
53
|
+
: undefined;
|
|
54
|
+
},
|
|
55
|
+
}),
|
|
56
|
+
//TODO handle service validations
|
|
57
|
+
new V1_ElementBuilder({
|
|
58
|
+
elementClassName: 'dataQualityServiceValidations',
|
|
59
|
+
_class: V1_DataQualityServiceValidationsConfiguration,
|
|
60
|
+
firstPass: (elementProtocol, context) => {
|
|
61
|
+
assertType(elementProtocol, V1_DataQualityServiceValidationsConfiguration);
|
|
62
|
+
const element = new DataQualityServiceValidationConfiguration(elementProtocol.name);
|
|
63
|
+
const path = V1_buildFullPath(elementProtocol.package, elementProtocol.name);
|
|
64
|
+
context.currentSubGraph.setOwnElementInExtension(path, element, DataQualityServiceValidationConfiguration);
|
|
65
|
+
return element;
|
|
66
|
+
},
|
|
67
|
+
secondPass: (elementProtocol, context) => {
|
|
68
|
+
assertType(elementProtocol, V1_DataQualityServiceValidationsConfiguration);
|
|
69
|
+
const path = V1_buildFullPath(elementProtocol.package, elementProtocol.name);
|
|
70
|
+
const element = getOwnDataQualityServiceValidationsConfiguration(path, context.currentSubGraph);
|
|
71
|
+
element.contextName = elementProtocol.contextName;
|
|
72
|
+
element.serviceName = elementProtocol.serviceName;
|
|
73
|
+
element.dataQualityRootGraphFetchTree =
|
|
74
|
+
elementProtocol.dataQualityRootGraphFetchTree
|
|
75
|
+
? V1_buildDataQualityGraphFetchTree(elementProtocol.dataQualityRootGraphFetchTree, context, undefined, [], new V1_ProcessingContext(''), true)
|
|
76
|
+
: undefined;
|
|
77
|
+
},
|
|
78
|
+
}),
|
|
79
|
+
];
|
|
80
|
+
}
|
|
81
|
+
V1_getExtraElementClassifierPathGetters() {
|
|
82
|
+
return [
|
|
83
|
+
(protocol) => {
|
|
84
|
+
if (protocol instanceof V1_DataQualityClassValidationsConfiguration) {
|
|
85
|
+
return DATA_QUALITY_CLASSIFIER_PATH;
|
|
86
|
+
}
|
|
87
|
+
return undefined;
|
|
88
|
+
},
|
|
89
|
+
];
|
|
90
|
+
}
|
|
91
|
+
V1_getExtraElementProtocolSerializers() {
|
|
92
|
+
return [
|
|
93
|
+
(protocol, plugins) => {
|
|
94
|
+
if (protocol instanceof V1_DataQualityClassValidationsConfiguration) {
|
|
95
|
+
return V1_serializeDataQualityClassValidation(protocol);
|
|
96
|
+
}
|
|
97
|
+
if (protocol instanceof V1_DataQualityServiceValidationsConfiguration) {
|
|
98
|
+
return V1_serializeDataQualityServiceValidation(protocol);
|
|
99
|
+
}
|
|
100
|
+
return undefined;
|
|
101
|
+
},
|
|
102
|
+
];
|
|
103
|
+
}
|
|
104
|
+
V1_getExtraElementProtocolDeserializers() {
|
|
105
|
+
return [
|
|
106
|
+
(json, plugins) => {
|
|
107
|
+
if (json._type === V1_DATA_QUALITY_PROTOCOL_TYPE) {
|
|
108
|
+
return V1_deserializeDataQualityClassValidation(json);
|
|
109
|
+
}
|
|
110
|
+
if (json._type === V1_DATA_QUALITY_SERVICE_PROTOCOL_TYPE) {
|
|
111
|
+
return V1_deserializeDataQualityServiceValidation(json);
|
|
112
|
+
}
|
|
113
|
+
return undefined;
|
|
114
|
+
},
|
|
115
|
+
];
|
|
116
|
+
}
|
|
117
|
+
V1_getExtraElementTransformers() {
|
|
118
|
+
return [
|
|
119
|
+
(metamodel, context) => {
|
|
120
|
+
if (metamodel instanceof DataQualityClassValidationsConfiguration) {
|
|
121
|
+
const protocol = new V1_DataQualityClassValidationsConfiguration();
|
|
122
|
+
V1_initPackageableElement(protocol, metamodel);
|
|
123
|
+
protocol.name = metamodel.name;
|
|
124
|
+
protocol.package = metamodel.package?.path ?? '';
|
|
125
|
+
protocol.dataQualityRootGraphFetchTree =
|
|
126
|
+
metamodel.dataQualityRootGraphFetchTree
|
|
127
|
+
? V1_transformDataQualityGraphFetchTree(metamodel.dataQualityRootGraphFetchTree, [], new Map(), false, false)
|
|
128
|
+
: undefined;
|
|
129
|
+
protocol.context = V1_transformDataQualityExecutionContext(metamodel.context);
|
|
130
|
+
protocol.filter = metamodel.filter
|
|
131
|
+
? V1_transformRawLambda(metamodel.filter, context)
|
|
132
|
+
: undefined;
|
|
133
|
+
return protocol;
|
|
134
|
+
}
|
|
135
|
+
return undefined;
|
|
136
|
+
},
|
|
137
|
+
];
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
//# sourceMappingURL=DSL_DataQuality_PureProtocolProcessorPlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSL_DataQuality_PureProtocolProcessorPlugin.js","sourceRoot":"","sources":["../../../../src/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAoB,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EACL,2CAA2C,EAC3C,6CAA6C,GAC9C,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,wCAAwC,EACxC,yCAAyC,GAC1C,MAAM,sGAAsG,CAAC;AAC9G,OAAO,EACL,8CAA8C,EAC9C,gDAAgD,GACjD,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,6BAA6B,EAC7B,qCAAqC,EACrC,wCAAwC,EACxC,0CAA0C,EAC1C,sCAAsC,EACtC,wCAAwC,GACzC,MAAM,uEAAuE,CAAC;AAC/E,OAAO,EACL,uCAAuC,EACvC,qCAAqC,GACtC,MAAM,yDAAyD,CAAC;AACjE,OAAO,EACL,mCAAmC,EACnC,iCAAiC,GAClC,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EASL,gBAAgB,EAChB,kCAAkC,EAClC,yBAAyB,EACzB,qBAAqB,EACrB,iBAAiB,EACjB,oBAAoB,EACpB,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAG7B,MAAM,4BAA4B,GAChC,iDAAiD,CAAC;AAEpD,MAAM,OAAO,2CAA4C,SAAQ,2BAA2B;IAC1F;QACE,KAAK,CACH,WAAW,CAAC,UAAU,CAAC,2BAA2B,EAClD,WAAW,CAAC,OAAO,CACpB,CAAC;IACJ,CAAC;IAEQ,0BAA0B;QACjC,OAAO;YACL,IAAI,iBAAiB,CAA8C;gBACjE,gBAAgB,EAAE,6BAA6B;gBAC/C,MAAM,EAAE,2CAA2C;gBACnD,SAAS,EAAE,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AC,6BAA6B;4BACrC,CAAC,CAAE,qCAAqC,CACpC,SAAS,CAAC,6BAA6B,EACvC,EAAE,EACF,IAAI,GAAG,EAAqB,EAC5B,KAAK,EACL,KAAK,CAC+B;4BACxC,CAAC,CAAC,SAAS,CAAC;oBAChB,QAAQ,CAAC,OAAO,GAAG,uCAAuC,CACxD,SAAS,CAAC,OAAO,CAClB,CAAC;oBACF,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM;wBAChC,CAAC,CAAC,qBAAqB,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC;wBAClD,CAAC,CAAC,SAAS,CAAC;oBACd,OAAO,QAAQ,CAAC;gBAClB,CAAC;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { AbstractPureGraphManager, AbstractPureGraphManagerExtension } from '@finos/legend-graph';
|
|
17
|
+
export declare const DSL_DataQuality_buildGraphManagerExtension: (graphManager: AbstractPureGraphManager) => AbstractPureGraphManagerExtension;
|
|
18
|
+
//# sourceMappingURL=DSL_DataQuality_buildGraphManagerExtension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSL_DataQuality_buildGraphManagerExtension.d.ts","sourceRoot":"","sources":["../../../../src/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,wBAAwB,EACxB,iCAAiC,EAClC,MAAM,qBAAqB,CAAC;AAG7B,eAAO,MAAM,0CAA0C,iBACvC,wBAAwB,KACrC,iCAE8D,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { V1_DSL_Data_Quality_PureGraphManagerExtension } from './v1/V1_DSL_Data_Quality_PureGraphManagerExtension.js';
|
|
17
|
+
export const DSL_DataQuality_buildGraphManagerExtension = (graphManager) =>
|
|
18
|
+
// NOTE: until we support more client versions, we always default to return V1
|
|
19
|
+
new V1_DSL_Data_Quality_PureGraphManagerExtension(graphManager);
|
|
20
|
+
//# sourceMappingURL=DSL_DataQuality_buildGraphManagerExtension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSL_DataQuality_buildGraphManagerExtension.js","sourceRoot":"","sources":["../../../../src/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,6CAA6C,EAAE,MAAM,uDAAuD,CAAC;AAEtH,MAAM,CAAC,MAAM,0CAA0C,GAAG,CACxD,YAAsC,EACH,EAAE;AACrC,8EAA8E;AAC9E,IAAI,6CAA6C,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { type AbstractPureGraphManager, type RawExecutionPlan, type ExecutionResult, type PureModel, type RootGraphFetchTree, type V1_PureModelContext, PureClientVersion, V1_PureGraphManager } from '@finos/legend-graph';
|
|
17
|
+
import { SerializationFactory } from '@finos/legend-shared';
|
|
18
|
+
import { DSL_DataQuality_PureGraphManagerExtension } from '../DSL_DataQuality_PureGraphManagerExtension.js';
|
|
19
|
+
export declare class V1_DQExecuteInput {
|
|
20
|
+
clientVersion: string | undefined;
|
|
21
|
+
model: V1_PureModelContext;
|
|
22
|
+
packagePath: string;
|
|
23
|
+
queryLimit: number | undefined;
|
|
24
|
+
static readonly serialization: SerializationFactory<V1_DQExecuteInput>;
|
|
25
|
+
}
|
|
26
|
+
export declare class V1_DSL_Data_Quality_PureGraphManagerExtension extends DSL_DataQuality_PureGraphManagerExtension {
|
|
27
|
+
graphManager: V1_PureGraphManager;
|
|
28
|
+
static readonly DEV_PROTOCOL_VERSION = PureClientVersion.VX_X_X;
|
|
29
|
+
constructor(graphManager: AbstractPureGraphManager);
|
|
30
|
+
getSupportedProtocolVersion(): string;
|
|
31
|
+
private buildPureModelSDLCPointer;
|
|
32
|
+
createExecutionInput(graph: PureModel, packagePath: string, clientVersion: string | undefined, previewLimit: number | undefined, dqExecuteInput: V1_DQExecuteInput): V1_DQExecuteInput;
|
|
33
|
+
generatePlan: (graph: PureModel, packagePath: string) => Promise<RawExecutionPlan>;
|
|
34
|
+
execute: (graph: PureModel, packagePath: string, previewLimit: number) => Promise<ExecutionResult>;
|
|
35
|
+
debugExecutionPlanGeneration: (graph: PureModel, packagePath: string) => Promise<{
|
|
36
|
+
plan: RawExecutionPlan;
|
|
37
|
+
debug: string;
|
|
38
|
+
}>;
|
|
39
|
+
fetchStructuralValidations: (graph: PureModel, packagePath: string) => Promise<RootGraphFetchTree>;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts.map
|
package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts","sourceRoot":"","sources":["../../../../../src/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,kBAAkB,EAGvB,KAAK,mBAAmB,EAExB,iBAAiB,EAKjB,mBAAmB,EAGpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAEL,oBAAoB,EAErB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,yCAAyC,EAAE,MAAM,iDAAiD,CAAC;AAY5G,qBAAa,iBAAiB;IAC5B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,KAAK,EAAG,mBAAmB,CAAC;IAC5B,WAAW,EAAG,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAE/B,MAAM,CAAC,QAAQ,CAAC,aAAa,0CAO3B;CACH;AAED,qBAAa,6CAA8C,SAAQ,yCAAyC;IAClG,YAAY,EAAE,mBAAmB,CAAC;IAC1C,MAAM,CAAC,QAAQ,CAAC,oBAAoB,4BAA4B;gBAEpD,YAAY,EAAE,wBAAwB;IAKlD,2BAA2B,IAAI,MAAM;IAIrC,OAAO,CAAC,yBAAyB;IAkBjC,oBAAoB,CAClB,KAAK,EAAE,SAAS,EAChB,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,cAAc,EAAE,iBAAiB,GAChC,iBAAiB;IAUpB,YAAY,UACH,SAAS,eACH,MAAM,KAClB,OAAO,CAAC,gBAAgB,CAAC,CAsB1B;IAEF,OAAO,UACE,SAAS,eACH,MAAM,gBACL,MAAM,KACnB,OAAO,CAAC,eAAe,CAAC,CAqBzB;IAEF,4BAA4B,UACnB,SAAS,eACH,MAAM,KAClB,OAAO,CAAC;QAAE,IAAI,EAAE,gBAAgB,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CA0BnD;IAEF,0BAA0B,UACjB,SAAS,eACH,MAAM,KAClB,OAAO,CAAC,kBAAkB,CAAC,CAwC5B;CACH"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { LegendSDLC, PureClientVersion, V1_GraphBuilderContextBuilder, V1_LegendSDLC, V1_ProcessingContext, V1_Protocol, V1_PureGraphManager, V1_PureModelContextPointer, V1_pureModelContextPropSchema, } from '@finos/legend-graph';
|
|
17
|
+
import { createModelSchema, optional, primitive } from 'serializr';
|
|
18
|
+
import { guaranteeType, SerializationFactory, UnsupportedOperationError, } from '@finos/legend-shared';
|
|
19
|
+
import { DSL_DataQuality_PureGraphManagerExtension } from '../DSL_DataQuality_PureGraphManagerExtension.js';
|
|
20
|
+
import { V1_transformRootGraphFetchTreeToDataQualityRootGraphFetchTree, V1_buildDataQualityGraphFetchTree, } from './transformation/V1_ValueSpecificationBuilderHelper.js';
|
|
21
|
+
const DQ_GENERATE_EXECUTION_PLAN = 'generate execution plan';
|
|
22
|
+
const DQ_EXECUTE_PLAN = 'execute plan';
|
|
23
|
+
const DQ_DEBUG_EXECUTION_PLAN = 'debug execution plan';
|
|
24
|
+
const DQ_FETCH_PROPERTY_PATH_TREE = 'dq fetch property path tree';
|
|
25
|
+
export class V1_DQExecuteInput {
|
|
26
|
+
clientVersion;
|
|
27
|
+
model;
|
|
28
|
+
packagePath;
|
|
29
|
+
queryLimit;
|
|
30
|
+
static serialization = new SerializationFactory(createModelSchema(V1_DQExecuteInput, {
|
|
31
|
+
clientVersion: optional(primitive()),
|
|
32
|
+
model: V1_pureModelContextPropSchema,
|
|
33
|
+
packagePath: primitive(),
|
|
34
|
+
queryLimit: optional(primitive()),
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
export class V1_DSL_Data_Quality_PureGraphManagerExtension extends DSL_DataQuality_PureGraphManagerExtension {
|
|
38
|
+
static DEV_PROTOCOL_VERSION = PureClientVersion.VX_X_X;
|
|
39
|
+
constructor(graphManager) {
|
|
40
|
+
super(graphManager);
|
|
41
|
+
this.graphManager = guaranteeType(graphManager, V1_PureGraphManager);
|
|
42
|
+
}
|
|
43
|
+
getSupportedProtocolVersion() {
|
|
44
|
+
return PureClientVersion.V1_0_0;
|
|
45
|
+
}
|
|
46
|
+
buildPureModelSDLCPointer(origin, clientVersion) {
|
|
47
|
+
if (origin instanceof LegendSDLC) {
|
|
48
|
+
return new V1_PureModelContextPointer(clientVersion
|
|
49
|
+
? new V1_Protocol(V1_PureGraphManager.PURE_PROTOCOL_NAME, clientVersion)
|
|
50
|
+
: undefined, new V1_LegendSDLC(origin.groupId, origin.artifactId, origin.versionId));
|
|
51
|
+
}
|
|
52
|
+
throw new UnsupportedOperationError('Unsupported graph origin');
|
|
53
|
+
}
|
|
54
|
+
createExecutionInput(graph, packagePath, clientVersion, previewLimit, dqExecuteInput) {
|
|
55
|
+
dqExecuteInput.clientVersion = clientVersion;
|
|
56
|
+
dqExecuteInput.model = graph.origin
|
|
57
|
+
? this.buildPureModelSDLCPointer(graph.origin, undefined)
|
|
58
|
+
: this.graphManager.getFullGraphModelData(graph);
|
|
59
|
+
dqExecuteInput.packagePath = packagePath;
|
|
60
|
+
dqExecuteInput.queryLimit = previewLimit;
|
|
61
|
+
return dqExecuteInput;
|
|
62
|
+
}
|
|
63
|
+
generatePlan = async (graph, packagePath) => {
|
|
64
|
+
const input = this.createExecutionInput(graph, packagePath, V1_DSL_Data_Quality_PureGraphManagerExtension.DEV_PROTOCOL_VERSION, undefined, new V1_DQExecuteInput());
|
|
65
|
+
const serializedInput = V1_DQExecuteInput.serialization.toJson(input);
|
|
66
|
+
const engineServerClient = this.graphManager.engine.getEngineServerClient();
|
|
67
|
+
return engineServerClient.postWithTracing(engineServerClient.getTraceData(DQ_GENERATE_EXECUTION_PLAN), `${engineServerClient._pure()}/dataquality/generatePlan`, serializedInput, {}, undefined, undefined, { enableCompression: true });
|
|
68
|
+
};
|
|
69
|
+
execute = async (graph, packagePath, previewLimit) => {
|
|
70
|
+
const input = this.createExecutionInput(graph, packagePath, V1_DSL_Data_Quality_PureGraphManagerExtension.DEV_PROTOCOL_VERSION, previewLimit, new V1_DQExecuteInput());
|
|
71
|
+
const serializedInput = V1_DQExecuteInput.serialization.toJson(input);
|
|
72
|
+
const engineServerClient = this.graphManager.engine.getEngineServerClient();
|
|
73
|
+
return engineServerClient.postWithTracing(engineServerClient.getTraceData(DQ_EXECUTE_PLAN), `${engineServerClient._pure()}/dataquality/execute`, serializedInput, {}, undefined, undefined, { enableCompression: true });
|
|
74
|
+
};
|
|
75
|
+
debugExecutionPlanGeneration = async (graph, packagePath) => {
|
|
76
|
+
const input = this.createExecutionInput(graph, packagePath, V1_DSL_Data_Quality_PureGraphManagerExtension.DEV_PROTOCOL_VERSION, undefined, new V1_DQExecuteInput());
|
|
77
|
+
const serializedInput = V1_DQExecuteInput.serialization.toJson(input);
|
|
78
|
+
const engineServerClient = this.graphManager.engine.getEngineServerClient();
|
|
79
|
+
const result = await engineServerClient.postWithTracing(engineServerClient.getTraceData(DQ_DEBUG_EXECUTION_PLAN), `${engineServerClient._pure()}/dataquality/debugPlan`, serializedInput, {}, undefined, undefined, { enableCompression: true });
|
|
80
|
+
return {
|
|
81
|
+
plan: result.plan,
|
|
82
|
+
debug: result.debug.join('\n'),
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
fetchStructuralValidations = async (graph, packagePath) => {
|
|
86
|
+
const engineServerClient = this.graphManager.engine.getEngineServerClient();
|
|
87
|
+
const input = this.createExecutionInput(graph, packagePath, V1_DSL_Data_Quality_PureGraphManagerExtension.DEV_PROTOCOL_VERSION, undefined, new V1_DQExecuteInput());
|
|
88
|
+
const serializedInput = V1_DQExecuteInput.serialization.toJson(input);
|
|
89
|
+
const V1_rootGraphFetchTree = await engineServerClient.postWithTracing(engineServerClient.getTraceData(DQ_FETCH_PROPERTY_PATH_TREE), `${engineServerClient._pure()}/dataquality/propertyPathTree`, serializedInput, {}, undefined, undefined, { enableCompression: true });
|
|
90
|
+
const V1_dataQualityRootGraphFetchTree = V1_transformRootGraphFetchTreeToDataQualityRootGraphFetchTree(V1_rootGraphFetchTree);
|
|
91
|
+
const context = new V1_GraphBuilderContextBuilder(graph, graph, this.graphManager.graphBuilderExtensions, this.graphManager.logService).build();
|
|
92
|
+
return V1_buildDataQualityGraphFetchTree(V1_dataQualityRootGraphFetchTree, context, undefined, [], new V1_ProcessingContext(''), true);
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=V1_DSL_Data_Quality_PureGraphManagerExtension.js.map
|
package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V1_DSL_Data_Quality_PureGraphManagerExtension.js","sourceRoot":"","sources":["../../../../../src/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EASL,UAAU,EACV,iBAAiB,EACjB,6BAA6B,EAC7B,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,mBAAmB,EACnB,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,yCAAyC,EAAE,MAAM,iDAAiD,CAAC;AAC5G,OAAO,EACL,6DAA6D,EAC7D,iCAAiC,GAClC,MAAM,wDAAwD,CAAC;AAGhE,MAAM,0BAA0B,GAAG,yBAAyB,CAAC;AAC7D,MAAM,eAAe,GAAG,cAAc,CAAC;AAC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,CAAC,YAAY,CAAC,MAAM,CAAC,qBAAqB,EAAE,CAAC;QAC5E,MAAM,KAAK,GAAG,IAAI,CAAC,oBAAoB,CACrC,KAAK,EACL,WAAW,EACX,6CAA6C,CAAC,oBAAoB,EAClE,SAAS,EACT,IAAI,iBAAiB,EAAE,CACxB,CAAC;QAEF,MAAM,eAAe,GAAG,iBAAiB,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACtE,MAAM,qBAAqB,GACzB,MAAM,kBAAkB,CAAC,eAAe,CACtC,kBAAkB,CAAC,YAAY,CAAC,2BAA2B,CAAC,EAC5D,GAAG,kBAAkB,CAAC,KAAK,EAAE,+BAA+B,EAC5D,eAAe,EACf,EAAE,EACF,SAAS,EACT,SAAS,EACT,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAC5B,CAAC;QAEJ,MAAM,gCAAgC,GACpC,6DAA6D,CAC3D,qBAAqB,CACtB,CAAC;QACJ,MAAM,OAAO,GAAG,IAAI,6BAA6B,CAC/C,KAAK,EACL,KAAK,EACL,IAAI,CAAC,YAAY,CAAC,sBAAsB,EACxC,IAAI,CAAC,YAAY,CAAC,UAAU,CAC7B,CAAC,KAAK,EAAE,CAAC;QACV,OAAO,iCAAiC,CACtC,gCAAgC,EAChC,OAAO,EACP,SAAS,EACT,EAAE,EACF,IAAI,oBAAoB,CAAC,EAAE,CAAC,EAC5B,IAAI,CAC4B,CAAC;IACrC,CAAC,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { type V1_PackageableElementVisitor, type V1_PackageableElementPointer, type V1_RawLambda, V1_PackageableElement } from '@finos/legend-graph';
|
|
17
|
+
import { type Hashable } from '@finos/legend-shared';
|
|
18
|
+
import { type V1_DataQualityRootGraphFetchTree } from './model/graphFetch/V1_DataQualityRootGraphFetchTree.js';
|
|
19
|
+
export declare abstract class V1_DataQualityExecutionContext implements Hashable {
|
|
20
|
+
abstract get hashCode(): string;
|
|
21
|
+
}
|
|
22
|
+
export declare class V1_DataSpaceDataQualityExecutionContext extends V1_DataQualityExecutionContext {
|
|
23
|
+
context: string;
|
|
24
|
+
dataSpace: V1_PackageableElementPointer;
|
|
25
|
+
get hashCode(): string;
|
|
26
|
+
}
|
|
27
|
+
export declare class V1_MappingAndRuntimeDataQualityExecutionContext extends V1_DataQualityExecutionContext {
|
|
28
|
+
mapping: V1_PackageableElementPointer;
|
|
29
|
+
runtime: V1_PackageableElementPointer;
|
|
30
|
+
get hashCode(): string;
|
|
31
|
+
}
|
|
32
|
+
export declare class V1_DataQualityClassValidationsConfiguration extends V1_PackageableElement implements Hashable {
|
|
33
|
+
context: V1_DataQualityExecutionContext;
|
|
34
|
+
dataQualityRootGraphFetchTree: V1_DataQualityRootGraphFetchTree | undefined;
|
|
35
|
+
filter?: V1_RawLambda | undefined;
|
|
36
|
+
get hashCode(): string;
|
|
37
|
+
accept_PackageableElementVisitor<T>(visitor: V1_PackageableElementVisitor<T>): T;
|
|
38
|
+
}
|
|
39
|
+
export declare class V1_DataQualityServiceValidationsConfiguration extends V1_PackageableElement implements Hashable {
|
|
40
|
+
contextName?: string | undefined;
|
|
41
|
+
serviceName?: string | undefined;
|
|
42
|
+
dataQualityRootGraphFetchTree?: V1_DataQualityRootGraphFetchTree | undefined;
|
|
43
|
+
get hashCode(): string;
|
|
44
|
+
accept_PackageableElementVisitor<T>(visitor: V1_PackageableElementVisitor<T>): T;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=V1_DataQualityConstraintsConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V1_DataQualityConstraintsConfiguration.d.ts","sourceRoot":"","sources":["../../../../../src/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,YAAY,EACjB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,wDAAwD,CAAC;AAE/G,8BAAsB,8BAA+B,YAAW,QAAQ;IACtE,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;CACjC;AAED,qBAAa,uCAAwC,SAAQ,8BAA8B;IACzF,OAAO,EAAG,MAAM,CAAC;IACjB,SAAS,EAAG,4BAA4B,CAAC;IAEzC,IAAa,QAAQ,IAAI,MAAM,CAM9B;CACF;AAED,qBAAa,+CAAgD,SAAQ,8BAA8B;IACjG,OAAO,EAAG,4BAA4B,CAAC;IACvC,OAAO,EAAG,4BAA4B,CAAC;IAEvC,IAAa,QAAQ,IAAI,MAAM,CAM9B;CACF;AAED,qBAAa,2CACX,SAAQ,qBACR,YAAW,QAAQ;IAEnB,OAAO,EAAG,8BAA8B,CAAC;IACzC,6BAA6B,EAAE,gCAAgC,GAAG,SAAS,CAAC;IAC5E,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IAElC,IAAa,QAAQ,IAAI,MAAM,CAO9B;IAED,gCAAgC,CAAC,CAAC,EAChC,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC,GACvC,CAAC;CAGL;AAED,qBAAa,6CACX,SAAQ,qBACR,YAAW,QAAQ;IAEnB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,6BAA6B,CAAC,EAAE,gCAAgC,GAAG,SAAS,CAAC;IAE7E,IAAa,QAAQ,IAAI,MAAM,CAO9B;IAED,gCAAgC,CAAC,CAAC,EAChC,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC,GACvC,CAAC;CAGL"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { V1_PackageableElement, } from '@finos/legend-graph';
|
|
17
|
+
import { hashArray } from '@finos/legend-shared';
|
|
18
|
+
import { DATA_QUALITY_HASH_STRUCTURE } from '../../../../graph/metamodel/DSL_DataQuality_HashUtils.js';
|
|
19
|
+
import {} from './model/graphFetch/V1_DataQualityRootGraphFetchTree.js';
|
|
20
|
+
export class V1_DataQualityExecutionContext {
|
|
21
|
+
}
|
|
22
|
+
export class V1_DataSpaceDataQualityExecutionContext extends V1_DataQualityExecutionContext {
|
|
23
|
+
context;
|
|
24
|
+
dataSpace;
|
|
25
|
+
get hashCode() {
|
|
26
|
+
return hashArray([
|
|
27
|
+
DATA_QUALITY_HASH_STRUCTURE.DATA_QUALTIY_DATASPACE_EXECUTION_CONTEXT,
|
|
28
|
+
this.context,
|
|
29
|
+
this.dataSpace.path,
|
|
30
|
+
]);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export class V1_MappingAndRuntimeDataQualityExecutionContext extends V1_DataQualityExecutionContext {
|
|
34
|
+
mapping;
|
|
35
|
+
runtime;
|
|
36
|
+
get hashCode() {
|
|
37
|
+
return hashArray([
|
|
38
|
+
DATA_QUALITY_HASH_STRUCTURE.DATA_QUALITY_MAPPING_AND_RUNTIME_EXECUTION_CONTEXT,
|
|
39
|
+
this.mapping.path,
|
|
40
|
+
this.runtime.path,
|
|
41
|
+
]);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export class V1_DataQualityClassValidationsConfiguration extends V1_PackageableElement {
|
|
45
|
+
context;
|
|
46
|
+
dataQualityRootGraphFetchTree;
|
|
47
|
+
filter;
|
|
48
|
+
get hashCode() {
|
|
49
|
+
return hashArray([
|
|
50
|
+
DATA_QUALITY_HASH_STRUCTURE.DATA_QUALITY_CONSTRAINTS_CONFIGURATION,
|
|
51
|
+
this.context,
|
|
52
|
+
this.filter ?? '',
|
|
53
|
+
this.dataQualityRootGraphFetchTree ?? '',
|
|
54
|
+
]);
|
|
55
|
+
}
|
|
56
|
+
accept_PackageableElementVisitor(visitor) {
|
|
57
|
+
return visitor.visit_PackageableElement(this);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
export class V1_DataQualityServiceValidationsConfiguration extends V1_PackageableElement {
|
|
61
|
+
contextName;
|
|
62
|
+
serviceName;
|
|
63
|
+
dataQualityRootGraphFetchTree;
|
|
64
|
+
get hashCode() {
|
|
65
|
+
return hashArray([
|
|
66
|
+
DATA_QUALITY_HASH_STRUCTURE.DATA_QUALITY_SERVICE_VALIDATION_CONFIGURATION,
|
|
67
|
+
this.contextName ?? '',
|
|
68
|
+
this.serviceName ?? '',
|
|
69
|
+
this.dataQualityRootGraphFetchTree ?? '',
|
|
70
|
+
]);
|
|
71
|
+
}
|
|
72
|
+
accept_PackageableElementVisitor(visitor) {
|
|
73
|
+
return visitor.visit_PackageableElement(this);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=V1_DataQualityConstraintsConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V1_DataQualityConstraintsConfiguration.js","sourceRoot":"","sources":["../../../../../src/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,0DAA0D,CAAC;AACvG,OAAO,EAAyC,MAAM,wDAAwD,CAAC;AAE/G,MAAM,OAAgB,8BAA8B;CAEnD;AAED,MAAM,OAAO,uCAAwC,SAAQ,8BAA8B;IACzF,OAAO,CAAU;IACjB,SAAS,CAAgC;IAEzC,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,2BAA2B,CAAC,wCAAwC;YACpE,IAAI,CAAC,OAAO;YACZ,IAAI,CAAC,SAAS,CAAC,IAAI;SACpB,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,+CAAgD,SAAQ,8BAA8B;IACjG,OAAO,CAAgC;IACvC,OAAO,CAAgC;IAEvC,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,2BAA2B,CAAC,kDAAkD;YAC9E,IAAI,CAAC,OAAO,CAAC,IAAI;YACjB,IAAI,CAAC,OAAO,CAAC,IAAI;SAClB,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,2CACX,SAAQ,qBAAqB;IAG7B,OAAO,CAAkC;IACzC,6BAA6B,CAA+C;IAC5E,MAAM,CAA4B;IAElC,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,2BAA2B,CAAC,sCAAsC;YAClE,IAAI,CAAC,OAAO;YACZ,IAAI,CAAC,MAAM,IAAI,EAAE;YACjB,IAAI,CAAC,6BAA6B,IAAI,EAAE;SACzC,CAAC,CAAC;IACL,CAAC;IAED,gCAAgC,CAC9B,OAAwC;QAExC,OAAO,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CACF;AAED,MAAM,OAAO,6CACX,SAAQ,qBAAqB;IAG7B,WAAW,CAAsB;IACjC,WAAW,CAAsB;IACjC,6BAA6B,CAAgD;IAE7E,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,2BAA2B,CAAC,6CAA6C;YACzE,IAAI,CAAC,WAAW,IAAI,EAAE;YACtB,IAAI,CAAC,WAAW,IAAI,EAAE;YACtB,IAAI,CAAC,6BAA6B,IAAI,EAAE;SACzC,CAAC,CAAC;IACL,CAAC;IAED,gCAAgC,CAC9B,OAAwC;QAExC,OAAO,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { V1_PropertyGraphFetchTree } from '@finos/legend-graph';
|
|
17
|
+
import { type Hashable } from '@finos/legend-shared';
|
|
18
|
+
export declare class V1_DataQualityPropertyGraphFetchTree extends V1_PropertyGraphFetchTree implements Hashable {
|
|
19
|
+
constraints: string[];
|
|
20
|
+
get hashCode(): string;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=V1_DataQualityPropertyGraphFetchTree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V1_DataQualityPropertyGraphFetchTree.d.ts","sourceRoot":"","sources":["../../../../../../../src/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,qBAAa,oCACX,SAAQ,yBACR,YAAW,QAAQ;IAEnB,WAAW,EAAE,MAAM,EAAE,CAAM;IAE3B,IAAa,QAAQ,IAAI,MAAM,CAS9B;CACF"}
|
package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { V1_PropertyGraphFetchTree } from '@finos/legend-graph';
|
|
17
|
+
import { hashArray } from '@finos/legend-shared';
|
|
18
|
+
import { DATA_QUALITY_HASH_STRUCTURE } from '../../../../../../graph/metamodel/DSL_DataQuality_HashUtils.js';
|
|
19
|
+
export class V1_DataQualityPropertyGraphFetchTree extends V1_PropertyGraphFetchTree {
|
|
20
|
+
constraints = [];
|
|
21
|
+
get hashCode() {
|
|
22
|
+
return hashArray([
|
|
23
|
+
DATA_QUALITY_HASH_STRUCTURE.DATA_QUALITY_PROPERTY_GRAPH_FETCH_TREE,
|
|
24
|
+
hashArray(this.subTrees),
|
|
25
|
+
this.property,
|
|
26
|
+
this.alias ?? '',
|
|
27
|
+
this.subType ?? '',
|
|
28
|
+
hashArray(this.constraints),
|
|
29
|
+
]);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=V1_DataQualityPropertyGraphFetchTree.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V1_DataQualityPropertyGraphFetchTree.js","sourceRoot":"","sources":["../../../../../../../src/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,gEAAgE,CAAC;AAE7G,MAAM,OAAO,oCACX,SAAQ,yBAAyB;IAGjC,WAAW,GAAa,EAAE,CAAC;IAE3B,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,2BAA2B,CAAC,sCAAsC;YAClE,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;YACxB,IAAI,CAAC,QAAQ;YACb,IAAI,CAAC,KAAK,IAAI,EAAE;YAChB,IAAI,CAAC,OAAO,IAAI,EAAE;YAClB,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC;SAC5B,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { type Hashable } from '@finos/legend-shared';
|
|
17
|
+
import { V1_RootGraphFetchTree } from '@finos/legend-graph';
|
|
18
|
+
export declare class V1_DataQualityRootGraphFetchTree extends V1_RootGraphFetchTree implements Hashable {
|
|
19
|
+
constraints: string[];
|
|
20
|
+
get hashCode(): string;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=V1_DataQualityRootGraphFetchTree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V1_DataQualityRootGraphFetchTree.d.ts","sourceRoot":"","sources":["../../../../../../../src/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,qBAAa,gCACX,SAAQ,qBACR,YAAW,QAAQ;IAEnB,WAAW,EAAE,MAAM,EAAE,CAAM;IAE3B,IAAa,QAAQ,IAAI,MAAM,CAQ9B;CACF"}
|
package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { hashArray } from '@finos/legend-shared';
|
|
17
|
+
import { DATA_QUALITY_HASH_STRUCTURE } from '../../../../../../graph/metamodel/DSL_DataQuality_HashUtils.js';
|
|
18
|
+
import { V1_RootGraphFetchTree } from '@finos/legend-graph';
|
|
19
|
+
export class V1_DataQualityRootGraphFetchTree extends V1_RootGraphFetchTree {
|
|
20
|
+
constraints = [];
|
|
21
|
+
get hashCode() {
|
|
22
|
+
return hashArray([
|
|
23
|
+
DATA_QUALITY_HASH_STRUCTURE.DATA_QUALITY_ROOT_GRAPH_FETCH_TREE,
|
|
24
|
+
hashArray(this.subTrees),
|
|
25
|
+
hashArray(this.subTypeTrees),
|
|
26
|
+
hashArray(this.constraints),
|
|
27
|
+
this.class,
|
|
28
|
+
]);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=V1_DataQualityRootGraphFetchTree.js.map
|
package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V1_DataQualityRootGraphFetchTree.js","sourceRoot":"","sources":["../../../../../../../src/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,gEAAgE,CAAC;AAC7G,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,OAAO,gCACX,SAAQ,qBAAqB;IAG7B,WAAW,GAAa,EAAE,CAAC;IAE3B,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,2BAA2B,CAAC,kCAAkC;YAC9D,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;YACxB,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC;YAC5B,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC;YAC3B,IAAI,CAAC,KAAK;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|