@finos/legend-extension-dsl-data-quality 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (260) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +1 -0
  3. package/lib/components/DSL_DataQuality_ClassElementDriver.d.ts +46 -0
  4. package/lib/components/DSL_DataQuality_ClassElementDriver.d.ts.map +1 -0
  5. package/lib/components/DSL_DataQuality_ClassElementDriver.js +116 -0
  6. package/lib/components/DSL_DataQuality_ClassElementDriver.js.map +1 -0
  7. package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.d.ts +30 -0
  8. package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.d.ts.map +1 -0
  9. package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.js +161 -0
  10. package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.js.map +1 -0
  11. package/lib/components/DSL_DataQuality_LegendStudioPlugin_Extension.d.ts +25 -0
  12. package/lib/components/DSL_DataQuality_LegendStudioPlugin_Extension.d.ts.map +1 -0
  13. package/lib/components/DSL_DataQuality_LegendStudioPlugin_Extension.js +2 -0
  14. package/lib/components/DSL_DataQuality_LegendStudioPlugin_Extension.js.map +1 -0
  15. package/lib/components/DSL_DataQuality_ServiceElementDriver.d.ts +27 -0
  16. package/lib/components/DSL_DataQuality_ServiceElementDriver.d.ts.map +1 -0
  17. package/lib/components/DSL_DataQuality_ServiceElementDriver.js +41 -0
  18. package/lib/components/DSL_DataQuality_ServiceElementDriver.js.map +1 -0
  19. package/lib/components/DSL_NewDataQualityClassValidationElement.d.ts +19 -0
  20. package/lib/components/DSL_NewDataQualityClassValidationElement.d.ts.map +1 -0
  21. package/lib/components/DSL_NewDataQualityClassValidationElement.js +64 -0
  22. package/lib/components/DSL_NewDataQualityClassValidationElement.js.map +1 -0
  23. package/lib/components/DSL_NewDataQualityServiceValidationElement.d.ts +19 -0
  24. package/lib/components/DSL_NewDataQualityServiceValidationElement.d.ts.map +1 -0
  25. package/lib/components/DSL_NewDataQualityServiceValidationElement.js +41 -0
  26. package/lib/components/DSL_NewDataQualityServiceValidationElement.js.map +1 -0
  27. package/lib/components/DataQualityClassValidationEditor.d.ts +19 -0
  28. package/lib/components/DataQualityClassValidationEditor.d.ts.map +1 -0
  29. package/lib/components/DataQualityClassValidationEditor.js +29 -0
  30. package/lib/components/DataQualityClassValidationEditor.js.map +1 -0
  31. package/lib/components/DataQualityConstraintsSelection.d.ts +39 -0
  32. package/lib/components/DataQualityConstraintsSelection.d.ts.map +1 -0
  33. package/lib/components/DataQualityConstraintsSelection.js +133 -0
  34. package/lib/components/DataQualityConstraintsSelection.js.map +1 -0
  35. package/lib/components/DataQualityDataSpaceBuilder.d.ts +22 -0
  36. package/lib/components/DataQualityDataSpaceBuilder.d.ts.map +1 -0
  37. package/lib/components/DataQualityDataSpaceBuilder.js +101 -0
  38. package/lib/components/DataQualityDataSpaceBuilder.js.map +1 -0
  39. package/lib/components/DataQualityExplorerPanel.d.ts +29 -0
  40. package/lib/components/DataQualityExplorerPanel.d.ts.map +1 -0
  41. package/lib/components/DataQualityExplorerPanel.js +185 -0
  42. package/lib/components/DataQualityExplorerPanel.js.map +1 -0
  43. package/lib/components/DataQualityFilterPanel.d.ts +24 -0
  44. package/lib/components/DataQualityFilterPanel.d.ts.map +1 -0
  45. package/lib/components/DataQualityFilterPanel.js +32 -0
  46. package/lib/components/DataQualityFilterPanel.js.map +1 -0
  47. package/lib/components/DataQualityMappingAndRuntimeBuilder.d.ts +22 -0
  48. package/lib/components/DataQualityMappingAndRuntimeBuilder.d.ts.map +1 -0
  49. package/lib/components/DataQualityMappingAndRuntimeBuilder.js +98 -0
  50. package/lib/components/DataQualityMappingAndRuntimeBuilder.js.map +1 -0
  51. package/lib/components/DataQualityResultPanel.d.ts +22 -0
  52. package/lib/components/DataQualityResultPanel.d.ts.map +1 -0
  53. package/lib/components/DataQualityResultPanel.js +110 -0
  54. package/lib/components/DataQualityResultPanel.js.map +1 -0
  55. package/lib/components/DataQualityResultValues.d.ts +24 -0
  56. package/lib/components/DataQualityResultValues.d.ts.map +1 -0
  57. package/lib/components/DataQualityResultValues.js +31 -0
  58. package/lib/components/DataQualityResultValues.js.map +1 -0
  59. package/lib/components/DataQualityServiceValidationEditor.d.ts +19 -0
  60. package/lib/components/DataQualityServiceValidationEditor.d.ts.map +1 -0
  61. package/lib/components/DataQualityServiceValidationEditor.js +29 -0
  62. package/lib/components/DataQualityServiceValidationEditor.js.map +1 -0
  63. package/lib/components/DataQualitySideBar.d.ts +40 -0
  64. package/lib/components/DataQualitySideBar.d.ts.map +1 -0
  65. package/lib/components/DataQualitySideBar.js +78 -0
  66. package/lib/components/DataQualitySideBar.js.map +1 -0
  67. package/lib/components/DataQualityStructuralValidationsPanel.d.ts +22 -0
  68. package/lib/components/DataQualityStructuralValidationsPanel.d.ts.map +1 -0
  69. package/lib/components/DataQualityStructuralValidationsPanel.js +50 -0
  70. package/lib/components/DataQualityStructuralValidationsPanel.js.map +1 -0
  71. package/lib/components/DataQualityTabs.d.ts +22 -0
  72. package/lib/components/DataQualityTabs.d.ts.map +1 -0
  73. package/lib/components/DataQualityTabs.js +58 -0
  74. package/lib/components/DataQualityTabs.js.map +1 -0
  75. package/lib/components/DataQualityValidationEditor.d.ts +23 -0
  76. package/lib/components/DataQualityValidationEditor.d.ts.map +1 -0
  77. package/lib/components/DataQualityValidationEditor.js +24 -0
  78. package/lib/components/DataQualityValidationEditor.js.map +1 -0
  79. package/lib/components/constants/DataQualityConstants.d.ts +24 -0
  80. package/lib/components/constants/DataQualityConstants.d.ts.map +1 -0
  81. package/lib/components/constants/DataQualityConstants.js +25 -0
  82. package/lib/components/constants/DataQualityConstants.js.map +1 -0
  83. package/lib/components/index.d.ts +19 -0
  84. package/lib/components/index.d.ts.map +1 -0
  85. package/lib/components/index.js +19 -0
  86. package/lib/components/index.js.map +1 -0
  87. package/lib/components/states/ConstraintState.d.ts +30 -0
  88. package/lib/components/states/ConstraintState.d.ts.map +1 -0
  89. package/lib/components/states/ConstraintState.js +55 -0
  90. package/lib/components/states/ConstraintState.js.map +1 -0
  91. package/lib/components/states/DataQualityClassValidationState.d.ts +43 -0
  92. package/lib/components/states/DataQualityClassValidationState.d.ts.map +1 -0
  93. package/lib/components/states/DataQualityClassValidationState.js +162 -0
  94. package/lib/components/states/DataQualityClassValidationState.js.map +1 -0
  95. package/lib/components/states/DataQualityGraphFetchTreeState.d.ts +34 -0
  96. package/lib/components/states/DataQualityGraphFetchTreeState.d.ts.map +1 -0
  97. package/lib/components/states/DataQualityGraphFetchTreeState.js +70 -0
  98. package/lib/components/states/DataQualityGraphFetchTreeState.js.map +1 -0
  99. package/lib/components/states/DataQualityQueryBuilderState.d.ts +19 -0
  100. package/lib/components/states/DataQualityQueryBuilderState.d.ts.map +1 -0
  101. package/lib/components/states/DataQualityQueryBuilderState.js +19 -0
  102. package/lib/components/states/DataQualityQueryBuilderState.js.map +1 -0
  103. package/lib/components/states/DataQualityResultState.d.ts +44 -0
  104. package/lib/components/states/DataQualityResultState.d.ts.map +1 -0
  105. package/lib/components/states/DataQualityResultState.js +154 -0
  106. package/lib/components/states/DataQualityResultState.js.map +1 -0
  107. package/lib/components/states/DataQualityServiceValidationState.d.ts +25 -0
  108. package/lib/components/states/DataQualityServiceValidationState.d.ts.map +1 -0
  109. package/lib/components/states/DataQualityServiceValidationState.js +33 -0
  110. package/lib/components/states/DataQualityServiceValidationState.js.map +1 -0
  111. package/lib/components/states/DataQualityState.d.ts +67 -0
  112. package/lib/components/states/DataQualityState.d.ts.map +1 -0
  113. package/lib/components/states/DataQualityState.js +204 -0
  114. package/lib/components/states/DataQualityState.js.map +1 -0
  115. package/lib/components/utils/DataQualityGraphFetchTreeUtil.d.ts +51 -0
  116. package/lib/components/utils/DataQualityGraphFetchTreeUtil.d.ts.map +1 -0
  117. package/lib/components/utils/DataQualityGraphFetchTreeUtil.js +321 -0
  118. package/lib/components/utils/DataQualityGraphFetchTreeUtil.js.map +1 -0
  119. package/lib/graph/metamodel/DSL_DataQuality_HashUtils.d.ts +29 -0
  120. package/lib/graph/metamodel/DSL_DataQuality_HashUtils.d.ts.map +1 -0
  121. package/lib/graph/metamodel/DSL_DataQuality_HashUtils.js +30 -0
  122. package/lib/graph/metamodel/DSL_DataQuality_HashUtils.js.map +1 -0
  123. package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.d.ts +22 -0
  124. package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.d.ts.map +1 -0
  125. package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.js +31 -0
  126. package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.js.map +1 -0
  127. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.d.ts +26 -0
  128. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.d.ts.map +1 -0
  129. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.js +44 -0
  130. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.js.map +1 -0
  131. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.d.ts +47 -0
  132. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.d.ts.map +1 -0
  133. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js +75 -0
  134. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js.map +1 -0
  135. package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.d.ts +20 -0
  136. package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.d.ts.map +1 -0
  137. package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.js +20 -0
  138. package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.js.map +1 -0
  139. package/lib/graph-manager/DSL_DataQuality_GraphManagerPreset.d.ts +20 -0
  140. package/lib/graph-manager/DSL_DataQuality_GraphManagerPreset.d.ts.map +1 -0
  141. package/lib/graph-manager/DSL_DataQuality_GraphManagerPreset.js +30 -0
  142. package/lib/graph-manager/DSL_DataQuality_GraphManagerPreset.js.map +1 -0
  143. package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.d.ts +26 -0
  144. package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.d.ts.map +1 -0
  145. package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.js +57 -0
  146. package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.js.map +1 -0
  147. package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.d.ts +7 -0
  148. package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.d.ts.map +1 -0
  149. package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.js +42 -0
  150. package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.js.map +1 -0
  151. package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.d.ts +24 -0
  152. package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.d.ts.map +1 -0
  153. package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.js +98 -0
  154. package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.js.map +1 -0
  155. package/lib/graph-manager/index.d.ts +19 -0
  156. package/lib/graph-manager/index.d.ts.map +1 -0
  157. package/lib/graph-manager/index.js +19 -0
  158. package/lib/graph-manager/index.js.map +1 -0
  159. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.d.ts +27 -0
  160. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.d.ts.map +1 -0
  161. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.js +21 -0
  162. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.js.map +1 -0
  163. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.d.ts +25 -0
  164. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.d.ts.map +1 -0
  165. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.js +140 -0
  166. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.js.map +1 -0
  167. package/lib/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.d.ts +18 -0
  168. package/lib/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.d.ts.map +1 -0
  169. package/lib/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.js +20 -0
  170. package/lib/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.js.map +1 -0
  171. package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts +41 -0
  172. package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts.map +1 -0
  173. package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.js +95 -0
  174. package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.js.map +1 -0
  175. package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.d.ts +46 -0
  176. package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.d.ts.map +1 -0
  177. package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.js +76 -0
  178. package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.js.map +1 -0
  179. package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.d.ts +22 -0
  180. package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.d.ts.map +1 -0
  181. package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.js +32 -0
  182. package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.js.map +1 -0
  183. package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.d.ts +22 -0
  184. package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.d.ts.map +1 -0
  185. package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.js +31 -0
  186. package/lib/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.js.map +1 -0
  187. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationBuilderHelper.d.ts +24 -0
  188. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationBuilderHelper.d.ts.map +1 -0
  189. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationBuilderHelper.js +92 -0
  190. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationBuilderHelper.js.map +1 -0
  191. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationSerializer.d.ts +20 -0
  192. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationSerializer.d.ts.map +1 -0
  193. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationSerializer.js +56 -0
  194. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationSerializer.js.map +1 -0
  195. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationTransformer.d.ts +22 -0
  196. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationTransformer.d.ts.map +1 -0
  197. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationTransformer.js +70 -0
  198. package/lib/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationTransformer.js.map +1 -0
  199. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.d.ts +29 -0
  200. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.d.ts.map +1 -0
  201. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.js +80 -0
  202. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.js.map +1 -0
  203. package/lib/index.css +17 -0
  204. package/lib/index.css.map +1 -0
  205. package/lib/package.json +87 -0
  206. package/package.json +87 -0
  207. package/src/components/DSL_DataQuality_ClassElementDriver.tsx +175 -0
  208. package/src/components/DSL_DataQuality_LegendStudioApplicationPlugin.tsx +220 -0
  209. package/src/components/DSL_DataQuality_LegendStudioPlugin_Extension.ts +39 -0
  210. package/src/components/DSL_DataQuality_ServiceElementDriver.tsx +57 -0
  211. package/src/components/DSL_NewDataQualityClassValidationElement.tsx +156 -0
  212. package/src/components/DSL_NewDataQualityServiceValidationElement.tsx +74 -0
  213. package/src/components/DataQualityClassValidationEditor.tsx +49 -0
  214. package/src/components/DataQualityConstraintsSelection.tsx +376 -0
  215. package/src/components/DataQualityDataSpaceBuilder.tsx +274 -0
  216. package/src/components/DataQualityExplorerPanel.tsx +584 -0
  217. package/src/components/DataQualityFilterPanel.tsx +50 -0
  218. package/src/components/DataQualityMappingAndRuntimeBuilder.tsx +224 -0
  219. package/src/components/DataQualityResultPanel.tsx +335 -0
  220. package/src/components/DataQualityResultValues.tsx +61 -0
  221. package/src/components/DataQualityServiceValidationEditor.tsx +49 -0
  222. package/src/components/DataQualitySideBar.tsx +216 -0
  223. package/src/components/DataQualityStructuralValidationsPanel.tsx +105 -0
  224. package/src/components/DataQualityTabs.tsx +104 -0
  225. package/src/components/DataQualityValidationEditor.tsx +52 -0
  226. package/src/components/constants/DataQualityConstants.ts +24 -0
  227. package/src/components/index.ts +19 -0
  228. package/src/components/states/ConstraintState.ts +70 -0
  229. package/src/components/states/DataQualityClassValidationState.ts +308 -0
  230. package/src/components/states/DataQualityGraphFetchTreeState.ts +125 -0
  231. package/src/components/states/DataQualityQueryBuilderState.ts +19 -0
  232. package/src/components/states/DataQualityResultState.ts +217 -0
  233. package/src/components/states/DataQualityServiceValidationState.ts +56 -0
  234. package/src/components/states/DataQualityState.ts +354 -0
  235. package/src/components/utils/DataQualityGraphFetchTreeUtil.ts +592 -0
  236. package/src/graph/metamodel/DSL_DataQuality_HashUtils.ts +29 -0
  237. package/src/graph/metamodel/DSL_DataQuality_PureGraphPlugin.ts +36 -0
  238. package/src/graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.ts +55 -0
  239. package/src/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.ts +107 -0
  240. package/src/graph-manager/DSL_DataQuality_GraphManagerHelper.ts +46 -0
  241. package/src/graph-manager/DSL_DataQuality_GraphManagerPreset.ts +31 -0
  242. package/src/graph-manager/DSL_DataQuality_GraphModifierHelper.ts +113 -0
  243. package/src/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.ts +59 -0
  244. package/src/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.ts +153 -0
  245. package/src/graph-manager/index.ts +19 -0
  246. package/src/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.ts +59 -0
  247. package/src/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.ts +283 -0
  248. package/src/graph-manager/protocol/pure/DSL_DataQuality_buildGraphManagerExtension.ts +27 -0
  249. package/src/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.ts +246 -0
  250. package/src/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.ts +103 -0
  251. package/src/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityPropertyGraphFetchTree.ts +37 -0
  252. package/src/graph-manager/protocol/pure/v1/model/graphFetch/V1_DataQualityRootGraphFetchTree.ts +36 -0
  253. package/src/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationBuilderHelper.ts +241 -0
  254. package/src/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationSerializer.ts +113 -0
  255. package/src/graph-manager/protocol/pure/v1/transformation/V1_ValueSpecificationTransformer.ts +139 -0
  256. package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.ts +186 -0
  257. package/style/_data-quality-validation-builder.scss +1660 -0
  258. package/style/index.scss +67 -0
  259. package/tsconfig.json +137 -0
  260. package/tsconfig.package.json +9 -0
