@finos/legend-extension-dsl-data-space 6.1.15 → 7.0.0

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 (240) hide show
  1. package/lib/{DSLDataSpace_Const.d.ts → DSL_DataSpace_Const.d.ts} +1 -3
  2. package/lib/DSL_DataSpace_Const.d.ts.map +1 -0
  3. package/lib/{DSLDataSpace_Const.js → DSL_DataSpace_Const.js} +1 -3
  4. package/lib/DSL_DataSpace_Const.js.map +1 -0
  5. package/lib/{DSLDataSpace_Extension.d.ts → DSL_DataSpace_Extension.d.ts} +2 -2
  6. package/lib/DSL_DataSpace_Extension.d.ts.map +1 -0
  7. package/lib/{DSLDataSpace_Extension.js → DSL_DataSpace_Extension.js} +8 -8
  8. package/lib/DSL_DataSpace_Extension.js.map +1 -0
  9. package/lib/components/{DataSpaceViewer.d.ts → DSL_DataSpace_DataSpaceViewer.d.ts} +3 -2
  10. package/lib/components/DSL_DataSpace_DataSpaceViewer.d.ts.map +1 -0
  11. package/lib/components/{DataSpaceViewer.js → DSL_DataSpace_DataSpaceViewer.js} +4 -4
  12. package/lib/components/DSL_DataSpace_DataSpaceViewer.js.map +1 -0
  13. package/lib/components/{DSLDataSpace_Icon.d.ts → DSL_DataSpace_Icon.d.ts} +1 -1
  14. package/lib/components/DSL_DataSpace_Icon.d.ts.map +1 -0
  15. package/lib/components/{DSLDataSpace_Icon.js → DSL_DataSpace_Icon.js} +1 -1
  16. package/lib/components/DSL_DataSpace_Icon.js.map +1 -0
  17. package/lib/components/query/{DataSpaceQueryBuilder.d.ts → DSL_DataSpace_DataSpaceQueryBuilder.d.ts} +2 -2
  18. package/lib/components/query/DSL_DataSpace_DataSpaceQueryBuilder.d.ts.map +1 -0
  19. package/lib/components/query/{DataSpaceQueryBuilder.js → DSL_DataSpace_DataSpaceQueryBuilder.js} +4 -9
  20. package/lib/components/query/DSL_DataSpace_DataSpaceQueryBuilder.js.map +1 -0
  21. package/lib/components/query/{DataSpaceQueryCreator.d.ts → DSL_DataSpace_DataSpaceQueryCreator.d.ts} +2 -1
  22. package/lib/components/query/DSL_DataSpace_DataSpaceQueryCreator.d.ts.map +1 -0
  23. package/lib/components/query/{DataSpaceQueryCreator.js → DSL_DataSpace_DataSpaceQueryCreator.js} +7 -7
  24. package/lib/components/query/DSL_DataSpace_DataSpaceQueryCreator.js.map +1 -0
  25. package/lib/components/query/{DataSpaceQuerySetup.d.ts → DSL_DataSpace_DataSpaceQuerySetup.d.ts} +3 -2
  26. package/lib/components/query/DSL_DataSpace_DataSpaceQuerySetup.d.ts.map +1 -0
  27. package/lib/components/query/{DataSpaceQuerySetup.js → DSL_DataSpace_DataSpaceQuerySetup.js} +5 -11
  28. package/lib/components/query/DSL_DataSpace_DataSpaceQuerySetup.js.map +1 -0
  29. package/lib/components/query/{DSLDataSpace_LegendQueryApplicationPlugin.d.ts → DSL_DataSpace_LegendQueryApplicationPlugin.d.ts} +2 -2
  30. package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.d.ts.map +1 -0
  31. package/lib/components/query/{DSLDataSpace_LegendQueryApplicationPlugin.js → DSL_DataSpace_LegendQueryApplicationPlugin.js} +11 -11
  32. package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js.map +1 -0
  33. package/lib/components/studio/{DSLDataSpace_CodeSnippets.d.ts → DSL_DataSpace_CodeSnippets.d.ts} +1 -1
  34. package/lib/components/studio/DSL_DataSpace_CodeSnippets.d.ts.map +1 -0
  35. package/lib/components/studio/{DSLDataSpace_CodeSnippets.js → DSL_DataSpace_CodeSnippets.js} +1 -1
  36. package/lib/components/studio/DSL_DataSpace_CodeSnippets.js.map +1 -0
  37. package/lib/components/studio/{DSLDataSpace_LegendStudioApplicationPlugin.d.ts → DSL_DataSpace_LegendStudioApplicationPlugin.d.ts} +2 -2
  38. package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.d.ts.map +1 -0
  39. package/lib/components/studio/{DSLDataSpace_LegendStudioApplicationPlugin.js → DSL_DataSpace_LegendStudioApplicationPlugin.js} +7 -7
  40. package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.js.map +1 -0
  41. package/lib/components/studio/{DSLDataSpace_LegendStudioDocumentation.d.ts → DSL_DataSpace_LegendStudioDocumentation.d.ts} +1 -1
  42. package/lib/components/studio/DSL_DataSpace_LegendStudioDocumentation.d.ts.map +1 -0
  43. package/lib/components/studio/{DSLDataSpace_LegendStudioDocumentation.js → DSL_DataSpace_LegendStudioDocumentation.js} +1 -1
  44. package/lib/components/studio/DSL_DataSpace_LegendStudioDocumentation.js.map +1 -0
  45. package/lib/graph/{DSLDataSpace_HashUtils.d.ts → DSL_DataSpace_HashUtils.d.ts} +1 -1
  46. package/lib/graph/DSL_DataSpace_HashUtils.d.ts.map +1 -0
  47. package/lib/graph/{DSLDataSpace_HashUtils.js → DSL_DataSpace_HashUtils.js} +1 -1
  48. package/lib/graph/DSL_DataSpace_HashUtils.js.map +1 -0
  49. package/lib/graph/{DSLDataSpace_PureGraphPlugin.d.ts → DSL_DataSpace_PureGraphPlugin.d.ts} +2 -2
  50. package/lib/graph/DSL_DataSpace_PureGraphPlugin.d.ts.map +1 -0
  51. package/lib/graph/{DSLDataSpace_PureGraphPlugin.js → DSL_DataSpace_PureGraphPlugin.js} +3 -3
  52. package/lib/graph/DSL_DataSpace_PureGraphPlugin.js.map +1 -0
  53. package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/{DSLDataSpace_DataSpace.d.ts → DSL_DataSpace_DataSpace.d.ts} +1 -1
  54. package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.d.ts.map +1 -0
  55. package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/{DSLDataSpace_DataSpace.js → DSL_DataSpace_DataSpace.js} +2 -2
  56. package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js.map +1 -0
  57. package/lib/graphManager/{DSLDataSpace_GraphManagerHelper.d.ts → DSL_DataSpace_GraphManagerHelper.d.ts} +2 -2
  58. package/lib/graphManager/DSL_DataSpace_GraphManagerHelper.d.ts.map +1 -0
  59. package/lib/graphManager/{DSLDataSpace_GraphManagerHelper.js → DSL_DataSpace_GraphManagerHelper.js} +2 -2
  60. package/lib/graphManager/DSL_DataSpace_GraphManagerHelper.js.map +1 -0
  61. package/lib/graphManager/{DSLDataSpace_PureGraphManagerPlugin.d.ts → DSL_DataSpace_PureGraphManagerPlugin.d.ts} +2 -2
  62. package/lib/graphManager/DSL_DataSpace_PureGraphManagerPlugin.d.ts.map +1 -0
  63. package/lib/graphManager/{DSLDataSpace_PureGraphManagerPlugin.js → DSL_DataSpace_PureGraphManagerPlugin.js} +6 -6
  64. package/lib/graphManager/DSL_DataSpace_PureGraphManagerPlugin.js.map +1 -0
  65. package/lib/graphManager/action/analytics/{DataSpaceAnalysis.d.ts → DSL_DataSpace_DataSpaceAnalysis.d.ts} +2 -2
  66. package/lib/graphManager/action/analytics/DSL_DataSpace_DataSpaceAnalysis.d.ts.map +1 -0
  67. package/lib/graphManager/action/analytics/{DataSpaceAnalysis.js → DSL_DataSpace_DataSpaceAnalysis.js} +1 -1
  68. package/lib/graphManager/action/analytics/DSL_DataSpace_DataSpaceAnalysis.js.map +1 -0
  69. package/lib/graphManager/action/analytics/DSL_DataSpace_DataSpaceAnalysisHelper.d.ts +20 -0
  70. package/lib/graphManager/action/analytics/DSL_DataSpace_DataSpaceAnalysisHelper.d.ts.map +1 -0
  71. package/lib/graphManager/action/analytics/DSL_DataSpace_DataSpaceAnalysisHelper.js +20 -0
  72. package/lib/graphManager/action/analytics/DSL_DataSpace_DataSpaceAnalysisHelper.js.map +1 -0
  73. package/lib/graphManager/action/changeDetection/{DSLDataSpace_ObserverHelper.d.ts → DSL_DataSpace_ObserverHelper.d.ts} +2 -2
  74. package/lib/graphManager/action/changeDetection/DSL_DataSpace_ObserverHelper.d.ts.map +1 -0
  75. package/lib/graphManager/action/changeDetection/{DSLDataSpace_ObserverHelper.js → DSL_DataSpace_ObserverHelper.js} +1 -1
  76. package/lib/graphManager/action/changeDetection/DSL_DataSpace_ObserverHelper.js.map +1 -0
  77. package/lib/graphManager/protocol/pure/{DSLDataSpace_PureGraphManagerExtension.d.ts → DSL_DataSpace_PureGraphManagerExtension.d.ts} +6 -5
  78. package/lib/graphManager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.d.ts.map +1 -0
  79. package/lib/graphManager/protocol/pure/{DSLDataSpace_PureGraphManagerExtension.js → DSL_DataSpace_PureGraphManagerExtension.js} +3 -3
  80. package/lib/graphManager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.js.map +1 -0
  81. package/lib/graphManager/protocol/pure/{DSLDataSpace_PureGraphManagerExtensionBuilder.d.ts → DSL_DataSpace_PureGraphManagerExtensionBuilder.d.ts} +2 -2
  82. package/lib/graphManager/protocol/pure/DSL_DataSpace_PureGraphManagerExtensionBuilder.d.ts.map +1 -0
  83. package/lib/graphManager/protocol/pure/{DSLDataSpace_PureGraphManagerExtensionBuilder.js → DSL_DataSpace_PureGraphManagerExtensionBuilder.js} +4 -4
  84. package/lib/graphManager/protocol/pure/DSL_DataSpace_PureGraphManagerExtensionBuilder.js.map +1 -0
  85. package/lib/graphManager/protocol/pure/{DSLDataSpace_PureProtocolProcessorPlugin.d.ts → DSL_DataSpace_PureProtocolProcessorPlugin.d.ts} +3 -3
  86. package/lib/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -0
  87. package/lib/graphManager/protocol/pure/{DSLDataSpace_PureProtocolProcessorPlugin.js → DSL_DataSpace_PureProtocolProcessorPlugin.js} +9 -9
  88. package/lib/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js.map +1 -0
  89. package/lib/graphManager/protocol/pure/v1/{V1_DSLDataSpace_PureGraphManagerExtension.d.ts → V1_DSL_DataSpace_PureGraphManagerExtension.d.ts} +7 -5
  90. package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.d.ts.map +1 -0
  91. package/lib/graphManager/protocol/pure/v1/{V1_DSLDataSpace_PureGraphManagerExtension.js → V1_DSL_DataSpace_PureGraphManagerExtension.js} +36 -25
  92. package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js.map +1 -0
  93. package/lib/graphManager/protocol/pure/v1/{V1_DSLDataSpace_SystemModels.json → V1_DSL_DataSpace_SystemModels.json} +0 -0
  94. package/lib/graphManager/protocol/pure/v1/engine/analytics/{V1_DataSpaceAnalysis.d.ts → V1_DSL_DataSpace_DataSpaceAnalysis.d.ts} +2 -2
  95. package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DSL_DataSpace_DataSpaceAnalysis.d.ts.map +1 -0
  96. package/lib/graphManager/protocol/pure/v1/engine/analytics/{V1_DataSpaceAnalysis.js → V1_DSL_DataSpace_DataSpaceAnalysis.js} +2 -2
  97. package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DSL_DataSpace_DataSpaceAnalysis.js.map +1 -0
  98. package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/{V1_DSLDataSpace_DataSpace.d.ts → V1_DSL_DataSpace_DataSpace.d.ts} +1 -1
  99. package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.d.ts.map +1 -0
  100. package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/{V1_DSLDataSpace_DataSpace.js → V1_DSL_DataSpace_DataSpace.js} +2 -2
  101. package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.js.map +1 -0
  102. package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/{V1_DSLDataSpace_GraphBuilderHelper.d.ts → V1_DSL_DataSpace_GraphBuilderHelper.d.ts} +2 -2
  103. package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSL_DataSpace_GraphBuilderHelper.d.ts.map +1 -0
  104. package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/{V1_DSLDataSpace_GraphBuilderHelper.js → V1_DSL_DataSpace_GraphBuilderHelper.js} +2 -2
  105. package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSL_DataSpace_GraphBuilderHelper.js.map +1 -0
  106. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/{V1_DSLDataSpace_ProtocolHelper.d.ts → V1_DSL_DataSpace_ProtocolHelper.d.ts} +2 -2
  107. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.d.ts.map +1 -0
  108. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/{V1_DSLDataSpace_ProtocolHelper.js → V1_DSL_DataSpace_ProtocolHelper.js} +2 -2
  109. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.js.map +1 -0
  110. package/lib/index.css +1 -1
  111. package/lib/index.d.ts +10 -9
  112. package/lib/index.d.ts.map +1 -1
  113. package/lib/index.js +10 -9
  114. package/lib/index.js.map +1 -1
  115. package/lib/package.json +8 -8
  116. package/lib/stores/{DataSpaceViewerState.d.ts → DSL_DataSpace_DataSpaceViewerState.d.ts} +2 -2
  117. package/lib/stores/DSL_DataSpace_DataSpaceViewerState.d.ts.map +1 -0
  118. package/lib/stores/{DataSpaceViewerState.js → DSL_DataSpace_DataSpaceViewerState.js} +1 -1
  119. package/lib/stores/DSL_DataSpace_DataSpaceViewerState.js.map +1 -0
  120. package/lib/stores/query/{DataSpaceInfo.d.ts → DSL_DataSpace_DataSpaceInfo.d.ts} +1 -1
  121. package/lib/stores/query/DSL_DataSpace_DataSpaceInfo.d.ts.map +1 -0
  122. package/lib/stores/query/{DataSpaceInfo.js → DSL_DataSpace_DataSpaceInfo.js} +1 -1
  123. package/lib/stores/query/DSL_DataSpace_DataSpaceInfo.js.map +1 -0
  124. package/lib/stores/query/{DataSpaceQueryBuilderState.d.ts → DSL_DataSpace_DataSpaceQueryBuilderState.d.ts} +4 -4
  125. package/lib/stores/query/DSL_DataSpace_DataSpaceQueryBuilderState.d.ts.map +1 -0
  126. package/lib/stores/query/{DataSpaceQueryBuilderState.js → DSL_DataSpace_DataSpaceQueryBuilderState.js} +7 -7
  127. package/lib/stores/query/DSL_DataSpace_DataSpaceQueryBuilderState.js.map +1 -0
  128. package/lib/stores/query/{DataSpaceQueryCreatorStore.d.ts → DSL_DataSpace_DataSpaceQueryCreatorStore.d.ts} +5 -4
  129. package/lib/stores/query/DSL_DataSpace_DataSpaceQueryCreatorStore.d.ts.map +1 -0
  130. package/lib/stores/query/{DataSpaceQueryCreatorStore.js → DSL_DataSpace_DataSpaceQueryCreatorStore.js} +7 -7
  131. package/lib/stores/query/DSL_DataSpace_DataSpaceQueryCreatorStore.js.map +1 -0
  132. package/lib/stores/query/{DataSpaceQuerySetupState.d.ts → DSL_DataSpace_DataSpaceQuerySetupState.d.ts} +3 -3
  133. package/lib/stores/query/DSL_DataSpace_DataSpaceQuerySetupState.d.ts.map +1 -0
  134. package/lib/stores/query/{DataSpaceQuerySetupState.js → DSL_DataSpace_DataSpaceQuerySetupState.js} +13 -12
  135. package/lib/stores/query/DSL_DataSpace_DataSpaceQuerySetupState.js.map +1 -0
  136. package/lib/stores/query/{DSLDataSpace_LegendQueryRouter.d.ts → DSL_DataSpace_LegendQueryRouter.d.ts} +1 -1
  137. package/lib/stores/query/DSL_DataSpace_LegendQueryRouter.d.ts.map +1 -0
  138. package/lib/stores/query/{DSLDataSpace_LegendQueryRouter.js → DSL_DataSpace_LegendQueryRouter.js} +2 -2
  139. package/lib/stores/query/DSL_DataSpace_LegendQueryRouter.js.map +1 -0
  140. package/package.json +19 -19
  141. package/src/{DSLDataSpace_Const.ts → DSL_DataSpace_Const.ts} +0 -3
  142. package/src/{DSLDataSpace_Extension.ts → DSL_DataSpace_Extension.ts} +7 -7
  143. package/src/components/{DataSpaceViewer.tsx → DSL_DataSpace_DataSpaceViewer.tsx} +4 -4
  144. package/src/components/{DSLDataSpace_Icon.tsx → DSL_DataSpace_Icon.tsx} +0 -0
  145. package/src/components/query/{DataSpaceQueryBuilder.tsx → DSL_DataSpace_DataSpaceQueryBuilder.tsx} +6 -13
  146. package/src/components/query/{DataSpaceQueryCreator.tsx → DSL_DataSpace_DataSpaceQueryCreator.tsx} +4 -9
  147. package/src/components/query/{DataSpaceQuerySetup.tsx → DSL_DataSpace_DataSpaceQuerySetup.tsx} +6 -15
  148. package/src/components/query/{DSLDataSpace_LegendQueryApplicationPlugin.tsx → DSL_DataSpace_LegendQueryApplicationPlugin.tsx} +13 -12
  149. package/src/components/studio/{DSLDataSpace_CodeSnippets.ts → DSL_DataSpace_CodeSnippets.ts} +0 -0
  150. package/src/components/studio/{DSLDataSpace_LegendStudioApplicationPlugin.tsx → DSL_DataSpace_LegendStudioApplicationPlugin.tsx} +6 -6
  151. package/src/components/studio/{DSLDataSpace_LegendStudioDocumentation.ts → DSL_DataSpace_LegendStudioDocumentation.ts} +0 -0
  152. package/src/graph/{DSLDataSpace_HashUtils.ts → DSL_DataSpace_HashUtils.ts} +0 -0
  153. package/src/graph/{DSLDataSpace_PureGraphPlugin.ts → DSL_DataSpace_PureGraphPlugin.ts} +2 -2
  154. package/src/graph/metamodel/pure/model/packageableElements/dataSpace/{DSLDataSpace_DataSpace.ts → DSL_DataSpace_DataSpace.ts} +1 -1
  155. package/src/graphManager/{DSLDataSpace_GraphManagerHelper.ts → DSL_DataSpace_GraphManagerHelper.ts} +1 -1
  156. package/src/graphManager/{DSLDataSpace_PureGraphManagerPlugin.ts → DSL_DataSpace_PureGraphManagerPlugin.ts} +5 -5
  157. package/src/graphManager/action/analytics/{DataSpaceAnalysis.ts → DSL_DataSpace_DataSpaceAnalysis.ts} +1 -1
  158. package/src/graphManager/action/analytics/DSL_DataSpace_DataSpaceAnalysisHelper.ts +43 -0
  159. package/src/graphManager/action/changeDetection/{DSLDataSpace_ObserverHelper.ts → DSL_DataSpace_ObserverHelper.ts} +1 -1
  160. package/src/graphManager/protocol/pure/{DSLDataSpace_PureGraphManagerExtension.ts → DSL_DataSpace_PureGraphManagerExtension.ts} +7 -6
  161. package/src/graphManager/protocol/pure/{DSLDataSpace_PureGraphManagerExtensionBuilder.ts → DSL_DataSpace_PureGraphManagerExtensionBuilder.ts} +3 -3
  162. package/src/graphManager/protocol/pure/{DSLDataSpace_PureProtocolProcessorPlugin.ts → DSL_DataSpace_PureProtocolProcessorPlugin.ts} +8 -8
  163. package/src/graphManager/protocol/pure/v1/{V1_DSLDataSpace_PureGraphManagerExtension.ts → V1_DSL_DataSpace_PureGraphManagerExtension.ts} +42 -23
  164. package/src/graphManager/protocol/pure/v1/{V1_DSLDataSpace_SystemModels.json → V1_DSL_DataSpace_SystemModels.json} +0 -0
  165. package/src/graphManager/protocol/pure/v1/engine/analytics/{V1_DataSpaceAnalysis.ts → V1_DSL_DataSpace_DataSpaceAnalysis.ts} +2 -2
  166. package/src/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/{V1_DSLDataSpace_DataSpace.ts → V1_DSL_DataSpace_DataSpace.ts} +1 -1
  167. package/src/graphManager/protocol/pure/v1/transformation/pureGraph/{V1_DSLDataSpace_GraphBuilderHelper.ts → V1_DSL_DataSpace_GraphBuilderHelper.ts} +2 -2
  168. package/src/graphManager/protocol/pure/v1/transformation/pureProtocol/{V1_DSLDataSpace_ProtocolHelper.ts → V1_DSL_DataSpace_ProtocolHelper.ts} +1 -1
  169. package/src/index.ts +11 -9
  170. package/src/stores/{DataSpaceViewerState.ts → DSL_DataSpace_DataSpaceViewerState.ts} +1 -1
  171. package/src/stores/query/{DataSpaceInfo.ts → DSL_DataSpace_DataSpaceInfo.ts} +0 -0
  172. package/src/stores/query/{DataSpaceQueryBuilderState.ts → DSL_DataSpace_DataSpaceQueryBuilderState.ts} +14 -11
  173. package/src/stores/query/{DataSpaceQueryCreatorStore.ts → DSL_DataSpace_DataSpaceQueryCreatorStore.ts} +9 -13
  174. package/src/stores/query/{DataSpaceQuerySetupState.ts → DSL_DataSpace_DataSpaceQuerySetupState.ts} +25 -14
  175. package/src/stores/query/{DSLDataSpace_LegendQueryRouter.ts → DSL_DataSpace_LegendQueryRouter.ts} +1 -1
  176. package/tsconfig.json +34 -33
  177. package/lib/DSLDataSpace_Const.d.ts.map +0 -1
  178. package/lib/DSLDataSpace_Const.js.map +0 -1
  179. package/lib/DSLDataSpace_Extension.d.ts.map +0 -1
  180. package/lib/DSLDataSpace_Extension.js.map +0 -1
  181. package/lib/components/DSLDataSpace_Icon.d.ts.map +0 -1
  182. package/lib/components/DSLDataSpace_Icon.js.map +0 -1
  183. package/lib/components/DataSpaceViewer.d.ts.map +0 -1
  184. package/lib/components/DataSpaceViewer.js.map +0 -1
  185. package/lib/components/query/DSLDataSpace_LegendQueryApplicationPlugin.d.ts.map +0 -1
  186. package/lib/components/query/DSLDataSpace_LegendQueryApplicationPlugin.js.map +0 -1
  187. package/lib/components/query/DataSpaceQueryBuilder.d.ts.map +0 -1
  188. package/lib/components/query/DataSpaceQueryBuilder.js.map +0 -1
  189. package/lib/components/query/DataSpaceQueryCreator.d.ts.map +0 -1
  190. package/lib/components/query/DataSpaceQueryCreator.js.map +0 -1
  191. package/lib/components/query/DataSpaceQuerySetup.d.ts.map +0 -1
  192. package/lib/components/query/DataSpaceQuerySetup.js.map +0 -1
  193. package/lib/components/studio/DSLDataSpace_CodeSnippets.d.ts.map +0 -1
  194. package/lib/components/studio/DSLDataSpace_CodeSnippets.js.map +0 -1
  195. package/lib/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.d.ts.map +0 -1
  196. package/lib/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.js.map +0 -1
  197. package/lib/components/studio/DSLDataSpace_LegendStudioDocumentation.d.ts.map +0 -1
  198. package/lib/components/studio/DSLDataSpace_LegendStudioDocumentation.js.map +0 -1
  199. package/lib/graph/DSLDataSpace_HashUtils.d.ts.map +0 -1
  200. package/lib/graph/DSLDataSpace_HashUtils.js.map +0 -1
  201. package/lib/graph/DSLDataSpace_PureGraphPlugin.d.ts.map +0 -1
  202. package/lib/graph/DSLDataSpace_PureGraphPlugin.js.map +0 -1
  203. package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.d.ts.map +0 -1
  204. package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js.map +0 -1
  205. package/lib/graphManager/DSLDataSpace_GraphManagerHelper.d.ts.map +0 -1
  206. package/lib/graphManager/DSLDataSpace_GraphManagerHelper.js.map +0 -1
  207. package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.d.ts.map +0 -1
  208. package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.js.map +0 -1
  209. package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts.map +0 -1
  210. package/lib/graphManager/action/analytics/DataSpaceAnalysis.js.map +0 -1
  211. package/lib/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.d.ts.map +0 -1
  212. package/lib/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.js.map +0 -1
  213. package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.d.ts.map +0 -1
  214. package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.js.map +0 -1
  215. package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtensionBuilder.d.ts.map +0 -1
  216. package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtensionBuilder.js.map +0 -1
  217. package/lib/graphManager/protocol/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map +0 -1
  218. package/lib/graphManager/protocol/pure/DSLDataSpace_PureProtocolProcessorPlugin.js.map +0 -1
  219. package/lib/graphManager/protocol/pure/v1/V1_DSLDataSpace_PureGraphManagerExtension.d.ts.map +0 -1
  220. package/lib/graphManager/protocol/pure/v1/V1_DSLDataSpace_PureGraphManagerExtension.js.map +0 -1
  221. package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts.map +0 -1
  222. package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js.map +0 -1
  223. package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.d.ts.map +0 -1
  224. package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js.map +0 -1
  225. package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.d.ts.map +0 -1
  226. package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.js.map +0 -1
  227. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts.map +0 -1
  228. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js.map +0 -1
  229. package/lib/stores/DataSpaceViewerState.d.ts.map +0 -1
  230. package/lib/stores/DataSpaceViewerState.js.map +0 -1
  231. package/lib/stores/query/DSLDataSpace_LegendQueryRouter.d.ts.map +0 -1
  232. package/lib/stores/query/DSLDataSpace_LegendQueryRouter.js.map +0 -1
  233. package/lib/stores/query/DataSpaceInfo.d.ts.map +0 -1
  234. package/lib/stores/query/DataSpaceInfo.js.map +0 -1
  235. package/lib/stores/query/DataSpaceQueryBuilderState.d.ts.map +0 -1
  236. package/lib/stores/query/DataSpaceQueryBuilderState.js.map +0 -1
  237. package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts.map +0 -1
  238. package/lib/stores/query/DataSpaceQueryCreatorStore.js.map +0 -1
  239. package/lib/stores/query/DataSpaceQuerySetupState.d.ts.map +0 -1
  240. package/lib/stores/query/DataSpaceQuerySetupState.js.map +0 -1
