@finos/legend-extension-dsl-data-space 10.2.4 → 10.3.1
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/{components → __lib__}/query/DSL_DataSpace_LegendQueryDocumentation.d.ts +1 -1
- package/lib/__lib__/query/DSL_DataSpace_LegendQueryDocumentation.d.ts.map +1 -0
- package/lib/{components → __lib__}/query/DSL_DataSpace_LegendQueryDocumentation.js +4 -4
- package/lib/__lib__/query/DSL_DataSpace_LegendQueryDocumentation.js.map +1 -0
- package/lib/__lib__/shared/DSL_DataSpace_LegendNavigation.d.ts +15 -0
- package/lib/__lib__/shared/DSL_DataSpace_LegendNavigation.d.ts.map +1 -0
- package/lib/__lib__/shared/DSL_DataSpace_LegendNavigation.js +32 -0
- package/lib/__lib__/shared/DSL_DataSpace_LegendNavigation.js.map +1 -0
- package/lib/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.d.ts +38 -0
- package/lib/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.d.ts.map +1 -0
- package/lib/__lib__/{query/DSL_DataSpace_LegendQueryNavigation.js → to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.js} +33 -13
- package/lib/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.js.map +1 -0
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js +3 -3
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js.map +1 -1
- package/lib/components/index.d.ts +6 -4
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +6 -4
- package/lib/components/index.js.map +1 -1
- package/lib/components/query-builder/DataSpaceAdvancedSearchModal.d.ts.map +1 -0
- package/lib/components/query-builder/DataSpaceAdvancedSearchModal.js.map +1 -0
- package/lib/components/{query → query-builder}/DataSpaceQueryBuilder.d.ts +2 -5
- package/lib/components/query-builder/DataSpaceQueryBuilder.d.ts.map +1 -0
- package/lib/components/{query → query-builder}/DataSpaceQueryBuilder.js +5 -24
- package/lib/components/query-builder/DataSpaceQueryBuilder.js.map +1 -0
- package/lib/components/{query → query-builder}/DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts +1 -1
- package/lib/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts.map +1 -0
- package/lib/components/{query → query-builder}/DataSpaceQueryBuilderTemplateQueryPanelContent.js +4 -4
- package/lib/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.js.map +1 -0
- package/lib/components/query-builder/QueryDataSpaceUtil.d.ts.map +1 -0
- package/lib/components/query-builder/QueryDataSpaceUtil.js.map +1 -0
- package/lib/components/{query → query-builder}/index.d.ts +3 -1
- package/lib/components/query-builder/index.d.ts.map +1 -0
- package/lib/components/{query → query-builder}/index.js +3 -1
- package/lib/components/query-builder/index.js.map +1 -0
- package/lib/components/shared/DSL_DataSpace_Icon.d.ts.map +1 -0
- package/lib/components/shared/DSL_DataSpace_Icon.js.map +1 -0
- package/lib/graph-manager/index.d.ts +4 -0
- package/lib/graph-manager/index.d.ts.map +1 -1
- package/lib/graph-manager/index.js +5 -0
- package/lib/graph-manager/index.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +3 -8
- package/lib/stores/query/DataSpaceAdvancedSearchState.d.ts +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.js +2 -3
- package/lib/stores/query/DataSpaceAdvancedSearchState.js.map +1 -1
- package/lib/stores/{query → query-builder}/DataSpaceQueryBuilderState.d.ts +2 -2
- package/lib/stores/query-builder/DataSpaceQueryBuilderState.d.ts.map +1 -0
- package/lib/stores/{query → query-builder}/DataSpaceQueryBuilderState.js +3 -3
- package/lib/stores/query-builder/DataSpaceQueryBuilderState.js.map +1 -0
- package/lib/stores/shared/DataSpaceInfo.d.ts.map +1 -0
- package/lib/stores/shared/DataSpaceInfo.js.map +1 -0
- package/lib/{__lib__/studio/DSL_DataSpace_LegendStudioDocumentation.d.ts → stores/shared/DataSpaceUtils.d.ts} +4 -5
- package/lib/stores/shared/DataSpaceUtils.d.ts.map +1 -0
- package/lib/stores/shared/DataSpaceUtils.js +32 -0
- package/lib/stores/shared/DataSpaceUtils.js.map +1 -0
- package/package.json +4 -9
- package/src/{components → __lib__}/query/DSL_DataSpace_LegendQueryDocumentation.ts +1 -1
- package/src/__lib__/shared/DSL_DataSpace_LegendNavigation.ts +57 -0
- package/src/__lib__/{query/DSL_DataSpace_LegendQueryNavigation.ts → to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.ts} +41 -46
- package/src/components/DSL_DataSpace_LegendApplicationPlugin.tsx +6 -6
- package/src/components/index.ts +15 -4
- package/src/components/{query → query-builder}/DataSpaceAdvancedSearchModal.tsx +1 -1
- package/src/components/{query → query-builder}/DataSpaceQueryBuilder.tsx +7 -68
- package/src/components/{query → query-builder}/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx +5 -5
- package/src/components/{studio → query-builder}/index.ts +7 -1
- package/src/graph-manager/index.ts +6 -0
- package/src/stores/query/DataSpaceAdvancedSearchState.ts +8 -3
- package/src/stores/{query → query-builder}/DataSpaceQueryBuilderState.ts +6 -3
- package/src/stores/shared/DataSpaceUtils.ts +42 -0
- package/tsconfig.json +12 -26
- package/lib/__lib__/query/DSL_DataSpace_LegendQueryNavigation.d.ts +0 -65
- package/lib/__lib__/query/DSL_DataSpace_LegendQueryNavigation.d.ts.map +0 -1
- package/lib/__lib__/query/DSL_DataSpace_LegendQueryNavigation.js.map +0 -1
- package/lib/__lib__/studio/DSL_DataSpace_LegendStudioCodeSnippet.d.ts +0 -17
- package/lib/__lib__/studio/DSL_DataSpace_LegendStudioCodeSnippet.d.ts.map +0 -1
- package/lib/__lib__/studio/DSL_DataSpace_LegendStudioCodeSnippet.js +0 -54
- package/lib/__lib__/studio/DSL_DataSpace_LegendStudioCodeSnippet.js.map +0 -1
- package/lib/__lib__/studio/DSL_DataSpace_LegendStudioDocumentation.d.ts.map +0 -1
- package/lib/__lib__/studio/DSL_DataSpace_LegendStudioDocumentation.js +0 -21
- package/lib/__lib__/studio/DSL_DataSpace_LegendStudioDocumentation.js.map +0 -1
- package/lib/components/DSL_DataSpace_Icon.d.ts.map +0 -1
- package/lib/components/DSL_DataSpace_Icon.js.map +0 -1
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.d.ts +0 -29
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.d.ts.map +0 -1
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js +0 -242
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js.map +0 -1
- package/lib/components/query/DSL_DataSpace_LegendQueryDocumentation.d.ts.map +0 -1
- package/lib/components/query/DSL_DataSpace_LegendQueryDocumentation.js.map +0 -1
- package/lib/components/query/DataSpaceAdvancedSearchModal.d.ts.map +0 -1
- package/lib/components/query/DataSpaceAdvancedSearchModal.js.map +0 -1
- package/lib/components/query/DataSpaceQueryBuilder.d.ts.map +0 -1
- package/lib/components/query/DataSpaceQueryBuilder.js.map +0 -1
- package/lib/components/query/DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts.map +0 -1
- package/lib/components/query/DataSpaceQueryBuilderTemplateQueryPanelContent.js.map +0 -1
- package/lib/components/query/DataSpaceQueryCreator.d.ts +0 -19
- package/lib/components/query/DataSpaceQueryCreator.d.ts.map +0 -1
- package/lib/components/query/DataSpaceQueryCreator.js +0 -41
- package/lib/components/query/DataSpaceQueryCreator.js.map +0 -1
- package/lib/components/query/DataSpaceQuerySetup.d.ts +0 -21
- package/lib/components/query/DataSpaceQuerySetup.d.ts.map +0 -1
- package/lib/components/query/DataSpaceQuerySetup.js +0 -63
- package/lib/components/query/DataSpaceQuerySetup.js.map +0 -1
- package/lib/components/query/DataSpaceTemplateQueryCreator.d.ts +0 -19
- package/lib/components/query/DataSpaceTemplateQueryCreator.d.ts.map +0 -1
- package/lib/components/query/DataSpaceTemplateQueryCreator.js +0 -37
- package/lib/components/query/DataSpaceTemplateQueryCreator.js.map +0 -1
- package/lib/components/query/QueryDataSpaceUtil.d.ts.map +0 -1
- package/lib/components/query/QueryDataSpaceUtil.js.map +0 -1
- package/lib/components/query/index.d.ts.map +0 -1
- package/lib/components/query/index.js.map +0 -1
- package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.d.ts +0 -39
- package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.d.ts.map +0 -1
- package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.js +0 -207
- package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.js.map +0 -1
- package/lib/components/studio/DataSpacePreviewAction.d.ts +0 -25
- package/lib/components/studio/DataSpacePreviewAction.d.ts.map +0 -1
- package/lib/components/studio/DataSpacePreviewAction.js +0 -53
- package/lib/components/studio/DataSpacePreviewAction.js.map +0 -1
- package/lib/components/studio/DataSpaceQueryAction.d.ts +0 -22
- package/lib/components/studio/DataSpaceQueryAction.d.ts.map +0 -1
- package/lib/components/studio/DataSpaceQueryAction.js +0 -29
- package/lib/components/studio/DataSpaceQueryAction.js.map +0 -1
- package/lib/components/studio/DataSpaceTemplateQueryPromoteReview.d.ts +0 -19
- package/lib/components/studio/DataSpaceTemplateQueryPromoteReview.d.ts.map +0 -1
- package/lib/components/studio/DataSpaceTemplateQueryPromoteReview.js +0 -81
- package/lib/components/studio/DataSpaceTemplateQueryPromoteReview.js.map +0 -1
- package/lib/components/studio/index.d.ts +0 -17
- package/lib/components/studio/index.d.ts.map +0 -1
- package/lib/components/studio/index.js +0 -17
- package/lib/components/studio/index.js.map +0 -1
- package/lib/stores/query/DataSpaceInfo.d.ts.map +0 -1
- package/lib/stores/query/DataSpaceInfo.js.map +0 -1
- package/lib/stores/query/DataSpaceQueryBuilderState.d.ts.map +0 -1
- package/lib/stores/query/DataSpaceQueryBuilderState.js.map +0 -1
- package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts +0 -38
- package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts.map +0 -1
- package/lib/stores/query/DataSpaceQueryCreatorStore.js +0 -149
- package/lib/stores/query/DataSpaceQueryCreatorStore.js.map +0 -1
- package/lib/stores/query/DataSpaceQuerySetupStore.d.ts +0 -51
- package/lib/stores/query/DataSpaceQuerySetupStore.d.ts.map +0 -1
- package/lib/stores/query/DataSpaceQuerySetupStore.js +0 -107
- package/lib/stores/query/DataSpaceQuerySetupStore.js.map +0 -1
- package/lib/stores/query/DataSpaceTemplateQueryCreatorStore.d.ts +0 -35
- package/lib/stores/query/DataSpaceTemplateQueryCreatorStore.d.ts.map +0 -1
- package/lib/stores/query/DataSpaceTemplateQueryCreatorStore.js +0 -108
- package/lib/stores/query/DataSpaceTemplateQueryCreatorStore.js.map +0 -1
- package/lib/stores/query/DataSpaceTemplateQueryPromotionReviewerStore.d.ts +0 -61
- package/lib/stores/query/DataSpaceTemplateQueryPromotionReviewerStore.d.ts.map +0 -1
- package/lib/stores/query/DataSpaceTemplateQueryPromotionReviewerStore.js +0 -407
- package/lib/stores/query/DataSpaceTemplateQueryPromotionReviewerStore.js.map +0 -1
- package/lib/stores/studio/DataSpacePreviewState.d.ts +0 -33
- package/lib/stores/studio/DataSpacePreviewState.d.ts.map +0 -1
- package/lib/stores/studio/DataSpacePreviewState.js +0 -117
- package/lib/stores/studio/DataSpacePreviewState.js.map +0 -1
- package/src/__lib__/studio/DSL_DataSpace_LegendStudioCodeSnippet.ts +0 -54
- package/src/__lib__/studio/DSL_DataSpace_LegendStudioDocumentation.ts +0 -20
- package/src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx +0 -445
- package/src/components/query/DataSpaceQueryCreator.tsx +0 -99
- package/src/components/query/DataSpaceQuerySetup.tsx +0 -165
- package/src/components/query/DataSpaceTemplateQueryCreator.tsx +0 -82
- package/src/components/query/index.ts +0 -17
- package/src/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.tsx +0 -297
- package/src/components/studio/DataSpacePreviewAction.tsx +0 -136
- package/src/components/studio/DataSpaceQueryAction.tsx +0 -34
- package/src/components/studio/DataSpaceTemplateQueryPromoteReview.tsx +0 -292
- package/src/stores/query/DataSpaceQueryCreatorStore.ts +0 -308
- package/src/stores/query/DataSpaceQuerySetupStore.ts +0 -205
- package/src/stores/query/DataSpaceTemplateQueryCreatorStore.ts +0 -207
- package/src/stores/query/DataSpaceTemplateQueryPromotionReviewerStore.ts +0 -636
- package/src/stores/studio/DataSpacePreviewState.ts +0 -195
- /package/lib/components/{query → query-builder}/DataSpaceAdvancedSearchModal.d.ts +0 -0
- /package/lib/components/{query → query-builder}/DataSpaceAdvancedSearchModal.js +0 -0
- /package/lib/components/{query → query-builder}/QueryDataSpaceUtil.d.ts +0 -0
- /package/lib/components/{query → query-builder}/QueryDataSpaceUtil.js +0 -0
- /package/lib/components/{DSL_DataSpace_Icon.d.ts → shared/DSL_DataSpace_Icon.d.ts} +0 -0
- /package/lib/components/{DSL_DataSpace_Icon.js → shared/DSL_DataSpace_Icon.js} +0 -0
- /package/lib/stores/{query → shared}/DataSpaceInfo.d.ts +0 -0
- /package/lib/stores/{query → shared}/DataSpaceInfo.js +0 -0
- /package/src/components/{query → query-builder}/QueryDataSpaceUtil.ts +0 -0
- /package/src/components/{DSL_DataSpace_Icon.tsx → shared/DSL_DataSpace_Icon.tsx} +0 -0
- /package/src/stores/{query → shared}/DataSpaceInfo.ts +0 -0
@@ -0,0 +1,57 @@
|
|
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 {
|
17
|
+
generateExtensionUrlPattern,
|
18
|
+
generatePath,
|
19
|
+
} from '@finos/legend-application/browser';
|
20
|
+
import { generateGAVCoordinates } from '@finos/legend-storage';
|
21
|
+
|
22
|
+
export enum DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN {
|
23
|
+
GAV = 'gav',
|
24
|
+
DATA_SPACE_PATH = 'dataSpacePath',
|
25
|
+
QUERY_ID = 'queryId',
|
26
|
+
}
|
27
|
+
|
28
|
+
export type DataSpaceTemplateQueryPromotionReviewerPathParams = {
|
29
|
+
[DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN.GAV]: string;
|
30
|
+
[DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]: string;
|
31
|
+
[DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN.QUERY_ID]: string;
|
32
|
+
};
|
33
|
+
|
34
|
+
export const DATA_SPACE_STUDIO_ROUTE_PATTERN = Object.freeze({
|
35
|
+
PROMOTE_TEMPLATE_QUERY: `/promote-template-query/:${DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN.GAV}/:${DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH}/:${DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN.QUERY_ID}?`,
|
36
|
+
});
|
37
|
+
|
38
|
+
export const generateDataSpaceTemplateQueryPromotionRoute = (
|
39
|
+
groupId: string,
|
40
|
+
artifactId: string,
|
41
|
+
versionId: string,
|
42
|
+
dataSpacePath: string,
|
43
|
+
queryId: string | undefined,
|
44
|
+
): string =>
|
45
|
+
generatePath(
|
46
|
+
generateExtensionUrlPattern(
|
47
|
+
DATA_SPACE_STUDIO_ROUTE_PATTERN.PROMOTE_TEMPLATE_QUERY,
|
48
|
+
),
|
49
|
+
{
|
50
|
+
[DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN.GAV]:
|
51
|
+
generateGAVCoordinates(groupId, artifactId, versionId),
|
52
|
+
[DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]:
|
53
|
+
dataSpacePath,
|
54
|
+
[DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN.QUERY_ID]:
|
55
|
+
queryId,
|
56
|
+
},
|
57
|
+
);
|
@@ -42,40 +42,10 @@ export enum DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN {
|
|
42
42
|
TEMPLATE_QUERY_ID = 'templateQueryId',
|
43
43
|
}
|
44
44
|
|
45
|
-
|
46
|
-
GAV = 'gav',
|
47
|
-
DATA_SPACE_PATH = 'dataSpacePath',
|
48
|
-
QUERY_ID = 'queryId',
|
49
|
-
}
|
50
|
-
|
51
|
-
export type DataSpaceQueryCreatorPathParams = {
|
52
|
-
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV]: string;
|
53
|
-
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]: string;
|
54
|
-
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.EXECUTION_CONTEXT]: string;
|
55
|
-
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.RUNTIME_PATH]?: string;
|
56
|
-
};
|
57
|
-
|
58
|
-
export type DataSpaceTemplateQueryCreatorPathParams = {
|
59
|
-
[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV]: string;
|
60
|
-
[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]: string;
|
61
|
-
[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE_QUERY_ID]: string;
|
62
|
-
};
|
63
|
-
|
64
|
-
export type DataSpaceTemplateQueryPromotionReviewerPathParams = {
|
65
|
-
[DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN.GAV]: string;
|
66
|
-
[DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]: string;
|
67
|
-
[DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN.QUERY_ID]: string;
|
68
|
-
};
|
69
|
-
|
70
|
-
export type DataSpaceQueryEditorQueryParams = {
|
71
|
-
[DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.CLASS_PATH]?: string | undefined;
|
72
|
-
};
|
73
|
-
|
74
|
-
export const DATA_SPACE_QUERY_ROUTE_PATTERN = Object.freeze({
|
45
|
+
const DATA_SPACE_QUERY_ROUTE_PATTERN = Object.freeze({
|
75
46
|
SETUP: `/dataspace`,
|
76
47
|
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}?`,
|
77
48
|
TEMPLATE_QUERY: `/dataspace/:${DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV}/:${DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH}/:${DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE}/:${DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE_QUERY_ID}`,
|
78
|
-
PROMOTE_TEMPLATE_QUERY: `/promote-template-query/:${DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN.GAV}/:${DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH}/:${DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN.QUERY_ID}?`,
|
79
49
|
});
|
80
50
|
|
81
51
|
export const generateDataSpaceQuerySetupRoute = (): string =>
|
@@ -134,24 +104,49 @@ export const generateDataSpaceTemplateQueryCreatorRoute = (
|
|
134
104
|
templateQueryId,
|
135
105
|
},
|
136
106
|
);
|
107
|
+
enum LEGEND_QUERY_ROUTE_PATTERN_TOKEN {
|
108
|
+
GAV = 'gav',
|
109
|
+
QUERY_ID = 'queryId',
|
110
|
+
MAPPING_PATH = 'mappingPath',
|
111
|
+
RUNTIME_PATH = 'runtimePath',
|
112
|
+
SERVICE_PATH = 'servicePath',
|
113
|
+
}
|
137
114
|
|
138
|
-
|
115
|
+
const LEGEND_QUERY_ROUTE_PATTERN = Object.freeze({
|
116
|
+
SETUP: '/setup',
|
117
|
+
EDIT_EXISTING_QUERY_SETUP: '/setup/existing-query',
|
118
|
+
CREATE_MAPPING_QUERY_SETUP: '/setup/manual',
|
119
|
+
CLONE_SERVICE_QUERY_SETUP: '/setup/clone-service-query',
|
120
|
+
QUERY_PRODUCTIONIZER_SETUP: '/setup/productionize-query',
|
121
|
+
UPDATE_EXISTING_SERVICE_QUERY_SETUP: '/setup/update-existing-service-query',
|
122
|
+
LOAD_PROJECT_SERVICE_QUERY_SETUP: '/setup/load-project-service-query',
|
123
|
+
CREATE_FROM_MAPPING_QUERY: `/create/manual/:${LEGEND_QUERY_ROUTE_PATTERN_TOKEN.GAV}/:${LEGEND_QUERY_ROUTE_PATTERN_TOKEN.MAPPING_PATH}/:${LEGEND_QUERY_ROUTE_PATTERN_TOKEN.RUNTIME_PATH}`,
|
124
|
+
CREATE_FROM_SERVICE_QUERY: `/create-from-service/:${LEGEND_QUERY_ROUTE_PATTERN_TOKEN.GAV}/:${LEGEND_QUERY_ROUTE_PATTERN_TOKEN.SERVICE_PATH}`,
|
125
|
+
EDIT_EXISTING_QUERY: `/edit/:${LEGEND_QUERY_ROUTE_PATTERN_TOKEN.QUERY_ID}`,
|
126
|
+
});
|
127
|
+
|
128
|
+
export enum LEGEND_QUERY_QUERY_PARAM_TOKEN {
|
129
|
+
SERVICE_EXECUTION_KEY = 'executionKey',
|
130
|
+
}
|
131
|
+
export const generateServiceQueryCreatorRoute = (
|
139
132
|
groupId: string,
|
140
133
|
artifactId: string,
|
141
134
|
versionId: string,
|
142
|
-
|
143
|
-
|
135
|
+
servicePath: string,
|
136
|
+
executionKey?: string | undefined,
|
144
137
|
): string =>
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
[
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
138
|
+
addQueryParametersToUrl(
|
139
|
+
generatePath(LEGEND_QUERY_ROUTE_PATTERN.CREATE_FROM_SERVICE_QUERY, {
|
140
|
+
[LEGEND_QUERY_ROUTE_PATTERN_TOKEN.GAV]: generateGAVCoordinates(
|
141
|
+
groupId,
|
142
|
+
artifactId,
|
143
|
+
versionId,
|
144
|
+
),
|
145
|
+
[LEGEND_QUERY_ROUTE_PATTERN_TOKEN.SERVICE_PATH]: servicePath,
|
146
|
+
}),
|
147
|
+
stringifyQueryParams({
|
148
|
+
[LEGEND_QUERY_QUERY_PARAM_TOKEN.SERVICE_EXECUTION_KEY]: executionKey
|
149
|
+
? encodeURIComponent(executionKey)
|
150
|
+
: executionKey,
|
151
|
+
}),
|
157
152
|
);
|
@@ -30,17 +30,17 @@ import type {
|
|
30
30
|
QueryBuilder_LegendApplicationPlugin_Extension,
|
31
31
|
TemplateQueryPanelContentRenderer,
|
32
32
|
} from '@finos/legend-query-builder';
|
33
|
-
import { DataSpaceQueryBuilderState } from '../stores/query/DataSpaceQueryBuilderState.js';
|
34
|
-
import {
|
35
|
-
createQueryClassTaggedValue,
|
36
|
-
createQueryDataSpaceTaggedValue,
|
37
|
-
} from '../stores/query/DataSpaceQueryCreatorStore.js';
|
33
|
+
import { DataSpaceQueryBuilderState } from '../stores/query-builder/DataSpaceQueryBuilderState.js';
|
38
34
|
import { DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_CONFIG } from '../__lib__/DSL_DataSpace_LegendApplicationCommand.js';
|
39
35
|
import type { QuerySearchSpecification } from '@finos/legend-graph';
|
40
36
|
import { configureDataGridComponent } from '@finos/legend-lego/data-grid';
|
41
|
-
import { renderDataSpaceQueryBuilderTemplateQueryPanelContent } from './query/DataSpaceQueryBuilderTemplateQueryPanelContent.js';
|
42
37
|
import { DataSpaceExecutableTemplate } from '../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
43
38
|
import { filterByType } from '@finos/legend-shared';
|
39
|
+
import {
|
40
|
+
createQueryClassTaggedValue,
|
41
|
+
createQueryDataSpaceTaggedValue,
|
42
|
+
} from '../stores/shared/DataSpaceUtils.js';
|
43
|
+
import { renderDataSpaceQueryBuilderTemplateQueryPanelContent } from './query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.js';
|
44
44
|
|
45
45
|
export class DSL_DataSpace_LegendApplicationPlugin
|
46
46
|
extends LegendApplicationPlugin
|
package/src/components/index.ts
CHANGED
@@ -15,11 +15,22 @@
|
|
15
15
|
*/
|
16
16
|
|
17
17
|
export * from '../__lib__/DSL_DataSpace_LegendApplicationNavigation.js';
|
18
|
-
export * from '../__lib__/
|
18
|
+
export * from '../__lib__/shared/DSL_DataSpace_LegendNavigation.js';
|
19
|
+
|
20
|
+
export * from '../__lib__/DSL_DataSpace_LegendApplicationCommand.js';
|
19
21
|
export { DSL_DataSpace_LegendApplicationPlugin } from './DSL_DataSpace_LegendApplicationPlugin.js';
|
20
22
|
export { DataSpaceViewer } from './DataSpaceViewer.js';
|
21
23
|
export * from '../stores/DSL_DataSpace_LegendApplicationPlugin_Extension.js';
|
22
24
|
export { DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
|
23
|
-
export {
|
24
|
-
|
25
|
-
|
25
|
+
export {
|
26
|
+
DataSpaceQueryBuilderState,
|
27
|
+
DataSpaceProjectInfo,
|
28
|
+
} from '../stores/query-builder/DataSpaceQueryBuilderState.js';
|
29
|
+
export {
|
30
|
+
type DataSpaceInfo,
|
31
|
+
extractDataSpaceInfo,
|
32
|
+
} from '../stores/shared/DataSpaceInfo.js';
|
33
|
+
|
34
|
+
export * from '../stores/shared/DataSpaceUtils.js';
|
35
|
+
|
36
|
+
export * from './shared/DSL_DataSpace_Icon.js';
|
@@ -38,7 +38,7 @@ import { flowResult } from 'mobx';
|
|
38
38
|
import { observer } from 'mobx-react-lite';
|
39
39
|
import { useEffect, useRef } from 'react';
|
40
40
|
import { DataSpaceViewer } from '../DataSpaceViewer.js';
|
41
|
-
import type { DataSpaceInfo } from '../../stores/
|
41
|
+
import type { DataSpaceInfo } from '../../stores/shared/DataSpaceInfo.js';
|
42
42
|
import type { DataSpaceAdvancedSearchState } from '../../stores/query/DataSpaceAdvancedSearchState.js';
|
43
43
|
|
44
44
|
type DataSpaceOption = { label: string; value: DataSpaceInfo };
|
@@ -31,9 +31,9 @@ import {
|
|
31
31
|
import { observer } from 'mobx-react-lite';
|
32
32
|
import { useApplicationStore } from '@finos/legend-application';
|
33
33
|
import {
|
34
|
-
DataSpaceQueryBuilderState,
|
34
|
+
type DataSpaceQueryBuilderState,
|
35
35
|
resolveUsableDataSpaceClasses,
|
36
|
-
} from '../../stores/query/DataSpaceQueryBuilderState.js';
|
36
|
+
} from '../../stores/query-builder/DataSpaceQueryBuilderState.js';
|
37
37
|
import {
|
38
38
|
buildRuntimeValueOption,
|
39
39
|
getRuntimeOptionFormatter,
|
@@ -45,18 +45,14 @@ import {
|
|
45
45
|
PackageableElementExplicitReference,
|
46
46
|
RuntimePointer,
|
47
47
|
} from '@finos/legend-graph';
|
48
|
-
import type { DataSpaceInfo } from '../../stores/
|
48
|
+
import type { DataSpaceInfo } from '../../stores/shared/DataSpaceInfo.js';
|
49
49
|
import { generateGAVCoordinates } from '@finos/legend-storage';
|
50
50
|
import { useEffect } from 'react';
|
51
51
|
import { guaranteeType } from '@finos/legend-shared';
|
52
52
|
import { flowResult } from 'mobx';
|
53
|
-
import {
|
54
|
-
|
55
|
-
type DataSpaceExecutionContext,
|
56
|
-
} from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
57
|
-
import { DataSpaceIcon } from '../DSL_DataSpace_Icon.js';
|
53
|
+
import { type DataSpaceExecutionContext } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
54
|
+
import { DataSpaceIcon } from '../shared/DSL_DataSpace_Icon.js';
|
58
55
|
import { DataSpaceAdvancedSearchModal } from './DataSpaceAdvancedSearchModal.js';
|
59
|
-
import type { EditorStore } from '@finos/legend-application-studio';
|
60
56
|
|
61
57
|
export type DataSpaceOption = {
|
62
58
|
label: string;
|
@@ -120,7 +116,8 @@ const buildExecutionContextOption = (
|
|
120
116
|
* This setup panel supports cascading in order: Data-space -> Execution context (-> Runtime) -> Class
|
121
117
|
*
|
122
118
|
* In other words, we will only show:
|
123
|
-
* - For runtime selector: the list of compatible runtimes with the selected
|
119
|
+
* - For runtime selector: the list of compatible runtimes with the selected
|
120
|
+
execution context mapping
|
124
121
|
* - For class selector: the list of compatible class with the selected execution context mapping
|
125
122
|
*
|
126
123
|
* See details on propagation/cascading in {@link DataSpaceQueryBuilderState}
|
@@ -372,61 +369,3 @@ export const renderDataSpaceQueryBuilderSetupPanelContent = (
|
|
372
369
|
queryBuilderState={queryBuilderState}
|
373
370
|
/>
|
374
371
|
);
|
375
|
-
|
376
|
-
export const queryDataSpace = async (
|
377
|
-
dataSpace: DataSpace,
|
378
|
-
editorStore: EditorStore,
|
379
|
-
): Promise<void> => {
|
380
|
-
const embeddedQueryBuilderState = editorStore.embeddedQueryBuilderState;
|
381
|
-
await flowResult(
|
382
|
-
embeddedQueryBuilderState.setEmbeddedQueryBuilderConfiguration({
|
383
|
-
setupQueryBuilderState: () => {
|
384
|
-
const sourceInfo = Object.assign(
|
385
|
-
{},
|
386
|
-
editorStore.editorMode.getSourceInfo(),
|
387
|
-
{
|
388
|
-
dataSpace: dataSpace.path,
|
389
|
-
},
|
390
|
-
);
|
391
|
-
const queryBuilderState = new DataSpaceQueryBuilderState(
|
392
|
-
editorStore.applicationStore,
|
393
|
-
editorStore.graphManagerState,
|
394
|
-
editorStore.depotServerClient,
|
395
|
-
dataSpace,
|
396
|
-
dataSpace.defaultExecutionContext,
|
397
|
-
(dataSpaceInfo: DataSpaceInfo) => {
|
398
|
-
queryBuilderState.dataSpace = guaranteeType(
|
399
|
-
queryBuilderState.graphManagerState.graph.getElement(
|
400
|
-
dataSpaceInfo.path,
|
401
|
-
),
|
402
|
-
DataSpace,
|
403
|
-
);
|
404
|
-
queryBuilderState.setExecutionContext(
|
405
|
-
queryBuilderState.dataSpace.defaultExecutionContext,
|
406
|
-
);
|
407
|
-
queryBuilderState.propagateExecutionContextChange(
|
408
|
-
queryBuilderState.dataSpace.defaultExecutionContext,
|
409
|
-
);
|
410
|
-
},
|
411
|
-
false,
|
412
|
-
undefined,
|
413
|
-
undefined,
|
414
|
-
undefined,
|
415
|
-
undefined,
|
416
|
-
undefined,
|
417
|
-
editorStore.applicationStore.config.options.queryBuilderConfig,
|
418
|
-
sourceInfo,
|
419
|
-
);
|
420
|
-
queryBuilderState.setExecutionContext(
|
421
|
-
dataSpace.defaultExecutionContext,
|
422
|
-
);
|
423
|
-
queryBuilderState.propagateExecutionContextChange(
|
424
|
-
dataSpace.defaultExecutionContext,
|
425
|
-
);
|
426
|
-
return queryBuilderState;
|
427
|
-
},
|
428
|
-
actionConfigs: [],
|
429
|
-
disableCompile: true,
|
430
|
-
}),
|
431
|
-
);
|
432
|
-
};
|
package/src/components/{query → query-builder}/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx
RENAMED
@@ -24,16 +24,16 @@ import {
|
|
24
24
|
} from '@finos/legend-art';
|
25
25
|
import { observer } from 'mobx-react-lite';
|
26
26
|
import { useRef } from 'react';
|
27
|
-
import { DataSpaceExecutableTemplate } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
28
|
-
import type { DataSpaceQueryBuilderState } from '../../stores/query/DataSpaceQueryBuilderState.js';
|
29
27
|
import {
|
30
28
|
ActionAlertActionType,
|
31
29
|
ActionAlertType,
|
32
30
|
useApplicationStore,
|
33
31
|
} from '@finos/legend-application';
|
34
|
-
import { generateDataSpaceTemplateQueryCreatorRoute } from '../../__lib__/query/DSL_DataSpace_LegendQueryNavigation.js';
|
35
32
|
import { DocumentationLink } from '@finos/legend-lego/application';
|
36
|
-
import {
|
33
|
+
import { generateDataSpaceTemplateQueryCreatorRoute } from '../../__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.js';
|
34
|
+
import { DataSpaceExecutableTemplate } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
35
|
+
import type { DataSpaceQueryBuilderState } from '../../stores/query-builder/DataSpaceQueryBuilderState.js';
|
36
|
+
import { DSL_DATA_SPACE_LEGEND_QUERY_DOCUMENTATION_KEY } from '../../__lib__/query/DSL_DataSpace_LegendQueryDocumentation.js';
|
37
37
|
|
38
38
|
const DataSpaceTemplateQueryDialog = observer(
|
39
39
|
(props: {
|
@@ -136,7 +136,7 @@ const DataSpaceTemplateQueryDialog = observer(
|
|
136
136
|
Curated Template Queries
|
137
137
|
<DocumentationLink
|
138
138
|
documentationKey={
|
139
|
-
|
139
|
+
DSL_DATA_SPACE_LEGEND_QUERY_DOCUMENTATION_KEY.CURATED_TEMPLATE_QUERY
|
140
140
|
}
|
141
141
|
/>
|
142
142
|
</div>
|
@@ -14,4 +14,10 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
-
export {
|
17
|
+
export {
|
18
|
+
buildDataSpaceOption,
|
19
|
+
formatDataSpaceOptionLabel,
|
20
|
+
type DataSpaceOption,
|
21
|
+
} from './DataSpaceQueryBuilder.js';
|
22
|
+
export { DataSpaceAdvancedSearchModal } from './DataSpaceAdvancedSearchModal.js';
|
23
|
+
export { DataSpaceAdvancedSearchState } from '../../stores/query/DataSpaceAdvancedSearchState.js';
|
@@ -14,6 +14,11 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
+
// Graph
|
18
|
+
export * from '../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
19
|
+
export * from '../graph/metamodel/pure/model/packageableElements/mapping/DSL_DataSpace_MappingIncludeDataSpace.js';
|
20
|
+
export * from '../graph/DSL_DataSpace_MetaModelConst.js';
|
21
|
+
|
17
22
|
export * from './DSL_DataSpace_GraphManagerPreset.js';
|
18
23
|
|
19
24
|
export {
|
@@ -26,3 +31,4 @@ export { DSL_DataSpace_getGraphManagerExtension } from './protocol/pure/DSL_Data
|
|
26
31
|
|
27
32
|
export * from './action/analytics/DataSpaceAnalysis.js';
|
28
33
|
export * from './action/analytics/DataSpaceAnalysisHelper.js';
|
34
|
+
export * from './protocol/pure/DSL_DataSpace_PureGraphManagerExtension.js';
|
@@ -38,12 +38,17 @@ import { action, flow, flowResult, makeObservable, observable } from 'mobx';
|
|
38
38
|
import { DSL_DataSpace_getGraphManagerExtension } from '../../graph-manager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.js';
|
39
39
|
import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH } from '../../graph-manager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js';
|
40
40
|
import { DataSpaceViewerState } from '../DataSpaceViewerState.js';
|
41
|
-
import {
|
42
|
-
|
41
|
+
import {
|
42
|
+
type DataSpaceInfo,
|
43
|
+
extractDataSpaceInfo,
|
44
|
+
} from '../shared/DataSpaceInfo.js';
|
43
45
|
import { type GenericLegendApplicationStore } from '@finos/legend-application';
|
44
46
|
import { retrieveAnalyticsResultCache } from '../../graph-manager/action/analytics/DataSpaceAnalysisHelper.js';
|
45
47
|
import type { DataSpaceAnalysisResult } from '../../graph-manager/action/analytics/DataSpaceAnalysis.js';
|
46
|
-
import {
|
48
|
+
import {
|
49
|
+
generateDataSpaceQueryCreatorRoute,
|
50
|
+
generateServiceQueryCreatorRoute,
|
51
|
+
} from '../../__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.js';
|
47
52
|
|
48
53
|
export class DataSpaceAdvancedSearchState {
|
49
54
|
readonly applicationStore: GenericLegendApplicationStore;
|
@@ -45,15 +45,18 @@ import {
|
|
45
45
|
uniq,
|
46
46
|
} from '@finos/legend-shared';
|
47
47
|
import { action, flow, makeObservable, observable } from 'mobx';
|
48
|
-
import { renderDataSpaceQueryBuilderSetupPanelContent } from '../../components/query/DataSpaceQueryBuilder.js';
|
48
|
+
import { renderDataSpaceQueryBuilderSetupPanelContent } from '../../components/query-builder/DataSpaceQueryBuilder.js';
|
49
49
|
import {
|
50
50
|
DataSpace,
|
51
51
|
type DataSpaceExecutionContext,
|
52
52
|
} from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
53
53
|
import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH } from '../../graph-manager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js';
|
54
|
-
import {
|
55
|
-
import { DataSpaceAdvancedSearchState } from './DataSpaceAdvancedSearchState.js';
|
54
|
+
import { DataSpaceAdvancedSearchState } from '../query/DataSpaceAdvancedSearchState.js';
|
56
55
|
import type { DataSpaceAnalysisResult } from '../../graph-manager/action/analytics/DataSpaceAnalysis.js';
|
56
|
+
import {
|
57
|
+
extractDataSpaceInfo,
|
58
|
+
type DataSpaceInfo,
|
59
|
+
} from '../shared/DataSpaceInfo.js';
|
57
60
|
|
58
61
|
export const resolveUsableDataSpaceClasses = (
|
59
62
|
dataSpace: DataSpace,
|
@@ -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 { QueryTaggedValue } from '@finos/legend-graph';
|
18
|
+
import {
|
19
|
+
QUERY_PROFILE_PATH,
|
20
|
+
QUERY_PROFILE_TAG_CLASS,
|
21
|
+
QUERY_PROFILE_TAG_DATA_SPACE,
|
22
|
+
} from '../../graph/DSL_DataSpace_MetaModelConst.js';
|
23
|
+
|
24
|
+
export const createQueryDataSpaceTaggedValue = (
|
25
|
+
dataSpacePath: string,
|
26
|
+
): QueryTaggedValue => {
|
27
|
+
const taggedValue = new QueryTaggedValue();
|
28
|
+
taggedValue.profile = QUERY_PROFILE_PATH;
|
29
|
+
taggedValue.tag = QUERY_PROFILE_TAG_DATA_SPACE;
|
30
|
+
taggedValue.value = dataSpacePath;
|
31
|
+
return taggedValue;
|
32
|
+
};
|
33
|
+
|
34
|
+
export const createQueryClassTaggedValue = (
|
35
|
+
classPath: string,
|
36
|
+
): QueryTaggedValue => {
|
37
|
+
const taggedValue = new QueryTaggedValue();
|
38
|
+
taggedValue.profile = QUERY_PROFILE_PATH;
|
39
|
+
taggedValue.tag = QUERY_PROFILE_TAG_CLASS;
|
40
|
+
taggedValue.value = classPath;
|
41
|
+
return taggedValue;
|
42
|
+
};
|
package/tsconfig.json
CHANGED
@@ -34,14 +34,12 @@
|
|
34
34
|
"files": [
|
35
35
|
"./src/__lib__/DSL_DataSpace_LegendApplicationCommand.ts",
|
36
36
|
"./src/__lib__/DSL_DataSpace_LegendApplicationNavigation.ts",
|
37
|
-
"./src/__lib__/query/
|
38
|
-
"./src/__lib__/
|
39
|
-
"./src/__lib__/
|
37
|
+
"./src/__lib__/query/DSL_DataSpace_LegendQueryDocumentation.ts",
|
38
|
+
"./src/__lib__/shared/DSL_DataSpace_LegendNavigation.ts",
|
39
|
+
"./src/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.ts",
|
40
40
|
"./src/components/index.ts",
|
41
|
-
"./src/components/query/
|
42
|
-
"./src/components/query/
|
43
|
-
"./src/components/query/index.ts",
|
44
|
-
"./src/components/studio/index.ts",
|
41
|
+
"./src/components/query-builder/QueryDataSpaceUtil.ts",
|
42
|
+
"./src/components/query-builder/index.ts",
|
45
43
|
"./src/graph/DSL_DataSpace_HashUtils.ts",
|
46
44
|
"./src/graph/DSL_DataSpace_MetaModelConst.ts",
|
47
45
|
"./src/graph/DSL_DataSpace_PureGraphPlugin.ts",
|
@@ -71,14 +69,9 @@
|
|
71
69
|
"./src/stores/DataSpaceViewerNavigation.ts",
|
72
70
|
"./src/stores/DataSpaceViewerState.ts",
|
73
71
|
"./src/stores/query/DataSpaceAdvancedSearchState.ts",
|
74
|
-
"./src/stores/query/
|
75
|
-
"./src/stores/
|
76
|
-
"./src/stores/
|
77
|
-
"./src/stores/query/DataSpaceQuerySetupStore.ts",
|
78
|
-
"./src/stores/query/DataSpaceTemplateQueryCreatorStore.ts",
|
79
|
-
"./src/stores/query/DataSpaceTemplateQueryPromotionReviewerStore.ts",
|
80
|
-
"./src/stores/studio/DataSpacePreviewState.ts",
|
81
|
-
"./src/components/DSL_DataSpace_Icon.tsx",
|
72
|
+
"./src/stores/query-builder/DataSpaceQueryBuilderState.ts",
|
73
|
+
"./src/stores/shared/DataSpaceInfo.ts",
|
74
|
+
"./src/stores/shared/DataSpaceUtils.ts",
|
82
75
|
"./src/components/DSL_DataSpace_LegendApplicationPlugin.tsx",
|
83
76
|
"./src/components/DataSpaceDataAccess.tsx",
|
84
77
|
"./src/components/DataSpaceDescription.tsx",
|
@@ -93,17 +86,10 @@
|
|
93
86
|
"./src/components/DataSpaceViewer.tsx",
|
94
87
|
"./src/components/DataSpaceViewerActivityBar.tsx",
|
95
88
|
"./src/components/DataSpaceWiki.tsx",
|
96
|
-
"./src/components/query/
|
97
|
-
"./src/components/query/
|
98
|
-
"./src/components/query/
|
99
|
-
"./src/components/
|
100
|
-
"./src/components/query/DataSpaceQueryCreator.tsx",
|
101
|
-
"./src/components/query/DataSpaceQuerySetup.tsx",
|
102
|
-
"./src/components/query/DataSpaceTemplateQueryCreator.tsx",
|
103
|
-
"./src/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.tsx",
|
104
|
-
"./src/components/studio/DataSpacePreviewAction.tsx",
|
105
|
-
"./src/components/studio/DataSpaceQueryAction.tsx",
|
106
|
-
"./src/components/studio/DataSpaceTemplateQueryPromoteReview.tsx",
|
89
|
+
"./src/components/query-builder/DataSpaceAdvancedSearchModal.tsx",
|
90
|
+
"./src/components/query-builder/DataSpaceQueryBuilder.tsx",
|
91
|
+
"./src/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx",
|
92
|
+
"./src/components/shared/DSL_DataSpace_Icon.tsx",
|
107
93
|
"./src/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_SystemModels.json"
|
108
94
|
],
|
109
95
|
"include": [
|
@@ -1,65 +0,0 @@
|
|
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
|
-
export declare enum DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN {
|
17
|
-
GAV = "gav",
|
18
|
-
DATA_SPACE_PATH = "dataSpacePath",
|
19
|
-
EXECUTION_CONTEXT = "executionContext",
|
20
|
-
RUNTIME_PATH = "runtimePath"
|
21
|
-
}
|
22
|
-
export declare enum DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN {
|
23
|
-
CLASS_PATH = "class"
|
24
|
-
}
|
25
|
-
export declare enum DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN {
|
26
|
-
GAV = "gav",
|
27
|
-
DATA_SPACE_PATH = "dataSpacePath",
|
28
|
-
TEMPLATE = "template",
|
29
|
-
TEMPLATE_QUERY_ID = "templateQueryId"
|
30
|
-
}
|
31
|
-
export declare enum DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN {
|
32
|
-
GAV = "gav",
|
33
|
-
DATA_SPACE_PATH = "dataSpacePath",
|
34
|
-
QUERY_ID = "queryId"
|
35
|
-
}
|
36
|
-
export type DataSpaceQueryCreatorPathParams = {
|
37
|
-
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV]: string;
|
38
|
-
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]: string;
|
39
|
-
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.EXECUTION_CONTEXT]: string;
|
40
|
-
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.RUNTIME_PATH]?: string;
|
41
|
-
};
|
42
|
-
export type DataSpaceTemplateQueryCreatorPathParams = {
|
43
|
-
[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV]: string;
|
44
|
-
[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]: string;
|
45
|
-
[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE_QUERY_ID]: string;
|
46
|
-
};
|
47
|
-
export type DataSpaceTemplateQueryPromotionReviewerPathParams = {
|
48
|
-
[DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN.GAV]: string;
|
49
|
-
[DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]: string;
|
50
|
-
[DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN.QUERY_ID]: string;
|
51
|
-
};
|
52
|
-
export type DataSpaceQueryEditorQueryParams = {
|
53
|
-
[DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.CLASS_PATH]?: string | undefined;
|
54
|
-
};
|
55
|
-
export declare const DATA_SPACE_QUERY_ROUTE_PATTERN: Readonly<{
|
56
|
-
SETUP: "/dataspace";
|
57
|
-
CREATE: "/dataspace/:gav/:dataSpacePath/:executionContext/:runtimePath?";
|
58
|
-
TEMPLATE_QUERY: "/dataspace/:gav/:dataSpacePath/:template/:templateQueryId";
|
59
|
-
PROMOTE_TEMPLATE_QUERY: "/promote-template-query/:gav/:dataSpacePath/:queryId?";
|
60
|
-
}>;
|
61
|
-
export declare const generateDataSpaceQuerySetupRoute: () => string;
|
62
|
-
export declare const generateDataSpaceQueryCreatorRoute: (groupId: string, artifactId: string, versionId: string, dataSpacePath: string, executionContextKey: string, runtimePath?: string | undefined, classPath?: string | undefined) => string;
|
63
|
-
export declare const generateDataSpaceTemplateQueryCreatorRoute: (groupId: string, artifactId: string, versionId: string, dataSpacePath: string, templateQueryId: string) => string;
|
64
|
-
export declare const generateDataSpaceTemplateQueryPromotionRoute: (groupId: string, artifactId: string, versionId: string, dataSpacePath: string, queryId: string | undefined) => string;
|
65
|
-
//# sourceMappingURL=DSL_DataSpace_LegendQueryNavigation.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DSL_DataSpace_LegendQueryNavigation.d.ts","sourceRoot":"","sources":["../../../src/__lib__/query/DSL_DataSpace_LegendQueryNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,oBAAY,4CAA4C;IACtD,GAAG,QAAQ;IACX,eAAe,kBAAkB;IACjC,iBAAiB,qBAAqB;IACtC,YAAY,gBAAgB;CAC7B;AAED,oBAAY,0CAA0C;IACpD,UAAU,UAAU;CACrB;AAED,oBAAY,qDAAqD;IAC/D,GAAG,QAAQ;IACX,eAAe,kBAAkB;IACjC,QAAQ,aAAa;IACrB,iBAAiB,oBAAoB;CACtC;AAED,oBAAY,uDAAuD;IACjE,GAAG,QAAQ;IACX,eAAe,kBAAkB;IACjC,QAAQ,YAAY;CACrB;AAED,MAAM,MAAM,+BAA+B,GAAG;IAC5C,CAAC,4CAA4C,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAC3D,CAAC,4CAA4C,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IACvE,CAAC,4CAA4C,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACzE,CAAC,4CAA4C,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;CACtE,CAAC;AAEF,MAAM,MAAM,uCAAuC,GAAG;IACpD,CAAC,qDAAqD,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACpE,CAAC,qDAAqD,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAChF,CAAC,qDAAqD,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CACnF,CAAC;AAEF,MAAM,MAAM,iDAAiD,GAAG;IAC9D,CAAC,uDAAuD,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtE,CAAC,uDAAuD,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClF,CAAC,uDAAuD,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5E,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,CAAC,0CAA0C,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9E,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;EAKzC,CAAC;AAEH,eAAO,MAAM,gCAAgC,QAAO,MAIjD,CAAC;AAEJ,eAAO,MAAM,kCAAkC,YACpC,MAAM,cACH,MAAM,aACP,MAAM,iBACF,MAAM,uBACA,MAAM,gBACb,MAAM,GAAG,SAAS,cACpB,MAAM,GAAG,SAAS,KAC7B,MAoBA,CAAC;AAEJ,eAAO,MAAM,0CAA0C,YAC5C,MAAM,cACH,MAAM,aACP,MAAM,iBACF,MAAM,mBACJ,MAAM,KACtB,MAaA,CAAC;AAEJ,eAAO,MAAM,4CAA4C,YAC9C,MAAM,cACH,MAAM,aACP,MAAM,iBACF,MAAM,WACZ,MAAM,GAAG,SAAS,KAC1B,MAaA,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DSL_DataSpace_LegendQueryNavigation.js","sourceRoot":"","sources":["../../../src/__lib__/query/DSL_DataSpace_LegendQueryNavigation.ts"],"names":[],"mappings":"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"}
|
@@ -1,17 +0,0 @@
|
|
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
|
-
export declare const SIMPLE_DATA_SPACE_SNIPPET = "DataSpace ${1:model::NewDataSpace}\n{\n executionContexts:\n [\n {\n name: '${5:Some Context}';\n title: 'New Execution Context';\n description: 'some information about the execution context';\n mapping: ${6:model::SomeMapping};\n defaultRuntime: ${7:model::SomeRuntime};\n }\n ];\n defaultExecutionContext: '${5:Some Context}';\n // description: 'description of the data models';\n // diagrams:\n // [\n // {\n // title: 'Some Diagram';\n // description: 'some diagram';\n // diagram: model::SomeDiagram;\n // }\n // ];\n // elements:\n // [\n // model::SomeClass,\n // ];\n // executables:\n // [\n // {\n // title: 'Some Executable';\n // description: 'some executable';\n // executable: model::SomeExecutable;\n // }\n // ];\n // supportInfo: Email {\n // address: 'someEmail@test.org';\n // };\n}";
|
17
|
-
//# sourceMappingURL=DSL_DataSpace_LegendStudioCodeSnippet.d.ts.map
|