@finos/legend-graph 32.1.42 → 32.1.43

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 (147) hide show
  1. package/lib/graph/Core_HashUtils.d.ts +1 -0
  2. package/lib/graph/Core_HashUtils.d.ts.map +1 -1
  3. package/lib/graph/Core_HashUtils.js +1 -0
  4. package/lib/graph/Core_HashUtils.js.map +1 -1
  5. package/lib/graph/MetaModelConst.d.ts +1 -0
  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/metamodel/pure/functionActivator/MemSQLDeploymentConfiguration.d.ts +22 -0
  10. package/lib/graph/metamodel/pure/functionActivator/MemSQLDeploymentConfiguration.d.ts.map +1 -0
  11. package/lib/graph/metamodel/pure/functionActivator/MemSQLDeploymentConfiguration.js +24 -0
  12. package/lib/graph/metamodel/pure/functionActivator/MemSQLDeploymentConfiguration.js.map +1 -0
  13. package/lib/graph/metamodel/pure/packageableElements/PackageableElement.d.ts +2 -0
  14. package/lib/graph/metamodel/pure/packageableElements/PackageableElement.d.ts.map +1 -1
  15. package/lib/graph/metamodel/pure/packageableElements/PackageableElement.js.map +1 -1
  16. package/lib/graph/metamodel/pure/packageableElements/function/MemSQLFunction.d.ts +13 -0
  17. package/lib/graph/metamodel/pure/packageableElements/function/MemSQLFunction.d.ts.map +1 -0
  18. package/lib/graph/metamodel/pure/packageableElements/function/MemSQLFunction.js +38 -0
  19. package/lib/graph/metamodel/pure/packageableElements/function/MemSQLFunction.js.map +1 -0
  20. package/lib/graph-manager/action/DeploymentResult.d.ts +2 -0
  21. package/lib/graph-manager/action/DeploymentResult.d.ts.map +1 -1
  22. package/lib/graph-manager/action/DeploymentResult.js +4 -0
  23. package/lib/graph-manager/action/DeploymentResult.js.map +1 -1
  24. package/lib/graph-manager/action/changeDetection/DSL_FunctionActivatorObserverHelper.d.ts +2 -0
  25. package/lib/graph-manager/action/changeDetection/DSL_FunctionActivatorObserverHelper.d.ts.map +1 -1
  26. package/lib/graph-manager/action/changeDetection/DSL_FunctionActivatorObserverHelper.js +9 -0
  27. package/lib/graph-manager/action/changeDetection/DSL_FunctionActivatorObserverHelper.js.map +1 -1
  28. package/lib/graph-manager/action/changeDetection/DomainObserverHelper.d.ts +2 -0
  29. package/lib/graph-manager/action/changeDetection/DomainObserverHelper.d.ts.map +1 -1
  30. package/lib/graph-manager/action/changeDetection/DomainObserverHelper.js +13 -1
  31. package/lib/graph-manager/action/changeDetection/DomainObserverHelper.js.map +1 -1
  32. package/lib/graph-manager/action/changeDetection/PackageableElementObserver.d.ts.map +1 -1
  33. package/lib/graph-manager/action/changeDetection/PackageableElementObserver.js +4 -1
  34. package/lib/graph-manager/action/changeDetection/PackageableElementObserver.js.map +1 -1
  35. package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.d.ts.map +1 -1
  36. package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.js +4 -0
  37. package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.js.map +1 -1
  38. package/lib/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.d.ts +1 -1
  39. package/lib/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.d.ts.map +1 -1
  40. package/lib/graph-manager/protocol/pure/v1/engine/V1_RemoteEngine.js +4 -5
  41. package/lib/graph-manager/protocol/pure/v1/engine/V1_RemoteEngine.js.map +1 -1
  42. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_FunctionActivatorError.d.ts +6 -1
  43. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_FunctionActivatorError.d.ts.map +1 -1
  44. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_FunctionActivatorError.js +11 -3
  45. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_FunctionActivatorError.js.map +1 -1
  46. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_MemSQLDeploymentConfiguration.d.ts +23 -0
  47. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_MemSQLDeploymentConfiguration.d.ts.map +1 -0
  48. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_MemSQLDeploymentConfiguration.js +24 -0
  49. package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_MemSQLDeploymentConfiguration.js.map +1 -0
  50. package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_ConsumerEntitlements.d.ts +7 -2
  51. package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_ConsumerEntitlements.d.ts.map +1 -1
  52. package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_ConsumerEntitlements.js +6 -1
  53. package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_ConsumerEntitlements.js.map +1 -1
  54. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.d.ts +2 -0
  55. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.d.ts.map +1 -1
  56. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.js.map +1 -1
  57. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_MemSQLFunction.d.ts +28 -0
  58. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_MemSQLFunction.d.ts.map +1 -0
  59. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_MemSQLFunction.js +38 -0
  60. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_MemSQLFunction.js.map +1 -0
  61. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_FunctionActivatorTransformer.d.ts +3 -0
  62. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_FunctionActivatorTransformer.d.ts.map +1 -1
  63. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_FunctionActivatorTransformer.js +8 -0
  64. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_FunctionActivatorTransformer.js.map +1 -1
  65. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.d.ts.map +1 -1
  66. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.js +20 -1
  67. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.js.map +1 -1
  68. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.d.ts +2 -0
  69. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.d.ts.map +1 -1
  70. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.js +3 -0
  71. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.js.map +1 -1
  72. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.d.ts +2 -0
  73. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.d.ts.map +1 -1
  74. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.js +13 -0
  75. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.js.map +1 -1
  76. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.d.ts +2 -0
  77. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.d.ts.map +1 -1
  78. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.js +3 -0
  79. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.js.map +1 -1
  80. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.d.ts +2 -0
  81. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.d.ts.map +1 -1
  82. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.js +17 -1
  83. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.js.map +1 -1
  84. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.d.ts +2 -0
  85. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.d.ts.map +1 -1
  86. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.js +3 -0
  87. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.js.map +1 -1
  88. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FunctionActivatorBuilderHelper.d.ts +3 -0
  89. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FunctionActivatorBuilderHelper.d.ts.map +1 -1
  90. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FunctionActivatorBuilderHelper.js +9 -0
  91. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FunctionActivatorBuilderHelper.js.map +1 -1
  92. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.d.ts.map +1 -1
  93. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.js +6 -1
  94. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.js.map +1 -1
  95. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.d.ts +3 -0
  96. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.d.ts.map +1 -1
  97. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.js +20 -1
  98. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.js.map +1 -1
  99. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_EntitlementSerializationHelper.d.ts +3 -2
  100. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_EntitlementSerializationHelper.d.ts.map +1 -1
  101. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_EntitlementSerializationHelper.js +29 -3
  102. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_EntitlementSerializationHelper.js.map +1 -1
  103. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FunctionActivatorSerializationHelper.d.ts +2 -0
  104. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FunctionActivatorSerializationHelper.d.ts.map +1 -1
  105. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FunctionActivatorSerializationHelper.js +6 -0
  106. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FunctionActivatorSerializationHelper.js.map +1 -1
  107. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TypeSerializationHelper.d.ts.map +1 -1
  108. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TypeSerializationHelper.js +3 -4
  109. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TypeSerializationHelper.js.map +1 -1
  110. package/lib/index.d.ts +3 -1
  111. package/lib/index.d.ts.map +1 -1
  112. package/lib/index.js +3 -1
  113. package/lib/index.js.map +1 -1
  114. package/lib/package.json +1 -1
  115. package/package.json +1 -1
  116. package/src/graph/Core_HashUtils.ts +1 -0
  117. package/src/graph/MetaModelConst.ts +1 -0
  118. package/src/graph/metamodel/pure/functionActivator/MemSQLDeploymentConfiguration.ts +27 -0
  119. package/src/graph/metamodel/pure/packageableElements/PackageableElement.ts +2 -0
  120. package/src/graph/metamodel/pure/packageableElements/function/MemSQLFunction.ts +48 -0
  121. package/src/graph-manager/action/DeploymentResult.ts +4 -0
  122. package/src/graph-manager/action/changeDetection/DSL_FunctionActivatorObserverHelper.ts +15 -0
  123. package/src/graph-manager/action/changeDetection/DomainObserverHelper.ts +21 -0
  124. package/src/graph-manager/action/changeDetection/PackageableElementObserver.ts +6 -0
  125. package/src/graph-manager/protocol/pure/v1/V1_PureGraphManager.ts +3 -0
  126. package/src/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.ts +1 -1
  127. package/src/graph-manager/protocol/pure/v1/engine/V1_RemoteEngine.ts +8 -8
  128. package/src/graph-manager/protocol/pure/v1/engine/functionActivator/V1_FunctionActivatorError.ts +13 -3
  129. package/src/graph-manager/protocol/pure/v1/engine/functionActivator/V1_MemSQLDeploymentConfiguration.ts +30 -0
  130. package/src/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_ConsumerEntitlements.ts +9 -2
  131. package/src/graph-manager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.ts +2 -0
  132. package/src/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_MemSQLFunction.ts +48 -0
  133. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_FunctionActivatorTransformer.ts +16 -0
  134. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.ts +27 -0
  135. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.ts +5 -0
  136. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.ts +28 -0
  137. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.ts +5 -0
  138. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.ts +34 -0
  139. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.ts +5 -0
  140. package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FunctionActivatorBuilderHelper.ts +19 -0
  141. package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.ts +11 -0
  142. package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.ts +30 -0
  143. package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_EntitlementSerializationHelper.ts +57 -7
  144. package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FunctionActivatorSerializationHelper.ts +12 -0
  145. package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TypeSerializationHelper.ts +8 -4
  146. package/src/index.ts +5 -0
  147. package/tsconfig.json +4 -0
