@finos/legend-graph 24.1.0 → 25.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/lib/graph/Core_HashUtils.d.ts +1 -1
  2. package/lib/graph/Core_HashUtils.d.ts.map +1 -1
  3. package/lib/graph/Core_HashUtils.js +1 -1
  4. package/lib/graph/Core_HashUtils.js.map +1 -1
  5. package/lib/graph/MetaModelConst.d.ts +0 -1
  6. package/lib/graph/MetaModelConst.d.ts.map +1 -1
  7. package/lib/graph/MetaModelConst.js +0 -1
  8. package/lib/graph/MetaModelConst.js.map +1 -1
  9. package/lib/graph/helpers/DomainHelper.d.ts.map +1 -1
  10. package/lib/graph/helpers/DomainHelper.js +6 -0
  11. package/lib/graph/helpers/DomainHelper.js.map +1 -1
  12. package/lib/graphManager/AbstractPureGraphManager.d.ts +3 -4
  13. package/lib/graphManager/AbstractPureGraphManager.d.ts.map +1 -1
  14. package/lib/graphManager/AbstractPureGraphManager.js.map +1 -1
  15. package/lib/graphManager/action/execution/ExecutionResult.d.ts +8 -2
  16. package/lib/graphManager/action/execution/ExecutionResult.d.ts.map +1 -1
  17. package/lib/graphManager/action/execution/ExecutionResult.js +9 -3
  18. package/lib/graphManager/action/execution/ExecutionResult.js.map +1 -1
  19. package/lib/graphManager/action/service/ServiceRegistrationResult.d.ts +10 -1
  20. package/lib/graphManager/action/service/ServiceRegistrationResult.d.ts.map +1 -1
  21. package/lib/graphManager/action/service/ServiceRegistrationResult.js +15 -1
  22. package/lib/graphManager/action/service/ServiceRegistrationResult.js.map +1 -1
  23. package/lib/graphManager/protocol/pure/PureProtocolProcessorPlugin.d.ts +1 -1
  24. package/lib/graphManager/protocol/pure/PureProtocolProcessorPlugin.d.ts.map +1 -1
  25. package/lib/graphManager/protocol/pure/v1/V1_PureGraphManager.d.ts +3 -4
  26. package/lib/graphManager/protocol/pure/v1/V1_PureGraphManager.d.ts.map +1 -1
  27. package/lib/graphManager/protocol/pure/v1/V1_PureGraphManager.js +10 -7
  28. package/lib/graphManager/protocol/pure/v1/V1_PureGraphManager.js.map +1 -1
  29. package/lib/graphManager/protocol/pure/v1/engine/V1_EngineHelper.d.ts +3 -2
  30. package/lib/graphManager/protocol/pure/v1/engine/V1_EngineHelper.d.ts.map +1 -1
  31. package/lib/graphManager/protocol/pure/v1/engine/V1_EngineHelper.js +3 -3
  32. package/lib/graphManager/protocol/pure/v1/engine/V1_EngineHelper.js.map +1 -1
  33. package/lib/graphManager/protocol/pure/v1/engine/execution/V1_ExecutionHelper.d.ts.map +1 -1
  34. package/lib/graphManager/protocol/pure/v1/engine/execution/V1_ExecutionHelper.js +10 -9
  35. package/lib/graphManager/protocol/pure/v1/engine/execution/V1_ExecutionHelper.js.map +1 -1
  36. package/lib/graphManager/protocol/pure/v1/engine/execution/V1_ExecutionResult.d.ts +9 -3
  37. package/lib/graphManager/protocol/pure/v1/engine/execution/V1_ExecutionResult.d.ts.map +1 -1
  38. package/lib/graphManager/protocol/pure/v1/engine/execution/V1_ExecutionResult.js +10 -4
  39. package/lib/graphManager/protocol/pure/v1/engine/execution/V1_ExecutionResult.js.map +1 -1
  40. package/lib/graphManager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.d.ts +2 -2
  41. package/lib/graphManager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.d.ts.map +1 -1
  42. package/lib/graphManager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.js +1 -1
  43. package/lib/graphManager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.js.map +1 -1
  44. package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper.d.ts +2 -2
  45. package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper.d.ts.map +1 -1
  46. package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper.js +5 -11
  47. package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper.js.map +1 -1
  48. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper.js +1 -1
  49. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper.js.map +1 -1
  50. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ExecutionEnvironmentSerializationHelper.d.ts.map +1 -1
  51. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ExecutionEnvironmentSerializationHelper.js +1 -2
  52. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ExecutionEnvironmentSerializationHelper.js.map +1 -1
  53. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.d.ts +1 -0
  54. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.d.ts.map +1 -1
  55. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.js +14 -0
  56. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.js.map +1 -1
  57. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.d.ts +0 -3
  58. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.d.ts.map +1 -1
  59. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.js +3 -17
  60. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.js.map +1 -1
  61. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/executionPlan/V1_ExecutionPlanSerializationHelper.d.ts.map +1 -1
  62. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/executionPlan/V1_ExecutionPlanSerializationHelper.js +7 -7
  63. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/executionPlan/V1_ExecutionPlanSerializationHelper.js.map +1 -1
  64. package/lib/index.d.ts +1 -2
  65. package/lib/index.d.ts.map +1 -1
  66. package/lib/index.js +1 -2
  67. package/lib/index.js.map +1 -1
  68. package/lib/package.json +3 -3
  69. package/package.json +6 -6
  70. package/src/graph/Core_HashUtils.ts +5 -2
  71. package/src/graph/MetaModelConst.ts +0 -1
  72. package/src/graph/helpers/DomainHelper.ts +6 -0
  73. package/src/graphManager/AbstractPureGraphManager.ts +6 -4
  74. package/src/graphManager/action/execution/ExecutionResult.ts +11 -4
  75. package/src/graphManager/action/service/ServiceRegistrationResult.ts +25 -1
  76. package/src/graphManager/protocol/pure/PureProtocolProcessorPlugin.ts +1 -1
  77. package/src/graphManager/protocol/pure/v1/V1_PureGraphManager.ts +26 -14
  78. package/src/graphManager/protocol/pure/v1/engine/V1_EngineHelper.ts +7 -4
  79. package/src/graphManager/protocol/pure/v1/engine/execution/V1_ExecutionHelper.ts +17 -12
  80. package/src/graphManager/protocol/pure/v1/engine/execution/V1_ExecutionResult.ts +12 -4
  81. package/src/graphManager/protocol/pure/v1/model/packageableElements/V1_PackageableElement.ts +3 -3
  82. package/src/graphManager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper.ts +17 -21
  83. package/src/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper.ts +1 -1
  84. package/src/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ExecutionEnvironmentSerializationHelper.ts +4 -2
  85. package/src/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.ts +19 -0
  86. package/src/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.ts +3 -33
  87. package/src/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/executionPlan/V1_ExecutionPlanSerializationHelper.ts +9 -18
  88. package/src/index.ts +4 -5
  89. package/tsconfig.json +0 -1
  90. package/lib/graphManager/action/service/BulkServiceRegistrationResult.d.ts +0 -29
  91. package/lib/graphManager/action/service/BulkServiceRegistrationResult.d.ts.map +0 -1
  92. package/lib/graphManager/action/service/BulkServiceRegistrationResult.js +0 -37
  93. package/lib/graphManager/action/service/BulkServiceRegistrationResult.js.map +0 -1
  94. package/src/graphManager/action/service/BulkServiceRegistrationResult.ts +0 -41
