@finos/legend-application-query 13.4.0 → 13.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. package/lib/__lib__/DSL_DataSpace_LegendQueryDocumentation.d.ts +19 -0
  2. package/lib/__lib__/DSL_DataSpace_LegendQueryDocumentation.d.ts.map +1 -0
  3. package/lib/__lib__/DSL_DataSpace_LegendQueryDocumentation.js +20 -0
  4. package/lib/__lib__/DSL_DataSpace_LegendQueryDocumentation.js.map +1 -0
  5. package/lib/__lib__/DSL_DataSpace_LegendQueryNavigation.d.ts +53 -0
  6. package/lib/__lib__/DSL_DataSpace_LegendQueryNavigation.d.ts.map +1 -0
  7. package/lib/__lib__/DSL_DataSpace_LegendQueryNavigation.js +59 -0
  8. package/lib/__lib__/DSL_DataSpace_LegendQueryNavigation.js.map +1 -0
  9. package/lib/components/Core_LegendQueryApplicationPlugin.d.ts.map +1 -1
  10. package/lib/components/Core_LegendQueryApplicationPlugin.js +14 -1
  11. package/lib/components/Core_LegendQueryApplicationPlugin.js.map +1 -1
  12. package/lib/components/LegendQueryWebApplication.d.ts.map +1 -1
  13. package/lib/components/LegendQueryWebApplication.js +18 -10
  14. package/lib/components/LegendQueryWebApplication.js.map +1 -1
  15. package/lib/components/QueryEditor.d.ts.map +1 -1
  16. package/lib/components/QueryEditor.js +47 -18
  17. package/lib/components/QueryEditor.js.map +1 -1
  18. package/lib/components/data-space/DataSpaceQueryCreator.d.ts +19 -0
  19. package/lib/components/data-space/DataSpaceQueryCreator.d.ts.map +1 -0
  20. package/lib/components/data-space/DataSpaceQueryCreator.js +43 -0
  21. package/lib/components/data-space/DataSpaceQueryCreator.js.map +1 -0
  22. package/lib/components/data-space/DataSpaceQuerySetup.d.ts +21 -0
  23. package/lib/components/data-space/DataSpaceQuerySetup.d.ts.map +1 -0
  24. package/lib/components/data-space/DataSpaceQuerySetup.js +64 -0
  25. package/lib/components/data-space/DataSpaceQuerySetup.js.map +1 -0
  26. package/lib/components/data-space/DataSpaceTemplateQueryCreator.d.ts +19 -0
  27. package/lib/components/data-space/DataSpaceTemplateQueryCreator.d.ts.map +1 -0
  28. package/lib/components/data-space/DataSpaceTemplateQueryCreator.js +39 -0
  29. package/lib/components/data-space/DataSpaceTemplateQueryCreator.js.map +1 -0
  30. package/lib/components/data-space/QueryDataSpaceUtil.d.ts +19 -0
  31. package/lib/components/data-space/QueryDataSpaceUtil.d.ts.map +1 -0
  32. package/lib/components/data-space/QueryDataSpaceUtil.js +25 -0
  33. package/lib/components/data-space/QueryDataSpaceUtil.js.map +1 -0
  34. package/lib/index.css +1 -1
  35. package/lib/package.json +2 -1
  36. package/lib/stores/LegendQueryApplicationPlugin.d.ts +0 -16
  37. package/lib/stores/LegendQueryApplicationPlugin.d.ts.map +1 -1
  38. package/lib/stores/LegendQueryApplicationPlugin.js.map +1 -1
  39. package/lib/stores/QueryEditorStore.d.ts +2 -0
  40. package/lib/stores/QueryEditorStore.d.ts.map +1 -1
  41. package/lib/stores/QueryEditorStore.js +96 -11
  42. package/lib/stores/QueryEditorStore.js.map +1 -1
  43. package/lib/stores/data-space/DataSpaceQueryCreatorStore.d.ts +37 -0
  44. package/lib/stores/data-space/DataSpaceQueryCreatorStore.d.ts.map +1 -0
  45. package/lib/stores/data-space/DataSpaceQueryCreatorStore.js +132 -0
  46. package/lib/stores/data-space/DataSpaceQueryCreatorStore.js.map +1 -0
  47. package/lib/stores/data-space/DataSpaceQuerySetupState.d.ts +51 -0
  48. package/lib/stores/data-space/DataSpaceQuerySetupState.d.ts.map +1 -0
  49. package/lib/stores/data-space/DataSpaceQuerySetupState.js +107 -0
  50. package/lib/stores/data-space/DataSpaceQuerySetupState.js.map +1 -0
  51. package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.d.ts +36 -0
  52. package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.d.ts.map +1 -0
  53. package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.js +104 -0
  54. package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.js.map +1 -0
  55. package/package.json +5 -4
  56. package/src/__lib__/DSL_DataSpace_LegendQueryDocumentation.ts +19 -0
  57. package/src/__lib__/DSL_DataSpace_LegendQueryNavigation.ts +123 -0
  58. package/src/components/Core_LegendQueryApplicationPlugin.tsx +18 -0
  59. package/src/components/LegendQueryWebApplication.tsx +48 -12
  60. package/src/components/QueryEditor.tsx +112 -24
  61. package/src/components/data-space/DataSpaceQueryCreator.tsx +99 -0
  62. package/src/components/data-space/DataSpaceQuerySetup.tsx +165 -0
  63. package/src/components/data-space/DataSpaceTemplateQueryCreator.tsx +82 -0
  64. package/src/components/data-space/QueryDataSpaceUtil.ts +34 -0
  65. package/src/stores/LegendQueryApplicationPlugin.ts +0 -22
  66. package/src/stores/QueryEditorStore.ts +187 -12
  67. package/src/stores/data-space/DataSpaceQueryCreatorStore.ts +286 -0
  68. package/src/stores/data-space/DataSpaceQuerySetupState.ts +208 -0
  69. package/src/stores/data-space/DataSpaceTemplateQueryCreatorStore.ts +204 -0
  70. package/tsconfig.json +10 -1
