@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,31 @@
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 Hashable } from '@finos/legend-shared';
17
+ export declare abstract class V1_Trigger implements Hashable {
18
+ abstract get hashCode(): string;
19
+ }
20
+ export declare class V1_ManualTrigger extends V1_Trigger implements Hashable {
21
+ get hashCode(): string;
22
+ }
23
+ export declare class V1_CronTrigger extends V1_Trigger implements Hashable {
24
+ minutes: string;
25
+ hours: string;
26
+ dayOfMonth: string;
27
+ month: string;
28
+ dayOfWeek: string;
29
+ get hashCode(): string;
30
+ }
31
+ //# sourceMappingURL=V1_DSLPersistence_Trigger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"V1_DSLPersistence_Trigger.d.ts","sourceRoot":"","sources":["../../../../../../../../src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Trigger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAEhE,8BAAsB,UAAW,YAAW,QAAQ;IAClD,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;CACjC;AAED,qBAAa,gBAAiB,SAAQ,UAAW,YAAW,QAAQ;IAClE,IAAa,QAAQ,IAAI,MAAM,CAE9B;CACF;AAED,qBAAa,cAAe,SAAQ,UAAW,YAAW,QAAQ;IAChE,OAAO,EAAG,MAAM,CAAC;IACjB,KAAK,EAAG,MAAM,CAAC;IACf,UAAU,EAAG,MAAM,CAAC;IACpB,KAAK,EAAG,MAAM,CAAC;IACf,SAAS,EAAG,MAAM,CAAC;IAEnB,IAAa,QAAQ,IAAI,MAAM,CAS9B;CACF"}
@@ -0,0 +1,42 @@
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 { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils';
17
+ import { hashArray } from '@finos/legend-shared';
18
+ export class V1_Trigger {
19
+ }
20
+ export class V1_ManualTrigger extends V1_Trigger {
21
+ get hashCode() {
22
+ return hashArray([PERSISTENCE_HASH_STRUCTURE.MANUAL_TRIGGER]);
23
+ }
24
+ }
25
+ export class V1_CronTrigger extends V1_Trigger {
26
+ minutes;
27
+ hours;
28
+ dayOfMonth;
29
+ month;
30
+ dayOfWeek;
31
+ get hashCode() {
32
+ return hashArray([
33
+ PERSISTENCE_HASH_STRUCTURE.CRON_TRIGGER,
34
+ this.minutes,
35
+ this.hours,
36
+ this.dayOfMonth,
37
+ this.month,
38
+ this.dayOfWeek,
39
+ ]);
40
+ }
41
+ }
42
+ //# sourceMappingURL=V1_DSLPersistence_Trigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"V1_DSLPersistence_Trigger.js","sourceRoot":"","sources":["../../../../../../../../src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Trigger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEhE,MAAM,OAAgB,UAAU;CAE/B;AAED,MAAM,OAAO,gBAAiB,SAAQ,UAAU;IAC9C,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC,CAAC,0BAA0B,CAAC,cAAc,CAAC,CAAC,CAAC;IAChE,CAAC;CACF;AAED,MAAM,OAAO,cAAe,SAAQ,UAAU;IAC5C,OAAO,CAAU;IACjB,KAAK,CAAU;IACf,UAAU,CAAU;IACpB,KAAK,CAAU;IACf,SAAS,CAAU;IAEnB,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,0BAA0B,CAAC,YAAY;YACvC,IAAI,CAAC,OAAO;YACZ,IAAI,CAAC,KAAK;YACV,IAAI,CAAC,UAAU;YACf,IAAI,CAAC,KAAK;YACV,IAAI,CAAC,SAAS;SACf,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,98 @@
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 Auditing } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Auditing';
17
+ import { type DeduplicationStrategy } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_DeduplicationStrategy';
18
+ import { type IngestMode } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode';
19
+ import { type MergeStrategy } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_MergeStrategy';
20
+ import { type TransactionMilestoning, type ValidityDerivation, type ValidityMilestoning } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning';
21
+ import { type Notifier, type Notifyee } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Notifier';
22
+ import type { Persistence } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence';
23
+ import { type Persister } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister';
24
+ import { ObjectStorageSink, RelationalSink, type Sink } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Sink';
25
+ import { FlatTarget, MultiFlatTarget, type MultiFlatTargetPart, type TargetShape, TransactionScope } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape';
26
+ import { type Trigger } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Trigger';
27
+ import { type V1_Auditing } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Auditing';
28
+ import { type V1_DeduplicationStrategy } from '../../../model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy';
29
+ import { type V1_IngestMode } from '../../../model/packageableElements/persistence/V1_DSLPersistence_IngestMode';
30
+ import { type V1_MergeStrategy } from '../../../model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy';
31
+ import { type V1_TransactionMilestoning, type V1_ValidityDerivation, type V1_ValidityMilestoning } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Milestoning';
32
+ import { V1_Notifier, type V1_Notifyee } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Notifier';
33
+ import { V1_Persistence } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Persistence';
34
+ import { type V1_Persister } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Persister';
35
+ import { V1_ObjectStorageSink, V1_RelationalSink, type V1_Sink } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Sink';
36
+ import { V1_FlatTarget, V1_MultiFlatTarget, V1_MultiFlatTargetPart, type V1_TargetShape, V1_TransactionScope } from '../../../model/packageableElements/persistence/V1_DSLPersistence_TargetShape';
37
+ import { type V1_Trigger } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Trigger';
38
+ import { type V1_GraphTransformerContext } from '@finos/legend-graph';
39
+ /**********
40
+ * trigger
41
+ **********/
42
+ export declare const V1_transformTrigger: (element: Trigger, context: V1_GraphTransformerContext) => V1_Trigger;
43
+ /**********
44
+ * sink
45
+ **********/
46
+ export declare const V1_transformRelationalSink: (element: RelationalSink, context: V1_GraphTransformerContext) => V1_RelationalSink;
47
+ export declare const V1_transformObjectStorageSink: (element: ObjectStorageSink, context: V1_GraphTransformerContext) => V1_ObjectStorageSink;
48
+ export declare const V1_transformSink: (element: Sink, context: V1_GraphTransformerContext) => V1_Sink;
49
+ /**********
50
+ * auditing
51
+ **********/
52
+ export declare const V1_transformAuditing: (element: Auditing, context: V1_GraphTransformerContext) => V1_Auditing;
53
+ /**********
54
+ * merge strategy
55
+ **********/
56
+ export declare const V1_transformMergeStrategy: (element: MergeStrategy, context: V1_GraphTransformerContext) => V1_MergeStrategy;
57
+ /**********
58
+ * transaction milestoning
59
+ **********/
60
+ export declare const V1_transformTransactionMilestoning: (element: TransactionMilestoning, context: V1_GraphTransformerContext) => V1_TransactionMilestoning;
61
+ /**********
62
+ * validity derivation
63
+ **********/
64
+ export declare const V1_transformValidityDerivation: (element: ValidityDerivation, context: V1_GraphTransformerContext) => V1_ValidityDerivation;
65
+ /**********
66
+ * validity milestoning
67
+ **********/
68
+ export declare const V1_transformValidityMilestoning: (element: ValidityMilestoning, context: V1_GraphTransformerContext) => V1_ValidityMilestoning;
69
+ /**********
70
+ * ingest mode
71
+ **********/
72
+ export declare const V1_transformIngestMode: (element: IngestMode, context: V1_GraphTransformerContext) => V1_IngestMode;
73
+ /**********
74
+ * deduplication strategy
75
+ **********/
76
+ export declare const V1_transformDeduplicationStrategy: (element: DeduplicationStrategy, context: V1_GraphTransformerContext) => V1_DeduplicationStrategy;
77
+ /**********
78
+ * target shape
79
+ **********/
80
+ export declare const V1_transformFlatTarget: (element: FlatTarget, context: V1_GraphTransformerContext) => V1_FlatTarget;
81
+ export declare const V1_transformTransactionScope: (element: TransactionScope, context: V1_GraphTransformerContext) => V1_TransactionScope;
82
+ export declare const V1_transformMultiFlatTargetPart: (element: MultiFlatTargetPart, context: V1_GraphTransformerContext) => V1_MultiFlatTargetPart;
83
+ export declare const V1_transformMultiFlatTarget: (element: MultiFlatTarget, context: V1_GraphTransformerContext) => V1_MultiFlatTarget;
84
+ export declare const V1_transformTargetShape: (element: TargetShape, context: V1_GraphTransformerContext) => V1_TargetShape;
85
+ /**********
86
+ * persister
87
+ **********/
88
+ export declare const V1_transformPersister: (element: Persister, context: V1_GraphTransformerContext) => V1_Persister;
89
+ /**********
90
+ * notifier
91
+ **********/
92
+ export declare const V1_transformNotifyee: (element: Notifyee, context: V1_GraphTransformerContext) => V1_Notifyee;
93
+ export declare const V1_transformNotifier: (element: Notifier, context: V1_GraphTransformerContext) => V1_Notifier;
94
+ /**********
95
+ * persistence
96
+ **********/
97
+ export declare const V1_transformPersistence: (element: Persistence, context: V1_GraphTransformerContext) => V1_Persistence;
98
+ //# sourceMappingURL=V1_PersistenceTransformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"V1_PersistenceTransformer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/models/protocols/pure/v1/transformation/pureGraph/from/V1_PersistenceTransformer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,QAAQ,EAGd,MAAM,iGAAiG,CAAC;AACzG,OAAO,EAEL,KAAK,qBAAqB,EAI3B,MAAM,8GAA8G,CAAC;AACtH,OAAO,EAIL,KAAK,UAAU,EAKhB,MAAM,mGAAmG,CAAC;AAC3G,OAAO,EAEL,KAAK,aAAa,EAEnB,MAAM,sGAAsG,CAAC;AAC9G,OAAO,EAOL,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACzB,MAAM,oGAAoG,CAAC;AAC5G,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,QAAQ,EAEd,MAAM,iGAAiG,CAAC;AACzG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oGAAoG,CAAC;AACtI,OAAO,EAEL,KAAK,SAAS,EAEf,MAAM,kGAAkG,CAAC;AAC1G,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,KAAK,IAAI,EACV,MAAM,6FAA6F,CAAC;AACrG,OAAO,EACL,UAAU,EACV,eAAe,EACf,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAChB,gBAAgB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;;YAEY;AAEZ,eAAO,MAAM,uBAAuB,YACzB,WAAW,WACX,0BAA0B,KAClC,cASF,CAAC"}
@@ -0,0 +1,343 @@
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 { DateTimeAuditing, NoAuditing, } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Auditing';
17
+ import { AnyVersionDeduplicationStrategy, DuplicateCountDeduplicationStrategy, MaxVersionDeduplicationStrategy, NoDeduplicationStrategy, } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_DeduplicationStrategy';
18
+ import { AppendOnly, BitemporalDelta, BitemporalSnapshot, NontemporalDelta, NontemporalSnapshot, UnitemporalDelta, UnitemporalSnapshot, } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode';
19
+ import { DeleteIndicatorMergeStrategy, NoDeletesMergeStrategy, } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_MergeStrategy';
20
+ import { BatchIdAndDateTimeTransactionMilestoning, BatchIdTransactionMilestoning, DateTimeTransactionMilestoning, DateTimeValidityMilestoning, SourceSpecifiesFromAndThruDateTime, SourceSpecifiesFromDateTime, } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning';
21
+ import { EmailNotifyee, PagerDutyNotifyee, } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Notifier';
22
+ import { BatchPersister, StreamingPersister, } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister';
23
+ import { ObjectStorageSink, RelationalSink, } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Sink';
24
+ import { FlatTarget, MultiFlatTarget, TransactionScope, } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape';
25
+ import { CronTrigger, ManualTrigger, } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Trigger';
26
+ import { V1_DateTimeAuditing, V1_NoAuditing, } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Auditing';
27
+ import { V1_AnyVersionDeduplicationStrategy, V1_DuplicateCountDeduplicationStrategy, V1_MaxVersionDeduplicationStrategy, V1_NoDeduplicationStrategy, } from '../../../model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy';
28
+ import { V1_AppendOnly, V1_BitemporalDelta, V1_BitemporalSnapshot, V1_NontemporalDelta, V1_NontemporalSnapshot, V1_UnitemporalDelta, V1_UnitemporalSnapshot, } from '../../../model/packageableElements/persistence/V1_DSLPersistence_IngestMode';
29
+ import { V1_DeleteIndicatorMergeStrategy, V1_NoDeletesMergeStrategy, } from '../../../model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy';
30
+ import { V1_BatchIdAndDateTimeTransactionMilestoning, V1_BatchIdTransactionMilestoning, V1_DateTimeTransactionMilestoning, V1_DateTimeValidityMilestoning, V1_SourceSpecifiesFromAndThruDateTime, V1_SourceSpecifiesFromDateTime, } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Milestoning';
31
+ import { V1_EmailNotifyee, V1_Notifier, V1_PagerDutyNotifyee, } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Notifier';
32
+ import { V1_Persistence } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Persistence';
33
+ import { V1_BatchPersister, V1_StreamingPersister, } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Persister';
34
+ import { V1_ObjectStorageSink, V1_RelationalSink, } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Sink';
35
+ import { V1_FlatTarget, V1_MultiFlatTarget, V1_MultiFlatTargetPart, V1_TransactionScope, } from '../../../model/packageableElements/persistence/V1_DSLPersistence_TargetShape';
36
+ import { V1_CronTrigger, V1_ManualTrigger, } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Trigger';
37
+ import { V1_initPackageableElement, V1_transformConnection, V1_transformElementReference, } from '@finos/legend-graph';
38
+ import { UnsupportedOperationError } from '@finos/legend-shared';
39
+ /**********
40
+ * trigger
41
+ **********/
42
+ export const V1_transformTrigger = (element, context) => {
43
+ if (element instanceof CronTrigger) {
44
+ const protocol = new V1_CronTrigger();
45
+ protocol.minutes = element.minutes;
46
+ protocol.hours = element.hours;
47
+ protocol.dayOfMonth = element.dayOfMonth;
48
+ protocol.month = element.month;
49
+ protocol.dayOfWeek = element.dayOfWeek;
50
+ return protocol;
51
+ }
52
+ else if (element instanceof ManualTrigger) {
53
+ return new V1_ManualTrigger();
54
+ }
55
+ throw new UnsupportedOperationError(`Can't transform trigger '${element}'`);
56
+ };
57
+ /**********
58
+ * sink
59
+ **********/
60
+ export const V1_transformRelationalSink = (element, context) => {
61
+ const protocol = new V1_RelationalSink();
62
+ if (element.connection) {
63
+ protocol.connection = V1_transformConnection(element.connection, true, context);
64
+ }
65
+ return protocol;
66
+ };
67
+ export const V1_transformObjectStorageSink = (element, context) => {
68
+ const protocol = new V1_ObjectStorageSink();
69
+ protocol.connection = V1_transformConnection(element.connection, true, context);
70
+ protocol.binding = element.binding.value.path;
71
+ return protocol;
72
+ };
73
+ export const V1_transformSink = (element, context) => {
74
+ if (element instanceof RelationalSink) {
75
+ return V1_transformRelationalSink(element, context);
76
+ }
77
+ else if (element instanceof ObjectStorageSink) {
78
+ return V1_transformObjectStorageSink(element, context);
79
+ }
80
+ throw new UnsupportedOperationError(`Can't transform sink '${element}'`);
81
+ };
82
+ /**********
83
+ * auditing
84
+ **********/
85
+ export const V1_transformAuditing = (element, context) => {
86
+ if (element instanceof NoAuditing) {
87
+ return new V1_NoAuditing();
88
+ }
89
+ else if (element instanceof DateTimeAuditing) {
90
+ const protocol = new V1_DateTimeAuditing();
91
+ protocol.dateTimeField = element.dateTimeField;
92
+ return protocol;
93
+ }
94
+ throw new UnsupportedOperationError(`Can't transform auditing '${element}'`);
95
+ };
96
+ /**********
97
+ * merge strategy
98
+ **********/
99
+ export const V1_transformMergeStrategy = (element, context) => {
100
+ if (element instanceof NoDeletesMergeStrategy) {
101
+ return new V1_NoDeletesMergeStrategy();
102
+ }
103
+ else if (element instanceof DeleteIndicatorMergeStrategy) {
104
+ const protocol = new V1_DeleteIndicatorMergeStrategy();
105
+ protocol.deleteField = element.deleteField;
106
+ protocol.deleteValues = element.deleteValues;
107
+ return protocol;
108
+ }
109
+ throw new UnsupportedOperationError(`Can't transform merge strategy '${element}'`);
110
+ };
111
+ /**********
112
+ * transaction milestoning
113
+ **********/
114
+ export const V1_transformTransactionMilestoning = (element, context) => {
115
+ if (element instanceof BatchIdTransactionMilestoning) {
116
+ const protocol = new V1_BatchIdTransactionMilestoning();
117
+ protocol.batchIdInName = element.batchIdInName;
118
+ protocol.batchIdOutName = element.batchIdOutName;
119
+ return protocol;
120
+ }
121
+ else if (element instanceof DateTimeTransactionMilestoning) {
122
+ const protocol = new V1_DateTimeTransactionMilestoning();
123
+ protocol.dateTimeInName = element.dateTimeInName;
124
+ protocol.dateTimeOutName = element.dateTimeOutName;
125
+ return protocol;
126
+ }
127
+ else if (element instanceof BatchIdAndDateTimeTransactionMilestoning) {
128
+ const protocol = new V1_BatchIdAndDateTimeTransactionMilestoning();
129
+ protocol.batchIdInName = element.batchIdInName;
130
+ protocol.batchIdOutName = element.batchIdOutName;
131
+ protocol.dateTimeInName = element.dateTimeInName;
132
+ protocol.dateTimeOutName = element.dateTimeOutName;
133
+ return protocol;
134
+ }
135
+ throw new UnsupportedOperationError(`Can't transform transaction milestoning '${element}'`);
136
+ };
137
+ /**********
138
+ * validity derivation
139
+ **********/
140
+ export const V1_transformValidityDerivation = (element, context) => {
141
+ if (element instanceof SourceSpecifiesFromDateTime) {
142
+ const protocol = new V1_SourceSpecifiesFromDateTime();
143
+ protocol.sourceDateTimeFromField = element.sourceDateTimeFromField;
144
+ return protocol;
145
+ }
146
+ else if (element instanceof SourceSpecifiesFromAndThruDateTime) {
147
+ const protocol = new V1_SourceSpecifiesFromAndThruDateTime();
148
+ protocol.sourceDateTimeFromField = element.sourceDateTimeFromField;
149
+ protocol.sourceDateTimeThruField = element.sourceDateTimeThruField;
150
+ return protocol;
151
+ }
152
+ throw new UnsupportedOperationError(`Can't transform validity derivation '${element}'`);
153
+ };
154
+ /**********
155
+ * validity milestoning
156
+ **********/
157
+ export const V1_transformValidityMilestoning = (element, context) => {
158
+ if (element instanceof DateTimeValidityMilestoning) {
159
+ const protocol = new V1_DateTimeValidityMilestoning();
160
+ protocol.dateTimeFromName = element.dateTimeFromName;
161
+ protocol.dateTimeThruName = element.dateTimeThruName;
162
+ protocol.derivation = V1_transformValidityDerivation(element.derivation, context);
163
+ return protocol;
164
+ }
165
+ throw new UnsupportedOperationError(`Can't transform validity milestoning '${element}'`);
166
+ };
167
+ /**********
168
+ * ingest mode
169
+ **********/
170
+ export const V1_transformIngestMode = (element, context) => {
171
+ if (element instanceof NontemporalSnapshot) {
172
+ const protocol = new V1_NontemporalSnapshot();
173
+ protocol.auditing = V1_transformAuditing(element.auditing, context);
174
+ return protocol;
175
+ }
176
+ else if (element instanceof UnitemporalSnapshot) {
177
+ const protocol = new V1_UnitemporalSnapshot();
178
+ protocol.transactionMilestoning = V1_transformTransactionMilestoning(element.transactionMilestoning, context);
179
+ return protocol;
180
+ }
181
+ else if (element instanceof BitemporalSnapshot) {
182
+ const protocol = new V1_BitemporalSnapshot();
183
+ protocol.transactionMilestoning = V1_transformTransactionMilestoning(element.transactionMilestoning, context);
184
+ protocol.validityMilestoning = V1_transformValidityMilestoning(element.validityMilestoning, context);
185
+ return protocol;
186
+ }
187
+ else if (element instanceof NontemporalDelta) {
188
+ const protocol = new V1_NontemporalDelta();
189
+ protocol.mergeStrategy = V1_transformMergeStrategy(element.mergeStrategy, context);
190
+ protocol.auditing = V1_transformAuditing(element.auditing, context);
191
+ return protocol;
192
+ }
193
+ else if (element instanceof UnitemporalDelta) {
194
+ const protocol = new V1_UnitemporalDelta();
195
+ protocol.mergeStrategy = V1_transformMergeStrategy(element.mergeStrategy, context);
196
+ protocol.transactionMilestoning = V1_transformTransactionMilestoning(element.transactionMilestoning, context);
197
+ return protocol;
198
+ }
199
+ else if (element instanceof BitemporalDelta) {
200
+ const protocol = new V1_BitemporalDelta();
201
+ protocol.mergeStrategy = V1_transformMergeStrategy(element.mergeStrategy, context);
202
+ protocol.transactionMilestoning = V1_transformTransactionMilestoning(element.transactionMilestoning, context);
203
+ protocol.validityMilestoning = V1_transformValidityMilestoning(element.validityMilestoning, context);
204
+ return protocol;
205
+ }
206
+ else if (element instanceof AppendOnly) {
207
+ const protocol = new V1_AppendOnly();
208
+ protocol.auditing = V1_transformAuditing(element.auditing, context);
209
+ protocol.filterDuplicates = element.filterDuplicates;
210
+ return protocol;
211
+ }
212
+ throw new UnsupportedOperationError(`Can't transform ingest mode '${element}'`);
213
+ };
214
+ /**********
215
+ * deduplication strategy
216
+ **********/
217
+ export const V1_transformDeduplicationStrategy = (element, context) => {
218
+ if (element instanceof NoDeduplicationStrategy) {
219
+ return new V1_NoDeduplicationStrategy();
220
+ }
221
+ else if (element instanceof AnyVersionDeduplicationStrategy) {
222
+ return new V1_AnyVersionDeduplicationStrategy();
223
+ }
224
+ else if (element instanceof MaxVersionDeduplicationStrategy) {
225
+ const protocol = new V1_MaxVersionDeduplicationStrategy();
226
+ protocol.versionField = element.versionField;
227
+ return protocol;
228
+ }
229
+ else if (element instanceof DuplicateCountDeduplicationStrategy) {
230
+ const protocol = new V1_DuplicateCountDeduplicationStrategy();
231
+ protocol.duplicateCountName = element.duplicateCountName;
232
+ return protocol;
233
+ }
234
+ throw new UnsupportedOperationError(`Can't transform deduplicationStrategy '${element}'`);
235
+ };
236
+ /**********
237
+ * target shape
238
+ **********/
239
+ export const V1_transformFlatTarget = (element, context) => {
240
+ const protocol = new V1_FlatTarget();
241
+ if (element.modelClass) {
242
+ protocol.modelClass = V1_transformElementReference(element.modelClass);
243
+ }
244
+ protocol.targetName = element.targetName;
245
+ protocol.partitionFields = element.partitionFields;
246
+ protocol.deduplicationStrategy = V1_transformDeduplicationStrategy(element.deduplicationStrategy, context);
247
+ return protocol;
248
+ };
249
+ export const V1_transformTransactionScope = (element, context) => {
250
+ if (element === TransactionScope.SINGLE_TARGET) {
251
+ return V1_TransactionScope.SINGLE_TARGET;
252
+ }
253
+ else {
254
+ return V1_TransactionScope.ALL_TARGETS;
255
+ }
256
+ //note: ledav -- would prefer to write the below to be defensive when a new
257
+ // enum member is added, but lint complains
258
+ /*
259
+ } else if (element === TransactionScope.ALL_TARGETS) {
260
+ return V1_TransactionScope.ALL_TARGETS;
261
+ }
262
+ throw new UnsupportedOperationError(
263
+ `Can't transform transaction scope '${element}'`,
264
+ );
265
+ */
266
+ };
267
+ export const V1_transformMultiFlatTargetPart = (element, context) => {
268
+ const protocol = new V1_MultiFlatTargetPart();
269
+ protocol.modelProperty = element.modelProperty;
270
+ protocol.targetName = element.targetName;
271
+ protocol.partitionFields = element.partitionFields;
272
+ protocol.deduplicationStrategy = V1_transformDeduplicationStrategy(element.deduplicationStrategy, context);
273
+ return protocol;
274
+ };
275
+ export const V1_transformMultiFlatTarget = (element, context) => {
276
+ const protocol = new V1_MultiFlatTarget();
277
+ protocol.modelClass = V1_transformElementReference(element.modelClass);
278
+ protocol.transactionScope = V1_transformTransactionScope(element.transactionScope, context);
279
+ protocol.parts = element.parts.map((p) => V1_transformMultiFlatTargetPart(p, context));
280
+ return protocol;
281
+ };
282
+ export const V1_transformTargetShape = (element, context) => {
283
+ if (element instanceof FlatTarget) {
284
+ return V1_transformFlatTarget(element, context);
285
+ }
286
+ else if (element instanceof MultiFlatTarget) {
287
+ return V1_transformMultiFlatTarget(element, context);
288
+ }
289
+ throw new UnsupportedOperationError(`Can't transform target shape '${element}'`);
290
+ };
291
+ /**********
292
+ * persister
293
+ **********/
294
+ export const V1_transformPersister = (element, context) => {
295
+ if (element instanceof StreamingPersister) {
296
+ const protocol = new V1_StreamingPersister();
297
+ protocol.sink = V1_transformSink(element.sink, context);
298
+ return protocol;
299
+ }
300
+ else if (element instanceof BatchPersister) {
301
+ const protocol = new V1_BatchPersister();
302
+ protocol.sink = V1_transformSink(element.sink, context);
303
+ protocol.ingestMode = V1_transformIngestMode(element.ingestMode, context);
304
+ protocol.targetShape = V1_transformTargetShape(element.targetShape, context);
305
+ return protocol;
306
+ }
307
+ throw new UnsupportedOperationError(`Can't transform persister '${element}'`);
308
+ };
309
+ /**********
310
+ * notifier
311
+ **********/
312
+ export const V1_transformNotifyee = (element, context) => {
313
+ if (element instanceof EmailNotifyee) {
314
+ const protocol = new V1_EmailNotifyee();
315
+ protocol.address = element.address;
316
+ return protocol;
317
+ }
318
+ else if (element instanceof PagerDutyNotifyee) {
319
+ const protocol = new V1_PagerDutyNotifyee();
320
+ protocol.url = element.url;
321
+ return protocol;
322
+ }
323
+ throw new UnsupportedOperationError(`Can't transform notifyee '${element}'`);
324
+ };
325
+ export const V1_transformNotifier = (element, context) => {
326
+ const notifier = new V1_Notifier();
327
+ notifier.notifyees = element.notifyees.map((n) => V1_transformNotifyee(n, context));
328
+ return notifier;
329
+ };
330
+ /**********
331
+ * persistence
332
+ **********/
333
+ export const V1_transformPersistence = (element, context) => {
334
+ const protocol = new V1_Persistence();
335
+ V1_initPackageableElement(protocol, element);
336
+ protocol.documentation = element.documentation;
337
+ protocol.trigger = V1_transformTrigger(element.trigger, context);
338
+ protocol.service = V1_transformElementReference(element.service);
339
+ protocol.persister = V1_transformPersister(element.persister, context);
340
+ protocol.notifier = V1_transformNotifier(element.notifier, context);
341
+ return protocol;
342
+ };
343
+ //# sourceMappingURL=V1_PersistenceTransformer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"V1_PersistenceTransformer.js","sourceRoot":"","sources":["../../../../../../../../src/models/protocols/pure/v1/transformation/pureGraph/from/V1_PersistenceTransformer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,gBAAgB,EAChB,UAAU,GACX,MAAM,iGAAiG,CAAC;AACzG,OAAO,EACL,+BAA+B,EAE/B,mCAAmC,EACnC,+BAA+B,EAC/B,uBAAuB,GACxB,MAAM,8GAA8G,CAAC;AACtH,OAAO,EACL,UAAU,EACV,eAAe,EACf,kBAAkB,EAElB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,mGAAmG,CAAC;AAC3G,OAAO,EACL,4BAA4B,EAE5B,sBAAsB,GACvB,MAAM,sGAAsG,CAAC;AAC9G,OAAO,EACL,wCAAwC,EACxC,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,kCAAkC,EAClC,2BAA2B,GAI5B,MAAM,oGAAoG,CAAC;AAC5G,OAAO,EACL,aAAa,EAGb,iBAAiB,GAClB,MAAM,iGAAiG,CAAC;AAEzG,OAAO,EACL,cAAc,EAEd,kBAAkB,GACnB,MAAM,kGAAkG,CAAC;AAC1G,OAAO,EACL,iBAAiB,EACjB,cAAc,GAEf,MAAM,6FAA6F,CAAC;AACrG,OAAO,EACL,UAAU,EACV,eAAe,EAGf,gBAAgB,GACjB,MAAM,oGAAoG,CAAC;AAC5G,OAAO,EACL,WAAW,EACX,aAAa,GAEd,MAAM,gGAAgG,CAAC;AACxG,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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