@@ -13,16 +13,17 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { QuerySetupState, generateStudioProjectViewUrl, } from '@finos/legend-application-query';
16
+ import { QuerySetupState, EXTERNAL_APPLICATION_NAVIGATION__generateStudioProjectViewUrl, } from '@finos/legend-application-query';
17
17
  import { DepotScope, ProjectData, } from '@finos/legend-server-depot';
18
18
  import { ActionState, assertErrorThrown, } from '@finos/legend-shared';
19
19
  import { action, flow, flowResult, makeObservable, observable } from 'mobx';
20
- import { getDSLDataSpaceGraphManagerExtension } from '../../graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.js';
21
- import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH } from '../../graphManager/protocol/pure/DSLDataSpace_PureProtocolProcessorPlugin.js';
22
- import { DataSpaceViewerState } from '../DataSpaceViewerState.js';
23
- import { generateDataSpaceQueryCreatorRoute } from './DSLDataSpace_LegendQueryRouter.js';
24
- import { extractDataSpaceInfo } from './DataSpaceInfo.js';
25
- import { DEFAULT_DATA_SPACE_LOADER_LIMIT, MINIMUM_DATA_SPACE_LOADER_SEARCH_LENGTH, } from '../../DSLDataSpace_Const.js';
20
+ import { getDSLDataSpaceGraphManagerExtension } from '../../graphManager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.js';
21
+ import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH } from '../../graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js';
22
+ import { DataSpaceViewerState } from '../DSL_DataSpace_DataSpaceViewerState.js';
23
+ import { generateDataSpaceQueryCreatorRoute } from './DSL_DataSpace_LegendQueryRouter.js';
24
+ import { extractDataSpaceInfo, } from './DSL_DataSpace_DataSpaceInfo.js';
25
+ import { DEFAULT_TYPEAHEAD_SEARCH_LIMIT, DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH, } from '@finos/legend-application';
26
+ import { retrieveAnalyticsResultCache } from '../../graphManager/action/analytics/DSL_DataSpace_DataSpaceAnalysisHelper.js';
26
27
  export class DataSpaceQuerySetupState extends QuerySetupState {
27
28
  dataSpaces = [];
28
29
  loadDataSpacesState = ActionState.create();
@@ -55,7 +56,7 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
55
56
  this.toGetSnapShot = val;
56
57
  }
