@finos/legend-graph 29.0.1 → 29.0.3

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 (274) hide show
  1. package/lib/__lib__/GraphManagerEvent.d.ts +2 -1
  2. package/lib/__lib__/GraphManagerEvent.d.ts.map +1 -1
  3. package/lib/__lib__/GraphManagerEvent.js +2 -1
  4. package/lib/__lib__/GraphManagerEvent.js.map +1 -1
  5. package/lib/graph/BasicModel.d.ts +7 -1
  6. package/lib/graph/BasicModel.d.ts.map +1 -1
  7. package/lib/graph/BasicModel.js +23 -1
  8. package/lib/graph/BasicModel.js.map +1 -1
  9. package/lib/graph/Core_HashUtils.d.ts +3 -1
  10. package/lib/graph/Core_HashUtils.d.ts.map +1 -1
  11. package/lib/graph/Core_HashUtils.js +3 -1
  12. package/lib/graph/Core_HashUtils.js.map +1 -1
  13. package/lib/graph/DependencyManager.d.ts +4 -1
  14. package/lib/graph/DependencyManager.d.ts.map +1 -1
  15. package/lib/graph/DependencyManager.js +4 -0
  16. package/lib/graph/DependencyManager.js.map +1 -1
  17. package/lib/graph/MetaModelConst.d.ts +2 -1
  18. package/lib/graph/MetaModelConst.d.ts.map +1 -1
  19. package/lib/graph/MetaModelConst.js +1 -0
  20. package/lib/graph/MetaModelConst.js.map +1 -1
  21. package/lib/graph/PureModel.d.ts +4 -1
  22. package/lib/graph/PureModel.d.ts.map +1 -1
  23. package/lib/graph/PureModel.js +16 -1
  24. package/lib/graph/PureModel.js.map +1 -1
  25. package/lib/graph/helpers/DomainHelper.d.ts +5 -1
  26. package/lib/graph/helpers/DomainHelper.d.ts.map +1 -1
  27. package/lib/graph/helpers/DomainHelper.js +20 -0
  28. package/lib/graph/helpers/DomainHelper.js.map +1 -1
  29. package/lib/graph/helpers/PureLanguageHelper.d.ts +5 -2
  30. package/lib/graph/helpers/PureLanguageHelper.d.ts.map +1 -1
  31. package/lib/graph/helpers/PureLanguageHelper.js +7 -4
  32. package/lib/graph/helpers/PureLanguageHelper.js.map +1 -1
  33. package/lib/graph/metamodel/pure/packageableElements/PackageableElement.d.ts +3 -1
  34. package/lib/graph/metamodel/pure/packageableElements/PackageableElement.d.ts.map +1 -1
  35. package/lib/graph/metamodel/pure/packageableElements/PackageableElement.js.map +1 -1
  36. package/lib/graph/metamodel/pure/packageableElements/domain/PrimitiveType.d.ts +1 -0
  37. package/lib/graph/metamodel/pure/packageableElements/domain/PrimitiveType.d.ts.map +1 -1
  38. package/lib/graph/metamodel/pure/packageableElements/domain/PrimitiveType.js +1 -0
  39. package/lib/graph/metamodel/pure/packageableElements/domain/PrimitiveType.js.map +1 -1
  40. package/lib/graph/metamodel/pure/packageableElements/{domain → function}/ConcreteFunctionDefinition.d.ts +3 -3
  41. package/lib/graph/metamodel/pure/packageableElements/function/ConcreteFunctionDefinition.d.ts.map +1 -0
  42. package/lib/graph/metamodel/pure/packageableElements/{domain → function}/ConcreteFunctionDefinition.js +2 -2
  43. package/lib/graph/metamodel/pure/packageableElements/function/ConcreteFunctionDefinition.js.map +1 -0
  44. package/lib/graph/metamodel/pure/packageableElements/function/FunctionActivator.d.ts +29 -0
  45. package/lib/graph/metamodel/pure/packageableElements/function/FunctionActivator.d.ts.map +1 -0
  46. package/lib/graph/metamodel/pure/packageableElements/function/FunctionActivator.js +26 -0
  47. package/lib/graph/metamodel/pure/packageableElements/function/FunctionActivator.js.map +1 -0
  48. package/lib/graph/metamodel/pure/packageableElements/function/INTERNAL__UnknownFunctionActivator.d.ts +24 -0
  49. package/lib/graph/metamodel/pure/packageableElements/function/INTERNAL__UnknownFunctionActivator.d.ts.map +1 -0
  50. package/lib/graph/metamodel/pure/packageableElements/function/INTERNAL__UnknownFunctionActivator.js +33 -0
  51. package/lib/graph/metamodel/pure/packageableElements/function/INTERNAL__UnknownFunctionActivator.js.map +1 -0
  52. package/lib/graph/metamodel/pure/packageableElements/mapping/INTERNAL__UnknownMappingInclude.d.ts +24 -0
  53. package/lib/graph/metamodel/pure/packageableElements/mapping/INTERNAL__UnknownMappingInclude.d.ts.map +1 -0
  54. package/lib/graph/metamodel/pure/packageableElements/mapping/INTERNAL__UnknownMappingInclude.js +34 -0
  55. package/lib/graph/metamodel/pure/packageableElements/mapping/INTERNAL__UnknownMappingInclude.js.map +1 -0
  56. package/lib/graph/metamodel/pure/packageableElements/mapping/MappingInclude.d.ts +4 -5
  57. package/lib/graph/metamodel/pure/packageableElements/mapping/MappingInclude.d.ts.map +1 -1
  58. package/lib/graph/metamodel/pure/packageableElements/mapping/MappingInclude.js +3 -15
  59. package/lib/graph/metamodel/pure/packageableElements/mapping/MappingInclude.js.map +1 -1
  60. package/lib/graph/metamodel/pure/packageableElements/mapping/MappingIncludeMapping.d.ts +7 -0
  61. package/lib/graph/metamodel/pure/packageableElements/mapping/MappingIncludeMapping.d.ts.map +1 -0
  62. package/lib/graph/metamodel/pure/packageableElements/mapping/MappingIncludeMapping.js +32 -0
  63. package/lib/graph/metamodel/pure/packageableElements/mapping/MappingIncludeMapping.js.map +1 -0
  64. package/lib/graph/metamodel/pure/packageableElements/mapping/SubstituteStore.d.ts +3 -3
  65. package/lib/graph/metamodel/pure/packageableElements/mapping/SubstituteStore.d.ts.map +1 -1
  66. package/lib/graph/metamodel/pure/packageableElements/mapping/SubstituteStore.js.map +1 -1
  67. package/lib/graph/metamodel/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.d.ts +5 -0
  68. package/lib/graph/metamodel/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.d.ts.map +1 -1
  69. package/lib/graph/metamodel/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.js +6 -0
  70. package/lib/graph/metamodel/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.js.map +1 -1
  71. package/lib/graph-manager/AbstractPureGraphManager.d.ts +19 -13
  72. package/lib/graph-manager/AbstractPureGraphManager.d.ts.map +1 -1
  73. package/lib/graph-manager/AbstractPureGraphManager.js.map +1 -1
  74. package/lib/graph-manager/GraphManagerState.d.ts +1 -1
  75. package/lib/graph-manager/GraphManagerState.d.ts.map +1 -1
  76. package/lib/graph-manager/action/changeDetection/CoreObserverHelper.js +1 -1
  77. package/lib/graph-manager/action/changeDetection/CoreObserverHelper.js.map +1 -1
  78. package/lib/graph-manager/action/changeDetection/DSL_Data_ObserverHelper.js +1 -1
  79. package/lib/graph-manager/action/changeDetection/DSL_Data_ObserverHelper.js.map +1 -1
  80. package/lib/graph-manager/action/changeDetection/DSL_Mapping_ObserverHelper.d.ts.map +1 -1
  81. package/lib/graph-manager/action/changeDetection/DSL_Mapping_ObserverHelper.js +14 -9
  82. package/lib/graph-manager/action/changeDetection/DSL_Mapping_ObserverHelper.js.map +1 -1
  83. package/lib/graph-manager/action/changeDetection/DomainObserverHelper.d.ts +3 -1
  84. package/lib/graph-manager/action/changeDetection/DomainObserverHelper.d.ts.map +1 -1
  85. package/lib/graph-manager/action/changeDetection/DomainObserverHelper.js +7 -0
  86. package/lib/graph-manager/action/changeDetection/DomainObserverHelper.js.map +1 -1
  87. package/lib/graph-manager/action/changeDetection/GraphObserverHelper.d.ts.map +1 -1
  88. package/lib/graph-manager/action/changeDetection/GraphObserverHelper.js +4 -0
  89. package/lib/graph-manager/action/changeDetection/GraphObserverHelper.js.map +1 -1
  90. package/lib/graph-manager/action/changeDetection/PackageableElementObserver.d.ts.map +1 -1
  91. package/lib/graph-manager/action/changeDetection/PackageableElementObserver.js +4 -1
  92. package/lib/graph-manager/action/changeDetection/PackageableElementObserver.js.map +1 -1
  93. package/lib/graph-manager/action/changeDetection/STO_Relational_ObserverHelper.d.ts.map +1 -1
  94. package/lib/graph-manager/action/changeDetection/STO_Relational_ObserverHelper.js +4 -3
  95. package/lib/graph-manager/action/changeDetection/STO_Relational_ObserverHelper.js.map +1 -1
  96. package/lib/graph-manager/action/functionActivator/FunctionActivatorConfiguration.d.ts +26 -0
  97. package/lib/graph-manager/action/functionActivator/FunctionActivatorConfiguration.d.ts.map +1 -0
  98. package/lib/graph-manager/action/functionActivator/FunctionActivatorConfiguration.js +25 -0
  99. package/lib/graph-manager/action/functionActivator/FunctionActivatorConfiguration.js.map +1 -0
  100. package/lib/graph-manager/protocol/pure/extensions/DSL_Mapping_PureProtocolProcessorPlugin_Extension.d.ts +12 -0
  101. package/lib/graph-manager/protocol/pure/extensions/DSL_Mapping_PureProtocolProcessorPlugin_Extension.d.ts.map +1 -1
  102. package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.d.ts +18 -11
  103. package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.d.ts.map +1 -1
  104. package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.js +176 -121
  105. package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.js.map +1 -1
  106. package/lib/graph-manager/protocol/pure/v1/engine/V1_Engine.d.ts +5 -0
  107. package/lib/graph-manager/protocol/pure/v1/engine/V1_Engine.d.ts.map +1 -1
  108. package/lib/graph-manager/protocol/pure/v1/engine/V1_Engine.js +31 -2
  109. package/lib/graph-manager/protocol/pure/v1/engine/V1_Engine.js.map +1 -1
  110. package/lib/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.d.ts +19 -14
  111. package/lib/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.d.ts.map +1 -1
  112. package/lib/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.js +25 -19
  113. package/lib/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.js.map +1 -1
  114. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_FunctionActivatorError.d.ts +21 -0
  115. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_FunctionActivatorError.d.ts.map +1 -0
  116. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_FunctionActivatorError.js +25 -0
  117. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_FunctionActivatorError.js.map +1 -0
  118. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_FunctionActivatorInfo.d.ts +30 -0
  119. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_FunctionActivatorInfo.d.ts.map +1 -0
  120. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_FunctionActivatorInfo.js +41 -0
  121. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_FunctionActivatorInfo.js.map +1 -0
  122. package/lib/graph-manager/protocol/pure/v1/engine/{service/V1_TEMPORARY__SnowflakeServiceDeploymentInput.d.ts → functionActivator/V1_FunctionActivatorInput.d.ts} +4 -10
  123. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_FunctionActivatorInput.d.ts.map +1 -0
  124. package/lib/graph-manager/protocol/pure/v1/engine/{service/V1_TEMPORARY__SnowflakeServiceDeploymentInput.js → functionActivator/V1_FunctionActivatorInput.js} +7 -13
  125. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_FunctionActivatorInput.js.map +1 -0
  126. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.d.ts +2 -0
  127. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.d.ts.map +1 -1
  128. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.js.map +1 -1
  129. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_FunctionActivator.d.ts +21 -0
  130. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_FunctionActivator.d.ts.map +1 -0
  131. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_FunctionActivator.js +20 -0
  132. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_FunctionActivator.js.map +1 -0
  133. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_INTERNAL__UnknownFunctionActivator.d.ts +24 -0
  134. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_INTERNAL__UnknownFunctionActivator.d.ts.map +1 -0
  135. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_INTERNAL__UnknownFunctionActivator.js +33 -0
  136. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_INTERNAL__UnknownFunctionActivator.js.map +1 -0
  137. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/mapping/V1_INTERNAL__UnknownMappingInclude.d.ts +22 -0
  138. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/mapping/V1_INTERNAL__UnknownMappingInclude.d.ts.map +1 -0
  139. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/mapping/V1_INTERNAL__UnknownMappingInclude.js +28 -0
  140. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/mapping/V1_INTERNAL__UnknownMappingInclude.js.map +1 -0
  141. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/mapping/V1_MappingInclude.d.ts +4 -1
  142. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/mapping/V1_MappingInclude.d.ts.map +1 -1
  143. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/mapping/V1_MappingInclude.js +3 -1
  144. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/mapping/V1_MappingInclude.js.map +1 -1
  145. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection.d.ts +5 -0
  146. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection.d.ts.map +1 -1
  147. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection.js +6 -0
  148. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection.js.map +1 -1
  149. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.d.ts.map +1 -1
  150. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.js +1 -0
  151. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.js.map +1 -1
  152. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DomainTransformer.d.ts +1 -1
  153. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DomainTransformer.d.ts.map +1 -1
  154. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_MappingTransformer.d.ts.map +1 -1
  155. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_MappingTransformer.js +33 -14
  156. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_MappingTransformer.js.map +1 -1
  157. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.d.ts.map +1 -1
  158. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.js +8 -0
  159. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.js.map +1 -1
  160. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.d.ts +2 -0
  161. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.d.ts.map +1 -1
  162. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.js +3 -0
  163. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.js.map +1 -1
  164. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.d.ts +2 -0
  165. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.d.ts.map +1 -1
  166. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.js +13 -1
  167. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.js.map +1 -1
  168. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.d.ts +2 -0
  169. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.d.ts.map +1 -1
  170. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.js +3 -0
  171. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.js.map +1 -1
  172. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.d.ts +4 -0
  173. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.d.ts.map +1 -1
  174. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.js +48 -5
  175. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.js.map +1 -1
  176. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.d.ts +2 -0
  177. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.d.ts.map +1 -1
  178. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.js +3 -0
  179. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.js.map +1 -1
  180. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_GraphBuilderContext.d.ts +1 -1
  181. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_GraphBuilderContext.d.ts.map +1 -1
  182. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_GraphBuilderExtensions.d.ts.map +1 -1
  183. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_GraphBuilderExtensions.js +2 -0
  184. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_GraphBuilderExtensions.js.map +1 -1
  185. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ConnectionBuilderHelper.d.ts.map +1 -1
  186. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ConnectionBuilderHelper.js +1 -0
  187. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ConnectionBuilderHelper.js.map +1 -1
  188. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_MappingBuilderHelper.d.ts +2 -2
  189. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_MappingBuilderHelper.d.ts.map +1 -1
  190. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_MappingBuilderHelper.js +22 -5
  191. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_MappingBuilderHelper.js.map +1 -1
  192. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.d.ts.map +1 -1
  193. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.js +3 -0
  194. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.js.map +1 -1
  195. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DatabaseSerializationHelper.d.ts.map +1 -1
  196. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DatabaseSerializationHelper.js +1 -0
  197. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DatabaseSerializationHelper.js.map +1 -1
  198. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.d.ts +2 -0
  199. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.d.ts.map +1 -1
  200. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.js +6 -0
  201. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.js.map +1 -1
  202. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_MappingSerializationHelper.d.ts.map +1 -1
  203. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_MappingSerializationHelper.js +45 -11
  204. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_MappingSerializationHelper.js.map +1 -1
  205. package/lib/index.d.ts +8 -2
  206. package/lib/index.d.ts.map +1 -1
  207. package/lib/index.js +8 -2
  208. package/lib/index.js.map +1 -1
  209. package/lib/package.json +2 -2
  210. package/package.json +5 -5
  211. package/src/__lib__/GraphManagerEvent.ts +2 -1
  212. package/src/graph/BasicModel.ts +29 -1
  213. package/src/graph/Core_HashUtils.ts +3 -1
  214. package/src/graph/DependencyManager.ts +10 -1
  215. package/src/graph/MetaModelConst.ts +1 -0
  216. package/src/graph/PureModel.ts +21 -1
  217. package/src/graph/helpers/DomainHelper.ts +42 -1
  218. package/src/graph/helpers/PureLanguageHelper.ts +16 -8
  219. package/src/graph/metamodel/pure/packageableElements/PackageableElement.ts +5 -1
  220. package/src/graph/metamodel/pure/packageableElements/domain/PrimitiveType.ts +1 -0
  221. package/src/graph/metamodel/pure/packageableElements/{domain → function}/ConcreteFunctionDefinition.ts +4 -4
  222. package/src/graph/metamodel/pure/packageableElements/function/FunctionActivator.ts +33 -0
  223. package/src/graph/metamodel/pure/packageableElements/function/INTERNAL__UnknownFunctionActivator.ts +49 -0
  224. package/src/graph/metamodel/pure/packageableElements/mapping/INTERNAL__UnknownMappingInclude.ts +43 -0
  225. package/src/graph/metamodel/pure/packageableElements/mapping/MappingInclude.ts +5 -17
  226. package/src/graph/metamodel/pure/packageableElements/mapping/MappingIncludeMapping.ts +34 -0
  227. package/src/graph/metamodel/pure/packageableElements/mapping/SubstituteStore.ts +3 -3
  228. package/src/graph/metamodel/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.ts +7 -0
  229. package/src/graph-manager/AbstractPureGraphManager.ts +61 -46
  230. package/src/graph-manager/GraphManagerState.ts +1 -1
  231. package/src/graph-manager/action/changeDetection/CoreObserverHelper.ts +1 -1
  232. package/src/graph-manager/action/changeDetection/DSL_Data_ObserverHelper.ts +1 -1
  233. package/src/graph-manager/action/changeDetection/DSL_Mapping_ObserverHelper.ts +14 -9
  234. package/src/graph-manager/action/changeDetection/DomainObserverHelper.ts +16 -1
  235. package/src/graph-manager/action/changeDetection/GraphObserverHelper.ts +5 -0
  236. package/src/graph-manager/action/changeDetection/PackageableElementObserver.ts +9 -1
  237. package/src/graph-manager/action/changeDetection/STO_Relational_ObserverHelper.ts +4 -3
  238. package/src/graph-manager/action/functionActivator/FunctionActivatorConfiguration.ts +28 -0
  239. package/src/graph-manager/protocol/pure/extensions/DSL_Mapping_PureProtocolProcessorPlugin_Extension.ts +35 -0
  240. package/src/graph-manager/protocol/pure/v1/V1_PureGraphManager.ts +527 -422
  241. package/src/graph-manager/protocol/pure/v1/engine/V1_Engine.ts +53 -3
  242. package/src/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.ts +81 -75
  243. package/src/graph-manager/protocol/pure/v1/engine/functionActivator/V1_FunctionActivatorError.ts +28 -0
  244. package/src/graph-manager/protocol/pure/v1/engine/functionActivator/V1_FunctionActivatorInfo.ts +50 -0
  245. package/src/graph-manager/protocol/pure/v1/engine/{service/V1_TEMPORARY__SnowflakeServiceDeploymentInput.ts → functionActivator/V1_FunctionActivatorInput.ts} +6 -23
  246. package/src/graph-manager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.ts +4 -0
  247. package/src/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_FunctionActivator.ts +25 -0
  248. package/src/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_INTERNAL__UnknownFunctionActivator.ts +49 -0
  249. package/src/graph-manager/protocol/pure/v1/model/packageableElements/mapping/V1_INTERNAL__UnknownMappingInclude.ts +33 -0
  250. package/src/graph-manager/protocol/pure/v1/model/packageableElements/mapping/V1_MappingInclude.ts +8 -3
  251. package/src/graph-manager/protocol/pure/v1/model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection.ts +7 -0
  252. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.ts +1 -0
  253. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DomainTransformer.ts +1 -1
  254. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_MappingTransformer.ts +45 -13
  255. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.ts +13 -1
  256. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.ts +7 -0
  257. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.ts +30 -1
  258. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.ts +7 -0
  259. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.ts +79 -10
  260. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.ts +7 -0
  261. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_GraphBuilderContext.ts +1 -1
  262. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_GraphBuilderExtensions.ts +2 -0
  263. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ConnectionBuilderHelper.ts +1 -0
  264. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_MappingBuilderHelper.ts +44 -14
  265. package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.ts +7 -0
  266. package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DatabaseSerializationHelper.ts +1 -0
  267. package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.ts +8 -0
  268. package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_MappingSerializationHelper.ts +78 -18
  269. package/src/index.ts +13 -3
  270. package/tsconfig.json +12 -2
  271. package/lib/graph/metamodel/pure/packageableElements/domain/ConcreteFunctionDefinition.d.ts.map +0 -1
  272. package/lib/graph/metamodel/pure/packageableElements/domain/ConcreteFunctionDefinition.js.map +0 -1
  273. package/lib/graph-manager/protocol/pure/v1/engine/service/V1_TEMPORARY__SnowflakeServiceDeploymentInput.d.ts.map +0 -1
  274. package/lib/graph-manager/protocol/pure/v1/engine/service/V1_TEMPORARY__SnowflakeServiceDeploymentInput.js.map +0 -1
