@finos/legend-extension-dsl-data-space 4.0.4 → 6.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/lib/DSLDataSpace_Const.d.ts +18 -0
- package/lib/DSLDataSpace_Const.d.ts.map +1 -0
- package/lib/DSLDataSpace_Const.js +20 -0
- package/lib/DSLDataSpace_Const.js.map +1 -0
- package/lib/DSLDataSpace_Extension.d.ts +1 -1
- package/lib/DSLDataSpace_Extension.d.ts.map +1 -1
- package/lib/DSLDataSpace_Extension.js +3 -3
- package/lib/DSLDataSpace_Extension.js.map +1 -1
- package/lib/components/DataSpaceViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceViewer.js +30 -27
- package/lib/components/DataSpaceViewer.js.map +1 -1
- package/lib/components/query/{DSLDataSpace_LegendQueryPlugin.d.ts → DSLDataSpace_LegendQueryApplicationPlugin.d.ts} +6 -3
- package/lib/components/query/DSLDataSpace_LegendQueryApplicationPlugin.d.ts.map +1 -0
- package/lib/components/query/{DSLDataSpace_LegendQueryPlugin.js → DSLDataSpace_LegendQueryApplicationPlugin.js} +28 -4
- package/lib/components/query/DSLDataSpace_LegendQueryApplicationPlugin.js.map +1 -0
- package/lib/components/query/DataSpaceQueryEditor.d.ts +20 -0
- package/lib/components/query/DataSpaceQueryEditor.d.ts.map +1 -0
- package/lib/components/query/DataSpaceQueryEditor.js +43 -0
- package/lib/components/query/DataSpaceQueryEditor.js.map +1 -0
- package/lib/components/query/DataSpaceQuerySetup.d.ts.map +1 -1
- package/lib/components/query/DataSpaceQuerySetup.js +4 -17
- package/lib/components/query/DataSpaceQuerySetup.js.map +1 -1
- package/lib/components/studio/{DSLDataSpace_LegendStudioPlugin.d.ts → DSLDataSpace_LegendStudioApplicationPlugin.d.ts} +3 -3
- package/lib/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.d.ts.map +1 -0
- package/lib/components/studio/{DSLDataSpace_LegendStudioPlugin.js → DSLDataSpace_LegendStudioApplicationPlugin.js} +5 -5
- package/lib/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.js.map +1 -0
- package/lib/{models/DSLDataSpace_ModelUtils.d.ts → graph/DSLDataSpace_HashUtils.d.ts} +1 -1
- package/lib/graph/DSLDataSpace_HashUtils.d.ts.map +1 -0
- package/lib/{models/DSLDataSpace_ModelUtils.js → graph/DSLDataSpace_HashUtils.js} +1 -1
- package/lib/graph/DSLDataSpace_HashUtils.js.map +1 -0
- package/lib/graph/DSLDataSpace_PureGraphPlugin.js +1 -1
- package/lib/graph/DSLDataSpace_PureGraphPlugin.js.map +1 -1
- package/lib/{models/metamodels → graph/metamodel}/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.d.ts +0 -0
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.d.ts.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js +1 -1
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js.map +1 -0
- package/lib/graphManager/DSLDataSpace_GraphManagerHelper.d.ts +1 -1
- package/lib/graphManager/DSLDataSpace_GraphManagerHelper.d.ts.map +1 -1
- package/lib/graphManager/DSLDataSpace_GraphManagerHelper.js +1 -1
- package/lib/graphManager/DSLDataSpace_GraphManagerHelper.js.map +1 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.d.ts +2 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.d.ts.map +1 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.js +5 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.js.map +1 -1
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts +50 -0
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts.map +1 -0
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.js +48 -0
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.js.map +1 -0
- package/lib/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.d.ts +1 -1
- package/lib/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.d.ts.map +1 -1
- package/lib/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.js +1 -0
- package/lib/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.js.map +1 -1
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.d.ts +23 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.js +21 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.js.map +1 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtensionBuilder.d.ts +18 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtensionBuilder.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtensionBuilder.js +20 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtensionBuilder.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts +0 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/DSLDataSpace_PureProtocolProcessorPlugin.js +1 -1
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureProtocolProcessorPlugin.js.map +1 -0
- package/lib/graphManager/protocol/pure/v1/V1_DSLDataSpace_PureGraphManagerExtension.d.ts +26 -0
- package/lib/graphManager/protocol/pure/v1/V1_DSLDataSpace_PureGraphManagerExtension.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/v1/V1_DSLDataSpace_PureGraphManagerExtension.js +131 -0
- package/lib/graphManager/protocol/pure/v1/V1_DSLDataSpace_PureGraphManagerExtension.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/V1_DSLDataSpace_SystemModels.json +0 -0
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts +53 -0
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js +78 -0
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.d.ts +0 -0
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.d.ts +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.js +0 -0
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts +3 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js.map +1 -0
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +5 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -3
- package/lib/index.js.map +1 -1
- package/lib/package.json +15 -14
- package/lib/stores/DataSpaceViewerState.d.ts +7 -11
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
- package/lib/stores/DataSpaceViewerState.js +10 -32
- package/lib/stores/DataSpaceViewerState.js.map +1 -1
- package/lib/stores/query/DSLDataSpace_LegendQueryRouter.d.ts +32 -0
- package/lib/stores/query/DSLDataSpace_LegendQueryRouter.d.ts.map +1 -0
- package/lib/stores/query/DSLDataSpace_LegendQueryRouter.js +34 -0
- package/lib/stores/query/DSLDataSpace_LegendQueryRouter.js.map +1 -0
- package/lib/stores/query/DataSpaceQueryEditorStore.d.ts +31 -0
- package/lib/stores/query/DataSpaceQueryEditorStore.d.ts.map +1 -0
- package/lib/stores/query/DataSpaceQueryEditorStore.js +87 -0
- package/lib/stores/query/DataSpaceQueryEditorStore.js.map +1 -0
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts +4 -5
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupState.js +35 -45
- package/lib/stores/query/DataSpaceQuerySetupState.js.map +1 -1
- package/package.json +22 -21
- package/src/DSLDataSpace_Const.ts +20 -0
- package/src/DSLDataSpace_Extension.ts +3 -3
- package/src/components/DataSpaceViewer.tsx +56 -66
- package/src/components/query/{DSLDataSpace_LegendQueryPlugin.tsx → DSLDataSpace_LegendQueryApplicationPlugin.tsx} +41 -4
- package/src/components/query/DataSpaceQueryEditor.tsx +106 -0
- package/src/components/query/DataSpaceQuerySetup.tsx +23 -32
- package/src/components/studio/{DSLDataSpace_LegendStudioPlugin.tsx → DSLDataSpace_LegendStudioApplicationPlugin.tsx} +11 -11
- package/src/{models/DSLDataSpace_ModelUtils.ts → graph/DSLDataSpace_HashUtils.ts} +0 -0
- package/src/graph/DSLDataSpace_PureGraphPlugin.ts +1 -1
- package/src/{models/metamodels → graph/metamodel}/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.ts +1 -1
- package/src/graphManager/DSLDataSpace_GraphManagerHelper.ts +1 -1
- package/src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts +7 -1
- package/src/graphManager/action/analytics/DataSpaceAnalysis.ts +64 -0
- package/src/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.ts +2 -1
- package/src/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.ts +42 -0
- package/src/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtensionBuilder.ts +27 -0
- package/src/{models/protocols → graphManager/protocol}/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts +1 -1
- package/src/graphManager/protocol/pure/v1/V1_DSLDataSpace_PureGraphManagerExtension.ts +228 -0
- package/src/{models/protocols → graphManager/protocol}/pure/v1/V1_DSLDataSpace_SystemModels.json +0 -0
- package/src/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.ts +117 -0
- package/src/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.ts +1 -1
- package/src/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.ts +1 -1
- package/src/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts +1 -1
- package/src/index.ts +5 -3
- package/src/stores/DataSpaceViewerState.ts +23 -54
- package/src/stores/query/DSLDataSpace_LegendQueryRouter.ts +69 -0
- package/src/stores/query/DataSpaceQueryEditorStore.ts +141 -0
- package/src/stores/query/DataSpaceQuerySetupState.ts +67 -75
- package/tsconfig.json +18 -9
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.d.ts.map +0 -1
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.js.map +0 -1
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.d.ts.map +0 -1
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.js.map +0 -1
- package/lib/models/DSLDataSpace_ModelUtils.d.ts.map +0 -1
- package/lib/models/DSLDataSpace_ModelUtils.js.map +0 -1
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.d.ts.map +0 -1
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js.map +0 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map +0 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js.map +0 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.js.map +0 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js.map +0 -1
|
File without changes
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import packageJson from '../../package.json';
|
|
18
|
-
import { DataSpace } from '../
|
|
18
|
+
import { DataSpace } from '../graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
|
|
19
19
|
import type { Clazz } from '@finos/legend-shared';
|
|
20
20
|
import { type PackageableElement, PureGraphPlugin } from '@finos/legend-graph';
|
|
21
21
|
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
type PackageableRuntime,
|
|
23
23
|
type PackageableElementVisitor,
|
|
24
24
|
} from '@finos/legend-graph';
|
|
25
|
-
import { DATA_SPACE_HASH_STRUCTURE } from '../../../../../
|
|
25
|
+
import { DATA_SPACE_HASH_STRUCTURE } from '../../../../../DSLDataSpace_HashUtils.js';
|
|
26
26
|
import type { Diagram } from '@finos/legend-extension-dsl-diagram';
|
|
27
27
|
|
|
28
28
|
export abstract class DataSpaceSupportInfo implements Hashable {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import type { BasicModel, PureModel } from '@finos/legend-graph';
|
|
18
18
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
19
|
-
import { DataSpace } from '../
|
|
19
|
+
import { DataSpace } from '../graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
|
|
20
20
|
|
|
21
21
|
export const getDataSpace = (path: string, graph: PureModel): DataSpace =>
|
|
22
22
|
graph.getExtensionElement(path, DataSpace, `Can't find data space '${path}'`);
|
|
@@ -15,15 +15,17 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import packageJson from '../../package.json';
|
|
18
|
-
import { DataSpace } from '../
|
|
18
|
+
import { DataSpace } from '../graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
|
|
19
19
|
import {
|
|
20
20
|
PureGraphManagerPlugin,
|
|
21
21
|
type ObserverContext,
|
|
22
22
|
type ElementObserver,
|
|
23
23
|
type PackageableElement,
|
|
24
24
|
type PureGrammarElementLabeler,
|
|
25
|
+
type PureGraphManagerExtensionBuilder,
|
|
25
26
|
} from '@finos/legend-graph';
|
|
26
27
|
import { observe_DataSpace } from './action/changeDetection/DSLDataSpace_ObserverHelper.js';
|
|
28
|
+
import { DSLDataSpace_buildGraphManagerExtension } from './protocol/pure/DSLDataSpace_PureGraphManagerExtensionBuilder.js';
|
|
27
29
|
|
|
28
30
|
export const PURE_GRAMMAR_DATA_SPACE_PARSER_NAME = 'DataSpace';
|
|
29
31
|
export const PURE_GRAMMAR_DATA_SPACE_ELEMENT_TYPE_LABEL = 'DataSpace';
|
|
@@ -33,6 +35,10 @@ export class DSLDataSpace_PureGraphManagerPlugin extends PureGraphManagerPlugin
|
|
|
33
35
|
super(packageJson.extensions.pureGraphManagerPlugin, packageJson.version);
|
|
34
36
|
}
|
|
35
37
|
|
|
38
|
+
override getExtraPureGraphManagerExtensionBuilders(): PureGraphManagerExtensionBuilder[] {
|
|
39
|
+
return [DSLDataSpace_buildGraphManagerExtension];
|
|
40
|
+
}
|
|
41
|
+
|
|
36
42
|
override getExtraPureGrammarParserNames(): string[] {
|
|
37
43
|
return [PURE_GRAMMAR_DATA_SPACE_PARSER_NAME];
|
|
38
44
|
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
|
|
17
|
+
import type { Diagram } from '@finos/legend-extension-dsl-diagram';
|
|
18
|
+
import type {
|
|
19
|
+
Mapping,
|
|
20
|
+
PackageableRuntime,
|
|
21
|
+
PureModel,
|
|
22
|
+
} from '@finos/legend-graph';
|
|
23
|
+
import { uuid } from '@finos/legend-shared';
|
|
24
|
+
import type { DataSpaceSupportInfo } from '../../../graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
|
|
25
|
+
|
|
26
|
+
export class DataSpaceExecutionContextAnalysisResult {
|
|
27
|
+
name!: string;
|
|
28
|
+
description?: string | undefined;
|
|
29
|
+
mapping!: Mapping;
|
|
30
|
+
defaultRuntime!: PackageableRuntime;
|
|
31
|
+
compatibleRuntimes!: PackageableRuntime[];
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class DataSpaceTaggedValueInfo {
|
|
35
|
+
readonly _UUID = uuid();
|
|
36
|
+
|
|
37
|
+
profile!: string;
|
|
38
|
+
tag!: string;
|
|
39
|
+
value!: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export class DataSpaceStereotypeInfo {
|
|
43
|
+
readonly _UUID = uuid();
|
|
44
|
+
|
|
45
|
+
profile!: string;
|
|
46
|
+
value!: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export class DataSpaceAnalysisResult {
|
|
50
|
+
name!: string;
|
|
51
|
+
package!: string;
|
|
52
|
+
path!: string;
|
|
53
|
+
taggedValues: DataSpaceTaggedValueInfo[] = [];
|
|
54
|
+
stereotypes: DataSpaceStereotypeInfo[] = [];
|
|
55
|
+
description?: string | undefined;
|
|
56
|
+
supportInfo?: DataSpaceSupportInfo | undefined;
|
|
57
|
+
|
|
58
|
+
graph!: PureModel;
|
|
59
|
+
|
|
60
|
+
executionContextsIndex!: Map<string, DataSpaceExecutionContextAnalysisResult>;
|
|
61
|
+
defaultExecutionContext!: DataSpaceExecutionContextAnalysisResult;
|
|
62
|
+
|
|
63
|
+
featuredDiagrams: Diagram[] = [];
|
|
64
|
+
}
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
skipObserved,
|
|
22
22
|
} from '@finos/legend-graph';
|
|
23
23
|
import { makeObservable, override } from 'mobx';
|
|
24
|
-
import type { DataSpace } from '../../../
|
|
24
|
+
import type { DataSpace } from '../../../graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
|
|
25
25
|
|
|
26
26
|
export const observe_DataSpace = skipObserved(
|
|
27
27
|
(metamodel: DataSpace): DataSpace => {
|
|
@@ -31,6 +31,7 @@ export const observe_DataSpace = skipObserved(
|
|
|
31
31
|
_elementHashCode: override,
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
+
// TODO
|
|
34
35
|
// metamodel.executionContexts.forEach(observe_DataSpaceExecutionContext);
|
|
35
36
|
// observe_DataSpaceExecutionContext(metamodel.defaultExecutionContext);
|
|
36
37
|
// if (metamodel.supportInfo) {
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
|
|
17
|
+
import {
|
|
18
|
+
type AbstractPureGraphManager,
|
|
19
|
+
AbstractPureGraphManagerExtension,
|
|
20
|
+
} from '@finos/legend-graph';
|
|
21
|
+
import type { Entity } from '@finos/legend-storage';
|
|
22
|
+
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
23
|
+
import type { DataSpaceAnalysisResult } from '../../action/analytics/DataSpaceAnalysis.js';
|
|
24
|
+
|
|
25
|
+
export abstract class DSLDataSpace_PureGraphManagerExtension extends AbstractPureGraphManagerExtension {
|
|
26
|
+
abstract analyzeDataSpace(
|
|
27
|
+
dataSpacePath: string,
|
|
28
|
+
entities: Entity[],
|
|
29
|
+
dependencyEntitiesIndex: Map<string, Entity[]>,
|
|
30
|
+
): Promise<DataSpaceAnalysisResult>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export const getDSLDataSpaceGraphManagerExtension = (
|
|
34
|
+
graphManager: AbstractPureGraphManager,
|
|
35
|
+
): DSLDataSpace_PureGraphManagerExtension =>
|
|
36
|
+
guaranteeNonNullable(
|
|
37
|
+
graphManager.extensions.find(
|
|
38
|
+
(extension) =>
|
|
39
|
+
extension instanceof DSLDataSpace_PureGraphManagerExtension,
|
|
40
|
+
),
|
|
41
|
+
`Can't find DSL Data Space Pure graph manager extension`,
|
|
42
|
+
) as DSLDataSpace_PureGraphManagerExtension;
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
|
|
17
|
+
import type {
|
|
18
|
+
AbstractPureGraphManager,
|
|
19
|
+
AbstractPureGraphManagerExtension,
|
|
20
|
+
} from '@finos/legend-graph';
|
|
21
|
+
import { V1_DSLDataSpace_PureGraphManagerExtension } from './v1/V1_DSLDataSpace_PureGraphManagerExtension.js';
|
|
22
|
+
|
|
23
|
+
export const DSLDataSpace_buildGraphManagerExtension = (
|
|
24
|
+
graphManager: AbstractPureGraphManager,
|
|
25
|
+
): AbstractPureGraphManagerExtension =>
|
|
26
|
+
// NOTE: until we support more client versions, we always default to return V1
|
|
27
|
+
new V1_DSLDataSpace_PureGraphManagerExtension(graphManager);
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
DataSpace,
|
|
40
40
|
DataSpaceExecutionContext,
|
|
41
41
|
DataSpaceSupportEmail,
|
|
42
|
-
} from '
|
|
42
|
+
} from '../../../graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
|
|
43
43
|
import {
|
|
44
44
|
type PackageableElement,
|
|
45
45
|
type V1_ElementProtocolClassifierPathGetter,
|
|
@@ -0,0 +1,228 @@
|
|
|
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
|
+
|
|
17
|
+
import { getDiagram } from '@finos/legend-extension-dsl-diagram';
|
|
18
|
+
import {
|
|
19
|
+
PureModel,
|
|
20
|
+
V1_PureGraphManager,
|
|
21
|
+
PureClientVersion,
|
|
22
|
+
type AbstractPureGraphManager,
|
|
23
|
+
CoreModel,
|
|
24
|
+
SystemModel,
|
|
25
|
+
V1_Mapping,
|
|
26
|
+
resolvePackagePathAndElementName,
|
|
27
|
+
V1_PureModelContextType,
|
|
28
|
+
V1_PackageableRuntime,
|
|
29
|
+
V1_EngineRuntime,
|
|
30
|
+
} from '@finos/legend-graph';
|
|
31
|
+
import type { Entity } from '@finos/legend-storage';
|
|
32
|
+
import {
|
|
33
|
+
ActionState,
|
|
34
|
+
guaranteeNonEmptyString,
|
|
35
|
+
guaranteeNonNullable,
|
|
36
|
+
guaranteeType,
|
|
37
|
+
uniq,
|
|
38
|
+
type PlainObject,
|
|
39
|
+
} from '@finos/legend-shared';
|
|
40
|
+
import { DataSpaceSupportEmail } from '../../../../graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
|
|
41
|
+
import { V1_DataSpaceSupportEmail } from '../../../../graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js';
|
|
42
|
+
import {
|
|
43
|
+
DataSpaceAnalysisResult,
|
|
44
|
+
DataSpaceExecutionContextAnalysisResult,
|
|
45
|
+
DataSpaceStereotypeInfo,
|
|
46
|
+
DataSpaceTaggedValueInfo,
|
|
47
|
+
} from '../../../action/analytics/DataSpaceAnalysis.js';
|
|
48
|
+
import { DSLDataSpace_PureGraphManagerExtension } from '../DSLDataSpace_PureGraphManagerExtension.js';
|
|
49
|
+
import { V1_DataSpaceAnalysisResult } from './engine/analytics/V1_DataSpaceAnalysis.js';
|
|
50
|
+
|
|
51
|
+
const ANALYZE_DATA_SPACE_TRACE = 'analyze data space';
|
|
52
|
+
|
|
53
|
+
export class V1_DSLDataSpace_PureGraphManagerExtension extends DSLDataSpace_PureGraphManagerExtension {
|
|
54
|
+
declare graphManager: V1_PureGraphManager;
|
|
55
|
+
|
|
56
|
+
constructor(graphManager: AbstractPureGraphManager) {
|
|
57
|
+
super(graphManager);
|
|
58
|
+
this.graphManager = guaranteeType(graphManager, V1_PureGraphManager);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
getSupportedProtocolVersion(): string {
|
|
62
|
+
return PureClientVersion.V1_0_0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
async analyzeDataSpace(
|
|
66
|
+
dataSpacePath: string,
|
|
67
|
+
entities: Entity[],
|
|
68
|
+
dependencyEntitiesIndex: Map<string, Entity[]>,
|
|
69
|
+
): Promise<DataSpaceAnalysisResult> {
|
|
70
|
+
// prepare graph data for analysis
|
|
71
|
+
// NOTE: we don't do serialization roundtrip here to save time
|
|
72
|
+
const graphDataForAnalysis = {
|
|
73
|
+
_type: V1_PureModelContextType.DATA,
|
|
74
|
+
elements: Array.from(dependencyEntitiesIndex.values())
|
|
75
|
+
.flat()
|
|
76
|
+
.concat(entities)
|
|
77
|
+
.map((entity) => entity.content),
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const engineServerClient = this.graphManager.engine.getEngineServerClient();
|
|
81
|
+
const analysisResult = V1_DataSpaceAnalysisResult.serialization.fromJson(
|
|
82
|
+
await engineServerClient.postWithTracing<
|
|
83
|
+
PlainObject<V1_DataSpaceAnalysisResult>
|
|
84
|
+
>(
|
|
85
|
+
engineServerClient.getTraceData(ANALYZE_DATA_SPACE_TRACE),
|
|
86
|
+
`${engineServerClient._pure()}/analytics/dataSpace/render`,
|
|
87
|
+
{
|
|
88
|
+
clientVersion: V1_PureGraphManager.TARGET_PROTOCOL_VERSION,
|
|
89
|
+
dataSpace: dataSpacePath,
|
|
90
|
+
model: graphDataForAnalysis,
|
|
91
|
+
},
|
|
92
|
+
{},
|
|
93
|
+
undefined,
|
|
94
|
+
undefined,
|
|
95
|
+
{ enableCompression: true },
|
|
96
|
+
),
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
const result = new DataSpaceAnalysisResult();
|
|
100
|
+
result.name = analysisResult.name;
|
|
101
|
+
result.package = analysisResult.package;
|
|
102
|
+
result.path = analysisResult.path;
|
|
103
|
+
result.description = analysisResult.description;
|
|
104
|
+
|
|
105
|
+
result.taggedValues = analysisResult.taggedValues.map((taggedValue) => {
|
|
106
|
+
const info = new DataSpaceTaggedValueInfo();
|
|
107
|
+
info.profile = taggedValue.profile;
|
|
108
|
+
info.tag = taggedValue.value;
|
|
109
|
+
info.value = taggedValue.value;
|
|
110
|
+
return info;
|
|
111
|
+
});
|
|
112
|
+
result.stereotypes = analysisResult.stereotypes.map((stereotype) => {
|
|
113
|
+
const info = new DataSpaceStereotypeInfo();
|
|
114
|
+
info.profile = stereotype.profile;
|
|
115
|
+
info.value = stereotype.value;
|
|
116
|
+
return info;
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
if (analysisResult.supportInfo) {
|
|
120
|
+
if (analysisResult.supportInfo instanceof V1_DataSpaceSupportEmail) {
|
|
121
|
+
const supportEmail = new DataSpaceSupportEmail();
|
|
122
|
+
supportEmail.address = guaranteeNonEmptyString(
|
|
123
|
+
analysisResult.supportInfo.address,
|
|
124
|
+
`Data space support email 'address' field is missing or empty`,
|
|
125
|
+
);
|
|
126
|
+
result.supportInfo = supportEmail;
|
|
127
|
+
}
|
|
128
|
+
// NOTE: we will relax the check and not throw here for unknown support info type
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// create an empty graph
|
|
132
|
+
const extensionElementClasses = this.graphManager.pluginManager
|
|
133
|
+
.getPureGraphPlugins()
|
|
134
|
+
.flatMap((plugin) => plugin.getExtraPureGraphExtensionClasses?.() ?? []);
|
|
135
|
+
const systemModel = new SystemModel(extensionElementClasses);
|
|
136
|
+
const coreModel = new CoreModel(extensionElementClasses);
|
|
137
|
+
await this.graphManager.buildSystem(
|
|
138
|
+
coreModel,
|
|
139
|
+
systemModel,
|
|
140
|
+
ActionState.create(),
|
|
141
|
+
{},
|
|
142
|
+
);
|
|
143
|
+
systemModel.initializeAutoImports();
|
|
144
|
+
const graph = new PureModel(
|
|
145
|
+
coreModel,
|
|
146
|
+
systemModel,
|
|
147
|
+
this.graphManager.pluginManager.getPureGraphPlugins(),
|
|
148
|
+
);
|
|
149
|
+
|
|
150
|
+
// Create dummy mappings and runtimes
|
|
151
|
+
// TODO?: these stubbed mappings and runtimes are not really useful that useful, so either we should
|
|
152
|
+
// simplify the model here or potentially refactor the backend analytics endpoint to return these as model
|
|
153
|
+
const mappingModels = uniq(
|
|
154
|
+
analysisResult.executionContexts.map((context) => context.mapping),
|
|
155
|
+
).map((path) => {
|
|
156
|
+
const mapping = new V1_Mapping();
|
|
157
|
+
const [packagePath, name] = resolvePackagePathAndElementName(path);
|
|
158
|
+
mapping.package = packagePath;
|
|
159
|
+
mapping.name = name;
|
|
160
|
+
return mapping;
|
|
161
|
+
});
|
|
162
|
+
const runtimeModels = uniq(
|
|
163
|
+
analysisResult.executionContexts
|
|
164
|
+
.map((context) => context.defaultRuntime)
|
|
165
|
+
.concat(
|
|
166
|
+
analysisResult.executionContexts.flatMap(
|
|
167
|
+
(val) => val.compatibleRuntimes,
|
|
168
|
+
),
|
|
169
|
+
),
|
|
170
|
+
).map((path) => {
|
|
171
|
+
const runtime = new V1_PackageableRuntime();
|
|
172
|
+
const [packagePath, name] = resolvePackagePathAndElementName(path);
|
|
173
|
+
runtime.package = packagePath;
|
|
174
|
+
runtime.name = name;
|
|
175
|
+
runtime.runtimeValue = new V1_EngineRuntime();
|
|
176
|
+
return runtime;
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
// prepare the model context data
|
|
180
|
+
// scan for models coming from system so we don't duplicate them when building the graph
|
|
181
|
+
const graphEntities = analysisResult.model.elements
|
|
182
|
+
.concat(mappingModels)
|
|
183
|
+
.concat(runtimeModels)
|
|
184
|
+
// NOTE: if an element could be found in the graph already it means it comes from system
|
|
185
|
+
// so we could rid of it
|
|
186
|
+
.filter((el) => !graph.getNullableElement(el.path, false))
|
|
187
|
+
.map((el) => this.graphManager.elementProtocolToEntity(el));
|
|
188
|
+
|
|
189
|
+
await this.graphManager.buildGraph(
|
|
190
|
+
graph,
|
|
191
|
+
graphEntities,
|
|
192
|
+
ActionState.create(),
|
|
193
|
+
);
|
|
194
|
+
|
|
195
|
+
// build execution context info
|
|
196
|
+
result.executionContextsIndex = new Map<
|
|
197
|
+
string,
|
|
198
|
+
DataSpaceExecutionContextAnalysisResult
|
|
199
|
+
>();
|
|
200
|
+
analysisResult.executionContexts.forEach((context) => {
|
|
201
|
+
const contextAnalysisResult =
|
|
202
|
+
new DataSpaceExecutionContextAnalysisResult();
|
|
203
|
+
contextAnalysisResult.name = context.name;
|
|
204
|
+
contextAnalysisResult.description = context.description;
|
|
205
|
+
contextAnalysisResult.mapping = graph.getMapping(context.mapping);
|
|
206
|
+
contextAnalysisResult.defaultRuntime = graph.getRuntime(
|
|
207
|
+
context.defaultRuntime,
|
|
208
|
+
);
|
|
209
|
+
contextAnalysisResult.compatibleRuntimes = context.compatibleRuntimes.map(
|
|
210
|
+
(runtime) => graph.getRuntime(runtime),
|
|
211
|
+
);
|
|
212
|
+
result.executionContextsIndex.set(
|
|
213
|
+
contextAnalysisResult.name,
|
|
214
|
+
contextAnalysisResult,
|
|
215
|
+
);
|
|
216
|
+
});
|
|
217
|
+
result.defaultExecutionContext = guaranteeNonNullable(
|
|
218
|
+
result.executionContextsIndex.get(analysisResult.defaultExecutionContext),
|
|
219
|
+
);
|
|
220
|
+
|
|
221
|
+
// find featured diagrams
|
|
222
|
+
result.featuredDiagrams = analysisResult.featuredDiagrams.map((path) =>
|
|
223
|
+
getDiagram(path, graph),
|
|
224
|
+
);
|
|
225
|
+
|
|
226
|
+
return result;
|
|
227
|
+
}
|
|
228
|
+
}
|
package/src/{models/protocols → graphManager/protocol}/pure/v1/V1_DSLDataSpace_SystemModels.json
RENAMED
|
File without changes
|
|
@@ -0,0 +1,117 @@
|
|
|
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
|
+
|
|
17
|
+
import { V1_PureModelContextData } from '@finos/legend-graph';
|
|
18
|
+
import { SerializationFactory, optionalCustom } from '@finos/legend-shared';
|
|
19
|
+
import {
|
|
20
|
+
createModelSchema,
|
|
21
|
+
list,
|
|
22
|
+
object,
|
|
23
|
+
optional,
|
|
24
|
+
primitive,
|
|
25
|
+
SKIP,
|
|
26
|
+
} from 'serializr';
|
|
27
|
+
import type { V1_DataSpaceSupportInfo } from '../../../../../../graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js';
|
|
28
|
+
import { V1_deserializeSupportInfo } from '../../../../../../graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js';
|
|
29
|
+
|
|
30
|
+
class V1_DataSpaceTaggedValueInfo {
|
|
31
|
+
profile!: string;
|
|
32
|
+
tag!: string;
|
|
33
|
+
value!: string;
|
|
34
|
+
|
|
35
|
+
static readonly serialization = new SerializationFactory(
|
|
36
|
+
createModelSchema(V1_DataSpaceTaggedValueInfo, {
|
|
37
|
+
profile: primitive(),
|
|
38
|
+
tag: primitive(),
|
|
39
|
+
value: primitive(),
|
|
40
|
+
}),
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
class V1_DataSpaceStereotypeInfo {
|
|
45
|
+
profile!: string;
|
|
46
|
+
value!: string;
|
|
47
|
+
|
|
48
|
+
static readonly serialization = new SerializationFactory(
|
|
49
|
+
createModelSchema(V1_DataSpaceStereotypeInfo, {
|
|
50
|
+
profile: primitive(),
|
|
51
|
+
value: primitive(),
|
|
52
|
+
}),
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
class V1_DataSpaceExecutionContextAnalysisResult {
|
|
57
|
+
name!: string;
|
|
58
|
+
description?: string | undefined;
|
|
59
|
+
mapping!: string;
|
|
60
|
+
defaultRuntime!: string;
|
|
61
|
+
compatibleRuntimes!: string[];
|
|
62
|
+
|
|
63
|
+
static readonly serialization = new SerializationFactory(
|
|
64
|
+
createModelSchema(V1_DataSpaceExecutionContextAnalysisResult, {
|
|
65
|
+
name: primitive(),
|
|
66
|
+
description: optional(primitive()),
|
|
67
|
+
mapping: primitive(),
|
|
68
|
+
defaultRuntime: primitive(),
|
|
69
|
+
compatibleRuntimes: list(primitive()),
|
|
70
|
+
}),
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export class V1_DataSpaceAnalysisResult {
|
|
75
|
+
name!: string;
|
|
76
|
+
package!: string;
|
|
77
|
+
path!: string;
|
|
78
|
+
|
|
79
|
+
taggedValues: V1_DataSpaceTaggedValueInfo[] = [];
|
|
80
|
+
stereotypes: V1_DataSpaceStereotypeInfo[] = [];
|
|
81
|
+
|
|
82
|
+
description?: string | undefined;
|
|
83
|
+
supportInfo?: V1_DataSpaceSupportInfo | undefined;
|
|
84
|
+
|
|
85
|
+
model!: V1_PureModelContextData;
|
|
86
|
+
|
|
87
|
+
executionContexts: V1_DataSpaceExecutionContextAnalysisResult[] = [];
|
|
88
|
+
defaultExecutionContext!: string;
|
|
89
|
+
|
|
90
|
+
featuredDiagrams: string[] = [];
|
|
91
|
+
|
|
92
|
+
static readonly serialization = new SerializationFactory(
|
|
93
|
+
createModelSchema(V1_DataSpaceAnalysisResult, {
|
|
94
|
+
name: primitive(),
|
|
95
|
+
package: primitive(),
|
|
96
|
+
path: primitive(),
|
|
97
|
+
|
|
98
|
+
taggedValues: list(object(V1_DataSpaceTaggedValueInfo)),
|
|
99
|
+
stereotypes: list(object(V1_DataSpaceStereotypeInfo)),
|
|
100
|
+
|
|
101
|
+
description: optional(primitive()),
|
|
102
|
+
supportInfo: optionalCustom(
|
|
103
|
+
() => SKIP,
|
|
104
|
+
(val) => V1_deserializeSupportInfo(val),
|
|
105
|
+
),
|
|
106
|
+
|
|
107
|
+
model: object(V1_PureModelContextData),
|
|
108
|
+
|
|
109
|
+
executionContexts: list(
|
|
110
|
+
object(V1_DataSpaceExecutionContextAnalysisResult),
|
|
111
|
+
),
|
|
112
|
+
defaultExecutionContext: primitive(),
|
|
113
|
+
|
|
114
|
+
featuredDiagrams: list(primitive()),
|
|
115
|
+
}),
|
|
116
|
+
);
|
|
117
|
+
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { hashArray, type Hashable } from '@finos/legend-shared';
|
|
18
|
-
import { DATA_SPACE_HASH_STRUCTURE } from '
|
|
18
|
+
import { DATA_SPACE_HASH_STRUCTURE } from '../../../../../../../graph/DSLDataSpace_HashUtils.js';
|
|
19
19
|
import {
|
|
20
20
|
V1_PackageableElement,
|
|
21
21
|
type V1_PackageableElementPointer,
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { getDataSpace } from '../../../../../../graphManager/DSLDataSpace_GraphManagerHelper.js';
|
|
18
|
-
import type { DataSpace } from '
|
|
18
|
+
import type { DataSpace } from '../../../../../../graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
|
|
19
19
|
import type {
|
|
20
20
|
PackageableElementImplicitReference,
|
|
21
21
|
V1_GraphBuilderContext,
|
|
@@ -78,7 +78,7 @@ const V1_serializeSupportInfo = (
|
|
|
78
78
|
throw new UnsupportedOperationError(`Can't serialize support info`, protocol);
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
const V1_deserializeSupportInfo = (
|
|
81
|
+
export const V1_deserializeSupportInfo = (
|
|
82
82
|
json: PlainObject<V1_DataSpaceSupportInfo> | undefined,
|
|
83
83
|
): V1_DataSpaceSupportInfo | undefined => {
|
|
84
84
|
if (!json) {
|
package/src/index.ts
CHANGED
|
@@ -15,16 +15,18 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
export * from './DSLDataSpace_Extension.js';
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
18
|
+
export { DSLDataSpace_LegendStudioApplicationPlugin } from './components/studio/DSLDataSpace_LegendStudioApplicationPlugin.js';
|
|
19
|
+
export { DSLDataSpace_LegendQueryApplicationPlugin } from './components/query/DSLDataSpace_LegendQueryApplicationPlugin.js';
|
|
20
20
|
|
|
21
21
|
export { DataSpaceViewer } from './components/DataSpaceViewer.js';
|
|
22
22
|
|
|
23
23
|
export {
|
|
24
24
|
DATA_SPACE_ELEMENT_CLASSIFIER_PATH,
|
|
25
25
|
extractDataSpaceTaxonomyNodes,
|
|
26
|
-
} from './
|
|
26
|
+
} from './graphManager/protocol/pure/DSLDataSpace_PureProtocolProcessorPlugin.js';
|
|
27
27
|
|
|
28
28
|
export { DataSpaceViewerState } from './stores/DataSpaceViewerState.js';
|
|
29
29
|
|
|
30
30
|
export * from './graphManager/DSLDataSpace_GraphManagerHelper.js';
|
|
31
|
+
export { getDSLDataSpaceGraphManagerExtension } from './graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.js';
|
|
32
|
+
export { DataSpaceAnalysisResult } from './graphManager/action/analytics/DataSpaceAnalysis.js';
|