57
58
  *loadDataSpaces(searchText) {
58
- const isValidSearchString = searchText.length >= MINIMUM_DATA_SPACE_LOADER_SEARCH_LENGTH;
59
+ const isValidSearchString = searchText.length >= DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH;
59
60
  this.loadDataSpacesState.inProgress();
60
61
  try {
61
62
  this.dataSpaces = (yield this.setupStore.depotServerClient.getEntitiesByClassifierPath(DATA_SPACE_ELEMENT_CLASSIFIER_PATH, {
@@ -63,7 +64,7 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
63
64
  scope: this.toGetSnapShot
64
65
  ? DepotScope.SNAPSHOT
65
66
  : DepotScope.RELEASES,
66
- limit: DEFAULT_DATA_SPACE_LOADER_LIMIT,
67
+ limit: DEFAULT_TYPEAHEAD_SEARCH_LIMIT,
67
68
  })).map((storedEntity) => extractDataSpaceInfo(storedEntity, this.toGetSnapShot));
68
69
  this.loadDataSpacesState.pass();
69
70
  }
@@ -88,9 +89,9 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
88
89
  const dependencyEntitiesIndex = (yield flowResult(this.setupStore.depotServerClient.getIndexedDependencyEntities(project, dataSpace.versionId)));
89
90
  // analyze data space
90
91
  this.loadDataSpaceState.setMessage(`Analyzing data space...`);
91
- const analysisResult = (yield getDSLDataSpaceGraphManagerExtension(this.setupStore.graphManagerState.graphManager).analyzeDataSpace(dataSpace.path, entities, dependencyEntitiesIndex));
92
+ const analysisResult = (yield getDSLDataSpaceGraphManagerExtension(this.setupStore.graphManagerState.graphManager).analyzeDataSpace(dataSpace.path, entities, dependencyEntitiesIndex, () => retrieveAnalyticsResultCache(dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId, dataSpace.path, this.setupStore.depotServerClient)));
92
93
  this.dataSpaceViewerState = new DataSpaceViewerState(dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId, analysisResult, {
93
- viewProject: (groupId, artifactId, versionId, entityPath) => this.setupStore.applicationStore.navigator.openNewWindow(generateStudioProjectViewUrl(this.setupStore.applicationStore.config.studioUrl, groupId, artifactId, versionId, entityPath)),
94
+ viewProject: (groupId, artifactId, versionId, entityPath) => this.setupStore.applicationStore.navigator.openNewWindow(EXTERNAL_APPLICATION_NAVIGATION__generateStudioProjectViewUrl(this.setupStore.applicationStore.config.studioUrl, groupId, artifactId, versionId, entityPath)),
94
95
  onDiagramClassDoubleClick: (classView) => {
95
96
  this.proceedToCreateQuery(classView.class.value);
96
97
  },
@@ -116,4 +117,4 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
116
117
  }
117
118
  }
118
119
  }