@@ -114,6 +114,9 @@ import { V1_INTERNAL__PackageableElementWithSourceInformation } from '../transfo
114
114
  import { ELEMENT_PATH_DELIMITER } from '../../../../../graph/MetaModelConst.js';
115
115
  import { V1_serializeExecutionResult } from './execution/V1_ExecutionHelper.js';
116
116
  import type { ClassifierPathMapping } from '../../../../action/protocol/ClassifierPathMapping.js';
117
+ import { V1_FunctionActivatorInfo } from './functionActivator/V1_FunctionActivatorInfo.js';
118
+ import { V1_FunctionActivatorError } from './functionActivator/V1_FunctionActivatorError.js';
119
+ import { V1_FunctionActivatorInput } from './functionActivator/V1_FunctionActivatorInput.js';
117
120
 
118
121
  class V1_EngineConfig extends TEMPORARY__AbstractEngineConfig {
119
122
  private engine: V1_Engine;
@@ -808,7 +811,7 @@ export class V1_Engine {
808
811
  }
809
812
 
810
813
  async cancelUserExecutions(broadcastToCluster: boolean): Promise<string> {
811
- return this.engineServerClient.cancelUserExecutions(
814
+ return this.engineServerClient.INTERNAL__cancelUserExecutions(
812
815
  guaranteeNonNullable(this.getCurrentUserId()),
813
816
  broadcastToCluster,
814
817
  );
@@ -854,8 +857,6 @@ export class V1_Engine {
854
857
  ).reports;
855
858
  }
856
859
 
857
- // --------------------------------------------- Utilities ---------------------------------------------
858
-
859
860
  async buildDatabase(
860
861
  input: V1_DatabaseBuilderInput,
861
862
  ): Promise<V1_PureModelContextData> {
@@ -865,4 +866,53 @@ export class V1_Engine {
865
866
  ),
866
867
  );
867
868
  }
869
+
870
+ // ------------------------------------------- Function -------------------------------------------
871
+
872
+ async getAvailableFunctionActivators(): Promise<V1_FunctionActivatorInfo[]> {
873
+ try {
874
+ return (
875
+ await this.engineServerClient.getAvailableFunctionActivators()
876
+ ).map((info) => V1_FunctionActivatorInfo.serialization.fromJson(info));
877
+ } catch {
878
+ return [];
879
+ }
880
+ }
881
+
882
+ async validateFunctionActivator(
883
+ input: V1_FunctionActivatorInput,
884
+ ): Promise<void> {
885
+ const errors = await this.engineServerClient.validateFunctionActivator(
886
+ V1_FunctionActivatorInput.serialization.toJson(input),
887
+ );
888
+ if (errors.length) {
889
+ throw new Error(
890
+ `Function activator validation failed:\n${errors
891
+ .map((error) =>
892
+ V1_FunctionActivatorError.serialization.fromJson(error),
893
+ )
894
+ .map((error) => `- ${error.message}`)
895
+ .join('\n')}`,
896
+ );
897
+ }
898
+ }
899
+
900
+ async publishFunctionActivatorToSandbox(
901
+ input: V1_FunctionActivatorInput,
902
+ ): Promise<void> {
903
+ const errors =
904
+ await this.engineServerClient.publishFunctionActivatorToSandbox(
905
+ V1_FunctionActivatorInput.serialization.toJson(input),
906
+ );
907
+ if (errors.length) {
908
+ throw new Error(
909
+ `Function activator validation failed:\n${errors
910
+ .map((error) =>
911
+ V1_FunctionActivatorError.serialization.fromJson(error),
912
+ )
913
+ .map((error) => `- ${error.message}`)
914
+ .join('\n')}`,
915
+ );
916
+ }
917
+ }
868
918
  }