@@ -48,14 +48,20 @@ export class V1_JsonExecutionResult extends V1_ExecutionResult {
48
48
  );
49
49
  }
50
50
 
51
- export class V1_TDSColumn {
51
+ /**
52
+ * TODO?: maybe we converge to use V1_TDSColumn
53
+ *
54
+ * Since here, we're building out the result builder config, we don't need
55
+ * to fully resolve all the references, hence we have this simplified version of V1_TDSColumn
56
+ */
57
+ export class V1_INTERNAL__TDSColumn {
52
58
  name!: string;
53
59
  doc?: string | undefined;
54
60
  type?: string | undefined;
55
61
  relationalType?: string | undefined;
56
62
 
57
63
  static readonly serialization = new SerializationFactory(
58
- createModelSchema(V1_TDSColumn, {
64
+ createModelSchema(V1_INTERNAL__TDSColumn, {
59
65
  name: primitive(),
60
66
  doc: optional(primitive()),
61
67
  type: optional(primitive()),
@@ -65,12 +71,14 @@ export class V1_TDSColumn {
65
71
  }
66
72
 
67
73
  export class V1_TDSBuilder extends V1_ResultBuilder {
68
- columns: V1_TDSColumn[] = [];
74
+ columns: V1_INTERNAL__TDSColumn[] = [];
69
75
 
70
76
  static readonly serialization = new SerializationFactory(
71
77
  createModelSchema(V1_TDSBuilder, {
72
78
  _type: primitive(),
73
- columns: list(usingModelSchema(V1_TDSColumn.serialization.schema)),
79
+ columns: list(
80
+ usingModelSchema(V1_INTERNAL__TDSColumn.serialization.schema),
81
+ ),
74
82
  }),
75
83
  );
76
84
  }
@@ -84,10 +84,10 @@ export abstract class V1_PackageableElement implements Hashable {
84
84
  }
85
85
 
86
86
  export class V1_PackageableElementPointer implements Hashable {
87
- type!: string;
87
+ type?: string | undefined;
88
88
  path!: string;
89
89
 
90
- constructor(type: string, path: string) {
90
+ constructor(type: string | undefined, path: string) {
91
91
  this.type = type;
92
92
  this.path = path;
93
93
  }
@@ -95,7 +95,7 @@ export class V1_PackageableElementPointer implements Hashable {
95
95
  get hashCode(): string {
96
96
  return hashArray([
97
97
  CORE_HASH_STRUCTURE.PACKAGEABLE_ELEMENT_POINTER,
98
- this.type,
98
+ this.type ?? '',
99
99
  this.path,
100
100
  ]);
101
101
  }
@@ -215,7 +215,8 @@ export class V1_ValueSpecificationBuilder
215
215
  this.processingContext,
216
216
  );
217
217
  this.processingContext.pop();
218
- return func[0];
218
+
219
+ return func;
219
220
  }
220
221
 
221
222
  visit_AppliedProperty(
@@ -553,25 +554,20 @@ export const V1_buildGenericFunctionExpression = (
553
554
  openVariables: string[],
554
555
  compileContext: V1_GraphBuilderContext,
555
556
  processingContext: V1_ProcessingContext,
556
- ): [SimpleFunctionExpression, ValueSpecification[]] => {
557
- const processedParams = parameters.map((parameter) =>
558
- parameter.accept_ValueSpecificationVisitor(
559
- new V1_ValueSpecificationBuilder(
560
- compileContext,
561
- processingContext,
562
- openVariables,
557
+ ): SimpleFunctionExpression =>
558
+ V1_buildBaseSimpleFunctionExpression(
559
+ parameters.map((parameter) =>
560
+ parameter.accept_ValueSpecificationVisitor(
561
+ new V1_ValueSpecificationBuilder(
562
+ compileContext,
563
+ processingContext,
564
+ openVariables,
565
+ ),
563
566
  ),
564
567
  ),
568
+ functionName,
569
+ compileContext,
565
570
  );
566
- return [
567
- V1_buildBaseSimpleFunctionExpression(
568
- processedParams,
569
- functionName,
570
- compileContext,
571
- ),
572
- processedParams,
573
- ];
574
- };
575
571
  /**
576
572
  * This is fairly similar to how engine does function matching in a way.
577
573
  * Notice that Studio core should not attempt to do any function inferencing/matching
@@ -586,7 +582,7 @@ export function V1_buildFunctionExpression(
586
582
  openVariables: string[],
587
583
  compileContext: V1_GraphBuilderContext,
588
584
  processingContext: V1_ProcessingContext,
589
- ): [SimpleFunctionExpression, ValueSpecification[]] {
585
+ ): SimpleFunctionExpression {
590
586
  if (
591
587
  matchFunctionName(functionName, [
592
588
  SUPPORTED_FUNCTIONS.TODAY,
@@ -600,7 +596,7 @@ export function V1_buildFunctionExpression(
600
596
  compileContext,
601
597
  processingContext,
602
598
  );
603
- expression[0].genericType = GenericTypeExplicitReference.create(
599
+ expression.genericType = GenericTypeExplicitReference.create(
604
600
  new GenericType(PrimitiveType.STRICTDATE),
605
601
  );
606
602
  return expression;
@@ -612,7 +608,7 @@ export function V1_buildFunctionExpression(
612
608
  compileContext,
613
609
  processingContext,
614
610
  );
615
- expression[0].genericType = GenericTypeExplicitReference.create(
611
+ expression.genericType = GenericTypeExplicitReference.create(
616
612
  new GenericType(PrimitiveType.DATETIME),
617
613
  );
618
614
  return expression;
@@ -632,7 +628,7 @@ export function V1_buildFunctionExpression(
632
628
  compileContext,
633
629
  processingContext,
634
630
  );
635
- expression[0].genericType = GenericTypeExplicitReference.create(
631
+ expression.genericType = GenericTypeExplicitReference.create(
636
632
  new GenericType(PrimitiveType.DATE),
637
633
  );
638
634
  return expression;
@@ -34,7 +34,7 @@ export const V1_packageableElementPointerDeserializerSchema = createModelSchema(
34
34
  V1_PackageableElementPointer,
35
35
  {
36
36
  path: primitive(),
37
- type: primitive(),
37
+ type: optional(primitive()),
38
38
  },
39
39
  );
40
40
 
@@ -34,8 +34,10 @@ import {
34
34
  V1_SingleExecutionParameters,
35
35
  type V1_ExecutionParameters,
36
36
  } from '../../../model/packageableElements/service/V1_ExecutionEnvironmentInstance.js';
37
- import { V1_serializeRuntime } from './V1_RuntimeSerializationHelper.js';
38
- import { V1_deserializeRuntime } from './V1_ServiceSerializationHelper.js';
37
+ import {
38
+ V1_deserializeRuntime,
39
+ V1_serializeRuntime,
40
+ } from './V1_RuntimeSerializationHelper.js';
39
41
 
40
42
  export const V1_EXECUTION_ENVIRONMENT_ELEMENT_PROTOCOL_TYPE =
41
43
  'executionEnvironmentInstance';
@@ -109,9 +109,28 @@ export const V1_serializeRuntime = (
109
109
  } else if (protocol instanceof V1_RuntimePointer) {
110
110
  return serialize(V1_runtimePointerModelSchema, protocol);
111
111
  }
112
+ // NOTE: we don't want to serialize legacy runtime as we no longer want to circulate it any further
112
113
  throw new UnsupportedOperationError(`Can't serialize runtime`, protocol);
113
114
  };
114
115
 
116
+ export const V1_deserializeRuntime = (
117
+ json: PlainObject<V1_Runtime>,
118
+ ): V1_Runtime => {
119
+ switch (json._type) {
120
+ case V1_RuntimeType.RUNTIME_POINTER:
121
+ return deserialize(V1_runtimePointerModelSchema, json);
122
+ case V1_RuntimeType.ENGINE_RUNTIME:
123
+ return deserialize(V1_EngineRuntime, json);
124
+ case V1_RuntimeType.LEGACY_RUNTIME:
125
+ case undefined:
126
+ return deserialize(V1_LegacyRuntime, json);
127
+ default:
128
+ throw new UnsupportedOperationError(
129
+ `Can't deeserialize runtime of type '${json._type}'`,
130
+ );
131
+ }
132
+ };
133
+
115
134
  export const V1_packageableRuntimeModelSchema = createModelSchema(
116
135
  V1_PackageableRuntime,
117
136
  {
@@ -44,13 +44,7 @@ import {
44
44
  import { V1_Service } from '../../../model/packageableElements/service/V1_Service.js';
45
45
  import { V1_rawLambdaModelSchema } from './V1_RawValueSpecificationSerializationHelper.js';
46
46
  import {
47
- type V1_Runtime,
48
- V1_EngineRuntime,
49
- V1_LegacyRuntime,
50
- } from '../../../model/packageableElements/runtime/V1_Runtime.js';
51
- import {
52
- V1_runtimePointerModelSchema,
53
- V1_RuntimeType,
47
+ V1_deserializeRuntime,
54
48
  V1_serializeRuntime,
55
49
  } from './V1_RuntimeSerializationHelper.js';
56
50
  import { V1_ServiceTest } from '../../../model/packageableElements/service/V1_ServiceTest.js';
@@ -179,24 +173,6 @@ export const V1_serviceTestSuiteModelSchema = (
179
173
  ),
180
174
  });
181
175
 
182
- export const V1_deserializeRuntime = (
183
- json: PlainObject<V1_Runtime>,
184
- ): V1_Runtime => {
185
- switch (json._type) {
186
- case V1_RuntimeType.RUNTIME_POINTER:
187
- return deserialize(V1_runtimePointerModelSchema, json);
188
- case V1_RuntimeType.ENGINE_RUNTIME:
189
- return deserialize(V1_EngineRuntime, json);
190
- case V1_RuntimeType.LEGACY_RUNTIME:
191
- case undefined:
192
- return deserialize(V1_LegacyRuntime, json);
193
- default:
194
- throw new UnsupportedOperationError(
195
- `Can't deeserialize runtime value of type '${json._type}'`,
196
- );
197
- }
198
- };
199
-
200
176
  const pureSingleExecutionModelSchema = createModelSchema(
201
177
  V1_PureSingleExecution,
202
178
  {
@@ -205,10 +181,7 @@ const pureSingleExecutionModelSchema = createModelSchema(
205
181
  ),
206
182
  func: usingModelSchema(V1_rawLambdaModelSchema),
207
183
  mapping: optional(primitive()),
208
- runtime: optionalCustom(
209
- (val) => V1_serializeRuntime(val),
210
- (val) => V1_deserializeRuntime(val),
211
- ),
184
+ runtime: optionalCustom(V1_serializeRuntime, V1_deserializeRuntime),
212
185
  },
213
186
  );
214
187
 
@@ -217,10 +190,7 @@ const keyedExecutionParamaterModelSchema = createModelSchema(
217
190
  {
218
191
  key: primitive(),
219
192
  mapping: primitive(),
220
- runtime: custom(
221
- (val) => V1_serializeRuntime(val),
222
- (val) => V1_deserializeRuntime(val),
223
- ),
193
+ runtime: optionalCustom(V1_serializeRuntime, V1_deserializeRuntime),
224
194
  },
225
195
  );
226
196
 
@@ -77,7 +77,7 @@ const TDSResultTypeModelSchema = createModelSchema(V1_TDSResultType, {
77
77
  tdsColumns: list(usingModelSchema(TDSColumnModelSchema)),
78
78
  });
79
79
 
80
- const V1_serializeExecutionResultType = (
80
+ const V1_serializeResultType = (
81
81
  protocol: V1_ResultType,
82
82
  ): PlainObject<V1_ResultType> => {
83
83
  if (protocol instanceof V1_DataTypeResultType) {
@@ -91,7 +91,7 @@ const V1_serializeExecutionResultType = (
91
91
  );
92
92
  };
93
93
 
94
- const V1_deserializeExecutionResultType = (
94
+ const V1_deserializeResultType = (
95
95
  json: PlainObject<V1_ResultType>,
96
96
  ): V1_ResultType => {
97
97
  switch (json._type) {
@@ -120,16 +120,10 @@ const relationalTDSInstantationExecutionNodeModelSchema = createModelSchema(
120
120
  V1_ExecutionNodeType.RELATIONAL_TDS_INSTANTIATION,
121
121
  ),
122
122
  executionNodes: list(
123
- custom(
124
- (val) => V1_serializeExecutionNode(val),
125
- (val) => V1_deserializeExecutionNode(val),
126
- ),
123
+ custom(V1_serializeExecutionNode, V1_deserializeExecutionNode),
127
124
  ),
128
125
  resultSizeRange: usingModelSchema(V1_multiplicitySchema),
129
- resultType: custom(
130
- (val) => V1_serializeExecutionResultType(val),
131
- (val) => V1_deserializeExecutionResultType(val),
132
- ),
126
+ resultType: custom(V1_serializeResultType, V1_deserializeResultType),
133
127
  },
134
128
  );
135
129
 
@@ -141,8 +135,8 @@ const SQLResultColumnModelSchema = createModelSchema(V1_SQLResultColumn, {
141
135
  const SQLExecutionNodeModelSchema = createModelSchema(V1_SQLExecutionNode, {
142
136
  _type: usingConstantValueSchema(V1_ExecutionNodeType.SQL),
143
137
  connection: custom(
144
- (val) => V1_serializeDatabaseConnectionValue(val),
145
- (val) => V1_deserializeDatabaseConnectionValue(val),
138
+ V1_serializeDatabaseConnectionValue,
139
+ V1_deserializeDatabaseConnectionValue,
146
140
  ),
147
141
  executionNodes: customList(
148
142
  V1_serializeExecutionNode,
@@ -152,10 +146,7 @@ const SQLExecutionNodeModelSchema = createModelSchema(V1_SQLExecutionNode, {
152
146
  onConnectionCloseRollbackQuery: optional(primitive()),
153
147
  resultColumns: list(usingModelSchema(SQLResultColumnModelSchema)),
154
148
  resultSizeRange: usingModelSchema(V1_multiplicitySchema),
155
- resultType: custom(
156
- (val) => V1_serializeExecutionResultType(val),
157
- (val) => V1_deserializeExecutionResultType(val),
158
- ),
149
+ resultType: custom(V1_serializeResultType, V1_deserializeResultType),
159
150
  sqlQuery: primitive(),
160
151
  });
161
152
 
@@ -209,8 +200,8 @@ const SimpleExecutionPlanModelSchema = createModelSchema(
209
200
  authDependent: primitive(),
210
201
  kerberos: optional(primitive()),
211
202
  rootExecutionNode: custom(
212
- (val) => V1_serializeExecutionNode(val),
213
- (val) => V1_deserializeExecutionNode(val),
203
+ V1_serializeExecutionNode,
204
+ V1_deserializeExecutionNode,
214
205
  ),
215
206
  serializer: usingModelSchema(V1_Protocol.serialization.schema),
216
207
  templateFunctions: list(primitive()),
package/src/index.ts CHANGED
@@ -203,12 +203,11 @@ export * from './graphManager/action/generation/DatabaseBuilderInput.js';
203
203
  export * from './graphManager/action/generation/GenerationConfigurationDescription.js';
204
204
  export { GenerationOutput } from './graphManager/action/generation/GenerationOutput.js';
205
205
  export { ServiceExecutionMode } from './graphManager/action/service/ServiceExecutionMode.js';
206
- export { ServiceRegistrationResult } from './graphManager/action/service/ServiceRegistrationResult.js';
207
206
  export {
208
- BulkServiceRegistrationResult,
209
- BulkRegistrationResultFail,
210
- BulkRegistrationResultSuccess,
211
- } from './graphManager/action/service/BulkServiceRegistrationResult.js';
207
+ ServiceRegistrationResult,
208
+ ServiceRegistrationFail,
209
+ ServiceRegistrationSuccess,
210
+ } from './graphManager/action/service/ServiceRegistrationResult.js';
212
211
  export { DEPRECATED__ServiceTestResult } from './graphManager/action/service/DEPRECATED__ServiceTestResult.js';
213
212
  export { SourceInformation } from './graphManager/action/SourceInformation.js';
214
213
  export * from './graphManager/protocol/pure/PureProtocolProcessorPlugin.js';
package/tsconfig.json CHANGED
@@ -295,7 +295,6 @@
295
295
  "./src/graphManager/action/generation/GenerationOutput.ts",
296
296
  "./src/graphManager/action/query/Query.ts",
297
297
  "./src/graphManager/action/query/QuerySearchSpecification.ts",
298
- "./src/graphManager/action/service/BulkServiceRegistrationResult.ts",
299
298
  "./src/graphManager/action/service/DEPRECATED__ServiceTestResult.ts",
300
299
  "./src/graphManager/action/service/ServiceExecutionMode.ts",
301
300
  "./src/graphManager/action/service/ServiceRegistrationResult.ts",
@@ -1,29 +0,0 @@
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
- export declare class BulkServiceRegistrationResult {
17
- servicePath: string | undefined;
18
- }
19
- export declare class BulkRegistrationResultSuccess extends BulkServiceRegistrationResult {
20
- serverURL: string;
21
- pattern: string;
22
- serviceInstanceId: string;
23
- constructor(serverURL: string, pattern: string, serviceInstanceId: string);
24
- }
25
- export declare class BulkRegistrationResultFail extends BulkServiceRegistrationResult {
26
- errorMessage: string;
27
- constructor(errorMessage: string);
28
- }
29
- //# sourceMappingURL=BulkServiceRegistrationResult.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BulkServiceRegistrationResult.d.ts","sourceRoot":"","sources":["../../../../src/graphManager/action/service/BulkServiceRegistrationResult.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,qBAAa,6BAA6B;IACxC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC;AAED,qBAAa,6BAA8B,SAAQ,6BAA6B;IAC9E,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;gBAEd,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM;CAM1E;AAED,qBAAa,0BAA2B,SAAQ,6BAA6B;IAC3E,YAAY,EAAE,MAAM,CAAC;gBAET,YAAY,EAAE,MAAM;CAIjC"}
@@ -1,37 +0,0 @@
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
- export class BulkServiceRegistrationResult {
17
- servicePath;
18
- }
19
- export class BulkRegistrationResultSuccess extends BulkServiceRegistrationResult {
20
- serverURL;
21
- pattern;
22
- serviceInstanceId;
23
- constructor(serverURL, pattern, serviceInstanceId) {
24
- super();
25
- this.serverURL = serverURL;
26
- this.pattern = pattern;
27
- this.serviceInstanceId = serviceInstanceId;
28
- }
29
- }
30
- export class BulkRegistrationResultFail extends BulkServiceRegistrationResult {
31
- errorMessage;
32
- constructor(errorMessage) {
33
- super();
34
- this.errorMessage = errorMessage;
35
- }
36
- }
37
- //# sourceMappingURL=BulkServiceRegistrationResult.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BulkServiceRegistrationResult.js","sourceRoot":"","sources":["../../../../src/graphManager/action/service/BulkServiceRegistrationResult.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,OAAO,6BAA6B;IACxC,WAAW,CAAqB;CACjC;AAED,MAAM,OAAO,6BAA8B,SAAQ,6BAA6B;IAC9E,SAAS,CAAS;IAClB,OAAO,CAAS;IAChB,iBAAiB,CAAS;IAE1B,YAAY,SAAiB,EAAE,OAAe,EAAE,iBAAyB;QACvE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC7C,CAAC;CACF;AAED,MAAM,OAAO,0BAA2B,SAAQ,6BAA6B;IAC3E,YAAY,CAAS;IAErB,YAAY,YAAoB;QAC9B,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;CACF"}
@@ -1,41 +0,0 @@
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 class BulkServiceRegistrationResult {
18
- servicePath: string | undefined;
19
- }
20
-
21
- export class BulkRegistrationResultSuccess extends BulkServiceRegistrationResult {
22
- serverURL: string;
23
- pattern: string;
24
- serviceInstanceId: string;
25
-
26
- constructor(serverURL: string, pattern: string, serviceInstanceId: string) {
27
- super();
28
- this.serverURL = serverURL;
29
- this.pattern = pattern;
30
- this.serviceInstanceId = serviceInstanceId;
31
- }
32
- }
33
-
34
- export class BulkRegistrationResultFail extends BulkServiceRegistrationResult {
35
- errorMessage: string;
36
-
37
- constructor(errorMessage: string) {
38
- super();
39
- this.errorMessage = errorMessage;
40
- }
41
- }