119
- //# sourceMappingURL=DataSpaceQuerySetupState.js.map
120
+ //# sourceMappingURL=DSL_DataSpace_DataSpaceQuerySetupState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DSL_DataSpace_DataSpaceQuerySetupState.js","sourceRoot":"","sources":["../../../src/stores/query/DSL_DataSpace_DataSpaceQuerySetupState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,EAEL,eAAe,EACf,6DAA6D,GAC9D,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEL,UAAU,EACV,WAAW,GACZ,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,WAAW,EACX,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC5E,OAAO,EAAE,oCAAoC,EAAE,MAAM,6EAA6E,CAAC;AACnI,OAAO,EAAE,kCAAkC,EAAE,MAAM,+EAA+E,CAAC;AACnI,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAEL,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TERN: string;
34
34
  export declare const generateDataSpaceQueryCreatorRoute: (groupId: string, artifactId: string, versionId: string, dataSpacePath: string, executionContextKey: string, runtimePath?: string | undefined, classPath?: string | undefined) => string;
35
- //# sourceMappingURL=DSLDataSpace_LegendQueryRouter.d.ts.map
35
+ //# sourceMappingURL=DSL_DataSpace_LegendQueryRouter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DSL_DataSpace_LegendQueryRouter.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DSL_DataSpace_LegendQueryRouter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAIhF,oBAAY,yCAAyC;IACnD,eAAe,kBAAkB;IACjC,iBAAiB,qBAAqB;CACvC;AAED,oBAAY,0CAA0C;IACpD,UAAU,UAAU;CACrB;AAED,MAAM,WAAW,+BAA+B;IAC9C,CAAC,6BAA6B,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAC5C,CAAC,yCAAyC,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IACpE,CAAC,yCAAyC,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACtE,CAAC,6BAA6B,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;CACvD;AAED,MAAM,WAAW,+BAA+B;IAC9C,CAAC,0CAA0C,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,CAAC;CAClE;AAED,eAAO,MAAM,0CAA0C,QAA+O,CAAC;AAEvS,eAAO,MAAM,kCAAkC,YACpC,MAAM,cACH,MAAM,aACP,MAAM,iBACF,MAAM,uBACA,MAAM,gBACb,MAAM,GAAG,SAAS,cACpB,MAAM,GAAG,SAAS,KAC7B,MAmBC,CAAC"}
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { generateExtensionUrlPattern } from '@finos/legend-application';
17
17
  import { LEGEND_QUERY_PATH_PARAM_TOKEN } from '@finos/legend-application-query';