@@ -1 +1 @@
1
- {"version":3,"file":"QueryEditorStore.js","sourceRoot":"","sources":["../../src/stores/QueryEditorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,cAAc,EACd,UAAU,EACV,QAAQ,GACT,MAAM,MAAM,CAAC;AACd,OAAO,EAGL,QAAQ,EACR,iBAAiB,EACjB,IAAI,EACJ,UAAU,EACV,oBAAoB,EACpB,WAAW,EACX,SAAS,EACT,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAQL,iBAAiB,EACjB,KAAK,EACL,aAAa,EACb,mCAAmC,EACnC,cAAc,EACd,mBAAmB,EACnB,0BAA0B,EAC1B,OAAO,EACP,wBAAwB,EACxB,UAAU,EACV,wBAAwB,EACxB,YAAY,EACZ,mBAAmB,EAC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SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YAC9C,CAAC;YACD,aAAa,EAAE,CAAC,KAAY,EAAQ,EAAE;gBACpC,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;gBACxC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"QueryEditorStore.js","sourceRoot":"","sources":["../../src/stores/QueryEditorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,cAAc,EACd,UAAU,EACV,QAAQ,GACT,MAAM,MAAM,CAAC;AACd,OAAO,EAGL,QAAQ,EACR,iBAAiB,EACjB,IAAI,EACJ,UAAU,EACV,oBAAoB,EACpB,WAAW,EACX,SAAS,EACT,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAQL,iBAAiB,EACjB,KAAK,EACL,aAAa,EACb,mCAAmC,EACnC,cAAc,EACd,mBAAmB,EACnB,0BAA0B,EAC1B,OAAO,EACP,wBAAwB,EACxB,UAAU,EACV,wBAAwB,EACxB,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,GAEtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,6DAA6D,EAC7D,iEAAiE,EACjE,gCAAgC,EAChC,gCAAgC,EAChC,gCAAgC,GACjC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAIL,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,4BAA4B,CAAC;AACp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AAC;gBACxC,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;gBAC9C,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YAC9C,CAAC;YACD,aAAa,EAAE,CAAC,KAAY,EAAQ,EAAE;gBACpC,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;gBACxC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { type RawLambda } from '@finos/legend-graph';
17
+ import { type DepotServerClient } from '@finos/legend-server-depot';
18
+ import type { QueryBuilderState } from '@finos/legend-query-builder';
19
+ import type { ProjectGAVCoordinates } from '@finos/legend-storage';
20
+ import { QueryEditorStore, type QueryPersistConfiguration } from '../QueryEditorStore.js';
21
+ import type { LegendQueryApplicationStore } from '../LegendQueryBaseStore.js';
22
+ export declare class DataSpaceQueryCreatorStore extends QueryEditorStore {
23
+ readonly groupId: string;
24
+ readonly artifactId: string;
25
+ readonly versionId: string;
26
+ readonly dataSpacePath: string;
27
+ readonly executionContext: string;
28
+ readonly runtimePath: string | undefined;
29
+ readonly classPath: string | undefined;
30
+ constructor(applicationStore: LegendQueryApplicationStore, depotServerClient: DepotServerClient, groupId: string, artifactId: string, versionId: string, dataSpacePath: string, executionContext: string, runtimePath: string | undefined, executionKey: string | undefined);
31
+ getProjectInfo(): ProjectGAVCoordinates;
32
+ initializeQueryBuilderState(): Promise<QueryBuilderState>;
33
+ getPersistConfiguration(lambda: RawLambda, options?: {
34
+ update?: boolean | undefined;
35
+ }): QueryPersistConfiguration;
36
+ }
37
+ //# sourceMappingURL=DataSpaceQueryCreatorStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceQueryCreatorStore.d.ts","sourceRoot":"","sources":["../../../src/stores/data-space/DataSpaceQueryCreatorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,iBAAiB,EAGvB,MAAM,4BAA4B,CAAC;AAMpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAOnE,OAAO,EACL,gBAAgB,EAGhB,KAAK,yBAAyB,EAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAU9E,qBAAa,0BAA2B,SAAQ,gBAAgB;IAC9D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;gBAGrC,gBAAgB,EAAE,2BAA2B,EAC7C,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,gBAAgB,EAAE,MAAM,EACxB,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,YAAY,EAAE,MAAM,GAAG,SAAS;IAalC,cAAc,IAAI,qBAAqB;IAQjC,2BAA2B,IAAI,OAAO,CAAC,iBAAiB,CAAC;IA+J/D,uBAAuB,CACrB,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,GACzC,yBAAyB;CAyB7B"}
@@ -0,0 +1,132 @@
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 { extractElementNameFromPath, RuntimePointer, PackageableElementExplicitReference, } from '@finos/legend-graph';
17
+ import { StoreProjectData, LATEST_VERSION_ALIAS, } from '@finos/legend-server-depot';
18
+ import { guaranteeNonNullable, guaranteeType, uuid, } from '@finos/legend-shared';
19
+ import { DSL_DataSpace_getGraphManagerExtension, getDataSpace, retrieveAnalyticsResultCache, } from '@finos/legend-extension-dsl-data-space/graph';
20
+ import { QueryEditorStore, createViewProjectHandler, createViewSDLCProjectHandler, } from '../QueryEditorStore.js';
21
+ import { DataSpaceProjectInfo, DataSpaceQueryBuilderState, createQueryClassTaggedValue, createQueryDataSpaceTaggedValue, } from '@finos/legend-extension-dsl-data-space/application';
22
+ import { generateDataSpaceQueryCreatorRoute } from '../../__lib__/DSL_DataSpace_LegendQueryNavigation.js';
23
+ export class DataSpaceQueryCreatorStore extends QueryEditorStore {
24
+ groupId;
25
+ artifactId;
26
+ versionId;
27
+ dataSpacePath;
28
+ executionContext;
29
+ runtimePath;
30
+ classPath;
31
+ constructor(applicationStore, depotServerClient, groupId, artifactId, versionId, dataSpacePath, executionContext, runtimePath, executionKey) {
32
+ super(applicationStore, depotServerClient);
33
+ this.groupId = groupId;
34
+ this.artifactId = artifactId;
35
+ this.versionId = versionId;
36
+ this.dataSpacePath = dataSpacePath;
37
+ this.executionContext = executionContext;
38
+ this.runtimePath = runtimePath;
39
+ this.classPath = executionKey;
40
+ }
41
+ getProjectInfo() {
42
+ return {
43
+ groupId: this.groupId,
44
+ artifactId: this.artifactId,
45
+ versionId: this.versionId,
46
+ };
47
+ }
48
+ async initializeQueryBuilderState() {
49
+ const dataSpace = getDataSpace(this.dataSpacePath, this.graphManagerState.graph);
50
+ const executionContext = guaranteeNonNullable(dataSpace.executionContexts.find((context) => context.name === this.executionContext), `Can't find execution context '${this.executionContext}'`);
51
+ let dataSpaceAnalysisResult;
52
+ try {
53
+ const project = StoreProjectData.serialization.fromJson(await this.depotServerClient.getProject(this.groupId, this.artifactId));
54
+ dataSpaceAnalysisResult = await DSL_DataSpace_getGraphManagerExtension(this.graphManagerState.graphManager).retrieveDataSpaceAnalysisFromCache(() => retrieveAnalyticsResultCache(project, this.versionId, dataSpace.path, this.depotServerClient));
55
+ }
56
+ catch {
57
+ // do nothing
58
+ }
59
+ const projectInfo = new DataSpaceProjectInfo(this.groupId, this.artifactId, this.versionId, createViewProjectHandler(this.applicationStore), createViewSDLCProjectHandler(this.applicationStore, this.depotServerClient));
60
+ const sourceInfo = {
61
+ groupId: projectInfo.groupId,
62
+ artifactId: projectInfo.artifactId,
63
+ versionId: projectInfo.versionId,
64
+ dataSpace: dataSpace.path,
65
+ };
66
+ const queryBuilderState = new DataSpaceQueryBuilderState(this.applicationStore, this.graphManagerState, this.depotServerClient, dataSpace, executionContext, (dataSpaceInfo) => {
67
+ if (dataSpaceInfo.defaultExecutionContext) {
68
+ this.applicationStore.navigationService.navigator.goToLocation(generateDataSpaceQueryCreatorRoute(guaranteeNonNullable(dataSpaceInfo.groupId), guaranteeNonNullable(dataSpaceInfo.artifactId), LATEST_VERSION_ALIAS, //always default to latest
69
+ dataSpaceInfo.path, dataSpaceInfo.defaultExecutionContext, undefined, undefined));
70
+ }
71
+ else {
72
+ this.applicationStore.notificationService.notifyWarning(`Can't switch data space: default execution context not specified`);
73
+ }
74
+ }, true, dataSpaceAnalysisResult, (ec) => {
75
+ // runtime should already be set
76
+ const runtimePointer = guaranteeType(queryBuilderState.executionContextState.runtimeValue, RuntimePointer);
77
+ this.applicationStore.navigationService.navigator.updateCurrentLocation(generateDataSpaceQueryCreatorRoute(this.groupId, this.artifactId, this.versionId, dataSpace.path, ec.name, runtimePointer.packageableRuntime.value ===
78
+ queryBuilderState.executionContext.defaultRuntime.value
79
+ ? undefined
80
+ : runtimePointer.packageableRuntime.value.path, queryBuilderState.class?.path));
81
+ }, (runtimeValue) => {
82
+ const runtimePointer = guaranteeType(runtimeValue, RuntimePointer);
83
+ queryBuilderState.applicationStore.navigationService.navigator.updateCurrentLocation(generateDataSpaceQueryCreatorRoute(guaranteeNonNullable(queryBuilderState.projectInfo).groupId, guaranteeNonNullable(queryBuilderState.projectInfo).artifactId, guaranteeNonNullable(queryBuilderState.projectInfo).versionId, queryBuilderState.dataSpace.path, queryBuilderState.executionContext.name, runtimePointer.packageableRuntime.value ===
84
+ queryBuilderState.executionContext.defaultRuntime.value
85
+ ? undefined
86
+ : runtimePointer.packageableRuntime.value.path, queryBuilderState.class?.path));
87
+ }, (_class) => {
88
+ // runtime should already be set
89
+ const runtimePointer = guaranteeType(queryBuilderState.executionContextState.runtimeValue, RuntimePointer);
90
+ queryBuilderState.applicationStore.navigationService.navigator.updateCurrentLocation(generateDataSpaceQueryCreatorRoute(guaranteeNonNullable(queryBuilderState.projectInfo).groupId, guaranteeNonNullable(queryBuilderState.projectInfo).artifactId, guaranteeNonNullable(queryBuilderState.projectInfo).versionId, queryBuilderState.dataSpace.path, queryBuilderState.executionContext.name, runtimePointer.packageableRuntime.value ===
91
+ queryBuilderState.executionContext.defaultRuntime.value
92
+ ? undefined
93
+ : runtimePointer.packageableRuntime.value.path, _class.path));
94
+ }, projectInfo, this.applicationStore.config.options.queryBuilderConfig, sourceInfo);
95
+ queryBuilderState.setExecutionContext(executionContext);
96
+ queryBuilderState.propagateExecutionContextChange(executionContext);
97
+ // set runtime if already chosen
98
+ if (this.runtimePath) {
99
+ queryBuilderState.changeRuntime(new RuntimePointer(PackageableElementExplicitReference.create(this.graphManagerState.graph.getRuntime(this.runtimePath))));
100
+ }
101
+ // set class if already chosen
102
+ if (this.classPath) {
103
+ queryBuilderState.changeClass(this.graphManagerState.graph.getClass(this.classPath));
104
+ }
105
+ return queryBuilderState;
106
+ }
107
+ getPersistConfiguration(lambda, options) {
108
+ return {
109
+ defaultName: options?.update
110
+ ? `${extractElementNameFromPath(this.dataSpacePath)}`
111
+ : `New Query for ${extractElementNameFromPath(this.dataSpacePath)}[${this.executionContext}]`,
112
+ decorator: (query) => {
113
+ query.id = uuid();
114
+ query.groupId = this.groupId;
115
+ query.artifactId = this.artifactId;
116
+ query.versionId = this.versionId;
117
+ if (this.queryBuilderState?.class) {
118
+ query.taggedValues = [
119
+ createQueryDataSpaceTaggedValue(this.dataSpacePath),
120
+ createQueryClassTaggedValue(this.queryBuilderState.class.path),
121
+ ];
122
+ }
123
+ else {
124
+ query.taggedValues = [
125
+ createQueryDataSpaceTaggedValue(this.dataSpacePath),
126
+ ];
127
+ }
128
+ },
129
+ };
130
+ }
131
+ }
132
+ //# sourceMappingURL=DataSpaceQueryCreatorStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceQueryCreatorStore.js","sourceRoot":"","sources":["../../../src/stores/data-space/DataSpaceQueryCreatorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EA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AAQ,EAAE;gBAChC,KAAK,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC;gBAClB,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;gBAC7B,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;gBACnC,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;gBACjC,IAAI,IAAI,CAAC,iBAAiB,EAAE,KAAK,EAAE;oBACjC,KAAK,CAAC,YAAY,GAAG;wBACnB,+BAA+B,CAAC,IAAI,CAAC,aAAa,CAAC;wBACnD,2BAA2B,CAAC,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,IAAI,CAAC;qBAC/D,CAAC;iBACH;qBAAM;oBACL,KAAK,CAAC,YAAY,GAAG;wBACnB,+BAA+B,CAAC,IAAI,CAAC,aAAa,CAAC;qBACpD,CAAC;iBACH;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { type DepotServerClient } from '@finos/legend-server-depot';
17
+ import type { GraphManagerState, RawLambda } from '@finos/legend-graph';
18
+ import { type GenericLegendApplicationStore } from '@finos/legend-application';
19
+ import { type QueryBuilderConfig, QueryBuilderState } from '@finos/legend-query-builder';
20
+ import type { ProjectGAVCoordinates } from '@finos/legend-storage';
21
+ import { ActionState, type GeneratorFn } from '@finos/legend-shared';
22
+ import { type DataSpaceInfo } from '@finos/legend-extension-dsl-data-space/application';
23
+ import { QueryEditorStore, type QueryPersistConfiguration } from '../QueryEditorStore.js';
24
+ import { DataSpaceAdvancedSearchState } from '@finos/legend-extension-dsl-data-space/application-query';
25
+ export declare class DataSpaceQuerySetupState extends QueryBuilderState {
26
+ readonly depotServerClient: DepotServerClient;
27
+ readonly loadDataSpacesState: ActionState;
28
+ readonly onDataSpaceChange: (val: DataSpaceInfo) => void;
29
+ readonly viewProject: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void;
30
+ readonly viewSDLCProject: (groupId: string, artifactId: string, entityPath: string | undefined) => Promise<void>;
31
+ TEMPORARY__setupPanelContentRenderer: () => React.ReactNode;
32
+ dataSpaces: DataSpaceInfo[];
33
+ showRuntimeSelector: boolean;
34
+ advancedSearchState?: DataSpaceAdvancedSearchState | undefined;
35
+ constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, depotServerClient: DepotServerClient, onDataSpaceChange: (val: DataSpaceInfo) => void, viewProject: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void, viewSDLCProject: (groupId: string, artifactId: string, entityPath: string | undefined) => Promise<void>, config: QueryBuilderConfig | undefined);
36
+ get isResultPanelHidden(): boolean;
37
+ get sideBarClassName(): string | undefined;
38
+ showAdvancedSearchPanel(): void;
39
+ hideAdvancedSearchPanel(): void;
40
+ loadDataSpaces(): GeneratorFn<void>;
41
+ }
42
+ export declare class DataSpaceQuerySetupStore extends QueryEditorStore {
43
+ get isViewProjectActionDisabled(): boolean;
44
+ getProjectInfo(): ProjectGAVCoordinates;
45
+ getPersistConfiguration(lambda: RawLambda, options?: {
46
+ update?: boolean | undefined;
47
+ }): QueryPersistConfiguration;
48
+ initializeQueryBuilderState(): Promise<QueryBuilderState>;
49
+ buildGraph(): GeneratorFn<void>;
50
+ }
51
+ //# sourceMappingURL=DataSpaceQuerySetupState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceQuerySetupState.d.ts","sourceRoot":"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AAE,CAAM;IACjC,mBAAmB,UAAS;IAC5B,mBAAmB,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;gBAG7D,gBAAgB,EAAE,6BAA6B,EAC/C,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,EAC/C,WAAW,EAAE,CACX,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,GAAG,SAAS,KAC3B,IAAI,EACT,eAAe,EAAE,CACf,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GAAG,SAAS,KAC3B,OAAO,CAAC,IAAI,CAAC,EAClB,MAAM,EAAE,kBAAkB,GAAG,SAAS;IAkBxC,IAAa,mBAAmB,IAAI,OAAO,CAE1C;IAED,IAAa,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAElD;IAED,uBAAuB,IAAI,IAAI;IAY/B,uBAAuB,IAAI,IAAI;IAI9B,cAAc,IAAI,WAAW,CAAC,IAAI,CAAC;CAkBrC;AAED,qBAAa,wBAAyB,SAAQ,gBAAgB;IAC5D,IAAa,2BAA2B,IAAI,OAAO,CAElD;IAED,cAAc,IAAI,qBAAqB;IAIvC,uBAAuB,CACrB,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,GACzC,yBAAyB;IAItB,2BAA2B,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAmCrD,UAAU,IAAI,WAAW,CAAC,IAAI,CAAC;CAG1C"}
@@ -0,0 +1,107 @@
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 { DepotScope, LATEST_VERSION_ALIAS, } from '@finos/legend-server-depot';
17
+ import {} from '@finos/legend-application';
18
+ import { action, flow, makeObservable, observable } from 'mobx';
19
+ import { QueryBuilderState, } from '@finos/legend-query-builder';
20
+ import { ActionState, assertErrorThrown, guaranteeNonNullable, UnsupportedOperationError, } from '@finos/legend-shared';
21
+ import { extractDataSpaceInfo, } from '@finos/legend-extension-dsl-data-space/application';
22
+ import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH } from '@finos/legend-extension-dsl-data-space/graph';
23
+ import { QueryEditorStore, createViewProjectHandler, createViewSDLCProjectHandler, } from '../QueryEditorStore.js';
24
+ import { generateDataSpaceQueryCreatorRoute } from '../../__lib__/DSL_DataSpace_LegendQueryNavigation.js';
25
+ import { renderDataSpaceQuerySetupSetupPanelContent } from '../../components/data-space/DataSpaceQuerySetup.js';
26
+ import { DataSpaceAdvancedSearchState } from '@finos/legend-extension-dsl-data-space/application-query';
27
+ export class DataSpaceQuerySetupState extends QueryBuilderState {
28
+ depotServerClient;
29
+ loadDataSpacesState = ActionState.create();
30
+ onDataSpaceChange;
31
+ viewProject;
32
+ viewSDLCProject;
33
+ TEMPORARY__setupPanelContentRenderer = () => renderDataSpaceQuerySetupSetupPanelContent(this);
34
+ dataSpaces = [];
35
+ showRuntimeSelector = false;
36
+ advancedSearchState;
37
+ constructor(applicationStore, graphManagerState, depotServerClient, onDataSpaceChange, viewProject, viewSDLCProject, config) {
38
+ super(applicationStore, graphManagerState, config);
39
+ makeObservable(this, {
40
+ dataSpaces: observable,
41
+ advancedSearchState: observable,
42
+ showAdvancedSearchPanel: action,
43
+ hideAdvancedSearchPanel: action,
44
+ loadDataSpaces: flow,
45
+ });
46
+ this.depotServerClient = depotServerClient;
47
+ this.onDataSpaceChange = onDataSpaceChange;
48
+ this.viewProject = viewProject;
49
+ this.viewSDLCProject = viewSDLCProject;
50
+ }
51
+ get isResultPanelHidden() {
52
+ return true;
53
+ }
54
+ get sideBarClassName() {
55
+ return 'query-builder__setup__data-space-setup';
56
+ }
57
+ showAdvancedSearchPanel() {
58
+ this.advancedSearchState = new DataSpaceAdvancedSearchState(this.applicationStore, this.graphManagerState, this.depotServerClient, {
59
+ viewProject: this.viewProject,
60
+ viewSDLCProject: this.viewSDLCProject,
61
+ });
62
+ }
63
+ hideAdvancedSearchPanel() {
64
+ this.advancedSearchState = undefined;
65
+ }
66
+ *loadDataSpaces() {
67
+ this.loadDataSpacesState.inProgress();
68
+ try {
69
+ this.dataSpaces = (yield this.depotServerClient.getEntitiesByClassifier(DATA_SPACE_ELEMENT_CLASSIFIER_PATH, {
70
+ scope: DepotScope.RELEASES,
71
+ })).map((storedEntity) => extractDataSpaceInfo(storedEntity, false));
72
+ this.loadDataSpacesState.pass();
73
+ }
74
+ catch (error) {
75
+ assertErrorThrown(error);
76
+ this.loadDataSpacesState.fail();
77
+ this.applicationStore.notificationService.notifyError(error);
78
+ }
79
+ }
80
+ }
81
+ export class DataSpaceQuerySetupStore extends QueryEditorStore {
82
+ get isViewProjectActionDisabled() {
83
+ return true;
84
+ }
85
+ getProjectInfo() {
86
+ throw new UnsupportedOperationError();
87
+ }
88
+ getPersistConfiguration(lambda, options) {
89
+ throw new UnsupportedOperationError();
90
+ }
91
+ async initializeQueryBuilderState() {
92
+ const queryBuilderState = new DataSpaceQuerySetupState(this.applicationStore, this.graphManagerState, this.depotServerClient, (dataSpaceInfo) => {
93
+ if (dataSpaceInfo.defaultExecutionContext) {
94
+ this.applicationStore.navigationService.navigator.goToLocation(generateDataSpaceQueryCreatorRoute(guaranteeNonNullable(dataSpaceInfo.groupId), guaranteeNonNullable(dataSpaceInfo.artifactId), LATEST_VERSION_ALIAS, //always default to latest
95
+ dataSpaceInfo.path, dataSpaceInfo.defaultExecutionContext, undefined, undefined));
96
+ }
97
+ else {
98
+ this.applicationStore.notificationService.notifyWarning(`Can't switch data space: default execution context not specified`);
99
+ }
100
+ }, createViewProjectHandler(this.applicationStore), createViewSDLCProjectHandler(this.applicationStore, this.depotServerClient), this.applicationStore.config.options.queryBuilderConfig);
101
+ return queryBuilderState;
102
+ }
103
+ *buildGraph() {
104
+ // do nothing
105
+ }
106
+ }
107
+ //# sourceMappingURL=DataSpaceQuerySetupState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceQuerySetupState.js","sourceRoot":"","sources":["../../../src/stores/data-space/DataSpaceQuerySetupState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,UAAU,EACV,oBAAoB,GAGrB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAsC,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAEL,iBAAiB,GAClB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACpB,yBAAyB,GAE1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,oBAAoB,GAErB,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAClG,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,4BAA4B,GAE7B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kCAAkC,EAAE,MAAM,sDAAsD,CAAC;AAC1G,OAAO,EAAE,0CAA0C,EAAE,MAAM,oDAAoD,CAAC;AAChH,OAAO,EAAE,4BAA4B,EAAE,MAAM,0DAA0D,CAAC;AAExG,MAAM,OAAO,wBAAyB,SAAQ,iBAAiB;IACpD,iBA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,aAAa,CAAC,UAAU,CAAC,EAC9C,oBAAoB,EAAE,0BAA0B;gBAChD,aAAa,CAAC,IAAI,EAClB,aAAa,CAAC,uBAAuB,EACrC,SAAS,EACT,SAAS,CACV,CACF,CAAC;aACH;iBAAM;gBACL,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,aAAa,CACrD,kEAAkE,CACnE,CAAC;aACH;QACH,CAAC,EACD,wBAAwB,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAC/C,4BAA4B,CAC1B,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,iBAAiB,CACvB,EACD,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,OAAO,CAAC,kBAAkB,CACxD,CAAC;QAEF,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAEQ,CAAC,UAAU;QAClB,aAAa;IACf,CAAC;CACF"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { type RawLambda } from '@finos/legend-graph';
17
+ import { type DepotServerClient } from '@finos/legend-server-depot';
18
+ import type { QueryBuilderState } from '@finos/legend-query-builder';
19
+ import type { ProjectGAVCoordinates } from '@finos/legend-storage';
20
+ import { QueryEditorStore, type QueryPersistConfiguration } from '../QueryEditorStore.js';
21
+ import type { LegendQueryApplicationStore } from '../LegendQueryBaseStore.js';
22
+ export declare class DataSpaceTemplateQueryCreatorStore extends QueryEditorStore {
23
+ readonly groupId: string;
24
+ readonly artifactId: string;
25
+ readonly versionId: string;
26
+ readonly dataSpacePath: string;
27
+ readonly templateQueryId: string;
28
+ templateQueryTitle?: string;
29
+ constructor(applicationStore: LegendQueryApplicationStore, depotServerClient: DepotServerClient, groupId: string, artifactId: string, versionId: string, dataSpacePath: string, templateQueryId: string);
30
+ getProjectInfo(): ProjectGAVCoordinates;
31
+ initializeQueryBuilderState(): Promise<QueryBuilderState>;
32
+ getPersistConfiguration(lambda: RawLambda, options?: {
33
+ update?: boolean | undefined;
34
+ }): QueryPersistConfiguration;
35
+ }
36
+ //# sourceMappingURL=DataSpaceTemplateQueryCreatorStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceTemplateQueryCreatorStore.d.ts","sourceRoot":"","sources":["../../../src/stores/data-space/DataSpaceTemplateQueryCreatorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,KAAK,SAAS,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EACL,gBAAgB,EAGhB,KAAK,yBAAyB,EAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAiB9E,qBAAa,kCAAmC,SAAQ,gBAAgB;IACtE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;gBAG1B,gBAAgB,EAAE,2BAA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