@finos/legend-graph 31.4.0 → 31.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/lib/graph/Core_HashUtils.d.ts +2 -1
  2. package/lib/graph/Core_HashUtils.d.ts.map +1 -1
  3. package/lib/graph/Core_HashUtils.js +2 -0
  4. package/lib/graph/Core_HashUtils.js.map +1 -1
  5. package/lib/graph/MetaModelConst.d.ts +2 -1
  6. package/lib/graph/MetaModelConst.d.ts.map +1 -1
  7. package/lib/graph/MetaModelConst.js +1 -0
  8. package/lib/graph/MetaModelConst.js.map +1 -1
  9. package/lib/graph/helpers/DSL_Service_Helper.js +1 -1
  10. package/lib/graph/helpers/DSL_Service_Helper.js.map +1 -1
  11. package/lib/graph/helpers/STO_Relational_Helper.d.ts +1 -0
  12. package/lib/graph/helpers/STO_Relational_Helper.d.ts.map +1 -1
  13. package/lib/graph/helpers/STO_Relational_Helper.js +2 -0
  14. package/lib/graph/helpers/STO_Relational_Helper.js.map +1 -1
  15. package/lib/graph/metamodel/pure/functionActivator/DeploymentConfiguration.d.ts +20 -0
  16. package/lib/graph/metamodel/pure/functionActivator/DeploymentConfiguration.d.ts.map +1 -0
  17. package/lib/graph/metamodel/pure/functionActivator/DeploymentConfiguration.js +18 -0
  18. package/lib/graph/metamodel/pure/functionActivator/DeploymentConfiguration.js.map +1 -0
  19. package/lib/graph/metamodel/pure/functionActivator/SnowflakeAppDeploymentConfiguration.d.ts +22 -0
  20. package/lib/graph/metamodel/pure/functionActivator/SnowflakeAppDeploymentConfiguration.d.ts.map +1 -0
  21. package/lib/graph/metamodel/pure/functionActivator/SnowflakeAppDeploymentConfiguration.js +24 -0
  22. package/lib/graph/metamodel/pure/functionActivator/SnowflakeAppDeploymentConfiguration.js.map +1 -0
  23. package/lib/graph/metamodel/pure/packageableElements/PackageableElement.d.ts +2 -0
  24. package/lib/graph/metamodel/pure/packageableElements/PackageableElement.d.ts.map +1 -1
  25. package/lib/graph/metamodel/pure/packageableElements/PackageableElement.js.map +1 -1
  26. package/lib/graph/metamodel/pure/packageableElements/function/FunctionActivator.d.ts +2 -0
  27. package/lib/graph/metamodel/pure/packageableElements/function/FunctionActivator.d.ts.map +1 -1
  28. package/lib/graph/metamodel/pure/packageableElements/function/FunctionActivator.js +1 -0
  29. package/lib/graph/metamodel/pure/packageableElements/function/FunctionActivator.js.map +1 -1
  30. package/lib/graph/metamodel/pure/packageableElements/function/SnowflakeApp.d.ts +12 -0
  31. package/lib/graph/metamodel/pure/packageableElements/function/SnowflakeApp.d.ts.map +1 -0
  32. package/lib/graph/metamodel/pure/packageableElements/function/SnowflakeApp.js +36 -0
  33. package/lib/graph/metamodel/pure/packageableElements/function/SnowflakeApp.js.map +1 -0
  34. package/lib/graph/metamodel/pure/packageableElements/runtime/Runtime.d.ts +8 -1
  35. package/lib/graph/metamodel/pure/packageableElements/runtime/Runtime.d.ts.map +1 -1
  36. package/lib/graph/metamodel/pure/packageableElements/runtime/Runtime.js +16 -0
  37. package/lib/graph/metamodel/pure/packageableElements/runtime/Runtime.js.map +1 -1
  38. package/lib/graph/metamodel/pure/packageableElements/service/ServiceExecution.d.ts +3 -3
  39. package/lib/graph/metamodel/pure/packageableElements/service/ServiceExecution.d.ts.map +1 -1
  40. package/lib/graph/metamodel/pure/packageableElements/service/ServiceExecution.js +2 -2
  41. package/lib/graph/metamodel/pure/packageableElements/service/ServiceExecution.js.map +1 -1
  42. package/lib/graph-manager/action/changeDetection/DSL_FunctionActivatorObserverHelper.d.ts +18 -0
  43. package/lib/graph-manager/action/changeDetection/DSL_FunctionActivatorObserverHelper.d.ts.map +1 -0
  44. package/lib/graph-manager/action/changeDetection/DSL_FunctionActivatorObserverHelper.js +28 -0
  45. package/lib/graph-manager/action/changeDetection/DSL_FunctionActivatorObserverHelper.js.map +1 -0
  46. package/lib/graph-manager/action/changeDetection/DSL_Service_ObserverHelper.js +1 -1
  47. package/lib/graph-manager/action/changeDetection/DSL_Service_ObserverHelper.js.map +1 -1
  48. package/lib/graph-manager/action/changeDetection/DomainObserverHelper.d.ts +2 -0
  49. package/lib/graph-manager/action/changeDetection/DomainObserverHelper.d.ts.map +1 -1
  50. package/lib/graph-manager/action/changeDetection/DomainObserverHelper.js +13 -0
  51. package/lib/graph-manager/action/changeDetection/DomainObserverHelper.js.map +1 -1
  52. package/lib/graph-manager/action/changeDetection/PackageableElementObserver.d.ts.map +1 -1
  53. package/lib/graph-manager/action/changeDetection/PackageableElementObserver.js +4 -1
  54. package/lib/graph-manager/action/changeDetection/PackageableElementObserver.js.map +1 -1
  55. package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.d.ts.map +1 -1
  56. package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.js +6 -2
  57. package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.js.map +1 -1
  58. package/lib/graph-manager/protocol/pure/v1/engine/V1_Engine.d.ts.map +1 -1
  59. package/lib/graph-manager/protocol/pure/v1/engine/V1_Engine.js +4 -6
  60. package/lib/graph-manager/protocol/pure/v1/engine/V1_Engine.js.map +1 -1
  61. package/lib/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.d.ts +2 -1
  62. package/lib/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.d.ts.map +1 -1
  63. package/lib/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.js.map +1 -1
  64. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentConfiguration.d.ts +20 -0
  65. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentConfiguration.d.ts.map +1 -0
  66. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentConfiguration.js +18 -0
  67. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentConfiguration.js.map +1 -0
  68. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentResult.d.ts +23 -0
  69. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentResult.d.ts.map +1 -0
  70. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentResult.js +28 -0
  71. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentResult.js.map +1 -0
  72. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_SnowflakeAppDeploymentConfiguration.d.ts +23 -0
  73. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_SnowflakeAppDeploymentConfiguration.d.ts.map +1 -0
  74. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_SnowflakeAppDeploymentConfiguration.js +24 -0
  75. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_SnowflakeAppDeploymentConfiguration.js.map +1 -0
  76. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.d.ts +2 -0
  77. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.d.ts.map +1 -1
  78. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.js.map +1 -1
  79. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_FunctionActivator.d.ts +6 -0
  80. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_FunctionActivator.d.ts.map +1 -1
  81. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_FunctionActivator.js +3 -0
  82. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_FunctionActivator.js.map +1 -1
  83. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_SnowflakeApp.d.ts +27 -0
  84. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_SnowflakeApp.d.ts.map +1 -0
  85. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_SnowflakeApp.js +36 -0
  86. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_SnowflakeApp.js.map +1 -0
  87. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.d.ts +7 -0
  88. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.d.ts.map +1 -1
  89. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.js +13 -0
  90. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.js.map +1 -1
  91. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/service/V1_ServiceExecution.d.ts +2 -2
  92. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/service/V1_ServiceExecution.d.ts.map +1 -1
  93. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/service/V1_ServiceExecution.js +2 -2
  94. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/service/V1_ServiceExecution.js.map +1 -1
  95. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.d.ts +3 -1
  96. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.d.ts.map +1 -1
  97. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.js +2 -2
  98. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.js.map +1 -1
  99. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_FunctionActivatorTransformer.d.ts +19 -0
  100. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_FunctionActivatorTransformer.d.ts.map +1 -0
  101. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_FunctionActivatorTransformer.js +25 -0
  102. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_FunctionActivatorTransformer.js.map +1 -0
  103. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.d.ts.map +1 -1
  104. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.js +16 -0
  105. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.js.map +1 -1
  106. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_RuntimeTransformer.d.ts.map +1 -1
  107. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_RuntimeTransformer.js +8 -2
  108. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_RuntimeTransformer.js.map +1 -1
  109. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ServiceTransformer.js +1 -1
  110. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ServiceTransformer.js.map +1 -1
  111. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.d.ts +2 -0
  112. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.d.ts.map +1 -1
  113. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.js +3 -0
  114. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.js.map +1 -1
  115. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.d.ts +2 -0
  116. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.d.ts.map +1 -1
  117. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.js +14 -0
  118. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.js.map +1 -1
  119. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.d.ts +2 -0
  120. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.d.ts.map +1 -1
  121. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.js +3 -0
  122. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.js.map +1 -1
  123. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.d.ts +2 -0
  124. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.d.ts.map +1 -1
  125. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.js +10 -0
  126. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.js.map +1 -1
  127. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.d.ts +2 -0
  128. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.d.ts.map +1 -1
  129. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.js +3 -0
  130. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.js.map +1 -1
  131. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FunctionActivatorBuilderHelper.d.ts +20 -0
  132. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FunctionActivatorBuilderHelper.d.ts.map +1 -0
  133. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FunctionActivatorBuilderHelper.js +28 -0
  134. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FunctionActivatorBuilderHelper.js.map +1 -0
  135. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.d.ts.map +1 -1
  136. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.js +13 -2
  137. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.js.map +1 -1
  138. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.d.ts.map +1 -1
  139. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.js +3 -7
  140. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.js.map +1 -1
  141. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.d.ts.map +1 -1
  142. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.js +6 -1
  143. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.js.map +1 -1
  144. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.d.ts +3 -0
  145. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.d.ts.map +1 -1
  146. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.js +19 -0
  147. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.js.map +1 -1
  148. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FunctionActivatorSerializationHelper.d.ts +18 -0
  149. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FunctionActivatorSerializationHelper.d.ts.map +1 -0
  150. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FunctionActivatorSerializationHelper.js +25 -0
  151. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FunctionActivatorSerializationHelper.js.map +1 -0
  152. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.d.ts.map +1 -1
  153. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.js +7 -2
  154. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.js.map +1 -1
  155. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.js +2 -2
  156. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.js.map +1 -1
  157. package/lib/index.d.ts +3 -0
  158. package/lib/index.d.ts.map +1 -1
  159. package/lib/index.js +3 -0
  160. package/lib/index.js.map +1 -1
  161. package/lib/package.json +1 -1
  162. package/package.json +1 -1
  163. package/src/graph/Core_HashUtils.ts +3 -0
  164. package/src/graph/MetaModelConst.ts +1 -0
  165. package/src/graph/helpers/DSL_Service_Helper.ts +1 -1
  166. package/src/graph/helpers/STO_Relational_Helper.ts +6 -0
  167. package/src/graph/metamodel/pure/functionActivator/DeploymentConfiguration.ts +21 -0
  168. package/src/graph/metamodel/pure/functionActivator/SnowflakeAppDeploymentConfiguration.ts +27 -0
  169. package/src/graph/metamodel/pure/packageableElements/PackageableElement.ts +2 -0
  170. package/src/graph/metamodel/pure/packageableElements/function/FunctionActivator.ts +2 -0
  171. package/src/graph/metamodel/pure/packageableElements/function/SnowflakeApp.ts +43 -0
  172. package/src/graph/metamodel/pure/packageableElements/runtime/Runtime.ts +30 -1
  173. package/src/graph/metamodel/pure/packageableElements/service/ServiceExecution.ts +8 -4
  174. package/src/graph-manager/action/changeDetection/DSL_FunctionActivatorObserverHelper.ts +36 -0
  175. package/src/graph-manager/action/changeDetection/DSL_Service_ObserverHelper.ts +1 -1
  176. package/src/graph-manager/action/changeDetection/DomainObserverHelper.ts +21 -0
  177. package/src/graph-manager/action/changeDetection/PackageableElementObserver.ts +6 -0
  178. package/src/graph-manager/protocol/pure/v1/V1_PureGraphManager.ts +7 -4
  179. package/src/graph-manager/protocol/pure/v1/engine/V1_Engine.ts +6 -9
  180. package/src/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.ts +2 -1
  181. package/src/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentConfiguration.ts +21 -0
  182. package/src/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentResult.ts +32 -0
  183. package/src/graph-manager/protocol/pure/v1/engine/functionActivator/V1_SnowflakeAppDeploymentConfiguration.ts +30 -0
  184. package/src/graph-manager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.ts +2 -0
  185. package/src/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_FunctionActivator.ts +6 -0
  186. package/src/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_SnowflakeApp.ts +44 -0
  187. package/src/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.ts +16 -0
  188. package/src/graph-manager/protocol/pure/v1/model/packageableElements/service/V1_ServiceExecution.ts +3 -3
  189. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.ts +2 -2
  190. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_FunctionActivatorTransformer.ts +33 -0
  191. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.ts +20 -0
  192. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_RuntimeTransformer.ts +18 -1
  193. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ServiceTransformer.ts +1 -1
  194. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.ts +5 -0
  195. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.ts +29 -0
  196. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.ts +5 -0
  197. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.ts +24 -0
  198. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.ts +5 -0
  199. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FunctionActivatorBuilderHelper.ts +39 -0
  200. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.ts +29 -1
  201. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.ts +3 -10
  202. package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.ts +11 -0
  203. package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.ts +22 -0
  204. package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FunctionActivatorSerializationHelper.ts +34 -0
  205. package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.ts +9 -0
  206. package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.ts +3 -3
  207. package/src/index.ts +3 -1
  208. package/tsconfig.json +11 -0
