@finos/legend-application-query 5.2.8 → 7.0.0

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 (602) hide show
  1. package/lib/application/LegendQuery.d.ts.map +1 -1
  2. package/lib/application/LegendQuery.js +4 -7
  3. package/lib/application/LegendQuery.js.map +1 -1
  4. package/lib/components/LegendQueryApplication.d.ts +0 -1
  5. package/lib/components/LegendQueryApplication.d.ts.map +1 -1
  6. package/lib/components/LegendQueryApplication.js +2 -2
  7. package/lib/components/LegendQueryApplication.js.map +1 -1
  8. package/lib/components/QueryEditor.d.ts +2 -3
  9. package/lib/components/QueryEditor.d.ts.map +1 -1
  10. package/lib/components/QueryEditor.js +83 -32
  11. package/lib/components/QueryEditor.js.map +1 -1
  12. package/lib/components/QueryEditorComponentTestUtils.d.ts +5 -1
  13. package/lib/components/QueryEditorComponentTestUtils.d.ts.map +1 -1
  14. package/lib/components/QueryEditorComponentTestUtils.js +21 -20
  15. package/lib/components/QueryEditorComponentTestUtils.js.map +1 -1
  16. package/lib/components/QueryEditorStoreProvider.d.ts +2 -3
  17. package/lib/components/QueryEditorStoreProvider.d.ts.map +1 -1
  18. package/lib/components/QueryEditorStoreProvider.js +5 -5
  19. package/lib/components/QueryEditorStoreProvider.js.map +1 -1
  20. package/lib/components/QuerySetup.js +17 -17
  21. package/lib/components/QuerySetup.js.map +1 -1
  22. package/lib/index.css +2 -2
  23. package/lib/index.css.map +1 -1
  24. package/lib/index.d.ts +2 -4
  25. package/lib/index.d.ts.map +1 -1
  26. package/lib/index.js +2 -4
  27. package/lib/index.js.map +1 -1
  28. package/lib/package.json +8 -14
  29. package/lib/stores/LegendQueryApplicationPlugin.d.ts +7 -0
  30. package/lib/stores/LegendQueryApplicationPlugin.d.ts.map +1 -1
  31. package/lib/stores/LegendQueryApplicationPlugin.js.map +1 -1
  32. package/lib/stores/LegendQueryRouter.d.ts +8 -12
  33. package/lib/stores/LegendQueryRouter.d.ts.map +1 -1
  34. package/lib/stores/LegendQueryRouter.js +6 -7
  35. package/lib/stores/LegendQueryRouter.js.map +1 -1
  36. package/lib/stores/QueryEditorStore.d.ts +22 -11
  37. package/lib/stores/QueryEditorStore.d.ts.map +1 -1
  38. package/lib/stores/QueryEditorStore.js +102 -67
  39. package/lib/stores/QueryEditorStore.js.map +1 -1
  40. package/lib/stores/QuerySetupStore.d.ts +4 -4
  41. package/lib/stores/QuerySetupStore.d.ts.map +1 -1
  42. package/lib/stores/QuerySetupStore.js +4 -4
  43. package/lib/stores/QuerySetupStore.js.map +1 -1
  44. package/package.json +15 -21
  45. package/src/application/LegendQuery.tsx +7 -8
  46. package/src/components/LegendQueryApplication.tsx +7 -7
  47. package/src/components/QueryEditor.tsx +371 -134
  48. package/src/components/QueryEditorComponentTestUtils.tsx +40 -29
  49. package/src/components/QueryEditorStoreProvider.tsx +7 -9
  50. package/src/components/QuerySetup.tsx +25 -25
  51. package/src/index.ts +2 -10
  52. package/src/stores/LegendQueryApplicationPlugin.ts +12 -0
  53. package/src/stores/LegendQueryRouter.ts +11 -16
  54. package/src/stores/QueryEditorStore.ts +167 -113
  55. package/src/stores/QuerySetupStore.ts +8 -6
  56. package/tsconfig.json +2 -111
  57. package/tsconfig.package.json +1 -1
  58. package/lib/QueryBuilder_Const.d.ts +0 -77
  59. package/lib/QueryBuilder_Const.d.ts.map +0 -1
  60. package/lib/QueryBuilder_Const.js +0 -85
  61. package/lib/QueryBuilder_Const.js.map +0 -1
  62. package/lib/components/QueryBuilder.d.ts +0 -23
  63. package/lib/components/QueryBuilder.d.ts.map +0 -1
  64. package/lib/components/QueryBuilder.js +0 -111
  65. package/lib/components/QueryBuilder.js.map +0 -1
  66. package/lib/components/QueryBuilderParameterPanel.d.ts +0 -30
  67. package/lib/components/QueryBuilderParameterPanel.d.ts.map +0 -1
  68. package/lib/components/QueryBuilderParameterPanel.js +0 -128
  69. package/lib/components/QueryBuilderParameterPanel.js.map +0 -1
  70. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +0 -30
  71. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +0 -1
  72. package/lib/components/QueryBuilderPropertyExpressionEditor.js +0 -116
  73. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +0 -1
  74. package/lib/components/QueryBuilderResultPanel.d.ts +0 -23
  75. package/lib/components/QueryBuilderResultPanel.d.ts.map +0 -1
  76. package/lib/components/QueryBuilderResultPanel.js +0 -242
  77. package/lib/components/QueryBuilderResultPanel.js.map +0 -1
  78. package/lib/components/QueryBuilderSetupPanel.d.ts +0 -23
  79. package/lib/components/QueryBuilderSetupPanel.d.ts.map +0 -1
  80. package/lib/components/QueryBuilderSetupPanel.js +0 -149
  81. package/lib/components/QueryBuilderSetupPanel.js.map +0 -1
  82. package/lib/components/QueryBuilderTextEditor.d.ts +0 -23
  83. package/lib/components/QueryBuilderTextEditor.d.ts.map +0 -1
  84. package/lib/components/QueryBuilderTextEditor.js +0 -48
  85. package/lib/components/QueryBuilderTextEditor.js.map +0 -1
  86. package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts +0 -23
  87. package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts.map +0 -1
  88. package/lib/components/QueryBuilderUnsupportedQueryEditor.js +0 -37
  89. package/lib/components/QueryBuilderUnsupportedQueryEditor.js.map +0 -1
  90. package/lib/components/QueryBuilder_TestID.d.ts +0 -26
  91. package/lib/components/QueryBuilder_TestID.d.ts.map +0 -1
  92. package/lib/components/QueryBuilder_TestID.js +0 -27
  93. package/lib/components/QueryBuilder_TestID.js.map +0 -1
  94. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts +0 -36
  95. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +0 -1
  96. package/lib/components/explorer/QueryBuilderExplorerPanel.js +0 -335
  97. package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +0 -1
  98. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts +0 -23
  99. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +0 -1
  100. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js +0 -147
  101. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +0 -1
  102. package/lib/components/explorer/QueryBuilderMilestoneEditor.d.ts +0 -24
  103. package/lib/components/explorer/QueryBuilderMilestoneEditor.d.ts.map +0 -1
  104. package/lib/components/explorer/QueryBuilderMilestoneEditor.js +0 -120
  105. package/lib/components/explorer/QueryBuilderMilestoneEditor.js.map +0 -1
  106. package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts +0 -24
  107. package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts.map +0 -1
  108. package/lib/components/explorer/QueryBuilderPropertySearchPanel.js +0 -200
  109. package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +0 -1
  110. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts +0 -23
  111. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts.map +0 -1
  112. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js +0 -52
  113. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js.map +0 -1
  114. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +0 -32
  115. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +0 -1
  116. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js +0 -94
  117. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +0 -1
  118. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +0 -31
  119. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +0 -1
  120. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +0 -378
  121. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +0 -1
  122. package/lib/components/fetch-structure/QueryBuilderProjectionPanel.d.ts +0 -23
  123. package/lib/components/fetch-structure/QueryBuilderProjectionPanel.d.ts.map +0 -1
  124. package/lib/components/fetch-structure/QueryBuilderProjectionPanel.js +0 -216
  125. package/lib/components/fetch-structure/QueryBuilderProjectionPanel.js.map +0 -1
  126. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts +0 -23
  127. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +0 -1
  128. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +0 -88
  129. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +0 -1
  130. package/lib/components/filter/QueryBuilderFilterPanel.d.ts +0 -23
  131. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +0 -1
  132. package/lib/components/filter/QueryBuilderFilterPanel.js +0 -316
  133. package/lib/components/filter/QueryBuilderFilterPanel.js.map +0 -1
  134. package/lib/components/shared/ElementIconUtils.d.ts +0 -18
  135. package/lib/components/shared/ElementIconUtils.d.ts.map +0 -1
  136. package/lib/components/shared/ElementIconUtils.js +0 -37
  137. package/lib/components/shared/ElementIconUtils.js.map +0 -1
  138. package/lib/components/shared/QueryBuilderLambdaEditor.d.ts +0 -43
  139. package/lib/components/shared/QueryBuilderLambdaEditor.d.ts.map +0 -1
  140. package/lib/components/shared/QueryBuilderLambdaEditor.js +0 -47
  141. package/lib/components/shared/QueryBuilderLambdaEditor.js.map +0 -1
  142. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts +0 -20
  143. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts.map +0 -1
  144. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js +0 -28
  145. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js.map +0 -1
  146. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts +0 -26
  147. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts.map +0 -1
  148. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js +0 -32
  149. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js.map +0 -1
  150. package/lib/graphManager/QueryBuilder_GraphManagerPlugin.d.ts +0 -21
  151. package/lib/graphManager/QueryBuilder_GraphManagerPlugin.d.ts.map +0 -1
  152. package/lib/graphManager/QueryBuilder_GraphManagerPlugin.js +0 -27
  153. package/lib/graphManager/QueryBuilder_GraphManagerPlugin.js.map +0 -1
  154. package/lib/graphManager/QueryBuilder_GraphManagerPreset.d.ts +0 -24
  155. package/lib/graphManager/QueryBuilder_GraphManagerPreset.d.ts.map +0 -1
  156. package/lib/graphManager/QueryBuilder_GraphManagerPreset.js +0 -32
  157. package/lib/graphManager/QueryBuilder_GraphManagerPreset.js.map +0 -1
  158. package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.d.ts +0 -21
  159. package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.d.ts.map +0 -1
  160. package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.js +0 -20
  161. package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.js.map +0 -1
  162. package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.d.ts +0 -21
  163. package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.d.ts.map +0 -1
  164. package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.js +0 -20
  165. package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.js.map +0 -1
  166. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts +0 -25
  167. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts.map +0 -1
  168. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js +0 -21
  169. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js.map +0 -1
  170. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.d.ts +0 -18
  171. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.d.ts.map +0 -1
  172. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.js +0 -20
  173. package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.js.map +0 -1
  174. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts +0 -22
  175. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +0 -1
  176. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +0 -70
  177. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +0 -1
  178. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.d.ts +0 -22
  179. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.d.ts.map +0 -1
  180. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.js +0 -207
  181. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.js.map +0 -1
  182. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.d.ts +0 -18
  183. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.d.ts.map +0 -1
  184. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.js +0 -18
  185. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.js.map +0 -1
  186. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts +0 -29
  187. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts.map +0 -1
  188. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js +0 -182
  189. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js.map +0 -1
  190. package/lib/stores/QueryBuilderGroupOperationHelper.d.ts +0 -22
  191. package/lib/stores/QueryBuilderGroupOperationHelper.d.ts.map +0 -1
  192. package/lib/stores/QueryBuilderGroupOperationHelper.js +0 -43
  193. package/lib/stores/QueryBuilderGroupOperationHelper.js.map +0 -1
  194. package/lib/stores/QueryBuilderPreviewDataHelper.d.ts +0 -26
  195. package/lib/stores/QueryBuilderPreviewDataHelper.d.ts.map +0 -1
  196. package/lib/stores/QueryBuilderPreviewDataHelper.js +0 -143
  197. package/lib/stores/QueryBuilderPreviewDataHelper.js.map +0 -1
  198. package/lib/stores/QueryBuilderPropertyEditorState.d.ts +0 -62
  199. package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +0 -1
  200. package/lib/stores/QueryBuilderPropertyEditorState.js +0 -395
  201. package/lib/stores/QueryBuilderPropertyEditorState.js.map +0 -1
  202. package/lib/stores/QueryBuilderResultState.d.ts +0 -41
  203. package/lib/stores/QueryBuilderResultState.d.ts.map +0 -1
  204. package/lib/stores/QueryBuilderResultState.js +0 -176
  205. package/lib/stores/QueryBuilderResultState.js.map +0 -1
  206. package/lib/stores/QueryBuilderSetupState.d.ts +0 -46
  207. package/lib/stores/QueryBuilderSetupState.d.ts.map +0 -1
  208. package/lib/stores/QueryBuilderSetupState.js +0 -163
  209. package/lib/stores/QueryBuilderSetupState.js.map +0 -1
  210. package/lib/stores/QueryBuilderState.d.ts +0 -100
  211. package/lib/stores/QueryBuilderState.d.ts.map +0 -1
  212. package/lib/stores/QueryBuilderState.js +0 -308
  213. package/lib/stores/QueryBuilderState.js.map +0 -1
  214. package/lib/stores/QueryBuilderStateBuilder.d.ts +0 -124
  215. package/lib/stores/QueryBuilderStateBuilder.d.ts.map +0 -1
  216. package/lib/stores/QueryBuilderStateBuilder.js +0 -310
  217. package/lib/stores/QueryBuilderStateBuilder.js.map +0 -1
  218. package/lib/stores/QueryBuilderStateTestUtils.d.ts +0 -24
  219. package/lib/stores/QueryBuilderStateTestUtils.d.ts.map +0 -1
  220. package/lib/stores/QueryBuilderStateTestUtils.js +0 -50
  221. package/lib/stores/QueryBuilderStateTestUtils.js.map +0 -1
  222. package/lib/stores/QueryBuilderTypeaheadHelper.d.ts +0 -24
  223. package/lib/stores/QueryBuilderTypeaheadHelper.d.ts.map +0 -1
  224. package/lib/stores/QueryBuilderTypeaheadHelper.js +0 -86
  225. package/lib/stores/QueryBuilderTypeaheadHelper.js.map +0 -1
  226. package/lib/stores/QueryBuilderUnsupportedState.d.ts +0 -26
  227. package/lib/stores/QueryBuilderUnsupportedState.d.ts.map +0 -1
  228. package/lib/stores/QueryBuilderUnsupportedState.js +0 -36
  229. package/lib/stores/QueryBuilderUnsupportedState.js.map +0 -1
  230. package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts +0 -20
  231. package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +0 -1
  232. package/lib/stores/QueryBuilderValueSpecificationBuilder.js +0 -87
  233. package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +0 -1
  234. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts +0 -27
  235. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +0 -1
  236. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +0 -156
  237. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +0 -1
  238. package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts +0 -61
  239. package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +0 -1
  240. package/lib/stores/QueryBuilderValueSpecificationHelper.js +0 -235
  241. package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +0 -1
  242. package/lib/stores/QueryParametersState.d.ts +0 -28
  243. package/lib/stores/QueryParametersState.d.ts.map +0 -1
  244. package/lib/stores/QueryParametersState.js +0 -39
  245. package/lib/stores/QueryParametersState.js.map +0 -1
  246. package/lib/stores/QueryTextEditorState.d.ts +0 -49
  247. package/lib/stores/QueryTextEditorState.d.ts.map +0 -1
  248. package/lib/stores/QueryTextEditorState.js +0 -145
  249. package/lib/stores/QueryTextEditorState.js.map +0 -1
  250. package/lib/stores/explorer/QueryBuilderExplorerState.d.ts +0 -99
  251. package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +0 -1
  252. package/lib/stores/explorer/QueryBuilderExplorerState.js +0 -442
  253. package/lib/stores/explorer/QueryBuilderExplorerState.js.map +0 -1
  254. package/lib/stores/explorer/QueryBuilderPropertySearchPanelState.d.ts +0 -46
  255. package/lib/stores/explorer/QueryBuilderPropertySearchPanelState.d.ts.map +0 -1
  256. package/lib/stores/explorer/QueryBuilderPropertySearchPanelState.js +0 -242
  257. package/lib/stores/explorer/QueryBuilderPropertySearchPanelState.js.map +0 -1
  258. package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts +0 -59
  259. package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts.map +0 -1
  260. package/lib/stores/explorer/QueryFunctionsExplorerState.js +0 -229
  261. package/lib/stores/explorer/QueryFunctionsExplorerState.js.map +0 -1
  262. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +0 -40
  263. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +0 -1
  264. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js +0 -34
  265. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +0 -1
  266. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts +0 -27
  267. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts.map +0 -1
  268. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js +0 -74
  269. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js.map +0 -1
  270. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +0 -49
  271. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +0 -1
  272. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +0 -157
  273. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +0 -1
  274. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts +0 -20
  275. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts.map +0 -1
  276. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js +0 -62
  277. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js.map +0 -1
  278. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts +0 -42
  279. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +0 -1
  280. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js +0 -173
  281. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +0 -1
  282. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.d.ts +0 -26
  283. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.d.ts.map +0 -1
  284. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.js +0 -72
  285. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.js.map +0 -1
  286. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts +0 -73
  287. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts.map +0 -1
  288. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js +0 -187
  289. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js.map +0 -1
  290. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.d.ts +0 -68
  291. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.d.ts.map +0 -1
  292. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js +0 -304
  293. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js.map +0 -1
  294. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.d.ts +0 -25
  295. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.d.ts.map +0 -1
  296. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.js +0 -186
  297. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.js.map +0 -1
  298. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts +0 -26
  299. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +0 -1
  300. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js +0 -189
  301. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +0 -1
  302. package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.d.ts +0 -43
  303. package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.d.ts.map +0 -1
  304. package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.js +0 -77
  305. package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.js.map +0 -1
  306. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts +0 -32
  307. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts.map +0 -1
  308. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js +0 -36
  309. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js.map +0 -1
  310. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.d.ts +0 -18
  311. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.d.ts.map +0 -1
  312. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.js +0 -38
  313. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.js.map +0 -1
  314. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts +0 -42
  315. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts.map +0 -1
  316. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js +0 -103
  317. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js.map +0 -1
  318. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.d.ts +0 -20
  319. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map +0 -1
  320. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.js +0 -96
  321. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.js.map +0 -1
  322. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.d.ts +0 -22
  323. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.d.ts.map +0 -1
  324. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.js +0 -40
  325. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.js.map +0 -1
  326. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts +0 -27
  327. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +0 -1
  328. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js +0 -50
  329. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +0 -1
  330. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts +0 -27
  331. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +0 -1
  332. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js +0 -55
  333. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +0 -1
  334. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts +0 -26
  335. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts.map +0 -1
  336. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js +0 -50
  337. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +0 -1
  338. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts +0 -27
  339. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +0 -1
  340. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +0 -78
  341. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +0 -1
  342. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts +0 -27
  343. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts.map +0 -1
  344. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js +0 -67
  345. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +0 -1
  346. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts +0 -26
  347. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts.map +0 -1
  348. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js +0 -86
  349. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +0 -1
  350. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts +0 -26
  351. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts.map +0 -1
  352. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js +0 -86
  353. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +0 -1
  354. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts +0 -27
  355. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +0 -1
  356. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js +0 -50
  357. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +0 -1
  358. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts +0 -27
  359. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +0 -1
  360. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js +0 -50
  361. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +0 -1
  362. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts +0 -26
  363. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts.map +0 -1
  364. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js +0 -45
  365. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +0 -1
  366. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts +0 -29
  367. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts.map +0 -1
  368. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js +0 -30
  369. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js.map +0 -1
  370. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts +0 -18
  371. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts.map +0 -1
  372. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.js +0 -44
  373. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.js.map +0 -1
  374. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts +0 -135
  375. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts.map +0 -1
  376. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js +0 -586
  377. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js.map +0 -1
  378. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.d.ts +0 -22
  379. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +0 -1
  380. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js +0 -122
  381. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js.map +0 -1
  382. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts +0 -19
  383. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map +0 -1
  384. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js +0 -79
  385. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +0 -1
  386. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts +0 -23
  387. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts.map +0 -1
  388. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +0 -74
  389. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +0 -1
  390. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts +0 -32
  391. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +0 -1
  392. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +0 -75
  393. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +0 -1
  394. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts +0 -32
  395. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +0 -1
  396. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +0 -75
  397. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +0 -1
  398. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts +0 -32
  399. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +0 -1
  400. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +0 -118
  401. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +0 -1
  402. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts +0 -27
  403. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +0 -1
  404. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +0 -81
  405. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +0 -1
  406. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts +0 -24
  407. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +0 -1
  408. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +0 -43
  409. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +0 -1
  410. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts +0 -32
  411. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +0 -1
  412. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js +0 -104
  413. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +0 -1
  414. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts +0 -33
  415. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +0 -1
  416. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +0 -67
  417. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +0 -1
  418. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts +0 -27
  419. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +0 -1
  420. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +0 -81
  421. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +0 -1
  422. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts +0 -24
  423. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +0 -1
  424. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js +0 -43
  425. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +0 -1
  426. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts +0 -32
  427. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +0 -1
  428. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +0 -75
  429. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +0 -1
  430. package/lib/stores/filter/QueryBuilderFilterOperator.d.ts +0 -27
  431. package/lib/stores/filter/QueryBuilderFilterOperator.d.ts.map +0 -1
  432. package/lib/stores/filter/QueryBuilderFilterOperator.js +0 -20
  433. package/lib/stores/filter/QueryBuilderFilterOperator.js.map +0 -1
  434. package/lib/stores/filter/QueryBuilderFilterOperatorLoader.d.ts +0 -18
  435. package/lib/stores/filter/QueryBuilderFilterOperatorLoader.d.ts.map +0 -1
  436. package/lib/stores/filter/QueryBuilderFilterOperatorLoader.js +0 -44
  437. package/lib/stores/filter/QueryBuilderFilterOperatorLoader.js.map +0 -1
  438. package/lib/stores/filter/QueryBuilderFilterState.d.ts +0 -123
  439. package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +0 -1
  440. package/lib/stores/filter/QueryBuilderFilterState.js +0 -531
  441. package/lib/stores/filter/QueryBuilderFilterState.js.map +0 -1
  442. package/lib/stores/filter/QueryBuilderFilterStateBuilder.d.ts +0 -19
  443. package/lib/stores/filter/QueryBuilderFilterStateBuilder.d.ts.map +0 -1
  444. package/lib/stores/filter/QueryBuilderFilterStateBuilder.js +0 -74
  445. package/lib/stores/filter/QueryBuilderFilterStateBuilder.js.map +0 -1
  446. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts +0 -19
  447. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts.map +0 -1
  448. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js +0 -78
  449. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +0 -1
  450. package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.d.ts +0 -21
  451. package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.d.ts.map +0 -1
  452. package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.js +0 -257
  453. package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.js.map +0 -1
  454. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts +0 -32
  455. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +0 -1
  456. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +0 -71
  457. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js.map +0 -1
  458. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts +0 -32
  459. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +0 -1
  460. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js +0 -71
  461. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +0 -1
  462. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts +0 -32
  463. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +0 -1
  464. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js +0 -115
  465. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +0 -1
  466. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts +0 -27
  467. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +0 -1
  468. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js +0 -83
  469. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js.map +0 -1
  470. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts +0 -27
  471. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +0 -1
  472. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js +0 -83
  473. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +0 -1
  474. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts +0 -32
  475. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts.map +0 -1
  476. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js +0 -103
  477. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +0 -1
  478. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts +0 -32
  479. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +0 -1
  480. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js +0 -65
  481. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +0 -1
  482. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts +0 -27
  483. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts.map +0 -1
  484. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js +0 -83
  485. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js.map +0 -1
  486. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts +0 -27
  487. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +0 -1
  488. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js +0 -83
  489. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js.map +0 -1
  490. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts +0 -32
  491. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +0 -1
  492. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js +0 -71
  493. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +0 -1
  494. package/src/QueryBuilder_Const.ts +0 -88
  495. package/src/components/QueryBuilder.tsx +0 -412
  496. package/src/components/QueryBuilderParameterPanel.tsx +0 -403
  497. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +0 -374
  498. package/src/components/QueryBuilderResultPanel.tsx +0 -640
  499. package/src/components/QueryBuilderSetupPanel.tsx +0 -342
  500. package/src/components/QueryBuilderTextEditor.tsx +0 -127
  501. package/src/components/QueryBuilderUnsupportedQueryEditor.tsx +0 -112
  502. package/src/components/QueryBuilder_TestID.ts +0 -26
  503. package/src/components/explorer/QueryBuilderExplorerPanel.tsx +0 -927
  504. package/src/components/explorer/QueryBuilderFunctionsExplorerPanel.tsx +0 -554
  505. package/src/components/explorer/QueryBuilderMilestoneEditor.tsx +0 -291
  506. package/src/components/explorer/QueryBuilderPropertySearchPanel.tsx +0 -617
  507. package/src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx +0 -112
  508. package/src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx +0 -276
  509. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +0 -1103
  510. package/src/components/fetch-structure/QueryBuilderProjectionPanel.tsx +0 -649
  511. package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +0 -254
  512. package/src/components/filter/QueryBuilderFilterPanel.tsx +0 -890
  513. package/src/components/shared/ElementIconUtils.tsx +0 -47
  514. package/src/components/shared/QueryBuilderLambdaEditor.tsx +0 -120
  515. package/src/components/shared/QueryBuilderPanelIssueCountBadge.tsx +0 -40
  516. package/src/components/shared/QueryBuilderPropertyInfoTooltip.tsx +0 -87
  517. package/src/graphManager/QueryBuilder_GraphManagerPlugin.ts +0 -32
  518. package/src/graphManager/QueryBuilder_GraphManagerPreset.ts +0 -33
  519. package/src/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.ts +0 -22
  520. package/src/graphManager/action/analytics/ServiceExecutionAnalysis.ts +0 -22
  521. package/src/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.ts +0 -47
  522. package/src/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.ts +0 -27
  523. package/src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +0 -167
  524. package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.ts +0 -573
  525. package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.ts +0 -28
  526. package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.ts +0 -296
  527. package/src/stores/QueryBuilderGroupOperationHelper.ts +0 -54
  528. package/src/stores/QueryBuilderPreviewDataHelper.ts +0 -210
  529. package/src/stores/QueryBuilderPropertyEditorState.ts +0 -668
  530. package/src/stores/QueryBuilderResultState.ts +0 -281
  531. package/src/stores/QueryBuilderSetupState.ts +0 -236
  532. package/src/stores/QueryBuilderState.ts +0 -465
  533. package/src/stores/QueryBuilderStateBuilder.ts +0 -584
  534. package/src/stores/QueryBuilderStateTestUtils.ts +0 -96
  535. package/src/stores/QueryBuilderTypeaheadHelper.ts +0 -155
  536. package/src/stores/QueryBuilderUnsupportedState.ts +0 -42
  537. package/src/stores/QueryBuilderValueSpecificationBuilder.ts +0 -179
  538. package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +0 -254
  539. package/src/stores/QueryBuilderValueSpecificationHelper.ts +0 -359
  540. package/src/stores/QueryParametersState.ts +0 -52
  541. package/src/stores/QueryTextEditorState.ts +0 -203
  542. package/src/stores/explorer/QueryBuilderExplorerState.ts +0 -810
  543. package/src/stores/explorer/QueryBuilderPropertySearchPanelState.ts +0 -333
  544. package/src/stores/explorer/QueryFunctionsExplorerState.ts +0 -376
  545. package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +0 -65
  546. package/src/stores/fetch-structure/QueryBuilderFetchStructureState.ts +0 -108
  547. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +0 -240
  548. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.ts +0 -131
  549. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts +0 -282
  550. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.ts +0 -154
  551. package/src/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.ts +0 -329
  552. package/src/stores/fetch-structure/projection/QueryBuilderProjectionState.ts +0 -569
  553. package/src/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.ts +0 -426
  554. package/src/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +0 -416
  555. package/src/stores/fetch-structure/projection/QueryResultSetModifierState.ts +0 -95
  556. package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.ts +0 -79
  557. package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.ts +0 -41
  558. package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.ts +0 -145
  559. package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.ts +0 -228
  560. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.ts +0 -109
  561. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.ts +0 -98
  562. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.ts +0 -106
  563. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.ts +0 -96
  564. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +0 -173
  565. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.ts +0 -155
  566. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.ts +0 -174
  567. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.ts +0 -174
  568. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.ts +0 -98
  569. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.ts +0 -98
  570. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.ts +0 -88
  571. package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.ts +0 -66
  572. package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.ts +0 -65
  573. package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.ts +0 -808
  574. package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.ts +0 -297
  575. package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts +0 -121
  576. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +0 -129
  577. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +0 -140
  578. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +0 -135
  579. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +0 -218
  580. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +0 -143
  581. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +0 -70
  582. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +0 -183
  583. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +0 -113
  584. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +0 -143
  585. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts +0 -70
  586. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +0 -135
  587. package/src/stores/filter/QueryBuilderFilterOperator.ts +0 -52
  588. package/src/stores/filter/QueryBuilderFilterOperatorLoader.ts +0 -65
  589. package/src/stores/filter/QueryBuilderFilterState.ts +0 -738
  590. package/src/stores/filter/QueryBuilderFilterStateBuilder.ts +0 -155
  591. package/src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts +0 -120
  592. package/src/stores/filter/operators/QueryBuilderFilterOperatorHelper.ts +0 -524
  593. package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +0 -134
  594. package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +0 -134
  595. package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +0 -211
  596. package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +0 -145
  597. package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +0 -145
  598. package/src/stores/filter/operators/QueryBuilderFilterOperator_In.ts +0 -181
  599. package/src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts +0 -125
  600. package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThan.ts +0 -145
  601. package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +0 -145
  602. package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +0 -134