@@ -63,8 +63,10 @@ import type {
63
63
  V1_SurveyDatasetsResult,
64
64
  } from './analytics/V1_StoreEntitlementAnalysis.js';
65
65
  import type { V1_RunTestsResult } from './test/V1_RunTestsResult.js';
66
- import type { V1_TEMPORARY__SnowflakeServiceDeploymentInput } from './service/V1_TEMPORARY__SnowflakeServiceDeploymentInput.js';
67
66
  import type { ClassifierPathMapping } from '../../../../action/protocol/ClassifierPathMapping.js';
67
+ import type { V1_FunctionActivatorInfo } from './functionActivator/V1_FunctionActivatorInfo.js';
68
+ import type { V1_FunctionActivatorError } from './functionActivator/V1_FunctionActivatorError.js';
69
+ import type { V1_FunctionActivatorInput } from './functionActivator/V1_FunctionActivatorInput.js';
68
70
 
69
71
  enum CORE_ENGINE_ACTIVITY_TRACE {
70
72
  GRAMMAR_TO_JSON = 'transform Pure code to protocol',
@@ -124,19 +126,13 @@ export class V1_EngineServerClient extends AbstractServerClient {
124
126
  // getting the user from the main engine server, which seems problematic.
125
127
  private queryBaseUrl?: string | undefined;
126
128
 
127
- // NOTE: this is temporary solution to allow us test out the Snowflake service deployment flow
128
- private TEMPORARY__snowflakeServiceDeploymentUrl?: string | undefined;
129
-
130
129
  constructor(
131
130
  config: ServerClientConfig & {
132
131
  queryBaseUrl?: string | undefined;
133
- TEMPORARY__snowflakeServiceDeploymentUrl?: string | undefined;
134
132
  },
135
133
  ) {
136
134
  super(config);
137
135
  this.queryBaseUrl = config.queryBaseUrl;
138
- this.TEMPORARY__snowflakeServiceDeploymentUrl =
139
- config.TEMPORARY__snowflakeServiceDeploymentUrl;
140
136
  }
141
137
 
142
138
  setEnv = (value: string | undefined): void => {
@@ -161,7 +157,6 @@ export class V1_EngineServerClient extends AbstractServerClient {
161
157
  // ------------------------------------------- Server -------------------------------------------
162
158
 
163
159
  _server = (): string => `${this.baseUrl}/server/v1`;
164
- _executionManager = (): string => `${this._server()}/executionManager`;
165
160
  getCurrentUserId = (): Promise<string> =>
166
161
  this.get(`${this._server()}/currentUser`);
167
162
 
@@ -466,6 +461,7 @@ export class V1_EngineServerClient extends AbstractServerClient {
466
461
  // ------------------------------------------- Execute -------------------------------------------
467
462
 
468
463
  _execution = (): string => `${this._pure()}/execution`;
464
+ _executionManager = (): string => `${this._server()}/executionManager`;
469
465
 
470
466
  execute = (
471
467
  input: PlainObject<V1_ExecuteInput>,
@@ -528,6 +524,60 @@ export class V1_EngineServerClient extends AbstractServerClient {
528
524
  { enableCompression: true },
529
525
  );
530
526
 
527
+ /**
528
+ * TODO: this is an internal API that should me refactored out using extension mechanism
529
+ */
530
+ INTERNAL__cancelUserExecutions = (
531
+ userID: string,
532
+ broadcastToCluster: boolean,
533
+ ): Promise<string> =>
534
+ this.deleteWithTracing(
535
+ this.getTraceData(CORE_ENGINE_ACTIVITY_TRACE.CANCEL_USER_EXECUTIONS),
536
+ `${this._executionManager()}/cancelUserExecution`,
537
+ {},
538
+ {},
539
+ {},
540
+ { userID, broadcastToCluster },
541
+ { enableCompression: true },
542
+ );
543
+
544
+ // ------------------------------------------- Query -------------------------------------------
545
+
546
+ _query = (queryId?: string): string =>
547
+ `${this.queryBaseUrl ?? this.baseUrl}/pure/v1/query${
548
+ queryId ? `/${encodeURIComponent(queryId)}` : ''
549
+ }`;
550
+ searchQueries = (
551
+ searchSpecification: PlainObject<V1_QuerySearchSpecification>,
552
+ ): Promise<PlainObject<V1_LightQuery>[]> =>
553
+ this.post(`${this._query()}/search`, searchSpecification, undefined);
554
+ getQueries = (queryIds: string[]): Promise<PlainObject<V1_LightQuery>[]> =>
555
+ this.get(`${this._query()}/batch`, {}, undefined, { queryIds: queryIds });
556
+ getQuery = (queryId: string): Promise<PlainObject<V1_Query>> =>
557
+ this.get(this._query(queryId));
558
+ createQuery = (
559
+ query: PlainObject<V1_Query>,
560
+ ): Promise<PlainObject<V1_Query>> =>
561
+ this.postWithTracing(
562
+ this.getTraceData(CORE_ENGINE_ACTIVITY_TRACE.CREATE_QUERY),
563
+ this._query(),
564
+ query,
565
+ );
566
+ updateQuery = (
567
+ queryId: string,
568
+ query: PlainObject<V1_Query>,
569
+ ): Promise<PlainObject<V1_Query>> =>
570
+ this.putWithTracing(
571
+ this.getTraceData(CORE_ENGINE_ACTIVITY_TRACE.UPDATE_QUERY),
572
+ this._query(queryId),
573
+ query,
574
+ );
575
+ deleteQuery = (queryId: string): Promise<PlainObject<V1_Query>> =>
576
+ this.deleteWithTracing(
577
+ this.getTraceData(CORE_ENGINE_ACTIVITY_TRACE.DELETE_QUERY),
578
+ this._query(queryId),
579
+ );
580
+
531
581
  // --------------------------------------- Analysis ---------------------------------------
532
582
 
533
583
  analyzeMappingModelCoverage = (
@@ -571,11 +621,7 @@ export class V1_EngineServerClient extends AbstractServerClient {
571
621
  { enableCompression: true },
572
622
  );
573
623
 
574
- // ------------------------------------------- Utilities -------------------------------------------
575
-
576
- _utilities = (): string => `${this._pure()}/utilities`;
577
- _databaseUtilities = (): string => `${this._utilities()}/database`;
578
-
624
+ _databaseUtilities = (): string => `${this._pure()}/utilities/database`;
579
625
  buildDatabase = (
580
626
  input: PlainObject<V1_ExecuteInput>,
581
627
  ): Promise<PlainObject<V1_PureModelContextData>> =>
@@ -585,6 +631,28 @@ export class V1_EngineServerClient extends AbstractServerClient {
585
631
  input,
586
632
  );
587
633
 
634
+ // ------------------------------------------- Function ---------------------------------------
635
+
636
+ _functionActivator = (): string => `${this.baseUrl}/functionActivator`;
637
+
638
+ getAvailableFunctionActivators(): Promise<
639
+ PlainObject<V1_FunctionActivatorInfo>[]
640
+ > {
641
+ return this.get(`${this._functionActivator()}/list`);
642
+ }
643
+
644
+ validateFunctionActivator(
645
+ input: PlainObject<V1_FunctionActivatorInput>,
646
+ ): Promise<PlainObject<V1_FunctionActivatorError>[]> {
647
+ return this.post(`${this._functionActivator()}/validate`, input);
648
+ }
649
+
650
+ publishFunctionActivatorToSandbox(
651
+ input: PlainObject<V1_FunctionActivatorInput>,
652
+ ): Promise<PlainObject<V1_FunctionActivatorError>[]> {
653
+ return this.post(`${this._functionActivator()}/publishToSandbox`, input);
654
+ }
655
+
588
656
  // ------------------------------------------- Service -------------------------------------------
589
657
 
590
658
  _service = (serviceServerUrl?: string): string =>
@@ -654,66 +722,4 @@ export class V1_EngineServerClient extends AbstractServerClient {
654
722
  {},
655
723
  { skipProcessing: true },
656
724
  );
657
-
658
- // ------------------------------------------- Query -------------------------------------------
659
-
660
- _query = (queryId?: string): string =>
661
- `${this.queryBaseUrl ?? this.baseUrl}/pure/v1/query${
662
- queryId ? `/${encodeURIComponent(queryId)}` : ''
663
- }`;
664
- searchQueries = (
665
- searchSpecification: PlainObject<V1_QuerySearchSpecification>,
666
- ): Promise<PlainObject<V1_LightQuery>[]> =>
667
- this.post(`${this._query()}/search`, searchSpecification, undefined);
668
- getQueries = (queryIds: string[]): Promise<PlainObject<V1_LightQuery>[]> =>
669
- this.get(`${this._query()}/batch`, {}, undefined, { queryIds: queryIds });
670
- getQuery = (queryId: string): Promise<PlainObject<V1_Query>> =>
671
- this.get(this._query(queryId));
672
- createQuery = (
673
- query: PlainObject<V1_Query>,
674
- ): Promise<PlainObject<V1_Query>> =>
675
- this.postWithTracing(
676
- this.getTraceData(CORE_ENGINE_ACTIVITY_TRACE.CREATE_QUERY),
677
- this._query(),
678
- query,
679
- );
680
- updateQuery = (
681
- queryId: string,
682
- query: PlainObject<V1_Query>,
683
- ): Promise<PlainObject<V1_Query>> =>
684
- this.putWithTracing(
685
- this.getTraceData(CORE_ENGINE_ACTIVITY_TRACE.UPDATE_QUERY),
686
- this._query(queryId),
687
- query,
688
- );
689
- deleteQuery = (queryId: string): Promise<PlainObject<V1_Query>> =>
690
- this.deleteWithTracing(
691
- this.getTraceData(CORE_ENGINE_ACTIVITY_TRACE.DELETE_QUERY),
692
- this._query(queryId),
693
- );
694
-
695
- // ------------------------------------------- Snowflake Service -------------------------------------------
696
-
697
- TEMPORARY__deploySnowflakeService = (
698
- input: PlainObject<V1_TEMPORARY__SnowflakeServiceDeploymentInput>,
699
- ): Promise<PlainObject> =>
700
- this.post(
701
- `${this.TEMPORARY__snowflakeServiceDeploymentUrl ?? this.baseUrl}`,
702
- input,
703
- undefined,
704
- );
705
-
706
- cancelUserExecutions = (
707
- userID: string,
708
- broadcastToCluster: boolean,
709
- ): Promise<string> =>
710
- this.deleteWithTracing(
711
- this.getTraceData(CORE_ENGINE_ACTIVITY_TRACE.CANCEL_USER_EXECUTIONS),
712
- `${this._executionManager()}/cancelUserExecution`,
713
- {},
714
- {},
715
- { [HttpHeader.ACCEPT]: ContentType.TEXT_PLAIN },
716
- { userID, broadcastToCluster },
717
- { enableCompression: true },
718
- );
719
725
  }
@@ -0,0 +1,28 @@
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 { primitive, createModelSchema } from 'serializr';
18
+ import { SerializationFactory } from '@finos/legend-shared';
19
+
20
+ export class V1_FunctionActivatorError {
21
+ message!: string;
22
+
23
+ static readonly serialization = new SerializationFactory(
24
+ createModelSchema(V1_FunctionActivatorError, {
25
+ message: primitive(),
26
+ }),
27
+ );
28
+ }
@@ -0,0 +1,50 @@
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 { list, primitive, createModelSchema } from 'serializr';
18
+ import { SerializationFactory, usingModelSchema } from '@finos/legend-shared';
19
+ import type { V1_Class } from '../../model/packageableElements/domain/V1_Class.js';
20
+ import { V1_classModelSchema } from '../../transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.js';
21
+
22
+ export class V1_FunctionActivatorConfigurationInfo {
23
+ topElement!: string;
24
+ packageableElementJSONType!: string;
25
+ model: V1_Class[] = [];
26
+
27
+ static readonly serialization = new SerializationFactory(
28
+ createModelSchema(V1_FunctionActivatorConfigurationInfo, {
29
+ packageableElementJSONType: primitive(),
30
+ topElement: primitive(),
31
+ model: list(usingModelSchema(V1_classModelSchema)),
32
+ }),
33
+ );
34
+ }
35
+
36
+ export class V1_FunctionActivatorInfo {
37
+ name!: string;
38
+ description!: string;
39
+ configuration!: V1_FunctionActivatorConfigurationInfo;
40
+
41
+ static readonly serialization = new SerializationFactory(
42
+ createModelSchema(V1_FunctionActivatorInfo, {
43
+ description: primitive(),
44
+ name: primitive(),
45
+ configuration: usingModelSchema(
46
+ V1_FunctionActivatorConfigurationInfo.serialization.schema,
47
+ ),
48
+ }),
49
+ );
50
+ }
@@ -14,38 +14,21 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import {
18
- SKIP,
19
- createModelSchema,
20
- custom,
21
- optional,
22
- primitive,
23
- serialize,
24
- } from 'serializr';
17
+ import { primitive, createModelSchema, optional } from 'serializr';
25
18
  import { SerializationFactory } from '@finos/legend-shared';
26
- import type { V1_RawLambda } from '../../model/rawValueSpecification/V1_RawLambda.js';
27
19
  import type { V1_PureModelContext } from '../../model/context/V1_PureModelContext.js';
28
20
  import { V1_pureModelContextPropSchema } from '../../transformation/pureProtocol/V1_PureProtocolSerialization.js';
29
- import { V1_rawLambdaModelSchema } from '../../transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper.js';
30
21
 
31
- export class V1_TEMPORARY__SnowflakeServiceDeploymentInput {
32
- clientVersion: string | undefined;
33
- /**
34
- * Studio does not process value specification, they are left in raw JSON form
35
- *
36
- * @discrepancy model
37
- */
38
- query!: V1_RawLambda;
22
+ export class V1_FunctionActivatorInput {
23
+ clientVersion!: string | undefined;
24
+ functionActivator!: string;
39
25
  model!: V1_PureModelContext;
40
26
 
41
27
  static readonly serialization = new SerializationFactory(
42
- createModelSchema(V1_TEMPORARY__SnowflakeServiceDeploymentInput, {
28
+ createModelSchema(V1_FunctionActivatorInput, {
43
29
  clientVersion: optional(primitive()),
44
30
  model: V1_pureModelContextPropSchema,
45
- query: custom(
46
- (val) => serialize(V1_rawLambdaModelSchema, val),
47
- () => SKIP,
48
- ),
31
+ functionActivator: primitive(),
49
32
  }),
50
33
  );
51
34
  }
@@ -35,12 +35,16 @@ import type { V1_DataElement } from './data/V1_DataElement.js';
35
35
  import { ELEMENT_PATH_DELIMITER } from '../../../../../../graph/MetaModelConst.js';
36
36
  import type { V1_ExecutionEnvironmentInstance } from './service/V1_ExecutionEnvironmentInstance.js';
37
37
  import type { V1_INTERNAL__UnknownPackageableElement } from './V1_INTERNAL__UnknownPackageableElement.js';
38
+ import type { V1_INTERNAL__UnknownFunctionActivator } from './function/V1_INTERNAL__UnknownFunctionActivator.js';
38
39
 
39
40
  export interface V1_PackageableElementVisitor<T> {
40
41
  visit_PackageableElement(element: V1_PackageableElement): T;
41
42
  visit_INTERNAL__UnknownPackageableElement(
42
43
  element: V1_INTERNAL__UnknownPackageableElement,
43
44
  ): T;
45
+ visit_INTERNAL__UnknownFunctionActivator(
46
+ element: V1_INTERNAL__UnknownFunctionActivator,
47
+ ): T;
44
48
 
45
49
  visit_SectionIndex(element: V1_SectionIndex): T;
46
50
  visit_Profile(element: V1_Profile): T;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import type { Hashable } from '@finos/legend-shared';
18
+ import { V1_PackageableElement } from '../../../model/packageableElements/V1_PackageableElement.js';
19
+
20
+ export abstract class V1_FunctionActivator
21
+ extends V1_PackageableElement
22
+ implements Hashable
23
+ {
24
+ function!: string;
25
+ }
@@ -0,0 +1,49 @@
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 {
18
+ type Hashable,
19
+ hashArray,
20
+ type PlainObject,
21
+ } from '@finos/legend-shared';
22
+ import { V1_FunctionActivator } from './V1_FunctionActivator.js';
23
+ import {
24
+ CORE_HASH_STRUCTURE,
25
+ hashObjectWithoutSourceInformation,
26
+ } from '../../../../../../../graph/Core_HashUtils.js';
27
+ import type { V1_PackageableElementVisitor } from '../V1_PackageableElement.js';
28
+
29
+ export class V1_INTERNAL__UnknownFunctionActivator
30
+ extends V1_FunctionActivator
31
+ implements Hashable
32
+ {
33
+ content!: PlainObject;
34
+
35
+ override get hashCode(): string {
36
+ return hashArray([
37
+ CORE_HASH_STRUCTURE.INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR,
38
+ this.path,
39
+ this.function,
40
+ hashObjectWithoutSourceInformation(this.content),
41
+ ]);
42
+ }
43
+
44
+ accept_PackageableElementVisitor<T>(
45
+ visitor: V1_PackageableElementVisitor<T>,
46
+ ): T {
47
+ return visitor.visit_INTERNAL__UnknownFunctionActivator(this);
48
+ }
49
+ }
@@ -0,0 +1,33 @@
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 { hashArray, type PlainObject } from '@finos/legend-shared';
18
+ import {
19
+ CORE_HASH_STRUCTURE,
20
+ hashObjectWithoutSourceInformation,
21
+ } from '../../../../../../../graph/Core_HashUtils.js';
22
+ import { V1_MappingInclude } from './V1_MappingInclude.js';
23
+
24
+ export class V1_INTERNAL__UnknownMappingInclude extends V1_MappingInclude {
25
+ content!: PlainObject;
26
+
27
+ override get hashCode(): string {
28
+ return hashArray([
29
+ CORE_HASH_STRUCTURE.INTERNAL__UNKNOWN_MAPPING_INCLUDE,
30
+ hashObjectWithoutSourceInformation(this.content),
31
+ ]);
32
+ }
33
+ }
@@ -17,14 +17,19 @@
17
17
  import { type Hashable, hashArray } from '@finos/legend-shared';
18
18
  import { CORE_HASH_STRUCTURE } from '../../../../../../../graph/Core_HashUtils.js';
19
19
 
20
- export class V1_MappingInclude implements Hashable {
20
+ export abstract class V1_MappingInclude implements Hashable {
21
+ abstract get hashCode(): string;
22
+ }
23
+
24
+ export class V1_MappingIncludeMapping extends V1_MappingInclude {
21
25
  includedMapping!: string;
26
+
22
27
  sourceDatabasePath?: string | undefined;
23
28
  targetDatabasePath?: string | undefined;
24
29
 
25
- get hashCode(): string {
30
+ override get hashCode(): string {
26
31
  return hashArray([
27
- CORE_HASH_STRUCTURE.MAPPING_INCLUDE,
32
+ CORE_HASH_STRUCTURE.MAPPING_INCLUDE_MAPPING,
28
33
  this.includedMapping,
29
34
  this.sourceDatabasePath ?? '',
30
35
  this.targetDatabasePath ?? '',
@@ -67,6 +67,12 @@ export class V1_RelationalDatabaseConnection
67
67
  authenticationStrategy!: V1_AuthenticationStrategy;
68
68
  postProcessors: V1_PostProcessor[] = [];
69
69
 
70
+ /**
71
+ * HACKY: this is done to quickly add support for local connection
72
+ * See https://github.com/finos/legend-engine/pull/1807
73
+ */
74
+ localMode?: boolean | undefined;
75
+
70
76
  get hashCode(): string {
71
77
  return hashArray([
72
78
  CORE_HASH_STRUCTURE.RELATIONAL_DATABASE_CONNECTION,
@@ -75,6 +81,7 @@ export class V1_RelationalDatabaseConnection
75
81
  this.quoteIdentifiers?.toString() ?? '',
76
82
  this.datasourceSpecification,
77
83
  this.authenticationStrategy,
84
+ this.localMode?.toString() ?? '',
78
85
  hashArray(this.postProcessors),
79
86
  ]);
80
87
  }
@@ -355,6 +355,7 @@ export const V1_transformRelationalDatabaseConnection = (
355
355
  metamodel.datasourceSpecification,
356
356
  context,
357
357
  );
358
+ connection.localMode = metamodel.localMode;
358
359
  connection.type = metamodel.type;
359
360
  connection.databaseType = connection.type;
360
361
  connection.timeZone = metamodel.timeZone;
@@ -27,7 +27,7 @@ import type { TaggedValue } from '../../../../../../../graph/metamodel/pure/pack
27
27
  import type { Enumeration } from '../../../../../../../graph/metamodel/pure/packageableElements/domain/Enumeration.js';
28
28
  import type { Class } from '../../../../../../../graph/metamodel/pure/packageableElements/domain/Class.js';
29
29
  import type { Association } from '../../../../../../../graph/metamodel/pure/packageableElements/domain/Association.js';
30
- import type { ConcreteFunctionDefinition } from '../../../../../../../graph/metamodel/pure/packageableElements/domain/ConcreteFunctionDefinition.js';
30
+ import type { ConcreteFunctionDefinition } from '../../../../../../../graph/metamodel/pure/packageableElements/function/ConcreteFunctionDefinition.js';
31
31
  import type { Property } from '../../../../../../../graph/metamodel/pure/packageableElements/domain/Property.js';
32
32
  import { V1_Profile } from '../../../model/packageableElements/domain/V1_Profile.js';
33
33
  import { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr.js';