@@ -0,0 +1,44 @@
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 { DataQualityState } from './DataQualityState.js';
17
+ import { ExecutionPlanState } from '@finos/legend-query-builder';
18
+ import { type GeneratorFn, ActionState } from '@finos/legend-shared';
19
+ import { type ExecutionResult } from '@finos/legend-graph';
20
+ export declare const DEFAULT_LIMIT = 1000;
21
+ export declare class DataQualityResultState {
22
+ readonly dataQualityState: DataQualityState;
23
+ readonly executionPlanState: ExecutionPlanState;
24
+ previewLimit: number;
25
+ pressedRunQuery: ActionState;
26
+ isRunningQuery: boolean;
27
+ isGeneratingPlan: boolean;
28
+ executionResult?: ExecutionResult | undefined;
29
+ executionDuration?: number | undefined;
30
+ latestRunHashCode?: string | undefined;
31
+ queryRunPromise: Promise<ExecutionResult> | undefined;
32
+ isQueryUsageViewerOpened: boolean;
33
+ constructor(dataQualityState: DataQualityState);
34
+ setIsRunningQuery(val: boolean): void;
35
+ setExecutionResult(val: ExecutionResult | undefined): void;
36
+ setExecutionDuration(val: number | undefined): void;
37
+ setPreviewLimit(val: number): void;
38
+ setQueryRunPromise(promise: Promise<ExecutionResult> | undefined): void;
39
+ get checkForStaleResults(): boolean;
40
+ runQuery(): GeneratorFn<void>;
41
+ cancelQuery(): GeneratorFn<void>;
42
+ generatePlan(debug: boolean): GeneratorFn<void>;
43
+ }
44
+ //# sourceMappingURL=DataQualityResultState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityResultState.d.ts","sourceRoot":"","sources":["../../../src/components/states/DataQualityResultState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EACL,kBAAkB,EAGnB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,KAAK,WAAW,EAChB,WAAW,EAIZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,KAAK,eAAe,EAErB,MAAM,qBAAqB,CAAC;AAG7B,eAAO,MAAM,aAAa,OAAO,CAAC;AAClC,qBAAa,sBAAsB;IACjC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAEhD,YAAY,SAAiB;IAC7B,eAAe,cAAwB;IACvC,cAAc,UAAS;IACvB,gBAAgB,UAAS;IACzB,eAAe,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IAC9C,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,eAAe,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,SAAS,CAAa;IAClE,wBAAwB,UAAS;gBAErB,gBAAgB,EAAE,gBAAgB;IA0B9C,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIrC,kBAAkB,CAAC,GAAG,EAAE,eAAe,GAAG,SAAS,GAAG,IAAI;IAI1D,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAInD,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIlC,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,SAAS,GAAG,IAAI;IAIvE,IAAI,oBAAoB,IAAI,OAAO,CAKlC;IAEA,QAAQ,IAAI,WAAW,CAAC,IAAI,CAAC;IAwC7B,WAAW,IAAI,WAAW,CAAC,IAAI,CAAC;IAiBhC,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC;CAsDjD"}
@@ -0,0 +1,154 @@
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 { ExecutionPlanState, QUERY_BUILDER_EVENT, QueryBuilderTelemetryHelper, } from '@finos/legend-query-builder';
17
+ import { action, flow, makeObservable, observable } from 'mobx';
18
+ import { ActionState, assertErrorThrown, LogEvent, StopWatch, } from '@finos/legend-shared';
19
+ import { GRAPH_MANAGER_EVENT, } from '@finos/legend-graph';
20
+ import { getDataQualityPureGraphManagerExtension } from '../../graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.js';
21
+ export const DEFAULT_LIMIT = 1000;
22
+ export class DataQualityResultState {
23
+ dataQualityState;
24
+ executionPlanState;
25
+ previewLimit = DEFAULT_LIMIT;
26
+ pressedRunQuery = ActionState.create();
27
+ isRunningQuery = false;
28
+ isGeneratingPlan = false;
29
+ executionResult;
30
+ executionDuration;
31
+ latestRunHashCode;
32
+ queryRunPromise = undefined;
33
+ isQueryUsageViewerOpened = false;
34
+ constructor(dataQualityState) {
35
+ makeObservable(this, {
36
+ executionResult: observable,
37
+ previewLimit: observable,
38
+ executionDuration: observable,
39
+ latestRunHashCode: observable,
40
+ queryRunPromise: observable,
41
+ isGeneratingPlan: observable,
42
+ isRunningQuery: observable,
43
+ setIsRunningQuery: action,
44
+ setExecutionResult: action,
45
+ setExecutionDuration: action,
46
+ setPreviewLimit: action,
47
+ setQueryRunPromise: action,
48
+ runQuery: flow,
49
+ cancelQuery: flow,
50
+ generatePlan: flow,
51
+ });
52
+ this.dataQualityState = dataQualityState;
53
+ this.executionPlanState = new ExecutionPlanState(this.dataQualityState.applicationStore, this.dataQualityState.graphManagerState);
54
+ }
55
+ setIsRunningQuery(val) {
56
+ this.isRunningQuery = val;
57
+ }
58
+ setExecutionResult(val) {
59
+ this.executionResult = val;
60
+ }
61
+ setExecutionDuration(val) {
62
+ this.executionDuration = val;
63
+ }
64
+ setPreviewLimit(val) {
65
+ this.previewLimit = Math.max(1, val);
66
+ }
67
+ setQueryRunPromise(promise) {
68
+ this.queryRunPromise = promise;
69
+ }
70
+ get checkForStaleResults() {
71
+ if (this.latestRunHashCode !== this.dataQualityState.hashCode) {
72
+ return true;
73
+ }
74
+ return false;
75
+ }
76
+ *runQuery() {
77
+ let promise;
78
+ try {
79
+ this.setIsRunningQuery(true);
80
+ const currentHashCode = this.dataQualityState.hashCode;
81
+ const packagePath = this.dataQualityState.constraintsConfigurationElement.path;
82
+ const model = this.dataQualityState.graphManagerState.graph;
83
+ const stopWatch = new StopWatch();
84
+ promise = getDataQualityPureGraphManagerExtension(this.dataQualityState.graphManagerState.graphManager).execute(model, packagePath, this.previewLimit);
85
+ this.setQueryRunPromise(promise);
86
+ const result = (yield promise);
87
+ if (this.queryRunPromise === promise) {
88
+ this.setExecutionResult(result);
89
+ this.latestRunHashCode = currentHashCode;
90
+ this.setExecutionDuration(stopWatch.elapsed);
91
+ }
92
+ }
93
+ catch (error) {
94
+ if (this.queryRunPromise === promise) {
95
+ assertErrorThrown(error);
96
+ this.dataQualityState.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.EXECUTION_FAILURE), error);
97
+ this.dataQualityState.applicationStore.notificationService.notifyError(error);
98
+ }
99
+ }
100
+ finally {
101
+ this.setIsRunningQuery(false);
102
+ this.pressedRunQuery.complete();
103
+ }
104
+ }
105
+ *cancelQuery() {
106
+ this.pressedRunQuery.complete();
107
+ this.setIsRunningQuery(false);
108
+ this.setQueryRunPromise(undefined);
109
+ try {
110
+ yield this.dataQualityState.graphManagerState.graphManager.cancelUserExecutions(true);
111
+ }
112
+ catch (error) {
113
+ // Don't notify users about success or failure
114
+ this.dataQualityState.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.EXECUTION_FAILURE), error);
115
+ }
116
+ }
117
+ *generatePlan(debug) {
118
+ const packagePath = this.dataQualityState.constraintsConfigurationElement.path;
119
+ const model = this.dataQualityState.graphManagerState.graph;
120
+ try {
121
+ this.isGeneratingPlan = true;
122
+ let rawPlan;
123
+ const stopWatch = new StopWatch();
124
+ if (debug) {
125
+ const debugResult = (yield getDataQualityPureGraphManagerExtension(this.dataQualityState.graphManagerState.graphManager).debugExecutionPlanGeneration(model, packagePath));
126
+ rawPlan = debugResult.plan;
127
+ this.executionPlanState.setDebugText(debugResult.debug);
128
+ }
129
+ else {
130
+ QueryBuilderTelemetryHelper.logEvent_ExecutionPlanGenerationLaunched(this.dataQualityState.applicationStore.telemetryService);
131
+ rawPlan = (yield getDataQualityPureGraphManagerExtension(this.dataQualityState.graphManagerState.graphManager).generatePlan(model, packagePath));
132
+ }
133
+ stopWatch.record();
134
+ try {
135
+ this.executionPlanState.setRawPlan(rawPlan);
136
+ const plan = this.dataQualityState.graphManagerState.graphManager.buildExecutionPlan(rawPlan, this.dataQualityState.graphManagerState.graph);
137
+ this.executionPlanState.initialize(plan);
138
+ }
139
+ catch {
140
+ //do nothing
141
+ }
142
+ stopWatch.record(QUERY_BUILDER_EVENT.BUILD_EXECUTION_PLAN__SUCCESS);
143
+ }
144
+ catch (error) {
145
+ assertErrorThrown(error);
146
+ this.dataQualityState.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.EXECUTION_FAILURE), error);
147
+ this.dataQualityState.applicationStore.notificationService.notifyError(error);
148
+ }
149
+ finally {
150
+ this.isGeneratingPlan = false;
151
+ }
152
+ }
153
+ }
154
+ //# sourceMappingURL=DataQualityResultState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityResultState.js","sourceRoot":"","sources":["../../../src/components/states/DataQualityResultState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B,GAC5B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAEL,WAAW,EACX,iBAAiB,EACjB,QAAQ,EACR,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,uCAAuC,EAAE,MAAM,gFAAgF,CAAC;AAEzI,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC;AAClC,MAAM,OAAO,sBAAsB;IACxB,gBAAgB,CAAmB;IACnC,kBAAkB,CAAqB;IAEhD,YAAY,GAAG,aAAa,CAAC;IAC7B,eAAe,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;IACvC,cAAc,GAAG,KAAK,CAAC;IACvB,gBAAgB,GAAG,KAAK,CAAC;IACzB,eAAe,CAA+B;IAC9C,iBAAiB,CAAsB;IACvC,iBAAiB,CAAsB;IACvC,eAAe,GAAyC,SAAS,CAAC;IAClE,wBAAwB,GAAG,KAAK,CAAC;IAEjC,YAAY,gBAAkC;QAC5C,cAAc,CAAC,I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AAC;IACH,CAAC;CACF"}
@@ -0,0 +1,25 @@
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 { DataQualityServiceValidationConfiguration } from '../../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
17
+ import { DataQualityState } from './DataQualityState.js';
18
+ import type { PackageableElement } from '@finos/legend-graph';
19
+ import type { EditorStore, ElementEditorState } from '@finos/legend-application-studio';
20
+ export declare class DataQualityServiceValidationState extends DataQualityState {
21
+ constructor(editorStore: EditorStore, element: DataQualityServiceValidationConfiguration);
22
+ reprocess(newElement: PackageableElement, editorStore: EditorStore): ElementEditorState;
23
+ get constraintsConfigurationElement(): DataQualityServiceValidationConfiguration;
24
+ }
25
+ //# sourceMappingURL=DataQualityServiceValidationState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityServiceValidationState.d.ts","sourceRoot":"","sources":["../../../src/components/states/DataQualityServiceValidationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,yCAAyC,EAAE,MAAM,mGAAmG,CAAC;AAC9J,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EACV,WAAW,EACX,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAG1C,qBAAa,iCAAkC,SAAQ,gBAAgB;gBAEnE,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,yCAAyC;IAMpD,SAAS,CACP,UAAU,EAAE,kBAAkB,EAC9B,WAAW,EAAE,WAAW,GACvB,kBAAkB;IAUrB,IAAa,+BAA+B,IAAI,yCAAyC,CAMxF;CACF"}
@@ -0,0 +1,33 @@
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 { makeObservable } from 'mobx';
17
+ import { DataQualityServiceValidationConfiguration } from '../../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
18
+ import { DataQualityState } from './DataQualityState.js';
19
+ import { guaranteeType } from '@finos/legend-shared';
20
+ export class DataQualityServiceValidationState extends DataQualityState {
21
+ constructor(editorStore, element) {
22
+ super(editorStore, element);
23
+ makeObservable(this, {});
24
+ }
25
+ reprocess(newElement, editorStore) {
26
+ const element = guaranteeType(newElement, DataQualityServiceValidationConfiguration, 'Element inside data quality service validation editor state must be a service validation element');
27
+ return new DataQualityServiceValidationState(editorStore, element);
28
+ }
29
+ get constraintsConfigurationElement() {
30
+ return guaranteeType(this.element, DataQualityServiceValidationConfiguration, 'Element inside data quality service validation state must be a data quality service validation configuration element');
31
+ }
32
+ }
33
+ //# sourceMappingURL=DataQualityServiceValidationState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityServiceValidationState.js","sourceRoot":"","sources":["../../../src/components/states/DataQualityServiceValidationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,yCAAyC,EAAE,MAAM,mGAAmG,CAAC;AAC9J,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAMzD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,OAAO,iCAAkC,SAAQ,gBAAgB;IACrE,YACE,WAAwB,EACxB,OAAkD;QAElD,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAC5B,cAAc,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAC3B,CAAC;IAED,SAAS,CACP,UAA8B,EAC9B,WAAwB;QAExB,MAAM,OAAO,GAAG,aAAa,CAC3B,UAAU,EACV,yCAAyC,EACzC,kGAAkG,CACnG,CAAC;QAEF,OAAO,IAAI,iCAAiC,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED,IAAa,+BAA+B;QAC1C,OAAO,aAAa,CAClB,IAAI,CAAC,OAAO,EACZ,yCAAyC,EACzC,sHAAsH,CACvH,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,67 @@
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 GraphManagerState, type Runtime, type RawLambda, type PackageableElement, type Class } from '@finos/legend-graph';
17
+ import { type EditorExtensionState, type EditorStore, ElementEditorState } from '@finos/legend-application-studio';
18
+ import type { DataSpaceExecutionContext } from '@finos/legend-extension-dsl-data-space/graph';
19
+ import { DataQualityGraphFetchTreeState } from './DataQualityGraphFetchTreeState.js';
20
+ import { DataQualityRootGraphFetchTree } from '../../graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.js';
21
+ import { type GeneratorFn, ActionState } from '@finos/legend-shared';
22
+ import { type GenericLegendApplicationStore } from '@finos/legend-application';
23
+ import { DataQualityResultState } from './DataQualityResultState.js';
24
+ import { DataQualityQueryBuilderState } from './DataQualityQueryBuilderState.js';
25
+ export declare enum DATA_QUALITY_TAB {
26
+ FILTER = "Filter ",
27
+ CONSTRAINTS_SELECTION = "Constraints Selection",
28
+ TRIAL_RUNS = "Trial Runs"
29
+ }
30
+ export declare function buildExtensionState(editorStore: EditorStore, dataQualityState: DataQualityState): EditorExtensionState | undefined;
31
+ export declare abstract class DataQualityState extends ElementEditorState {
32
+ readonly applicationStore: GenericLegendApplicationStore;
33
+ readonly graphManagerState: GraphManagerState;
34
+ readonly loadDataSpacesState: ActionState;
35
+ readonly onExecutionContextChange?: ((val: DataSpaceExecutionContext) => void) | undefined;
36
+ readonly onRuntimeChange?: ((val: Runtime) => void) | undefined;
37
+ readonly extensionState: EditorExtensionState | undefined;
38
+ selectedTab: string;
39
+ executionContext: DataSpaceExecutionContext;
40
+ dataQualityGraphFetchTreeState: DataQualityGraphFetchTreeState;
41
+ structuralValidationsGraphFetchTreeState: DataQualityGraphFetchTreeState;
42
+ showRuntimeSelector: boolean;
43
+ dataQualityQueryBuilderState: DataQualityQueryBuilderState;
44
+ resultState: DataQualityResultState;
45
+ showStructuralValidations: boolean;
46
+ constructor(editorStore: EditorStore, element: PackageableElement);
47
+ abstract get constraintsConfigurationElement(): PackageableElement;
48
+ setShowStructuralValidations(val: boolean): void;
49
+ get tabsToShow(): string[];
50
+ fetchStructuralValidations(): GeneratorFn<void>;
51
+ initialGraphFetchTreeFromClass(rootClass: Class): DataQualityRootGraphFetchTree;
52
+ initializeFilterState(filterLambda: RawLambda | undefined): void;
53
+ initializeGraphFetchTreeState(tree: DataQualityRootGraphFetchTree | undefined): void;
54
+ updateFilterElement: () => void;
55
+ initializeStructuralValidationsGraphFetchTreeState(tree: DataQualityRootGraphFetchTree | undefined): void;
56
+ get sideBarClassName(): string | undefined;
57
+ changeClass(val: Class): void;
58
+ updateElementOnClassChange(): void;
59
+ setExecutionContext(val: DataSpaceExecutionContext): void;
60
+ get isMappingReadOnly(): boolean;
61
+ get isRuntimeReadOnly(): boolean;
62
+ get isQuerySupported(): boolean;
63
+ setSelectedTab(tab: string): void;
64
+ setShowRuntimeSelector(val: boolean): void;
65
+ get hashCode(): string;
66
+ }
67
+ //# sourceMappingURL=DataQualityState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityState.d.ts","sourceRoot":"","sources":["../../../src/components/states/DataQualityState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,SAAS,EAEd,KAAK,kBAAkB,EACvB,KAAK,KAAK,EAYX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAC9F,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,6BAA6B,EAAE,MAAM,0FAA0F,CAAC;AAEzI,OAAO,EACL,KAAK,WAAW,EAChB,WAAW,EAKZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAOrE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AASjF,oBAAY,gBAAgB;IAC1B,MAAM,YAAY;IAClB,qBAAqB,0BAA0B;IAC/C,UAAU,eAAe;C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,IAAI,CA8C5B;IAEF,kDAAkD,CAChD,IAAI,EAAE,6BAA6B,GAAG,SAAS;IASjD,IAAI,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAIzC;IAED,WAAW,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI;IAS7B,0BAA0B;IAe1B,mBAAmB,CAAC,GAAG,EAAE,yBAAyB,GAAG,IAAI;IAIzD,IAAI,iBAAiB,IAAI,OAAO,CAE/B;IAED,IAAI,iBAAiB,IAAI,OAAO,CAE/B;IAED,IAAI,gBAAgB,IAAI,OAAO,CAE9B;IAED,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIjC,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAG1C,IAAI,QAAQ,IAAI,MAAM,CAMrB;CACF"}
@@ -0,0 +1,204 @@
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 { action, computed, flow, makeObservable, observable } from 'mobx';
17
+ import { buildRawLambdaFromLambdaFunction, CORE_PURE_PATH, FunctionType, GenericType, GenericTypeExplicitReference, LambdaFunction, LambdaFunctionInstanceValue, Multiplicity, observe_ValueSpecification, PackageableElementExplicitReference, VariableExpression, } from '@finos/legend-graph';
18
+ import { ElementEditorState, } from '@finos/legend-application-studio';
19
+ import { DataQualityGraphFetchTreeState } from './DataQualityGraphFetchTreeState.js';
20
+ import { DataQualityRootGraphFetchTree } from '../../graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.js';
21
+ import { buildGraphFetchTreeData } from '../utils/DataQualityGraphFetchTreeUtil.js';
22
+ import { ActionState, guaranteeNonNullable, guaranteeType, hashArray, isNonNullable, } from '@finos/legend-shared';
23
+ import {} from '@finos/legend-application';
24
+ import { DataQualityResultState } from './DataQualityResultState.js';
25
+ import { DATA_QUALITY_HASH_STRUCTURE } from '../../graph/metamodel/DSL_DataQuality_HashUtils.js';
26
+ import { buildFilterConditionExpression, processFilterLambda, QueryBuilderAdvancedWorkflowState, } from '@finos/legend-query-builder';
27
+ import { DataQualityQueryBuilderState } from './DataQualityQueryBuilderState.js';
28
+ import { getDataQualityPureGraphManagerExtension } from '../../graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.js';
29
+ import { dataQualityClassValidation_setDataQualityGraphFetchTree, dataQualityClassValidation_setFilter, } from '../../graph-manager/DSL_DataQuality_GraphModifierHelper.js';
30
+ import {} from '../DSL_DataQuality_LegendStudioPlugin_Extension.js';
31
+ export var DATA_QUALITY_TAB;
32
+ (function (DATA_QUALITY_TAB) {
33
+ DATA_QUALITY_TAB["FILTER"] = "Filter ";
34
+ DATA_QUALITY_TAB["CONSTRAINTS_SELECTION"] = "Constraints Selection";
35
+ DATA_QUALITY_TAB["TRIAL_RUNS"] = "Trial Runs";
36
+ })(DATA_QUALITY_TAB || (DATA_QUALITY_TAB = {}));
37
+ export function buildExtensionState(editorStore, dataQualityState) {
38
+ const extensionStateBuilders = editorStore.pluginManager
39
+ .getApplicationPlugins()
40
+ .flatMap((plugin) => plugin.getExtensionStates?.() ?? []);
41
+ for (const stateBuilder of extensionStateBuilders) {
42
+ const state = stateBuilder(editorStore, dataQualityState);
43
+ if (state) {
44
+ return state;
45
+ }
46
+ }
47
+ return undefined;
48
+ }
49
+ export class DataQualityState extends ElementEditorState {
50
+ applicationStore;
51
+ graphManagerState;
52
+ loadDataSpacesState = ActionState.create();
53
+ onExecutionContextChange;
54
+ onRuntimeChange;
55
+ extensionState;
56
+ selectedTab;
57
+ executionContext;
58
+ dataQualityGraphFetchTreeState;
59
+ structuralValidationsGraphFetchTreeState;
60
+ showRuntimeSelector = false;
61
+ dataQualityQueryBuilderState;
62
+ resultState;
63
+ showStructuralValidations = false;
64
+ constructor(editorStore, element) {
65
+ super(editorStore, element);
66
+ makeObservable(this, {
67
+ selectedTab: observable,
68
+ showRuntimeSelector: observable,
69
+ dataQualityGraphFetchTreeState: observable,
70
+ structuralValidationsGraphFetchTreeState: observable,
71
+ dataQualityQueryBuilderState: observable,
72
+ showStructuralValidations: observable,
73
+ constraintsConfigurationElement: computed,
74
+ setSelectedTab: action,
75
+ setExecutionContext: action,
76
+ setShowRuntimeSelector: action,
77
+ initializeGraphFetchTreeState: action,
78
+ initialGraphFetchTreeFromClass: action,
79
+ initializeStructuralValidationsGraphFetchTreeState: action,
80
+ setShowStructuralValidations: action,
81
+ updateElementOnClassChange: action,
82
+ fetchStructuralValidations: flow,
83
+ tabsToShow: computed,
84
+ hashCode: computed,
85
+ });
86
+ this.applicationStore = this.editorStore.applicationStore;
87
+ this.graphManagerState = this.editorStore.graphManagerState;
88
+ this.dataQualityQueryBuilderState = new DataQualityQueryBuilderState(this.editorStore.applicationStore, this.editorStore.graphManagerState, QueryBuilderAdvancedWorkflowState.INSTANCE, this.editorStore.applicationStore.config.options.queryBuilderConfig, undefined);
89
+ this.selectedTab = DATA_QUALITY_TAB.CONSTRAINTS_SELECTION;
90
+ this.dataQualityGraphFetchTreeState = new DataQualityGraphFetchTreeState(this);
91
+ this.structuralValidationsGraphFetchTreeState =
92
+ new DataQualityGraphFetchTreeState(this);
93
+ this.resultState = new DataQualityResultState(this);
94
+ this.extensionState = buildExtensionState(this.editorStore, this);
95
+ }
96
+ setShowStructuralValidations(val) {
97
+ this.showStructuralValidations = val;
98
+ }
99
+ get tabsToShow() {
100
+ const tabs = Object.values(DATA_QUALITY_TAB);
101
+ const extensionTabGetters = this.editorStore.pluginManager
102
+ .getApplicationPlugins()
103
+ .flatMap((plugin) => plugin.getAllTabs?.() ?? []);
104
+ for (const tabGetter of extensionTabGetters) {
105
+ tabs.push(...tabGetter());
106
+ }
107
+ return tabs;
108
+ }
109
+ *fetchStructuralValidations() {
110
+ const packagePath = this.constraintsConfigurationElement.path;
111
+ const model = this.graphManagerState.graph;
112
+ const rootGraphFetchTree = (yield getDataQualityPureGraphManagerExtension(this.graphManagerState.graphManager).fetchStructuralValidations(model, packagePath));
113
+ this.initializeStructuralValidationsGraphFetchTreeState(rootGraphFetchTree);
114
+ }
115
+ initialGraphFetchTreeFromClass(rootClass) {
116
+ return new DataQualityRootGraphFetchTree(PackageableElementExplicitReference.create(rootClass));
117
+ }
118
+ initializeFilterState(filterLambda) {
119
+ if (!filterLambda) {
120
+ return;
121
+ }
122
+ const filterSpec = observe_ValueSpecification(this.graphManagerState.graphManager.buildValueSpecification(this.graphManagerState.graphManager.serializeRawValueSpecification(filterLambda), this.graphManagerState.graph), this.dataQualityQueryBuilderState.observerContext);
123
+ const compiledValueSpecification = guaranteeType(filterSpec, LambdaFunctionInstanceValue, `Can't build filter state: data quality filter only support lambda`);
124
+ processFilterLambda(compiledValueSpecification.values[0], this.dataQualityQueryBuilderState);
125
+ }
126
+ initializeGraphFetchTreeState(tree) {
127
+ if (!tree) {
128
+ return;
129
+ }
130
+ this.dataQualityGraphFetchTreeState.treeData = buildGraphFetchTreeData(this.editorStore, tree, true, true, false);
131
+ }
132
+ updateFilterElement = () => {
133
+ const { filterState } = this.dataQualityQueryBuilderState;
134
+ const filterConditionExpressions = filterState.rootIds
135
+ .map((e) => guaranteeNonNullable(filterState.nodes.get(e)))
136
+ .map((e) => buildFilterConditionExpression(filterState, e))
137
+ .filter(isNonNullable);
138
+ if (!filterConditionExpressions.length) {
139
+ dataQualityClassValidation_setFilter(this
140
+ .constraintsConfigurationElement, undefined);
141
+ return;
142
+ }
143
+ const genericType = new GenericType(this.dataQualityQueryBuilderState.class);
144
+ const genericTypeReference = GenericTypeExplicitReference.create(genericType);
145
+ const functionType = new FunctionType(PackageableElementExplicitReference.create(this.dataQualityQueryBuilderState.graphManagerState.graph.getType(CORE_PURE_PATH.ANY)), Multiplicity.ONE);
146
+ functionType.parameters.push(new VariableExpression(filterState.lambdaParameterName, Multiplicity.ONE, genericTypeReference));
147
+ const lambdaFunction = new LambdaFunction(functionType);
148
+ lambdaFunction.expressionSequence = filterConditionExpressions;
149
+ dataQualityClassValidation_setFilter(this
150
+ .constraintsConfigurationElement, buildRawLambdaFromLambdaFunction(lambdaFunction, this.dataQualityQueryBuilderState.graphManagerState));
151
+ };
152
+ initializeStructuralValidationsGraphFetchTreeState(tree) {
153
+ if (!tree) {
154
+ return;
155
+ }
156
+ this.structuralValidationsGraphFetchTreeState.treeData =
157
+ buildGraphFetchTreeData(this.editorStore, tree, true, true, true);
158
+ }
159
+ get sideBarClassName() {
160
+ return this.showRuntimeSelector
161
+ ? 'data-quality-validation__setup__data-space--with-runtime'
162
+ : 'data-quality-validation__setup__data-space';
163
+ }
164
+ changeClass(val) {
165
+ this.dataQualityQueryBuilderState.changeClass(val);
166
+ this.dataQualityGraphFetchTreeState.onClassChange(val);
167
+ this.structuralValidationsGraphFetchTreeState =
168
+ new DataQualityGraphFetchTreeState(this);
169
+ this.resultState = new DataQualityResultState(this);
170
+ this.updateElementOnClassChange();
171
+ }
172
+ updateElementOnClassChange() {
173
+ dataQualityClassValidation_setDataQualityGraphFetchTree(this
174
+ .constraintsConfigurationElement, this.initialGraphFetchTreeFromClass(this.dataQualityQueryBuilderState.class));
175
+ dataQualityClassValidation_setFilter(this
176
+ .constraintsConfigurationElement, undefined);
177
+ }
178
+ setExecutionContext(val) {
179
+ this.executionContext = val;
180
+ }
181
+ get isMappingReadOnly() {
182
+ return false;
183
+ }
184
+ get isRuntimeReadOnly() {
185
+ return false;
186
+ }
187
+ get isQuerySupported() {
188
+ return true;
189
+ }
190
+ setSelectedTab(tab) {
191
+ this.selectedTab = tab;
192
+ }
193
+ setShowRuntimeSelector(val) {
194
+ this.showRuntimeSelector = val;
195
+ }
196
+ get hashCode() {
197
+ return hashArray([
198
+ DATA_QUALITY_HASH_STRUCTURE.DATA_QUALITY_STATE,
199
+ this.dataQualityGraphFetchTreeState,
200
+ this.dataQualityQueryBuilderState.filterState,
201
+ ]);
202
+ }
203
+ }
204
+ //# sourceMappingURL=DataQualityState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityState.js","sourceRoot":"","sources":["../../../src/components/states/DataQualityState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1E,OAAO,EAOL,gCAAgC,EAChC,cAAc,EACd,YAAY,EACZ,WAAW,EACX,4BAA4B,EAC5B,cAAc,EACd,2BAA2B,EAC3B,YAAY,EACZ,0BAA0B,EAC1B,mCAAmC,EACnC,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,kBAAkB,GACnB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,6BAA6B,EAAE,MAAM,0FAA0F,CAAC;AACzI,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAEL,WAAW,EACX,oBAAoB,EACpB,aAAa,EACb,SAAS,EACT,aAAa,GACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAsC,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAC;AACjG,OAAO,EACL,8BAA8B,EAC9B,mBAAmB,EACnB,iCAAiC,GAClC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,uCAAuC,EAAE,MAAM,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AC,IAAI,CAAC,CAAC;QACpD,IAAI,CAAC,0BAA0B,EAAE,CAAC;IACpC,CAAC;IAED,0BAA0B;QACxB,uDAAuD,CACrD,IAAI;aACD,+BAA2E,EAC9E,IAAI,CAAC,8BAA8B,CACjC,IAAI,CAAC,4BAA4B,CAAC,KAAM,CACzC,CACF,CAAC;QACF,oCAAoC,CAClC,IAAI;aACD,+BAA2E,EAC9E,SAAS,CACV,CAAC;IACJ,CAAC;IAED,mBAAmB,CAAC,GAA8B;QAChD,IAAI,CAAC,gBAAgB,GAAG,GAAG,CAAC;IAC9B,CAAC;IAED,IAAI,iBAAiB;QACnB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,iBAAiB;QACnB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,gBAAgB;QAClB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,cAAc,CAAC,GAAW;QACxB,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC;IACzB,CAAC;IAED,sBAAsB,CAAC,GAAY;QACjC,IAAI,CAAC,mBAAmB,GAAG,GAAG,CAAC;IACjC,CAAC;IACD,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,2BAA2B,CAAC,kBAAkB;YAC9C,IAAI,CAAC,8BAA8B;YACnC,IAAI,CAAC,4BAA4B,CAAC,WAAW;SAC9C,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,51 @@
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 TreeData, type TreeNodeData } from '@finos/legend-art';
17
+ import { type Hashable } from '@finos/legend-shared';
18
+ import { type AbstractProperty, type Type, type Constraint, Class } from '@finos/legend-graph';
19
+ import { type QueryBuilderExplorerTreeNodeData, type QueryBuilderExplorerTreeRootNodeData, QueryBuilderExplorerTreePropertyNodeData } from '@finos/legend-query-builder';
20
+ import type { DataQualityState } from '../states/DataQualityState.js';
21
+ import { DataQualityPropertyGraphFetchTree, DataQualityRootGraphFetchTree } from '../../graph/metamodel/pure/packageableElements/data-quality/DataQualityGraphFetchTree.js';
22
+ import { ConstraintState } from '../states/ConstraintState.js';
23
+ import type { EditorStore } from '@finos/legend-application-studio';
24
+ export declare class DataQualityGraphFetchTreeNodeData implements TreeNodeData, Hashable {
25
+ readonly id: string;
26
+ readonly label: string;
27
+ readonly tree: DataQualityPropertyGraphFetchTree | DataQualityRootGraphFetchTree;
28
+ readonly parentId?: string | undefined;
29
+ readonly editorStore: EditorStore;
30
+ isOpen?: boolean | undefined;
31
+ isReadOnly?: boolean;
32
+ childrenIds: string[];
33
+ constraints: ConstraintState[];
34
+ constructor(editorStore: EditorStore, id: string, label: string, parentId: string | undefined, graphFetchTreeNode: DataQualityPropertyGraphFetchTree | DataQualityRootGraphFetchTree);
35
+ setIsReadOnly(isReadOnly: boolean): void;
36
+ setConstraintsForClass(_class: Class, constraintsToSelect: string[]): void;
37
+ get type(): Type;
38
+ get hashCode(): string;
39
+ }
40
+ export interface DataQualityGraphFetchTreeData extends TreeData<DataQualityGraphFetchTreeNodeData> {
41
+ tree: DataQualityRootGraphFetchTree;
42
+ }
43
+ export declare const generateRootGraphFetchTreeNodeID: (parentNodeId: string | undefined, classValue: string | undefined) => string;
44
+ export declare const removeNodeRecursively: (treeData: DataQualityGraphFetchTreeData, node: DataQualityGraphFetchTreeNodeData) => void;
45
+ export declare const generateGraphFetchTreeNodeID: (property: AbstractProperty, parentNodeId: string | undefined, subType: Type | undefined) => string;
46
+ export declare const buildGraphFetchTreeData: (editorStore: EditorStore, tree: DataQualityRootGraphFetchTree, displayRoot: boolean | undefined, fetchConstraints: boolean, isReadOnly: boolean) => DataQualityGraphFetchTreeData;
47
+ export declare const isGraphFetchTreeDataEmpty: (treeData: DataQualityGraphFetchTreeData) => boolean;
48
+ export declare const isConstraintsClassesTreeEmpty: (treeData: DataQualityGraphFetchTreeData) => boolean;
49
+ export declare const updateNodeConstraints: (treeData: DataQualityGraphFetchTreeData, node: DataQualityGraphFetchTreeNodeData, constraint: Constraint, addConstraint: boolean) => void;
50
+ export declare const addQueryBuilderPropertyNode: (treeData: DataQualityGraphFetchTreeData, explorerTreeData: TreeData<QueryBuilderExplorerTreeNodeData>, node: QueryBuilderExplorerTreePropertyNodeData | QueryBuilderExplorerTreeRootNodeData, dataQualityState: DataQualityState) => void;
51
+ //# sourceMappingURL=DataQualityGraphFetchTreeUtil.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityGraphFetchTreeUtil.d.ts","sourceRoot":"","sources":["../../../src/components/utils/DataQualityGraphFetchTreeUtil.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EACL,KAAK,QAAQ,EAQd,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,IAAI,EACT,KAAK,UAAU,EAGf,KAAK,EAON,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,gCAAgC,EAGrC,KAAK,oCAAoC,EACzC,wCAAwC,EAEzC,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EACL,iCAAiC,EACjC,6BAA6B,EAC9B,MAAM,0FAA0F,CAAC;AAClG,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,KAAK,EAAE,WA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