@finos/legend-extension-dsl-data-space 10.2.2 → 10.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,13 +14,15 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  /// <reference types="react" resolution-mode="require"/>
17
- import { type ExistingQueryEditorStateBuilder, type QueryEditorStore, type QuerySetupActionConfiguration, LegendQueryApplicationPlugin, type QueryEditorActionConfiguration } from '@finos/legend-application-query';
17
+ import { type ExistingQueryEditorStateBuilder, type QueryEditorStore, type QuerySetupActionConfiguration, LegendQueryApplicationPlugin, type QueryEditorActionConfiguration, type NewQueryNavigationPath } from '@finos/legend-application-query';
18
18
  import { type ApplicationPageEntry } from '@finos/legend-application';
19
19
  export declare class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryApplicationPlugin {
20
20
  constructor();
21
+ getExtraRootAppRedirectPath(): string | undefined;
21
22
  getExtraApplicationPageEntries(): ApplicationPageEntry[];
22
23
  getExtraQuerySetupActionConfigurations(): QuerySetupActionConfiguration[];
23
24
  getExtraExistingQueryEditorStateBuilders(): ExistingQueryEditorStateBuilder[];
25
+ getExtraNewQueryNavigationPaths(): NewQueryNavigationPath[];
24
26
  getExtraQueryHeaders(): ((editorStore: QueryEditorStore) => React.ReactNode | undefined)[];
25
27
  getExtraQueryEditorActionConfigurations(): QueryEditorActionConfiguration[];
26
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DSL_DataSpace_LegendQueryApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EACL,KAAK,+BAA+B,EACpC,KAAK,gBAAgB,EACrB,KAAK,6BAA6B,EAElC,4BAA4B,EAI5B,KAAK,8BAA8B,EACpC,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAC;AAkEnC,qBAAa,0CAA2C,SAAQ,4BAA4B;;IAKjF,8BAA8B,IAAI,oBAAoB,EAAE;IAwBxD,sCAAsC,IAAI,6BAA6B,EAAE;IAoBzE,wCAAwC,IAAI,+BAA+B,EAAE;IAsK7E,oBAAoB,IAAI,CAAC,CAChC,WAAW,EAAE,gBAAgB,KAC1B,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC,EAAE;IAoB1B,uCAAuC,IAAI,8BAA8B,EAAE;CAqFrF"}
1
+ {"version":3,"file":"DSL_DataSpace_LegendQueryApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EACL,KAAK,+BAA+B,EACpC,KAAK,gBAAgB,EACrB,KAAK,6BAA6B,EAElC,4BAA4B,EAI5B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC5B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAC;AA8DnC,qBAAa,0CAA2C,SAAQ,4BAA4B;;IAKjF,2BAA2B,IAAI,MAAM,GAAG,SAAS;IAIjD,8BAA8B,IAAI,oBAAoB,EAAE;IAwBxD,sCAAsC,IAAI,6BAA6B,EAAE;IAoBzE,wCAAwC,IAAI,+BAA+B,EAAE;IA+J7E,+BAA+B,IAAI,sBAAsB,EAAE;IA6B3D,oBAAoB,IAAI,CAAC,CAChC,WAAW,EAAE,gBAAgB,KAC1B,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC,EAAE;IAoB1B,uCAAuC,IAAI,8BAA8B,EAAE;CAqFrF"}
@@ -20,8 +20,7 @@ import { ArrowCircleUpIcon, SquareIcon } from '@finos/legend-art';
20
20
  import { ActionAlertActionType, ActionAlertType, } from '@finos/legend-application';
21
21
  import { DATA_SPACE_QUERY_ROUTE_PATTERN, generateDataSpaceQueryCreatorRoute, generateDataSpaceQuerySetupRoute, generateDataSpaceTemplateQueryPromotionRoute, } from '../../__lib__/query/DSL_DataSpace_LegendQueryNavigation.js';
22
22
  import { DataSpaceQueryCreator } from './DataSpaceQueryCreator.js';
23
- import { isValidFullPath, } from '@finos/legend-graph';
24
- import { QUERY_PROFILE_PATH, QUERY_PROFILE_TAG_DATA_SPACE, } from '../../graph/DSL_DataSpace_MetaModelConst.js';
23
+ import {} from '@finos/legend-graph';
25
24
  import { DataSpaceQueryBuilderState, DataSpaceProjectInfo, } from '../../stores/query/DataSpaceQueryBuilderState.js';
26
25
  import { getOwnDataSpace } from '../../graph-manager/DSL_DataSpace_GraphManagerHelper.js';
27
26
  import { assertErrorThrown, buildUrl, guaranteeNonNullable, LogEvent, } from '@finos/legend-shared';
@@ -33,6 +32,7 @@ import { flowResult } from 'mobx';
33
32
  import { DataSpaceTemplateQueryCreator } from './DataSpaceTemplateQueryCreator.js';
34
33
  import { DataSpaceTemplateQueryCreatorStore } from '../../stores/query/DataSpaceTemplateQueryCreatorStore.js';
35
34
  import { parseProjectIdentifier } from '@finos/legend-storage';
35
+ import { getDataSpaceQueryInfo } from './QueryDataSpaceUtil.js';
36
36
  const resolveExecutionContext = (dataSpace, queryMapping, queryRuntime) => {
37
37
  const matchingExecContexts = dataSpace.executionContexts.filter((ec) => ec.mapping.value === queryMapping);
38
38
  if (matchingExecContexts.length > 1) {
@@ -47,6 +47,9 @@ export class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryAppli
47
47
  constructor() {
48
48
  super(packageJson.extensions.applicationQueryPlugin, packageJson.version);
49
49
  }
50
+ getExtraRootAppRedirectPath() {
51
+ return DATA_SPACE_QUERY_ROUTE_PATTERN.SETUP;
52
+ }
50
53
  getExtraApplicationPageEntries() {
51
54
  return [
52
55
  // data space query editor setup
@@ -88,11 +91,8 @@ export class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryAppli
88
91
  getExtraExistingQueryEditorStateBuilders() {
89
92
  return [
90
93
  async (query, editorStore) => {
91
- const dataSpaceTaggedValue = query.taggedValues?.find((taggedValue) => taggedValue.profile === QUERY_PROFILE_PATH &&
92
- taggedValue.tag === QUERY_PROFILE_TAG_DATA_SPACE &&
93
- isValidFullPath(taggedValue.value));
94
- if (dataSpaceTaggedValue) {
95
- const dataSpacePath = dataSpaceTaggedValue.value;
94
+ const dataSpacePath = getDataSpaceQueryInfo(query);
95
+ if (dataSpacePath) {
96
96
  const dataSpace = getOwnDataSpace(dataSpacePath, editorStore.graphManagerState.graph);
97
97
  const mapping = query.mapping.value;
98
98
  const matchingExecutionContext = resolveExecutionContext(dataSpace, mapping, query.runtime.value);
@@ -174,6 +174,22 @@ export class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryAppli
174
174
  },
175
175
  ];
176
176
  }
177
+ getExtraNewQueryNavigationPaths() {
178
+ return [
179
+ (query, editorStore) => {
180
+ const dataSpacePath = getDataSpaceQueryInfo(query);
181
+ const queryBuilderState = editorStore.queryBuilderState;
182
+ if (dataSpacePath &&
183
+ queryBuilderState instanceof DataSpaceQueryBuilderState) {
184
+ queryBuilderState.executionContext.name;
185
+ return generateDataSpaceQueryCreatorRoute(query.groupId, query.artifactId, query.versionId, dataSpacePath,
186
+ // TODO: fix execution key once that is fixed
187
+ queryBuilderState.executionContext.name, undefined, undefined);
188
+ }
189
+ return undefined;
190
+ },
191
+ ];
192
+ }
177
193
  getExtraQueryHeaders() {
178
194
  return [
179
195
  (editorStore) => {
@@ -1 +1 @@
1
- {"version":3,"file":"DSL_DataSpace_LegendQueryApplicationPlugin.js","sourceRoot":"","sources":["../../../src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AACxE,OAAO,EAIL,wBAAwB,EACxB,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,GAE7B,MAAM,iCAAiC,CAAC;AACzC,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wBAAwB,CAAC;gCAChD,CAAC,CAAC,+CAA+C;gCACjD,CAAC,CAAC,mCAAmC,aAGzC,KAAC,iBAAiB,IAAC,SAAS,EAAC,mDAAmD,GAAG,EACnF,cAAK,SAAS,EAAC,qCAAqC,0CAE9C,IACC,CACV,GACF,CACJ,CAAC;gBACJ,CAAC;aACF;SACF,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"DSL_DataSpace_LegendQueryApplicationPlugin.js","sourceRoot":"","sources":["../../../src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AACxE,OAAO,EAIL,wBAAwB,EACxB,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,GAG7B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EACL,qBAAqB,EACrB,eAAe,GAEhB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,8BAA8B,EAC9B,kCAAkC,EAClC,gCAAgC,EAChC,4CAA4C,GAC7C,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAIN,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,kDAAkD,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,yDAAyD,CAAC;AAC1F,OAAO,EACL,iBAAiB,EACjB,QAAQ,EACR,oBAAoB,EACpB,QAAQ,GACT,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sCAAsC,EAAE,MAAM,8EAA8E,CAAC;AACtI,OAAO,E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 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { type Query } from '@finos/legend-graph';
17
+ export declare const getDataSpaceQueryInfo: (query: Query) => string | undefined;
18
+ export declare const isDataSpaceQuery: (query: Query) => boolean;
19
+ //# sourceMappingURL=QueryDataSpaceUtil.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryDataSpaceUtil.d.ts","sourceRoot":"","sources":["../../../src/components/query/QueryDataSpaceUtil.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAmB,KAAK,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAMlE,eAAO,MAAM,qBAAqB,UAAW,KAAK,KAAG,MAAM,GAAG,SAQ7D,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,KAAK,KAAG,OACT,CAAC"}
@@ -0,0 +1,25 @@
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 { isValidFullPath } from '@finos/legend-graph';
17
+ import { QUERY_PROFILE_PATH, QUERY_PROFILE_TAG_DATA_SPACE, } from '../../graph/DSL_DataSpace_MetaModelConst.js';
18
+ export const getDataSpaceQueryInfo = (query) => {
19
+ const dataSpaceTaggedValue = query.taggedValues?.find((taggedValue) => taggedValue.profile === QUERY_PROFILE_PATH &&
20
+ taggedValue.tag === QUERY_PROFILE_TAG_DATA_SPACE &&
21
+ isValidFullPath(taggedValue.value));
22
+ return dataSpaceTaggedValue?.value;
23
+ };
24
+ export const isDataSpaceQuery = (query) => Boolean(getDataSpaceQueryInfo(query));
25
+ //# sourceMappingURL=QueryDataSpaceUtil.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryDataSpaceUtil.js","sourceRoot":"","sources":["../../../src/components/query/QueryDataSpaceUtil.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,eAAe,EAAc,MAAM,qBAAqB,CAAC;AAClE,OAAO,EACL,kBAAkB,EAClB,4BAA4B,GAC7B,MAAM,6CAA6C,CAAC;AAErD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,KAAY,EAAsB,EAAE;IACxE,MAAM,oBAAoB,GAAG,KAAK,CAAC,YAAY,EAAE,IAAI,CACnD,CAAC,WAAW,EAAE,EAAE,CACd,WAAW,CAAC,OAAO,KAAK,kBAAkB;QAC1C,WAAW,CAAC,GAAG,KAAK,4BAA4B;QAChD,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CACrC,CAAC;IACF,OAAO,oBAAoB,EAAE,KAAK,CAAC;AACrC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAAY,EAAW,EAAE,CACxD,OAAO,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-extension-dsl-data-space v10.2.2
1
+ /** @license @finos/legend-extension-dsl-data-space v10.2.4
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-data-space",
3
- "version": "10.2.2",
3
+ "version": "10.2.4",
4
4
  "description": "Legend extension for Data Space DSL",
5
5
  "keywords": [
6
6
  "legend",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-data-space",
3
- "version": "10.2.2",
3
+ "version": "10.2.4",
4
4
  "description": "Legend extension for Data Space DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -45,13 +45,13 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@finos/legend-application": "15.0.74",
48
- "@finos/legend-application-query": "13.3.3",
49
- "@finos/legend-application-studio": "28.16.11",
48
+ "@finos/legend-application-query": "13.4.1",
49
+ "@finos/legend-application-studio": "28.16.12",
50
50
  "@finos/legend-art": "7.1.26",
51
- "@finos/legend-extension-dsl-diagram": "8.0.155",
52
- "@finos/legend-graph": "31.9.10",
53
- "@finos/legend-lego": "1.2.23",
54
- "@finos/legend-query-builder": "4.14.24",
51
+ "@finos/legend-extension-dsl-diagram": "8.0.156",
52
+ "@finos/legend-graph": "31.9.11",
53
+ "@finos/legend-lego": "1.2.24",
54
+ "@finos/legend-query-builder": "4.14.25",
55
55
  "@finos/legend-server-depot": "6.0.39",
56
56
  "@finos/legend-server-sdlc": "5.3.10",
57
57
  "@finos/legend-shared": "10.0.34",
@@ -25,6 +25,7 @@ import {
25
25
  createViewProjectHandler,
26
26
  createViewSDLCProjectHandler,
27
27
  type QueryEditorActionConfiguration,
28
+ type NewQueryNavigationPath,
28
29
  } from '@finos/legend-application-query';
29
30
  import { ArrowCircleUpIcon, SquareIcon } from '@finos/legend-art';
30
31
  import {
@@ -43,12 +44,7 @@ import {
43
44
  type Query,
44
45
  type Mapping,
45
46
  type PackageableRuntime,
46
- isValidFullPath,
47
47
  } from '@finos/legend-graph';
48
- import {
49
- QUERY_PROFILE_PATH,
50
- QUERY_PROFILE_TAG_DATA_SPACE,
51
- } from '../../graph/DSL_DataSpace_MetaModelConst.js';
52
48
  import {
53
49
  DataSpaceQueryBuilderState,
54
50
  DataSpaceProjectInfo,
@@ -77,6 +73,7 @@ import type {
77
73
  import { DataSpaceTemplateQueryCreator } from './DataSpaceTemplateQueryCreator.js';
78
74
  import { DataSpaceTemplateQueryCreatorStore } from '../../stores/query/DataSpaceTemplateQueryCreatorStore.js';
79
75
  import { parseProjectIdentifier } from '@finos/legend-storage';
76
+ import { getDataSpaceQueryInfo } from './QueryDataSpaceUtil.js';
80
77
 
81
78
  const resolveExecutionContext = (
82
79
  dataSpace: DataSpace,
@@ -102,6 +99,10 @@ export class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryAppli
102
99
  super(packageJson.extensions.applicationQueryPlugin, packageJson.version);
103
100
  }
104
101
 
102
+ override getExtraRootAppRedirectPath(): string | undefined {
103
+ return DATA_SPACE_QUERY_ROUTE_PATTERN.SETUP;
104
+ }
105
+
105
106
  override getExtraApplicationPageEntries(): ApplicationPageEntry[] {
106
107
  return [
107
108
  // data space query editor setup
@@ -152,15 +153,8 @@ export class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryAppli
152
153
  query: Query,
153
154
  editorStore: ExistingQueryEditorStore,
154
155
  ): Promise<QueryBuilderState | undefined> => {
155
- const dataSpaceTaggedValue = query.taggedValues?.find(
156
- (taggedValue) =>
157
- taggedValue.profile === QUERY_PROFILE_PATH &&
158
- taggedValue.tag === QUERY_PROFILE_TAG_DATA_SPACE &&
159
- isValidFullPath(taggedValue.value),
160
- );
161
-
162
- if (dataSpaceTaggedValue) {
163
- const dataSpacePath = dataSpaceTaggedValue.value;
156
+ const dataSpacePath = getDataSpaceQueryInfo(query);
157
+ if (dataSpacePath) {
164
158
  const dataSpace = getOwnDataSpace(
165
159
  dataSpacePath,
166
160
  editorStore.graphManagerState.graph,
@@ -312,6 +306,35 @@ export class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryAppli
312
306
  ];
313
307
  }
314
308
 
309
+ override getExtraNewQueryNavigationPaths(): NewQueryNavigationPath[] {
310
+ return [
311
+ (
312
+ query: Query,
313
+ editorStore: ExistingQueryEditorStore,
314
+ ): string | undefined => {
315
+ const dataSpacePath = getDataSpaceQueryInfo(query);
316
+ const queryBuilderState = editorStore.queryBuilderState;
317
+ if (
318
+ dataSpacePath &&
319
+ queryBuilderState instanceof DataSpaceQueryBuilderState
320
+ ) {
321
+ queryBuilderState.executionContext.name;
322
+ return generateDataSpaceQueryCreatorRoute(
323
+ query.groupId,
324
+ query.artifactId,
325
+ query.versionId,
326
+ dataSpacePath,
327
+ // TODO: fix execution key once that is fixed
328
+ queryBuilderState.executionContext.name,
329
+ undefined,
330
+ undefined,
331
+ );
332
+ }
333
+ return undefined;
334
+ },
335
+ ];
336
+ }
337
+
315
338
  override getExtraQueryHeaders(): ((
316
339
  editorStore: QueryEditorStore,
317
340
  ) => React.ReactNode | undefined)[] {
@@ -0,0 +1,34 @@
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 { isValidFullPath, type Query } from '@finos/legend-graph';
18
+ import {
19
+ QUERY_PROFILE_PATH,
20
+ QUERY_PROFILE_TAG_DATA_SPACE,
21
+ } from '../../graph/DSL_DataSpace_MetaModelConst.js';
22
+
23
+ export const getDataSpaceQueryInfo = (query: Query): string | undefined => {
24
+ const dataSpaceTaggedValue = query.taggedValues?.find(
25
+ (taggedValue) =>
26
+ taggedValue.profile === QUERY_PROFILE_PATH &&
27
+ taggedValue.tag === QUERY_PROFILE_TAG_DATA_SPACE &&
28
+ isValidFullPath(taggedValue.value),
29
+ );
30
+ return dataSpaceTaggedValue?.value;
31
+ };
32
+
33
+ export const isDataSpaceQuery = (query: Query): boolean =>
34
+ Boolean(getDataSpaceQueryInfo(query));
package/tsconfig.json CHANGED
@@ -39,6 +39,7 @@
39
39
  "./src/__lib__/studio/DSL_DataSpace_LegendStudioDocumentation.ts",
40
40
  "./src/components/index.ts",
41
41
  "./src/components/query/DSL_DataSpace_LegendQueryDocumentation.ts",
42
+ "./src/components/query/QueryDataSpaceUtil.ts",
42
43
  "./src/components/query/index.ts",
43
44
  "./src/components/studio/index.ts",
44
45
  "./src/graph/DSL_DataSpace_HashUtils.ts",