@finos/legend-extension-dsl-data-space 3.0.3 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/lib/components/DataSpaceViewer.d.ts.map +1 -1
  2. package/lib/components/DataSpaceViewer.js +5 -6
  3. package/lib/components/DataSpaceViewer.js.map +1 -1
  4. package/lib/components/query/DataSpaceQuerySetup.js +3 -3
  5. package/lib/components/query/DataSpaceQuerySetup.js.map +1 -1
  6. package/lib/components/studio/DSLDataSpace_CodeSnippets.d.ts +1 -1
  7. package/lib/components/studio/DSLDataSpace_CodeSnippets.d.ts.map +1 -1
  8. package/lib/components/studio/DSLDataSpace_CodeSnippets.js +0 -3
  9. package/lib/components/studio/DSLDataSpace_CodeSnippets.js.map +1 -1
  10. package/lib/components/studio/DSLDataSpace_LegendStudioDocumentation.d.ts +0 -2
  11. package/lib/components/studio/DSLDataSpace_LegendStudioDocumentation.d.ts.map +1 -1
  12. package/lib/components/studio/DSLDataSpace_LegendStudioDocumentation.js +0 -14
  13. package/lib/components/studio/DSLDataSpace_LegendStudioDocumentation.js.map +1 -1
  14. package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.d.ts +1 -2
  15. package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.d.ts.map +1 -1
  16. package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.js +11 -13
  17. package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.js.map +1 -1
  18. package/lib/index.css +2 -2
  19. package/lib/index.css.map +1 -1
  20. package/lib/index.d.ts +2 -1
  21. package/lib/index.d.ts.map +1 -1
  22. package/lib/index.js +2 -1
  23. package/lib/index.js.map +1 -1
  24. package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.d.ts +5 -7
  25. package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.d.ts.map +1 -1
  26. package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js +4 -10
  27. package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js.map +1 -1
  28. package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts +1 -36
  29. package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -1
  30. package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js +9 -93
  31. package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js.map +1 -1
  32. package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.d.ts +0 -3
  33. package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.d.ts.map +1 -1
  34. package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js +0 -6
  35. package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js.map +1 -1
  36. package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts.map +1 -1
  37. package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js +2 -5
  38. package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js.map +1 -1
  39. package/lib/package.json +6 -6
  40. package/lib/stores/DataSpaceViewerState.d.ts +8 -8
  41. package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
  42. package/lib/stores/DataSpaceViewerState.js +9 -9
  43. package/lib/stores/DataSpaceViewerState.js.map +1 -1
  44. package/lib/stores/query/DataSpaceQuerySetupState.d.ts +6 -12
  45. package/lib/stores/query/DataSpaceQuerySetupState.d.ts.map +1 -1
  46. package/lib/stores/query/DataSpaceQuerySetupState.js +10 -17
  47. package/lib/stores/query/DataSpaceQuerySetupState.js.map +1 -1
  48. package/package.json +16 -16
  49. package/src/components/DataSpaceViewer.tsx +18 -47
  50. package/src/components/query/DataSpaceQuerySetup.tsx +5 -5
  51. package/src/components/studio/DSLDataSpace_CodeSnippets.ts +0 -3
  52. package/src/components/studio/DSLDataSpace_LegendStudioDocumentation.ts +0 -20
  53. package/src/components/studio/DSLDataSpace_LegendStudioPlugin.tsx +19 -23
  54. package/src/index.ts +2 -1
  55. package/src/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.ts +14 -12
  56. package/src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts +15 -170
  57. package/src/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.ts +0 -6
  58. package/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts +2 -4
  59. package/src/stores/DataSpaceViewerState.ts +18 -18
  60. package/src/stores/query/DataSpaceQuerySetupState.ts +30 -61
@@ -16,12 +16,12 @@
16
16
  import packageJson from '../../../../package.json';
17
17
  import V1_SYSTEM_MODELS from './v1/V1_DSLDataSpace_SystemModels.json';
18
18
  import { V1_DataSpace, V1_DataSpaceExecutionContext, V1_DataSpaceSupportEmail, } from './v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js';
19
- import { uuid, guaranteeNonEmptyString, guaranteeNonNullable, UnsupportedOperationError, isNonNullable, assertType, } from '@finos/legend-shared';
19
+ import { guaranteeNonEmptyString, guaranteeNonNullable, UnsupportedOperationError, isNonNullable, assertType, } from '@finos/legend-shared';
20
20
  import { deserialize, serialize } from 'serializr';
21
21
  import { V1_dataSpaceModelSchema, V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE, } from './v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js';
22
22
  import { getOwnDataSpace } from '../../../graphManager/DSLDataSpace_GraphManagerHelper.js';
23
23
  import { DataSpace, DataSpaceExecutionContext, DataSpaceSupportEmail, } from '../../metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
24
- import { V1_taggedValueSchema, PackageableElementExplicitReference, V1_PackageableElementPointer, PackageableElementPointerType, V1_buildTaggedValue, V1_transformStereotype, V1_transformTaggedValue, PureProtocolProcessorPlugin, V1_ElementBuilder, V1_initPackageableElement, V1_StereotypePtr, V1_buildFullPath, } from '@finos/legend-graph';
24
+ import { V1_taggedValueSchema, PackageableElementExplicitReference, V1_PackageableElementPointer, PackageableElementPointerType, V1_buildTaggedValue, V1_transformStereotype, V1_transformTaggedValue, PureProtocolProcessorPlugin, V1_ElementBuilder, V1_initPackageableElement, V1_buildFullPath, } from '@finos/legend-graph';
25
25
  import { V1_DSLDiagram_PackageableElementPointerType, getDiagram, } from '@finos/legend-extension-dsl-diagram';
26
26
  export const DATA_SPACE_ELEMENT_CLASSIFIER_PATH = 'meta::pure::metamodel::dataSpace::DataSpace';
