@finos/legend-graph 9.0.0 → 10.1.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 (210) hide show
  1. package/lib/DSLData_Exports.d.ts +2 -1
  2. package/lib/DSLData_Exports.d.ts.map +1 -1
  3. package/lib/DSLData_Exports.js +2 -1
  4. package/lib/DSLData_Exports.js.map +1 -1
  5. package/lib/DSLMapping_Exports.d.ts +4 -0
  6. package/lib/DSLMapping_Exports.d.ts.map +1 -1
  7. package/lib/DSLMapping_Exports.js +4 -0
  8. package/lib/DSLMapping_Exports.js.map +1 -1
  9. package/lib/DSLService_Exports.d.ts +7 -0
  10. package/lib/DSLService_Exports.d.ts.map +1 -1
  11. package/lib/DSLService_Exports.js +7 -0
  12. package/lib/DSLService_Exports.js.map +1 -1
  13. package/lib/MetaModelConst.d.ts +7 -4
  14. package/lib/MetaModelConst.d.ts.map +1 -1
  15. package/lib/MetaModelConst.js +8 -4
  16. package/lib/MetaModelConst.js.map +1 -1
  17. package/lib/graph/PureGraphPlugin.d.ts +1 -1
  18. package/lib/graph/PureGraphPlugin.js +1 -1
  19. package/lib/graphManager/AbstractPureGraphManager.d.ts +20 -11
  20. package/lib/graphManager/AbstractPureGraphManager.d.ts.map +1 -1
  21. package/lib/graphManager/AbstractPureGraphManager.js +13 -0
  22. package/lib/graphManager/AbstractPureGraphManager.js.map +1 -1
  23. package/lib/graphManager/PureGraphManagerPlugin.d.ts +7 -4
  24. package/lib/graphManager/PureGraphManagerPlugin.d.ts.map +1 -1
  25. package/lib/graphManager/PureGraphManagerPlugin.js +1 -1
  26. package/lib/graphManager/PureGraphManagerPlugin.js.map +1 -1
  27. package/lib/graphManager/action/analytics/MappingAnalytics.d.ts +41 -0
  28. package/lib/graphManager/action/analytics/MappingAnalytics.d.ts.map +1 -0
  29. package/lib/graphManager/action/analytics/MappingAnalytics.js +58 -0
  30. package/lib/graphManager/action/analytics/MappingAnalytics.js.map +1 -0
  31. package/lib/graphManager/action/changeDetection/DSLData_ObserverHelper.d.ts +2 -3
  32. package/lib/graphManager/action/changeDetection/DSLData_ObserverHelper.d.ts.map +1 -1
  33. package/lib/graphManager/action/changeDetection/DSLData_ObserverHelper.js +8 -21
  34. package/lib/graphManager/action/changeDetection/DSLData_ObserverHelper.js.map +1 -1
  35. package/lib/graphManager/action/changeDetection/DSLService_ObserverHelper.d.ts.map +1 -1
  36. package/lib/graphManager/action/changeDetection/DSLService_ObserverHelper.js +2 -1
  37. package/lib/graphManager/action/changeDetection/DSLService_ObserverHelper.js.map +1 -1
  38. package/lib/graphManager/action/changeDetection/Testable_ObserverHelper.d.ts.map +1 -1
  39. package/lib/graphManager/action/changeDetection/Testable_ObserverHelper.js +3 -13
  40. package/lib/graphManager/action/changeDetection/Testable_ObserverHelper.js.map +1 -1
  41. package/lib/graphManager/action/creation/DSLExternalFormat_ModelCreatorHelper.d.ts +18 -0
  42. package/lib/graphManager/action/creation/DSLExternalFormat_ModelCreatorHelper.d.ts.map +1 -0
  43. package/lib/graphManager/action/creation/DSLExternalFormat_ModelCreatorHelper.js +17 -0
  44. package/lib/graphManager/action/creation/DSLExternalFormat_ModelCreatorHelper.js.map +1 -0
  45. package/lib/graphManager/action/creation/DSLMapping_ModelCreatorHelper.d.ts +2 -0
  46. package/lib/graphManager/action/creation/DSLMapping_ModelCreatorHelper.d.ts.map +1 -1
  47. package/lib/graphManager/action/creation/DSLMapping_ModelCreatorHelper.js +2 -0
  48. package/lib/graphManager/action/creation/DSLMapping_ModelCreatorHelper.js.map +1 -1
  49. package/lib/helpers/Testable_Helper.d.ts +3 -0
  50. package/lib/helpers/Testable_Helper.d.ts.map +1 -1
  51. package/lib/helpers/Testable_Helper.js +3 -0
  52. package/lib/helpers/Testable_Helper.js.map +1 -1
  53. package/lib/helpers/ValueSpecificationHelper.d.ts +10 -3
  54. package/lib/helpers/ValueSpecificationHelper.d.ts.map +1 -1
  55. package/lib/helpers/ValueSpecificationHelper.js +59 -4
  56. package/lib/helpers/ValueSpecificationHelper.js.map +1 -1
  57. package/lib/index.d.ts +7 -1
  58. package/lib/index.d.ts.map +1 -1
  59. package/lib/index.js +7 -1
  60. package/lib/index.js.map +1 -1
  61. package/lib/models/metamodels/pure/data/EmbeddedData.d.ts +2 -2
  62. package/lib/models/metamodels/pure/data/EmbeddedData.d.ts.map +1 -1
  63. package/lib/models/metamodels/pure/data/{RelationalData.d.ts → RelationalCSVData.d.ts} +6 -15
  64. package/lib/models/metamodels/pure/data/RelationalCSVData.d.ts.map +1 -0
  65. package/lib/models/metamodels/pure/data/{RelationalData.js → RelationalCSVData.js} +10 -30
  66. package/lib/models/metamodels/pure/data/RelationalCSVData.js.map +1 -0
  67. package/lib/models/metamodels/pure/packageableElements/service/ServiceTest.d.ts +1 -0
  68. package/lib/models/metamodels/pure/packageableElements/service/ServiceTest.d.ts.map +1 -1
  69. package/lib/models/metamodels/pure/packageableElements/service/ServiceTest.js +2 -0
  70. package/lib/models/metamodels/pure/packageableElements/service/ServiceTest.js.map +1 -1
  71. package/lib/models/metamodels/pure/test/Test.d.ts +3 -1
  72. package/lib/models/metamodels/pure/test/Test.d.ts.map +1 -1
  73. package/lib/models/metamodels/pure/test/Test.js +2 -1
  74. package/lib/models/metamodels/pure/test/Test.js.map +1 -1
  75. package/lib/models/metamodels/pure/test/assertion/EqualToTDS.d.ts +2 -8
  76. package/lib/models/metamodels/pure/test/assertion/EqualToTDS.d.ts.map +1 -1
  77. package/lib/models/metamodels/pure/test/assertion/EqualToTDS.js +0 -11
  78. package/lib/models/metamodels/pure/test/assertion/EqualToTDS.js.map +1 -1
  79. package/lib/models/protocols/pure/DSLExternalFormat_PureProtocolProcessorPlugin.d.ts +3 -2
  80. package/lib/models/protocols/pure/DSLExternalFormat_PureProtocolProcessorPlugin.d.ts.map +1 -1
  81. package/lib/models/protocols/pure/DSLExternalFormat_PureProtocolProcessorPlugin.js +6 -1
  82. package/lib/models/protocols/pure/DSLExternalFormat_PureProtocolProcessorPlugin.js.map +1 -1
  83. package/lib/models/protocols/pure/PureProtocolProcessorPlugin.d.ts +12 -3
  84. package/lib/models/protocols/pure/PureProtocolProcessorPlugin.d.ts.map +1 -1
  85. package/lib/models/protocols/pure/PureProtocolProcessorPlugin.js +1 -1
  86. package/lib/models/protocols/pure/PureProtocolProcessorPlugin.js.map +1 -1
  87. package/lib/models/protocols/pure/v1/V1_PureGraphManager.d.ts +19 -10
  88. package/lib/models/protocols/pure/v1/V1_PureGraphManager.d.ts.map +1 -1
  89. package/lib/models/protocols/pure/v1/V1_PureGraphManager.js +112 -139
  90. package/lib/models/protocols/pure/v1/V1_PureGraphManager.js.map +1 -1
  91. package/lib/models/protocols/pure/v1/engine/V1_Engine.d.ts +4 -1
  92. package/lib/models/protocols/pure/v1/engine/V1_Engine.d.ts.map +1 -1
  93. package/lib/models/protocols/pure/v1/engine/V1_Engine.js +11 -3
  94. package/lib/models/protocols/pure/v1/engine/V1_Engine.js.map +1 -1
  95. package/lib/models/protocols/pure/v1/engine/V1_EngineServerClient.d.ts +2 -0
  96. package/lib/models/protocols/pure/v1/engine/V1_EngineServerClient.d.ts.map +1 -1
  97. package/lib/models/protocols/pure/v1/engine/V1_EngineServerClient.js +3 -0
  98. package/lib/models/protocols/pure/v1/engine/V1_EngineServerClient.js.map +1 -1
  99. package/lib/models/protocols/pure/v1/engine/analytics/V1_MappingAnalytics.d.ts +40 -0
  100. package/lib/models/protocols/pure/v1/engine/analytics/V1_MappingAnalytics.d.ts.map +1 -0
  101. package/lib/models/protocols/pure/v1/engine/analytics/V1_MappingAnalytics.js +94 -0
  102. package/lib/models/protocols/pure/v1/engine/analytics/V1_MappingAnalytics.js.map +1 -0
  103. package/lib/models/protocols/pure/v1/engine/{V1_ExecutionHelper.d.ts → execution/V1_ExecutionHelper.d.ts} +2 -2
  104. package/lib/models/protocols/pure/v1/engine/execution/V1_ExecutionHelper.d.ts.map +1 -0
  105. package/lib/models/protocols/pure/v1/engine/{V1_ExecutionHelper.js → execution/V1_ExecutionHelper.js} +2 -2
  106. package/lib/models/protocols/pure/v1/engine/execution/V1_ExecutionHelper.js.map +1 -0
  107. package/lib/models/protocols/pure/v1/model/data/V1_EmbeddedData.d.ts +2 -2
  108. package/lib/models/protocols/pure/v1/model/data/V1_EmbeddedData.d.ts.map +1 -1
  109. package/lib/models/protocols/pure/v1/model/data/{V1_RelationalData.d.ts → V1_RelationalCSVData.d.ts} +6 -15
  110. package/lib/models/protocols/pure/v1/model/data/V1_RelationalCSVData.d.ts.map +1 -0
  111. package/lib/models/protocols/pure/v1/model/data/{V1_RelationalData.js → V1_RelationalCSVData.js} +9 -29
  112. package/lib/models/protocols/pure/v1/model/data/V1_RelationalCSVData.js.map +1 -0
  113. package/lib/models/protocols/pure/v1/model/packageableElements/service/V1_ServiceTest.d.ts +1 -0
  114. package/lib/models/protocols/pure/v1/model/packageableElements/service/V1_ServiceTest.d.ts.map +1 -1
  115. package/lib/models/protocols/pure/v1/model/packageableElements/service/V1_ServiceTest.js +2 -0
  116. package/lib/models/protocols/pure/v1/model/packageableElements/service/V1_ServiceTest.js.map +1 -1
  117. package/lib/models/protocols/pure/v1/model/test/assertion/V1_EqualToTDS.d.ts +2 -8
  118. package/lib/models/protocols/pure/v1/model/test/assertion/V1_EqualToTDS.d.ts.map +1 -1
  119. package/lib/models/protocols/pure/v1/model/test/assertion/V1_EqualToTDS.js +0 -11
  120. package/lib/models/protocols/pure/v1/model/test/assertion/V1_EqualToTDS.js.map +1 -1
  121. package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_DataElementTransformer.d.ts.map +1 -1
  122. package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_DataElementTransformer.js +12 -21
  123. package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_DataElementTransformer.js.map +1 -1
  124. package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_ServiceTransformer.d.ts.map +1 -1
  125. package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_ServiceTransformer.js +1 -0
  126. package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_ServiceTransformer.js.map +1 -1
  127. package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_TestTransformer.d.ts.map +1 -1
  128. package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_TestTransformer.js +2 -4
  129. package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_TestTransformer.js.map +1 -1
  130. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphSecondPassBuilder.d.ts.map +1 -1
  131. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphSecondPassBuilder.js +5 -1
  132. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphSecondPassBuilder.js.map +1 -1
  133. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DataElementBuilderHelper.d.ts +2 -2
  134. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DataElementBuilderHelper.d.ts.map +1 -1
  135. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DataElementBuilderHelper.js +6 -15
  136. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DataElementBuilderHelper.js.map +1 -1
  137. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper.d.ts +1 -0
  138. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper.d.ts.map +1 -1
  139. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper.js +2 -1
  140. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper.js.map +1 -1
  141. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.d.ts +5 -5
  142. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.d.ts.map +1 -1
  143. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.js +11 -9
  144. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.js.map +1 -1
  145. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestBuilderHelper.d.ts +2 -3
  146. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestBuilderHelper.d.ts.map +1 -1
  147. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestBuilderHelper.js +10 -15
  148. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestBuilderHelper.js.map +1 -1
  149. package/lib/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataElementSerializationHelper.d.ts +1 -4
  150. package/lib/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataElementSerializationHelper.d.ts.map +1 -1
  151. package/lib/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataElementSerializationHelper.js +7 -14
  152. package/lib/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataElementSerializationHelper.js.map +1 -1
  153. package/lib/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.d.ts.map +1 -1
  154. package/lib/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.js +2 -1
  155. package/lib/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.js.map +1 -1
  156. package/lib/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.d.ts.map +1 -1
  157. package/lib/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.js +3 -7
  158. package/lib/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.js.map +1 -1
  159. package/lib/package.json +8 -4
  160. package/package.json +11 -7
  161. package/src/DSLData_Exports.ts +3 -0
  162. package/src/DSLMapping_Exports.ts +4 -0
  163. package/src/DSLService_Exports.ts +10 -0
  164. package/src/MetaModelConst.ts +10 -4
  165. package/src/graph/PureGraphPlugin.ts +1 -1
  166. package/src/graphManager/AbstractPureGraphManager.ts +48 -20
  167. package/src/graphManager/PureGraphManagerPlugin.ts +18 -8
  168. package/src/graphManager/action/analytics/MappingAnalytics.ts +71 -0
  169. package/src/graphManager/action/changeDetection/DSLData_ObserverHelper.ts +12 -33
  170. package/src/graphManager/action/changeDetection/DSLService_ObserverHelper.ts +2 -1
  171. package/src/graphManager/action/changeDetection/Testable_ObserverHelper.ts +3 -23
  172. package/src/graphManager/action/creation/DSLExternalFormat_ModelCreatorHelper.ts +21 -0
  173. package/src/graphManager/action/creation/DSLMapping_ModelCreatorHelper.ts +4 -0
  174. package/src/helpers/Testable_Helper.ts +4 -0
  175. package/src/helpers/ValueSpecificationHelper.ts +106 -10
  176. package/src/index.ts +13 -1
  177. package/src/models/metamodels/pure/data/EmbeddedData.ts +2 -2
  178. package/src/models/metamodels/pure/data/{RelationalData.ts → RelationalCSVData.ts} +10 -33
  179. package/src/models/metamodels/pure/packageableElements/service/ServiceTest.ts +2 -0
  180. package/src/models/metamodels/pure/test/Test.ts +3 -1
  181. package/src/models/metamodels/pure/test/assertion/EqualToTDS.ts +4 -19
  182. package/src/models/protocols/pure/DSLExternalFormat_PureProtocolProcessorPlugin.ts +15 -2
  183. package/src/models/protocols/pure/PureProtocolProcessorPlugin.ts +17 -3
  184. package/src/models/protocols/pure/v1/V1_PureGraphManager.ts +306 -292
  185. package/src/models/protocols/pure/v1/engine/V1_Engine.ts +24 -3
  186. package/src/models/protocols/pure/v1/engine/V1_EngineServerClient.ts +18 -0
  187. package/src/models/protocols/pure/v1/engine/analytics/V1_MappingAnalytics.ts +168 -0
  188. package/src/models/protocols/pure/v1/engine/{V1_ExecutionHelper.ts → execution/V1_ExecutionHelper.ts} +2 -2
  189. package/src/models/protocols/pure/v1/model/data/V1_EmbeddedData.ts +2 -2
  190. package/src/models/protocols/pure/v1/model/data/{V1_RelationalData.ts → V1_RelationalCSVData.ts} +9 -33
  191. package/src/models/protocols/pure/v1/model/packageableElements/service/V1_ServiceTest.ts +2 -0
  192. package/src/models/protocols/pure/v1/model/test/assertion/V1_EqualToTDS.ts +3 -19
  193. package/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_DataElementTransformer.ts +20 -31
  194. package/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_ServiceTransformer.ts +1 -0
  195. package/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_TestTransformer.ts +2 -7
  196. package/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphSecondPassBuilder.ts +7 -1
  197. package/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DataElementBuilderHelper.ts +10 -22
  198. package/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper.ts +7 -4
  199. package/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.ts +27 -24
  200. package/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestBuilderHelper.ts +16 -26
  201. package/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataElementSerializationHelper.ts +10 -27
  202. package/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.ts +2 -0
  203. package/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.ts +3 -15
  204. package/tsconfig.json +6 -3
  205. package/lib/models/metamodels/pure/data/RelationalData.d.ts.map +0 -1
  206. package/lib/models/metamodels/pure/data/RelationalData.js.map +0 -1
  207. package/lib/models/protocols/pure/v1/engine/V1_ExecutionHelper.d.ts.map +0 -1
  208. package/lib/models/protocols/pure/v1/engine/V1_ExecutionHelper.js.map +0 -1
  209. package/lib/models/protocols/pure/v1/model/data/V1_RelationalData.d.ts.map +0 -1
  210. package/lib/models/protocols/pure/v1/model/data/V1_RelationalData.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"V1_PureGraphManager.d.ts","sourceRoot":"","sources":["../../../../../src/models/protocols/pure/v1/V1_PureGraphManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EAEL,KAAK,GAAG,EACR,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,aAAa,EAYd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,oEAAoE,CAAC;AAC1H,OAAO,EACL,wBAAwB,EACxB,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACtB,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,iEAAiE,CAAC;AAC1F,OAAO,EACL,KAAK,OAAO,EAEb,MAAM,iEAAiE,CAAC;AACzE,OAAO,KAAK,EACV,8BAA8B,EAC9B,UAAU,EACX,MAAM,8EAA8E,CAAC;AACtF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oEAAoE,CAAC;AAC7G,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,SAAS,EACV,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8DAA8D,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAE,MAAM,6DAA6D,CAAC;AACxF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yEAAyE,CAAC;AACrH,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4FAA4F,CAAC;AAC9I,OAAO,KAAK,EACV,kCAAkC,EAClC,cAAc,EACf,MAAM,kFAAkF,C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,OAAO,CAAC,sBAAsB,CAiB5B;CACH"}
