@finos/legend-extension-dsl-persistence 0.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 (178) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +3 -0
  3. package/lib/DSLPersistence_Extension.d.ts +22 -0
  4. package/lib/DSLPersistence_Extension.d.ts.map +1 -0
  5. package/lib/DSLPersistence_Extension.js +31 -0
  6. package/lib/DSLPersistence_Extension.js.map +1 -0
  7. package/lib/components/studio/DSLPersistence_LegendStudioPlugin.d.ts +27 -0
  8. package/lib/components/studio/DSLPersistence_LegendStudioPlugin.d.ts.map +1 -0
  9. package/lib/components/studio/DSLPersistence_LegendStudioPlugin.js +84 -0
  10. package/lib/components/studio/DSLPersistence_LegendStudioPlugin.js.map +1 -0
  11. package/lib/graph/DSLPersistence_PureGraphPlugin.d.ts +22 -0
  12. package/lib/graph/DSLPersistence_PureGraphPlugin.d.ts.map +1 -0
  13. package/lib/graph/DSLPersistence_PureGraphPlugin.js +27 -0
  14. package/lib/graph/DSLPersistence_PureGraphPlugin.js.map +1 -0
  15. package/lib/graphManager/DSLPersistence_GraphManagerHelper.d.ts +19 -0
  16. package/lib/graphManager/DSLPersistence_GraphManagerHelper.d.ts.map +1 -0
  17. package/lib/graphManager/DSLPersistence_GraphManagerHelper.js +18 -0
  18. package/lib/graphManager/DSLPersistence_GraphManagerHelper.js.map +1 -0
  19. package/lib/graphManager/DSLPersistence_PureGraphManagerPlugin.d.ts +24 -0
  20. package/lib/graphManager/DSLPersistence_PureGraphManagerPlugin.d.ts.map +1 -0
  21. package/lib/graphManager/DSLPersistence_PureGraphManagerPlugin.js +53 -0
  22. package/lib/graphManager/DSLPersistence_PureGraphManagerPlugin.js.map +1 -0
  23. package/lib/graphManager/action/changeDetection/DSLPersistence_ObserverHelper.d.ts +18 -0
  24. package/lib/graphManager/action/changeDetection/DSLPersistence_ObserverHelper.d.ts.map +1 -0
  25. package/lib/graphManager/action/changeDetection/DSLPersistence_ObserverHelper.js +30 -0
  26. package/lib/graphManager/action/changeDetection/DSLPersistence_ObserverHelper.js.map +1 -0
  27. package/lib/index.css +17 -0
  28. package/lib/index.css.map +1 -0
  29. package/lib/index.d.ts +18 -0
  30. package/lib/index.d.ts.map +1 -0
  31. package/lib/index.js +18 -0
  32. package/lib/index.js.map +1 -0
  33. package/lib/models/DSLPersistence_ModelUtils.d.ts +52 -0
  34. package/lib/models/DSLPersistence_ModelUtils.d.ts.map +1 -0
  35. package/lib/models/DSLPersistence_ModelUtils.js +65 -0
  36. package/lib/models/DSLPersistence_ModelUtils.js.map +1 -0
  37. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Auditing.d.ts +27 -0
  38. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Auditing.d.ts.map +1 -0
  39. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Auditing.js +34 -0
  40. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Auditing.js.map +1 -0
  41. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_DeduplicationStrategy.d.ts +34 -0
  42. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_DeduplicationStrategy.d.ts.map +1 -0
  43. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_DeduplicationStrategy.js +50 -0
  44. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_DeduplicationStrategy.js.map +1 -0
  45. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode.d.ts +57 -0
  46. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode.d.ts.map +1 -0
  47. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode.js +98 -0
  48. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode.js.map +1 -0
  49. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_MergeStrategy.d.ts +28 -0
  50. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_MergeStrategy.d.ts.map +1 -0
  51. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_MergeStrategy.js +36 -0
  52. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_MergeStrategy.js.map +1 -0
  53. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning.d.ts +58 -0
  54. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning.d.ts.map +1 -0
  55. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning.js +97 -0
  56. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning.js.map +1 -0
  57. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Notifier.d.ts +32 -0
  58. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Notifier.d.ts.map +1 -0
  59. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Notifier.js +44 -0
  60. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Notifier.js.map +1 -0
  61. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.d.ts +30 -0
  62. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.d.ts.map +1 -0
  63. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.js +39 -0
  64. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.js.map +1 -0
  65. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister.d.ts +33 -0
  66. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister.d.ts.map +1 -0
  67. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister.js +42 -0
  68. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister.js.map +1 -0
  69. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Sink.d.ts +30 -0
  70. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Sink.d.ts.map +1 -0
  71. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Sink.js +40 -0
  72. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Sink.js.map +1 -0
  73. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape.d.ts +46 -0
  74. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape.d.ts.map +1 -0
  75. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape.js +68 -0
  76. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape.js.map +1 -0
  77. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Trigger.d.ts +31 -0
  78. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Trigger.d.ts.map +1 -0
  79. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Trigger.js +42 -0
  80. package/lib/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Trigger.js.map +1 -0
  81. package/lib/models/protocols/pure/DSLPersistence_PureProtocolProcessorPlugin.d.ts +26 -0
  82. package/lib/models/protocols/pure/DSLPersistence_PureProtocolProcessorPlugin.d.ts.map +1 -0
  83. package/lib/models/protocols/pure/DSLPersistence_PureProtocolProcessorPlugin.js +90 -0
  84. package/lib/models/protocols/pure/DSLPersistence_PureProtocolProcessorPlugin.js.map +1 -0
  85. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Auditing.d.ts +27 -0
  86. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Auditing.d.ts.map +1 -0
  87. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Auditing.js +34 -0
  88. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Auditing.js.map +1 -0
  89. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy.d.ts +34 -0
  90. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy.d.ts.map +1 -0
  91. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy.js +50 -0
  92. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy.js.map +1 -0
  93. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_IngestMode.d.ts +57 -0
  94. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_IngestMode.d.ts.map +1 -0
  95. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_IngestMode.js +98 -0
  96. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_IngestMode.js.map +1 -0
  97. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy.d.ts +28 -0
  98. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy.d.ts.map +1 -0
  99. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy.js +36 -0
  100. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy.js.map +1 -0
  101. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Milestoning.d.ts +58 -0
  102. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Milestoning.d.ts.map +1 -0
  103. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Milestoning.js +97 -0
  104. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Milestoning.js.map +1 -0
  105. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Notifier.d.ts +32 -0
  106. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Notifier.d.ts.map +1 -0
  107. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Notifier.js +44 -0
  108. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Notifier.js.map +1 -0
  109. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persistence.d.ts +30 -0
  110. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persistence.d.ts.map +1 -0
  111. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persistence.js +39 -0
  112. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persistence.js.map +1 -0
  113. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persister.d.ts +33 -0
  114. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persister.d.ts.map +1 -0
  115. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persister.js +42 -0
  116. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persister.js.map +1 -0
  117. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Sink.d.ts +30 -0
  118. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Sink.d.ts.map +1 -0
  119. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Sink.js +40 -0
  120. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Sink.js.map +1 -0
  121. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_TargetShape.d.ts +45 -0
  122. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_TargetShape.d.ts.map +1 -0
  123. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_TargetShape.js +68 -0
  124. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_TargetShape.js.map +1 -0
  125. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Trigger.d.ts +31 -0
  126. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Trigger.d.ts.map +1 -0
  127. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Trigger.js +42 -0
  128. package/lib/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Trigger.js.map +1 -0
  129. package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_PersistenceTransformer.d.ts +98 -0
  130. package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_PersistenceTransformer.d.ts.map +1 -0
  131. package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_PersistenceTransformer.js +343 -0
  132. package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_PersistenceTransformer.js.map +1 -0
  133. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_PersistenceBuilder.d.ts +101 -0
  134. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_PersistenceBuilder.d.ts.map +1 -0
  135. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_PersistenceBuilder.js +347 -0
  136. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_PersistenceBuilder.js.map +1 -0
  137. package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLPersistence_ProtocolHelper.d.ts +24 -0
  138. package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLPersistence_ProtocolHelper.d.ts.map +1 -0
  139. package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLPersistence_ProtocolHelper.js +565 -0
  140. package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLPersistence_ProtocolHelper.js.map +1 -0
  141. package/lib/package.json +77 -0
  142. package/package.json +77 -0
  143. package/src/DSLPersistence_Extension.ts +36 -0
  144. package/src/components/studio/DSLPersistence_LegendStudioPlugin.tsx +120 -0
  145. package/src/graph/DSLPersistence_PureGraphPlugin.ts +30 -0
  146. package/src/graphManager/DSLPersistence_GraphManagerHelper.ts +25 -0
  147. package/src/graphManager/DSLPersistence_PureGraphManagerPlugin.ts +68 -0
  148. package/src/graphManager/action/changeDetection/DSLPersistence_ObserverHelper.ts +39 -0
  149. package/src/index.ts +18 -0
  150. package/src/models/DSLPersistence_ModelUtils.ts +76 -0
  151. package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Auditing.ts +39 -0
  152. package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_DeduplicationStrategy.ts +70 -0
  153. package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode.ts +123 -0
  154. package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_MergeStrategy.ts +44 -0
  155. package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning.ts +136 -0
  156. package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Notifier.ts +52 -0
  157. package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.ts +52 -0
  158. package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister.ts +51 -0
  159. package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Sink.ts +51 -0
  160. package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape.ts +78 -0
  161. package/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Trigger.ts +47 -0
  162. package/src/models/protocols/pure/DSLPersistence_PureProtocolProcessorPlugin.ts +138 -0
  163. package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Auditing.ts +39 -0
  164. package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy.ts +70 -0
  165. package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_IngestMode.ts +123 -0
  166. package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy.ts +47 -0
  167. package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Milestoning.ts +136 -0
  168. package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Notifier.ts +52 -0
  169. package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persistence.ts +50 -0
  170. package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persister.ts +51 -0
  171. package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Sink.ts +47 -0
  172. package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_TargetShape.ts +77 -0
  173. package/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Trigger.ts +47 -0
  174. package/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_PersistenceTransformer.ts +604 -0
  175. package/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_PersistenceBuilder.ts +616 -0
  176. package/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLPersistence_ProtocolHelper.ts +971 -0
  177. package/tsconfig.json +85 -0
  178. package/tsconfig.package.json +41 -0