27
27
  export class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProcessorPlugin {
@@ -50,22 +50,20 @@ export class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProces
50
50
  element.taggedValues = elementProtocol.taggedValues
51
51
  .map((taggedValue) => V1_buildTaggedValue(taggedValue, context))
52
52
  .filter(isNonNullable);
53
- element.groupId = guaranteeNonEmptyString(elementProtocol.groupId, `Data space 'groupId' field is missing or empty`);
54
- element.artifactId = guaranteeNonEmptyString(elementProtocol.artifactId, `Data space 'artifactId' field is missing or empty`);
55
- element.versionId = guaranteeNonEmptyString(elementProtocol.versionId, `Data space 'versionId' field is missing or empty`);
56
53
  element.executionContexts = guaranteeNonNullable(elementProtocol.executionContexts, `Data space 'executionContexts' field is missing`).map((contextProtocol) => {
57
54
  const execContext = new DataSpaceExecutionContext();
58
55
  execContext.name = guaranteeNonEmptyString(contextProtocol.name, `Data space execution context 'name' field is missing or empty`);
59
56
  execContext.description = contextProtocol.description;
60
- execContext.mapping = guaranteeNonNullable(contextProtocol.mapping, `Data space execution context 'mapping' field is missing or empty`).path;
61
- execContext.defaultRuntime = guaranteeNonNullable(contextProtocol.defaultRuntime, `Data space execution context 'defaultRuntime' field is missing or empty`).path;
57
+ execContext.mapping = PackageableElementExplicitReference.create(context.graph.getMapping(contextProtocol.mapping.path));
58
+ execContext.defaultRuntime =
59
+ PackageableElementExplicitReference.create(context.graph.getRuntime(contextProtocol.defaultRuntime.path));
62
60
  return execContext;
63
61
  });
64
62
  element.defaultExecutionContext = guaranteeNonNullable(element.executionContexts.find((execContext) => execContext.name ===
65
63
  guaranteeNonEmptyString(elementProtocol.defaultExecutionContext, `Data space 'defaultExecutionContext' field is missing or empty`)), `Can't find default execution context '${elementProtocol.defaultExecutionContext}'`);
66
64
  element.description = elementProtocol.description;
67
65
  if (elementProtocol.featuredDiagrams) {
68
- element.featuredDiagrams = elementProtocol.featuredDiagrams.map((pointer) => pointer.path);
66
+ element.featuredDiagrams = elementProtocol.featuredDiagrams.map((pointer) => PackageableElementExplicitReference.create(getDiagram(pointer.path, context.graph)));
69
67
  }
70
68
  if (elementProtocol.supportInfo) {
71
69
  if (elementProtocol.supportInfo instanceof V1_DataSpaceSupportEmail) {
@@ -122,21 +120,18 @@ export class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProces
122
120
  V1_initPackageableElement(protocol, metamodel);
123
121
  protocol.stereotypes = metamodel.stereotypes.map(V1_transformStereotype);
124
122
  protocol.taggedValues = metamodel.taggedValues.map(V1_transformTaggedValue);
125
- protocol.groupId = metamodel.groupId;
126
- protocol.artifactId = metamodel.artifactId;
127
- protocol.versionId = metamodel.versionId;
128
123
  protocol.executionContexts = metamodel.executionContexts.map((execContext) => {
129
124
  const contextProtocol = new V1_DataSpaceExecutionContext();
130
125
  contextProtocol.name = execContext.name;
131
126
  contextProtocol.description = execContext.description;
132
- contextProtocol.mapping = new V1_PackageableElementPointer(PackageableElementPointerType.MAPPING, execContext.mapping);
133
- contextProtocol.defaultRuntime = new V1_PackageableElementPointer(PackageableElementPointerType.RUNTIME, execContext.defaultRuntime);
127
+ contextProtocol.mapping = new V1_PackageableElementPointer(PackageableElementPointerType.MAPPING, execContext.mapping.valueForSerialization ?? '');
128
+ contextProtocol.defaultRuntime = new V1_PackageableElementPointer(PackageableElementPointerType.RUNTIME, execContext.defaultRuntime.valueForSerialization ?? '');
134
129
  return contextProtocol;
135
130
  });
136
131
  protocol.defaultExecutionContext =
137
132
  metamodel.defaultExecutionContext.name;
138
133
  protocol.description = metamodel.description;
139
- protocol.featuredDiagrams = metamodel.featuredDiagrams.map((diagramPath) => new V1_PackageableElementPointer(V1_DSLDiagram_PackageableElementPointerType, diagramPath));
134
+ protocol.featuredDiagrams = metamodel.featuredDiagrams?.map((diagramPath) => new V1_PackageableElementPointer(V1_DSLDiagram_PackageableElementPointerType, diagramPath.valueForSerialization ?? ''));
140
135
  if (metamodel.supportInfo) {
141
136
  if (metamodel.supportInfo instanceof DataSpaceSupportEmail) {
142
137
  const supportEmail = new V1_DataSpaceSupportEmail();
@@ -147,7 +142,6 @@ export class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProces
147
142
  throw new UnsupportedOperationError(`Can't transform data space support info`, metamodel.supportInfo);
148
143
  }
149
144
  }
150
- // protocol.supportInfo = metamodel.supportInfo;
151
145
  return protocol;
152
146
  }
153
147
  return undefined;
@@ -155,84 +149,6 @@ export class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProces
155
149
  ];
156
150
  }
157
151
  }
