@finos/legend-graph 31.4.0 → 31.4.2
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.
- package/lib/graph/Core_HashUtils.d.ts +2 -1
- package/lib/graph/Core_HashUtils.d.ts.map +1 -1
- package/lib/graph/Core_HashUtils.js +2 -0
- package/lib/graph/Core_HashUtils.js.map +1 -1
- package/lib/graph/MetaModelConst.d.ts +2 -1
- package/lib/graph/MetaModelConst.d.ts.map +1 -1
- package/lib/graph/MetaModelConst.js +1 -0
- package/lib/graph/MetaModelConst.js.map +1 -1
- package/lib/graph/helpers/DSL_Service_Helper.js +1 -1
- package/lib/graph/helpers/DSL_Service_Helper.js.map +1 -1
- package/lib/graph/helpers/PureLanguageHelper.d.ts +1 -0
- package/lib/graph/helpers/PureLanguageHelper.d.ts.map +1 -1
- package/lib/graph/helpers/PureLanguageHelper.js +3 -1
- package/lib/graph/helpers/PureLanguageHelper.js.map +1 -1
- package/lib/graph/helpers/STO_Relational_Helper.d.ts +1 -0
- package/lib/graph/helpers/STO_Relational_Helper.d.ts.map +1 -1
- package/lib/graph/helpers/STO_Relational_Helper.js +2 -0
- package/lib/graph/helpers/STO_Relational_Helper.js.map +1 -1
- package/lib/graph/metamodel/pure/functionActivator/DeploymentConfiguration.d.ts +20 -0
- package/lib/graph/metamodel/pure/functionActivator/DeploymentConfiguration.d.ts.map +1 -0
- package/lib/graph/metamodel/pure/functionActivator/DeploymentConfiguration.js +18 -0
- package/lib/graph/metamodel/pure/functionActivator/DeploymentConfiguration.js.map +1 -0
- package/lib/graph/metamodel/pure/functionActivator/SnowflakeAppDeploymentConfiguration.d.ts +22 -0
- package/lib/graph/metamodel/pure/functionActivator/SnowflakeAppDeploymentConfiguration.d.ts.map +1 -0
- package/lib/graph/metamodel/pure/functionActivator/SnowflakeAppDeploymentConfiguration.js +24 -0
- package/lib/graph/metamodel/pure/functionActivator/SnowflakeAppDeploymentConfiguration.js.map +1 -0
- package/lib/graph/metamodel/pure/functionActivator/SnowflakeAppType.d.ts +20 -0
- package/lib/graph/metamodel/pure/functionActivator/SnowflakeAppType.d.ts.map +1 -0
- package/lib/graph/metamodel/pure/functionActivator/SnowflakeAppType.js +21 -0
- package/lib/graph/metamodel/pure/functionActivator/SnowflakeAppType.js.map +1 -0
- package/lib/graph/metamodel/pure/packageableElements/PackageableElement.d.ts +2 -0
- package/lib/graph/metamodel/pure/packageableElements/PackageableElement.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/PackageableElement.js.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/function/FunctionActivator.d.ts +2 -0
- package/lib/graph/metamodel/pure/packageableElements/function/FunctionActivator.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/function/FunctionActivator.js +1 -0
- package/lib/graph/metamodel/pure/packageableElements/function/FunctionActivator.js.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/function/SnowflakeApp.d.ts +14 -0
- package/lib/graph/metamodel/pure/packageableElements/function/SnowflakeApp.d.ts.map +1 -0
- package/lib/graph/metamodel/pure/packageableElements/function/SnowflakeApp.js +38 -0
- package/lib/graph/metamodel/pure/packageableElements/function/SnowflakeApp.js.map +1 -0
- package/lib/graph/metamodel/pure/packageableElements/runtime/Runtime.d.ts +8 -1
- package/lib/graph/metamodel/pure/packageableElements/runtime/Runtime.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/runtime/Runtime.js +16 -0
- package/lib/graph/metamodel/pure/packageableElements/runtime/Runtime.js.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/service/ServiceExecution.d.ts +3 -3
- package/lib/graph/metamodel/pure/packageableElements/service/ServiceExecution.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/service/ServiceExecution.js +2 -2
- package/lib/graph/metamodel/pure/packageableElements/service/ServiceExecution.js.map +1 -1
- package/lib/graph-manager/action/changeDetection/DSL_FunctionActivatorObserverHelper.d.ts +18 -0
- package/lib/graph-manager/action/changeDetection/DSL_FunctionActivatorObserverHelper.d.ts.map +1 -0
- package/lib/graph-manager/action/changeDetection/DSL_FunctionActivatorObserverHelper.js +28 -0
- package/lib/graph-manager/action/changeDetection/DSL_FunctionActivatorObserverHelper.js.map +1 -0
- package/lib/graph-manager/action/changeDetection/DSL_Service_ObserverHelper.js +1 -1
- package/lib/graph-manager/action/changeDetection/DSL_Service_ObserverHelper.js.map +1 -1
- package/lib/graph-manager/action/changeDetection/DomainObserverHelper.d.ts +2 -0
- package/lib/graph-manager/action/changeDetection/DomainObserverHelper.d.ts.map +1 -1
- package/lib/graph-manager/action/changeDetection/DomainObserverHelper.js +14 -0
- package/lib/graph-manager/action/changeDetection/DomainObserverHelper.js.map +1 -1
- package/lib/graph-manager/action/changeDetection/PackageableElementObserver.d.ts.map +1 -1
- package/lib/graph-manager/action/changeDetection/PackageableElementObserver.js +4 -1
- package/lib/graph-manager/action/changeDetection/PackageableElementObserver.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.js +6 -2
- package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/engine/V1_Engine.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/engine/V1_Engine.js +4 -6
- package/lib/graph-manager/protocol/pure/v1/engine/V1_Engine.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.d.ts +2 -1
- package/lib/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentConfiguration.d.ts +20 -0
- package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentConfiguration.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentConfiguration.js +18 -0
- package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentConfiguration.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentResult.d.ts +23 -0
- package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentResult.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentResult.js +28 -0
- package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentResult.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_SnowflakeAppDeploymentConfiguration.d.ts +23 -0
- package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_SnowflakeAppDeploymentConfiguration.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_SnowflakeAppDeploymentConfiguration.js +24 -0
- package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_SnowflakeAppDeploymentConfiguration.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_SnowflakeAppType.d.ts +20 -0
- package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_SnowflakeAppType.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_SnowflakeAppType.js +21 -0
- package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_SnowflakeAppType.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.d.ts +2 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_FunctionActivator.d.ts +6 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_FunctionActivator.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_FunctionActivator.js +3 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_FunctionActivator.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_SnowflakeApp.d.ts +29 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_SnowflakeApp.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_SnowflakeApp.js +38 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_SnowflakeApp.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.d.ts +7 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.js +13 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/service/V1_ServiceExecution.d.ts +2 -2
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/service/V1_ServiceExecution.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/service/V1_ServiceExecution.js +2 -2
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/service/V1_ServiceExecution.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.d.ts +3 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.js +2 -2
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_FunctionActivatorTransformer.d.ts +22 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_FunctionActivatorTransformer.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_FunctionActivatorTransformer.js +38 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_FunctionActivatorTransformer.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.js +20 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_RuntimeTransformer.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_RuntimeTransformer.js +8 -2
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_RuntimeTransformer.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ServiceTransformer.js +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ServiceTransformer.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.d.ts +2 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.js +3 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.d.ts +2 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.js +18 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.d.ts +2 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.js +3 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.d.ts +2 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.js +11 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.d.ts +2 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.js +3 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FunctionActivatorBuilderHelper.d.ts +23 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FunctionActivatorBuilderHelper.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FunctionActivatorBuilderHelper.js +40 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FunctionActivatorBuilderHelper.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalConnectionBuilderHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalConnectionBuilderHelper.js +2 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalConnectionBuilderHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.js +13 -2
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.js +3 -7
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.js +6 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.d.ts +3 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.js +20 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FunctionActivatorSerializationHelper.d.ts +18 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FunctionActivatorSerializationHelper.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FunctionActivatorSerializationHelper.js +25 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FunctionActivatorSerializationHelper.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.js +7 -2
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.js +2 -2
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.js.map +1 -1
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -0
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/package.json +1 -1
- package/src/graph/Core_HashUtils.ts +3 -0
- package/src/graph/MetaModelConst.ts +1 -0
- package/src/graph/helpers/DSL_Service_Helper.ts +1 -1
- package/src/graph/helpers/PureLanguageHelper.ts +11 -6
- package/src/graph/helpers/STO_Relational_Helper.ts +6 -0
- package/src/graph/metamodel/pure/functionActivator/DeploymentConfiguration.ts +21 -0
- package/src/graph/metamodel/pure/functionActivator/SnowflakeAppDeploymentConfiguration.ts +27 -0
- package/src/graph/metamodel/pure/functionActivator/SnowflakeAppType.ts +20 -0
- package/src/graph/metamodel/pure/packageableElements/PackageableElement.ts +2 -0
- package/src/graph/metamodel/pure/packageableElements/function/FunctionActivator.ts +2 -0
- package/src/graph/metamodel/pure/packageableElements/function/SnowflakeApp.ts +46 -0
- package/src/graph/metamodel/pure/packageableElements/runtime/Runtime.ts +30 -1
- package/src/graph/metamodel/pure/packageableElements/service/ServiceExecution.ts +8 -4
- package/src/graph-manager/action/changeDetection/DSL_FunctionActivatorObserverHelper.ts +36 -0
- package/src/graph-manager/action/changeDetection/DSL_Service_ObserverHelper.ts +1 -1
- package/src/graph-manager/action/changeDetection/DomainObserverHelper.ts +22 -0
- package/src/graph-manager/action/changeDetection/PackageableElementObserver.ts +6 -0
- package/src/graph-manager/protocol/pure/v1/V1_PureGraphManager.ts +7 -4
- package/src/graph-manager/protocol/pure/v1/engine/V1_Engine.ts +6 -9
- package/src/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.ts +2 -1
- package/src/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentConfiguration.ts +21 -0
- package/src/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentResult.ts +32 -0
- package/src/graph-manager/protocol/pure/v1/engine/functionActivator/V1_SnowflakeAppDeploymentConfiguration.ts +30 -0
- package/src/graph-manager/protocol/pure/v1/engine/functionActivator/V1_SnowflakeAppType.ts +20 -0
- package/src/graph-manager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.ts +2 -0
- package/src/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_FunctionActivator.ts +6 -0
- package/src/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_SnowflakeApp.ts +47 -0
- package/src/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.ts +16 -0
- package/src/graph-manager/protocol/pure/v1/model/packageableElements/service/V1_ServiceExecution.ts +3 -3
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.ts +2 -2
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_FunctionActivatorTransformer.ts +52 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.ts +27 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_RuntimeTransformer.ts +18 -1
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ServiceTransformer.ts +1 -1
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.ts +5 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.ts +33 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.ts +5 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.ts +25 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.ts +5 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FunctionActivatorBuilderHelper.ts +57 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalConnectionBuilderHelper.ts +2 -1
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.ts +29 -1
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.ts +3 -10
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.ts +11 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.ts +23 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FunctionActivatorSerializationHelper.ts +34 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.ts +9 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.ts +3 -3
- package/src/index.ts +4 -0
- package/tsconfig.json +13 -0
|
@@ -0,0 +1,27 @@
|
|
|
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 type { ConnectionPointer } from '../packageableElements/connection/Connection.js';
|
|
19
|
+
import { DeploymentConfiguration } from './DeploymentConfiguration.js';
|
|
20
|
+
|
|
21
|
+
export class SnowflakeAppDeploymentConfiguration extends DeploymentConfiguration {
|
|
22
|
+
activationConnection: ConnectionPointer | undefined;
|
|
23
|
+
|
|
24
|
+
override get hashCode(): string {
|
|
25
|
+
return hashArray([this.activationConnection ?? '']);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
export enum SnowflakeAppType {
|
|
18
|
+
FULL = 'FULL',
|
|
19
|
+
STAGE = 'STAGE',
|
|
20
|
+
}
|
|
@@ -45,6 +45,7 @@ import type { ExecutionEnvironmentInstance } from './service/ExecutionEnvironmen
|
|
|
45
45
|
import type { INTERNAL__UnknownPackageableElement } from './INTERNAL__UnknownPackageableElement.js';
|
|
46
46
|
import type { INTERNAL__UnknownFunctionActivator } from './function/INTERNAL__UnknownFunctionActivator.js';
|
|
47
47
|
import type { INTERNAL__UnknownStore } from './store/INTERNAL__UnknownStore.js';
|
|
48
|
+
import type { SnowflakeApp } from './function/SnowflakeApp.js';
|
|
48
49
|
|
|
49
50
|
export interface PackageableElementVisitor<T> {
|
|
50
51
|
visit_PackageableElement(element: PackageableElement): T;
|
|
@@ -76,6 +77,7 @@ export interface PackageableElementVisitor<T> {
|
|
|
76
77
|
visit_GenerationSpecification(element: GenerationSpecification): T;
|
|
77
78
|
visit_DataElement(element: DataElement): T;
|
|
78
79
|
visit_ExecutionEnvironmentInstance(element: ExecutionEnvironmentInstance): T;
|
|
80
|
+
visit_SnowflakeApp(element: SnowflakeApp): T;
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
class ModelElement extends AnnotatedElement {
|
|
@@ -18,6 +18,7 @@ import type { Hashable } from '@finos/legend-shared';
|
|
|
18
18
|
import { PackageableElement } from '../PackageableElement.js';
|
|
19
19
|
import type { PackageableElementReference } from '../PackageableElementReference.js';
|
|
20
20
|
import type { ConcreteFunctionDefinition } from './ConcreteFunctionDefinition.js';
|
|
21
|
+
import type { DeploymentConfiguration } from '../../functionActivator/DeploymentConfiguration.js';
|
|
21
22
|
|
|
22
23
|
export abstract class FunctionActivator
|
|
23
24
|
extends PackageableElement
|
|
@@ -30,4 +31,5 @@ export abstract class FunctionActivator
|
|
|
30
31
|
* @discrepancy model
|
|
31
32
|
*/
|
|
32
33
|
function!: PackageableElementReference<ConcreteFunctionDefinition>;
|
|
34
|
+
activationConfiguration!: DeploymentConfiguration;
|
|
33
35
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
import { hashArray } from '@finos/legend-shared';
|
|
17
|
+
import { CORE_HASH_STRUCTURE } from '../../../../Core_HashUtils.js';
|
|
18
|
+
import type { PackageableElementVisitor } from '../PackageableElement.js';
|
|
19
|
+
import { FunctionActivator } from './FunctionActivator.js';
|
|
20
|
+
import type { SnowflakeAppDeploymentConfiguration } from '../../functionActivator/SnowflakeAppDeploymentConfiguration.js';
|
|
21
|
+
import type { SnowflakeAppType } from '../../functionActivator/SnowflakeAppType.js';
|
|
22
|
+
|
|
23
|
+
export class SnowflakeApp extends FunctionActivator {
|
|
24
|
+
applicationName!: string;
|
|
25
|
+
description: string | undefined;
|
|
26
|
+
owner: string | undefined;
|
|
27
|
+
declare activationConfiguration: SnowflakeAppDeploymentConfiguration;
|
|
28
|
+
type: SnowflakeAppType | undefined;
|
|
29
|
+
|
|
30
|
+
accept_PackageableElementVisitor<T>(
|
|
31
|
+
visitor: PackageableElementVisitor<T>,
|
|
32
|
+
): T {
|
|
33
|
+
return visitor.visit_SnowflakeApp(this);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
override get hashCode(): string {
|
|
37
|
+
return hashArray([
|
|
38
|
+
CORE_HASH_STRUCTURE.SNOWFLAKE_APP,
|
|
39
|
+
this.applicationName,
|
|
40
|
+
this.description ?? '',
|
|
41
|
+
this.owner ?? '',
|
|
42
|
+
this.activationConfiguration,
|
|
43
|
+
this.type ?? '',
|
|
44
|
+
]);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -19,7 +19,10 @@ import {
|
|
|
19
19
|
CORE_HASH_STRUCTURE,
|
|
20
20
|
hashElementPointer,
|
|
21
21
|
} from '../../../../../graph/Core_HashUtils.js';
|
|
22
|
-
import type {
|
|
22
|
+
import type {
|
|
23
|
+
Connection,
|
|
24
|
+
ConnectionPointer,
|
|
25
|
+
} from '../connection/Connection.js';
|
|
23
26
|
import type { PackageableRuntime } from './PackageableRuntime.js';
|
|
24
27
|
import type { Mapping } from '../mapping/Mapping.js';
|
|
25
28
|
import type { Store } from '../store/Store.js';
|
|
@@ -66,12 +69,37 @@ export class StoreConnections implements Hashable {
|
|
|
66
69
|
}
|
|
67
70
|
}
|
|
68
71
|
|
|
72
|
+
export class ConnectionStores implements Hashable {
|
|
73
|
+
connectionPointer: ConnectionPointer;
|
|
74
|
+
storePointers: PackageableElementReference<Store>[] = [];
|
|
75
|
+
|
|
76
|
+
constructor(connectionPointer: ConnectionPointer) {
|
|
77
|
+
this.connectionPointer = connectionPointer;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
get hashCode(): string {
|
|
81
|
+
return hashArray([
|
|
82
|
+
CORE_HASH_STRUCTURE.STORE_CONNECTIONS,
|
|
83
|
+
this.connectionPointer,
|
|
84
|
+
hashArray(
|
|
85
|
+
this.storePointers.map((s) =>
|
|
86
|
+
hashElementPointer(
|
|
87
|
+
PackageableElementPointerType.STORE,
|
|
88
|
+
s.valueForSerialization ?? '',
|
|
89
|
+
),
|
|
90
|
+
),
|
|
91
|
+
),
|
|
92
|
+
]);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
69
96
|
export abstract class Runtime implements Hashable {
|
|
70
97
|
abstract get hashCode(): string;
|
|
71
98
|
}
|
|
72
99
|
|
|
73
100
|
export class EngineRuntime extends Runtime implements Hashable {
|
|
74
101
|
mappings: PackageableElementReference<Mapping>[] = [];
|
|
102
|
+
connectionStores: ConnectionStores[] = [];
|
|
75
103
|
connections: StoreConnections[] = [];
|
|
76
104
|
|
|
77
105
|
get hashCode(): string {
|
|
@@ -85,6 +113,7 @@ export class EngineRuntime extends Runtime implements Hashable {
|
|
|
85
113
|
),
|
|
86
114
|
),
|
|
87
115
|
),
|
|
116
|
+
hashArray(this.connectionStores),
|
|
88
117
|
hashArray(
|
|
89
118
|
this.connections.filter(
|
|
90
119
|
// TODO: use `isStubbed_StoreConnections` when we refactor hashing
|
|
@@ -100,10 +100,14 @@ export class KeyedExecutionParameter implements Hashable {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
export class PureMultiExecution extends PureExecution implements Hashable {
|
|
103
|
-
executionKey: string;
|
|
104
|
-
executionParameters: KeyedExecutionParameter[]
|
|
103
|
+
executionKey: string | undefined;
|
|
104
|
+
executionParameters: KeyedExecutionParameter[] | undefined;
|
|
105
105
|
|
|
106
|
-
constructor(
|
|
106
|
+
constructor(
|
|
107
|
+
executionKey: string | undefined,
|
|
108
|
+
func: RawLambda,
|
|
109
|
+
parentService: Service,
|
|
110
|
+
) {
|
|
107
111
|
super(func, parentService);
|
|
108
112
|
this.executionKey = executionKey;
|
|
109
113
|
}
|
|
@@ -113,7 +117,7 @@ export class PureMultiExecution extends PureExecution implements Hashable {
|
|
|
113
117
|
CORE_HASH_STRUCTURE.SERVICE_PURE_MULTI_EXECUTION,
|
|
114
118
|
super.hashCode,
|
|
115
119
|
this.executionKey,
|
|
116
|
-
hashArray(this.executionParameters),
|
|
120
|
+
hashArray(this.executionParameters ?? []),
|
|
117
121
|
]);
|
|
118
122
|
}
|
|
119
123
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { makeObservable, observable } from 'mobx';
|
|
18
|
+
import type { SnowflakeAppDeploymentConfiguration } from '../../../graph/metamodel/pure/functionActivator/SnowflakeAppDeploymentConfiguration.js';
|
|
19
|
+
import { skipObserved } from './CoreObserverHelper.js';
|
|
20
|
+
import { observe_ConnectionPointer } from './DSL_Mapping_ObserverHelper.js';
|
|
21
|
+
|
|
22
|
+
export const observe_SnowflakeAppDeploymentConfiguration = skipObserved(
|
|
23
|
+
(
|
|
24
|
+
metamodel: SnowflakeAppDeploymentConfiguration,
|
|
25
|
+
): SnowflakeAppDeploymentConfiguration => {
|
|
26
|
+
makeObservable(metamodel, {
|
|
27
|
+
activationConnection: observable,
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
if (metamodel.activationConnection) {
|
|
31
|
+
observe_ConnectionPointer(metamodel.activationConnection);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return metamodel;
|
|
35
|
+
},
|
|
36
|
+
);
|
|
@@ -323,7 +323,7 @@ export const observe_PureMultiExecution = skipObservedWithContext(
|
|
|
323
323
|
hashCode: computed,
|
|
324
324
|
});
|
|
325
325
|
|
|
326
|
-
metamodel.executionParameters
|
|
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,26 @@ 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
|
+
type: observable,
|
|
503
|
+
_elementHashCode: override,
|
|
504
|
+
});
|
|
505
|
+
|
|
506
|
+
observe_SnowflakeAppDeploymentConfiguration(
|
|
507
|
+
metamodel.activationConfiguration,
|
|
508
|
+
);
|
|
509
|
+
return metamodel;
|
|
510
|
+
},
|
|
511
|
+
);
|
|
512
|
+
|
|
491
513
|
// ------------------------------------- Type -------------------------------------
|
|
492
514
|
|
|
493
515
|
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
|
|
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
|
|
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
|
|
1075
|
+
const error = V1_DeploymentResult.serialization.fromJson(
|
|
1075
1076
|
await this.engineServerClient.publishFunctionActivatorToSandbox(
|
|
1076
1077
|
V1_FunctionActivatorInput.serialization.toJson(input),
|
|
1077
|
-
)
|
|
1078
|
-
|
|
1078
|
+
),
|
|
1079
|
+
);
|
|
1080
|
+
if (!error.successful) {
|
|
1079
1081
|
throw new Error(
|
|
1080
|
-
`Function activator validation failed
|
|
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<
|
|
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,
|
package/src/graph-manager/protocol/pure/v1/engine/functionActivator/V1_DeploymentConfiguration.ts
ADDED
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
export enum V1_SnowflakeAppType {
|
|
18
|
+
FULL = 'FULL',
|
|
19
|
+
STAGE = 'STAGE',
|
|
20
|
+
}
|
package/src/graph-manager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.ts
CHANGED
|
@@ -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
|
}
|
package/src/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_SnowflakeApp.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
import type { V1_SnowflakeAppType } from '../../../engine/functionActivator/V1_SnowflakeAppType.js';
|
|
23
|
+
|
|
24
|
+
export class V1_SnowflakeApp extends V1_FunctionActivator {
|
|
25
|
+
applicationName!: string;
|
|
26
|
+
description: string | undefined;
|
|
27
|
+
owner: string | undefined;
|
|
28
|
+
declare activationConfiguration: V1_SnowflakeAppDeploymentConfiguration;
|
|
29
|
+
type: V1_SnowflakeAppType | undefined;
|
|
30
|
+
|
|
31
|
+
accept_PackageableElementVisitor<T>(
|
|
32
|
+
visitor: V1_PackageableElementVisitor<T>,
|
|
33
|
+
): T {
|
|
34
|
+
return visitor.visit_SnowflakeApp(this);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
override get hashCode(): string {
|
|
38
|
+
return hashArray([
|
|
39
|
+
CORE_HASH_STRUCTURE.SNOWFLAKE_APP,
|
|
40
|
+
this.applicationName,
|
|
41
|
+
this.description ?? '',
|
|
42
|
+
this.owner ?? '',
|
|
43
|
+
this.activationConfiguration,
|
|
44
|
+
this.type ?? '',
|
|
45
|
+
]);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -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
|
}
|