@@ -1,308 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { action, flow, observable, makeObservable } from 'mobx';
17
- import { LogEvent, assertErrorThrown, guaranteeNonNullable, guaranteeType, filterByType, hashObject, } from '@finos/legend-shared';
18
- import { QueryBuilderFilterState } from './filter/QueryBuilderFilterState.js';
19
- import { QueryBuilderFetchStructureState } from './fetch-structure/QueryBuilderFetchStructureState.js';
20
- import { QueryTextEditorMode, QueryTextEditorState, } from './QueryTextEditorState.js';
21
- import { QueryBuilderSetupState } from './QueryBuilderSetupState.js';
22
- import { QueryBuilderExplorerState } from './explorer/QueryBuilderExplorerState.js';
23
- import { QueryBuilderResultState } from './QueryBuilderResultState.js';
24
- import { processQueryLambdaFunction, processParameters, } from './QueryBuilderStateBuilder.js';
25
- import { QueryBuilderUnsupportedState } from './QueryBuilderUnsupportedState.js';
26
- import { GenericTypeExplicitReference, GenericType, PRIMITIVE_TYPE, GRAPH_MANAGER_EVENT, CompilationError, extractSourceInformationCoordinates, LambdaFunctionInstanceValue, RawLambda, TYPICAL_MULTIPLICITY_TYPE, VariableExpression, observe_ValueSpecification, ObserverContext, isStubbed_RawLambda, buildLambdaVariableExpressions, buildRawLambdaFromLambdaFunction, } from '@finos/legend-graph';
27
- import { buildLambdaFunction } from './QueryBuilderValueSpecificationBuilder.js';
28
- import { LambdaParameterState, } from '@finos/legend-application';
29
- import { QueryFunctionsExplorerState } from './explorer/QueryFunctionsExplorerState.js';
30
- import { QueryParametersState } from './QueryParametersState.js';
31
- import { getQueryBuilderCoreFilterOperators } from './filter/QueryBuilderFilterOperatorLoader.js';
32
- export class QueryBuilderMode {
33
- /**
34
- * This flag is for turning on/off dnd from projection panel to filter panel,
35
- * and will be leveraged when the concepts of workflows are introduced into query builder.
36
- */
37
- get isDnDFetchStructureToFilterSupported() {
38
- return true;
39
- }
40
- }
41
- export class StandardQueryBuilderMode extends QueryBuilderMode {
42
- get isParametersDisabled() {
43
- return false;
44
- }
45
- get isResultPanelHidden() {
46
- return false;
47
- }
48
- }
49
- class QueryBuilderChangeDetectionState {
50
- querybuildState;
51
- queryHashCode = hashObject(new RawLambda(undefined, undefined));
52
- isEnabled = false;
53
- constructor(queryBuilderState) {
54
- this.querybuildState = queryBuilderState;
55
- }
56
- setQueryHashCode(val) {
57
- this.queryHashCode = val;
58
- }
59
- setIsEnabled(val) {
60
- this.isEnabled = val;
61
- }
62
- }
63
- export class QueryBuilderState {
64
- applicationStore;
65
- graphManagerState;
66
- mode;
67
- querySetupState;
68
- explorerState;
69
- queryParametersState;
70
- queryFunctionsExplorerState;
71
- fetchStructureState;
72
- filterState;
73
- resultState;
74
- queryTextEditorState;
75
- queryUnsupportedState;
76
- observableContext;
77
- changeDetectionState;
78
- isCompiling = false;
79
- backdrop = false;
80
- showFunctionPanel = false;
81
- showParameterPanel = false;
82
- filterOperators = getQueryBuilderCoreFilterOperators();
83
- constructor(applicationStore, graphManagerState, queryBuilderMode) {
84
- makeObservable(this, {
85
- querySetupState: observable,
86
- explorerState: observable,
87
- queryParametersState: observable,
88
- queryFunctionsExplorerState: observable,
89
- fetchStructureState: observable,
90
- filterState: observable,
91
- resultState: observable,
92
- queryTextEditorState: observable,
93
- queryUnsupportedState: observable,
94
- isCompiling: observable,
95
- backdrop: observable,
96
- mode: observable,
97
- showFunctionPanel: observable,
98
- showParameterPanel: observable,
99
- changeDetectionState: observable,
100
- setMode: action,
101
- resetQueryBuilder: action,
102
- resetQueryContent: action,
103
- buildStateFromRawLambda: action,
104
- saveQuery: action,
105
- setBackdrop: action,
106
- setShowFunctionPanel: action,
107
- setShowParameterPanel: action,
108
- changeClass: action,
109
- compileQuery: flow,
110
- });
111
- this.applicationStore = applicationStore;
112
- this.graphManagerState = graphManagerState;
113
- this.querySetupState = new QueryBuilderSetupState(this);
114
- this.explorerState = new QueryBuilderExplorerState(this);
115
- this.queryParametersState = new QueryParametersState(this);
116
- this.queryFunctionsExplorerState = new QueryFunctionsExplorerState(this);
117
- this.fetchStructureState = new QueryBuilderFetchStructureState(this);
118
- this.filterState = new QueryBuilderFilterState(this, this.filterOperators);
119
- this.resultState = new QueryBuilderResultState(this);
120
- this.queryTextEditorState = new QueryTextEditorState(this);
121
- this.queryUnsupportedState = new QueryBuilderUnsupportedState(this);
122
- this.mode = queryBuilderMode;
123
- this.observableContext = new ObserverContext(this.graphManagerState.pluginManager.getPureGraphManagerPlugins());
124
- this.changeDetectionState = new QueryBuilderChangeDetectionState(this);
125
- }
126
- setMode(val) {
127
- this.mode = val;
128
- }
129
- setBackdrop(val) {
130
- this.backdrop = val;
131
- }
132
- setShowFunctionPanel(val) {
133
- this.showFunctionPanel = val;
134
- }
135
- setShowParameterPanel(val) {
136
- this.showParameterPanel = val;
137
- }
138
- getQuery(options) {
139
- if (!this.isQuerySupported()) {
140
- const parameters = this.queryParametersState.parameterStates.map((e) => this.graphManagerState.graphManager.serializeValueSpecification(e.parameter));
141
- this.queryUnsupportedState.setRawLambda(new RawLambda(parameters, this.queryUnsupportedState.rawLambda?.body));
142
- return guaranteeNonNullable(this.queryUnsupportedState.rawLambda);
143
- }
144
- return buildRawLambdaFromLambdaFunction(buildLambdaFunction(this, {
145
- keepSourceInformation: Boolean(options?.keepSourceInformation),
146
- }), this.graphManagerState);
147
- }
148
- resetQueryBuilder() {
149
- const resultState = new QueryBuilderResultState(this);
150
- resultState.setPreviewLimit(this.resultState.previewLimit);
151
- this.resultState = resultState;
152
- this.queryTextEditorState = new QueryTextEditorState(this);
153
- this.queryUnsupportedState = new QueryBuilderUnsupportedState(this);
154
- this.setShowParameterPanel(false);
155
- }
156
- resetQueryContent() {
157
- this.explorerState = new QueryBuilderExplorerState(this);
158
- this.explorerState.refreshTreeData();
159
- this.queryParametersState = new QueryParametersState(this);
160
- this.queryFunctionsExplorerState = new QueryFunctionsExplorerState(this);
161
- this.filterState = new QueryBuilderFilterState(this, this.filterOperators);
162
- const currentFetchStructureImplementationType = this.fetchStructureState.implementation.type;
163
- this.fetchStructureState = new QueryBuilderFetchStructureState(this);
164
- if (currentFetchStructureImplementationType !==
165
- this.fetchStructureState.implementation.type) {
166
- this.fetchStructureState.changeImplementation(currentFetchStructureImplementationType);
167
- }
168
- }
169
- initialize(rawLambda, options) {
170
- try {
171
- this.buildStateFromRawLambda(rawLambda);
172
- if (this.queryParametersState.parameterStates.length > 0) {
173
- this.setShowParameterPanel(true);
174
- }
175
- }
176
- catch (error) {
177
- assertErrorThrown(error);
178
- this.changeClass(undefined, true);
179
- const parameters = buildLambdaVariableExpressions(rawLambda, this.graphManagerState)
180
- .map((param) => observe_ValueSpecification(param, this.observableContext))
181
- .filter(filterByType(VariableExpression));
182
- processParameters(parameters, this);
183
- if (options?.notifyError) {
184
- this.applicationStore.notifyError(`Can't initialize query builder: ${error.message}`);
185
- }
186
- this.queryUnsupportedState.setLambdaError(error);
187
- this.queryUnsupportedState.setRawLambda(rawLambda);
188
- }
189
- }
190
- /**
191
- * Process the raw lambda, and build the query builder state.
192
- *
193
- * @throws error if there is an issue building the compiled lambda or rebuilding the state.
194
- * consumers of function should handle the errors.
195
- */
196
- buildStateFromRawLambda(rawLambda) {
197
- this.resetQueryBuilder();
198
- this.resetQueryContent();
199
- if (!isStubbed_RawLambda(rawLambda)) {
200
- const valueSpec = observe_ValueSpecification(this.graphManagerState.graphManager.buildValueSpecification(this.graphManagerState.graphManager.serializeRawValueSpecification(rawLambda), this.graphManagerState.graph), this.observableContext);
201
- const compiledValueSpecification = guaranteeType(valueSpec, LambdaFunctionInstanceValue, `Can't build query state: query builder only support lambda`);
202
- processQueryLambdaFunction(guaranteeNonNullable(compiledValueSpecification.values[0]), this);
203
- }
204
- }
205
- buildMilestoningParameter(parameterName) {
206
- const milestoningParameter = new VariableExpression(parameterName, this.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE), GenericTypeExplicitReference.create(new GenericType(this.queryParametersState.queryBuilderState.graphManagerState.graph.getPrimitiveType(PRIMITIVE_TYPE.DATE))));
207
- if (!this.queryParametersState.parameterStates.find((p) => p.variableName === parameterName)) {
208
- const variableState = new LambdaParameterState(milestoningParameter, this.querySetupState.queryBuilderState.observableContext, this.querySetupState.queryBuilderState.graphManagerState.graph);
209
- variableState.mockParameterValue();
210
- this.queryParametersState.addParameter(variableState);
211
- }
212
- return milestoningParameter;
213
- }
214
- async saveQuery(onSaveQuery) {
215
- try {
216
- const rawLambda = this.getQuery();
217
- await onSaveQuery(rawLambda);
218
- }
219
- catch (error) {
220
- assertErrorThrown(error);
221
- this.applicationStore.notifyError(`Can't save query: ${error.message}`);
222
- }
223
- }
224
- isQuerySupported() {
225
- return !this.queryUnsupportedState.rawLambda;
226
- }
227
- clearCompilationError() {
228
- this.fetchStructureState.implementation.clearCompilationError();
229
- }
230
- *compileQuery() {
231
- if (!this.queryTextEditorState.mode) {
232
- this.isCompiling = true;
233
- this.clearCompilationError();
234
- // form mode
235
- try {
236
- this.queryTextEditorState.setCompilationError(undefined);
237
- // NOTE: retain the source information on the lambda in order to be able
238
- // to pin-point compilation issue in form mode
239
- (yield this.graphManagerState.graphManager.getLambdaReturnType(this.getQuery({ keepSourceInformation: true }), this.graphManagerState.graph, { keepSourceInformation: true }));
240
- this.applicationStore.notifySuccess('Compiled successfully');
241
- }
242
- catch (error) {
243
- assertErrorThrown(error);
244
- this.applicationStore.log.error(LogEvent.create(GRAPH_MANAGER_EVENT.COMPILATION_FAILURE), error);
245
- let fallbackToTextModeForDebugging = true;
246
- // if compilation failed, we try to reveal the error in form mode,
247
- // if even this fail, we will fall back to show it in text mode
248
- if (error instanceof CompilationError && error.sourceInformation) {
249
- fallbackToTextModeForDebugging =
250
- !this.fetchStructureState.implementation.revealCompilationError(error);
251
- }
252
- // decide if we need to fall back to text mode for debugging
253
- if (fallbackToTextModeForDebugging) {
254
- this.applicationStore.notifyWarning('Compilation failed and error cannot be located in form mode. Redirected to text mode for debugging.');
255
- this.queryTextEditorState.openModal(QueryTextEditorMode.TEXT);
256
- // TODO: trigger another compilation to pin-point the issue
257
- // since we're using the lambda editor right now, we are a little bit limitted
258
- // in terms of the timing to do compilation (since we're using an `useEffect` to
259
- // convert the lambda to grammar text), we might as well wait for the refactor
260
- // of query builder text-mode
261
- // See https://github.com/finos/legend-studio/issues/319
262
- }
263
- else {
264
- this.applicationStore.notifyWarning(`Compilation failed: ${error.message}`);
265
- }
266
- }
267
- finally {
268
- this.isCompiling = false;
269
- }
270
- }
271
- else if (this.queryTextEditorState.mode === QueryTextEditorMode.TEXT) {
272
- this.isCompiling = true;
273
- try {
274
- this.queryTextEditorState.setCompilationError(undefined);
275
- (yield this.graphManagerState.graphManager.getLambdaReturnType(this.queryTextEditorState.rawLambdaState.lambda, this.graphManagerState.graph, { keepSourceInformation: true }));
276
- this.applicationStore.notifySuccess('Compiled successfully');
277
- }
278
- catch (error) {
279
- assertErrorThrown(error);
280
- if (error instanceof CompilationError) {
281
- this.applicationStore.log.error(LogEvent.create(GRAPH_MANAGER_EVENT.COMPILATION_FAILURE), error);
282
- this.applicationStore.notifyWarning(`Compilation failed: ${error.message}`);
283
- const errorElementCoordinates = extractSourceInformationCoordinates(error.sourceInformation);
284
- if (errorElementCoordinates) {
285
- this.queryTextEditorState.setCompilationError(error);
286
- }
287
- }
288
- }
289
- finally {
290
- this.isCompiling = false;
291
- }
292
- }
293
- }
294
- changeClass(val, isRebuildingState) {
295
- this.resetQueryBuilder();
296
- this.resetQueryContent();
297
- this.querySetupState.setClass(val, isRebuildingState);
298
- this.explorerState.refreshTreeData();
299
- this.fetchStructureState.implementation.onClassChange(val);
300
- }
301
- get validationIssues() {
302
- return this.fetchStructureState.implementation.validationIssues;
303
- }
304
- cloneQueryBuilderState() {
305
- return new QueryBuilderState(this.applicationStore, this.graphManagerState, this.mode);
306
- }
307
- }
308
- //# sourceMappingURL=QueryBuilderState.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryBuilderState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAEL,QAAQ,EACR,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,YAAY,EACZ,UAAU,GACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EACL,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACL,0BAA0B,EAC1B,iBAAiB,GAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAIL,4BAA4B,EAC5B,WAAW,EACX,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,mCAAmC,EACnC,2BAA2B,EAC3B,SAAS,EACT,yBAAyB,EACzB,kBAAkB,EAClB,0BAA0B,EAC1B,eAAe,EACf,mBAAmB,EACnB,8BAA8B,EAC9B,gCAAgC,G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,CAAC,gBAAgB,EACrB,IAAI,CAAC,iBAAiB,EACtB,IAAI,CAAC,IAAI,CACV,CAAC;IACJ,CAAC;CACF"}
@@ -1,124 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import type { QueryBuilderState } from './QueryBuilderState.js';
17
- import { type AlloySerializationConfigInstanceValue, type EnumValueInstanceValue, type FunctionExpression, type MappingInstanceValue, type PairInstanceValue, type PropertyGraphFetchTreeInstanceValue, type PureListInstanceValue, type RootGraphFetchTreeInstanceValue, type RuntimeInstanceValue, type ValueSpecificationVisitor, type InstanceValue, type INTERNAL__UnknownValueSpecification, type LambdaFunction, type CollectionInstanceValue, type LambdaFunctionInstanceValue, type PrimitiveInstanceValue, SimpleFunctionExpression, type VariableExpression, type AbstractPropertyExpression, type INTERNAL__PropagatedValue, type ValueSpecification } from '@finos/legend-graph';
18
- /**
19
- * This is the value specification processor (a.k.a state builder) for query builder.
20
- *
21
- * Unlike value specification builder which takes care of transforming the value specification
22
- * from `protocol` to `metamodel`, and doing some (naive) type-inferencing, the processor takes care
23
- * of traversing the query, analyzing it to build the query builder state. The processor represents
24
- * a particular way we want to look at the query, if the query is not like what the processor
25
- * expects, or understands, query builder state could not be built, i.e. the query will be deemed
26
- * unsupported by query builder
27
- *
28
- * NOTE: While traversing the expression, this processor also does a fair amount of
29
- * validations and assertions--enough to properly build the state. Unlike the builder,
30
- * the processor should NEVER modify the metamodel, just traversing it.
31
- */
32
- export declare class QueryBuilderValueSpecificationProcessor implements ValueSpecificationVisitor<void> {
33
- readonly queryBuilderState: QueryBuilderState;
34
- /**
35
- * A value specification is a tree of value specifications.
36
- *
37
- * This structure may not intuitively correspond to how we write it in Pure
38
- * For example, consider the following expression in Pure:
39
- *
40
- * | Person.all()->filter(x|$x.age > 0)->project([x|$x.name], ['Name'])->sort([desc('Name')]);
41
- *
42
- * which is equivalent to the more cryptic version:
43
- *
44
- * | sort(project(filter(all(Person), x|$x.age > 0), [x|$x.name], ['Name']), [desc('Name')]);
45
- *
46
- * Hence, the metamodel looks something like this (with some parts redacted)
47
- * {
48
- * "function": "sort",
49
- * "parameters": [
50
- * {
51
- * "function": "project",
52
- * "parameters": [
53
- * {
54
- * "function": "filter",
55
- * "parameters": [
56
- * {
57
- * "function": "getAll",
58
- * ...
59
- * },
60
- * ... // filter() expression
61
- * ]
62
- * },
63
- * ... // project() expression column and alias
64
- * ]
65
- * },
66
- * {
67
- * "_type": "collection",
68
- * "values": [
69
- * {
70
- * "function": "desc",
71
- * ... // desc() expression
72
- * }
73
- * ]
74
- * }
75
- * ]
76
- * }
77
- *
78
- * The first grammar form is farily declarative in nature and perhaps more intuitive.
79
- * We tend to think, in terms of order of running:
80
- * all() --> filter() --> project() --> sort()
81
- *
82
- * However, in reality, when the expression is used or read, the order of traversal is reversed:
83
- * sort() --> project() --> filter() --> all()
84
- *
85
- * Now, in the context of the value specification processor, we need information about preceding
86
- * expression in order to validate the usage context of functions, (for example, we want to only
87
- * support project() after all() or filter()). In the case of function expression chain,
88
- * we have to look at the function expression first parameter. There are some other context,
89
- * such as what happens within the second parameter of the sort() expression
90
- * in this case, we have the desc() expression, but it's not part of the main expression chain;
91
- * however, we need to verify desc() is used within sort(), in this case, we have to record
92
- * the parent expression. This is when the following attribute comes into use when processing
93
- * value specification.
94
- */
95
- readonly parentExpression?: SimpleFunctionExpression | undefined;
96
- private constructor();
97
- static process(valueSpecification: ValueSpecification, queryBuilderState: QueryBuilderState): void;
98
- /**
99
- * Process value specification with information about parent function expression
100
- * in order to be used in some validation/assertion
101
- */
102
- static processChild(valueSpecification: ValueSpecification, parentExpression: SimpleFunctionExpression, queryBuilderState: QueryBuilderState): void;
103
- visit_INTERNAL__UnknownValueSpecification(valueSpecification: INTERNAL__UnknownValueSpecification): void;
104
- visit_RootGraphFetchTreeInstanceValue(valueSpecification: RootGraphFetchTreeInstanceValue): void;
105
- visit_PropertyGraphFetchTreeInstanceValue(valueSpecification: PropertyGraphFetchTreeInstanceValue): void;
106
- visit_AlloySerializationConfigInstanceValue(valueSpecification: AlloySerializationConfigInstanceValue): void;
107
- visit_PrimitiveInstanceValue(valueSpecification: PrimitiveInstanceValue): void;
108
- visit_EnumValueInstanceValue(valueSpecification: EnumValueInstanceValue): void;
109
- visit_RuntimeInstanceValue(valueSpecification: RuntimeInstanceValue): void;
110
- visit_PairInstanceValue(valueSpecification: PairInstanceValue): void;
111
- visit_MappingInstanceValue(valueSpecification: MappingInstanceValue): void;
112
- visit_PureListInstanceValue(valueSpecification: PureListInstanceValue): void;
113
- visit_CollectionInstanceValue(valueSpecification: CollectionInstanceValue): void;
114
- visit_FunctionExpression(valueSpecification: FunctionExpression): void;
115
- visit_INTERNAL__PropagatedValue(valueSpecification: INTERNAL__PropagatedValue): void;
116
- visit_SimpleFunctionExpression(valueSpecification: SimpleFunctionExpression): void;
117
- visit_VariableExpression(valueSpecification: VariableExpression): void;
118
- visit_LambdaFunctionInstanceValue(valueSpecification: LambdaFunctionInstanceValue): void;
119
- visit_AbstractPropertyExpression(valueSpecification: AbstractPropertyExpression): void;
120
- visit_InstanceValue(valueSpecification: InstanceValue): void;
121
- }
122
- export declare const processParameters: (parameters: VariableExpression[], queryBuilderState: QueryBuilderState) => void;
123
- export declare const processQueryLambdaFunction: (lambdaFunction: LambdaFunction, queryBuilderState: QueryBuilderState) => void;
124
- //# sourceMappingURL=QueryBuilderStateBuilder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryBuilderStateBuilder.d.ts","sourceRoot":"","sources":["../../src/stores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