@@ -42,6 +42,7 @@ import type { V1_INTERNAL__UnknownElement } from './V1_INTERNAL__UnknownElement.
42
42
  import type { V1_HostedService } from './function/V1_HostedService.js';
43
43
  import type { V1_DataProduct } from './dataProduct/V1_DataProduct.js';
44
44
  import type { V1_IngestDefinition } from './ingest/V1_IngestDefinition.js';
45
+ import type { V1_MemSQLFunction } from './function/V1_MemSQLFunction.js';
45
46
 
46
47
  export interface V1_PackageableElementVisitor<T> {
47
48
  visit_PackageableElement(element: V1_PackageableElement): T;
@@ -77,6 +78,7 @@ export interface V1_PackageableElementVisitor<T> {
77
78
  ): T;
78
79
  visit_SnowflakeApp(element: V1_SnowflakeApp): T;
79
80
  visit_HostedService(element: V1_HostedService): T;
81
+ visit_MemSQLFunction(element: V1_MemSQLFunction): T;
80
82
 
81
83
  visit_DataProduct(element: V1_DataProduct): T;
82
84
  visit_IngestDefinition(element: V1_IngestDefinition): T;
@@ -0,0 +1,48 @@
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_MemSQLDeploymentConfiguration } from '../../../engine/functionActivator/V1_MemSQLDeploymentConfiguration.js';
22
+ import type { V1_DeploymentOwner } from './V1_Ownership.js';
23
+
24
+ export class V1_MemSQLFunction extends V1_FunctionActivator {
25
+ functionName!: string;
26
+ description: string | undefined;
27
+ declare ownership: V1_DeploymentOwner;
28
+ declare activationConfiguration: V1_MemSQLDeploymentConfiguration;
29
+
30
+ accept_PackageableElementVisitor<T>(
31
+ visitor: V1_PackageableElementVisitor<T>,
32
+ ): T {
33
+ return visitor.visit_MemSQLFunction(this);
34
+ }
35
+
36
+ override get hashCode(): string {
37
+ return hashArray([
38
+ CORE_HASH_STRUCTURE.MEM_SQL_FUNCTION,
39
+ this.functionName,
40
+ this.description ?? '',
41
+ this.ownership,
42
+ this.activationConfiguration,
43
+ hashArray(this.taggedValues),
44
+ hashArray(this.stereotypes),
45
+ hashArray(this.actions),
46
+ ]);
47
+ }
48
+ }
@@ -29,11 +29,13 @@ import {
29
29
  } from '../../../model/packageableElements/function/V1_Ownership.js';
