@finos/legend-graph 32.1.22 → 32.1.24
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/DSL_Service_Exports.d.ts +1 -0
- package/lib/DSL_Service_Exports.d.ts.map +1 -1
- package/lib/DSL_Service_Exports.js +1 -0
- package/lib/DSL_Service_Exports.js.map +1 -1
- package/lib/graph/metamodel/pure/functionActivator/PostDeploymentProperties.d.ts +2 -2
- package/lib/graph/metamodel/pure/functionActivator/PostDeploymentProperties.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/functionActivator/PostDeploymentProperties.js +0 -5
- package/lib/graph/metamodel/pure/functionActivator/PostDeploymentProperties.js.map +1 -1
- package/lib/graph-manager/action/changeDetection/DSL_FunctionActivatorObserverHelper.d.ts +3 -0
- package/lib/graph-manager/action/changeDetection/DSL_FunctionActivatorObserverHelper.d.ts.map +1 -1
- package/lib/graph-manager/action/changeDetection/DSL_FunctionActivatorObserverHelper.js +13 -0
- package/lib/graph-manager/action/changeDetection/DSL_FunctionActivatorObserverHelper.js.map +1 -1
- package/lib/graph-manager/action/changeDetection/DomainObserverHelper.d.ts +1 -1
- package/lib/graph-manager/action/changeDetection/DomainObserverHelper.d.ts.map +1 -1
- package/lib/graph-manager/action/changeDetection/DomainObserverHelper.js +4 -2
- package/lib/graph-manager/action/changeDetection/DomainObserverHelper.js.map +1 -1
- package/lib/graph-manager/action/changeDetection/PackageableElementObserver.js +1 -1
- package/lib/graph-manager/action/changeDetection/PackageableElementObserver.js.map +1 -1
- package/lib/graph-manager/extensions/DSL_FunctionActivator_PureGraphManager_Extension.d.ts +22 -0
- package/lib/graph-manager/extensions/DSL_FunctionActivator_PureGraphManager_Extension.d.ts.map +1 -0
- package/lib/graph-manager/extensions/DSL_FunctionActivator_PureGraphManager_Extension.js +17 -0
- package/lib/graph-manager/extensions/DSL_FunctionActivator_PureGraphManager_Extension.js.map +1 -0
- package/lib/graph-manager/protocol/pure/extensions/DSL_FunctionActivator_PureProtocolProcessorPlugin_Extension.d.ts +32 -0
- package/lib/graph-manager/protocol/pure/extensions/DSL_FunctionActivator_PureProtocolProcessorPlugin_Extension.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/extensions/DSL_FunctionActivator_PureProtocolProcessorPlugin_Extension.js +17 -0
- package/lib/graph-manager/protocol/pure/extensions/DSL_FunctionActivator_PureProtocolProcessorPlugin_Extension.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_PostDeploymentProperties.d.ts +2 -2
- package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_PostDeploymentProperties.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_PostDeploymentProperties.js +0 -5
- package/lib/graph-manager/protocol/pure/v1/engine/functionActivator/V1_PostDeploymentProperties.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/entitlements/V1_ConsumerEntitlements.d.ts +99 -0
- package/lib/graph-manager/protocol/pure/v1/entitlements/V1_ConsumerEntitlements.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/entitlements/V1_ConsumerEntitlements.js +102 -0
- package/lib/graph-manager/protocol/pure/v1/entitlements/V1_ConsumerEntitlements.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/entitlements/V1_CoreEntitlements.d.ts +65 -0
- package/lib/graph-manager/protocol/pure/v1/entitlements/V1_CoreEntitlements.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/entitlements/V1_CoreEntitlements.js +68 -0
- package/lib/graph-manager/protocol/pure/v1/entitlements/V1_CoreEntitlements.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/entitlements/V1_EntitlementsTasks.d.ts +25 -0
- package/lib/graph-manager/protocol/pure/v1/entitlements/V1_EntitlementsTasks.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/entitlements/V1_EntitlementsTasks.js +26 -0
- package/lib/graph-manager/protocol/pure/v1/entitlements/V1_EntitlementsTasks.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_FunctionActivatorTransformer.d.ts +4 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_FunctionActivatorTransformer.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_FunctionActivatorTransformer.js +17 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_FunctionActivatorTransformer.js.map +1 -1
- 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 +3 -3
- 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/to/V1_ElementFirstPassBuilder.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.js +3 -2
- 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_ElementSecondPassBuilder.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.js +4 -1
- 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/helpers/V1_FunctionActivatorBuilderHelper.d.ts +3 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FunctionActivatorBuilderHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FunctionActivatorBuilderHelper.js +13 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FunctionActivatorBuilderHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_LegendLambdaHelper.d.ts +4 -6
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_LegendLambdaHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_LegendLambdaHelper.js +18 -12
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_LegendLambdaHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_LegendLambdaTransformerHelper.d.ts +4 -6
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_LegendLambdaTransformerHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_LegendLambdaTransformerHelper.js +23 -17
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_LegendLambdaTransformerHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.js +4 -4
- 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 +2 -2
- 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 +9 -5
- 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 +9 -7
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FunctionActivatorSerializationHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FunctionActivatorSerializationHelper.js +22 -8
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FunctionActivatorSerializationHelper.js.map +1 -1
- package/lib/index.d.ts +6 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +6 -0
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/package.json +1 -1
- package/src/DSL_Service_Exports.ts +1 -0
- package/src/graph/metamodel/pure/functionActivator/PostDeploymentProperties.ts +2 -7
- package/src/graph-manager/action/changeDetection/DSL_FunctionActivatorObserverHelper.ts +25 -1
- package/src/graph-manager/action/changeDetection/DomainObserverHelper.ts +7 -2
- package/src/graph-manager/action/changeDetection/PackageableElementObserver.ts +1 -1
- package/src/graph-manager/extensions/DSL_FunctionActivator_PureGraphManager_Extension.ts +27 -0
- package/src/graph-manager/protocol/pure/extensions/DSL_FunctionActivator_PureProtocolProcessorPlugin_Extension.ts +48 -0
- package/src/graph-manager/protocol/pure/v1/engine/functionActivator/V1_PostDeploymentProperties.ts +2 -7
- package/src/graph-manager/protocol/pure/v1/entitlements/V1_ConsumerEntitlements.ts +119 -0
- package/src/graph-manager/protocol/pure/v1/entitlements/V1_CoreEntitlements.ts +75 -0
- package/src/graph-manager/protocol/pure/v1/entitlements/V1_EntitlementsTasks.ts +28 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_FunctionActivatorTransformer.ts +29 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.ts +3 -2
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.ts +3 -2
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.ts +4 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FunctionActivatorBuilderHelper.ts +27 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_LegendLambdaHelper.ts +29 -15
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_LegendLambdaTransformerHelper.ts +33 -23
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.ts +4 -4
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.ts +68 -49
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FunctionActivatorSerializationHelper.ts +41 -12
- package/src/index.ts +21 -1
- package/tsconfig.json +5 -0
|
@@ -75,6 +75,8 @@ import {
|
|
|
75
75
|
V1_serializeOwnership,
|
|
76
76
|
V1_deserializeOwnership,
|
|
77
77
|
V1_PostDeploymentActionSchema,
|
|
78
|
+
V1_serializePostDeploymentProperties,
|
|
79
|
+
V1_deserializePostDeploymentProperties,
|
|
78
80
|
} from './V1_FunctionActivatorSerializationHelper.js';
|
|
79
81
|
import {
|
|
80
82
|
V1_deserializeTestSuite,
|
|
@@ -90,6 +92,7 @@ import {
|
|
|
90
92
|
} from './V1_TypeSerializationHelper.js';
|
|
91
93
|
import { PackageableElementPointerType } from '../../../../../../../graph/MetaModelConst.js';
|
|
92
94
|
import type { V1_PackageableElementPointer } from '../../../model/packageableElements/V1_PackageableElement.js';
|
|
95
|
+
import { V1_PostDeploymentAction } from '../../../engine/functionActivator/V1_PostDeploymentAction.js';
|
|
93
96
|
|
|
94
97
|
export const V1_CLASS_ELEMENT_PROTOCOL_TYPE = 'class';
|
|
95
98
|
export const V1_PROFILE_ELEMENT_PROTOCOL_TYPE = 'profile';
|
|
@@ -196,56 +199,72 @@ export const V1_measureModelSchema = createModelSchema(V1_Measure, {
|
|
|
196
199
|
package: primitive(),
|
|
197
200
|
});
|
|
198
201
|
|
|
199
|
-
export const V1_snowflakeAppModelSchema =
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
202
|
+
export const V1_snowflakeAppModelSchema = (
|
|
203
|
+
plugins: PureProtocolProcessorPlugin[],
|
|
204
|
+
): ModelSchema<V1_SnowflakeApp> =>
|
|
205
|
+
createModelSchema(V1_SnowflakeApp, {
|
|
206
|
+
_type: usingConstantValueSchema(V1_SNOWFLAKE_APP_TYPE),
|
|
207
|
+
description: optional(primitive()),
|
|
208
|
+
applicationName: primitive(),
|
|
209
|
+
function: usingModelSchema(V1_packageableElementPointerModelSchema),
|
|
210
|
+
name: primitive(),
|
|
211
|
+
package: primitive(),
|
|
212
|
+
permissionScheme: optional(primitive()),
|
|
213
|
+
actions: list(usingModelSchema(V1_PostDeploymentActionSchema(plugins))),
|
|
214
|
+
usageRole: optional(primitive()),
|
|
215
|
+
stereotypes: customListWithSchema(V1_stereotypePtrModelSchema, {
|
|
216
|
+
INTERNAL__forceReturnEmptyInTest: true,
|
|
217
|
+
}),
|
|
218
|
+
taggedValues: customListWithSchema(V1_taggedValueModelSchema, {
|
|
219
|
+
INTERNAL__forceReturnEmptyInTest: true,
|
|
220
|
+
}),
|
|
221
|
+
activationConfiguration: usingModelSchema(
|
|
222
|
+
V1_SnowflakeAppDeploymentConfigurationAppModelSchema,
|
|
223
|
+
),
|
|
224
|
+
ownership: optionalCustom(
|
|
225
|
+
(val) => V1_serializeDeploymentOwership(val),
|
|
226
|
+
(val) => V1_deserializeDeploymentOwnership(val),
|
|
227
|
+
),
|
|
228
|
+
});
|
|
223
229
|
|
|
224
|
-
export const V1_HostedServiceModelSchema =
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
230
|
+
export const V1_HostedServiceModelSchema = (
|
|
231
|
+
plugins: PureProtocolProcessorPlugin[],
|
|
232
|
+
): ModelSchema<V1_HostedService> =>
|
|
233
|
+
createModelSchema(V1_HostedService, {
|
|
234
|
+
_type: usingConstantValueSchema(V1_HOSTED_SERVICE_TYPE),
|
|
235
|
+
documentation: optional(primitive()),
|
|
236
|
+
pattern: primitive(),
|
|
237
|
+
autoActivateUpdates: primitive(),
|
|
238
|
+
storeModel: primitive(),
|
|
239
|
+
generateLineage: primitive(),
|
|
240
|
+
function: usingModelSchema(V1_packageableElementPointerModelSchema),
|
|
241
|
+
name: primitive(),
|
|
242
|
+
package: primitive(),
|
|
243
|
+
stereotypes: customListWithSchema(V1_stereotypePtrModelSchema, {
|
|
244
|
+
INTERNAL__forceReturnEmptyInTest: true,
|
|
245
|
+
}),
|
|
246
|
+
taggedValues: customListWithSchema(V1_taggedValueModelSchema, {
|
|
247
|
+
INTERNAL__forceReturnEmptyInTest: true,
|
|
248
|
+
}),
|
|
249
|
+
ownership: optionalCustom(
|
|
250
|
+
(val) => V1_serializeOwnership(val),
|
|
251
|
+
(val) => V1_deserializeOwnership(val),
|
|
252
|
+
),
|
|
253
|
+
actions: list(
|
|
254
|
+
usingModelSchema(
|
|
255
|
+
createModelSchema(V1_PostDeploymentAction, {
|
|
256
|
+
automated: optional(primitive()),
|
|
257
|
+
properties: optionalCustom(
|
|
258
|
+
(val) => V1_serializePostDeploymentProperties(val, plugins),
|
|
259
|
+
(val) => V1_deserializePostDeploymentProperties(val, plugins),
|
|
260
|
+
),
|
|
261
|
+
}),
|
|
262
|
+
),
|
|
263
|
+
),
|
|
264
|
+
activationConfiguration: optional(
|
|
265
|
+
usingModelSchema(V1_HostedServiceDeploymentConfigurationAppModelSchema),
|
|
266
|
+
),
|
|
267
|
+
});
|
|
249
268
|
|
|
250
269
|
// ------------------------------------- Class -------------------------------------
|
|
251
270
|
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
optional,
|
|
30
30
|
primitive,
|
|
31
31
|
serialize,
|
|
32
|
+
type ModelSchema,
|
|
32
33
|
} from 'serializr';
|
|
33
34
|
import { V1_connectionPointerModelSchema } from './V1_ConnectionSerializationHelper.js';
|
|
34
35
|
import {
|
|
@@ -39,9 +40,11 @@ import {
|
|
|
39
40
|
import { V1_HostedServiceDeploymentConfiguration } from '../../../engine/functionActivator/V1_HostedServiceDeploymentConfiguration.js';
|
|
40
41
|
import { V1_PostDeploymentAction } from '../../../engine/functionActivator/V1_PostDeploymentAction.js';
|
|
41
42
|
import {
|
|
43
|
+
type V1_PostDeploymentProperties,
|
|
42
44
|
V1_INTERNAL__UnknownPostDeploymentProperties,
|
|
43
|
-
V1_PostDeploymentProperties,
|
|
44
45
|
} from '../../../engine/functionActivator/V1_PostDeploymentProperties.js';
|
|
46
|
+
import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin.js';
|
|
47
|
+
import type { DSL_FunctionActivator_PureProtocolProcessorPlugin_Extension } from '../../../../extensions/DSL_FunctionActivator_PureProtocolProcessorPlugin_Extension.js';
|
|
45
48
|
|
|
46
49
|
const V1_SNOWFLAKE_APP_DEPLOYMENT_CONFIGURATION_APP_TYPE =
|
|
47
50
|
'snowflakeDeploymentConfiguration';
|
|
@@ -118,41 +121,67 @@ export const V1_deserializeOwnership = (
|
|
|
118
121
|
);
|
|
119
122
|
}
|
|
120
123
|
};
|
|
121
|
-
|
|
122
124
|
export const V1_deserializePostDeploymentProperties = (
|
|
123
125
|
json: PlainObject<V1_PostDeploymentProperties>,
|
|
126
|
+
plugins: PureProtocolProcessorPlugin[],
|
|
124
127
|
): V1_PostDeploymentProperties => {
|
|
125
128
|
switch (json._type) {
|
|
126
|
-
|
|
127
|
-
|
|
129
|
+
default: {
|
|
130
|
+
const extraConnectionDatasourceSpecificationProtocolDeserializers =
|
|
131
|
+
plugins.flatMap(
|
|
132
|
+
(plugin) =>
|
|
133
|
+
(
|
|
134
|
+
plugin as DSL_FunctionActivator_PureProtocolProcessorPlugin_Extension
|
|
135
|
+
).V1_getPostDeploymentPropertiesDeserializers?.() ?? [],
|
|
136
|
+
);
|
|
137
|
+
for (const deserializer of extraConnectionDatasourceSpecificationProtocolDeserializers) {
|
|
138
|
+
const protocol = deserializer(json);
|
|
139
|
+
if (protocol) {
|
|
140
|
+
return protocol;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
128
143
|
// Fall back to unknown
|
|
129
144
|
const protocol = new V1_INTERNAL__UnknownPostDeploymentProperties();
|
|
130
145
|
protocol.content = json;
|
|
131
146
|
return protocol;
|
|
147
|
+
}
|
|
132
148
|
}
|
|
133
149
|
};
|
|
134
150
|
|
|
135
151
|
export const V1_PostDeploymentPropertiesSchema = createModelSchema(
|
|
136
|
-
|
|
152
|
+
V1_INTERNAL__UnknownPostDeploymentProperties,
|
|
137
153
|
{},
|
|
138
154
|
);
|
|
139
155
|
|
|
140
156
|
export const V1_serializePostDeploymentProperties = (
|
|
141
157
|
protocol: V1_PostDeploymentProperties,
|
|
158
|
+
plugins: PureProtocolProcessorPlugin[],
|
|
142
159
|
): PlainObject<V1_PostDeploymentProperties> => {
|
|
143
160
|
if (protocol instanceof V1_INTERNAL__UnknownPostDeploymentProperties) {
|
|
144
161
|
return protocol.content;
|
|
145
162
|
}
|
|
163
|
+
const extraPostDeploymentPropertiesSerializers = plugins.flatMap(
|
|
164
|
+
(plugin) =>
|
|
165
|
+
(
|
|
166
|
+
plugin as DSL_FunctionActivator_PureProtocolProcessorPlugin_Extension
|
|
167
|
+
).V1_getPostDeploymentPropertiesSerializers?.() ?? [],
|
|
168
|
+
);
|
|
169
|
+
for (const serializer of extraPostDeploymentPropertiesSerializers) {
|
|
170
|
+
const json = serializer(protocol);
|
|
171
|
+
if (json) {
|
|
172
|
+
return json;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
146
175
|
return serialize(V1_PostDeploymentPropertiesSchema, undefined);
|
|
147
176
|
};
|
|
148
177
|
|
|
149
|
-
export const V1_PostDeploymentActionSchema =
|
|
150
|
-
|
|
151
|
-
|
|
178
|
+
export const V1_PostDeploymentActionSchema = (
|
|
179
|
+
plugins: PureProtocolProcessorPlugin[],
|
|
180
|
+
): ModelSchema<V1_PostDeploymentAction> =>
|
|
181
|
+
createModelSchema(V1_PostDeploymentAction, {
|
|
152
182
|
automated: optional(primitive()),
|
|
153
183
|
properties: optionalCustom(
|
|
154
|
-
(val) => V1_serializePostDeploymentProperties(val),
|
|
155
|
-
(val) => V1_deserializePostDeploymentProperties(val),
|
|
184
|
+
(val) => V1_serializePostDeploymentProperties(val, plugins),
|
|
185
|
+
(val) => V1_deserializePostDeploymentProperties(val, plugins),
|
|
156
186
|
),
|
|
157
|
-
}
|
|
158
|
-
);
|
|
187
|
+
});
|
package/src/index.ts
CHANGED
|
@@ -95,6 +95,20 @@ export {
|
|
|
95
95
|
DEFAULT_HOSTED_SERVICE_PATTERN,
|
|
96
96
|
} from './graph/metamodel/pure/packageableElements/function/HostedService.js';
|
|
97
97
|
export { HostedServiceDeploymentConfiguration } from './graph/metamodel/pure/functionActivator/HostedServiceDeploymentConfiguration.js';
|
|
98
|
+
export { PostDeploymentAction } from './graph/metamodel/pure/functionActivator/PostDeploymentAction.js';
|
|
99
|
+
export {
|
|
100
|
+
PostDeploymentProperties,
|
|
101
|
+
INTERNAL__UnknownPostDeploymentProperties,
|
|
102
|
+
} from './graph/metamodel/pure/functionActivator/PostDeploymentProperties.js';
|
|
103
|
+
export {
|
|
104
|
+
V1_PostDeploymentProperties,
|
|
105
|
+
V1_INTERNAL__UnknownPostDeploymentProperties,
|
|
106
|
+
} from './graph-manager/protocol/pure/v1/engine/functionActivator/V1_PostDeploymentProperties.js';
|
|
107
|
+
export {
|
|
108
|
+
type V1_PostDeploymentPropertiesTransformer,
|
|
109
|
+
type V1_PostDeploymentPropertiesDeserializer,
|
|
110
|
+
type V1_PostDeploymentPropertiesSerializer,
|
|
111
|
+
} from './graph-manager/protocol/pure/extensions/DSL_FunctionActivator_PureProtocolProcessorPlugin_Extension.js';
|
|
98
112
|
|
|
99
113
|
// --------------------------------------------- VALUE SPECIFICATION --------------------------------------------------
|
|
100
114
|
|
|
@@ -244,7 +258,12 @@ export { V1_DuckDBDatasourceSpecification } from './graph-manager/protocol/pure/
|
|
|
244
258
|
export { V1_TestAuthenticationStrategy } from './graph-manager/protocol/pure/v1/model/packageableElements/store/relational/connection/V1_AuthenticationStrategy.js';
|
|
245
259
|
export { V1_RelationStoreAccessor } from './graph-manager/protocol/pure/v1/model/valueSpecification/raw/classInstance/relation/V1_RelationStoreAccessor.js';
|
|
246
260
|
export { V1_PackageableConnection } from './graph-manager/protocol/pure/v1/model/packageableElements/connection/V1_PackageableConnection.js';
|
|
247
|
-
|
|
261
|
+
export {
|
|
262
|
+
V1_DataContract,
|
|
263
|
+
V1_DataContractsRecord,
|
|
264
|
+
V1_TaskStatus,
|
|
265
|
+
V1_ContractCreate_LegendDataProduct,
|
|
266
|
+
} from './graph-manager/protocol/pure/v1/entitlements/V1_ConsumerEntitlements.js';
|
|
248
267
|
// --------------------------------------------- EXECUTION PLAN --------------------------------------------------
|
|
249
268
|
|
|
250
269
|
export { INTERNAL__UnknownExecutionResult } from './graph-manager/action/execution/INTERNAL__UnknownExecutionResult.js';
|
|
@@ -840,6 +859,7 @@ export { V1_FunctionActivatorInfo } from './graph-manager/protocol/pure/v1/engin
|
|
|
840
859
|
export { V1_FunctionActivatorInput } from './graph-manager/protocol/pure/v1/engine/functionActivator/V1_FunctionActivatorInput.js';
|
|
841
860
|
export { V1_DatabaseToModelGenerationInput } from './graph-manager/protocol/pure/v1/engine/relational/V1_DatabaseToModelGenerationInput.js';
|
|
842
861
|
export { V1_RelationalConnectionBuilder } from './graph-manager/protocol/pure/v1/engine/relational/V1_RelationalConnectionBuilder.js';
|
|
862
|
+
export * from './graph-manager/protocol/pure/extensions/DSL_FunctionActivator_PureProtocolProcessorPlugin_Extension.js';
|
|
843
863
|
|
|
844
864
|
// ------------------------------------- TO BE MODULARIZED --------------------------------------------
|
|
845
865
|
/**
|
package/tsconfig.json
CHANGED
|
@@ -415,6 +415,7 @@
|
|
|
415
415
|
"./src/graph-manager/extensions/Core_PureGraphManagerPlugin.ts",
|
|
416
416
|
"./src/graph-manager/extensions/DSL_Data_PureGraphManagerPlugin_Extension.ts",
|
|
417
417
|
"./src/graph-manager/extensions/DSL_ExternalFormat_PureGraphManagerPlugin.ts",
|
|
418
|
+
"./src/graph-manager/extensions/DSL_FunctionActivator_PureGraphManager_Extension.ts",
|
|
418
419
|
"./src/graph-manager/extensions/DSL_Generation_PureGraphManagerPlugin_Extension.ts",
|
|
419
420
|
"./src/graph-manager/extensions/DSL_Mapping_PureGraphManagerPlugin_Extension.ts",
|
|
420
421
|
"./src/graph-manager/extensions/STO_Relational_PureGraphManagerPlugin_Extension.ts",
|
|
@@ -426,6 +427,7 @@
|
|
|
426
427
|
"./src/graph-manager/protocol/pure/PureProtocolProcessorPlugin.ts",
|
|
427
428
|
"./src/graph-manager/protocol/pure/extensions/DSL_Data_PureProtocolProcessorPlugin_Extension.ts",
|
|
428
429
|
"./src/graph-manager/protocol/pure/extensions/DSL_ExternalFormat_PureProtocolProcessorPlugin.ts",
|
|
430
|
+
"./src/graph-manager/protocol/pure/extensions/DSL_FunctionActivator_PureProtocolProcessorPlugin_Extension.ts",
|
|
429
431
|
"./src/graph-manager/protocol/pure/extensions/DSL_Generation_PureProtocolProcessorPlugin_Extension.ts",
|
|
430
432
|
"./src/graph-manager/protocol/pure/extensions/DSL_Mapping_PureProtocolProcessorPlugin_Extension.ts",
|
|
431
433
|
"./src/graph-manager/protocol/pure/extensions/STO_Relational_PureProtocolProcessorPlugin_Extension.ts",
|
|
@@ -488,6 +490,9 @@
|
|
|
488
490
|
"./src/graph-manager/protocol/pure/v1/engine/test/V1_DebugTestsResult.ts",
|
|
489
491
|
"./src/graph-manager/protocol/pure/v1/engine/test/V1_RunTestsInput.ts",
|
|
490
492
|
"./src/graph-manager/protocol/pure/v1/engine/test/V1_RunTestsResult.ts",
|
|
493
|
+
"./src/graph-manager/protocol/pure/v1/entitlements/V1_ConsumerEntitlements.ts",
|
|
494
|
+
"./src/graph-manager/protocol/pure/v1/entitlements/V1_CoreEntitlements.ts",
|
|
495
|
+
"./src/graph-manager/protocol/pure/v1/entitlements/V1_EntitlementsTasks.ts",
|
|
491
496
|
"./src/graph-manager/protocol/pure/v1/helpers/V1_DomainHelper.ts",
|
|
492
497
|
"./src/graph-manager/protocol/pure/v1/helpers/V1_DomainObserverHelper.ts",
|
|
493
498
|
"./src/graph-manager/protocol/pure/v1/helpers/V1_ValueSpecificationObserver.ts",
|