@@ -0,0 +1,101 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { type V1_Auditing } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Auditing';
17
+ import { type V1_DeduplicationStrategy } from '../../../model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy';
18
+ import { type V1_IngestMode } from '../../../model/packageableElements/persistence/V1_DSLPersistence_IngestMode';
19
+ import { type V1_MergeStrategy } from '../../../model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy';
20
+ import { type V1_TransactionMilestoning, type V1_ValidityDerivation, type V1_ValidityMilestoning } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Milestoning';
21
+ import { type V1_Notifier, type V1_Notifyee } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Notifier';
22
+ import type { V1_Persistence } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Persistence';
23
+ import { type V1_Persister } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Persister';
24
+ import { V1_ObjectStorageSink, V1_RelationalSink, type V1_Sink } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Sink';
25
+ import { V1_FlatTarget, V1_MultiFlatTarget, type V1_MultiFlatTargetPart, type V1_TargetShape, V1_TransactionScope } from '../../../model/packageableElements/persistence/V1_DSLPersistence_TargetShape';
26
+ import { type V1_Trigger } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Trigger';
27
+ import { type Auditing } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Auditing';
28
+ import { type DeduplicationStrategy } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_DeduplicationStrategy';
29
+ import { type IngestMode } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode';
30
+ import { type MergeStrategy } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_MergeStrategy';
31
+ import { type TransactionMilestoning, type ValidityDerivation, type ValidityMilestoning } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning';
32
+ import { Notifier, type Notifyee } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Notifier';
33
+ import { type Persister } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister';
34
+ import { ObjectStorageSink, RelationalSink, type Sink } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Sink';
35
+ import { FlatTarget, MultiFlatTarget, MultiFlatTargetPart, type TargetShape, TransactionScope } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape';
36
+ import { type Trigger } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Trigger';
37
+ import { type Connection, type V1_Connection, type V1_GraphBuilderContext } from '@finos/legend-graph';
38
+ /**********
39
+ * trigger
40
+ **********/
41
+ export declare const V1_buildTrigger: (protocol: V1_Trigger, context: V1_GraphBuilderContext) => Trigger;
42
+ /**********
43
+ * connection
44
+ **********/
45
+ export declare const V1_buildConnection: (protocol: V1_Connection, context: V1_GraphBuilderContext) => Connection;
46
+ /**********
47
+ * sink
48
+ **********/
49
+ export declare const V1_buildRelationalSink: (protocol: V1_RelationalSink, context: V1_GraphBuilderContext) => RelationalSink;
50
+ export declare const V1_buildObjectStorageSink: (protocol: V1_ObjectStorageSink, context: V1_GraphBuilderContext) => ObjectStorageSink;
51
+ export declare const V1_buildSink: (protocol: V1_Sink, context: V1_GraphBuilderContext) => Sink;
52
+ /**********
53
+ * auditing
54
+ **********/
55
+ export declare const V1_buildAuditing: (protocol: V1_Auditing, context: V1_GraphBuilderContext) => Auditing;
56
+ /**********
57
+ * merge strategy
58
+ **********/
59
+ export declare const V1_buildMergeStrategy: (protocol: V1_MergeStrategy, context: V1_GraphBuilderContext) => MergeStrategy;
60
+ /**********
61
+ * transaction milestoning
62
+ **********/
63
+ export declare const V1_buildTransactionMilestoning: (protocol: V1_TransactionMilestoning, context: V1_GraphBuilderContext) => TransactionMilestoning;
64
+ /**********
65
+ * validity derivation
66
+ **********/
67
+ export declare const V1_buildValidityDerivation: (protocol: V1_ValidityDerivation, context: V1_GraphBuilderContext) => ValidityDerivation;
68
+ /**********
69
+ * validity milestoning
70
+ **********/
71
+ export declare const V1_buildValidityMilestoning: (protocol: V1_ValidityMilestoning, context: V1_GraphBuilderContext) => ValidityMilestoning;
72
+ /**********
73
+ * ingest mode
74
+ **********/
75
+ export declare const V1_buildIngestMode: (protocol: V1_IngestMode, context: V1_GraphBuilderContext) => IngestMode;
76
+ /**********
77
+ * deduplication strategy
78
+ **********/
79
+ export declare const V1_buildDeduplicationStrategy: (protocol: V1_DeduplicationStrategy, context: V1_GraphBuilderContext) => DeduplicationStrategy;
80
+ /**********
81
+ * target shape
82
+ **********/
83
+ export declare const V1_buildFlatTarget: (protocol: V1_FlatTarget, modelClass: string | undefined, context: V1_GraphBuilderContext) => FlatTarget;
84
+ export declare const V1_buildTransactionScope: (protocol: V1_TransactionScope, context: V1_GraphBuilderContext) => TransactionScope;
85
+ export declare const V1_buildMultiFlatTargetPart: (protocol: V1_MultiFlatTargetPart, context: V1_GraphBuilderContext) => MultiFlatTargetPart;
86
+ export declare const V1_buildMultiFlatTarget: (protocol: V1_MultiFlatTarget, context: V1_GraphBuilderContext) => MultiFlatTarget;
87
+ export declare const V1_buildTargetShape: (protocol: V1_TargetShape, context: V1_GraphBuilderContext) => TargetShape;
88
+ /**********
89
+ * persister
90
+ **********/
91
+ export declare const V1_buildPersister: (protocol: V1_Persister, context: V1_GraphBuilderContext) => Persister;
92
+ /**********
93
+ * notifier
94
+ **********/
95
+ export declare const V1_buildNotifyee: (protocol: V1_Notifyee, context: V1_GraphBuilderContext) => Notifyee;
96
+ export declare const V1_buildNotifier: (protocol: V1_Notifier, context: V1_GraphBuilderContext) => Notifier;
97
+ /**********
98
+ * persistence
99
+ **********/
100
+ export declare const V1_buildPersistence: (protocol: V1_Persistence, context: V1_GraphBuilderContext) => void;
101
+ //# sourceMappingURL=V1_PersistenceBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"V1_PersistenceBuilder.d.ts","sourceRoot":"","sources":["../../../../../../../../src/models/protocols/pure/v1/transformation/pureGraph/to/V1_PersistenceB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sBAAsB,KAC9B,mBAeF,CAAC;AAEF;;YAEY;AAEZ,eAAO,MAAM,kBAAkB,aACnB,aAAa,WACd,sBAAsB,KAC9B,UAgEF,CAAC;AAEF;;YAEY;AAEZ,eAAO,MAAM,6BAA6B,aAC9B,wBAAwB,WACzB,sBAAsB,KAC9B,qBAkBF,CAAC;AAEF;;YAEY;AAEZ,eAAO,MAAM,kBAAkB,aACnB,aAAa,cACX,MAAM,GAAG,SAAS,WACrB,sBAAsB,KAC9B,UAaF,CAAC;AAEF,eAAO,MAAM,wBAAwB,aACzB,mBAAmB,WACpB,sBAAsB,KAC9B,gBAmBF,CAAC;AAEF,eAAO,MAAM,2BAA2B,aAC5B,sBAAsB,WACvB,sBAAsB,KAC9B,mBAUF,CAAC;AAEF,eAAO,MAAM,uBAAuB,aACxB,kBAAkB,WACnB,sBAAsB,KAC9B,eAWF,CAAC;AAEF,eAAO,MAAM,mBAAmB,aACpB,cAAc,WACf,sBAAsB,KAC9B,WAOF,CAAC;AAEF;;YAEY;AAEZ,eAAO,MAAM,iBAAiB,aAClB,YAAY,WACb,sBAAsB,KAC9B,SAaF,CAAC;AAEF;;YAEY;AAEZ,eAAO,MAAM,gBAAgB,aACjB,WAAW,WACZ,sBAAsB,KAC9B,QAWF,CAAC;AAEF,eAAO,MAAM,gBAAgB,aACjB,WAAW,WACZ,sBAAsB,KAC9B,QAMF,CAAC;AAEF;;YAEY;AAEZ,eAAO,MAAM,mBAAmB,aACpB,cAAc,WACf,sBAAsB,KAC9B,IAWF,CAAC"}
@@ -0,0 +1,347 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { V1_DateTimeAuditing, V1_NoAuditing, } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Auditing';
17
+ import { V1_AnyVersionDeduplicationStrategy, V1_DuplicateCountDeduplicationStrategy, V1_MaxVersionDeduplicationStrategy, V1_NoDeduplicationStrategy, } from '../../../model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy';
18
+ import { V1_AppendOnly, V1_BitemporalDelta, V1_BitemporalSnapshot, V1_NontemporalDelta, V1_NontemporalSnapshot, V1_UnitemporalDelta, V1_UnitemporalSnapshot, } from '../../../model/packageableElements/persistence/V1_DSLPersistence_IngestMode';
19
+ import { V1_DeleteIndicatorMergeStrategy, V1_NoDeletesMergeStrategy, } from '../../../model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy';
20
+ import { V1_BatchIdAndDateTimeTransactionMilestoning, V1_BatchIdTransactionMilestoning, V1_DateTimeTransactionMilestoning, V1_DateTimeValidityMilestoning, V1_SourceSpecifiesFromAndThruDateTime, V1_SourceSpecifiesFromDateTime, } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Milestoning';
21
+ import { V1_EmailNotifyee, V1_PagerDutyNotifyee, } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Notifier';
22
+ import { V1_BatchPersister, V1_StreamingPersister, } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Persister';
23
+ import { V1_ObjectStorageSink, V1_RelationalSink, } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Sink';
24
+ import { V1_FlatTarget, V1_MultiFlatTarget, V1_TransactionScope, } from '../../../model/packageableElements/persistence/V1_DSLPersistence_TargetShape';
25
+ import { V1_CronTrigger, V1_ManualTrigger, } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Trigger';
26
+ import { DateTimeAuditing, NoAuditing, } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Auditing';
27
+ import { AnyVersionDeduplicationStrategy, DuplicateCountDeduplicationStrategy, MaxVersionDeduplicationStrategy, NoDeduplicationStrategy, } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_DeduplicationStrategy';
28
+ import { AppendOnly, BitemporalDelta, BitemporalSnapshot, NontemporalDelta, NontemporalSnapshot, UnitemporalDelta, UnitemporalSnapshot, } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode';
29
+ import { DeleteIndicatorMergeStrategy, NoDeletesMergeStrategy, } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_MergeStrategy';
30
+ import { BatchIdAndDateTimeTransactionMilestoning, BatchIdTransactionMilestoning, DateTimeTransactionMilestoning, DateTimeValidityMilestoning, SourceSpecifiesFromAndThruDateTime, SourceSpecifiesFromDateTime, } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning';
31
+ import { EmailNotifyee, Notifier, PagerDutyNotifyee, } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Notifier';
32
+ import { BatchPersister, StreamingPersister, } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister';
33
+ import { ObjectStorageSink, RelationalSink, } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Sink';
34
+ import { FlatTarget, MultiFlatTarget, MultiFlatTargetPart, TransactionScope, } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape';
35
+ import { CronTrigger, ManualTrigger, } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Trigger';
36
+ import { getPersistence } from '../../../../../../../graphManager/DSLPersistence_GraphManagerHelper';
37
+ import { V1_ProtocolToMetaModelConnectionBuilder, } from '@finos/legend-graph';
38
+ import { guaranteeNonEmptyString, UnsupportedOperationError, } from '@finos/legend-shared';
39
+ /**********
40
+ * trigger
41
+ **********/
42
+ export const V1_buildTrigger = (protocol, context) => {
43
+ if (protocol instanceof V1_CronTrigger) {
44
+ const trigger = new CronTrigger();
45
+ trigger.minutes = protocol.minutes;
46
+ trigger.hours = protocol.hours;
47
+ trigger.dayOfMonth = protocol.dayOfMonth;
48
+ trigger.month = protocol.month;
49
+ trigger.dayOfWeek = protocol.dayOfWeek;
50
+ return new CronTrigger();
51
+ }
52
+ else if (protocol instanceof V1_ManualTrigger) {
53
+ return new ManualTrigger();
54
+ }
55
+ throw new UnsupportedOperationError(`Can't build trigger`, protocol);
56
+ };
57
+ /**********
58
+ * connection
59
+ **********/
60
+ export const V1_buildConnection = (protocol, context) => protocol.accept_ConnectionVisitor(new V1_ProtocolToMetaModelConnectionBuilder(context));
61
+ /**********
62
+ * sink
63
+ **********/
64
+ export const V1_buildRelationalSink = (protocol, context) => {
65
+ const sink = new RelationalSink();
66
+ if (protocol.connection) {
67
+ sink.connection = V1_buildConnection(protocol.connection, context);
68
+ }
69
+ return sink;
70
+ };
71
+ export const V1_buildObjectStorageSink = (protocol, context) => {
72
+ const sink = new ObjectStorageSink();
73
+ sink.connection = V1_buildConnection(protocol.connection, context);
74
+ sink.binding = context.resolveElement(protocol.binding, false);
75
+ return sink;
76
+ };
77
+ export const V1_buildSink = (protocol, context) => {
78
+ if (protocol instanceof V1_RelationalSink) {
79
+ return V1_buildRelationalSink(protocol, context);
80
+ }
81
+ else if (protocol instanceof V1_ObjectStorageSink) {
82
+ return V1_buildObjectStorageSink(protocol, context);
83
+ }
84
+ throw new UnsupportedOperationError(`Can't build sink`, protocol);
85
+ };
86
+ /**********
87
+ * auditing
88
+ **********/
89
+ export const V1_buildAuditing = (protocol, context) => {
90
+ if (protocol instanceof V1_NoAuditing) {
91
+ return new NoAuditing();
92
+ }
93
+ else if (protocol instanceof V1_DateTimeAuditing) {
94
+ const auditing = new DateTimeAuditing();
95
+ auditing.dateTimeField = protocol.dateTimeField;
96
+ return auditing;
97
+ }
98
+ throw new UnsupportedOperationError(`Can't build auditing mode`, protocol);
99
+ };
100
+ /**********
101
+ * merge strategy
102
+ **********/
103
+ export const V1_buildMergeStrategy = (protocol, context) => {
104
+ if (protocol instanceof V1_NoDeletesMergeStrategy) {
105
+ return new NoDeletesMergeStrategy();
106
+ }
107
+ else if (protocol instanceof V1_DeleteIndicatorMergeStrategy) {
108
+ const strategy = new DeleteIndicatorMergeStrategy();
109
+ strategy.deleteField = protocol.deleteField;
110
+ strategy.deleteValues = protocol.deleteValues;
111
+ return strategy;
112
+ }
113
+ throw new UnsupportedOperationError(`Can't build merge strategy`, protocol);
114
+ };
115
+ /**********
116
+ * transaction milestoning
117
+ **********/
118
+ export const V1_buildTransactionMilestoning = (protocol, context) => {
119
+ if (protocol instanceof V1_BatchIdTransactionMilestoning) {
120
+ const milestoning = new BatchIdTransactionMilestoning();
121
+ milestoning.batchIdInName = protocol.batchIdInName;
122
+ milestoning.batchIdOutName = protocol.batchIdOutName;
123
+ return milestoning;
124
+ }
125
+ else if (protocol instanceof V1_DateTimeTransactionMilestoning) {
126
+ const milestoning = new DateTimeTransactionMilestoning();
127
+ milestoning.dateTimeInName = protocol.dateTimeInName;
128
+ milestoning.dateTimeOutName = protocol.dateTimeOutName;
129
+ return milestoning;
130
+ }
131
+ else if (protocol instanceof V1_BatchIdAndDateTimeTransactionMilestoning) {
132
+ const milestoning = new BatchIdAndDateTimeTransactionMilestoning();
133
+ milestoning.batchIdInName = protocol.batchIdInName;
134
+ milestoning.batchIdOutName = protocol.batchIdOutName;
135
+ milestoning.dateTimeInName = protocol.dateTimeInName;
136
+ milestoning.dateTimeOutName = protocol.dateTimeOutName;
137
+ return milestoning;
138
+ }
139
+ throw new UnsupportedOperationError(`Can't build transaction milestoning mode`, protocol);
140
+ };
141
+ /**********
142
+ * validity derivation
143
+ **********/
144
+ export const V1_buildValidityDerivation = (protocol, context) => {
145
+ if (protocol instanceof V1_SourceSpecifiesFromDateTime) {
146
+ const derivation = new SourceSpecifiesFromDateTime();
147
+ derivation.sourceDateTimeFromField = protocol.sourceDateTimeFromField;
148
+ return derivation;
149
+ }
150
+ else if (protocol instanceof V1_SourceSpecifiesFromAndThruDateTime) {
151
+ const derivation = new SourceSpecifiesFromAndThruDateTime();
152
+ derivation.sourceDateTimeFromField = protocol.sourceDateTimeFromField;
153
+ derivation.sourceDateTimeThruField = protocol.sourceDateTimeThruField;
154
+ return derivation;
155
+ }
156
+ throw new UnsupportedOperationError(`Can't build validity derivation mode`, protocol);
157
+ };
158
+ /**********
159
+ * validity milestoning
160
+ **********/
161
+ export const V1_buildValidityMilestoning = (protocol, context) => {
162
+ if (protocol instanceof V1_DateTimeValidityMilestoning) {
163
+ const milestoning = new DateTimeValidityMilestoning();
164
+ milestoning.dateTimeFromName = protocol.dateTimeFromName;
165
+ milestoning.dateTimeThruName = protocol.dateTimeThruName;
166
+ milestoning.derivation = V1_buildValidityDerivation(protocol.derivation, context);
167
+ return milestoning;
168
+ }
169
+ throw new UnsupportedOperationError(`Can't build validity milestoning mode`, protocol);
170
+ };
171
+ /**********
172
+ * ingest mode
173
+ **********/
174
+ export const V1_buildIngestMode = (protocol, context) => {
175
+ if (protocol instanceof V1_NontemporalSnapshot) {
176
+ const ingestMode = new NontemporalSnapshot();
177
+ ingestMode.auditing = V1_buildAuditing(protocol.auditing, context);
178
+ return ingestMode;
179
+ }
180
+ else if (protocol instanceof V1_UnitemporalSnapshot) {
181
+ const ingestMode = new UnitemporalSnapshot();
182
+ ingestMode.transactionMilestoning = V1_buildTransactionMilestoning(protocol.transactionMilestoning, context);
183
+ return ingestMode;
184
+ }
185
+ else if (protocol instanceof V1_BitemporalSnapshot) {
186
+ const ingestMode = new BitemporalSnapshot();
187
+ ingestMode.transactionMilestoning = V1_buildTransactionMilestoning(protocol.transactionMilestoning, context);
188
+ ingestMode.validityMilestoning = V1_buildValidityMilestoning(protocol.validityMilestoning, context);
189
+ return ingestMode;
190
+ }
191
+ else if (protocol instanceof V1_NontemporalDelta) {
192
+ const ingestMode = new NontemporalDelta();
193
+ ingestMode.mergeStrategy = V1_buildMergeStrategy(protocol.mergeStrategy, context);
194
+ ingestMode.auditing = V1_buildAuditing(protocol.auditing, context);
195
+ return ingestMode;
196
+ }
197
+ else if (protocol instanceof V1_UnitemporalDelta) {
198
+ const ingestMode = new UnitemporalDelta();
199
+ ingestMode.mergeStrategy = V1_buildMergeStrategy(protocol.mergeStrategy, context);
200
+ ingestMode.transactionMilestoning = V1_buildTransactionMilestoning(protocol.transactionMilestoning, context);
201
+ return ingestMode;
202
+ }
203
+ else if (protocol instanceof V1_BitemporalDelta) {
204
+ const ingestMode = new BitemporalDelta();
205
+ ingestMode.mergeStrategy = V1_buildMergeStrategy(protocol.mergeStrategy, context);
206
+ ingestMode.transactionMilestoning = V1_buildTransactionMilestoning(protocol.transactionMilestoning, context);
207
+ ingestMode.validityMilestoning = V1_buildValidityMilestoning(protocol.validityMilestoning, context);
208
+ return ingestMode;
209
+ }
210
+ else if (protocol instanceof V1_AppendOnly) {
211
+ const ingestMode = new AppendOnly();
212
+ ingestMode.auditing = V1_buildAuditing(protocol.auditing, context);
213
+ ingestMode.filterDuplicates = protocol.filterDuplicates;
214
+ return ingestMode;
215
+ }
216
+ throw new UnsupportedOperationError(`Can't build ingest mode`, protocol);
217
+ };
218
+ /**********
219
+ * deduplication strategy
220
+ **********/
221
+ export const V1_buildDeduplicationStrategy = (protocol, context) => {
222
+ if (protocol instanceof V1_NoDeduplicationStrategy) {
223
+ return new NoDeduplicationStrategy();
224
+ }
225
+ else if (protocol instanceof V1_AnyVersionDeduplicationStrategy) {
226
+ return new AnyVersionDeduplicationStrategy();
227
+ }
228
+ else if (protocol instanceof V1_MaxVersionDeduplicationStrategy) {
229
+ const strategy = new MaxVersionDeduplicationStrategy();
230
+ strategy.versionField = protocol.versionField;
231
+ return strategy;
232
+ }
233
+ else if (protocol instanceof V1_DuplicateCountDeduplicationStrategy) {
234
+ const strategy = new DuplicateCountDeduplicationStrategy();
235
+ strategy.duplicateCountName = protocol.duplicateCountName;
236
+ return strategy;
237
+ }
238
+ throw new UnsupportedOperationError(`Can't build deduplication strategy`, protocol);
239
+ };
240
+ /**********
241
+ * target shape
242
+ **********/
243
+ export const V1_buildFlatTarget = (protocol, modelClass, context) => {
244
+ const targetShape = new FlatTarget();
245
+ if (modelClass) {
246
+ targetShape.modelClass = context.resolveClass(modelClass);
247
+ }
248
+ targetShape.targetName = guaranteeNonEmptyString(protocol.targetName);
249
+ targetShape.partitionFields = protocol.partitionFields;
250
+ targetShape.deduplicationStrategy = V1_buildDeduplicationStrategy(protocol.deduplicationStrategy, context);
251
+ return targetShape;
252
+ };
253
+ export const V1_buildTransactionScope = (protocol, context) => {
254
+ if (protocol === V1_TransactionScope.SINGLE_TARGET) {
255
+ return TransactionScope.SINGLE_TARGET;
256
+ }
257
+ else {
258
+ return TransactionScope.ALL_TARGETS;
259
+ }
260
+ //note: ledav -- would prefer to write the below to be defensive when a new
261
+ // enum member is added, but lint complains
262
+ /*
263
+ } else if (protocol === V1_TransactionScope.ALL_TARGETS) {
264
+ return TransactionScope.ALL_TARGETS;
265
+ }
266
+ throw new UnsupportedOperationError(
267
+ `Can't build transaction scope`,
268
+ protocol,
269
+ );
270
+ */
271
+ };
272
+ export const V1_buildMultiFlatTargetPart = (protocol, context) => {
273
+ const part = new MultiFlatTargetPart();
274
+ part.modelProperty = protocol.modelProperty;
275
+ part.targetName = protocol.targetName;
276
+ part.partitionFields = protocol.partitionFields;
277
+ part.deduplicationStrategy = V1_buildDeduplicationStrategy(protocol.deduplicationStrategy, context);
278
+ return part;
279
+ };
280
+ export const V1_buildMultiFlatTarget = (protocol, context) => {
281
+ const targetShape = new MultiFlatTarget();
282
+ targetShape.modelClass = context.resolveClass(protocol.modelClass);
283
+ targetShape.transactionScope = V1_buildTransactionScope(protocol.transactionScope, context);
284
+ targetShape.parts = protocol.parts.map((p) => V1_buildMultiFlatTargetPart(p, context));
285
+ return targetShape;
286
+ };
287
+ export const V1_buildTargetShape = (protocol, context) => {
288
+ if (protocol instanceof V1_FlatTarget) {
289
+ return V1_buildFlatTarget(protocol, protocol.modelClass, context);
290
+ }
291
+ else if (protocol instanceof V1_MultiFlatTarget) {
292
+ return V1_buildMultiFlatTarget(protocol, context);
293
+ }
294
+ throw new UnsupportedOperationError(`Can't build target shape`, protocol);
295
+ };
296
+ /**********
297
+ * persister
298
+ **********/
299
+ export const V1_buildPersister = (protocol, context) => {
300
+ if (protocol instanceof V1_StreamingPersister) {
301
+ const persister = new StreamingPersister();
302
+ persister.sink = V1_buildSink(protocol.sink, context);
303
+ return persister;
304
+ }
305
+ else if (protocol instanceof V1_BatchPersister) {
306
+ const persister = new BatchPersister();
307
+ persister.sink = V1_buildSink(protocol.sink, context);
308
+ persister.ingestMode = V1_buildIngestMode(protocol.ingestMode, context);
309
+ persister.targetShape = V1_buildTargetShape(protocol.targetShape, context);
310
+ return persister;
311
+ }
312
+ throw new UnsupportedOperationError(`Can't build persister`, protocol);
313
+ };
314
+ /**********
315
+ * notifier
316
+ **********/
317
+ export const V1_buildNotifyee = (protocol, context) => {
318
+ if (protocol instanceof V1_EmailNotifyee) {
319
+ const notifyee = new EmailNotifyee();
320
+ notifyee.address = protocol.address;
321
+ return notifyee;
322
+ }
323
+ else if (protocol instanceof V1_PagerDutyNotifyee) {
324
+ const notifyee = new PagerDutyNotifyee();
325
+ notifyee.url = protocol.url;
326
+ return notifyee;
327
+ }
328
+ throw new UnsupportedOperationError(`Can't build notifier`, protocol);
329
+ };
330
+ export const V1_buildNotifier = (protocol, context) => {
331
+ const notifier = new Notifier();
332
+ notifier.notifyees = protocol.notifyees.map((n) => V1_buildNotifyee(n, context));
333
+ return notifier;
334
+ };
335
+ /**********
336
+ * persistence
337
+ **********/
338
+ export const V1_buildPersistence = (protocol, context) => {
339
+ const path = context.graph.buildPath(protocol.package, protocol.name);
340
+ const persistence = getPersistence(path, context.graph);
341
+ persistence.documentation = guaranteeNonEmptyString(protocol.documentation, `Persistence 'documentation' field is missing or empty`);
342
+ persistence.trigger = V1_buildTrigger(protocol.trigger, context);
343
+ persistence.service = context.resolveService(protocol.service);
344
+ persistence.persister = V1_buildPersister(protocol.persister, context);
345
+ persistence.notifier = V1_buildNotifier(protocol.notifier, context);
346
+ };
347
+ //# sourceMappingURL=V1_PersistenceBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"V1_PersistenceBuilder.js","sourceRoot":"","sources":["../../../../../../../../src/models/protocols/pure/v1/transformation/pureGraph/to/V1_PersistenceBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,mBAAmB,EACnB,aAAa,GACd,MAAM,2EAA2E,CAAC;AACnF,OAAO,EACL,kCAAkC,EAElC,sCAAsC,EACtC,kCAAkC,EAClC,0BAA0B,GAC3B,MAAM,wFAAwF,CAAC;AAChG,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EAErB,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,6EAA6E,CAAC;AACrF,OAAO,EACL,+BAA+B,EAE/B,yBAAyB,GAC1B,MAAM,gFAAgF,CAAC;AACxF,OAAO,EACL,2CAA2C,EAC3C,gCAAgC,EAChC,iCAAiC,EACjC,8BAA8B,EAC9B,qCAAqC,EACrC,8BAA8B,GAI/B,MAAM,8EAA8E,CAAC;AACtF,OAAO,EACL,gBAAgB,EAGhB,oBAAoB,GACrB,MAAM,2EAA2E,CAAC;AAEnF,OAAO,EACL,iBAAiB,EAEjB,qBAAqB,GACtB,MAAM,4EAA4E,CAAC;AACpF,OAAO,EACL,oBAAoB,EACpB,iBAAiB,GAElB,MAAM,uEAAuE,CAAC;AAC/E,OAAO,EACL,aAAa,EACb,kBAAkB,EAGlB,mBAAmB,GACpB,MAAM,8EAA8E,CAAC;AACtF,OAAO,EACL,cAAc,EACd,gBAAgB,GAEjB,MAAM,0EAA0E,CAAC;AAClF,OAAO,EAEL,gBAAgB,EAChB,UAAU,GACX,MAAM,iGAAiG,CAAC;AACzG,OAAO,EACL,+BAA+B,EA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gB,CAAC,CAAC,EAAE,OAAO,CAAC,CAC7B,CAAC;IACF,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAEF;;YAEY;AAEZ,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,QAAwB,EACxB,OAA+B,EACzB,EAAE;IACR,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IACtE,MAAM,WAAW,GAAG,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACxD,WAAW,CAAC,aAAa,GAAG,uBAAuB,CACjD,QAAQ,CAAC,aAAa,EACtB,uDAAuD,CACxD,CAAC;IACF,WAAW,CAAC,OAAO,GAAG,eAAe,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACjE,WAAW,CAAC,OAAO,GAAG,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC/D,WAAW,CAAC,SAAS,GAAG,iBAAiB,CAAC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACvE,WAAW,CAAC,QAAQ,GAAG,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACtE,CAAC,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { V1_Persistence } from '../../model/packageableElements/persistence/V1_DSLPersistence_Persistence';
17
+ import { type PureProtocolProcessorPlugin } from '@finos/legend-graph';
18
+ import { type ModelSchema } from 'serializr';
19
+ /**********
20
+ * persistence
21
+ **********/
22
+ export declare const V1_PERSISTENCE_ELEMENT_PROTOCOL_TYPE = "persistence";
23
+ export declare const V1_persistenceModelSchema: (plugins: PureProtocolProcessorPlugin[]) => ModelSchema<V1_Persistence>;
24
+ //# sourceMappingURL=V1_DSLPersistence_ProtocolHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"V1_DSLPersistence_ProtocolHelper.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLPersistence_ProtocolHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,2EAA2E,CAAC;AAC3G,OAAO,EACL,KAAK,2BAA2B,EAGjC,MAAM,qBAAqB,CAAC;AAQ7B,OAAO,EAKL,KAAK,WAAW,EAKjB,MAAM,WAAW,CAAC;AAw4BnB;;YAEY;AAEZ,eAAO,MAAM,oCAAoC,gBAAgB,CAAC;AAElE,eAAO,MAAM,yBAAyB,YAC3B,2BAA2B,EAAE,KACrC,YAAY,cAAc,CAmBzB,CAAC"}