30
30
  import { V1_transformConnectionPointer } from './V1_ConnectionTransformer.js';
31
31
  import { V1_HostedServiceDeploymentConfiguration } from '../../../engine/functionActivator/V1_HostedServiceDeploymentConfiguration.js';
32
+ import { V1_MemSQLDeploymentConfiguration } from '../../../engine/functionActivator/V1_MemSQLDeploymentConfiguration.js';
32
33
  import type { HostedServiceDeploymentConfiguration } from '../../../../../../../graph/metamodel/pure/functionActivator/HostedServiceDeploymentConfiguration.js';
33
34
  import type { PostDeploymentAction } from '../../../../../../../graph/metamodel/pure/functionActivator/PostDeploymentAction.js';
34
35
  import type { DSL_FunctionActivator_PureProtocolProcessorPlugin_Extension } from '../../../../extensions/DSL_FunctionActivator_PureProtocolProcessorPlugin_Extension.js';
35
36
  import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext.js';
36
37
  import { V1_PostDeploymentAction } from '../../../engine/functionActivator/V1_PostDeploymentAction.js';
38
+ import type { MemSQLDeploymentConfiguration } from '../../../../../../../graph/metamodel/pure/functionActivator/MemSQLDeploymentConfiguration.js';
37
39
 
38
40
  export const V1_transformSnowflakeAppDeploymentConfiguration = (
39
41
  element: SnowflakeAppDeploymentConfiguration,
@@ -49,6 +51,20 @@ export const V1_transformSnowflakeAppDeploymentConfiguration = (
49
51
  return protocol;
50
52
  };
51
53
 
54
+ export const V1_transformMemSQLDeploymentConfiguration = (
55
+ element: MemSQLDeploymentConfiguration,
56
+ ): V1_MemSQLDeploymentConfiguration => {
57
+ const protocol = new V1_MemSQLDeploymentConfiguration();
58
+
59
+ if (element.activationConnection) {
60
+ protocol.activationConnection = V1_transformConnectionPointer(
61
+ element.activationConnection,
62
+ );
63
+ }
64
+
65
+ return protocol;
66
+ };
67
+
52
68
  export const V1_transformDeployment = (
53
69
  metamodel: DeploymentOwner,
54
70
  ): V1_DeploymentOwner => {
@@ -89,6 +89,7 @@ import {
89
89
  V1_transformOwnership,
90
90
  V1_transformSnowflakeAppDeploymentConfiguration,
91
91
  V1_transformActions,
92
+ V1_transformMemSQLDeploymentConfiguration,
92
93
  } from './V1_FunctionActivatorTransformer.js';
93
94
  import { PackageableElementPointerType } from '../../../../../../../graph/MetaModelConst.js';
94
95
  import type { INTERNAL__UnknownElement } from '../../../../../../../graph/metamodel/pure/packageableElements/INTERNAL__UnknownElement.js';
@@ -100,6 +101,8 @@ import type { DataProduct } from '../../../../../../../graph/metamodel/pure/data
100
101
  import { V1_transformDataProduct } from './V1_DataProductTransformer.js';
101
102
  import type { IngestDefinition } from '../../../../../../../graph/metamodel/pure/packageableElements/ingest/IngestDefinition.js';
102
103
  import { V1_IngestDefinition } from '../../../model/packageableElements/ingest/V1_IngestDefinition.js';
104
+ import { V1_MemSQLFunction } from '../../../model/packageableElements/function/V1_MemSQLFunction.js';
105
+ import type { MemSQLFunction } from '../../../../../../../graph/metamodel/pure/packageableElements/function/MemSQLFunction.js';
103
106
 
104
107
  class V1_PackageableElementTransformer
105
108
  implements PackageableElementVisitor<V1_PackageableElement>
@@ -236,6 +239,30 @@ class V1_PackageableElementTransformer
236
239
  return protocol;
237
240
  }
238
241
 
242
+ visit_MemSQLFunction(element: MemSQLFunction): V1_PackageableElement {
243
+ const protocol = new V1_MemSQLFunction();
244
+ V1_initPackageableElement(protocol, element);
245
+ protocol.function = new V1_PackageableElementPointer(
246
+ PackageableElementPointerType.FUNCTION,
247
+ generateFunctionPrettyName(element.function.value, {
248
+ fullPath: true,
249
+ spacing: false,
250
+ notIncludeParamName: true,
251
+ }),
252
+ );
253
+ protocol.functionName = element.functionName;
254
+ protocol.description = element.description;
255
+ protocol.ownership = V1_transformDeployment(element.ownership);
256
+ protocol.activationConfiguration =
257
+ V1_transformMemSQLDeploymentConfiguration(
258
+ element.activationConfiguration,
259
+ );
260
+ protocol.stereotypes = element.stereotypes.map(V1_transformStereotype);
261
+ protocol.taggedValues = element.taggedValues.map(V1_transformTaggedValue);
262
+ V1_transformFunctionActivatorActions(protocol, element, this.context);
263
+ return protocol;
264
+ }
265
+
239
266
  visit_INTERNAL__UnknownStore(
240
267
  element: INTERNAL__UnknownStore,
241
268
  ): V1_PackageableElement {
@@ -53,6 +53,7 @@ import type { V1_INTERNAL__UnknownElement } from '../../../model/packageableElem
53
53
  import type { V1_HostedService } from '../../../model/packageableElements/function/V1_HostedService.js';
54
54
  import type { V1_DataProduct } from '../../../model/packageableElements/dataProduct/V1_DataProduct.js';
55
55
  import type { V1_IngestDefinition } from '../../../model/packageableElements/ingest/V1_IngestDefinition.js';
56
+ import type { V1_MemSQLFunction } from '../../../model/packageableElements/function/V1_MemSQLFunction.js';
56
57
 
57
58
  export class V1_ElementFifthPassBuilder
58
59
  implements V1_PackageableElementVisitor<void>
@@ -187,6 +188,10 @@ export class V1_ElementFifthPassBuilder
187
188
  throw new UnsupportedOperationError();
188
189
  }
189
190
 
191
+ visit_MemSQLFunction(element: V1_MemSQLFunction): void {
192
+ throw new UnsupportedOperationError();
193
+ }
194
+
190
195
  visit_DataProduct(element: V1_DataProduct): void {
191
196
  throw new UnsupportedOperationError();
192
197
  }
@@ -90,6 +90,8 @@ import {
90
90
  AppDirNode,
91
91
  IngestDefinition,
92
92
  } from '../../../../../../../graph/metamodel/pure/packageableElements/ingest/IngestDefinition.js';
93
+ import type { V1_MemSQLFunction } from '../../../model/packageableElements/function/V1_MemSQLFunction.js';
94
+ import { MemSQLFunction } from '../../../../../../../graph/metamodel/pure/packageableElements/function/MemSQLFunction.js';
93
95
 
94
96
  export class V1_ElementFirstPassBuilder
95
97
  implements V1_PackageableElementVisitor<PackageableElement>
@@ -245,6 +247,32 @@ export class V1_ElementFirstPassBuilder
245
247
  metamodel.permissionScheme = element.permissionScheme;
246
248
  }