@@ -323,7 +323,7 @@ export const observe_PureMultiExecution = skipObservedWithContext(
323
323
  hashCode: computed,
324
324
  });
325
325
 
326
- metamodel.executionParameters.forEach((parameter) =>
326
+ metamodel.executionParameters?.forEach((parameter) =>
327
327
  observe_KeyedExecutionParameter(parameter, context),
328
328
  );
329
329
 
@@ -66,6 +66,8 @@ import {
66
66
  observe_RawVariableExpression,
67
67
  } from './RawValueSpecificationObserver.js';
68
68
  import type { INTERNAL__UnknownFunctionActivator } from '../../../graph/metamodel/pure/packageableElements/function/INTERNAL__UnknownFunctionActivator.js';
69
+ import type { SnowflakeApp } from '../../../graph/metamodel/pure/packageableElements/function/SnowflakeApp.js';
70
+ import { observe_SnowflakeAppDeploymentConfiguration } from './DSL_FunctionActivatorObserverHelper.js';
69
71
 
70
72
  const _observe_Abstract_Package = (metamodel: Package): void => {
71
73
  observe_Abstract_PackageableElement(metamodel);
@@ -488,6 +490,25 @@ export const observe_INTERNAL__UnknownFunctionActivator = skipObserved(
488
490
  },
489
491
  );
490
492
 
493
+ export const observe_SnowflakeApp = skipObserved(
494
+ (metamodel: SnowflakeApp): SnowflakeApp => {
495
+ observe_Abstract_PackageableElement(metamodel);
496
+
497
+ makeObservable<SnowflakeApp, '_elementHashCode'>(metamodel, {
498
+ applicationName: observable,
499
+ description: observable,
500
+ owner: observable,
501
+ activationConfiguration: observable,
502
+ _elementHashCode: override,
503
+ });
504
+
505
+ observe_SnowflakeAppDeploymentConfiguration(
506
+ metamodel.activationConfiguration,
507
+ );
508
+ return metamodel;
509
+ },
510
+ );
511
+
491
512
  // ------------------------------------- Type -------------------------------------
492
513
 
493
514
  export const observe_Type = skipObserved((metamodel: Type): Type => {
@@ -45,6 +45,7 @@ import {
45
45
  observe_Package,
46
46
  observe_Profile,
47
47
  observe_SectionIndex,
48
+ observe_SnowflakeApp,
48
49
  } from './DomainObserverHelper.js';
49
50
  import {
50
51
  type ObserverContext,
@@ -71,6 +72,7 @@ import { observe_ExecutionEnvironmentInstance } from './DSL_ExecutionEnvironment
71
72
  import type { INTERNAL__UnknownPackageableElement } from '../../../graph/metamodel/pure/packageableElements/INTERNAL__UnknownPackageableElement.js';
72
73
  import type { INTERNAL__UnknownFunctionActivator } from '../../../graph/metamodel/pure/packageableElements/function/INTERNAL__UnknownFunctionActivator.js';
73
74
  import type { INTERNAL__UnknownStore } from '../../../graph/metamodel/pure/packageableElements/store/INTERNAL__UnknownStore.js';
75
+ import type { SnowflakeApp } from '../../../graph/metamodel/pure/packageableElements/function/SnowflakeApp.js';
74
76
 
75
77
  class PackageableElementObserver implements PackageableElementVisitor<void> {
76
78
  observerContext: ObserverContext;
@@ -103,6 +105,10 @@ class PackageableElementObserver implements PackageableElementVisitor<void> {
103
105
  observe_INTERNAL__UnknownFunctionActivator(element);
104
106
  }
105
107
 
108
+ visit_SnowflakeApp(element: SnowflakeApp): void {
109
+ observe_SnowflakeApp(element);
110
+ }
111
+
106
112
  visit_INTERNAL__UnknownStore(element: INTERNAL__UnknownStore): void {
107
113
  observe_INTERNAL__UnknownStore(element);
108
114
  }
@@ -319,6 +319,7 @@ import {
319
319
  } from './engine/service/V1_TableRowIdentifiers.js';
320
320
  import { V1_transformTablePointer } from './transformation/pureGraph/from/V1_DatabaseTransformer.js';
321
321
  import { EngineError } from '../../../action/EngineError.js';
322
+ import { V1_SnowflakeApp } from './model/packageableElements/function/V1_SnowflakeApp.js';
322
323
 
323
324
  class V1_PureModelContextDataIndex {
324
325
  elements: V1_PackageableElement[] = [];
@@ -3333,13 +3334,13 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
3333
3334
  }
3334
3335
  } else if (execution instanceof PureMultiExecution) {
3335
3336
  sdlcInfo.packageableElementPointers =
3336
- execution.executionParameters.map(
3337
+ execution.executionParameters?.map(
3337
3338
  (e) =>
3338
3339
  new V1_PackageableElementPointer(
3339
3340
  PackageableElementPointerType.MAPPING,
3340
3341
  e.mapping.value.path,
3341
3342
  ),
3342
- );
3343
+ ) ?? [];
3343
3344
  } else {
3344
3345
  throw new UnsupportedOperationError(
3345
3346
  `Can't register service with the specified execution`,
@@ -3451,13 +3452,13 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
3451
3452
  }
3452
3453
  } else if (execution instanceof PureMultiExecution) {
3453
3454
  sdlcInfo.packageableElementPointers =
3454
- execution.executionParameters.map(
3455
+ execution.executionParameters?.map(
3455
3456
  (e) =>
3456
3457
  new V1_PackageableElementPointer(
3457
3458
  PackageableElementPointerType.MAPPING,
3458
3459
  e.mapping.value.path,
3459
3460
  ),
3460
- );
3461
+ ) ?? [];
3461
3462
  } else {
3462
3463
  throw new UnsupportedOperationError(
3463
3464
  `Can't register service with the specified execution`,
@@ -3870,6 +3871,8 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
3870
3871
  return CORE_PURE_PATH.DATA_ELEMENT;
3871
3872
  } else if (protocol instanceof V1_GenerationSpecification) {
3872
3873
  return CORE_PURE_PATH.GENERATION_SPECIFICATION;
3874
+ } else if (protocol instanceof V1_SnowflakeApp) {
3875
+ return CORE_PURE_PATH.SNOWFLAKE_APP;
3873
3876
  }
3874
3877
  const extraElementProtocolClassifierPathGetters = this.pluginManager
3875
3878
  .getPureProtocolProcessorPlugins()
@@ -143,6 +143,7 @@ import {
143
143
  V1_testDataGenerationResultModelSchema,
144
144
  } from './service/V1_TestDataGenerationResult.js';
145
145
  import { V1_RelationalConnectionBuilder } from './relational/V1_RelationalConnectionBuilder.js';
146
+ import { V1_DeploymentResult } from './functionActivator/V1_DeploymentResult.js';
146
147
 
147
148
  class V1_EngineConfig extends TEMPORARY__AbstractEngineConfig {
148
149
  private engine: V1_Engine;
@@ -1071,18 +1072,14 @@ export class V1_Engine {
1071
1072
  async publishFunctionActivatorToSandbox(
1072
1073
  input: V1_FunctionActivatorInput,
1073
1074
  ): Promise<void> {
1074
- const errors =
1075
+ const error = V1_DeploymentResult.serialization.fromJson(
1075
1076
  await this.engineServerClient.publishFunctionActivatorToSandbox(
1076
1077
  V1_FunctionActivatorInput.serialization.toJson(input),
1077
- );
1078
- if (errors.length) {
1078
+ ),
1079
+ );
1080
+ if (!error.successful) {
1079
1081
  throw new Error(
1080
- `Function activator validation failed:\n${errors
1081
- .map((error) =>
1082
- V1_FunctionActivatorError.serialization.fromJson(error),
1083
- )
1084
- .map((error) => `- ${error.message}`)
1085
- .join('\n')}`,
1082
+ `Function activator validation failed: ${error.errors.join('\n')}`,
1086
1083
  );
1087
1084
  }
1088
1085
  }
@@ -82,6 +82,7 @@ import type { V1_TestDataGenerationInput } from './service/V1_TestDataGeneration
82
82
  import type { V1_TestDataGenerationResult } from './service/V1_TestDataGenerationResult.js';
83
83
  import type { V1_RelationalConnectionBuilder } from './relational/V1_RelationalConnectionBuilder.js';
84
84
  import type { V1_LambdaPrefix } from './lambda/V1_LambdaPrefix.js';
85
+ import type { V1_DeploymentResult } from './functionActivator/V1_DeploymentResult.js';
85
86
 
86
87
  enum CORE_ENGINE_ACTIVITY_TRACE {
87
88
  GRAMMAR_TO_JSON = 'transform Pure code to protocol',
@@ -835,7 +836,7 @@ export class V1_EngineServerClient extends AbstractServerClient {
835
836
 
836
837
  publishFunctionActivatorToSandbox(
837
838
  input: PlainObject<V1_FunctionActivatorInput>,
838
- ): Promise<PlainObject<V1_FunctionActivatorError>[]> {
839
+ ): Promise<PlainObject<V1_DeploymentResult>> {
839
840
  return this.postWithTracing(
840
841
  this.getTraceData(
841
842
  CORE_ENGINE_ACTIVITY_TRACE.PUBLISH_FUNCTION_ACTIVATOR_TO_SANDBOX,
@@ -0,0 +1,21 @@
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
+
19
+ export abstract class V1_DeploymentConfiguration implements Hashable {
20
+ abstract get hashCode(): string;
21
+ }
@@ -0,0 +1,32 @@
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, list } from 'serializr';
18
+ import { SerializationFactory } from '@finos/legend-shared';
19
+
20
+ export class V1_DeploymentResult {
21
+ activatorIdentifier!: string;
22
+ successful!: boolean;
23
+ errors: string[] = [];
24
+
25
+ static readonly serialization = new SerializationFactory(
26
+ createModelSchema(V1_DeploymentResult, {
27
+ activatorIdentifier: primitive(),
28
+ successful: primitive(),
29
+ errors: list(primitive()),
30
+ }),
31
+ );
32
+ }
@@ -0,0 +1,30 @@
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 Hashable } from '@finos/legend-shared';
18
+ import { V1_DeploymentConfiguration } from './V1_DeploymentConfiguration.js';
19
+ import type { V1_ConnectionPointer } from '../../model/packageableElements/connection/V1_ConnectionPointer.js';
20
+
21
+ export class V1_SnowflakeAppDeploymentConfiguration
22
+ extends V1_DeploymentConfiguration
23
+ implements Hashable
24
+ {
25
+ activationConnection: V1_ConnectionPointer | undefined;
26
+
27
+ override get hashCode(): string {
28
+ return hashArray([this.activationConnection ?? '']);
29
+ }
30
+ }
@@ -37,6 +37,7 @@ import type { V1_ExecutionEnvironmentInstance } from './service/V1_ExecutionEnvi
37
37
  import type { V1_INTERNAL__UnknownPackageableElement } from './V1_INTERNAL__UnknownPackageableElement.js';
38
38
  import type { V1_INTERNAL__UnknownFunctionActivator } from './function/V1_INTERNAL__UnknownFunctionActivator.js';
39
39
  import type { V1_INTERNAL__UnknownStore } from './store/V1_INTERNAL__UnknownStore.js';
40
+ import type { V1_SnowflakeApp } from './function/V1_SnowflakeApp.js';
40
41
 
41
42
  export interface V1_PackageableElementVisitor<T> {
42
43
  visit_PackageableElement(element: V1_PackageableElement): T;
@@ -68,6 +69,7 @@ export interface V1_PackageableElementVisitor<T> {
68
69
  visit_ExecutionEnvironmentInstance(
69
70
  element: V1_ExecutionEnvironmentInstance,
70
71
  ): T;
72
+ visit_SnowflakeApp(element: V1_SnowflakeApp): T;
71
73
  }
72
74
 
73
75
  export abstract class V1_PackageableElement implements Hashable {
@@ -16,10 +16,16 @@
16
16
 
17
17
  import type { Hashable } from '@finos/legend-shared';
18
18
  import { V1_PackageableElement } from '../../../model/packageableElements/V1_PackageableElement.js';
19
+ import type { V1_TaggedValue } from '../domain/V1_TaggedValue.js';
20
+ import type { V1_StereotypePtr } from '../domain/V1_StereotypePtr.js';
21
+ import type { V1_DeploymentConfiguration } from '../../../engine/functionActivator/V1_DeploymentConfiguration.js';
19
22
 
20
23
  export abstract class V1_FunctionActivator
21
24
  extends V1_PackageableElement
22
25
  implements Hashable
23
26
  {
24
27
  function!: string;
28
+ activationConfiguration: V1_DeploymentConfiguration | undefined;
29
+ stereotypes: V1_StereotypePtr[] = [];
30
+ taggedValues: V1_TaggedValue[] = [];
25
31
  }
@@ -0,0 +1,44 @@
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 } from '@finos/legend-shared';
18
+ import { V1_FunctionActivator } from './V1_FunctionActivator.js';
19
+ import type { V1_PackageableElementVisitor } from '../V1_PackageableElement.js';
20
+ import { CORE_HASH_STRUCTURE } from '../../../../../../../graph/Core_HashUtils.js';
21
+ import type { V1_SnowflakeAppDeploymentConfiguration } from '../../../engine/functionActivator/V1_SnowflakeAppDeploymentConfiguration.js';
22
+
23
+ export class V1_SnowflakeApp extends V1_FunctionActivator {
24
+ applicationName!: string;
25
+ description: string | undefined;
26
+ owner: string | undefined;
27
+ declare activationConfiguration: V1_SnowflakeAppDeploymentConfiguration;
28
+
29
+ accept_PackageableElementVisitor<T>(
30
+ visitor: V1_PackageableElementVisitor<T>,
31
+ ): T {
32
+ return visitor.visit_SnowflakeApp(this);
33
+ }
34
+
35
+ override get hashCode(): string {
36
+ return hashArray([
37
+ CORE_HASH_STRUCTURE.SNOWFLAKE_APP,
38
+ this.applicationName,
39
+ this.description ?? '',
40
+ this.owner ?? '',
41
+ this.activationConfiguration,
42
+ ]);
43
+ }
44
+ }
@@ -18,6 +18,7 @@ import { CORE_HASH_STRUCTURE } from '../../../../../../../graph/Core_HashUtils.j
18
18
  import { type Hashable, hashArray } from '@finos/legend-shared';
19
19
  import type { V1_PackageableElementPointer } from '../../../model/packageableElements/V1_PackageableElement.js';
20
20
  import type { V1_Connection } from '../../../model/packageableElements/connection/V1_Connection.js';
21
+ import type { V1_ConnectionPointer } from '../connection/V1_ConnectionPointer.js';
21
22
 
22
23
  export abstract class V1_Runtime implements Hashable {
23
24
  abstract get hashCode(): string;
@@ -49,14 +50,29 @@ export class V1_StoreConnections implements Hashable {
49
50
  }
50
51
  }
51
52
 
53
+ export class V1_ConnectionStores implements Hashable {
54
+ connectionPointer!: V1_ConnectionPointer;
55
+ storePointers: V1_PackageableElementPointer[] = [];
56
+
57
+ get hashCode(): string {
58
+ return hashArray([
59
+ CORE_HASH_STRUCTURE.STORE_CONNECTIONS,
60
+ this.connectionPointer,
61
+ hashArray(this.storePointers),
62
+ ]);
63
+ }
64
+ }
65
+
52
66
  export class V1_EngineRuntime extends V1_Runtime implements Hashable {
53
67
  mappings: V1_PackageableElementPointer[] = [];
68
+ connectionStores: V1_ConnectionStores[] = [];
54
69
  connections: V1_StoreConnections[] = [];
55
70
 
56
71
  get hashCode(): string {
57
72
  return hashArray([
58
73
  CORE_HASH_STRUCTURE.ENGINE_RUNTIME,
59
74
  hashArray(this.mappings),
75
+ hashArray(this.connectionStores),
60
76
  hashArray(this.connections),
61
77
  ]);
62
78
  }
@@ -75,15 +75,15 @@ export class V1_PureMultiExecution
75
75
  extends V1_PureExecution
76
76
  implements Hashable
77
77
  {
78
- executionKey!: string;
79
- executionParameters: V1_KeyedExecutionParameter[] = [];
78
+ executionKey: string | undefined;
79
+ executionParameters: V1_KeyedExecutionParameter[] | undefined;
80
80
 
81
81
  override get hashCode(): string {
82
82
  return hashArray([
83
83
  CORE_HASH_STRUCTURE.SERVICE_PURE_MULTI_EXECUTION,
84
84
  super.hashCode,
85
85
  this.executionKey,
86
- hashArray(this.executionParameters),
86
+ hashArray(this.executionParameters ?? []),
87
87
  ]);
88
88
  }
89
89
  }
@@ -369,7 +369,7 @@ export const V1_transformRelationalDatabaseConnection = (
369
369
  return connection;
370
370
  };
371
371
 
372
- const transformConnectionPointer = (
372
+ export const V1_transformConnectionPointer = (
373
373
  metamodel: ConnectionPointer,
374
374
  ): V1_ConnectionPointer => {
375
375
  const connection = new V1_ConnectionPointer();
@@ -454,7 +454,7 @@ class ConnectionTransformer implements ConnectionVisitor<V1_Connection> {
454
454
  }
455
455
 
456
456
  visit_ConnectionPointer(connection: ConnectionPointer): V1_Connection {
457
- return transformConnectionPointer(connection);
457
+ return V1_transformConnectionPointer(connection);
458
458
  }
459
459
 
460
460
  visit_ModelChainConnection(connection: ModelChainConnection): V1_Connection {
@@ -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 type { SnowflakeAppDeploymentConfiguration } from '../../../../../../../graph/metamodel/pure/functionActivator/SnowflakeAppDeploymentConfiguration.js';
18
+ import { V1_SnowflakeAppDeploymentConfiguration } from '../../../engine/functionActivator/V1_SnowflakeAppDeploymentConfiguration.js';
19
+ import { V1_transformConnectionPointer } from './V1_ConnectionTransformer.js';
20
+
21
+ export const V1_transformSnowflakeAppDeploymentConfiguration = (
22
+ element: SnowflakeAppDeploymentConfiguration,
23
+ ): V1_SnowflakeAppDeploymentConfiguration => {
24
+ const protocol = new V1_SnowflakeAppDeploymentConfiguration();
25
+
26
+ if (element.activationConnection) {
27
+ protocol.activationConnection = V1_transformConnectionPointer(
28
+ element.activationConnection,
29
+ );
30
+ }
31
+
32
+ return protocol;
33
+ };
@@ -76,6 +76,9 @@ import { V1_INTERNAL__UnknownFunctionActivator } from '../../../model/packageabl
76
76
  import type { INTERNAL__UnknownStore } from '../../../../../../../graph/metamodel/pure/packageableElements/store/INTERNAL__UnknownStore.js';
77
77
  import { V1_INTERNAL__UnknownStore } from '../../../model/packageableElements/store/V1_INTERNAL__UnknownStore.js';
78
78
  import { generateFunctionPrettyName } from '../../../../../../../graph/helpers/PureLanguageHelper.js';
79
+ import { V1_SnowflakeApp } from '../../../model/packageableElements/function/V1_SnowflakeApp.js';
80
+ import type { SnowflakeApp } from '../../../../../../../graph/metamodel/pure/packageableElements/function/SnowflakeApp.js';
81
+ import { V1_transformSnowflakeAppDeploymentConfiguration } from './V1_FunctionActivatorTransformer.js';
79
82
 
80
83
  class V1_PackageableElementTransformer
81
84
  implements PackageableElementVisitor<V1_PackageableElement>
@@ -128,6 +131,23 @@ class V1_PackageableElementTransformer
128
131
  return protocol;
129
132
  }
130
133
 
134
+ visit_SnowflakeApp(element: SnowflakeApp): V1_PackageableElement {
135
+ const protocol = new V1_SnowflakeApp();
136
+ V1_initPackageableElement(protocol, element);
137
+ protocol.function = generateFunctionPrettyName(element.function.value, {
138
+ fullPath: true,
139
+ spacing: false,
140
+ });
141
+ protocol.applicationName = element.applicationName;
142
+ protocol.description = element.description;
143
+ protocol.owner = element.owner;
144
+ protocol.activationConfiguration =
145
+ V1_transformSnowflakeAppDeploymentConfiguration(
146
+ element.activationConfiguration,
147
+ );
148
+ return protocol;
149
+ }
150
+
131
151
  visit_INTERNAL__UnknownStore(
132
152
  element: INTERNAL__UnknownStore,
133
153
  ): V1_PackageableElement {
@@ -33,8 +33,12 @@ import {
33
33
  V1_StoreConnections,
34
34
  V1_IdentifiedConnection,
35
35
  V1_RuntimePointer,
36
+ V1_ConnectionStores,
36
37
  } from '../../../model/packageableElements/runtime/V1_Runtime.js';
37
- import { V1_transformConnection } from './V1_ConnectionTransformer.js';
38
+ import {
39
+ V1_transformConnection,
40
+ V1_transformConnectionPointer,
41
+ } from './V1_ConnectionTransformer.js';
38
42
  import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext.js';
39
43
  import { PackageableElementPointerType } from '../../../../../../../graph/MetaModelConst.js';
40
44
 
@@ -70,6 +74,19 @@ const transformEngineRuntime = (
70
74
  e,
71
75
  ),
72
76
  );
77
+ runtime.connectionStores = element.connectionStores.map((connection) => {
78
+ const val = new V1_ConnectionStores();
79
+ val.connectionPointer = V1_transformConnectionPointer(
80
+ connection.connectionPointer,
81
+ );
82
+ val.storePointers = connection.storePointers.map((s) =>
83
+ V1_transformElementReferencePointer(
84
+ PackageableElementPointerType.STORE,
85
+ s,
86
+ ),
87
+ );
88
+ return val;
89
+ });
73
90
  return runtime;
74
91
  };
75
92
 
@@ -213,7 +213,7 @@ const transformMultiExecution = (
213
213
  execution.func = element.func.accept_RawValueSpecificationVisitor(
214
214
  new V1_RawValueSpecificationTransformer(context),
215
215
  ) as V1_RawLambda;
216
- execution.executionParameters = element.executionParameters.map((param) =>
216
+ execution.executionParameters = element.executionParameters?.map((param) =>
217
217
  transformKeyedParameter(param, context),
218
218
  );
219
219
  return execution;
@@ -48,6 +48,7 @@ import type { V1_ExecutionEnvironmentInstance } from '../../../model/packageable
48
48
  import type { V1_INTERNAL__UnknownPackageableElement } from '../../../model/packageableElements/V1_INTERNAL__UnknownPackageableElement.js';
49
49
  import type { V1_INTERNAL__UnknownFunctionActivator } from '../../../model/packageableElements/function/V1_INTERNAL__UnknownFunctionActivator.js';
50
50
  import type { V1_INTERNAL__UnknownStore } from '../../../model/packageableElements/store/V1_INTERNAL__UnknownStore.js';
51
+ import type { V1_SnowflakeApp } from '../../../model/packageableElements/function/V1_SnowflakeApp.js';
51
52
 
52
53
  export class V1_ElementFifthPassBuilder
53
54
  implements V1_PackageableElementVisitor<void>
@@ -165,4 +166,8 @@ export class V1_ElementFifthPassBuilder
165
166
  ): void {
166
167
  throw new UnsupportedOperationError();
167
168
  }
169
+
170
+ visit_SnowflakeApp(element: V1_SnowflakeApp): void {
171
+ throw new UnsupportedOperationError();
172
+ }
168
173
  }
@@ -74,6 +74,8 @@ import { INTERNAL__UnknownFunctionActivator } from '../../../../../../../graph/m
74
74
  import type { V1_INTERNAL__UnknownFunctionActivator } from '../../../model/packageableElements/function/V1_INTERNAL__UnknownFunctionActivator.js';
75
75
  import type { V1_INTERNAL__UnknownStore } from '../../../model/packageableElements/store/V1_INTERNAL__UnknownStore.js';
76
76
  import { INTERNAL__UnknownStore } from '../../../../../../../graph/metamodel/pure/packageableElements/store/INTERNAL__UnknownStore.js';
77
+ import type { V1_SnowflakeApp } from '../../../model/packageableElements/function/V1_SnowflakeApp.js';
78
+ import { SnowflakeApp } from '../../../../../../../graph/metamodel/pure/packageableElements/function/SnowflakeApp.js';
77
79
 
78
80
  export class V1_ElementFirstPassBuilder
79
81
  implements V1_PackageableElementVisitor<PackageableElement>
@@ -133,6 +135,33 @@ export class V1_ElementFirstPassBuilder
133
135
  return metamodel;
134
136
  }
135
137
 
138
+ visit_SnowflakeApp(element: V1_SnowflakeApp): PackageableElement {
139
+ assertNonEmptyString(
140
+ element.package,
141
+ `Function activator 'package' field is missing or empty`,
142
+ );
143
+ assertNonEmptyString(
144
+ element.name,
145
+ `Function activator 'name' field is missing or empty`,
146
+ );
147
+ const metamodel = new SnowflakeApp(element.name);
148
+ const path = V1_buildFullPath(element.package, element.name);
149
+ V1_checkDuplicatedElement(path, this.context, this.elementPathCache);
150
+ this.context.currentSubGraph.setOwnFunctionActivator(path, metamodel);
151
+ addElementToPackage(
152
+ getOrCreateGraphPackage(
153
+ this.context.currentSubGraph,
154
+ element.package,
155
+ this.packageCache,
156
+ ),
157
+ metamodel,
158
+ );
159
+ metamodel.applicationName = element.applicationName;
160
+ metamodel.description = element.description;
161
+ metamodel.owner = element.owner;
162
+ return metamodel;
163
+ }
164
+
136
165
  visit_INTERNAL__UnknownFunctionActivator(
137
166
  element: V1_INTERNAL__UnknownFunctionActivator,
138
167
  ): PackageableElement {
@@ -56,6 +56,7 @@ import type { V1_ExecutionEnvironmentInstance } from '../../../model/packageable
56
56
  import type { V1_INTERNAL__UnknownPackageableElement } from '../../../model/packageableElements/V1_INTERNAL__UnknownPackageableElement.js';
57
57
  import type { V1_INTERNAL__UnknownFunctionActivator } from '../../../model/packageableElements/function/V1_INTERNAL__UnknownFunctionActivator.js';
58
58
  import type { V1_INTERNAL__UnknownStore } from '../../../model/packageableElements/store/V1_INTERNAL__UnknownStore.js';
59
+ import type { V1_SnowflakeApp } from '../../../model/packageableElements/function/V1_SnowflakeApp.js';
59
60
 
60
61
  export class V1_ElementFourthPassBuilder
61
62
  implements V1_PackageableElementVisitor<void>
@@ -84,6 +85,10 @@ export class V1_ElementFourthPassBuilder
84
85
  throw new UnsupportedOperationError();
85
86
  }
86
87
 
88
+ visit_SnowflakeApp(element: V1_SnowflakeApp): void {
89
+ throw new UnsupportedOperationError();
90
+ }
91
+
87
92
  visit_INTERNAL__UnknownStore(element: V1_INTERNAL__UnknownStore): void {
88
93
  return;
89
94
  }
@@ -102,6 +102,8 @@ import {
102
102
  } from '../../../model/packageableElements/mapping/V1_MappingInclude.js';
103
103
  import { V1_INTERNAL__UnknownMappingInclude } from '../../../model/packageableElements/mapping/V1_INTERNAL__UnknownMappingInclude.js';
104
104
  import type { V1_INTERNAL__UnknownStore } from '../../../model/packageableElements/store/V1_INTERNAL__UnknownStore.js';
105
+ import type { V1_SnowflakeApp } from '../../../model/packageableElements/function/V1_SnowflakeApp.js';
106
+ import { V1_buildSnowflakeAppDeploymentConfiguration } from './helpers/V1_FunctionActivatorBuilderHelper.js';
105
107
 
106
108
  export class V1_ElementSecondPassBuilder
107
109
  implements V1_PackageableElementVisitor<void>
@@ -143,6 +145,28 @@ export class V1_ElementSecondPassBuilder
143
145
  );
144
146
  }
145
147
 
148
+ visit_SnowflakeApp(element: V1_SnowflakeApp): void {
149
+ const metamodel = this.context.currentSubGraph.getOwnFunctionActivator(
150
+ V1_buildFullPath(element.package, element.name),
151
+ );
152
+ metamodel.function = PackageableElementExplicitReference.create(
153
+ guaranteeNonNullable(
154
+ this.context.graph.functions.find(
155
+ (fn) =>
156
+ generateFunctionPrettyName(fn, {
157
+ fullPath: true,
158
+ spacing: false,
159
+ }) === element.function.replaceAll(/\s*/gu, ''),
160
+ ),
161
+ ),
162
+ );
163
+ metamodel.activationConfiguration =
164
+ V1_buildSnowflakeAppDeploymentConfiguration(
165
+ element.activationConfiguration,
166
+ this.context,
167
+ );
168
+ }
169
+
146
170
  visit_INTERNAL__UnknownStore(element: V1_INTERNAL__UnknownStore): void {
147
171
  return;
148
172
  }