18
- import { generateGAVCoordinates } from '@finos/legend-server-depot';
18
+ import { generateGAVCoordinates } from '@finos/legend-storage';
19
19
  import { generatePath } from 'react-router';
20
20
  export var DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN;
21
21
  (function (DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN) {
@@ -35,4 +35,4 @@ export const generateDataSpaceQueryCreatorRoute = (groupId, artifactId, versionI
35
35
  })}${classPath
36
36
  ? `?${DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.CLASS_PATH}=${classPath}`
37
37
  : ''}`;
38
- //# sourceMappingURL=DSLDataSpace_LegendQueryRouter.js.map
38
+ //# sourceMappingURL=DSL_DataSpace_LegendQueryRouter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DSL_DataSpace_LegendQueryRouter.js","sourceRoot":"","sources":["../../../src/stores/query/DSL_DataSpace_LegendQueryRouter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,CAAN,IAAY,yCAGX;AAHD,WAAY,yCAAyC;IACnD,8EAAiC,CAAA;IACjC,mFAAsC,CAAA;AACxC,CAAC,EAHW,yCAAyC,GAAzC,yCAAyC,KAAzC,yCAAyC,QAGpD;AAED,MAAM,CAAN,IAAY,0CAEX;AAFD,WAAY,0CAA0C;IACpD,kEAAoB,CAAA;AACtB,CAAC,EAFW,0CAA0C,GAA1C,0CAA0C,KAA1C,0CAA0C,QAErD;AAaD,MAAM,CAAC,MAAM,0CAA0C,GAAG,2BAA2B,6BAA6B,CAAC,GAAG,KAAK,yCAAyC,CAAC,eAAe,KAAK,yCAAyC,CAAC,iBAAiB,KAAK,6BAA6B,CAAC,YAAY,GAAG,CAAC;AAEvS,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAChD,OAAe,EACf,UAAkB,EAClB,SAAiB,EACjB,aAAqB,EACrB,mBAA2B,EAC3B,WAAgC,EAChC,SAA8B,EACtB,EAAE,CACV,GAAG,YAAY,CACb,2BAA2B,CAAC,0CAA0C,CAAC,EACvE;IACE,CAAC,6BAA6B,CAAC,GAAG,CAAC,EAAE,sBAAsB,CACzD,OAAO,EACP,UAAU,EACV,SAAS,CACV;IACD,CAAC,yCAAyC,CAAC,eAAe,CAAC,EACzD,aAAa;IACf,CAAC,yCAAyC,CAAC,iBAAiB,CAAC,EAC3D,mBAAmB;IACrB,CAAC,6BAA6B,CAAC,YAAY,CAAC,EAAE,WAAW;CAC1D,CACF,GACC,SAAS;IACP,CAAC,CAAC,IAAI,0CAA0C,CAAC,UAAU,IAAI,SAAS,EAAE;IAC1E,CAAC,CAAC,EACN,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-data-space",
3
- "version": "6.1.15",
3
+ "version": "7.0.0",
4
4
  "description": "Legend extension for Data Space DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -43,35 +43,35 @@
43
43
  "test:watch": "jest --watch"
44
44
  },
45
45
  "dependencies": {
46
- "@finos/legend-application": "7.2.1",
47
- "@finos/legend-application-query": "7.0.1",
48
- "@finos/legend-application-studio": "16.0.2",
49
- "@finos/legend-art": "3.2.1",
50
- "@finos/legend-extension-dsl-diagram": "6.0.2",
51
- "@finos/legend-graph": "15.0.0",
52
- "@finos/legend-query-builder": "0.0.2",
53
- "@finos/legend-server-depot": "3.0.12",
54
- "@finos/legend-shared": "6.1.1",
55
- "@finos/legend-storage": "3.0.10",
56
- "@types/react": "18.0.20",
46
+ "@finos/legend-application": "8.0.1",
47
+ "@finos/legend-application-query": "8.1.0",
48
+ "@finos/legend-application-studio": "18.0.0",
49
+ "@finos/legend-art": "3.3.0",
50
+ "@finos/legend-extension-dsl-diagram": "7.0.0",
51
+ "@finos/legend-graph": "17.0.0",
52
+ "@finos/legend-query-builder": "0.1.1",
53
+ "@finos/legend-server-depot": "4.1.0",
54
+ "@finos/legend-shared": "6.1.3",
55
+ "@finos/legend-storage": "3.0.12",
56
+ "@types/react": "18.0.21",
57
57
  "mobx": "6.6.2",
58
58
  "mobx-react-lite": "3.4.0",
59
59
  "react": "18.2.0",
60
60
  "react-dom": "18.2.0",
61
61
  "react-resize-detector": "7.1.2",
62
- "react-router": "5.3.3",
62
+ "react-router": "5.3.4",
63
63
  "serializr": "2.0.5"
64
64
  },
65
65
  "devDependencies": {
66
- "@finos/legend-dev-utils": "2.0.16",
67
- "@jest/globals": "29.0.3",
66
+ "@finos/legend-dev-utils": "2.0.18",
67
+ "@jest/globals": "29.1.2",
68
68
  "cross-env": "7.0.3",
69
- "eslint": "8.23.1",
70
- "jest": "29.0.3",
69
+ "eslint": "8.24.0",
70
+ "jest": "29.1.2",
71
71
  "npm-run-all": "4.1.5",
72
72
  "rimraf": "3.0.2",
73
- "sass": "1.54.9",
74
- "typescript": "4.8.3"
73
+ "sass": "1.55.0",
74
+ "typescript": "4.8.4"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "react": "^18.0.0"
@@ -18,6 +18,3 @@
18
18
  // so that it records the dataSpace it is created from
19
19
  export const QUERY_PROFILE_PATH = 'meta::pure::profiles::query';
20
20
  export const QUERY_PROFILE_TAG_DATA_SPACE = 'dataSpace';
21
-
22
- export const DEFAULT_DATA_SPACE_LOADER_LIMIT = 10;
23
- export const MINIMUM_DATA_SPACE_LOADER_SEARCH_LENGTH = 3;
@@ -16,16 +16,16 @@
16
16
 
17
17
  import packageJson from '../package.json';
18
18
  import { AbstractPreset } from '@finos/legend-shared';
19
- import { DSLDataSpace_PureGraphManagerPlugin } from './graphManager/DSLDataSpace_PureGraphManagerPlugin.js';
20
- import { DSLDataSpace_PureProtocolProcessorPlugin } from './graphManager/protocol/pure/DSLDataSpace_PureProtocolProcessorPlugin.js';
21
- import { DSLDataSpace_PureGraphPlugin } from './graph/DSLDataSpace_PureGraphPlugin.js';
19
+ import { DSL_DataSpace_PureGraphManagerPlugin } from './graphManager/DSL_DataSpace_PureGraphManagerPlugin.js';
20
+ import { DSL_DataSpace_PureProtocolProcessorPlugin } from './graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js';
21
+ import { DSL_DataSpace_PureGraphPlugin } from './graph/DSL_DataSpace_PureGraphPlugin.js';
22
22
 
23
- export class DSLDataSpace_GraphManagerPreset extends AbstractPreset {
23
+ export class DSL_DataSpace_GraphManagerPreset extends AbstractPreset {
24
24
  constructor() {
25
25
  super(packageJson.extensions.graphManagerPreset, packageJson.version, [
26
- new DSLDataSpace_PureGraphPlugin(),
27
- new DSLDataSpace_PureGraphManagerPlugin(),
28
- new DSLDataSpace_PureProtocolProcessorPlugin(),
26
+ new DSL_DataSpace_PureGraphPlugin(),
27
+ new DSL_DataSpace_PureGraphManagerPlugin(),
28
+ new DSL_DataSpace_PureProtocolProcessorPlugin(),
29
29
  ]);
30
30
  }
31
31
  }
@@ -40,7 +40,7 @@ import {
40
40
  type Diagram,
41
41
  DiagramRenderer,
42
42
  } from '@finos/legend-extension-dsl-diagram';
43
- import { DataSpaceSupportEmail } from '../graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
43
+ import { DataSpaceSupportEmail } from '../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
44
44
  import {
45
45
  extractElementNameFromPath,
46
46
  type PackageableRuntime,
@@ -48,9 +48,9 @@ import {
48
48
  import {
49
49
  type DataSpaceViewerState,
50
50
  DATA_SPACE_VIEWER_ACTIVITY_MODE,
51
- } from '../stores/DataSpaceViewerState.js';
52
- import type { DataSpaceExecutionContextAnalysisResult } from '../graphManager/action/analytics/DataSpaceAnalysis.js';
53
- import { generateGAVCoordinates } from '@finos/legend-server-depot';
51
+ } from '../stores/DSL_DataSpace_DataSpaceViewerState.js';
52
+ import type { DataSpaceExecutionContextAnalysisResult } from '../graphManager/action/analytics/DSL_DataSpace_DataSpaceAnalysis.js';
53
+ import { generateGAVCoordinates } from '@finos/legend-storage';
54
54
 
55
55
  interface DataSpaceViewerActivityConfig {
56
56
  mode: DATA_SPACE_VIEWER_ACTIVITY_MODE;
@@ -29,7 +29,7 @@ import {
29
29
  } from '@finos/legend-art';
30
30
  import { observer } from 'mobx-react-lite';
31
31
  import { useApplicationStore } from '@finos/legend-application';
32
- import type { DataSpaceQueryBuilderState } from '../../stores/query/DataSpaceQueryBuilderState.js';
32
+ import type { DataSpaceQueryBuilderState } from '../../stores/query/DSL_DataSpace_DataSpaceQueryBuilderState.js';
33
33
  import {
34
34
  buildRuntimeValueOption,
35
35
  getRuntimeOptionFormatter,
@@ -42,13 +42,13 @@ import {
42
42
  PackageableElementExplicitReference,
43
43
  RuntimePointer,
44
44
  } from '@finos/legend-graph';
45
- import type { DataSpaceInfo } from '../../stores/query/DataSpaceInfo.js';
46
- import { generateGAVCoordinates } from '@finos/legend-server-depot';
45
+ import type { DataSpaceInfo } from '../../stores/query/DSL_DataSpace_DataSpaceInfo.js';
46
+ import { generateGAVCoordinates } from '@finos/legend-storage';
47
47
  import { useEffect, useMemo, useState } from 'react';
48
48
  import { debounce, guaranteeType } from '@finos/legend-shared';
49
49
  import { flowResult } from 'mobx';
50
- import type { DataSpaceExecutionContext } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
51
- import { DataSpaceIcon } from '../DSLDataSpace_Icon.js';
50
+ import type { DataSpaceExecutionContext } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
51
+ import { DataSpaceIcon } from '../DSL_DataSpace_Icon.js';
52
52
 
53
53
  type DataSpaceOption = {
54
54
  label: string;
@@ -105,12 +105,6 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
105
105
  const onDataSpaceOptionChange = (option: DataSpaceOption): void => {
106
106
  queryBuilderState.onDataSpaceChange(option.value);
107
107
  };
108
- const dataSpaceFilterOption = createFilter({
109
- ignoreCase: true,
110
- ignoreAccents: false,
111
- stringify: (option: DataSpaceOption): string =>
112
- `${option.label} - ${option.value.path}`,
113
- });
114
108
  const formatDataSpaceOptionLabel = (
115
109
  option: DataSpaceOption,
116
110
  ): React.ReactNode => (
@@ -275,10 +269,9 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
275
269
  inputValue={dataSpaceSearchText}
276
270
  onChange={onDataSpaceOptionChange}
277
271
  value={selectedDataSpaceOption}
278
- placeholder="Search for data space by name..."
272
+ placeholder="Search for data space..."
279
273
  escapeClearsValue={true}
280
274
  darkMode={!applicationStore.TEMPORARY__isLightThemeEnabled}
281
- filterOption={dataSpaceFilterOption}
282
275
  formatOptionLabel={formatDataSpaceOptionLabel}
283
276
  />
284
277
  </div>
@@ -17,25 +17,22 @@
17
17
  import { observer, useLocalObservable } from 'mobx-react-lite';
18
18
  import { getQueryParameters } from '@finos/legend-shared';
19
19
  import { useApplicationStore } from '@finos/legend-application';
20
- import {
21
- parseGAVCoordinates,
22
- useDepotServerClient,
23
- } from '@finos/legend-server-depot';
20
+ import { useDepotServerClient } from '@finos/legend-server-depot';
24
21
  import {
25
22
  LEGEND_QUERY_PATH_PARAM_TOKEN,
26
23
  QueryEditor,
27
24
  QueryEditorStoreContext,
28
25
  useLegendQueryApplicationStore,
29
- useLegendQueryBaseStore,
30
26
  } from '@finos/legend-application-query';
31
27
  import { useParams } from 'react-router';
32
- import { DataSpaceQueryCreatorStore } from '../../stores/query/DataSpaceQueryCreatorStore.js';
28
+ import { DataSpaceQueryCreatorStore } from '../../stores/query/DSL_DataSpace_DataSpaceQueryCreatorStore.js';
33
29
  import {
34
30
  type DataSpaceQueryCreatorPathParams,
35
31
  type DataSpaceQueryEditorQueryParams,
36
32
  DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN,
37
33
  DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN,
38
- } from '../../stores/query/DSLDataSpace_LegendQueryRouter.js';
34
+ } from '../../stores/query/DSL_DataSpace_LegendQueryRouter.js';
35
+ import { parseGAVCoordinates } from '@finos/legend-storage';
39
36
 
40
37
  const DataSpaceQueryCreatorStoreProvider: React.FC<{
41
38
  children: React.ReactNode;
@@ -55,13 +52,11 @@ const DataSpaceQueryCreatorStoreProvider: React.FC<{
55
52
  const { groupId, artifactId, versionId } = parseGAVCoordinates(gav);
56
53
  const applicationStore = useLegendQueryApplicationStore();
57
54
  const depotServerClient = useDepotServerClient();
58
- const baseStore = useLegendQueryBaseStore();
59
55
  const store = useLocalObservable(
60
56
  () =>
61
57
  new DataSpaceQueryCreatorStore(
62
58
  applicationStore,
63
59
  depotServerClient,
64
- baseStore.pluginManager,
65
60
  groupId,
66
61
  artifactId,
67
62
  versionId,
@@ -26,17 +26,16 @@ import {
26
26
  ArrowLeftIcon,
27
27
  CustomSelectorInput,
28
28
  SearchIcon,
29
- createFilter,
30
29
  } from '@finos/legend-art';
31
30
  import { useQuerySetupStore } from '@finos/legend-application-query';
32
- import { generateGAVCoordinates } from '@finos/legend-server-depot';
31
+ import { generateGAVCoordinates } from '@finos/legend-storage';
33
32
  import { debounce } from '@finos/legend-shared';
34
33
  import { flowResult } from 'mobx';
35
34
  import { observer } from 'mobx-react-lite';
36
35
  import { useEffect, useMemo, useRef, useState } from 'react';
37
- import type { DataSpaceQuerySetupState } from '../../stores/query/DataSpaceQuerySetupState.js';
38
- import { DataSpaceViewer } from '../DataSpaceViewer.js';
39
- import type { DataSpaceInfo } from '../../stores/query/DataSpaceInfo.js';
36
+ import type { DataSpaceQuerySetupState } from '../../stores/query/DSL_DataSpace_DataSpaceQuerySetupState.js';
37
+ import { DataSpaceViewer } from '../DSL_DataSpace_DataSpaceViewer.js';
38
+ import type { DataSpaceInfo } from '../../stores/query/DSL_DataSpace_DataSpaceInfo.js';
40
39
 
41
40
  type DataSpaceOption = { label: string; value: DataSpaceInfo };
42
41
  const buildDataSpaceOption = (value: DataSpaceInfo): DataSpaceOption => ({
@@ -70,7 +69,6 @@ export const DataspaceQuerySetup = observer(
70
69
 
71
70
  const back = (): void => {
72
71
  setupStore.setSetupState(undefined);
73
- querySetupState.setCurrentDataSpace(undefined);
74
72
  };
75
73
 
76
74
  // data space
@@ -83,12 +81,6 @@ export const DataspaceQuerySetup = observer(
83
81
  querySetupState.setCurrentDataSpace(option?.value);
84
82
  querySetupState.setDataSpaceViewerState(undefined);
85
83
  };
86
- const filterOption = createFilter({
87
- ignoreCase: true,
88
- ignoreAccents: false,
89
- stringify: (option: DataSpaceOption): string =>
90
- `${option.label} - ${option.value.path}`,
91
- });
92
84
  const formatDataSpaceOptionLabel = (
93
85
  option: DataSpaceOption,
94
86
  ): React.ReactNode => (
@@ -173,7 +165,7 @@ export const DataspaceQuerySetup = observer(
173
165
  })}
174
166
  onClick={next}
175
167
  disabled={!canProceed}
176
- title="Proceed"
168
+ title="Create a new query"
177
169
  >
178
170
  <ArrowRightIcon />
179
171
  </button>
@@ -192,11 +184,10 @@ export const DataspaceQuerySetup = observer(
192
184
  inputValue={searchText}
193
185
  onChange={onDataSpaceOptionChange}
194
186
  value={selectedDataSpaceOption}
195
- placeholder="Search for data space by name..."
187
+ placeholder="Search for data space..."
196
188
  isClearable={true}
197
189
  escapeClearsValue={true}
198
190
  darkMode={true}
199
- filterOption={filterOption}
200
191
  formatOptionLabel={formatDataSpaceOptionLabel}
201
192
  />
202
193
  <button
@@ -23,25 +23,26 @@ import {
23
23
  type QuerySetupState,
24
24
  type QuerySetupStore,
25
25
  type ExistingQueryEditorStateBuilder,
26
+ type ExistingQueryEditorStore,
26
27
  LegendQueryApplicationPlugin,
27
28
  generateExistingQueryEditorRoute,
28
29
  LegendQueryEventService,
29
30
  LEGEND_QUERY_APP_EVENT,
30
31
  } from '@finos/legend-application-query';
31
32
  import { SquareIcon } from '@finos/legend-art';
32
- import { DataSpaceQuerySetupState } from '../../stores/query/DataSpaceQuerySetupState.js';
33
- import { DataspaceQuerySetup } from './DataSpaceQuerySetup.js';
33
+ import { DataSpaceQuerySetupState } from '../../stores/query/DSL_DataSpace_DataSpaceQuerySetupState.js';
34
+ import { DataspaceQuerySetup } from './DSL_DataSpace_DataSpaceQuerySetup.js';
34
35
  import {
35
36
  ActionAlertActionType,
36
37
  ActionAlertType,
37
38
  type ApplicationPageEntry,
38
39
  } from '@finos/legend-application';
39
- import { CREATE_QUERY_FROM_DATA_SPACE_ROUTE_PATTERN } from '../../stores/query/DSLDataSpace_LegendQueryRouter.js';
40
- import { DataSpaceQueryCreator } from './DataSpaceQueryCreator.js';
40
+ import { CREATE_QUERY_FROM_DATA_SPACE_ROUTE_PATTERN } from '../../stores/query/DSL_DataSpace_LegendQueryRouter.js';
41
+ import { DataSpaceQueryCreator } from './DSL_DataSpace_DataSpaceQueryCreator.js';
41
42
  import {
42
43
  createQueryDataSpaceTaggedValue,
43
44
  DataSpaceQueryCreatorStore,
44
- } from '../../stores/query/DataSpaceQueryCreatorStore.js';
45
+ } from '../../stores/query/DSL_DataSpace_DataSpaceQueryCreatorStore.js';
45
46
  import {
46
47
  Query,
47
48
  extractElementNameFromPath,
@@ -50,14 +51,14 @@ import {
50
51
  import {
51
52
  QUERY_PROFILE_PATH,
52
53
  QUERY_PROFILE_TAG_DATA_SPACE,
53
- } from '../../DSLDataSpace_Const.js';
54
- import { DataSpaceQueryBuilderState } from '../../stores/query/DataSpaceQueryBuilderState.js';
55
- import type { DataSpaceInfo } from '../../stores/query/DataSpaceInfo.js';
56
- import { getOwnDataSpace } from '../../graphManager/DSLDataSpace_GraphManagerHelper.js';
54
+ } from '../../DSL_DataSpace_Const.js';
55
+ import { DataSpaceQueryBuilderState } from '../../stores/query/DSL_DataSpace_DataSpaceQueryBuilderState.js';
56
+ import type { DataSpaceInfo } from '../../stores/query/DSL_DataSpace_DataSpaceInfo.js';
57
+ import { getOwnDataSpace } from '../../graphManager/DSL_DataSpace_GraphManagerHelper.js';
57
58
  import { assertErrorThrown, LogEvent, uuid } from '@finos/legend-shared';
58
59
  import type { QueryBuilderState } from '@finos/legend-query-builder';
59
60
 
60
- export class DSLDataSpace_LegendQueryApplicationPlugin extends LegendQueryApplicationPlugin {
61
+ export class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryApplicationPlugin {
61
62
  constructor() {
62
63
  super(packageJson.extensions.queryApplicationPlugin, packageJson.version);
63
64
  }
@@ -134,7 +135,7 @@ export class DSLDataSpace_LegendQueryApplicationPlugin extends LegendQueryApplic
134
135
  return [
135
136
  (
136
137
  query: Query,
137
- editorStore: QueryEditorStore,
138
+ editorStore: ExistingQueryEditorStore,
138
139
  ): QueryBuilderState | undefined => {
139
140
  const dataSpaceTaggedValue = query.taggedValues?.find(
140
141
  (taggedValue) =>
@@ -222,7 +223,7 @@ export class DSLDataSpace_LegendQueryApplicationPlugin extends LegendQueryApplic
222
223
  } catch (error) {
223
224
  assertErrorThrown(error);
224
225
  editorStore.applicationStore.log.error(
225
- LogEvent.create(LEGEND_QUERY_APP_EVENT.QUERY_PROBLEM),
226
+ LogEvent.create(LEGEND_QUERY_APP_EVENT.GENERIC_FAILURE),
226
227
  error,
227
228
  );
228
229
  editorStore.applicationStore.notifyError(error);
@@ -42,21 +42,21 @@ import {
42
42
  import {
43
43
  DataSpace,
44
44
  DataSpaceExecutionContext,
45
- } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
46
- import { DSL_DATA_SPACE_LEGEND_STUDIO_DOCUMENTATION_KEY } from './DSLDataSpace_LegendStudioDocumentation.js';
45
+ } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
46
+ import { DSL_DATA_SPACE_LEGEND_STUDIO_DOCUMENTATION_KEY } from './DSL_DataSpace_LegendStudioDocumentation.js';
47
47
  import {
48
48
  PURE_GRAMMAR_DATA_SPACE_ELEMENT_TYPE_LABEL,
49
49
  PURE_GRAMMAR_DATA_SPACE_PARSER_NAME,
50
- } from '../../graphManager/DSLDataSpace_PureGraphManagerPlugin.js';
51
- import { SIMPLE_DATA_SPACE_SNIPPET } from './DSLDataSpace_CodeSnippets.js';
50
+ } from '../../graphManager/DSL_DataSpace_PureGraphManagerPlugin.js';
51
+ import { SIMPLE_DATA_SPACE_SNIPPET } from './DSL_DataSpace_CodeSnippets.js';
52
52
  import type { DocumentationEntry } from '@finos/legend-application';
53
- import { DataSpaceIcon } from '../DSLDataSpace_Icon.js';
53
+ import { DataSpaceIcon } from '../DSL_DataSpace_Icon.js';
54
54
 
55
55
  const DATA_SPACE_ELEMENT_TYPE = 'DATA SPACE';
56
56
  const DATA_SPACE_ELEMENT_PROJECT_EXPLORER_DND_TYPE =
57
57
  'PROJECT_EXPLORER_DATA_SPACE';
58
58
 
59
- export class DSLDataSpace_LegendStudioApplicationPlugin
59
+ export class DSL_DataSpace_LegendStudioApplicationPlugin
60
60
  extends LegendStudioApplicationPlugin
61
61
  implements DSL_LegendStudioApplicationPlugin_Extension
62
62
  {
@@ -15,11 +15,11 @@
15
15
  */
16
16
 
17
17
  import packageJson from '../../package.json';
18
- import { DataSpace } from '../graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
18
+ import { DataSpace } from '../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
19
19
  import type { Clazz } from '@finos/legend-shared';
20
20
  import { type PackageableElement, PureGraphPlugin } from '@finos/legend-graph';
21
21
 
22
- export class DSLDataSpace_PureGraphPlugin extends PureGraphPlugin {
22
+ export class DSL_DataSpace_PureGraphPlugin extends PureGraphPlugin {
23
23
  constructor() {
24
24
  super(packageJson.extensions.pureGraphPlugin, packageJson.version);
25
25
  }
@@ -22,7 +22,7 @@ import {
22
22
  type PackageableRuntime,
23
23
  type PackageableElementVisitor,
24
24
  } from '@finos/legend-graph';
25
- import { DATA_SPACE_HASH_STRUCTURE } from '../../../../../DSLDataSpace_HashUtils.js';
25
+ import { DATA_SPACE_HASH_STRUCTURE } from '../../../../../DSL_DataSpace_HashUtils.js';
26
26
  import type { Diagram } from '@finos/legend-extension-dsl-diagram';
27
27
 
28
28
  export abstract class DataSpaceSupportInfo implements Hashable {
@@ -16,7 +16,7 @@
16
16
 
17
17
  import type { BasicModel, PureModel } from '@finos/legend-graph';
18
18
  import { guaranteeNonNullable } from '@finos/legend-shared';
19
- import { DataSpace } from '../graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
19
+ import { DataSpace } from '../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
20
20
 
21
21
  export const getDataSpace = (path: string, graph: PureModel): DataSpace =>
22
22
  graph.getExtensionElement(path, DataSpace, `Can't find data space '${path}'`);
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  import packageJson from '../../package.json';
18
- import { DataSpace } from '../graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
18
+ import { DataSpace } from '../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
19
19
  import {
20
20
  PureGraphManagerPlugin,
21
21
  type ObserverContext,
@@ -24,19 +24,19 @@ import {
24
24
  type PureGrammarElementLabeler,
25
25
  type PureGraphManagerExtensionBuilder,
26
26
  } from '@finos/legend-graph';
27
- import { observe_DataSpace } from './action/changeDetection/DSLDataSpace_ObserverHelper.js';
28
- import { DSLDataSpace_buildGraphManagerExtension } from './protocol/pure/DSLDataSpace_PureGraphManagerExtensionBuilder.js';
27
+ import { observe_DataSpace } from './action/changeDetection/DSL_DataSpace_ObserverHelper.js';
28
+ import { DSL_DataSpace_buildGraphManagerExtension } from './protocol/pure/DSL_DataSpace_PureGraphManagerExtensionBuilder.js';
29
29
 
30
30
  export const PURE_GRAMMAR_DATA_SPACE_PARSER_NAME = 'DataSpace';
31
31
  export const PURE_GRAMMAR_DATA_SPACE_ELEMENT_TYPE_LABEL = 'DataSpace';
32
32
 
33
- export class DSLDataSpace_PureGraphManagerPlugin extends PureGraphManagerPlugin {
33
+ export class DSL_DataSpace_PureGraphManagerPlugin extends PureGraphManagerPlugin {
34
34
  constructor() {
35
35
  super(packageJson.extensions.pureGraphManagerPlugin, packageJson.version);
36
36
  }
37
37
 
38
38
  override getExtraPureGraphManagerExtensionBuilders(): PureGraphManagerExtensionBuilder[] {
39
- return [DSLDataSpace_buildGraphManagerExtension];
39
+ return [DSL_DataSpace_buildGraphManagerExtension];
40
40
  }
41
41
 
42
42
  override getExtraPureGrammarParserNames(): string[] {
@@ -21,7 +21,7 @@ import type {
21
21
  PureModel,
22
22
  } from '@finos/legend-graph';
23
23
  import { uuid } from '@finos/legend-shared';
24
- import type { DataSpaceSupportInfo } from '../../../graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
24
+ import type { DataSpaceSupportInfo } from '../../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
25
25
 
26
26
  export class DataSpaceExecutionContextAnalysisResult {
27
27
  name!: string;
@@ -0,0 +1,43 @@
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 { getExpectedArtifactGenerationExtensionOutputPath } from '@finos/legend-graph';
18
+ import type { DepotServerClient } from '@finos/legend-server-depot';
19
+ import type { PlainObject } from '@finos/legend-shared';
20
+ import type { DataSpaceAnalysisResult } from './DSL_DataSpace_DataSpaceAnalysis.js';
21
+
22
+ const DATASPACE_ANALYTICS_FILE_NAME = 'AnalyticsResult.json';
23
+ const V1_DATASPACE_ANALYTICS_ARTIFACT_EXTENSION_KEY = 'dataSpace-analytics';
24
+
25
+ export const retrieveAnalyticsResultCache = async (
26
+ groupId: string,
27
+ artifactId: string,
28
+ versionId: string,
29
+ dataSpacePath: string,
30
+ depotServerClient: DepotServerClient,
31
+ ): Promise<PlainObject<DataSpaceAnalysisResult>> =>
32
+ JSON.parse(
33
+ await depotServerClient.getGenerationContentByPath(
34
+ groupId,
35
+ artifactId,
36
+ versionId,
37
+ getExpectedArtifactGenerationExtensionOutputPath(
38
+ dataSpacePath,
39
+ V1_DATASPACE_ANALYTICS_ARTIFACT_EXTENSION_KEY,
40
+ DATASPACE_ANALYTICS_FILE_NAME,
41
+ ),
42
+ ),
43
+ );