1
+ {"version":3,"file":"V1_PureGraphManager.d.ts","sourceRoot":"","sources":["../../../../../src/models/protocols/pure/v1/V1_PureGraphManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EAEL,KAAK,GAAG,EACR,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,aAAa,EAgBd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,oEAAoE,CAAC;AAC1H,OAAO,EACL,wBAAwB,EACxB,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACtB,MAAM,sDAAsD,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iEAAiE,CAAC;AAC/F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iEAAiE,CAAC;AAC/F,OAAO,KAAK,EACV,8BAA8B,EAC9B,UAAU,EACX,MAAM,8EAA8E,CAAC;AACtF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oEAAoE,CAAC;AAC7G,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,SAAS,EACV,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8DAA8D,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAE,MAAM,6DAA6D,CAAC;AACxF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yEAAyE,CAAC;AACrH,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4FAA4F,CAAC;AAC9I,OAAO,KAAK,EACV,kCAAkC,EAClC,cAAc,EACf,MAAM,kFAAkF,CAAC;AAC1F,OAAO,KAAK,E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A0B5E,+BAA+B,IAAI,SAAS;YAe9B,8BAA8B;IAY5C,OAAO,CAAC,qBAAqB;IAe7B,OAAO,CAAC,iBAAiB,CAYhB;IAET,OAAO,CAAC,8BAA8B,CAKlC;IAEJ,OAAO,CAAC,uBAAuB,CAS5B;IAEH,OAAO,CAAC,cAAc,CAgBpB;IAEF,OAAO,CAAC,uBAAuB,CAkD7B;IAEF,OAAO,CAAC,2BAA2B,CAmBjC;IAEF,OAAO,CAAC,sBAAsB,CAiB5B;CACH"}
@@ -15,14 +15,12 @@
15
15
  */
16
16
  import { GRAPH_MANAGER_EVENT } from '../../../../graphManager/GraphManagerEvent.js';
17
17
  import { CORE_PURE_PATH, ELEMENT_PATH_DELIMITER, PackageableElementPointerType, } from '../../../../MetaModelConst.js';
18
- import { TracerService, LogEvent, getClass, guaranteeNonNullable, UnsupportedOperationError, assertTrue, assertErrorThrown, promisify, StopWatch, filterByType, isNonNullable, guaranteeNonEmptyString, } from '@finos/legend-shared';
18
+ import { TracerService, LogEvent, getClass, guaranteeNonNullable, UnsupportedOperationError, assertTrue, assertErrorThrown, promisify, StopWatch, filterByType, isNonNullable, addUniqueEntry, uuid, deleteEntry, assertType, uniq, } from '@finos/legend-shared';
19
19
  import { AbstractPureGraphManager, } from '../../../../graphManager/AbstractPureGraphManager.js';
20
- import { Mapping } from '../../../metamodels/pure/packageableElements/mapping/Mapping.js';
21
- import { EngineRuntime, } from '../../../metamodels/pure/packageableElements/runtime/Runtime.js';
22
20
  import { PureModel, } from '../../../../graph/PureModel.js';
23
21
  import { RawLambda } from '../../../metamodels/pure/rawValueSpecification/RawLambda.js';
24
22
  import { ServiceExecutionMode } from '../../../../graphManager/action/service/ServiceExecutionMode.js';
25
- import { KeyedExecutionParameter, PureMultiExecution, PureSingleExecution, } from '../../../metamodels/pure/packageableElements/service/ServiceExecution.js';
23
+ import { PureMultiExecution, PureSingleExecution, } from '../../../metamodels/pure/packageableElements/service/ServiceExecution.js';
26
24
  import { V1_deserializeRawValueSpecification, V1_serializeRawValueSpecification, } from './transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper.js';
27
25
  import { V1_serializeValueSpecification, V1_deserializeValueSpecification, } from './transformation/pureProtocol/serializationHelpers/V1_ValueSpecificationSerializer.js';
28
26
  import V1_CORE_SYSTEM_MODELS from './V1_Core_SystemModels.json';
@@ -69,30 +67,28 @@ import { V1_transformRelationalDatabaseConnection } from './transformation/pureG
69
67
  import { V1_FlatData } from './model/packageableElements/store/flatData/model/V1_FlatData.js';
70
68
  import { V1_Database } from './model/packageableElements/store/relational/model/V1_Database.js';
71
69
  import { V1_setupDatabaseSerialization } from './transformation/pureProtocol/serializationHelpers/V1_DatabaseSerializationHelper.js';
72
- import { V1_PACKAGEABLE_RUNTIME_ELEMENT_PROTOCOL_TYPE, V1_setupEngineRuntimeSerialization, V1_setupLegacyRuntimeSerialization, } from './transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.js';
70
+ import { V1_setupEngineRuntimeSerialization, V1_setupLegacyRuntimeSerialization, } from './transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.js';
73
71
  import { V1_GraphTransformerContextBuilder } from './transformation/pureGraph/from/V1_GraphTransformerContext.js';
74
72
  import { V1_transformExecutionNode, V1_transformExecutionPlan, } from './transformation/pureGraph/from/executionPlan/V1_ExecutionPlanTransformer.js';
75
73
  import { V1_deserializeExecutionPlan, V1_serializeExecutionNode, V1_serializeExecutionPlan, } from './transformation/pureProtocol/serializationHelpers/executionPlan/V1_ExecutionPlanSerializationHelper.js';
76
74
  import { V1_buildExecutionPlan } from './transformation/pureGraph/to/V1_ExecutionPlanBuilder.js';
77
75
  import { V1_buildQuery, V1_buildLegacyServiceTestResult, V1_buildServiceRegistrationResult, V1_transformQuery, V1_buildGenerationOutput, V1_buildLightQuery, V1_transformQuerySearchSpecification, } from './engine/V1_EngineHelper.js';
78
- import { V1_buildExecutionResult } from './engine/V1_ExecutionHelper.js';
76
+ import { V1_buildExecutionResult } from './engine/execution/V1_ExecutionHelper.js';
79
77
  import { ENTITY_PATH_DELIMITER, } from '@finos/legend-model-storage';
80
- import { DependencyGraphBuilderError, GraphBuilderError, SystemGraphBuilderError, } from '../../../../graphManager/GraphManagerUtils.js';
81
- import { PackageableElementExplicitReference, PackageableElementReference, } from '../../../metamodels/pure/packageableElements/PackageableElementReference.js';
78
+ import { DependencyGraphBuilderError, GraphBuilderError, PureClientVersion, SystemGraphBuilderError, } from '../../../../graphManager/GraphManagerUtils.js';
79
+ import { PackageableElementReference } from '../../../metamodels/pure/packageableElements/PackageableElementReference.js';
82
80
  import { V1_ExternalFormatModelGenerationInput } from './engine/externalFormat/V1_ExternalFormatModelGeneration.js';
83
81
  import { GraphBuilderReport } from '../../../../graphManager/GraphBuilderReport.js';
84
- import { V1_PureMultiExecution, V1_PureSingleExecution, } from './model/packageableElements/service/V1_ServiceExecution.js';
85
- import { V1_MAPPING_ELEMENT_PROTOCOL_TYPE } from './transformation/pureProtocol/serializationHelpers/V1_MappingSerializationHelper.js';
86
- import { V1_SERVICE_ELEMENT_PROTOCOL_TYPE } from './transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.js';
87
- import { MappingInclude } from '../../../metamodels/pure/packageableElements/mapping/MappingInclude.js';
88
82
  import { V1_DataElement } from './model/packageableElements/data/V1_DataElement.js';
89
83
  import { V1_RunTestsInput, V1_RunTestsTestableInput, } from './engine/test/V1_RunTestsInput.js';
90
84
  import { V1_AtomicTestId } from './model/test/V1_AtomicTestId.js';
91
85
  import { V1_buildTestsResult } from './engine/test/V1_RunTestsResult.js';
92
- import { stub_RawLambda } from '../../../../graphManager/action/creation/RawValueSpecificationCreatorHelper.js';
86
+ import { TestFailed, } from '../../../metamodels/pure/test/result/TestResult.js';
93
87
  import { getNullableIDFromTestable, getNullableTestable, } from '../../../../helpers/Testable_Helper.js';
94
- import { V1_getIncludedMappingPath } from './helper/V1_DSLMapping_Helper.js';
88
+ import { TestSuite, } from '../../../metamodels/pure/test/Test.js';
95
89
  import { pruneSourceInformation } from '../../../../MetaModelUtils.js';
90
+ import { V1_buildModelCoverageAnalysisResult, V1_MappingModelCoverageAnalysisInput, V1_MappingModelCoverageAnalysisResult, } from './engine/analytics/V1_MappingAnalytics.js';
91
+ import { deserialize } from 'serializr';
96
92
  const V1_FUNCTION_SUFFIX_MULTIPLICITY_INFINITE = 'MANY';
97
93
  const getMultiplicitySuffix = (multiplicity) => {
98
94
  if (multiplicity.lowerBound === multiplicity.upperBound) {
@@ -242,13 +238,17 @@ const indexPureModelContextData = (report, data, extensions) => {
242
238
  return index;
243
239
  };
244
240
  export class V1_PureGraphManager extends AbstractPureGraphManager {
241
+ // Organizing these constants will help with configuring
242
+ // target protocol version in the future
243
+ // See https://github.com/finos/legend-studio/issues/475
244
+ static TARGET_PROTOCOL_VERSION = PureClientVersion.VX_X_X;
245
245
  engine;
246
- extensions;
246
+ graphBuilderExtensions;
247
247
  constructor(pluginManager, log) {
248
248
  super(pluginManager, log);
249
249
  this.engine = new V1_Engine({}, log);
250
250
  // setup plugins
251
- this.extensions = new V1_GraphBuilderExtensions(this.pluginManager.getPureProtocolProcessorPlugins());
251
+ this.graphBuilderExtensions = new V1_GraphBuilderExtensions(this.pluginManager.getPureProtocolProcessorPlugins());
252
252
  // setup serialization plugins
253
253
  V1_setupPureModelContextDataSerialization(this.pluginManager.getPureProtocolProcessorPlugins());
254
254
  V1_setupDatabaseSerialization(this.pluginManager.getPureProtocolProcessorPlugins());
@@ -266,6 +266,9 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
266
266
  .setTracerService(options?.tracerService ?? new TracerService());
267
267
  await this.engine.setup(config);
268
268
  }
269
+ getSupportedProtocolVersion() {
270
+ return PureClientVersion.V1_0_0;
271
+ }
269
272
  // --------------------------------------------- Graph Builder ---------------------------------------------
270
273
  async buildSystem(coreModel, systemModel, buildState, options) {
271
274
  const stopWatch = new StopWatch();
@@ -285,7 +288,7 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
285
288
  const buildInputs = [
286
289
  {
287
290
  model: systemModel,
288
- data: indexPureModelContextData(report, systemData, this.extensions),
291
+ data: indexPureModelContextData(report, systemData, this.graphBuilderExtensions),
289
292
  },
290
293
  ];
291
294
  // build
@@ -328,7 +331,7 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
328
331
  // prepare build inputs
329
332
  const buildInputs = Array.from(dependencyDataMap.entries()).map(([dependencyKey, dependencyData]) => ({
330
333
  model: graph.dependencyManager.getModel(dependencyKey),
331
- data: indexPureModelContextData(report, dependencyData, this.extensions),
334
+ data: indexPureModelContextData(report, dependencyData, this.graphBuilderExtensions),
332
335
  }));
333
336
  // build
334
337
  await this.buildGraphFromInputs(graph, buildInputs, report, stopWatch, buildState, options);
@@ -364,7 +367,7 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
364
367
  const buildInputs = [
365
368
  {
366
369
  model: graph,
367
- data: indexPureModelContextData(report, data, this.extensions),
370
+ data: indexPureModelContextData(report, data, this.graphBuilderExtensions),
368
371
  },
369
372
  ];
370
373
  // build
@@ -418,7 +421,7 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
418
421
  // prepare build inputs
419
422
  const buildInputs = Array.from(generatedDataMap.entries()).map(([generationParentPath, generatedData]) => ({
420
423
  model: generatedModel,
421
- data: indexPureModelContextData(report, generatedData, this.extensions),
424
+ data: indexPureModelContextData(report, generatedData, this.graphBuilderExtensions),
422
425
  }));
423
426
  // build
424
427
  await this.buildGraphFromInputs(graph, buildInputs, report, stopWatch, buildState, options);
@@ -487,7 +490,7 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
487
490
  stopWatch.record(GRAPH_MANAGER_EVENT.GRAPH_BUILDER_OTHER_ELEMENTS_BUILT);
488
491
  }
489
492
  getBuilderContext(graph, currentSubGraph, element, options) {
490
- return new V1_GraphBuilderContextBuilder(graph, currentSubGraph, this.extensions, this.log, options)
493
+ return new V1_GraphBuilderContextBuilder(graph, currentSubGraph, this.graphBuilderExtensions, this.log, options)
491
494
  .withElement(element)
492
495
  .build();
493
496
  }
@@ -510,7 +513,7 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
510
513
  // create the package cache
511
514
  const packageCache = new Map();
512
515
  await Promise.all(input.data.nativeElements.map((element) => this.visitWithGraphBuilderErrorHandling(element, new V1_ProtocolToMetaModelGraphFirstPassBuilder(this.getBuilderContext(graph, input.model, element, options), packageCache, elementPathCache))));
513
- await Promise.all(this.extensions.sortedExtraElementBuilders.flatMap(async (builder) => (input.data.otherElementsByBuilder.get(builder) ?? []).map((element) => this.visitWithGraphBuilderErrorHandling(element, new V1_ProtocolToMetaModelGraphFirstPassBuilder(this.getBuilderContext(graph, input.model, element, options), packageCache, elementPathCache)))));
516
+ await Promise.all(this.graphBuilderExtensions.sortedExtraElementBuilders.flatMap(async (builder) => (input.data.otherElementsByBuilder.get(builder) ?? []).map((element) => this.visitWithGraphBuilderErrorHandling(element, new V1_ProtocolToMetaModelGraphFirstPassBuilder(this.getBuilderContext(graph, input.model, element, options), packageCache, elementPathCache)))));
514
517
  }));
515
518
  }
