@finos/legend-extension-dsl-persistence 1.0.3 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/DSLPersistence_Extension.d.ts +0 -2
- package/lib/DSLPersistence_Extension.d.ts.map +1 -1
- package/lib/DSLPersistence_Extension.js +8 -9
- package/lib/DSLPersistence_Extension.js.map +1 -1
- package/lib/components/studio/DSLPersistence_LegendStudioDocumentation.d.ts +4 -14
- package/lib/components/studio/DSLPersistence_LegendStudioDocumentation.d.ts.map +1 -1
- package/lib/components/studio/DSLPersistence_LegendStudioDocumentation.js +8 -6
- package/lib/components/studio/DSLPersistence_LegendStudioDocumentation.js.map +1 -1
- package/lib/components/studio/DSLPersistence_LegendStudioPlugin.d.ts.map +1 -1
- package/lib/components/studio/DSLPersistence_LegendStudioPlugin.js +7 -7
- package/lib/components/studio/DSLPersistence_LegendStudioPlugin.js.map +1 -1
- package/lib/graph/DSLPersistence_PureGraphPlugin.js +1 -1
- package/lib/graph/DSLPersistence_PureGraphPlugin.js.map +1 -1
- package/lib/graphManager/DSLPersistence_GraphManagerHelper.d.ts +1 -1
- package/lib/graphManager/DSLPersistence_GraphManagerHelper.d.ts.map +1 -1
- package/lib/graphManager/DSLPersistence_GraphManagerHelper.js +1 -1
- package/lib/graphManager/DSLPersistence_GraphManagerHelper.js.map +1 -1
- package/lib/graphManager/DSLPersistence_PureGraphManagerPlugin.js +2 -2
- package/lib/graphManager/DSLPersistence_PureGraphManagerPlugin.js.map +1 -1
- package/lib/graphManager/action/changeDetection/DSLPersistence_ObserverHelper.d.ts +1 -1
- package/lib/graphManager/action/changeDetection/DSLPersistence_ObserverHelper.d.ts.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +6 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -4
- package/lib/index.js.map +1 -1
- package/lib/models/DSLPersistence_ModelUtils.d.ts +2 -0
- package/lib/models/DSLPersistence_ModelUtils.d.ts.map +1 -1
- package/lib/models/DSLPersistence_ModelUtils.js +4 -1
- package/lib/models/DSLPersistence_ModelUtils.js.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Auditing.js +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Auditing.js.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_DeduplicationStrategy.js +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_DeduplicationStrategy.js.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode.d.ts +3 -3
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode.d.ts.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode.js +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode.js.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_MergeStrategy.js +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_MergeStrategy.js.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning.d.ts +14 -0
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning.d.ts.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning.js +28 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning.js.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Notifier.js +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Notifier.js.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.d.ts +3 -3
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.d.ts.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.js +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.js.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister.d.ts +3 -3
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister.d.ts.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister.js +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister.js.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Sink.js +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Sink.js.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape.d.ts +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape.d.ts.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape.js +2 -2
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape.js.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Trigger.js +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Trigger.js.map +1 -1
- package/lib/models/protocols/pure/DSLPersistence_PureProtocolProcessorPlugin.js +5 -5
- package/lib/models/protocols/pure/DSLPersistence_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Auditing.js +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Auditing.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy.js +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_IngestMode.d.ts +3 -3
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_IngestMode.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_IngestMode.js +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_IngestMode.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy.js +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Milestoning.d.ts +14 -0
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Milestoning.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Milestoning.js +28 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Milestoning.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Notifier.js +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Notifier.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persistence.d.ts +3 -3
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persistence.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persistence.js +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persistence.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persister.d.ts +3 -3
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persister.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persister.js +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persister.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Sink.js +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Sink.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_TargetShape.d.ts +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_TargetShape.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_TargetShape.js +2 -2
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_TargetShape.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Trigger.js +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Trigger.js.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLPersistence_GraphBuilderHelper.d.ts +19 -0
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLPersistence_GraphBuilderHelper.d.ts.map +1 -0
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLPersistence_GraphBuilderHelper.js +18 -0
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLPersistence_GraphBuilderHelper.js.map +1 -0
- package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_PersistenceTransformer.d.ts +26 -22
- package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_PersistenceTransformer.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_PersistenceTransformer.js +44 -21
- package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_PersistenceTransformer.js.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_PersistenceBuilder.d.ts +25 -21
- package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_PersistenceBuilder.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_PersistenceBuilder.js +44 -21
- package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_PersistenceBuilder.js.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLPersistence_ProtocolHelper.d.ts +38 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLPersistence_ProtocolHelper.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLPersistence_ProtocolHelper.js +73 -35
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLPersistence_ProtocolHelper.js.map +1 -1
- package/lib/package.json +9 -8
- package/package.json +16 -15
- package/src/DSLPersistence_Extension.ts +8 -13
- package/src/components/studio/DSLPersistence_LegendStudioDocumentation.ts +13 -6
- package/src/components/studio/DSLPersistence_LegendStudioPlugin.tsx +11 -10
- package/src/graph/DSLPersistence_PureGraphPlugin.ts +1 -1
- package/src/graphManager/DSLPersistence_GraphManagerHelper.ts +1 -1
- package/src/graphManager/DSLPersistence_PureGraphManagerPlugin.ts +2 -2
- package/src/graphManager/action/changeDetection/DSLPersistence_ObserverHelper.ts +1 -1
- package/src/index.ts +15 -4
- package/src/models/DSLPersistence_ModelUtils.ts +4 -0
- package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Auditing.ts +1 -1
- package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_DeduplicationStrategy.ts +1 -1
- package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode.ts +4 -4
- package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_MergeStrategy.ts +1 -1
- package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning.ts +41 -1
- package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Notifier.ts +1 -1
- package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.ts +4 -4
- package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister.ts +4 -4
- package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Sink.ts +1 -1
- package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape.ts +2 -2
- package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Trigger.ts +1 -1
- package/src/models/protocols/pure/DSLPersistence_PureProtocolProcessorPlugin.ts +5 -5
- package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Auditing.ts +1 -1
- package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy.ts +1 -1
- package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_IngestMode.ts +4 -4
- package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy.ts +1 -1
- package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Milestoning.ts +41 -1
- package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Notifier.ts +1 -1
- package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persistence.ts +4 -4
- package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persister.ts +4 -4
- package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Sink.ts +1 -1
- package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_TargetShape.ts +2 -2
- package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Trigger.ts +1 -1
- package/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLPersistence_GraphBuilderHelper.ts +30 -0
- package/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_PersistenceTransformer.ts +63 -22
- package/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_PersistenceBuilder.ts +64 -22
- package/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLPersistence_ProtocolHelper.ts +111 -35
- package/tsconfig.json +4 -8
- package/tsconfig.package.json +1 -4
package/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLPersistence_ProtocolHelper.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { V1_Persistence } from '../../model/packageableElements/persistence/V1_DSLPersistence_Persistence';
|
|
17
|
+
import { V1_Persistence } from '../../model/packageableElements/persistence/V1_DSLPersistence_Persistence.js';
|
|
18
18
|
import {
|
|
19
19
|
type PureProtocolProcessorPlugin,
|
|
20
20
|
V1_deserializeConnectionValue,
|
|
@@ -42,41 +42,41 @@ import {
|
|
|
42
42
|
V1_CronTrigger,
|
|
43
43
|
V1_ManualTrigger,
|
|
44
44
|
type V1_Trigger,
|
|
45
|
-
} from '../../model/packageableElements/persistence/V1_DSLPersistence_Trigger';
|
|
45
|
+
} from '../../model/packageableElements/persistence/V1_DSLPersistence_Trigger.js';
|
|
46
46
|
import {
|
|
47
47
|
V1_EmailNotifyee,
|
|
48
48
|
V1_Notifier,
|
|
49
49
|
type V1_Notifyee,
|
|
50
50
|
V1_PagerDutyNotifyee,
|
|
51
|
-
} from '../../model/packageableElements/persistence/V1_DSLPersistence_Notifier';
|
|
51
|
+
} from '../../model/packageableElements/persistence/V1_DSLPersistence_Notifier.js';
|
|
52
52
|
import {
|
|
53
53
|
V1_ObjectStorageSink,
|
|
54
54
|
V1_RelationalSink,
|
|
55
55
|
type V1_Sink,
|
|
56
|
-
} from '../../model/packageableElements/persistence/V1_DSLPersistence_Sink';
|
|
56
|
+
} from '../../model/packageableElements/persistence/V1_DSLPersistence_Sink.js';
|
|
57
57
|
import {
|
|
58
58
|
V1_AnyVersionDeduplicationStrategy,
|
|
59
59
|
type V1_DeduplicationStrategy,
|
|
60
60
|
V1_DuplicateCountDeduplicationStrategy,
|
|
61
61
|
V1_MaxVersionDeduplicationStrategy,
|
|
62
62
|
V1_NoDeduplicationStrategy,
|
|
63
|
-
} from '../../model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy';
|
|
63
|
+
} from '../../model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy.js';
|
|
64
64
|
import {
|
|
65
65
|
type V1_Auditing,
|
|
66
66
|
V1_DateTimeAuditing,
|
|
67
67
|
V1_NoAuditing,
|
|
68
|
-
} from '../../model/packageableElements/persistence/V1_DSLPersistence_Auditing';
|
|
68
|
+
} from '../../model/packageableElements/persistence/V1_DSLPersistence_Auditing.js';
|
|
69
69
|
import {
|
|
70
70
|
V1_FlatTarget,
|
|
71
71
|
V1_MultiFlatTarget,
|
|
72
72
|
V1_MultiFlatTargetPart,
|
|
73
73
|
type V1_TargetShape,
|
|
74
|
-
} from '../../model/packageableElements/persistence/V1_DSLPersistence_TargetShape';
|
|
74
|
+
} from '../../model/packageableElements/persistence/V1_DSLPersistence_TargetShape.js';
|
|
75
75
|
import {
|
|
76
76
|
V1_DeleteIndicatorMergeStrategy,
|
|
77
77
|
type V1_MergeStrategy,
|
|
78
78
|
V1_NoDeletesMergeStrategy,
|
|
79
|
-
} from '../../model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy';
|
|
79
|
+
} from '../../model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy.js';
|
|
80
80
|
import {
|
|
81
81
|
V1_BatchIdAndDateTimeTransactionMilestoning,
|
|
82
82
|
V1_BatchIdTransactionMilestoning,
|
|
@@ -84,10 +84,13 @@ import {
|
|
|
84
84
|
V1_DateTimeValidityMilestoning,
|
|
85
85
|
V1_SourceSpecifiesFromAndThruDateTime,
|
|
86
86
|
V1_SourceSpecifiesFromDateTime,
|
|
87
|
+
V1_SourceSpecifiesInAndOutDateTime,
|
|
88
|
+
V1_SourceSpecifiesInDateTime,
|
|
89
|
+
type V1_TransactionDerivation,
|
|
87
90
|
type V1_TransactionMilestoning,
|
|
88
91
|
type V1_ValidityDerivation,
|
|
89
92
|
type V1_ValidityMilestoning,
|
|
90
|
-
} from '../../model/packageableElements/persistence/V1_DSLPersistence_Milestoning';
|
|
93
|
+
} from '../../model/packageableElements/persistence/V1_DSLPersistence_Milestoning.js';
|
|
91
94
|
import {
|
|
92
95
|
V1_AppendOnly,
|
|
93
96
|
V1_BitemporalDelta,
|
|
@@ -97,12 +100,12 @@ import {
|
|
|
97
100
|
V1_NontemporalSnapshot,
|
|
98
101
|
V1_UnitemporalDelta,
|
|
99
102
|
V1_UnitemporalSnapshot,
|
|
100
|
-
} from '../../model/packageableElements/persistence/V1_DSLPersistence_IngestMode';
|
|
103
|
+
} from '../../model/packageableElements/persistence/V1_DSLPersistence_IngestMode.js';
|
|
101
104
|
import {
|
|
102
105
|
V1_BatchPersister,
|
|
103
106
|
type V1_Persister,
|
|
104
107
|
V1_StreamingPersister,
|
|
105
|
-
} from '../../model/packageableElements/persistence/V1_DSLPersistence_Persister';
|
|
108
|
+
} from '../../model/packageableElements/persistence/V1_DSLPersistence_Persister.js';
|
|
106
109
|
|
|
107
110
|
/**********
|
|
108
111
|
* notifier
|
|
@@ -126,7 +129,7 @@ const V1_pagerDutyNotifyeeModelSchema = createModelSchema(
|
|
|
126
129
|
},
|
|
127
130
|
);
|
|
128
131
|
|
|
129
|
-
const V1_serializeNotifyee = (
|
|
132
|
+
export const V1_serializeNotifyee = (
|
|
130
133
|
protocol: V1_Notifyee,
|
|
131
134
|
): PlainObject<V1_Notifyee> => {
|
|
132
135
|
if (protocol instanceof V1_EmailNotifyee) {
|
|
@@ -137,7 +140,7 @@ const V1_serializeNotifyee = (
|
|
|
137
140
|
throw new UnsupportedOperationError(`Can't serialize notifyee`, protocol);
|
|
138
141
|
};
|
|
139
142
|
|
|
140
|
-
const V1_deserializeNotifyee = (
|
|
143
|
+
export const V1_deserializeNotifyee = (
|
|
141
144
|
json: PlainObject<V1_Notifyee>,
|
|
142
145
|
): V1_Notifyee => {
|
|
143
146
|
switch (json._type) {
|
|
@@ -184,7 +187,7 @@ const V1_dateTimeAuditingModelSchema = createModelSchema(V1_DateTimeAuditing, {
|
|
|
184
187
|
dateTimeName: primitive(),
|
|
185
188
|
});
|
|
186
189
|
|
|
187
|
-
const V1_serializeAuditing = (
|
|
190
|
+
export const V1_serializeAuditing = (
|
|
188
191
|
protocol: V1_Auditing,
|
|
189
192
|
): PlainObject<V1_Auditing> => {
|
|
190
193
|
if (protocol instanceof V1_NoAuditing) {
|
|
@@ -195,7 +198,7 @@ const V1_serializeAuditing = (
|
|
|
195
198
|
throw new UnsupportedOperationError(`Can't serialize auditing`, protocol);
|
|
196
199
|
};
|
|
197
200
|
|
|
198
|
-
const V1_deserializeAuditing = (
|
|
201
|
+
export const V1_deserializeAuditing = (
|
|
199
202
|
json: PlainObject<V1_Auditing>,
|
|
200
203
|
): V1_Auditing => {
|
|
201
204
|
switch (json._type) {
|
|
@@ -239,7 +242,7 @@ const V1_deleteIndicatorMergeStrategyModelSchema = createModelSchema(
|
|
|
239
242
|
},
|
|
240
243
|
);
|
|
241
244
|
|
|
242
|
-
const V1_serializeMergeStrategy = (
|
|
245
|
+
export const V1_serializeMergeStrategy = (
|
|
243
246
|
protocol: V1_MergeStrategy,
|
|
244
247
|
): PlainObject<V1_MergeStrategy> => {
|
|
245
248
|
if (protocol instanceof V1_NoDeletesMergeStrategy) {
|
|
@@ -253,7 +256,7 @@ const V1_serializeMergeStrategy = (
|
|
|
253
256
|
);
|
|
254
257
|
};
|
|
255
258
|
|
|
256
|
-
const V1_deserializeMergeStrategy = (
|
|
259
|
+
export const V1_deserializeMergeStrategy = (
|
|
257
260
|
json: PlainObject<V1_MergeStrategy>,
|
|
258
261
|
): V1_MergeStrategy => {
|
|
259
262
|
switch (json._type) {
|
|
@@ -268,6 +271,65 @@ const V1_deserializeMergeStrategy = (
|
|
|
268
271
|
}
|
|
269
272
|
};
|
|
270
273
|
|
|
274
|
+
/**********
|
|
275
|
+
* transaction derivation
|
|
276
|
+
**********/
|
|
277
|
+
|
|
278
|
+
enum V1_TransactionDerivationType {
|
|
279
|
+
SOURCE_SPECIFIES_IN_DATE_TIME = 'sourceSpecifiesInDateTime',
|
|
280
|
+
SOURCE_SPECIFIES_IN_AND_OUT_DATE_TIME = 'sourceSpecifiesInAndOutDateTime',
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
const V1_sourceSpecifiesInDateTimeModelSchema = createModelSchema(
|
|
284
|
+
V1_SourceSpecifiesInDateTime,
|
|
285
|
+
{
|
|
286
|
+
_type: usingConstantValueSchema(
|
|
287
|
+
V1_TransactionDerivationType.SOURCE_SPECIFIES_IN_DATE_TIME,
|
|
288
|
+
),
|
|
289
|
+
sourceDateTimeInField: primitive(),
|
|
290
|
+
},
|
|
291
|
+
);
|
|
292
|
+
|
|
293
|
+
const V1_sourceSpecifiesInAndOutDateTimeModelSchema = createModelSchema(
|
|
294
|
+
V1_SourceSpecifiesInAndOutDateTime,
|
|
295
|
+
{
|
|
296
|
+
_type: usingConstantValueSchema(
|
|
297
|
+
V1_TransactionDerivationType.SOURCE_SPECIFIES_IN_AND_OUT_DATE_TIME,
|
|
298
|
+
),
|
|
299
|
+
sourceDateTimeInField: primitive(),
|
|
300
|
+
sourceDateTimeOutField: primitive(),
|
|
301
|
+
},
|
|
302
|
+
);
|
|
303
|
+
|
|
304
|
+
export const V1_serializeTransactionDerivation = (
|
|
305
|
+
protocol: V1_TransactionDerivation,
|
|
306
|
+
): PlainObject<V1_TransactionDerivation> => {
|
|
307
|
+
if (protocol instanceof V1_SourceSpecifiesInDateTime) {
|
|
308
|
+
return serialize(V1_sourceSpecifiesInDateTimeModelSchema, protocol);
|
|
309
|
+
} else if (protocol instanceof V1_SourceSpecifiesInAndOutDateTime) {
|
|
310
|
+
return serialize(V1_sourceSpecifiesInAndOutDateTimeModelSchema, protocol);
|
|
311
|
+
}
|
|
312
|
+
throw new UnsupportedOperationError(
|
|
313
|
+
`Can't serialize transaction derivation`,
|
|
314
|
+
protocol,
|
|
315
|
+
);
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
export const V1_deserializeTransactionDerivation = (
|
|
319
|
+
json: PlainObject<V1_TransactionDerivation>,
|
|
320
|
+
): V1_TransactionDerivation => {
|
|
321
|
+
switch (json._type) {
|
|
322
|
+
case V1_TransactionDerivationType.SOURCE_SPECIFIES_IN_DATE_TIME:
|
|
323
|
+
return deserialize(V1_sourceSpecifiesInDateTimeModelSchema, json);
|
|
324
|
+
case V1_TransactionDerivationType.SOURCE_SPECIFIES_IN_AND_OUT_DATE_TIME:
|
|
325
|
+
return deserialize(V1_sourceSpecifiesInAndOutDateTimeModelSchema, json);
|
|
326
|
+
default:
|
|
327
|
+
throw new UnsupportedOperationError(
|
|
328
|
+
`Can't deserialize transaction derivation '${json._type}'`,
|
|
329
|
+
);
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
|
|
271
333
|
/**********
|
|
272
334
|
* transaction milestoning
|
|
273
335
|
**********/
|
|
@@ -297,6 +359,10 @@ const V1_dateTimeTransactionMilestoningModelSchema = createModelSchema(
|
|
|
297
359
|
),
|
|
298
360
|
dateTimeInName: primitive(),
|
|
299
361
|
dateTimeOutName: primitive(),
|
|
362
|
+
derivation: custom(
|
|
363
|
+
(val) => (val ? V1_serializeTransactionDerivation(val) : SKIP),
|
|
364
|
+
(val) => V1_deserializeTransactionDerivation(val),
|
|
365
|
+
),
|
|
300
366
|
},
|
|
301
367
|
);
|
|
302
368
|
|
|
@@ -309,9 +375,15 @@ const V1_batchIdAndDateTimeTransactionMilestoningModelSchema =
|
|
|
309
375
|
batchIdOutName: primitive(),
|
|
310
376
|
dateTimeInName: primitive(),
|
|
311
377
|
dateTimeOutName: primitive(),
|
|
378
|
+
derivation: optional(
|
|
379
|
+
custom(
|
|
380
|
+
(val) => (val ? V1_serializeTransactionDerivation(val) : SKIP),
|
|
381
|
+
(val) => V1_deserializeTransactionDerivation(val),
|
|
382
|
+
),
|
|
383
|
+
),
|
|
312
384
|
});
|
|
313
385
|
|
|
314
|
-
const V1_serializeTransactionMilestoning = (
|
|
386
|
+
export const V1_serializeTransactionMilestoning = (
|
|
315
387
|
protocol: V1_TransactionMilestoning,
|
|
316
388
|
): PlainObject<V1_TransactionMilestoning> => {
|
|
317
389
|
if (protocol instanceof V1_BatchIdTransactionMilestoning) {
|
|
@@ -330,7 +402,7 @@ const V1_serializeTransactionMilestoning = (
|
|
|
330
402
|
);
|
|
331
403
|
};
|
|
332
404
|
|
|
333
|
-
const V1_deserializeTransactionMilestoning = (
|
|
405
|
+
export const V1_deserializeTransactionMilestoning = (
|
|
334
406
|
json: PlainObject<V1_TransactionMilestoning>,
|
|
335
407
|
): V1_TransactionMilestoning => {
|
|
336
408
|
switch (json._type) {
|
|
@@ -380,7 +452,7 @@ const V1_sourceSpecifiesFromAndThruDateTimeModelSchema = createModelSchema(
|
|
|
380
452
|
},
|
|
381
453
|
);
|
|
382
454
|
|
|
383
|
-
const V1_serializeValidityDerivation = (
|
|
455
|
+
export const V1_serializeValidityDerivation = (
|
|
384
456
|
protocol: V1_ValidityDerivation,
|
|
385
457
|
): PlainObject<V1_ValidityDerivation> => {
|
|
386
458
|
if (protocol instanceof V1_SourceSpecifiesFromDateTime) {
|
|
@@ -397,7 +469,7 @@ const V1_serializeValidityDerivation = (
|
|
|
397
469
|
);
|
|
398
470
|
};
|
|
399
471
|
|
|
400
|
-
const V1_deserializeValidityDerivation = (
|
|
472
|
+
export const V1_deserializeValidityDerivation = (
|
|
401
473
|
json: PlainObject<V1_ValidityDerivation>,
|
|
402
474
|
): V1_ValidityDerivation => {
|
|
403
475
|
switch (json._type) {
|
|
@@ -438,7 +510,7 @@ const V1_dateTimeValidityMilestoningModelSchema = createModelSchema(
|
|
|
438
510
|
},
|
|
439
511
|
);
|
|
440
512
|
|
|
441
|
-
const V1_serializeValidityMilestoning = (
|
|
513
|
+
export const V1_serializeValidityMilestoning = (
|
|
442
514
|
protocol: V1_ValidityMilestoning,
|
|
443
515
|
): PlainObject<V1_ValidityMilestoning> => {
|
|
444
516
|
if (protocol instanceof V1_DateTimeValidityMilestoning) {
|
|
@@ -450,7 +522,7 @@ const V1_serializeValidityMilestoning = (
|
|
|
450
522
|
);
|
|
451
523
|
};
|
|
452
524
|
|
|
453
|
-
const V1_deserializeValidityMilestoning = (
|
|
525
|
+
export const V1_deserializeValidityMilestoning = (
|
|
454
526
|
json: PlainObject<V1_ValidityMilestoning>,
|
|
455
527
|
): V1_ValidityMilestoning => {
|
|
456
528
|
switch (json._type) {
|
|
@@ -563,7 +635,7 @@ const V1_appendOnlyModelSchema = createModelSchema(V1_AppendOnly, {
|
|
|
563
635
|
filterDuplicates: primitive(),
|
|
564
636
|
});
|
|
565
637
|
|
|
566
|
-
const V1_serializeIngestMode = (
|
|
638
|
+
export const V1_serializeIngestMode = (
|
|
567
639
|
protocol: V1_IngestMode,
|
|
568
640
|
): PlainObject<V1_IngestMode> => {
|
|
569
641
|
if (protocol instanceof V1_NontemporalSnapshot) {
|
|
@@ -584,7 +656,7 @@ const V1_serializeIngestMode = (
|
|
|
584
656
|
throw new UnsupportedOperationError(`Can't serialize ingest mode`, protocol);
|
|
585
657
|
};
|
|
586
658
|
|
|
587
|
-
const V1_deserializeIngestMode = (
|
|
659
|
+
export const V1_deserializeIngestMode = (
|
|
588
660
|
json: PlainObject<V1_IngestMode>,
|
|
589
661
|
): V1_IngestMode => {
|
|
590
662
|
switch (json._type) {
|
|
@@ -641,7 +713,7 @@ const V1_objectStorageSinkModelSchema = (
|
|
|
641
713
|
),
|
|
642
714
|
});
|
|
643
715
|
|
|
644
|
-
const V1_serializeSink = (
|
|
716
|
+
export const V1_serializeSink = (
|
|
645
717
|
protocol: V1_Sink,
|
|
646
718
|
plugins: PureProtocolProcessorPlugin[],
|
|
647
719
|
): PlainObject<V1_Sink> => {
|
|
@@ -653,7 +725,7 @@ const V1_serializeSink = (
|
|
|
653
725
|
throw new UnsupportedOperationError(`Can't serialize sink`, protocol);
|
|
654
726
|
};
|
|
655
727
|
|
|
656
|
-
const V1_deserializeSink = (
|
|
728
|
+
export const V1_deserializeSink = (
|
|
657
729
|
json: PlainObject<V1_Sink>,
|
|
658
730
|
plugins: PureProtocolProcessorPlugin[],
|
|
659
731
|
): V1_Sink => {
|
|
@@ -718,7 +790,7 @@ const V1_duplicateCountDeduplicationStrategyModelSchema = createModelSchema(
|
|
|
718
790
|
},
|
|
719
791
|
);
|
|
720
792
|
|
|
721
|
-
const V1_serializeDeduplicationStrategy = (
|
|
793
|
+
export const V1_serializeDeduplicationStrategy = (
|
|
722
794
|
protocol: V1_DeduplicationStrategy,
|
|
723
795
|
): PlainObject<V1_DeduplicationStrategy> => {
|
|
724
796
|
if (protocol instanceof V1_NoDeduplicationStrategy) {
|
|
@@ -739,7 +811,7 @@ const V1_serializeDeduplicationStrategy = (
|
|
|
739
811
|
);
|
|
740
812
|
};
|
|
741
813
|
|
|
742
|
-
const V1_deserializeDeduplicationStrategy = (
|
|
814
|
+
export const V1_deserializeDeduplicationStrategy = (
|
|
743
815
|
json: PlainObject<V1_DeduplicationStrategy>,
|
|
744
816
|
): V1_DeduplicationStrategy => {
|
|
745
817
|
switch (json._type) {
|
|
@@ -812,7 +884,7 @@ const V1_multiFlatTargetModelSchema = createModelSchema(V1_MultiFlatTarget, {
|
|
|
812
884
|
transactionScope: primitive(),
|
|
813
885
|
});
|
|
814
886
|
|
|
815
|
-
const V1_serializeTargetShape = (
|
|
887
|
+
export const V1_serializeTargetShape = (
|
|
816
888
|
protocol: V1_TargetShape,
|
|
817
889
|
): PlainObject<V1_TargetShape> => {
|
|
818
890
|
if (protocol instanceof V1_MultiFlatTarget) {
|
|
@@ -823,7 +895,7 @@ const V1_serializeTargetShape = (
|
|
|
823
895
|
throw new UnsupportedOperationError(`Can't serialize target shape`, protocol);
|
|
824
896
|
};
|
|
825
897
|
|
|
826
|
-
const V1_deserializeTargetShape = (
|
|
898
|
+
export const V1_deserializeTargetShape = (
|
|
827
899
|
json: PlainObject<V1_TargetShape>,
|
|
828
900
|
): V1_TargetShape => {
|
|
829
901
|
switch (json._type) {
|
|
@@ -877,7 +949,7 @@ const V1_batchPersisterModelSchema = (
|
|
|
877
949
|
),
|
|
878
950
|
});
|
|
879
951
|
|
|
880
|
-
const V1_serializePersister = (
|
|
952
|
+
export const V1_serializePersister = (
|
|
881
953
|
protocol: V1_Persister,
|
|
882
954
|
plugins: PureProtocolProcessorPlugin[],
|
|
883
955
|
): PlainObject<V1_Persister> => {
|
|
@@ -889,7 +961,7 @@ const V1_serializePersister = (
|
|
|
889
961
|
throw new UnsupportedOperationError(`Can't serialize persister`, protocol);
|
|
890
962
|
};
|
|
891
963
|
|
|
892
|
-
const V1_deserializePersister = (
|
|
964
|
+
export const V1_deserializePersister = (
|
|
893
965
|
json: PlainObject<V1_Persister>,
|
|
894
966
|
plugins: PureProtocolProcessorPlugin[],
|
|
895
967
|
): V1_Persister => {
|
|
@@ -927,7 +999,9 @@ const V1_cronTriggerModelSchema = createModelSchema(V1_CronTrigger, {
|
|
|
927
999
|
dayOfWeek: primitive(),
|
|
928
1000
|
});
|
|
929
1001
|
|
|
930
|
-
const V1_serializeTrigger = (
|
|
1002
|
+
export const V1_serializeTrigger = (
|
|
1003
|
+
protocol: V1_Trigger,
|
|
1004
|
+
): PlainObject<V1_Trigger> => {
|
|
931
1005
|
if (protocol instanceof V1_ManualTrigger) {
|
|
932
1006
|
return serialize(V1_manualTriggerModelSchema, protocol);
|
|
933
1007
|
} else if (protocol instanceof V1_CronTrigger) {
|
|
@@ -936,7 +1010,9 @@ const V1_serializeTrigger = (protocol: V1_Trigger): PlainObject<V1_Trigger> => {
|
|
|
936
1010
|
throw new UnsupportedOperationError(`Can't serialize trigger`, protocol);
|
|
937
1011
|
};
|
|
938
1012
|
|
|
939
|
-
const V1_deserializeTrigger = (
|
|
1013
|
+
export const V1_deserializeTrigger = (
|
|
1014
|
+
json: PlainObject<V1_Trigger>,
|
|
1015
|
+
): V1_Trigger => {
|
|
940
1016
|
switch (json._type) {
|
|
941
1017
|
case V1_TriggerType.MANUAL_TRIGGER:
|
|
942
1018
|
return deserialize(V1_manualTriggerModelSchema, json);
|
package/tsconfig.json
CHANGED
|
@@ -12,14 +12,11 @@
|
|
|
12
12
|
"declarationMap": true,
|
|
13
13
|
"sourceMap": true,
|
|
14
14
|
"target": "esnext",
|
|
15
|
-
"module": "
|
|
15
|
+
"module": "nodenext",
|
|
16
16
|
"skipLibCheck": true,
|
|
17
|
-
"moduleResolution": "node",
|
|
18
17
|
"resolveJsonModule": true,
|
|
19
18
|
"isolatedModules": true,
|
|
20
19
|
"importsNotUsedAsValues": "error",
|
|
21
|
-
"esModuleInterop": true,
|
|
22
|
-
"allowSyntheticDefaultImports": true,
|
|
23
20
|
"strict": true,
|
|
24
21
|
"noImplicitOverride": true,
|
|
25
22
|
"noUncheckedIndexedAccess": true,
|
|
@@ -68,6 +65,7 @@
|
|
|
68
65
|
"./src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Sink.ts",
|
|
69
66
|
"./src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_TargetShape.ts",
|
|
70
67
|
"./src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Trigger.ts",
|
|
68
|
+
"./src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLPersistence_GraphBuilderHelper.ts",
|
|
71
69
|
"./src/models/protocols/pure/v1/transformation/pureGraph/from/V1_PersistenceTransformer.ts",
|
|
72
70
|
"./src/models/protocols/pure/v1/transformation/pureGraph/to/V1_PersistenceBuilder.ts",
|
|
73
71
|
"./src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLPersistence_ProtocolHelper.ts",
|
|
@@ -79,9 +77,7 @@
|
|
|
79
77
|
"src/**/*.json"
|
|
80
78
|
],
|
|
81
79
|
"exclude": [
|
|
82
|
-
"src/**/__tests__
|
|
83
|
-
"src/**/
|
|
84
|
-
"src/**/__mocks__/**/*.ts",
|
|
85
|
-
"src/**/__mocks__/**/*.tsx"
|
|
80
|
+
"src/**/__tests__/**/*.*",
|
|
81
|
+
"src/**/__mocks__/**/*.*"
|
|
86
82
|
]
|
|
87
83
|
}
|
package/tsconfig.package.json
CHANGED
|
@@ -12,14 +12,11 @@
|
|
|
12
12
|
"declarationMap": true,
|
|
13
13
|
"sourceMap": true,
|
|
14
14
|
"target": "esnext",
|
|
15
|
-
"module": "
|
|
15
|
+
"module": "nodenext",
|
|
16
16
|
"skipLibCheck": true,
|
|
17
|
-
"moduleResolution": "node",
|
|
18
17
|
"resolveJsonModule": true,
|
|
19
18
|
"isolatedModules": true,
|
|
20
19
|
"importsNotUsedAsValues": "error",
|
|
21
|
-
"esModuleInterop": true,
|
|
22
|
-
"allowSyntheticDefaultImports": true,
|
|
23
20
|
"strict": true,
|
|
24
21
|
"noImplicitOverride": true,
|
|
25
22
|
"noUncheckedIndexedAccess": true,
|