247
249
 
250
+ V1_buildFunctionActivatorActions(element, metamodel, this.context);
251
+ return metamodel;
252
+ }
253
+
254
+ visit_MemSQLFunction(element: V1_MemSQLFunction): PackageableElement {
255
+ assertNonEmptyString(
256
+ element.package,
257
+ `Function activator 'package' field is missing or empty`,
258
+ );
259
+ assertNonEmptyString(
260
+ element.name,
261
+ `Function activator 'name' field is missing or empty`,
262
+ );
263
+ const metamodel = new MemSQLFunction(element.name);
264
+ const path = V1_buildFullPath(element.package, element.name);
265
+ V1_checkDuplicatedElement(path, this.context, this.elementPathCache);
266
+ this.context.currentSubGraph.setOwnFunctionActivator(path, metamodel);
267
+ addElementToPackage(
268
+ getOrCreateGraphPackage(
269
+ this.context.currentSubGraph,
270
+ element.package,
271
+ this.packageCache,
272
+ ),
273
+ metamodel,
274
+ );
275
+ metamodel.functionName = element.functionName;
248
276
  metamodel.description = element.description;
249
277
  V1_buildFunctionActivatorActions(element, metamodel, this.context);
250
278
  return metamodel;
@@ -61,6 +61,7 @@ import type { V1_INTERNAL__UnknownPackageableElement } from '../../../model/pack
61
61
  import type { V1_INTERNAL__UnknownFunctionActivator } from '../../../model/packageableElements/function/V1_INTERNAL__UnknownFunctionActivator.js';
62
62
  import type { V1_INTERNAL__UnknownStore } from '../../../model/packageableElements/store/V1_INTERNAL__UnknownStore.js';
63
63
  import type { V1_SnowflakeApp } from '../../../model/packageableElements/function/V1_SnowflakeApp.js';
64
+ import type { V1_MemSQLFunction } from '../../../model/packageableElements/function/V1_MemSQLFunction.js';
64
65
  import type { V1_INTERNAL__UnknownElement } from '../../../model/packageableElements/V1_INTERNAL__UnknownElement.js';
65
66
  import type { V1_HostedService } from '../../../model/packageableElements/function/V1_HostedService.js';
66
67
  import type { V1_DataProduct } from '../../../model/packageableElements/dataProduct/V1_DataProduct.js';
@@ -101,6 +102,10 @@ export class V1_ElementFourthPassBuilder
101
102
  throw new UnsupportedOperationError();
102
103
  }
103
104
 
105
+ visit_MemSQLFunction(element: V1_MemSQLFunction): void {
106
+ throw new UnsupportedOperationError();
107
+ }
108
+
104
109
  visit_HostedService(element: V1_HostedService): void {
105
110
  throw new UnsupportedOperationError();
106
111
  }
@@ -104,12 +104,14 @@ import {
104
104
  import { V1_INTERNAL__UnknownMappingInclude } from '../../../model/packageableElements/mapping/V1_INTERNAL__UnknownMappingInclude.js';
105
105
  import type { V1_INTERNAL__UnknownStore } from '../../../model/packageableElements/store/V1_INTERNAL__UnknownStore.js';
106
106
  import type { V1_SnowflakeApp } from '../../../model/packageableElements/function/V1_SnowflakeApp.js';
107
+ import type { V1_MemSQLFunction } from '../../../model/packageableElements/function/V1_MemSQLFunction.js';
107
108
  import {
108
109
  V1_buildHostedServiceDeploymentConfiguration,
109
110
  V1_buildSnowflakeAppDeploymentConfiguration,
110
111
  V1_buildDeploymentOwnership,
111
112
  V1_builHostedServiceOwnership,
112
113
  V1_buildHostedServiceActions,
114
+ V1_buildMemSQLDeploymentConfiguration,
113
115
  } from './helpers/V1_FunctionActivatorBuilderHelper.js';
114
116
  import type { V1_INTERNAL__UnknownElement } from '../../../model/packageableElements/V1_INTERNAL__UnknownElement.js';
115
117
  import type { V1_HostedService } from '../../../model/packageableElements/function/V1_HostedService.js';
@@ -200,6 +202,38 @@ export class V1_ElementSecondPassBuilder
200
202
  .filter(isNonNullable);
201
203
  }
