@finos/legend-extension-dsl-data-space 9.0.48 → 9.1.1
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/DSL_DataSpace_Const.d.ts +1 -0
- package/lib/DSL_DataSpace_Const.d.ts.map +1 -1
- package/lib/DSL_DataSpace_Const.js +2 -1
- package/lib/DSL_DataSpace_Const.js.map +1 -1
- package/lib/{stores/query/DSL_DataSpace_LegendQueryRouter.d.ts → application/query/DSL_DataSpace_LegendQueryNavigation.d.ts} +12 -11
- package/lib/application/query/DSL_DataSpace_LegendQueryNavigation.d.ts.map +1 -0
- package/lib/{stores/query/DSL_DataSpace_LegendQueryRouter.js → application/query/DSL_DataSpace_LegendQueryNavigation.js} +13 -12
- package/lib/application/query/DSL_DataSpace_LegendQueryNavigation.js.map +1 -0
- package/lib/{components/studio/DSL_DataSpace_CodeSnippets.d.ts → application/studio/DSL_DataSpace_LegendStudioCodeSnippet.d.ts} +2 -2
- package/lib/application/studio/DSL_DataSpace_LegendStudioCodeSnippet.d.ts.map +1 -0
- package/lib/{components/studio/DSL_DataSpace_CodeSnippets.js → application/studio/DSL_DataSpace_LegendStudioCodeSnippet.js} +5 -1
- package/lib/application/studio/DSL_DataSpace_LegendStudioCodeSnippet.js.map +1 -0
- package/lib/application/studio/DSL_DataSpace_LegendStudioDocumentation.d.ts.map +1 -0
- package/lib/application/studio/DSL_DataSpace_LegendStudioDocumentation.js.map +1 -0
- package/lib/application/studio/DSL_DataSpace_LegendStudioNavigation.d.ts +28 -0
- package/lib/application/studio/DSL_DataSpace_LegendStudioNavigation.d.ts.map +1 -0
- package/lib/application/studio/DSL_DataSpace_LegendStudioNavigation.js +30 -0
- package/lib/application/studio/DSL_DataSpace_LegendStudioNavigation.js.map +1 -0
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js +2 -1
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js.map +1 -1
- package/lib/components/DataSpaceViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceViewer.js +126 -34
- package/lib/components/DataSpaceViewer.js.map +1 -1
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js +3 -3
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/components/query/DataSpaceQueryBuilder.d.ts.map +1 -1
- package/lib/components/query/DataSpaceQueryBuilder.js +6 -4
- package/lib/components/query/DataSpaceQueryBuilder.js.map +1 -1
- package/lib/components/query/DataSpaceQueryCreator.d.ts.map +1 -1
- package/lib/components/query/DataSpaceQueryCreator.js +8 -9
- package/lib/components/query/DataSpaceQueryCreator.js.map +1 -1
- package/lib/components/query/DataSpaceQuerySetup.d.ts.map +1 -1
- package/lib/components/query/DataSpaceQuerySetup.js +2 -1
- package/lib/components/query/DataSpaceQuerySetup.js.map +1 -1
- package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.d.ts +5 -1
- package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.js +41 -2
- package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/studio/DataSpacePreview.d.ts +20 -0
- package/lib/components/studio/DataSpacePreview.d.ts.map +1 -0
- package/lib/components/studio/DataSpacePreview.js +52 -0
- package/lib/components/studio/DataSpacePreview.js.map +1 -0
- package/lib/components/studio/DataSpacePreviewAction.d.ts +26 -0
- package/lib/components/studio/DataSpacePreviewAction.d.ts.map +1 -0
- package/lib/components/studio/DataSpacePreviewAction.js +46 -0
- package/lib/components/studio/DataSpacePreviewAction.js.map +1 -0
- package/lib/graph/DSL_DataSpace_HashUtils.d.ts +2 -0
- package/lib/graph/DSL_DataSpace_HashUtils.d.ts.map +1 -1
- package/lib/graph/DSL_DataSpace_HashUtils.js +2 -0
- package/lib/graph/DSL_DataSpace_HashUtils.js.map +1 -1
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.d.ts +5 -3
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js +6 -4
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js.map +1 -1
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts +10 -0
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts.map +1 -1
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.js +18 -0
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.js.map +1 -1
- package/lib/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.d.ts +57 -0
- package/lib/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.d.ts.map +1 -0
- package/lib/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.js +209 -0
- package/lib/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.js.map +1 -0
- package/lib/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js +13 -1
- package/lib/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js +28 -4
- package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts +24 -0
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js +79 -3
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.d.ts +3 -2
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.js +6 -4
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.js +7 -17
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +4 -4
- package/lib/stores/DataSpaceViewerState.d.ts +13 -8
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
- package/lib/stores/DataSpaceViewerState.js +11 -6
- package/lib/stores/DataSpaceViewerState.js.map +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.js +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.js.map +1 -1
- package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts +1 -0
- package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceQueryCreatorStore.js +10 -2
- package/lib/stores/query/DataSpaceQueryCreatorStore.js.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupStore.js +1 -1
- package/lib/stores/query/DataSpaceQuerySetupStore.js.map +1 -1
- package/lib/stores/studio/DataSpacePreviewState.d.ts +30 -0
- package/lib/stores/studio/DataSpacePreviewState.d.ts.map +1 -0
- package/lib/stores/studio/DataSpacePreviewState.js +85 -0
- package/lib/stores/studio/DataSpacePreviewState.js.map +1 -0
- package/lib/stores/studio/DataSpacePreviewStore.d.ts +34 -0
- package/lib/stores/studio/DataSpacePreviewStore.d.ts.map +1 -0
- package/lib/stores/studio/DataSpacePreviewStore.js +98 -0
- package/lib/stores/studio/DataSpacePreviewStore.js.map +1 -0
- package/package.json +15 -15
- package/src/DSL_DataSpace_Const.ts +2 -1
- package/src/{stores/query/DSL_DataSpace_LegendQueryRouter.ts → application/query/DSL_DataSpace_LegendQueryNavigation.ts} +17 -18
- package/src/{components/studio/DSL_DataSpace_CodeSnippets.ts → application/studio/DSL_DataSpace_LegendStudioCodeSnippet.ts} +4 -0
- package/src/application/studio/DSL_DataSpace_LegendStudioNavigation.ts +53 -0
- package/src/components/DataSpaceViewer.tsx +541 -98
- package/src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx +5 -4
- package/src/components/query/DataSpaceQueryBuilder.tsx +6 -4
- package/src/components/query/DataSpaceQueryCreator.tsx +12 -23
- package/src/components/query/DataSpaceQuerySetup.tsx +2 -1
- package/src/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.tsx +52 -2
- package/src/components/studio/DataSpacePreview.tsx +129 -0
- package/src/components/studio/DataSpacePreviewAction.tsx +127 -0
- package/src/graph/DSL_DataSpace_HashUtils.ts +2 -0
- package/src/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.ts +15 -4
- package/src/graphManager/action/analytics/DataSpaceAnalysis.ts +31 -0
- package/src/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.ts +313 -0
- package/src/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.ts +25 -0
- package/src/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts +66 -3
- package/src/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.ts +110 -1
- package/src/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.ts +6 -4
- package/src/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.ts +13 -53
- package/src/stores/DataSpaceViewerState.ts +25 -14
- package/src/stores/query/DataSpaceAdvancedSearchState.ts +1 -1
- package/src/stores/query/DataSpaceQueryCreatorStore.ts +13 -1
- package/src/stores/query/DataSpaceQuerySetupStore.ts +1 -1
- package/src/stores/studio/DataSpacePreviewState.ts +150 -0
- package/src/stores/studio/DataSpacePreviewStore.ts +172 -0
- package/tsconfig.json +10 -5
- package/tsconfig.package.json +1 -2
- package/lib/components/studio/DSL_DataSpace_CodeSnippets.d.ts.map +0 -1
- package/lib/components/studio/DSL_DataSpace_CodeSnippets.js.map +0 -1
- package/lib/components/studio/DSL_DataSpace_LegendStudioDocumentation.d.ts.map +0 -1
- package/lib/components/studio/DSL_DataSpace_LegendStudioDocumentation.js.map +0 -1
- package/lib/stores/query/DSL_DataSpace_LegendQueryRouter.d.ts.map +0 -1
- package/lib/stores/query/DSL_DataSpace_LegendQueryRouter.js.map +0 -1
- /package/lib/{components → application}/studio/DSL_DataSpace_LegendStudioDocumentation.d.ts +0 -0
- /package/lib/{components → application}/studio/DSL_DataSpace_LegendStudioDocumentation.js +0 -0
- /package/src/{components → application}/studio/DSL_DataSpace_LegendStudioDocumentation.ts +0 -0
|
@@ -18,36 +18,37 @@ import {
|
|
|
18
18
|
generateExtensionUrlPattern,
|
|
19
19
|
generatePath,
|
|
20
20
|
} from '@finos/legend-application';
|
|
21
|
-
import { LEGEND_QUERY_PATH_PARAM_TOKEN } from '@finos/legend-application-query';
|
|
22
21
|
import {
|
|
23
22
|
addQueryParamsStringToUrl,
|
|
24
23
|
stringifyQueryParams,
|
|
25
24
|
} from '@finos/legend-shared';
|
|
26
25
|
import { generateGAVCoordinates } from '@finos/legend-storage';
|
|
27
26
|
|
|
28
|
-
export enum
|
|
27
|
+
export enum DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN {
|
|
28
|
+
GAV = 'gav',
|
|
29
29
|
DATA_SPACE_PATH = 'dataSpacePath',
|
|
30
30
|
EXECUTION_CONTEXT = 'executionContext',
|
|
31
|
+
RUNTIME_PATH = 'runtimePath',
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
export enum DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN {
|
|
34
35
|
CLASS_PATH = 'class',
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
export
|
|
38
|
-
[
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
}
|
|
38
|
+
export type DataSpaceQueryCreatorPathParams = {
|
|
39
|
+
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV]: string;
|
|
40
|
+
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]: string;
|
|
41
|
+
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.EXECUTION_CONTEXT]: string;
|
|
42
|
+
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.RUNTIME_PATH]?: string;
|
|
43
|
+
};
|
|
43
44
|
|
|
44
45
|
export type DataSpaceQueryEditorQueryParams = {
|
|
45
|
-
[DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.CLASS_PATH]?: string;
|
|
46
|
+
[DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.CLASS_PATH]?: string | undefined;
|
|
46
47
|
};
|
|
47
48
|
|
|
48
49
|
export const DATA_SPACE_QUERY_ROUTE_PATTERN = Object.freeze({
|
|
49
50
|
SETUP: `/dataspace`,
|
|
50
|
-
CREATE: `/dataspace/:${
|
|
51
|
+
CREATE: `/dataspace/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV}/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH}/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.EXECUTION_CONTEXT}/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.RUNTIME_PATH}?`,
|
|
51
52
|
});
|
|
52
53
|
|
|
53
54
|
export const generateDataSpaceQuerySetupRoute = (): string =>
|
|
@@ -69,16 +70,14 @@ export const generateDataSpaceQueryCreatorRoute = (
|
|
|
69
70
|
generatePath(
|
|
70
71
|
generateExtensionUrlPattern(DATA_SPACE_QUERY_ROUTE_PATTERN.CREATE),
|
|
71
72
|
{
|
|
72
|
-
[
|
|
73
|
-
groupId,
|
|
74
|
-
|
|
75
|
-
versionId,
|
|
76
|
-
),
|
|
77
|
-
[DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN.DATA_SPACE_PATH]:
|
|
73
|
+
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV]:
|
|
74
|
+
generateGAVCoordinates(groupId, artifactId, versionId),
|
|
75
|
+
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]:
|
|
78
76
|
dataSpacePath,
|
|
79
|
-
[
|
|
77
|
+
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.EXECUTION_CONTEXT]:
|
|
80
78
|
executionContextKey,
|
|
81
|
-
[
|
|
79
|
+
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.RUNTIME_PATH]:
|
|
80
|
+
runtimePath,
|
|
82
81
|
},
|
|
83
82
|
),
|
|
84
83
|
stringifyQueryParams({
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
generateExtensionUrlPattern,
|
|
19
|
+
generatePath,
|
|
20
|
+
} from '@finos/legend-application';
|
|
21
|
+
import { generateGAVCoordinates } from '@finos/legend-storage';
|
|
22
|
+
|
|
23
|
+
export enum DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN {
|
|
24
|
+
GAV = 'gav',
|
|
25
|
+
DATA_SPACE_PATH = 'dataSpacePath',
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type DataSpacePreviewPathParams = {
|
|
29
|
+
[DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN.GAV]: string;
|
|
30
|
+
[DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const DATA_SPACE_STUDIO_ROUTE_PATTERN = Object.freeze({
|
|
34
|
+
PREVIEW: `/dataspace/preview/:${DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN.GAV}/:${DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH}`,
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export const generateDataSpacePreviewRoute = (
|
|
38
|
+
groupId: string,
|
|
39
|
+
artifactId: string,
|
|
40
|
+
versionId: string,
|
|
41
|
+
dataSpacePath: string,
|
|
42
|
+
): string =>
|
|
43
|
+
generatePath(
|
|
44
|
+
generateExtensionUrlPattern(DATA_SPACE_STUDIO_ROUTE_PATTERN.PREVIEW),
|
|
45
|
+
{
|
|
46
|
+
[DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN.GAV]: generateGAVCoordinates(
|
|
47
|
+
groupId,
|
|
48
|
+
artifactId,
|
|
49
|
+
versionId,
|
|
50
|
+
),
|
|
51
|
+
[DATA_SPACE_STUDIO_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]: dataSpacePath,
|
|
52
|
+
},
|
|
53
|
+
);
|