516
519
  async buildTypes(graph, inputs, options) {
@@ -561,7 +564,7 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
561
564
  await Promise.all(inputs.flatMap((input) => input.data.sectionIndices.map((element) => this.visitWithGraphBuilderErrorHandling(element, new V1_ProtocolToMetaModelGraphSecondPassBuilder(this.getBuilderContext(graph, input.model, element, options))))));
562
565
  }
563
566
  async buildOtherElements(graph, inputs, options) {
564
- await Promise.all(this.extensions.sortedExtraElementBuilders.map(async (builder) => {
567
+ await Promise.all(this.graphBuilderExtensions.sortedExtraElementBuilders.map(async (builder) => {
565
568
  await Promise.all(inputs.flatMap((input) => (input.data.otherElementsByBuilder.get(builder) ?? []).map((element) => this.visitWithGraphBuilderErrorHandling(element, new V1_ProtocolToMetaModelGraphSecondPassBuilder(this.getBuilderContext(graph, input.model, element, options))))));
566
569
  await Promise.all(inputs.flatMap((input) => (input.data.otherElementsByBuilder.get(builder) ?? []).map((element) => this.visitWithGraphBuilderErrorHandling(element, new V1_ProtocolToMetaModelGraphThirdPassBuilder(this.getBuilderContext(graph, input.model, element, options))))));
567
570
  await Promise.all(inputs.flatMap((input) => (input.data.otherElementsByBuilder.get(builder) ?? []).map((element) => this.visitWithGraphBuilderErrorHandling(element, new V1_ProtocolToMetaModelGraphFourthPassBuilder(this.getBuilderContext(graph, input.model, element, options))))));
@@ -706,9 +709,39 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
706
709
  const result = V1_buildTestsResult(runTestsResult, (id) => getNullableTestable(id, graph, this.pluginManager.getPureGraphManagerPlugins()));
707
710
  return result;
708
711
  }
712
+ async generateExpectedResult(testable, test, baseAssertion, graph) {
713
+ const id = uuid();
714
+ try {
715
+ baseAssertion.id = id;
716
+ addUniqueEntry(test.assertions, baseAssertion);
717
+ const runTestsInput = new V1_RunTestsInput();
718
+ runTestsInput.model = this.getFullGraphModelData(graph);
719
+ const runTestableInput = new V1_RunTestsTestableInput();
720
+ const unitAtomicTest = new V1_AtomicTestId();
721
+ runTestableInput.testable = guaranteeNonNullable(getNullableIDFromTestable(testable, graph, this.pluginManager.getPureGraphManagerPlugins()));
722
+ runTestsInput.testables = [runTestableInput];
723
+ const parent = test.__parent;
724
+ unitAtomicTest.testSuiteId =
725
+ parent instanceof TestSuite ? parent.id : undefined;
726
+ unitAtomicTest.atomicTestId = test.id;
727
+ const runTestsResult = await this.engine.runTests(runTestsInput);
728
+ const results = V1_buildTestsResult(runTestsResult, (_id) => getNullableTestable(_id, graph, this.pluginManager.getPureGraphManagerPlugins()));
729
+ const result = results[0];
730
+ assertType(result, TestFailed);
731
+ const status = result.assertStatuses.find((e) => e.assertion === baseAssertion);
732
+ return guaranteeNonNullable(status);
733
+ }
734
+ catch (error) {
735
+ assertErrorThrown(error);
736
+ throw error;
737
+ }
738
+ finally {
739
+ deleteEntry(test.assertions, baseAssertion);
740
+ }
741
+ }
709
742
  // ------------------------------------------- ValueSpecification -------------------------------------------
710
743
  buildValueSpecification(json, graph) {
711
- return V1_buildValueSpecification(V1_deserializeValueSpecification(json), new V1_GraphBuilderContextBuilder(graph, graph, this.extensions, this.log).build());
744
+ return V1_buildValueSpecification(V1_deserializeValueSpecification(json), new V1_GraphBuilderContextBuilder(graph, graph, this.graphBuilderExtensions, this.log).build());
712
745
  }
713
746
  serializeValueSpecification(valueSpecification) {
714
747
  return V1_serializeValueSpecification(V1_transformRootValueSpecification(valueSpecification));
@@ -718,7 +751,7 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
718
751
  const json = this.serializeValueSpecification(valueSpecification);
719
752
  // deserialize json and builds metamodal raw value spec
720
753
  const rawValueSpecification = V1_deserializeRawValueSpecification(json);
721
- return rawValueSpecification.accept_RawValueSpecificationVisitor(new V1_ProtocolToMetaModelRawValueSpecificationBuilder(new V1_GraphBuilderContextBuilder(graph, graph, this.extensions, this.log).build()));
754
+ return rawValueSpecification.accept_RawValueSpecificationVisitor(new V1_ProtocolToMetaModelRawValueSpecificationBuilder(new V1_GraphBuilderContextBuilder(graph, graph, this.graphBuilderExtensions, this.log).build()));
722
755
  }
723
756
  serializeRawValueSpecification(metamodel) {
724
757
  return V1_serializeRawValueSpecification(metamodel.accept_RawValueSpecificationVisitor(new V1_RawValueSpecificationTransformer(new V1_GraphTransformerContextBuilder(this.pluginManager.getPureProtocolProcessorPlugins()).build())));
@@ -779,15 +812,14 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
779
812
  * object to identify relevant classes yet. so the more economical way to to base on the classification above and the knowledge about hierarchy between
780
813
  * models (e.g. service can use mapping, runtime, connection, store, etc.) we can roughly prune the graph model data by group. Following is an example
781
814
  * for mapping used for execution, but this can generalized if we introduce hierarchy/ranking for model type
782
- *
783
815
  */
784
816
  const graphData = this.getFullGraphModelData(graph);
785
817
  const prunedGraphData = new V1_PureModelContextData();
786
818
  const extraExecutionElements = this.pluginManager
787
819
  .getPureProtocolProcessorPlugins()
788
- .flatMap((element) => element.V1_getExtraExecutionInputGetters?.() ?? [])
820
+ .flatMap((element) => element.V1_getExtraExecutionInputCollectors?.() ?? [])
789
821
  .flatMap((getter) => getter(graph, mapping, runtime, graphData));
790
- prunedGraphData.elements = graphData.elements
822
+ prunedGraphData.elements = uniq(graphData.elements
791
823
  .filter((element) => element instanceof V1_Class ||
792
824
  element instanceof V1_Enumeration ||
793
825
  element instanceof V1_Profile ||
@@ -798,7 +830,7 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
798
830
  element instanceof V1_PackageableConnection ||
799
831
  element instanceof V1_PackageableRuntime ||
800
832
  element instanceof V1_Mapping)
801
- .concat(extraExecutionElements);
833
+ .concat(extraExecutionElements));
802
834
  // NOTE: for execution, we usually will just assume that we send the connections embedded in the runtime value, since we don't want the user to have to create
803
835
  // packageable runtime and connection just to play with execution.
804
836
  executeInput.clientVersion = clientVersion;
@@ -809,28 +841,28 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
809
841
  executeInput.context = new V1_RawBaseExecutionContext(); // TODO: potentially need to support more types
810
842
  return executeInput;
811
843
  };
812
- async executeMapping(graph, mapping, lambda, runtime, clientVersion, options) {
813
- return V1_buildExecutionResult(await this.engine.executeMapping(this.createExecutionInput(graph, mapping, lambda, runtime, clientVersion), options));
844
+ async executeMapping(graph, mapping, lambda, runtime, options) {
845
+ return V1_buildExecutionResult(await this.engine.executeMapping(this.createExecutionInput(graph, mapping, lambda, runtime, V1_PureGraphManager.TARGET_PROTOCOL_VERSION), options));
814
846
  }
815
- generateMappingTestData(graph, mapping, lambda, runtime, clientVersion, parameters, options) {
847
+ generateExecuteTestData(graph, mapping, lambda, runtime, parameters, options) {
816
848
  const testDataGenerationExecuteInput = new V1_TestDataGenerationExecutionInput();
817
- this.buildExecutionInput(graph, mapping, lambda, runtime, clientVersion, testDataGenerationExecuteInput);
849
+ this.buildExecutionInput(graph, mapping, lambda, runtime, V1_PureGraphManager.TARGET_PROTOCOL_VERSION, testDataGenerationExecuteInput);
818
850
  testDataGenerationExecuteInput.parameters = parameters;
819
851
  testDataGenerationExecuteInput.hashStrings = Boolean(options?.anonymizeGeneratedData);
820
- return this.engine.generateMappingTestData(testDataGenerationExecuteInput);
852
+ return this.engine.generateExecuteTestData(testDataGenerationExecuteInput);
821
853
  }
822
- generateExecutionPlan(graph, mapping, lambda, runtime, clientVersion) {
823
- return this.engine.generateExecutionPlan(this.createExecutionInput(graph, mapping, lambda, runtime, clientVersion));
854
+ generateExecutionPlan(graph, mapping, lambda, runtime) {
855
+ return this.engine.generateExecutionPlan(this.createExecutionInput(graph, mapping, lambda, runtime, V1_PureGraphManager.TARGET_PROTOCOL_VERSION));
824
856
  }
825
- async debugExecutionPlanGeneration(graph, mapping, lambda, runtime, clientVersion) {
826
- const result = await this.engine.debugExecutionPlanGeneration(this.createExecutionInput(graph, mapping, lambda, runtime, clientVersion));
857
+ async debugExecutionPlanGeneration(graph, mapping, lambda, runtime) {
858
+ const result = await this.engine.debugExecutionPlanGeneration(this.createExecutionInput(graph, mapping, lambda, runtime, V1_PureGraphManager.TARGET_PROTOCOL_VERSION));
827
859
  return {
828
860
  plan: result.plan,
829
861
  debug: result.debug.join('\n'),
830
862
  };
831
863
  }
832
864
  buildExecutionPlan(executionPlanJson, graph) {
833
- return V1_buildExecutionPlan(V1_deserializeExecutionPlan(executionPlanJson), new V1_GraphBuilderContextBuilder(graph, graph, this.extensions, this.log).build());
865
+ return V1_buildExecutionPlan(V1_deserializeExecutionPlan(executionPlanJson), new V1_GraphBuilderContextBuilder(graph, graph, this.graphBuilderExtensions, this.log).build());
834
866
  }
835
867
  serializeExecutionPlan(executionPlan) {
836
868
  return V1_serializeExecutionPlan(V1_transformExecutionPlan(executionPlan, new V1_GraphTransformerContextBuilder(this.pluginManager.getPureProtocolProcessorPlugins()).build()));
@@ -915,10 +947,10 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
915
947
  };
916
948
  // --------------------------------------------- Query ---------------------------------------------
917
949
  async searchQueries(searchSpecification) {
918
- return (await this.engine.searchQueries(V1_transformQuerySearchSpecification(searchSpecification))).map((protocol) => V1_buildLightQuery(protocol, this.engine.getEngineServerClient().currentUserId));
950
+ return (await this.engine.searchQueries(V1_transformQuerySearchSpecification(searchSpecification))).map((protocol) => V1_buildLightQuery(protocol, this.engine.getCurrentUserId()));
919
951
  }
920
952
  async getLightQuery(queryId) {
921
- return V1_buildLightQuery(await this.engine.getQuery(queryId), this.engine.getEngineServerClient().currentUserId);
953
+ return V1_buildLightQuery(await this.engine.getQuery(queryId), this.engine.getCurrentUserId());
922
954
  }
923
955
  // TODO: we could potentially reshape this method to build light graph with just indexing
924
956
  // and return a slightly more complicated object instead: separating the graph and the dependencies part instead of
@@ -941,7 +973,7 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
941
973
  return V1_entitiesToPureModelContextData(value, projectModelData, this.pluginManager.getPureProtocolProcessorPlugins());
942
974
  }));
943
975
  const dependencyGraphBuilderInput = Array.from(dependencyDataMap.entries()).map(([dependencyKey, dependencyData]) => ({
944
- data: indexPureModelContextData(report, dependencyData, this.extensions),
976
+ data: indexPureModelContextData(report, dependencyData, this.graphBuilderExtensions),
945
977
  model: graph.dependencyManager.getModel(dependencyKey),
946
978
  }));
947
979
  // build main pmcd
@@ -950,7 +982,7 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
950
982
  const mainGraphBuilderInput = [
951
983
  {
952
984
  model: graph,
953
- data: indexPureModelContextData(report, data, this.extensions),
985
+ data: indexPureModelContextData(report, data, this.graphBuilderExtensions),
954
986
  },
955
987
  ];
956
988
  const graphBuilderInput = [
@@ -960,110 +992,18 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
960
992
  await this.initializeAndIndexElements(graph, graphBuilderInput);
961
993
  return graphBuilderInput;
962
994
  }
963
- // We could optimize this further by omitting parts of the entities we don't need
964
- async buildGraphForCreateQuerySetup(graph, entities, dependencyEntities) {
965
- try {
966
- const graphBuilderInput = await this.indexEntitiesWithDependencyIntoGraph(graph, entities, dependencyEntities, (entity) => entity.content
967
- ._type === V1_MAPPING_ELEMENT_PROTOCOL_TYPE ||
968
- entity.content
969
- ._type === V1_PACKAGEABLE_RUNTIME_ELEMENT_PROTOCOL_TYPE);
970
- // handle mapping includes
971
- const mappings = [
972
- ...graph.ownMappings,
973
- ...graph.dependencyManager.mappings,
974
- ];
975
- const v1Mappings = graphBuilderInput
976
- .map((e) => e.data.elements.filter(filterByType(V1_Mapping)))
977
- .flat();
978
- const context = new V1_GraphBuilderContextBuilder(graph, graph, this.extensions, this.log).build();
979
- // build include index for compatible runtime analysis
980
- v1Mappings.forEach((element) => {
981
- const mapping = mappings.find((e) => e.path === element.path);
982
- if (mapping) {
983
- mapping.includes = element.includedMappings.map((i) => new MappingInclude(mapping, context.resolveMapping(guaranteeNonEmptyString(V1_getIncludedMappingPath(i), `Mapping include path is missing or empty`))));
984
- }
985
- });
986
- // handle runtimes
987
- const runtimes = [
988
- ...graph.ownRuntimes,
989
- ...graph.dependencyManager.runtimes,
990
- ];
991
- const v1Runtimes = graphBuilderInput
992
- .map((e) => e.data.elements.filter(filterByType(V1_PackageableRuntime)))
993
- .flat();
994
- v1Runtimes.forEach((element) => {
995
- const runtime = runtimes.find((e) => e.path === element.path);
996
- if (runtime) {
997
- const runtimeValue = new EngineRuntime();
998
- runtime.runtimeValue = runtimeValue;
999
- runtimeValue.mappings = element.runtimeValue.mappings.map((mapping) => context.resolveMapping(mapping.path));
1000
- }
1001
- });
1002
- }
1003
- catch (error) {
1004
- assertErrorThrown(error);
1005
- /**
1006
- * Wrap all error with `GraphBuilderError`, as we throw a lot of assertion error in the graph builder
1007
- * But we might want to rethink this decision in the future and throw appropriate type of error
1008
- */
1009
- throw error instanceof GraphBuilderError
1010
- ? error
1011
- : new GraphBuilderError(error);
1012
- }
1013
- }
1014
- // We could optimize this further by omitting parts of the entities we don't need
1015
- // i.e service entity would only keep execution
1016
- async buildGraphForServiceQuerySetup(graph, entities, dependencyEntities) {
1017
- try {
1018
- const graphBuilderInput = await this.indexEntitiesWithDependencyIntoGraph(graph, entities, dependencyEntities, (entity) => entity.content
1019
- ._type === V1_SERVICE_ELEMENT_PROTOCOL_TYPE);
1020
- // handle servicess
1021
- const services = [
1022
- ...graph.ownServices,
1023
- ...graph.dependencyManager.services,
1024
- ];
1025
- const v1Services = graphBuilderInput
1026
- .map((e) => e.data.elements.filter(filterByType(V1_Service)))
1027
- .flat();
1028
- // build service multi execution keys
1029
- v1Services.forEach((element) => {
1030
- const service = services.find((e) => e.path === element.path);
1031
- if (service) {
1032
- const serviceExecution = element.execution;
1033
- if (serviceExecution instanceof V1_PureMultiExecution) {
1034
- const execution = new PureMultiExecution(serviceExecution.executionKey, stub_RawLambda(), service);
1035
- execution.executionParameters =
1036
- serviceExecution.executionParameters.map((keyedExecutionParameter) => new KeyedExecutionParameter(keyedExecutionParameter.key, PackageableElementExplicitReference.create(new Mapping('')), new EngineRuntime()));
1037
- service.execution = execution;
1038
- }
1039
- else if (serviceExecution instanceof V1_PureSingleExecution) {
1040
- service.execution = new PureSingleExecution(stub_RawLambda(), service, PackageableElementExplicitReference.create(new Mapping('')), new EngineRuntime());
1041
- }
1042
- }
1043
- });
1044
- }
1045
- catch (error) {
1046
- assertErrorThrown(error);
1047
- /**
1048
- * Wrap all error with `GraphBuilderError`, as we throw a lot of assertion error in the graph builder
1049
- * But we might want to rethink this decision in the future and throw appropriate type of error
1050
- */
1051
- throw error instanceof GraphBuilderError
1052
- ? error
1053
- : new GraphBuilderError(error);
1054
- }
1055
- }
995
+ // --------------------------------------------- Query ------------------------------------------------------
1056
996
  async getQuery(queryId, graph) {
1057
- return V1_buildQuery(await this.engine.getQuery(queryId), graph, this.engine.getEngineServerClient().currentUserId);
997
+ return V1_buildQuery(await this.engine.getQuery(queryId), graph, this.engine.getCurrentUserId());
1058
998
  }
1059
999
  async getQueryContent(queryId) {
1060
1000
  return (await this.engine.getQuery(queryId)).content;
1061
1001
  }
1062
1002
  async createQuery(query, graph) {
1063
- return V1_buildQuery(await this.engine.createQuery(V1_transformQuery(query)), graph, this.engine.getEngineServerClient().currentUserId);
1003
+ return V1_buildQuery(await this.engine.createQuery(V1_transformQuery(query)), graph, this.engine.getCurrentUserId());
1064
1004
  }
1065
1005
  async updateQuery(query, graph) {
1066
- return V1_buildQuery(await this.engine.updateQuery(V1_transformQuery(query)), graph, this.engine.getEngineServerClient().currentUserId);
1006
+ return V1_buildQuery(await this.engine.updateQuery(V1_transformQuery(query)), graph, this.engine.getCurrentUserId());
1067
1007
  }
1068
1008
  async deleteQuery(queryId) {
1069
1009
  await this.engine.deleteQuery(queryId);
@@ -1076,6 +1016,39 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
1076
1016
  await Promise.all(pureModelContextData.elements.map((element) => promisify(() => hashMap.set(element.path, element.hashCode))));
1077
1017
  return hashMap;
1078
1018
  }
1019
+ // ---------------------------------------- Analysis ----------------------------------------
1020
+ buildMappingModelCoverageAnalysisInputContextData = (graph) => {
1021
+ const graphData = this.getFullGraphModelData(graph);
1022
+ const prunedGraphData = new V1_PureModelContextData();
1023
+ const extraElements = this.pluginManager
1024
+ .getPureProtocolProcessorPlugins()
1025
+ .flatMap((element) => element.V1_getExtraMappingModelCoverageAnalysisInputCollectors?.() ??
1026
+ [])
1027
+ .flatMap((getter) => getter(graph, graphData));
1028
+ prunedGraphData.elements = uniq(this.getFullGraphModelData(graph)
1029
+ .elements.filter((element) => element instanceof V1_Class ||
1030
+ element instanceof V1_Enumeration ||
1031
+ element instanceof V1_Profile ||
1032
+ element instanceof V1_Association ||
1033
+ element instanceof V1_ConcreteFunctionDefinition ||
1034
+ element instanceof V1_Measure ||
1035
+ element instanceof V1_Store ||
1036
+ element instanceof V1_Mapping)
1037
+ .concat(extraElements));
1038
+ return prunedGraphData;
1039
+ };
1040
+ async analyzeMappingModelCoverage(graph, mapping) {
1041
+ const modelCoverageAnalysisInput = new V1_MappingModelCoverageAnalysisInput();
1042
+ modelCoverageAnalysisInput.clientVersion =
1043
+ V1_PureGraphManager.TARGET_PROTOCOL_VERSION;
1044
+ modelCoverageAnalysisInput.mapping = mapping.path;
1045
+ modelCoverageAnalysisInput.model =
1046
+ this.buildMappingModelCoverageAnalysisInputContextData(graph);
1047
+ return V1_buildModelCoverageAnalysisResult(await this.engine.analyzeMappingModelCoverage(modelCoverageAnalysisInput));
1048
+ }
1049
+ buildMappingModelCoverageAnalysisResult(input) {
1050
+ return V1_buildModelCoverageAnalysisResult(deserialize(V1_MappingModelCoverageAnalysisResult, input));
1051
+ }
1079
1052
  // --------------------------------------------- Utilities ---------------------------------------------
1080
1053
  elementToEntity = (element, options) => {
1081
1054
  const entity = this.elementProtocolToEntity(this.elementToProtocol(element));