158
- export class ResolvedDataSpaceExecutionContext {
159
- name;
160
- description;
161
- mapping;
162
- defaultRuntime;
163
- }
164
- /**
165
- * When we actually need to use the data space, we want to resolve all of its
166
- * element pointers to actual reference, hence this model.
167
- */
168
- export class ResolvedDataSpace {
169
- taggedValues = [];
170
- stereotypes = [];
171
- path;
172
- groupId;
173
- artifactId;
174
- versionId;
175
- executionContexts = [];
176
- defaultExecutionContext;
177
- featuredDiagrams = [];
178
- description;
179
- supportInfo;
180
- }
181
- export const getResolvedDataSpace = (json, graph) => {
182
- const dataSpace = new ResolvedDataSpace();
183
- if (json._type === V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE) {
184
- const protocol = deserialize(V1_dataSpaceModelSchema, json);
185
- dataSpace.path = protocol.path;
186
- if (Array.isArray(json.taggedValues)) {
187
- dataSpace.taggedValues = json.taggedValues
188
- .map((taggedValueJson) => deserialize(V1_taggedValueSchema, taggedValueJson))
189
- .map((taggedValue) => ({
190
- uuid: uuid(),
191
- profile: taggedValue.tag.profile,
192
- tag: taggedValue.tag.value,
193
- value: taggedValue.value,
194
- }));
195
- }
196
- if (Array.isArray(json.stereotypes)) {
197
- dataSpace.stereotypes = json.stereotypes
198
- .map((stereotypePtrJson) => deserialize(V1_StereotypePtr, stereotypePtrJson))
199
- .map((stereotypePtr) => ({
200
- uuid: uuid(),
201
- profile: stereotypePtr.profile,
202
- stereotype: stereotypePtr.value,
203
- }));
204
- }
205
- dataSpace.groupId = guaranteeNonEmptyString(protocol.groupId, `Data space 'groupId' field is missing or empty`);
206
- dataSpace.artifactId = guaranteeNonEmptyString(protocol.artifactId, `Data space 'artifactId' field is missing or empty`);
207
- dataSpace.versionId = guaranteeNonEmptyString(protocol.versionId, `Data space 'versionId' field is missing or empty`);
208
- dataSpace.executionContexts = protocol.executionContexts.map((contextProtocol) => {
209
- const context = new ResolvedDataSpaceExecutionContext();
210
- context.name = guaranteeNonEmptyString(contextProtocol.name, `Data space execution context 'name' field is missing or empty`);
211
- context.description = contextProtocol.description;
212
- context.mapping = PackageableElementExplicitReference.create(graph.getMapping(contextProtocol.mapping.path));
213
- context.defaultRuntime = PackageableElementExplicitReference.create(graph.getRuntime(contextProtocol.defaultRuntime.path));
214
- return context;
215
- });
216
- dataSpace.defaultExecutionContext = guaranteeNonNullable(dataSpace.executionContexts.find((context) => context.name ===
217
- guaranteeNonEmptyString(protocol.defaultExecutionContext, `Data space 'defaultExecutionContext' field is missing or empty`)), `Can't find default execution context '${protocol.defaultExecutionContext}'`);
218
- dataSpace.description = protocol.description;
219
- if (protocol.featuredDiagrams) {
220
- dataSpace.featuredDiagrams = protocol.featuredDiagrams.map((pointer) => PackageableElementExplicitReference.create(getDiagram(pointer.path, graph)));
221
- }
222
- if (protocol.supportInfo) {
223
- if (protocol.supportInfo instanceof V1_DataSpaceSupportEmail) {
224
- const supportEmail = new DataSpaceSupportEmail();
225
- supportEmail.address = guaranteeNonEmptyString(protocol.supportInfo.address, `Data space support email 'address' field is missing or empty`);
226
- dataSpace.supportInfo = supportEmail;
227
- }
228
- else {
229
- throw new UnsupportedOperationError(`Can't build data space support info`, protocol.supportInfo);
230
- }
231
- }
232
- return dataSpace;
233
- }
234
- throw new UnsupportedOperationError(`Can't resolve data space`, json);
235
- };
236
152
  export const extractDataSpaceTaxonomyNodes = (json) => {
237
153
  const ENTERPRISE_PROFILE_PATH = `meta::pure::profiles::enterprise`;
238
154
  const TAXONOMY_NODES_TAG = `taxonomyNodes`;
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDataSpace_PureProtocolProcessorPlugin.js","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,gBAAgB,MAAM,wCAAwC,CAAC;AACtE,OAAO,EACL,YAAY,EACZ,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,uEAAuE,CAAC;AAC/E,OAAO,EAEL,IAAI,EACJ,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,aAAa,EACb,UAAU,GACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EACL,uBAAuB,EACvB,mCAAmC,GACpC,MAAM,oEAAoE,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,0DAA0D,CAAC;AAC3F,OAAO,EAEL,SAAS,EACT,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,qFAAqF,CAAC;AA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,YAAY,GAChB,IAAI,CAAC,YACN,CAAC,GAAG,CAAC,CAAC,eAAe,EAAE,EAAE,CACxB,WAAW,CAAC,oBAAoB,EAAE,eAAe,CAAC,CACnD,CAAC;YACF,YAAY;iBACT,MAAM,CACL,CAAC,WAAW,EAAE,EAAE,CACd,WAAW,CAAC,GAAG,CAAC,OAAO,KAAK,uBAAuB;gBACnD,WAAW,CAAC,GAAG,CAAC,KAAK,KAAK,kBAAkB,CAC/C;iBACA,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE;gBACvB,WAAW,CAAC,KAAK;qBACd,KAAK,CAAC,kCAAkC,CAAC;qBACzC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;qBAC5B,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;qBACjC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;YAClD,CAAC,CAAC,CAAC;SACN;KACF;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC;AAC5C,CAAC,CAAC"}
1
+ {"version":3,"file":"DSLDataSpace_PureProtocolProcessorPlugin.js","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,gBAAgB,MAAM,wCAAwC,CAAC;AACtE,OAAO,EACL,YAAY,EACZ,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,uEAAuE,CAAC;AAC/E,OAAO,EAEL,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,aAAa,EACb,UAAU,GACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,SAAS,EA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AC;IAE/C,MAAM,aAAa,GAAG,IAAI,GAAG,EAAU,CAAC;IACxC,IAAI,IAAI,CAAC,KAAK,KAAK,mCAAmC,EAAE;QACtD,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE;YACpC,MAAM,YAAY,GAChB,IAAI,CAAC,YACN,CAAC,GAAG,CAAC,CAAC,eAAe,EAAE,EAAE,CACxB,WAAW,CAAC,oBAAoB,EAAE,eAAe,CAAC,CACnD,CAAC;YACF,YAAY;iBACT,MAAM,CACL,CAAC,WAAW,EAAE,EAAE,CACd,WAAW,CAAC,GAAG,CAAC,OAAO,KAAK,uBAAuB;gBACnD,WAAW,CAAC,GAAG,CAAC,KAAK,KAAK,kBAAkB,CAC/C;iBACA,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE;gBACvB,WAAW,CAAC,KAAK;qBACd,KAAK,CAAC,kCAAkC,CAAC;qBACzC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;qBAC5B,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;qBACjC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;YAClD,CAAC,CAAC,CAAC;SACN;KACF;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC;AAC5C,CAAC,CAAC"}
@@ -32,9 +32,6 @@ export declare class V1_DataSpaceExecutionContext implements Hashable {
32
32
  export declare class V1_DataSpace extends V1_PackageableElement implements Hashable {
33
33
  stereotypes: V1_StereotypePtr[];
34
34
  taggedValues: V1_TaggedValue[];
35
- groupId: string;
36
- artifactId: string;
37
- versionId: string;
38
35
  executionContexts: V1_DataSpaceExecutionContext[];
39
36
  defaultExecutionContext: string;
40
37
  featuredDiagrams?: V1_PackageableElementPointer[] | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"V1_DSLDataSpace_DataSpace.d.ts","sourceRoot":"","sources":["../../../../../../../../src/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EACL,qBAAqB,EACrB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACpB,MAAM,qBAAqB,CAAC;AAE7B,8BAAsB,uBAAwB,YAAW,QAAQ;IAC/D,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;CACjC;AAED,qBAAa,wBACX,SAAQ,uBACR,YAAW,QAAQ;IAEnB,OAAO,EAAG,MAAM,CAAC;IAEjB,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF;AAED,qBAAa,4BAA6B,YAAW,QAAQ;IAC3D,IAAI,EAAG,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,OAAO,EAAG,4BAA4B,CAAC;IACvC,cAAc,EAAG,4BAA4B,CAAC;IAE9C,IAAI,QAAQ,IAAI,MAAM,CAQrB;CACF;AAED,qBAAa,YAAa,SAAQ,qBAAsB,YAAW,QAAQ;IACzE,WAAW,EAAE,gBAAgB,EAAE,CAAM;IACrC,YAAY,EAAE,cAAc,EAAE,CAAM;IACpC,OAAO,EAAG,MAAM,CAAC;IACjB,UAAU,EAAG,MAAM,CAAC;IACpB,SAAS,EAAG,MAAM,CAAC;IACnB,iBAAiB,EAAG,4BAA4B,EAAE,CAAC;IACnD,uBAAuB,EAAG,MAAM,CAAC;IACjC,gBAAgB,CAAC,EAAE,4BAA4B,EAAE,GAAG,SAAS,CAAC;IAC9D,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAElD,IAAa,QAAQ,IAAI,MAAM,CAc9B;IAED,gCAAgC,CAAC,CAAC,EAChC,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC,GACvC,CAAC;CAGL"}
1
+ {"version":3,"file":"V1_DSLDataSpace_DataSpace.d.ts","sourceRoot":"","sources":["../../../../../../../../src/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EACL,qBAAqB,EACrB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACpB,MAAM,qBAAqB,CAAC;AAE7B,8BAAsB,uBAAwB,YAAW,QAAQ;IAC/D,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;CACjC;AAED,qBAAa,wBACX,SAAQ,uBACR,YAAW,QAAQ;IAEnB,OAAO,EAAG,MAAM,CAAC;IAEjB,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF;AAED,qBAAa,4BAA6B,YAAW,QAAQ;IAC3D,IAAI,EAAG,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,OAAO,EAAG,4BAA4B,CAAC;IACvC,cAAc,EAAG,4BAA4B,CAAC;IAE9C,IAAI,QAAQ,IAAI,MAAM,CAQrB;CACF;AAED,qBAAa,YAAa,SAAQ,qBAAsB,YAAW,QAAQ;IACzE,WAAW,EAAE,gBAAgB,EAAE,CAAM;IACrC,YAAY,EAAE,cAAc,EAAE,CAAM;IACpC,iBAAiB,EAAG,4BAA4B,EAAE,CAAC;IACnD,uBAAuB,EAAG,MAAM,CAAC;IACjC,gBAAgB,CAAC,EAAE,4BAA4B,EAAE,GAAG,SAAS,CAAC;IAC9D,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAElD,IAAa,QAAQ,IAAI,MAAM,CAW9B;IAED,gCAAgC,CAAC,CAAC,EAChC,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC,GACvC,CAAC;CAGL"}
@@ -45,9 +45,6 @@ export class V1_DataSpaceExecutionContext {
45
45
  export class V1_DataSpace extends V1_PackageableElement {
46
46
  stereotypes = [];
47
47
  taggedValues = [];
48
- groupId;
49
- artifactId;
50
- versionId;
51
48
  executionContexts;
52
49
  defaultExecutionContext;
53
50
  featuredDiagrams;
@@ -58,9 +55,6 @@ export class V1_DataSpace extends V1_PackageableElement {
58
55
  DATA_SPACE_HASH_STRUCTURE.DATA_SPACE,
59
56
  hashArray(this.stereotypes),
60
57
  hashArray(this.taggedValues),
61
- this.groupId,
62
- this.artifactId,
63
- this.versionId,
64
58
  hashArray(this.executionContexts),
65
59
  this.defaultExecutionContext,
66
60
  hashArray((this.featuredDiagrams ?? []).map((pointer) => pointer.path)),
@@ -1 +1 @@
1
- {"version":3,"file":"V1_DSLDataSpace_DataSpace.js","sourceRoot":"","sources":["../../../../../../../../src/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,EACL,qBAAqB,GAKtB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,OAAgB,uBAAuB;CAE5C;AAED,MAAM,OAAO,wBACX,SAAQ,uBAAuB;IAG/B,OAAO,CAAU;IAEjB,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,yBAAyB,CAAC,wBAAwB;YAClD,IAAI,CAAC,OAAO;SACb,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,4B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":"V1_DSLDataSpace_DataSpace.js","sourceRoot":"","sources":["../../../../../../../../src/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,EACL,qBAAqB,GAKtB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,OAAgB,uBAAuB;CAE5C;AAED,MAAM,OAAO,wBACX,SAAQ,uBAAuB;IAG/B,OAAO,CAAU;IAEjB,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,yBAAyB,CAAC,wBAAwB;YAClD,IAAI,CAAC,OAAO;SACb,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,4BAA4B;IACvC,IAAI,CAAU;IACd,WAAW,CAAsB;IACjC,OAAO,CAAgC;IACvC,cAAc,CAAgC;IAE9C,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,yBAAyB,CAAC,4BAA4B;YACtD,IAAI,CAAC,IAAI;YACT,IAAI,CAAC,WAAW,IAAI,EAAE;YACtB,IAAI,CAAC,OAAO,CAAC,IAAI;YACjB,IAAI,CAAC,cAAc,CAAC,IAAI;SACzB,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,YAAa,SAAQ,qBAAqB;IACrD,WAAW,GAAuB,EAAE,CAAC;IACrC,YAAY,GAAqB,EAAE,CAAC;IACpC,iBAAiB,CAAkC;IACnD,uBAAuB,CAAU;IACjC,gBAAgB,CAA8C;IAC9D,WAAW,CAAsB;IACjC,WAAW,CAAuC;IAElD,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,yBAAyB,CAAC,UAAU;YACpC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC;YAC3B,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC;YAC5B,SAAS,CAAC,IAAI,CAAC,iBAAiB,CAAC;YACjC,IAAI,CAAC,uBAAuB;YAC5B,SAAS,CAAC,CAAC,IAAI,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACvE,IAAI,CAAC,WAAW,IAAI,EAAE;YACtB,IAAI,CAAC,WAAW,IAAI,EAAE;SACvB,CAAC,CAAC;IACL,CAAC;IAED,gCAAgC,CAC9B,OAAwC;QAExC,OAAO,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"V1_DSLDataSpace_ProtocolHelper.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA0BH,OAAO,EAEL,YAAY,EAGb,MAAM,wEAAwE,CAAC;AAEhF,eAAO,MAAM,mCAAmC,cAAc,CAAC;AAC/D,eAAO,MAAM,gCAAgC,UAAU,CAAC;AAgDxD,eAAO,MAAM,uBAAuB,+CAiElC,CAAC"}
1
+ {"version":3,"file":"V1_DSLDataSpace_ProtocolHelper.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA2BH,OAAO,EAEL,YAAY,EAGb,MAAM,wEAAwE,CAAC;AAEhF,eAAO,MAAM,mCAAmC,cAAc,CAAC;AAC/D,eAAO,MAAM,gCAAgC,UAAU,CAAC;AAgDxD,eAAO,MAAM,uBAAuB,+CA8DlC,CAAC"}
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { createModelSchema, custom, deserialize, list, object, optional, primitive, serialize, SKIP, } from 'serializr';
17
17
  import { V1_stereotypePtrSchema, V1_taggedValueSchema, V1_packageableElementPointerDeserializerSchema, } from '@finos/legend-graph';
18
- import { deserializeArray, serializeArray, UnsupportedOperationError, usingConstantValueSchema, usingModelSchema, } from '@finos/legend-shared';
18
+ import { deserializeArray, serializeArray, UnsupportedOperationError, usingConstantValueSchema, usingModelSchema, optionalCustom, } from '@finos/legend-shared';
19
19
  import { V1_DataSpace, V1_DataSpaceExecutionContext, V1_DataSpaceSupportEmail, } from '../../model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js';
20
20
  export const V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE = 'dataSpace';
21
21
  export const V1_DATA_SPACE_SUPPORT_EMAIL_TYPE = 'email';
@@ -52,17 +52,15 @@ const V1_deserializeSupportInfo = (json) => {
52
52
  };
53
53
  export const V1_dataSpaceModelSchema = createModelSchema(V1_DataSpace, {
54
54
  _type: usingConstantValueSchema(V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE),
55
- artifactId: primitive(),
56
55
  defaultExecutionContext: primitive(),
57
56
  description: optional(primitive()),
58
57
  executionContexts: list(object(V1_dataSpaceExecutionContextModelSchema)),
59
- featuredDiagrams: custom((values) => serializeArray(values, (value) => serialize(V1_packageableElementPointerDeserializerSchema, value), {
58
+ featuredDiagrams: optionalCustom((values) => serializeArray(values, (value) => serialize(V1_packageableElementPointerDeserializerSchema, value), {
60
59
  skipIfEmpty: true,
61
60
  INTERNAL__forceReturnEmptyInTest: true,
62
61
  }), (values) => deserializeArray(values, (value) => deserialize(V1_packageableElementPointerDeserializerSchema, value), {
63
62
  skipIfEmpty: false,
64
63
  })),
65
- groupId: primitive(),
66
64
  name: primitive(),
67
65
  package: primitive(),
68
66
  stereotypes: custom((values) => serializeArray(values, (value) => serialize(V1_stereotypePtrSchema, value), {
@@ -78,6 +76,5 @@ export const V1_dataSpaceModelSchema = createModelSchema(V1_DataSpace, {
78
76
  }), (values) => deserializeArray(values, (v) => deserialize(V1_taggedValueSchema, v), {
79
77
  skipIfEmpty: false,
80
78
  })),
81
- versionId: primitive(),
82
79
  });
83
80
  //# sourceMappingURL=V1_DSLDataSpace_ProtocolHelper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"V1_DSLDataSpace_ProtocolHelper.js","sourceRoot":"","sources":["../../../../../../../src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,SAAS,EACT,SAAS,EACT,IAAI,GACL,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,8CAA8C,GAC/C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,gBAAgB,EAChB,cAAc,EACd,yBAAyB,EACzB,wBAAwB,EACxB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,YAAY,EACZ,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,wEAAwE,CAAC;AAEhF,MAAM,CAAC,MAAM,mCAAmC,GAAG,WAAW,CAAC;AAC/D,MAAM,CAAC,MAAM,gCAAgC,GAAG,OAAO,CAAC;AAExD,MAAM,uCAAuC,GAAG,iBAAiB,CAC/D,4BAA4B,EAC5B;IACE,cAAc,EAAE,gBAAgB,CAC9B,8CAA8C,CAC/C;IACD,WAAW,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAC;IAClC,OAAO,EAAE,gBAAgB,CAAC,8CAA8C,CAAC;IACzE,IAAI,EAAE,SAAS,EAAE;CAClB,CACF,CAAC;AAEF,MAAM,wBAAwB,GAAG,iBAAiB,CAAC,wBAAwB,EAAE;IAC3E,KAAK,EAAE,wBAAwB,CAAC,gCAAgC,CAAC;IACjE,OAAO,EAAE,SAAS,EAAE;CACrB,CAAC,CAAC;AAEH,MAAM,uBAAuB,GAAG,CAC9B,QAA6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,CAAC,EACpE;QACE,WAAW,EAAE,KAAK;KACnB,CACF,CACJ;IACD,OAAO,EAAE,SAAS,EAAE;IACpB,IAAI,EAAE,SAAS,EAAE;IACjB,OAAO,EAAE,SAAS,EAAE;IACpB,WAAW,EAAE,MAAM,CACjB,CAAC,MAAM,EAAE,EAAE,CACT,cAAc,CACZ,MAAM,EACN,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,sBAAsB,EAAE,KAAK,CAAC,EACnD;QACE,WAAW,EAAE,IAAI;QACjB,gCAAgC,EAAE,IAAI;KACvC,CACF,EACH,CAAC,MAAM,EAAE,EAAE,CACT,gBAAgB,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,sBAAsB,EAAE,CAAC,CAAC,EAAE;QACtE,WAAW,EAAE,KAAK;KACnB,CAAC,CACL;IACD,WAAW,EAAE,MAAM,CACjB,CAAC,GAAG,EAAE,EAAE,CAAC,uBAAuB,CAAC,GAAG,CAAC,EACrC,CAAC,GAAG,EAAE,EAAE,CAAC,yBAAyB,CAAC,GAAG,CAAC,CACxC;IACD,YAAY,EAAE,MAAM,CAClB,CAAC,MAAM,EAAE,EAAE,CACT,cAAc,CACZ,MAAM,EACN,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,oBAAoB,EAAE,KAAK,CAAC,EACjD;QACE,WAAW,EAAE,IAAI;QACjB,gCAAgC,EAAE,IAAI;KACvC,CACF,EACH,CAAC,MAAM,EAAE,EAAE,CACT,gBAAgB,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,oBAAoB,EAAE,CAAC,CAAC,EAAE;QACpE,WAAW,EAAE,KAAK;KACnB,CAAC,CACL;IACD,SAAS,EAAE,SAAS,EAAE;CACvB,CAAC,CAAC"}
1
+ {"version":3,"file":"V1_DSLDataSpace_ProtocolHelper.js","sourceRoot":"","sources":["../../../../../../../src/models/protocols/pure/v1/transformation/pureProtocol/V1_D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AC,sBAAsB,EAAE,KAAK,CAAC,EACnD;QACE,WAAW,EAAE,IAAI;QACjB,gCAAgC,EAAE,IAAI;KACvC,CACF,EACH,CAAC,MAAM,EAAE,EAAE,CACT,gBAAgB,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,sBAAsB,EAAE,CAAC,CAAC,EAAE;QACtE,WAAW,EAAE,KAAK;KACnB,CAAC,CACL;IACD,WAAW,EAAE,MAAM,CACjB,CAAC,GAAG,EAAE,EAAE,CAAC,uBAAuB,CAAC,GAAG,CAAC,EACrC,CAAC,GAAG,EAAE,EAAE,CAAC,yBAAyB,CAAC,GAAG,CAAC,CACxC;IACD,YAAY,EAAE,MAAM,CAClB,CAAC,MAAM,EAAE,EAAE,CACT,cAAc,CACZ,MAAM,EACN,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,oBAAoB,EAAE,KAAK,CAAC,EACjD;QACE,WAAW,EAAE,IAAI;QACjB,gCAAgC,EAAE,IAAI;KACvC,CACF,EACH,CAAC,MAAM,EAAE,EAAE,CACT,gBAAgB,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,oBAAoB,EAAE,CAAC,CAAC,EAAE;QACpE,WAAW,EAAE,KAAK;KACnB,CAAC,CACL;CACF,CAAC,CAAC"}
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-data-space",
3
- "version": "3.0.3",
3
+ "version": "4.0.1",
4
4
  "description": "Legend extension for Data Space DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -53,7 +53,7 @@
53
53
  "@finos/legend-shared": "workspace:*",
54
54
  "@finos/legend-studio": "workspace:*",
55
55
  "@types/react": "18.0.14",
56
- "mobx": "6.6.0",
56
+ "mobx": "6.6.1",
57
57
  "mobx-react-lite": "3.4.0",
58
58
  "react": "18.2.0",
59
59
  "react-dom": "18.2.0",
@@ -62,13 +62,13 @@
62
62
  },
63
63
  "devDependencies": {
64
64
  "@finos/legend-dev-utils": "workspace:*",
65
- "@jest/globals": "28.1.1",
65
+ "@jest/globals": "28.1.2",
66
66
  "cross-env": "7.0.3",
67
- "eslint": "8.18.0",
68
- "jest": "28.1.1",
67
+ "eslint": "8.19.0",
68
+ "jest": "28.1.2",
69
69
  "npm-run-all": "4.1.5",
70
70
  "rimraf": "3.0.2",
71
- "sass": "1.52.3",
71
+ "sass": "1.53.0",
72
72
  "typescript": "4.7.4"
73
73
  },
74
74
  "peerDependencies": {
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { type ClassView, type DiagramRenderer, Diagram } from '@finos/legend-extension-dsl-diagram';
17
17
  import type { GraphManagerState, PackageableRuntime } from '@finos/legend-graph';
18
- import type { ResolvedDataSpace, ResolvedDataSpaceExecutionContext } from '../models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js';
18
+ import type { DataSpace, DataSpaceExecutionContext } from '../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
19
19
  export declare enum DATA_SPACE_VIEWER_ACTIVITY_MODE {
20
20
  MODELS_OVERVIEW = "MODELS_OVERVIEW",
21
21
  EXECUTION = "EXECUTION",
@@ -27,18 +27,18 @@ export declare enum DATA_SPACE_VIEWER_ACTIVITY_MODE {
27
27
  }
28
28
  export declare class DataSpaceViewerState {
29
29
  graphManagerState: GraphManagerState;
30
- dataSpaceGroupId: string;
31
- dataSpaceArtifactId: string;
32
- dataSpaceVersionId: string;
33
- dataSpace: ResolvedDataSpace;
30
+ groupId: string;
31
+ artifactId: string;
32
+ versionId: string;
33
+ dataSpace: DataSpace;
34
34
  _renderer?: DiagramRenderer | undefined;
35
35
  currentDiagram?: Diagram | undefined;
36
36
  currentActivity: DATA_SPACE_VIEWER_ACTIVITY_MODE;
37
- currentExecutionContext: ResolvedDataSpaceExecutionContext;
37
+ currentExecutionContext: DataSpaceExecutionContext;
38
38
  currentRuntime: PackageableRuntime;
39
39
  viewProject?: ((groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void) | undefined;
40
40
  onDiagramClassDoubleClick?: ((classView: ClassView) => void) | undefined;
41
- constructor(graphManagerState: GraphManagerState, dataSpaceGroupId: string, dataSpaceArtifactId: string, dataSpaceVersionId: string, dataSpace: ResolvedDataSpace, options?: {
41
+ constructor(graphManagerState: GraphManagerState, groupId: string, artifactId: string, versionId: string, dataSpace: DataSpace, options?: {
42
42
  viewProject?: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void;
43
43
  onDiagramClassDoubleClick?: (classView: ClassView) => void;
44
44
  });
@@ -51,7 +51,7 @@ export declare class DataSpaceViewerState {
51
51
  setRenderer(val: DiagramRenderer): void;
52
52
  setCurrentDiagram(val: Diagram): void;
53
53
  setCurrentActivity(val: DATA_SPACE_VIEWER_ACTIVITY_MODE): void;
54
- setCurrentExecutionContext(val: ResolvedDataSpaceExecutionContext): void;
54
+ setCurrentExecutionContext(val: DataSpaceExecutionContext): void;
55
55
  setCurrentRuntime(val: PackageableRuntime): void;
56
56
  setupRenderer(): void;
57
57
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceViewerState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,OAAO,EAER,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EACV,iBAAiB,EAEjB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EACV,iBAAiB,EACjB,iCAAiC,EAClC,MAAM,sEAAsE,CAAC;AAE9E,oBAAY,+BAA+B;IACzC,eAAe,oBAAoB;IACnC,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,aAAa,kBAAkB;IAC/B,IAAI,SAAS;IACb,OAAO,YAAY;CACpB;AAED,qBAAa,oBAAoB;IAC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ITY_MODE = DATA_SPACE_VIEWER_ACTIVITY_MODE || (DATA_SPACE_VIEWER_ACTIVITY_MODE = {}));
29
29
  export class DataSpaceViewerState {
30
30
  graphManagerState;
31
- dataSpaceGroupId;
32
- dataSpaceArtifactId;
33
- dataSpaceVersionId;
31
+ groupId;
32
+ artifactId;
33
+ versionId;
34
34
  dataSpace;
35
35
  _renderer;
36
36
  currentDiagram;
@@ -39,7 +39,7 @@ export class DataSpaceViewerState {
39
39
  currentRuntime;
40
40
  viewProject;
41
41
  onDiagramClassDoubleClick;
42
- constructor(graphManagerState, dataSpaceGroupId, dataSpaceArtifactId, dataSpaceVersionId, dataSpace, options) {
42
+ constructor(graphManagerState, groupId, artifactId, versionId, dataSpace, options) {
43
43
  makeObservable(this, {
44
44
  _renderer: observable,
45
45
  currentDiagram: observable,
@@ -55,13 +55,13 @@ export class DataSpaceViewerState {
55
55
  });
56
56
  this.graphManagerState = graphManagerState;
57
57
  this.dataSpace = dataSpace;
58
- this.dataSpaceGroupId = dataSpaceGroupId;
59
- this.dataSpaceArtifactId = dataSpaceArtifactId;
60
- this.dataSpaceVersionId = dataSpaceVersionId;
58
+ this.groupId = groupId;
59
+ this.artifactId = artifactId;
60
+ this.versionId = versionId;
61
61
  this.currentExecutionContext = this.dataSpace.defaultExecutionContext;
62
62
  this.currentRuntime =
63
63
  this.dataSpace.defaultExecutionContext.defaultRuntime.value;
64
- this.currentDiagram = this.dataSpace.featuredDiagrams.length
64
+ this.currentDiagram = this.dataSpace.featuredDiagrams?.length
65
65
  ? this.dataSpace
66
66
  .featuredDiagrams[0].value
67
67
  : this.diagrams.length
@@ -77,7 +77,7 @@ export class DataSpaceViewerState {
77
77
  return Boolean(this._renderer);
78
78
  }
79
79
  get featuredDiagrams() {
80
- return this.dataSpace.featuredDiagrams.map((ref) => ref.value);
80
+ return this.dataSpace.featuredDiagrams?.map((ref) => ref.value) ?? [];
81
81
  }
82
82
  get diagrams() {
83
83
  return this.graphManagerState.graph
@@ -1 +1 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QueryTaggedValue } from '@finos/legend-graph';
17
- import type { Entity } from '@finos/legend-model-storage';
18
17
  import { type QuerySetupStore, QuerySetupState } from '@finos/legend-query';
19
18
  import { type GeneratorFn, ActionState } from '@finos/legend-shared';
20
19
  import { DataSpaceViewerState } from '../DataSpaceViewerState.js';
21
- export declare type LightDataSpace = Entity & {
20
+ export interface DataSpaceContext {
22
21
  groupId: string;
23
22
  artifactId: string;
24
23
  versionId: string;
25
24
  path: string;
26
- content: {
27
- groupId: string;
28
- artifactId: string;
29
- versionId: string;
30
- };
31
- };
25
+ }
32
26
  export declare const createQueryDataSpaceTaggedValue: (dataSpacePath: string, groupId: string, artifactId: string, versionId: string) => QueryTaggedValue;
33
27
  export declare class DataSpaceQuerySetupState extends QuerySetupState {
34
- dataSpaces: LightDataSpace[];
28
+ dataSpaces: DataSpaceContext[];
35
29
  loadDataSpacesState: ActionState;
36
30
  setUpDataSpaceState: ActionState;
37
- currentDataSpace?: LightDataSpace | undefined;
31
+ currentDataSpace?: DataSpaceContext | undefined;
38
32
  dataSpaceViewerState?: DataSpaceViewerState | undefined;
39
33
  toGetSnapShot: boolean;
40
34
  constructor(setupStore: QuerySetupStore);
41
- setCurrentDataSpace(val: LightDataSpace | undefined): void;
35
+ setCurrentDataSpace(val: DataSpaceContext | undefined): void;
42
36
  setDataSpaceViewerState(val: DataSpaceViewerState | undefined): void;
43
37
  setToGetSnapShot(val: boolean): void;
44
38
  loadDataSpaces(searchText: string): GeneratorFn<void>;
45
- setUpDataSpace(dataSpace: LightDataSpace): GeneratorFn<void>;
39
+ setUpDataSpace(dataSpace: DataSpaceContext): GeneratorFn<void>;
46
40
  proceedToCreateQuery(_class?: Class): GeneratorFn<void>;
47
41
  }
48
42
  //# sourceMappingURL=DataSpaceQuerySetupState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceQuerySetupState.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupState.ts"],"names":[],"mappings":"AAAA;;;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GAAG,EAAE,OAAO,GAAG,IAAI;IAInC,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC;IAoCrD,cAAc,CAAC,SAAS,EAAE,gBAAgB,GAAG,WAAW,CAAC,IAAI,CAAC;IAqD9D,oBAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC;CAuCzD"}
@@ -16,9 +16,10 @@
16
16
  import { QueryTaggedValue } from '@finos/legend-graph';
17
17
  import { CreateQueryInfoState, QuerySetupState, generateCreateQueryRoute, } from '@finos/legend-query';
18
18
  import { generateGAVCoordinates, DepotScope, ProjectData, SNAPSHOT_VERSION_ALIAS, } from '@finos/legend-server-depot';
19
- import { ActionState, assertErrorThrown, guaranteeNonNullable, } from '@finos/legend-shared';
19
+ import { ActionState, assertErrorThrown, } from '@finos/legend-shared';
20
20
  import { action, flow, flowResult, makeObservable, observable } from 'mobx';
21
- import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH, getResolvedDataSpace, } from '../../models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js';
21
+ import { getDataSpace } from '../../graphManager/DSLDataSpace_GraphManagerHelper.js';
22
+ import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH } from '../../models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js';
22
23
  import { DataSpaceViewerState } from '../DataSpaceViewerState.js';
23
24
  const QUERY_PROFILE_PATH = 'meta::pure::profiles::query';
24
25
  const QUERY_PROFILE_TAG_DATA_SPACE = 'dataSpace';
@@ -78,19 +79,12 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
78
79
  : DepotScope.RELEASES,
79
80
  limit: 10,
80
81
  })).map((storedEntity) => ({
81
- ...storedEntity.entity,
82
82
  groupId: storedEntity.groupId,
83
83
  artifactId: storedEntity.artifactId,
84
84
  versionId: this.toGetSnapShot
85
85
  ? SNAPSHOT_VERSION_ALIAS
86
86
  : storedEntity.versionId,
87
87
  path: storedEntity.entity.path,
88
- content: {
89
- ...storedEntity.entity.content,
90
- groupId: guaranteeNonNullable(storedEntity.entity.content.groupId, `Data space 'groupId' field is missing`),
91
- artifactId: guaranteeNonNullable(storedEntity.entity.content.artifactId, `Data space 'artifactId' field is missing`),
92
- versionId: guaranteeNonNullable(storedEntity.entity.content.versionId, `Data space 'versionId' field is missing`),
93
- },
94
88
  }));
95
89
  this.loadDataSpacesState.pass();
96
90
  }
@@ -109,10 +103,9 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
109
103
  }
110
104
  this.setUpDataSpaceState.inProgress();
111
105
  try {
112
- const projectData = ProjectData.serialization.fromJson((yield flowResult(this.queryStore.depotServerClient.getProject(dataSpace.content.groupId, dataSpace.content.artifactId))));
113
- yield flowResult(this.queryStore.buildGraph(projectData, dataSpace.content.versionId));
114
- const resolvedDataSpace = getResolvedDataSpace(dataSpace.content, this.queryStore.graphManagerState.graph);
115
- this.dataSpaceViewerState = new DataSpaceViewerState(this.queryStore.graphManagerState, dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId, resolvedDataSpace, {
106
+ const projectData = ProjectData.serialization.fromJson((yield flowResult(this.queryStore.depotServerClient.getProject(dataSpace.groupId, dataSpace.artifactId))));
107
+ yield flowResult(this.queryStore.buildGraph(projectData, dataSpace.versionId));
108
+ this.dataSpaceViewerState = new DataSpaceViewerState(this.queryStore.graphManagerState, dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId, getDataSpace(dataSpace.path, this.queryStore.graphManagerState.graph), {
116
109
  viewProject: (groupId, artifactId, versionId, entityPath) => this.queryStore.viewStudioProject(groupId, artifactId, versionId, entityPath),
117
110
  onDiagramClassDoubleClick: (classView) => {
118
111
  this.proceedToCreateQuery(classView.class.value);
@@ -128,13 +121,13 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
128
121
  }
129
122
  *proceedToCreateQuery(_class) {
130
123
  if (this.dataSpaceViewerState) {
131
- const projectData = ProjectData.serialization.fromJson((yield flowResult(this.queryStore.depotServerClient.getProject(this.dataSpaceViewerState.dataSpace.groupId, this.dataSpaceViewerState.dataSpace.artifactId))));
132
- const queryInfoState = new CreateQueryInfoState(this.queryStore, projectData, this.dataSpaceViewerState.dataSpace.versionId, this.dataSpaceViewerState.currentExecutionContext.mapping.value, this.dataSpaceViewerState.currentRuntime);
124
+ const projectData = ProjectData.serialization.fromJson((yield flowResult(this.queryStore.depotServerClient.getProject(this.dataSpaceViewerState.groupId, this.dataSpaceViewerState.artifactId))));
125
+ const queryInfoState = new CreateQueryInfoState(this.queryStore, projectData, this.dataSpaceViewerState.versionId, this.dataSpaceViewerState.currentExecutionContext.mapping.value, this.dataSpaceViewerState.currentRuntime);
133
126
  queryInfoState.taggedValues = [
134
- createQueryDataSpaceTaggedValue(this.dataSpaceViewerState.dataSpace.path, this.dataSpaceViewerState.dataSpaceGroupId, this.dataSpaceViewerState.dataSpaceArtifactId, this.dataSpaceViewerState.dataSpaceVersionId),
127
+ createQueryDataSpaceTaggedValue(this.dataSpaceViewerState.dataSpace.path, this.dataSpaceViewerState.groupId, this.dataSpaceViewerState.artifactId, this.dataSpaceViewerState.versionId),
135
128
  ];
136
129
  this.queryStore.setQueryInfoState(queryInfoState);
137
- this.queryStore.applicationStore.navigator.goTo(generateCreateQueryRoute(this.dataSpaceViewerState.dataSpace.groupId, this.dataSpaceViewerState.dataSpace.artifactId, this.dataSpaceViewerState.dataSpace.versionId, this.dataSpaceViewerState.currentExecutionContext.mapping.value.path, this.dataSpaceViewerState.currentRuntime.path, _class?.path));
130
+ this.queryStore.applicationStore.navigator.goTo(generateCreateQueryRoute(this.dataSpaceViewerState.groupId, this.dataSpaceViewerState.artifactId, this.dataSpaceViewerState.versionId, this.dataSpaceViewerState.currentExecutionContext.mapping.value.path, this.dataSpaceViewerState.currentRuntime.path, _class?.path));
138
131
  this.setupStore.setSetupState(undefined);
139
132
  }
140
133
  }