202
204
 
205
+ visit_MemSQLFunction(element: V1_MemSQLFunction): void {
206
+ const metamodel = this.context.currentSubGraph.getOwnFunctionActivator(
207
+ V1_buildFullPath(element.package, element.name),
208
+ );
209
+ metamodel.function = PackageableElementExplicitReference.create(
210
+ guaranteeNonNullable(
211
+ this.context.graph.functions.find(
212
+ (fn) =>
213
+ generateFunctionPrettyName(fn, {
214
+ fullPath: true,
215
+ spacing: false,
216
+ notIncludeParamName: true,
217
+ }) === element.function.path.replaceAll(/\s*/gu, ''),
218
+ ),
219
+ ),
220
+ );
221
+ metamodel.ownership = V1_buildDeploymentOwnership(
222
+ element.ownership,
223
+ metamodel,
224
+ );
225
+ metamodel.activationConfiguration = V1_buildMemSQLDeploymentConfiguration(
226
+ element.activationConfiguration,
227
+ this.context,
228
+ );
229
+ metamodel.stereotypes = element.stereotypes
230
+ .map((stereotype) => this.context.resolveStereotype(stereotype))
231
+ .filter(isNonNullable);
232
+ metamodel.taggedValues = element.taggedValues
233
+ .map((taggedValue) => V1_buildTaggedValue(taggedValue, this.context))
234
+ .filter(isNonNullable);
235
+ }
236
+
203
237
  visit_HostedService(element: V1_HostedService): void {
204
238
  assertNonEmptyString(
205
239
  element.pattern,
@@ -64,6 +64,7 @@ import type { V1_INTERNAL__UnknownPackageableElement } from '../../../model/pack
64
64
  import type { V1_INTERNAL__UnknownFunctionActivator } from '../../../model/packageableElements/function/V1_INTERNAL__UnknownFunctionActivator.js';
65
65
  import type { V1_INTERNAL__UnknownStore } from '../../../model/packageableElements/store/V1_INTERNAL__UnknownStore.js';
66
66
  import type { V1_SnowflakeApp } from '../../../model/packageableElements/function/V1_SnowflakeApp.js';
67
+ import type { V1_MemSQLFunction } from '../../../model/packageableElements/function/V1_MemSQLFunction.js';
67
68
  import type { V1_INTERNAL__UnknownElement } from '../../../model/packageableElements/V1_INTERNAL__UnknownElement.js';
68
69
  import type { V1_HostedService } from '../../../model/packageableElements/function/V1_HostedService.js';
69
70
  import type { V1_DataProduct } from '../../../model/packageableElements/dataProduct/V1_DataProduct.js';
@@ -124,6 +125,10 @@ export class V1_ElementThirdPassBuilder
124
125
  throw new UnsupportedOperationError();
125
126
  }
126
127
 
128
+ visit_MemSQLFunction(element: V1_MemSQLFunction): void {
129
+ throw new UnsupportedOperationError();
130
+ }
131
+
127
132
  visit_HostedService(element: V1_HostedService): void {
128
133
  throw new UnsupportedOperationError();
129
134
  }
@@ -16,7 +16,9 @@
16
16
 
17
17
  import { ConnectionPointer } from '../../../../../../../../graph/metamodel/pure/packageableElements/connection/Connection.js';
18
18
  import { SnowflakeAppDeploymentConfiguration } from '../../../../../../../../graph/metamodel/pure/functionActivator/SnowflakeAppDeploymentConfiguration.js';
19
+ import { MemSQLDeploymentConfiguration } from '../../../../../../../../graph/metamodel/pure/functionActivator/MemSQLDeploymentConfiguration.js';
19
20
  import type { V1_SnowflakeAppDeploymentConfiguration } from '../../../../engine/functionActivator/V1_SnowflakeAppDeploymentConfiguration.js';
21
+ import type { V1_MemSQLDeploymentConfiguration } from '../../../../engine/functionActivator/V1_MemSQLDeploymentConfiguration.js';
20
22
  import type { V1_GraphBuilderContext } from '../V1_GraphBuilderContext.js';
21
23
  import { V1_buildConnection } from './V1_ConnectionBuilderHelper.js';
22
24
  import { UnsupportedOperationError, guaranteeType } from '@finos/legend-shared';
@@ -54,6 +56,23 @@ export const V1_buildSnowflakeAppDeploymentConfiguration = (
54
56
  return metamodel;
55
57
  };
56
58
 
59
+ export const V1_buildMemSQLDeploymentConfiguration = (
60
+ element: V1_MemSQLDeploymentConfiguration,
61
+ context: V1_GraphBuilderContext,
62
+ ): MemSQLDeploymentConfiguration => {
63
+ const metamodel = new MemSQLDeploymentConfiguration();
64
+
65
+ if (element.activationConnection) {
66
+ const activationConnection = guaranteeType(
67
+ V1_buildConnection(element.activationConnection, context),
68
+ ConnectionPointer,
69
+ );
70
+
71
+ metamodel.activationConnection = activationConnection;
72
+ }
73
+ return metamodel;
74
+ };
75
+
57
76
  export const V1_buildDeploymentOwnership = (
58
77
  ownership: V1_DeploymentOwner,
59
78
  functionActivator: FunctionActivator,
@@ -95,6 +95,8 @@ import {
95
95
  V1_SNOWFLAKE_APP_TYPE,
96
96
  V1_HostedServiceModelSchema,
97
97
  V1_HOSTED_SERVICE_TYPE,
98
+ V1_MEM_SQL_TYPE,
99
+ V1_MemSQLModelSchema,
98
100
  } from './serializationHelpers/V1_DomainSerializationHelper.js';
99
101
  import type {
100
102
  PureProtocolProcessorPlugin,
@@ -128,6 +130,7 @@ import {
128
130
  import { V1_dataProductModelSchema } from './serializationHelpers/V1_DataProductSerializationHelper.js';
129
131
  import { V1_INGEST_DEFINITION_TYPE } from '../../model/packageableElements/ingest/V1_IngestDefinition.js';
130
132
  import { V1_createIngestDef } from './serializationHelpers/V1_IngestSerializationHelper.js';
133
+ import type { V1_MemSQLFunction } from '../../model/packageableElements/function/V1_MemSQLFunction.js';
131
134
 
132
135
  class V1_PackageableElementSerializer
133
136
  implements V1_PackageableElementVisitor<PlainObject<V1_PackageableElement>>
@@ -192,6 +195,12 @@ class V1_PackageableElementSerializer
192
195
  return serialize(V1_HostedServiceModelSchema(this.plugins), element);
193
196
  }
194
197
 
198
+ visit_MemSQLFunction(
199
+ element: V1_MemSQLFunction,
200
+ ): PlainObject<V1_PackageableElement> {
201
+ return serialize(V1_MemSQLModelSchema(this.plugins), element);
202
+ }
203
+
195
204
  visit_INTERNAL__UnknownStore(
196
205
  element: V1_INTERNAL__UnknownStore,
197
206
  ): PlainObject<V1_PackageableElement> {
@@ -371,6 +380,8 @@ export const V1_deserializePackageableElement = (
371
380
  return deserialize(V1_snowflakeAppModelSchema(plugins), json);
372
381
  case V1_HOSTED_SERVICE_TYPE:
373
382
  return deserialize(V1_HostedServiceModelSchema(plugins), json);
383
+ case V1_MEM_SQL_TYPE:
384
+ return deserialize(V1_MemSQLModelSchema(plugins), json);
374
385
  case V1_DATA_PRODUCT_ELEMENT_PROTOCOL_TYPE:
375
386
  // TODO: remove this once we have a proper icon for data product in the metamodel
376
387
  const adjustedJson = { ...json, icon: '' };
@@ -67,9 +67,12 @@ import {
67
67
  } from './V1_RawValueSpecificationSerializationHelper.js';
68
68
  import { V1_INTERNAL__UnknownFunctionActivator } from '../../../model/packageableElements/function/V1_INTERNAL__UnknownFunctionActivator.js';
69
69
  import { V1_SnowflakeApp } from '../../../model/packageableElements/function/V1_SnowflakeApp.js';
70
+ import { V1_MemSQLFunction } from '../../../model/packageableElements/function/V1_MemSQLFunction.js';
71
+
70
72
  import {
71
73
  V1_HostedServiceDeploymentConfigurationAppModelSchema,
72
74
  V1_SnowflakeAppDeploymentConfigurationAppModelSchema,
75
+ V1_MemSQLDeploymentConfigurationAppModelSchema,
73
76
  V1_deserializeDeploymentOwnership,
74
77
  V1_serializeDeploymentOwership,
75
78
  V1_serializeOwnership,
@@ -103,6 +106,7 @@ export const V1_ASSOCIATION_ELEMENT_PROTOCOL_TYPE = 'association';
103
106
  export const V1_FUNCTION_ELEMENT_PROTOCOL_TYPE = 'function';
104
107
  export const V1_SNOWFLAKE_APP_TYPE = 'snowflakeApp';
105
108
  export const V1_HOSTED_SERVICE_TYPE = 'hostedService';
109
+ export const V1_MEM_SQL_TYPE = 'memSqlFunction';
106
110
 
107
111
  export const V1_propertyPointerModelSchema = createModelSchema(
108
112
  V1_PropertyPointer,
@@ -228,6 +232,32 @@ export const V1_snowflakeAppModelSchema = (
228
232
  ),
229
233
  });
230
234
 
235
+ export const V1_MemSQLModelSchema = (
236
+ plugins: PureProtocolProcessorPlugin[],
237
+ ): ModelSchema<V1_MemSQLFunction> =>
238
+ createModelSchema(V1_MemSQLFunction, {
239
+ _type: usingConstantValueSchema(V1_MEM_SQL_TYPE),
240
+ description: optional(primitive()),
241
+ functionName: primitive(),
242
+ function: usingModelSchema(V1_packageableElementPointerModelSchema),
243
+ name: primitive(),
244
+ package: primitive(),
245
+ actions: list(usingModelSchema(V1_PostDeploymentActionSchema(plugins))),
246
+ stereotypes: customListWithSchema(V1_stereotypePtrModelSchema, {
247
+ INTERNAL__forceReturnEmptyInTest: true,
248
+ }),
249
+ taggedValues: customListWithSchema(V1_taggedValueModelSchema, {
250
+ INTERNAL__forceReturnEmptyInTest: true,
251
+ }),
252
+ activationConfiguration: usingModelSchema(
253
+ V1_MemSQLDeploymentConfigurationAppModelSchema,
254
+ ),
255
+ ownership: optionalCustom(
256
+ (val) => V1_serializeDeploymentOwership(val),
257
+ (val) => V1_deserializeDeploymentOwnership(val),
258
+ ),
259
+ });
260
+
231
261
  export const V1_HostedServiceModelSchema = (
232
262
  plugins: PureProtocolProcessorPlugin[],
233
263
  ): ModelSchema<V1_HostedService> =>
@@ -23,9 +23,12 @@ import {
23
23
  } from '@finos/legend-shared';
24
24
  import {
25
25
  type V1_ConsumerEntitlementResource,
26
+ type V1_ContractUserEventPayload,
26
27
  V1_AccessPoint_Entitlements,
27
28
  V1_AccessPointGroupReference,
28
- V1_ContractUserEventPayload,
29
+ V1_ContractEventPayloadType,
30
+ V1_ContractUserEventDataProducerPayload,
31
+ V1_ContractUserEventPrivilegeManagerPayload,
29
32
  V1_ContractUserEventRecord,
30
33
  V1_DataBundle,
31
34
  V1_DataContract,
@@ -168,16 +171,60 @@ export const V1_DataContractsRecordModelSchema = createModelSchema(
168
171
  },
169
172
  );
170
173
 
171
- export const V1_contractUserEventPayloadModelSchema = createModelSchema(
172
- V1_ContractUserEventPayload,
173
- {
174
+ export const V1_contractUserEventPrivilegeManagerPayloadModelSchema =
175
+ createModelSchema(V1_ContractUserEventPrivilegeManagerPayload, {
174
176
  type: primitive(),
175
177
  managerIdentity: primitive(),
176
178
  candidateIdentity: primitive(),
177
179
  taskId: primitive(),
178
180
  eventTimestamp: primitive(),
179
- },
180
- );
181
+ });
182
+
183
+ export const V1_contractUserEventDataProducerPayloadModelSchema =
184
+ createModelSchema(V1_ContractUserEventDataProducerPayload, {
185
+ type: primitive(),
186
+ dataProducerIdentity: primitive(),
187
+ candidateIdentity: primitive(),
188
+ taskId: primitive(),
189
+ eventTimestamp: primitive(),
190
+ });
191
+
192
+ const V1_deserializeContractUserEventPayload = (
193
+ json: PlainObject<V1_ContractUserEventPayload>,
194
+ ): V1_ContractUserEventPayload => {
195
+ if (
196
+ [
197
+ V1_ContractEventPayloadType.DATA_PRODUCER_APPROVED,
198
+ V1_ContractEventPayloadType.DATA_PRODUCER_REJECTED,
199
+ ].includes((json as unknown as V1_ContractUserEventPayload).type)
200
+ ) {
201
+ return deserialize(
202
+ V1_contractUserEventDataProducerPayloadModelSchema,
203
+ json,
204
+ );
205
+ } else {
206
+ return deserialize(
207
+ V1_contractUserEventPrivilegeManagerPayloadModelSchema,
208
+ json,
209
+ );
210
+ }
211
+ };
212
+
213
+ const V1_serializeContractUserEventPayload = (
214
+ payload: V1_ContractUserEventPayload,
215
+ ): PlainObject<V1_ContractUserEventPayload> => {
216
+ if (payload instanceof V1_ContractUserEventDataProducerPayload) {
217
+ return serialize(
218
+ V1_contractUserEventDataProducerPayloadModelSchema,
219
+ payload,
220
+ );
221
+ } else {
222
+ return serialize(
223
+ V1_contractUserEventPrivilegeManagerPayloadModelSchema,
224
+ payload,
225
+ );
226
+ }
227
+ };
181
228
 
182
229
  export const V1_contractUserEventRecordModelSchema = createModelSchema(
183
230
  V1_ContractUserEventRecord,
@@ -186,7 +233,10 @@ export const V1_contractUserEventRecordModelSchema = createModelSchema(
186
233
  dataContractId: primitive(),
187
234
  status: primitive(),
188
235
  consumer: primitive(),
189
- eventPayload: usingModelSchema(V1_contractUserEventPayloadModelSchema),
236
+ eventPayload: custom(
237
+ V1_serializeContractUserEventPayload,
238
+ V1_deserializeContractUserEventPayload,
239
+ ),
190
240
  type: primitive(),
191
241
  },
192
242
  );
@@ -45,11 +45,13 @@ import {
45
45
  } from '../../../engine/functionActivator/V1_PostDeploymentProperties.js';
46
46
  import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin.js';
47
47
  import type { DSL_FunctionActivator_PureProtocolProcessorPlugin_Extension } from '../../../../extensions/DSL_FunctionActivator_PureProtocolProcessorPlugin_Extension.js';
48
+ import { V1_MemSQLDeploymentConfiguration } from '../../../engine/functionActivator/V1_MemSQLDeploymentConfiguration.js';
48
49
 
49
50
  const V1_SNOWFLAKE_APP_DEPLOYMENT_CONFIGURATION_APP_TYPE =
50
51
  'snowflakeDeploymentConfiguration';
51
52
  const V1_HOSTED_SERVICE_DEPLOYMENT_CONFIGURATION_APP_TYPE =
52
53
  'hostedServiceDeploymentConfiguration';
54
+ const V1_MEM_SQL_DEPLOYMENT_CONFIGURATION_APP_TYPE = 'memSqlFunctionConfig';
53
55
 
54
56
  export const V1_SnowflakeAppDeploymentConfigurationAppModelSchema =
55
57
  createModelSchema(V1_SnowflakeAppDeploymentConfiguration, {
@@ -69,6 +71,16 @@ export const V1_HostedServiceDeploymentConfigurationAppModelSchema =
69
71
  path: primitive(),
70
72
  });
71
73
 
74
+ export const V1_MemSQLDeploymentConfigurationAppModelSchema = createModelSchema(
75
+ V1_MemSQLDeploymentConfiguration,
76
+ {
77
+ _type: usingConstantValueSchema(
78
+ V1_MEM_SQL_DEPLOYMENT_CONFIGURATION_APP_TYPE,
79
+ ),
80
+ activationConnection: usingModelSchema(V1_connectionPointerModelSchema),
81
+ },
82
+ );
83
+
72
84
  enum V1_OwnershipType {
73
85
  DEPLOYMENT_OWNERSHIP = 'DeploymentOwner',
74
86
  USERLIST_OWNERSHIP = 'userList',
@@ -21,7 +21,6 @@ import {
21
21
  list,
22
22
  primitive,
23
23
  serialize,
24
- SKIP,
25
24
  } from 'serializr';
26
25
  import { V1_GenericType } from '../../../model/packageableElements/type/V1_GenericType.js';
27
26
  import { V1_PackageableType } from '../../../model/packageableElements/type/V1_PackageableType.js';
@@ -45,6 +44,11 @@ import {
45
44
  V1_RelationType,
46
45
  V1_RelationTypeColumn,
47
46
  } from '../../../model/packageableElements/type/V1_RelationType.js';
47
+ import {
48
+ V1_deserializeValueSpecification,
49
+ V1_serializeValueSpecification,
50
+ } from './V1_ValueSpecificationSerializer.js';
51
+ import type { V1_ValueSpecification } from '../../../model/valueSpecification/V1_ValueSpecification.js';
48
52
 
49
53
  export enum V1_Type_Type {
50
54
  PACKAGEABLE_TYPE = 'packageableType',
@@ -73,9 +77,9 @@ export const V1_genericTypeModelSchema = createModelSchema(V1_GenericType, {
73
77
  },
74
78
  ),
75
79
  typeVariableValues: optionalCustomList(
76
- // TODO
77
- (value) => SKIP,
78
- (value) => SKIP,
80
+ (value) =>
81
+ V1_serializeValueSpecification(value as V1_ValueSpecification, []),
82
+ (value) => V1_deserializeValueSpecification(value, []),
79
83
  {
80
84
  INTERNAL__forceReturnEmptyInTest: true,
81
85
  },
package/src/index.ts CHANGED
@@ -110,6 +110,8 @@ export {
110
110
  type V1_PostDeploymentPropertiesDeserializer,
111
111
  type V1_PostDeploymentPropertiesSerializer,
112
112
  } from './graph-manager/protocol/pure/extensions/DSL_FunctionActivator_PureProtocolProcessorPlugin_Extension.js';
113
+ export { MemSQLFunction } from './graph/metamodel/pure/packageableElements/function/MemSQLFunction.js';
114
+ export { MemSQLDeploymentConfiguration } from './graph/metamodel/pure/functionActivator/MemSQLDeploymentConfiguration.js';
113
115
 
114
116
  // --------------------------------------------- VALUE SPECIFICATION --------------------------------------------------
115
117
 
@@ -267,6 +269,9 @@ export {
267
269
  V1_ApprovalType,
268
270
  V1_ContractCreate_LegendDataProduct,
269
271
  V1_ContractState,
272
+ V1_ContractUserEventDataProducerPayload,
273
+ V1_ContractUserEventPayload,
274
+ V1_ContractUserEventPrivilegeManagerPayload,
270
275
  V1_ContractUserEventRecord,
271
276
  V1_DataContract,
272
277
  V1_DataContractsRecord,
package/tsconfig.json CHANGED
@@ -135,6 +135,7 @@
135
135
  "./src/graph/metamodel/pure/executionPlan/result/VoidResultType.ts",
136
136
  "./src/graph/metamodel/pure/functionActivator/DeploymentConfiguration.ts",
137
137
  "./src/graph/metamodel/pure/functionActivator/HostedServiceDeploymentConfiguration.ts",
138
+ "./src/graph/metamodel/pure/functionActivator/MemSQLDeploymentConfiguration.ts",
138
139
  "./src/graph/metamodel/pure/functionActivator/PostDeploymentAction.ts",
139
140
  "./src/graph/metamodel/pure/functionActivator/PostDeploymentProperties.ts",
140
141
  "./src/graph/metamodel/pure/functionActivator/SnowflakeAppDeploymentConfiguration.ts",
@@ -188,6 +189,7 @@
188
189
  "./src/graph/metamodel/pure/packageableElements/function/FunctionActivator.ts",
189
190
  "./src/graph/metamodel/pure/packageableElements/function/HostedService.ts",
190
191
  "./src/graph/metamodel/pure/packageableElements/function/INTERNAL__UnknownFunctionActivator.ts",
192
+ "./src/graph/metamodel/pure/packageableElements/function/MemSQLFunction.ts",
191
193
  "./src/graph/metamodel/pure/packageableElements/function/Ownership.ts",
192
194
  "./src/graph/metamodel/pure/packageableElements/function/SnowflakeApp.ts",
193
195
  "./src/graph/metamodel/pure/packageableElements/function/test/FunctionStoreTestData.ts",
@@ -463,6 +465,7 @@
463
465
  "./src/graph-manager/protocol/pure/v1/engine/functionActivator/V1_FunctionActivatorInfo.ts",
464
466
  "./src/graph-manager/protocol/pure/v1/engine/functionActivator/V1_FunctionActivatorInput.ts",
465
467
  "./src/graph-manager/protocol/pure/v1/engine/functionActivator/V1_HostedServiceDeploymentConfiguration.ts",
468
+ "./src/graph-manager/protocol/pure/v1/engine/functionActivator/V1_MemSQLDeploymentConfiguration.ts",
466
469
  "./src/graph-manager/protocol/pure/v1/engine/functionActivator/V1_PostDeploymentAction.ts",
467
470
  "./src/graph-manager/protocol/pure/v1/engine/functionActivator/V1_PostDeploymentProperties.ts",
468
471
  "./src/graph-manager/protocol/pure/v1/engine/functionActivator/V1_SnowflakeAppDeploymentConfiguration.ts",
@@ -596,6 +599,7 @@
596
599
  "./src/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_FunctionActivator.ts",
597
600
  "./src/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_HostedService.ts",
598
601
  "./src/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_INTERNAL__UnknownFunctionActivator.ts",
602
+ "./src/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_MemSQLFunction.ts",
599
603
  "./src/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_Ownership.ts",
600
604
  "./src/graph-manager/protocol/pure/v1/model/packageableElements/function/V1_SnowflakeApp.ts",
601
605
  "./src/graph-manager/protocol/pure/v1/model/packageableElements/function/test/V1_FunctionStoreTestData.ts",