@finos/legend-application-query 5.2.6 → 6.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 (985) hide show
  1. package/lib/components/LegendQueryApplication.js +2 -2
  2. package/lib/components/LegendQueryApplication.js.map +1 -1
  3. package/lib/components/QueryEditor.d.ts +2 -2
  4. package/lib/components/QueryEditor.d.ts.map +1 -1
  5. package/lib/components/QueryEditor.js +14 -15
  6. package/lib/components/QueryEditor.js.map +1 -1
  7. package/lib/components/QueryEditorComponentTestUtils.d.ts +5 -1
  8. package/lib/components/QueryEditorComponentTestUtils.d.ts.map +1 -1
  9. package/lib/components/QueryEditorComponentTestUtils.js +17 -14
  10. package/lib/components/QueryEditorComponentTestUtils.js.map +1 -1
  11. package/lib/components/QueryEditorStoreProvider.d.ts +2 -3
  12. package/lib/components/QueryEditorStoreProvider.d.ts.map +1 -1
  13. package/lib/components/QueryEditorStoreProvider.js +5 -5
  14. package/lib/components/QueryEditorStoreProvider.js.map +1 -1
  15. package/lib/components/QuerySetup.js +17 -17
  16. package/lib/components/QuerySetup.js.map +1 -1
  17. package/lib/components/query-builder/QueryBuilder.d.ts +23 -0
  18. package/lib/components/query-builder/QueryBuilder.d.ts.map +1 -0
  19. package/lib/components/query-builder/QueryBuilder.js +111 -0
  20. package/lib/components/query-builder/QueryBuilder.js.map +1 -0
  21. package/lib/components/query-builder/QueryBuilderParametersPanel.d.ts +32 -0
  22. package/lib/components/query-builder/QueryBuilderParametersPanel.d.ts.map +1 -0
  23. package/lib/components/query-builder/QueryBuilderParametersPanel.js +128 -0
  24. package/lib/components/query-builder/QueryBuilderParametersPanel.js.map +1 -0
  25. package/lib/components/query-builder/QueryBuilderPropertyExpressionEditor.d.ts +30 -0
  26. package/lib/components/query-builder/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -0
  27. package/lib/components/query-builder/QueryBuilderPropertyExpressionEditor.js +116 -0
  28. package/lib/components/query-builder/QueryBuilderPropertyExpressionEditor.js.map +1 -0
  29. package/lib/components/query-builder/QueryBuilderResultPanel.d.ts +23 -0
  30. package/lib/components/query-builder/QueryBuilderResultPanel.d.ts.map +1 -0
  31. package/lib/components/query-builder/QueryBuilderResultPanel.js +242 -0
  32. package/lib/components/query-builder/QueryBuilderResultPanel.js.map +1 -0
  33. package/lib/components/query-builder/QueryBuilderSideBar.d.ts +42 -0
  34. package/lib/components/query-builder/QueryBuilderSideBar.d.ts.map +1 -0
  35. package/lib/components/query-builder/QueryBuilderSideBar.js +169 -0
  36. package/lib/components/query-builder/QueryBuilderSideBar.js.map +1 -0
  37. package/lib/components/query-builder/QueryBuilderTextEditor.d.ts +23 -0
  38. package/lib/components/query-builder/QueryBuilderTextEditor.d.ts.map +1 -0
  39. package/lib/components/query-builder/QueryBuilderTextEditor.js +48 -0
  40. package/lib/components/query-builder/QueryBuilderTextEditor.js.map +1 -0
  41. package/lib/components/query-builder/QueryBuilderUnsupportedQueryEditor.d.ts +23 -0
  42. package/lib/components/query-builder/QueryBuilderUnsupportedQueryEditor.d.ts.map +1 -0
  43. package/lib/components/query-builder/QueryBuilderUnsupportedQueryEditor.js +36 -0
  44. package/lib/components/query-builder/QueryBuilderUnsupportedQueryEditor.js.map +1 -0
  45. package/lib/components/{QueryBuilder_TestID.d.ts → query-builder/QueryBuilder_TestID.d.ts} +0 -0
  46. package/lib/components/query-builder/QueryBuilder_TestID.d.ts.map +1 -0
  47. package/lib/components/{QueryBuilder_TestID.js → query-builder/QueryBuilder_TestID.js} +0 -0
  48. package/lib/components/query-builder/QueryBuilder_TestID.js.map +1 -0
  49. package/lib/components/query-builder/explorer/QueryBuilderExplorerPanel.d.ts +36 -0
  50. package/lib/components/query-builder/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -0
  51. package/lib/components/query-builder/explorer/QueryBuilderExplorerPanel.js +340 -0
  52. package/lib/components/query-builder/explorer/QueryBuilderExplorerPanel.js.map +1 -0
  53. package/lib/components/query-builder/explorer/QueryBuilderFunctionsExplorerPanel.d.ts +23 -0
  54. package/lib/components/query-builder/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +1 -0
  55. package/lib/components/query-builder/explorer/QueryBuilderFunctionsExplorerPanel.js +147 -0
  56. package/lib/components/query-builder/explorer/QueryBuilderFunctionsExplorerPanel.js.map +1 -0
  57. package/lib/components/query-builder/explorer/QueryBuilderMilestoneEditor.d.ts +23 -0
  58. package/lib/components/query-builder/explorer/QueryBuilderMilestoneEditor.d.ts.map +1 -0
  59. package/lib/components/query-builder/explorer/QueryBuilderMilestoneEditor.js +122 -0
  60. package/lib/components/query-builder/explorer/QueryBuilderMilestoneEditor.js.map +1 -0
  61. package/lib/components/query-builder/explorer/QueryBuilderPropertySearchPanel.d.ts +24 -0
  62. package/lib/components/query-builder/explorer/QueryBuilderPropertySearchPanel.d.ts.map +1 -0
  63. package/lib/components/query-builder/explorer/QueryBuilderPropertySearchPanel.js +200 -0
  64. package/lib/components/query-builder/explorer/QueryBuilderPropertySearchPanel.js.map +1 -0
  65. package/lib/components/query-builder/fetch-structure/QueryBuilderFetchStructurePanel.d.ts +23 -0
  66. package/lib/components/query-builder/fetch-structure/QueryBuilderFetchStructurePanel.d.ts.map +1 -0
  67. package/lib/components/query-builder/fetch-structure/QueryBuilderFetchStructurePanel.js +52 -0
  68. package/lib/components/query-builder/fetch-structure/QueryBuilderFetchStructurePanel.js.map +1 -0
  69. package/lib/components/query-builder/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +32 -0
  70. package/lib/components/query-builder/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -0
  71. package/lib/components/query-builder/fetch-structure/QueryBuilderGraphFetchTreePanel.js +94 -0
  72. package/lib/components/query-builder/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +1 -0
  73. package/lib/components/query-builder/fetch-structure/QueryBuilderPostFilterPanel.d.ts +31 -0
  74. package/lib/components/query-builder/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -0
  75. package/lib/components/query-builder/fetch-structure/QueryBuilderPostFilterPanel.js +378 -0
  76. package/lib/components/query-builder/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -0
  77. package/lib/components/query-builder/fetch-structure/QueryBuilderProjectionPanel.d.ts +23 -0
  78. package/lib/components/query-builder/fetch-structure/QueryBuilderProjectionPanel.d.ts.map +1 -0
  79. package/lib/components/query-builder/fetch-structure/QueryBuilderProjectionPanel.js +216 -0
  80. package/lib/components/query-builder/fetch-structure/QueryBuilderProjectionPanel.js.map +1 -0
  81. package/lib/components/query-builder/fetch-structure/QueryBuilderResultModifierPanel.d.ts +23 -0
  82. package/lib/components/query-builder/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -0
  83. package/lib/components/query-builder/fetch-structure/QueryBuilderResultModifierPanel.js +88 -0
  84. package/lib/components/query-builder/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -0
  85. package/lib/components/query-builder/filter/QueryBuilderFilterPanel.d.ts +23 -0
  86. package/lib/components/query-builder/filter/QueryBuilderFilterPanel.d.ts.map +1 -0
  87. package/lib/components/query-builder/filter/QueryBuilderFilterPanel.js +316 -0
  88. package/lib/components/query-builder/filter/QueryBuilderFilterPanel.js.map +1 -0
  89. package/lib/components/{shared → query-builder/shared}/ElementIconUtils.d.ts +0 -0
  90. package/lib/components/query-builder/shared/ElementIconUtils.d.ts.map +1 -0
  91. package/lib/components/{shared → query-builder/shared}/ElementIconUtils.js +0 -0
  92. package/lib/components/query-builder/shared/ElementIconUtils.js.map +1 -0
  93. package/lib/components/query-builder/shared/QueryBuilderLambdaEditor.d.ts +43 -0
  94. package/lib/components/query-builder/shared/QueryBuilderLambdaEditor.d.ts.map +1 -0
  95. package/lib/components/{shared → query-builder/shared}/QueryBuilderLambdaEditor.js +0 -0
  96. package/lib/components/query-builder/shared/QueryBuilderLambdaEditor.js.map +1 -0
  97. package/lib/components/{shared → query-builder/shared}/QueryBuilderPanelIssueCountBadge.d.ts +0 -0
  98. package/lib/components/query-builder/shared/QueryBuilderPanelIssueCountBadge.d.ts.map +1 -0
  99. package/lib/components/query-builder/shared/QueryBuilderPanelIssueCountBadge.js +28 -0
  100. package/lib/components/query-builder/shared/QueryBuilderPanelIssueCountBadge.js.map +1 -0
  101. package/lib/components/{shared → query-builder/shared}/QueryBuilderPropertyInfoTooltip.d.ts +0 -0
  102. package/lib/components/query-builder/shared/QueryBuilderPropertyInfoTooltip.d.ts.map +1 -0
  103. package/lib/components/{shared → query-builder/shared}/QueryBuilderPropertyInfoTooltip.js +0 -0
  104. package/lib/components/query-builder/shared/QueryBuilderPropertyInfoTooltip.js.map +1 -0
  105. package/lib/components/query-builder/workflows/ClassQueryBuilder.d.ts +18 -0
  106. package/lib/components/query-builder/workflows/ClassQueryBuilder.d.ts.map +1 -0
  107. package/lib/components/query-builder/workflows/ClassQueryBuilder.js +87 -0
  108. package/lib/components/query-builder/workflows/ClassQueryBuilder.js.map +1 -0
  109. package/lib/components/query-builder/workflows/MappingQueryBuilder.d.ts +18 -0
  110. package/lib/components/query-builder/workflows/MappingQueryBuilder.d.ts.map +1 -0
  111. package/lib/components/query-builder/workflows/MappingQueryBuilder.js +88 -0
  112. package/lib/components/query-builder/workflows/MappingQueryBuilder.js.map +1 -0
  113. package/lib/components/query-builder/workflows/ServiceQueryBuilder.d.ts +18 -0
  114. package/lib/components/query-builder/workflows/ServiceQueryBuilder.d.ts.map +1 -0
  115. package/lib/components/query-builder/workflows/ServiceQueryBuilder.js +69 -0
  116. package/lib/components/query-builder/workflows/ServiceQueryBuilder.js.map +1 -0
  117. package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts +60 -0
  118. package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts.map +1 -0
  119. package/lib/graphManager/QueryBuilderSupportedFunctions.js +65 -0
  120. package/lib/graphManager/QueryBuilderSupportedFunctions.js.map +1 -0
  121. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +1 -1
  122. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +6 -4
  123. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -1
  124. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.d.ts.map +1 -1
  125. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.js +4 -4
  126. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.js.map +1 -1
  127. package/lib/index.css +2 -2
  128. package/lib/index.css.map +1 -1
  129. package/lib/index.d.ts +8 -3
  130. package/lib/index.d.ts.map +1 -1
  131. package/lib/index.js +9 -3
  132. package/lib/index.js.map +1 -1
  133. package/lib/package.json +8 -8
  134. package/lib/stores/LegendQueryApplicationPlugin.d.ts +7 -0
  135. package/lib/stores/LegendQueryApplicationPlugin.d.ts.map +1 -1
  136. package/lib/stores/LegendQueryApplicationPlugin.js.map +1 -1
  137. package/lib/stores/LegendQueryRouter.d.ts +8 -12
  138. package/lib/stores/LegendQueryRouter.d.ts.map +1 -1
  139. package/lib/stores/LegendQueryRouter.js +6 -7
  140. package/lib/stores/LegendQueryRouter.js.map +1 -1
  141. package/lib/stores/QueryEditorStore.d.ts +11 -11
  142. package/lib/stores/QueryEditorStore.d.ts.map +1 -1
  143. package/lib/stores/QueryEditorStore.js +68 -64
  144. package/lib/stores/QueryEditorStore.js.map +1 -1
  145. package/lib/stores/QuerySetupStore.d.ts +3 -3
  146. package/lib/stores/QuerySetupStore.d.ts.map +1 -1
  147. package/lib/stores/QuerySetupStore.js +3 -3
  148. package/lib/stores/QuerySetupStore.js.map +1 -1
  149. package/lib/stores/query-builder/QueryBuilderChangeDetectionState.d.ts +25 -0
  150. package/lib/stores/query-builder/QueryBuilderChangeDetectionState.d.ts.map +1 -0
  151. package/lib/stores/query-builder/QueryBuilderChangeDetectionState.js +32 -0
  152. package/lib/stores/query-builder/QueryBuilderChangeDetectionState.js.map +1 -0
  153. package/lib/stores/query-builder/QueryBuilderConfig.d.ts +32 -0
  154. package/lib/stores/query-builder/QueryBuilderConfig.d.ts.map +1 -0
  155. package/lib/stores/query-builder/QueryBuilderConfig.js +34 -0
  156. package/lib/stores/query-builder/QueryBuilderConfig.js.map +1 -0
  157. package/lib/stores/{QueryBuilderGroupOperationHelper.d.ts → query-builder/QueryBuilderGroupOperationHelper.d.ts} +0 -0
  158. package/lib/stores/query-builder/QueryBuilderGroupOperationHelper.d.ts.map +1 -0
  159. package/lib/stores/query-builder/QueryBuilderGroupOperationHelper.js +43 -0
  160. package/lib/stores/query-builder/QueryBuilderGroupOperationHelper.js.map +1 -0
  161. package/lib/stores/query-builder/QueryBuilderMilestoningState.d.ts +32 -0
  162. package/lib/stores/query-builder/QueryBuilderMilestoningState.d.ts.map +1 -0
  163. package/lib/stores/query-builder/QueryBuilderMilestoningState.js +95 -0
  164. package/lib/stores/query-builder/QueryBuilderMilestoningState.js.map +1 -0
  165. package/lib/stores/query-builder/QueryBuilderParametersState.d.ts +28 -0
  166. package/lib/stores/query-builder/QueryBuilderParametersState.d.ts.map +1 -0
  167. package/lib/stores/query-builder/QueryBuilderParametersState.js +39 -0
  168. package/lib/stores/query-builder/QueryBuilderParametersState.js.map +1 -0
  169. package/lib/stores/{QueryBuilderPreviewDataHelper.d.ts → query-builder/QueryBuilderPreviewDataHelper.d.ts} +0 -0
  170. package/lib/stores/query-builder/QueryBuilderPreviewDataHelper.d.ts.map +1 -0
  171. package/lib/stores/query-builder/QueryBuilderPreviewDataHelper.js +138 -0
  172. package/lib/stores/query-builder/QueryBuilderPreviewDataHelper.js.map +1 -0
  173. package/lib/stores/{QueryBuilderPropertyEditorState.d.ts → query-builder/QueryBuilderPropertyEditorState.d.ts} +0 -0
  174. package/lib/stores/query-builder/QueryBuilderPropertyEditorState.d.ts.map +1 -0
  175. package/lib/stores/query-builder/QueryBuilderPropertyEditorState.js +395 -0
  176. package/lib/stores/query-builder/QueryBuilderPropertyEditorState.js.map +1 -0
  177. package/lib/stores/{QueryBuilderResultState.d.ts → query-builder/QueryBuilderResultState.d.ts} +0 -0
  178. package/lib/stores/query-builder/QueryBuilderResultState.d.ts.map +1 -0
  179. package/lib/stores/query-builder/QueryBuilderResultState.js +176 -0
  180. package/lib/stores/query-builder/QueryBuilderResultState.js.map +1 -0
  181. package/lib/stores/query-builder/QueryBuilderState.d.ts +112 -0
  182. package/lib/stores/query-builder/QueryBuilderState.d.ts.map +1 -0
  183. package/lib/stores/query-builder/QueryBuilderState.js +337 -0
  184. package/lib/stores/query-builder/QueryBuilderState.js.map +1 -0
  185. package/lib/stores/query-builder/QueryBuilderStateBuilder.d.ts +124 -0
  186. package/lib/stores/query-builder/QueryBuilderStateBuilder.d.ts.map +1 -0
  187. package/lib/stores/query-builder/QueryBuilderStateBuilder.js +311 -0
  188. package/lib/stores/query-builder/QueryBuilderStateBuilder.js.map +1 -0
  189. package/lib/stores/query-builder/QueryBuilderStateTestUtils.d.ts +24 -0
  190. package/lib/stores/query-builder/QueryBuilderStateTestUtils.d.ts.map +1 -0
  191. package/lib/stores/query-builder/QueryBuilderStateTestUtils.js +50 -0
  192. package/lib/stores/query-builder/QueryBuilderStateTestUtils.js.map +1 -0
  193. package/lib/stores/query-builder/QueryBuilderTextEditorState.d.ts +49 -0
  194. package/lib/stores/query-builder/QueryBuilderTextEditorState.d.ts.map +1 -0
  195. package/lib/stores/query-builder/QueryBuilderTextEditorState.js +145 -0
  196. package/lib/stores/query-builder/QueryBuilderTextEditorState.js.map +1 -0
  197. package/lib/stores/{QueryBuilderTypeaheadHelper.d.ts → query-builder/QueryBuilderTypeaheadHelper.d.ts} +0 -0
  198. package/lib/stores/query-builder/QueryBuilderTypeaheadHelper.d.ts.map +1 -0
  199. package/lib/stores/query-builder/QueryBuilderTypeaheadHelper.js +85 -0
  200. package/lib/stores/query-builder/QueryBuilderTypeaheadHelper.js.map +1 -0
  201. package/lib/stores/query-builder/QueryBuilderUnsupportedQueryState.d.ts +26 -0
  202. package/lib/stores/query-builder/QueryBuilderUnsupportedQueryState.d.ts.map +1 -0
  203. package/lib/stores/query-builder/QueryBuilderUnsupportedQueryState.js +37 -0
  204. package/lib/stores/query-builder/QueryBuilderUnsupportedQueryState.js.map +1 -0
  205. package/lib/stores/query-builder/QueryBuilderValueSpecificationBuilder.d.ts +20 -0
  206. package/lib/stores/query-builder/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -0
  207. package/lib/stores/query-builder/QueryBuilderValueSpecificationBuilder.js +87 -0
  208. package/lib/stores/query-builder/QueryBuilderValueSpecificationBuilder.js.map +1 -0
  209. package/lib/stores/query-builder/QueryBuilderValueSpecificationBuilderHelper.d.ts +27 -0
  210. package/lib/stores/query-builder/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +1 -0
  211. package/lib/stores/query-builder/QueryBuilderValueSpecificationBuilderHelper.js +161 -0
  212. package/lib/stores/query-builder/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -0
  213. package/lib/stores/query-builder/QueryBuilderValueSpecificationHelper.d.ts +61 -0
  214. package/lib/stores/query-builder/QueryBuilderValueSpecificationHelper.d.ts.map +1 -0
  215. package/lib/stores/query-builder/QueryBuilderValueSpecificationHelper.js +235 -0
  216. package/lib/stores/query-builder/QueryBuilderValueSpecificationHelper.js.map +1 -0
  217. package/lib/stores/query-builder/explorer/QueryBuilderExplorerState.d.ts +99 -0
  218. package/lib/stores/query-builder/explorer/QueryBuilderExplorerState.d.ts.map +1 -0
  219. package/lib/stores/query-builder/explorer/QueryBuilderExplorerState.js +446 -0
  220. package/lib/stores/query-builder/explorer/QueryBuilderExplorerState.js.map +1 -0
  221. package/lib/stores/query-builder/explorer/QueryBuilderPropertySearchState.d.ts +46 -0
  222. package/lib/stores/query-builder/explorer/QueryBuilderPropertySearchState.d.ts.map +1 -0
  223. package/lib/stores/query-builder/explorer/QueryBuilderPropertySearchState.js +242 -0
  224. package/lib/stores/query-builder/explorer/QueryBuilderPropertySearchState.js.map +1 -0
  225. package/lib/stores/{explorer → query-builder/explorer}/QueryFunctionsExplorerState.d.ts +0 -0
  226. package/lib/stores/query-builder/explorer/QueryFunctionsExplorerState.d.ts.map +1 -0
  227. package/lib/stores/query-builder/explorer/QueryFunctionsExplorerState.js +228 -0
  228. package/lib/stores/query-builder/explorer/QueryFunctionsExplorerState.js.map +1 -0
  229. package/lib/stores/query-builder/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +40 -0
  230. package/lib/stores/query-builder/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +1 -0
  231. package/lib/stores/query-builder/fetch-structure/QueryBuilderFetchStructureImplementationState.js +34 -0
  232. package/lib/stores/query-builder/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +1 -0
  233. package/lib/stores/query-builder/fetch-structure/QueryBuilderFetchStructureState.d.ts +27 -0
  234. package/lib/stores/query-builder/fetch-structure/QueryBuilderFetchStructureState.d.ts.map +1 -0
  235. package/lib/stores/query-builder/fetch-structure/QueryBuilderFetchStructureState.js +73 -0
  236. package/lib/stores/query-builder/fetch-structure/QueryBuilderFetchStructureState.js.map +1 -0
  237. package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +49 -0
  238. package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -0
  239. package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +157 -0
  240. package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -0
  241. package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts +20 -0
  242. package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts.map +1 -0
  243. package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js +62 -0
  244. package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js.map +1 -0
  245. package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts +42 -0
  246. package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +1 -0
  247. package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js +173 -0
  248. package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +1 -0
  249. package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.d.ts +26 -0
  250. package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.d.ts.map +1 -0
  251. package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.js +72 -0
  252. package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.js.map +1 -0
  253. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/QueryBuilderProjectionColumnState.d.ts +0 -0
  254. package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts.map +1 -0
  255. package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionColumnState.js +187 -0
  256. package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionColumnState.js.map +1 -0
  257. package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionState.d.ts +68 -0
  258. package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionState.d.ts.map +1 -0
  259. package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionState.js +305 -0
  260. package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionState.js.map +1 -0
  261. package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionStateBuilder.d.ts +25 -0
  262. package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -0
  263. package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionStateBuilder.js +186 -0
  264. package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionStateBuilder.js.map +1 -0
  265. package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts +26 -0
  266. package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -0
  267. package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js +189 -0
  268. package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -0
  269. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/QueryResultSetModifierState.d.ts +0 -0
  270. package/lib/stores/query-builder/fetch-structure/projection/QueryResultSetModifierState.d.ts.map +1 -0
  271. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/QueryResultSetModifierState.js +0 -0
  272. package/lib/stores/query-builder/fetch-structure/projection/QueryResultSetModifierState.js.map +1 -0
  273. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/aggregation/QueryBuilderAggregateOperator.d.ts +0 -0
  274. package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts.map +1 -0
  275. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/aggregation/QueryBuilderAggregateOperator.js +0 -0
  276. package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js.map +1 -0
  277. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/aggregation/QueryBuilderAggregateOperatorLoader.d.ts +0 -0
  278. package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.d.ts.map +1 -0
  279. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/aggregation/QueryBuilderAggregateOperatorLoader.js +0 -0
  280. package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.js.map +1 -0
  281. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/aggregation/QueryBuilderAggregationState.d.ts +0 -0
  282. package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts.map +1 -0
  283. package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js +103 -0
  284. package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js.map +1 -0
  285. package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.d.ts +20 -0
  286. package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map +1 -0
  287. package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.js +96 -0
  288. package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.js.map +1 -0
  289. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.d.ts +0 -0
  290. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.d.ts.map +1 -0
  291. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.js +0 -0
  292. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.js.map +1 -0
  293. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts +0 -0
  294. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +1 -0
  295. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js +50 -0
  296. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +1 -0
  297. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts +0 -0
  298. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +1 -0
  299. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js +55 -0
  300. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +1 -0
  301. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts +0 -0
  302. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts.map +1 -0
  303. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js +50 -0
  304. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +1 -0
  305. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts +0 -0
  306. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +1 -0
  307. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +78 -0
  308. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -0
  309. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts +0 -0
  310. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts.map +1 -0
  311. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js +67 -0
  312. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +1 -0
  313. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts +0 -0
  314. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts.map +1 -0
  315. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js +86 -0
  316. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +1 -0
  317. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts +0 -0
  318. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts.map +1 -0
  319. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js +86 -0
  320. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +1 -0
  321. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts +0 -0
  322. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +1 -0
  323. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js +50 -0
  324. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +1 -0
  325. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts +0 -0
  326. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +1 -0
  327. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js +50 -0
  328. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +1 -0
  329. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts +0 -0
  330. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts.map +1 -0
  331. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js +45 -0
  332. package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +1 -0
  333. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/post-filter/QueryBuilderPostFilterOperator.d.ts +0 -0
  334. package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts.map +1 -0
  335. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/post-filter/QueryBuilderPostFilterOperator.js +0 -0
  336. package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js.map +1 -0
  337. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts +0 -0
  338. package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts.map +1 -0
  339. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/post-filter/QueryBuilderPostFilterOperatorLoader.js +0 -0
  340. package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.js.map +1 -0
  341. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/post-filter/QueryBuilderPostFilterState.d.ts +0 -0
  342. package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -0
  343. package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js +585 -0
  344. package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js.map +1 -0
  345. package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.d.ts +22 -0
  346. package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +1 -0
  347. package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js +122 -0
  348. package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -0
  349. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts +0 -0
  350. package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map +1 -0
  351. package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js +79 -0
  352. package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +1 -0
  353. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts +0 -0
  354. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts.map +1 -0
  355. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +73 -0
  356. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -0
  357. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts +0 -0
  358. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -0
  359. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +75 -0
  360. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -0
  361. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts +0 -0
  362. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -0
  363. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +75 -0
  364. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -0
  365. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts +0 -0
  366. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -0
  367. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +118 -0
  368. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -0
  369. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts +0 -0
  370. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -0
  371. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +81 -0
  372. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -0
  373. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts +0 -0
  374. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +1 -0
  375. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +43 -0
  376. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +1 -0
  377. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts +0 -0
  378. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +1 -0
  379. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js +104 -0
  380. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -0
  381. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts +0 -0
  382. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +1 -0
  383. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +67 -0
  384. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -0
  385. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts +0 -0
  386. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -0
  387. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +81 -0
  388. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -0
  389. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts +0 -0
  390. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +1 -0
  391. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js +43 -0
  392. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +1 -0
  393. package/lib/stores/{fetch-structure → query-builder/fetch-structure}/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts +0 -0
  394. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -0
  395. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +75 -0
  396. package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -0
  397. package/lib/stores/{filter → query-builder/filter}/QueryBuilderFilterOperator.d.ts +0 -0
  398. package/lib/stores/query-builder/filter/QueryBuilderFilterOperator.d.ts.map +1 -0
  399. package/lib/stores/{filter → query-builder/filter}/QueryBuilderFilterOperator.js +0 -0
  400. package/lib/stores/query-builder/filter/QueryBuilderFilterOperator.js.map +1 -0
  401. package/lib/stores/{filter → query-builder/filter}/QueryBuilderFilterOperatorLoader.d.ts +0 -0
  402. package/lib/stores/query-builder/filter/QueryBuilderFilterOperatorLoader.d.ts.map +1 -0
  403. package/lib/stores/{filter → query-builder/filter}/QueryBuilderFilterOperatorLoader.js +0 -0
  404. package/lib/stores/query-builder/filter/QueryBuilderFilterOperatorLoader.js.map +1 -0
  405. package/lib/stores/{filter → query-builder/filter}/QueryBuilderFilterState.d.ts +0 -0
  406. package/lib/stores/query-builder/filter/QueryBuilderFilterState.d.ts.map +1 -0
  407. package/lib/stores/query-builder/filter/QueryBuilderFilterState.js +531 -0
  408. package/lib/stores/query-builder/filter/QueryBuilderFilterState.js.map +1 -0
  409. package/lib/stores/query-builder/filter/QueryBuilderFilterStateBuilder.d.ts +19 -0
  410. package/lib/stores/query-builder/filter/QueryBuilderFilterStateBuilder.d.ts.map +1 -0
  411. package/lib/stores/query-builder/filter/QueryBuilderFilterStateBuilder.js +74 -0
  412. package/lib/stores/query-builder/filter/QueryBuilderFilterStateBuilder.js.map +1 -0
  413. package/lib/stores/query-builder/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts +19 -0
  414. package/lib/stores/query-builder/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts.map +1 -0
  415. package/lib/stores/query-builder/filter/QueryBuilderFilterValueSpecificationBuilder.js +78 -0
  416. package/lib/stores/query-builder/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +1 -0
  417. package/lib/stores/{filter → query-builder/filter}/operators/QueryBuilderFilterOperatorHelper.d.ts +0 -0
  418. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperatorHelper.d.ts.map +1 -0
  419. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperatorHelper.js +257 -0
  420. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperatorHelper.js.map +1 -0
  421. package/lib/stores/{filter → query-builder/filter}/operators/QueryBuilderFilterOperator_Contain.d.ts +0 -0
  422. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -0
  423. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_Contain.js +71 -0
  424. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_Contain.js.map +1 -0
  425. package/lib/stores/{filter → query-builder/filter}/operators/QueryBuilderFilterOperator_EndWith.d.ts +0 -0
  426. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +1 -0
  427. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_EndWith.js +71 -0
  428. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +1 -0
  429. package/lib/stores/{filter → query-builder/filter}/operators/QueryBuilderFilterOperator_Equal.d.ts +0 -0
  430. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +1 -0
  431. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_Equal.js +115 -0
  432. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_Equal.js.map +1 -0
  433. package/lib/stores/{filter → query-builder/filter}/operators/QueryBuilderFilterOperator_GreaterThan.d.ts +0 -0
  434. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +1 -0
  435. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_GreaterThan.js +83 -0
  436. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_GreaterThan.js.map +1 -0
  437. package/lib/stores/{filter → query-builder/filter}/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts +0 -0
  438. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +1 -0
  439. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js +83 -0
  440. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +1 -0
  441. package/lib/stores/{filter → query-builder/filter}/operators/QueryBuilderFilterOperator_In.d.ts +0 -0
  442. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_In.d.ts.map +1 -0
  443. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_In.js +103 -0
  444. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_In.js.map +1 -0
  445. package/lib/stores/{filter → query-builder/filter}/operators/QueryBuilderFilterOperator_IsEmpty.d.ts +0 -0
  446. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +1 -0
  447. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_IsEmpty.js +65 -0
  448. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +1 -0
  449. package/lib/stores/{filter → query-builder/filter}/operators/QueryBuilderFilterOperator_LessThan.d.ts +0 -0
  450. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts.map +1 -0
  451. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_LessThan.js +83 -0
  452. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_LessThan.js.map +1 -0
  453. package/lib/stores/{filter → query-builder/filter}/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts +0 -0
  454. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +1 -0
  455. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js +83 -0
  456. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js.map +1 -0
  457. package/lib/stores/{filter → query-builder/filter}/operators/QueryBuilderFilterOperator_StartWith.d.ts +0 -0
  458. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -0
  459. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_StartWith.js +71 -0
  460. package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +1 -0
  461. package/lib/stores/query-builder/workflows/ClassQueryBuilderState.d.ts +35 -0
  462. package/lib/stores/query-builder/workflows/ClassQueryBuilderState.d.ts.map +1 -0
  463. package/lib/stores/query-builder/workflows/ClassQueryBuilderState.js +57 -0
  464. package/lib/stores/query-builder/workflows/ClassQueryBuilderState.js.map +1 -0
  465. package/lib/stores/query-builder/workflows/MappingQueryBuilderState.d.ts +33 -0
  466. package/lib/stores/query-builder/workflows/MappingQueryBuilderState.d.ts.map +1 -0
  467. package/lib/stores/query-builder/workflows/MappingQueryBuilderState.js +55 -0
  468. package/lib/stores/query-builder/workflows/MappingQueryBuilderState.js.map +1 -0
  469. package/lib/stores/query-builder/workflows/ServiceQueryBuilderState.d.ts +44 -0
  470. package/lib/stores/query-builder/workflows/ServiceQueryBuilderState.d.ts.map +1 -0
  471. package/lib/stores/query-builder/workflows/ServiceQueryBuilderState.js +90 -0
  472. package/lib/stores/query-builder/workflows/ServiceQueryBuilderState.js.map +1 -0
  473. package/package.json +15 -15
  474. package/src/components/LegendQueryApplication.tsx +7 -7
  475. package/src/components/QueryEditor.tsx +100 -97
  476. package/src/components/QueryEditorComponentTestUtils.tsx +28 -19
  477. package/src/components/QueryEditorStoreProvider.tsx +7 -9
  478. package/src/components/QuerySetup.tsx +25 -25
  479. package/src/components/query-builder/QueryBuilder.tsx +411 -0
  480. package/src/components/query-builder/QueryBuilderParametersPanel.tsx +431 -0
  481. package/src/components/query-builder/QueryBuilderPropertyExpressionEditor.tsx +376 -0
  482. package/src/components/query-builder/QueryBuilderResultPanel.tsx +640 -0
  483. package/src/components/query-builder/QueryBuilderSideBar.tsx +421 -0
  484. package/src/components/query-builder/QueryBuilderTextEditor.tsx +127 -0
  485. package/src/components/query-builder/QueryBuilderUnsupportedQueryEditor.tsx +88 -0
  486. package/src/components/{QueryBuilder_TestID.ts → query-builder/QueryBuilder_TestID.ts} +0 -0
  487. package/src/components/query-builder/explorer/QueryBuilderExplorerPanel.tsx +934 -0
  488. package/src/components/query-builder/explorer/QueryBuilderFunctionsExplorerPanel.tsx +554 -0
  489. package/src/components/query-builder/explorer/QueryBuilderMilestoneEditor.tsx +296 -0
  490. package/src/components/query-builder/explorer/QueryBuilderPropertySearchPanel.tsx +617 -0
  491. package/src/components/query-builder/fetch-structure/QueryBuilderFetchStructurePanel.tsx +112 -0
  492. package/src/components/query-builder/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx +276 -0
  493. package/src/components/query-builder/fetch-structure/QueryBuilderPostFilterPanel.tsx +1103 -0
  494. package/src/components/query-builder/fetch-structure/QueryBuilderProjectionPanel.tsx +649 -0
  495. package/src/components/query-builder/fetch-structure/QueryBuilderResultModifierPanel.tsx +254 -0
  496. package/src/components/query-builder/filter/QueryBuilderFilterPanel.tsx +891 -0
  497. package/src/components/{shared → query-builder/shared}/ElementIconUtils.tsx +0 -0
  498. package/src/components/query-builder/shared/QueryBuilderLambdaEditor.tsx +120 -0
  499. package/src/components/query-builder/shared/QueryBuilderPanelIssueCountBadge.tsx +40 -0
  500. package/src/components/{shared → query-builder/shared}/QueryBuilderPropertyInfoTooltip.tsx +0 -0
  501. package/src/components/query-builder/workflows/ClassQueryBuilder.tsx +198 -0
  502. package/src/components/query-builder/workflows/MappingQueryBuilder.tsx +195 -0
  503. package/src/components/query-builder/workflows/ServiceQueryBuilder.tsx +192 -0
  504. package/src/graphManager/QueryBuilderSupportedFunctions.ts +67 -0
  505. package/src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +6 -9
  506. package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.ts +4 -6
  507. package/src/index.ts +14 -7
  508. package/src/stores/LegendQueryApplicationPlugin.ts +12 -0
  509. package/src/stores/LegendQueryRouter.ts +11 -16
  510. package/src/stores/QueryEditorStore.ts +133 -107
  511. package/src/stores/QuerySetupStore.ts +3 -3
  512. package/src/stores/query-builder/QueryBuilderChangeDetectionState.ts +37 -0
  513. package/src/stores/query-builder/QueryBuilderConfig.ts +34 -0
  514. package/src/stores/query-builder/QueryBuilderGroupOperationHelper.ts +54 -0
  515. package/src/stores/query-builder/QueryBuilderMilestoningState.ts +164 -0
  516. package/src/stores/query-builder/QueryBuilderParametersState.ts +52 -0
  517. package/src/stores/query-builder/QueryBuilderPreviewDataHelper.ts +202 -0
  518. package/src/stores/query-builder/QueryBuilderPropertyEditorState.ts +668 -0
  519. package/src/stores/query-builder/QueryBuilderResultState.ts +281 -0
  520. package/src/stores/query-builder/QueryBuilderState.ts +470 -0
  521. package/src/stores/query-builder/QueryBuilderStateBuilder.ts +585 -0
  522. package/src/stores/query-builder/QueryBuilderStateTestUtils.ts +91 -0
  523. package/src/stores/query-builder/QueryBuilderTextEditorState.ts +203 -0
  524. package/src/stores/query-builder/QueryBuilderTypeaheadHelper.ts +152 -0
  525. package/src/stores/query-builder/QueryBuilderUnsupportedQueryState.ts +44 -0
  526. package/src/stores/query-builder/QueryBuilderValueSpecificationBuilder.ts +179 -0
  527. package/src/stores/query-builder/QueryBuilderValueSpecificationBuilderHelper.ts +256 -0
  528. package/src/stores/query-builder/QueryBuilderValueSpecificationHelper.ts +359 -0
  529. package/src/stores/query-builder/explorer/QueryBuilderExplorerState.ts +813 -0
  530. package/src/stores/query-builder/explorer/QueryBuilderPropertySearchState.ts +333 -0
  531. package/src/stores/query-builder/explorer/QueryFunctionsExplorerState.ts +375 -0
  532. package/src/stores/query-builder/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +65 -0
  533. package/src/stores/query-builder/fetch-structure/QueryBuilderFetchStructureState.ts +107 -0
  534. package/src/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +240 -0
  535. package/src/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.ts +131 -0
  536. package/src/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts +282 -0
  537. package/src/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.ts +154 -0
  538. package/src/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionColumnState.ts +327 -0
  539. package/src/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionState.ts +569 -0
  540. package/src/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionStateBuilder.ts +426 -0
  541. package/src/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +416 -0
  542. package/src/stores/{fetch-structure → query-builder/fetch-structure}/projection/QueryResultSetModifierState.ts +0 -0
  543. package/src/stores/{fetch-structure → query-builder/fetch-structure}/projection/aggregation/QueryBuilderAggregateOperator.ts +0 -0
  544. package/src/stores/{fetch-structure → query-builder/fetch-structure}/projection/aggregation/QueryBuilderAggregateOperatorLoader.ts +0 -0
  545. package/src/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregationState.ts +145 -0
  546. package/src/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.ts +228 -0
  547. package/src/stores/{fetch-structure → query-builder/fetch-structure}/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.ts +0 -0
  548. package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.ts +98 -0
  549. package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.ts +106 -0
  550. package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.ts +96 -0
  551. package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +173 -0
  552. package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.ts +155 -0
  553. package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.ts +174 -0
  554. package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.ts +174 -0
  555. package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.ts +98 -0
  556. package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.ts +98 -0
  557. package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.ts +88 -0
  558. package/src/stores/{fetch-structure → query-builder/fetch-structure}/projection/post-filter/QueryBuilderPostFilterOperator.ts +0 -0
  559. package/src/stores/{fetch-structure → query-builder/fetch-structure}/projection/post-filter/QueryBuilderPostFilterOperatorLoader.ts +0 -0
  560. package/src/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.ts +807 -0
  561. package/src/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.ts +297 -0
  562. package/src/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts +121 -0
  563. package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +129 -0
  564. package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +140 -0
  565. package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +135 -0
  566. package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +218 -0
  567. package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +143 -0
  568. package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +70 -0
  569. package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +183 -0
  570. package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +113 -0
  571. package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +143 -0
  572. package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts +70 -0
  573. package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +135 -0
  574. package/src/stores/{filter → query-builder/filter}/QueryBuilderFilterOperator.ts +0 -0
  575. package/src/stores/{filter → query-builder/filter}/QueryBuilderFilterOperatorLoader.ts +0 -0
  576. package/src/stores/query-builder/filter/QueryBuilderFilterState.ts +736 -0
  577. package/src/stores/query-builder/filter/QueryBuilderFilterStateBuilder.ts +155 -0
  578. package/src/stores/query-builder/filter/QueryBuilderFilterValueSpecificationBuilder.ts +120 -0
  579. package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperatorHelper.ts +524 -0
  580. package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperator_Contain.ts +134 -0
  581. package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperator_EndWith.ts +134 -0
  582. package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperator_Equal.ts +211 -0
  583. package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +145 -0
  584. package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +145 -0
  585. package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperator_In.ts +181 -0
  586. package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts +125 -0
  587. package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperator_LessThan.ts +145 -0
  588. package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +145 -0
  589. package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperator_StartWith.ts +134 -0
  590. package/src/stores/query-builder/workflows/ClassQueryBuilderState.ts +80 -0
  591. package/src/stores/query-builder/workflows/MappingQueryBuilderState.ts +86 -0
  592. package/src/stores/query-builder/workflows/ServiceQueryBuilderState.ts +143 -0
  593. package/tsconfig.json +107 -94
  594. package/lib/QueryBuilder_Const.d.ts +0 -77
  595. package/lib/QueryBuilder_Const.d.ts.map +0 -1
  596. package/lib/QueryBuilder_Const.js +0 -85
  597. package/lib/QueryBuilder_Const.js.map +0 -1
  598. package/lib/components/QueryBuilder.d.ts +0 -23
  599. package/lib/components/QueryBuilder.d.ts.map +0 -1
  600. package/lib/components/QueryBuilder.js +0 -100
  601. package/lib/components/QueryBuilder.js.map +0 -1
  602. package/lib/components/QueryBuilderParameterPanel.d.ts +0 -30
  603. package/lib/components/QueryBuilderParameterPanel.d.ts.map +0 -1
  604. package/lib/components/QueryBuilderParameterPanel.js +0 -128
  605. package/lib/components/QueryBuilderParameterPanel.js.map +0 -1
  606. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +0 -30
  607. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +0 -1
  608. package/lib/components/QueryBuilderPropertyExpressionEditor.js +0 -116
  609. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +0 -1
  610. package/lib/components/QueryBuilderResultPanel.d.ts +0 -23
  611. package/lib/components/QueryBuilderResultPanel.d.ts.map +0 -1
  612. package/lib/components/QueryBuilderResultPanel.js +0 -237
  613. package/lib/components/QueryBuilderResultPanel.js.map +0 -1
  614. package/lib/components/QueryBuilderSetupPanel.d.ts +0 -23
  615. package/lib/components/QueryBuilderSetupPanel.d.ts.map +0 -1
  616. package/lib/components/QueryBuilderSetupPanel.js +0 -149
  617. package/lib/components/QueryBuilderSetupPanel.js.map +0 -1
  618. package/lib/components/QueryBuilderTextEditor.d.ts +0 -23
  619. package/lib/components/QueryBuilderTextEditor.d.ts.map +0 -1
  620. package/lib/components/QueryBuilderTextEditor.js +0 -48
  621. package/lib/components/QueryBuilderTextEditor.js.map +0 -1
  622. package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts +0 -23
  623. package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts.map +0 -1
  624. package/lib/components/QueryBuilderUnsupportedQueryEditor.js +0 -37
  625. package/lib/components/QueryBuilderUnsupportedQueryEditor.js.map +0 -1
  626. package/lib/components/QueryBuilder_TestID.d.ts.map +0 -1
  627. package/lib/components/QueryBuilder_TestID.js.map +0 -1
  628. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts +0 -37
  629. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +0 -1
  630. package/lib/components/explorer/QueryBuilderExplorerPanel.js +0 -337
  631. package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +0 -1
  632. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts +0 -23
  633. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +0 -1
  634. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js +0 -147
  635. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +0 -1
  636. package/lib/components/explorer/QueryBuilderMilestoneEditor.d.ts +0 -24
  637. package/lib/components/explorer/QueryBuilderMilestoneEditor.d.ts.map +0 -1
  638. package/lib/components/explorer/QueryBuilderMilestoneEditor.js +0 -120
  639. package/lib/components/explorer/QueryBuilderMilestoneEditor.js.map +0 -1
  640. package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts +0 -24
  641. package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts.map +0 -1
  642. package/lib/components/explorer/QueryBuilderPropertySearchPanel.js +0 -200
  643. package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +0 -1
  644. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts +0 -23
  645. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts.map +0 -1
  646. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js +0 -135
  647. package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js.map +0 -1
  648. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +0 -33
  649. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +0 -1
  650. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js +0 -96
  651. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +0 -1
  652. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +0 -31
  653. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +0 -1
  654. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +0 -372
  655. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +0 -1
  656. package/lib/components/fetch-structure/QueryBuilderProjectionPanel.d.ts +0 -23
  657. package/lib/components/fetch-structure/QueryBuilderProjectionPanel.d.ts.map +0 -1
  658. package/lib/components/fetch-structure/QueryBuilderProjectionPanel.js +0 -213
  659. package/lib/components/fetch-structure/QueryBuilderProjectionPanel.js.map +0 -1
  660. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts +0 -23
  661. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +0 -1
  662. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +0 -93
  663. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +0 -1
  664. package/lib/components/filter/QueryBuilderFilterPanel.d.ts +0 -23
  665. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +0 -1
  666. package/lib/components/filter/QueryBuilderFilterPanel.js +0 -316
  667. package/lib/components/filter/QueryBuilderFilterPanel.js.map +0 -1
  668. package/lib/components/shared/ElementIconUtils.d.ts.map +0 -1
  669. package/lib/components/shared/ElementIconUtils.js.map +0 -1
  670. package/lib/components/shared/QueryBuilderLambdaEditor.d.ts +0 -43
  671. package/lib/components/shared/QueryBuilderLambdaEditor.d.ts.map +0 -1
  672. package/lib/components/shared/QueryBuilderLambdaEditor.js.map +0 -1
  673. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts.map +0 -1
  674. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js +0 -28
  675. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js.map +0 -1
  676. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts.map +0 -1
  677. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js.map +0 -1
  678. package/lib/stores/QueryBuilderGroupOperationHelper.d.ts.map +0 -1
  679. package/lib/stores/QueryBuilderGroupOperationHelper.js +0 -43
  680. package/lib/stores/QueryBuilderGroupOperationHelper.js.map +0 -1
  681. package/lib/stores/QueryBuilderPreviewDataHelper.d.ts.map +0 -1
  682. package/lib/stores/QueryBuilderPreviewDataHelper.js +0 -140
  683. package/lib/stores/QueryBuilderPreviewDataHelper.js.map +0 -1
  684. package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +0 -1
  685. package/lib/stores/QueryBuilderPropertyEditorState.js +0 -385
  686. package/lib/stores/QueryBuilderPropertyEditorState.js.map +0 -1
  687. package/lib/stores/QueryBuilderResultState.d.ts.map +0 -1
  688. package/lib/stores/QueryBuilderResultState.js +0 -176
  689. package/lib/stores/QueryBuilderResultState.js.map +0 -1
  690. package/lib/stores/QueryBuilderSetupState.d.ts +0 -46
  691. package/lib/stores/QueryBuilderSetupState.d.ts.map +0 -1
  692. package/lib/stores/QueryBuilderSetupState.js +0 -163
  693. package/lib/stores/QueryBuilderSetupState.js.map +0 -1
  694. package/lib/stores/QueryBuilderState.d.ts +0 -101
  695. package/lib/stores/QueryBuilderState.d.ts.map +0 -1
  696. package/lib/stores/QueryBuilderState.js +0 -317
  697. package/lib/stores/QueryBuilderState.js.map +0 -1
  698. package/lib/stores/QueryBuilderTestUtils.d.ts +0 -24
  699. package/lib/stores/QueryBuilderTestUtils.d.ts.map +0 -1
  700. package/lib/stores/QueryBuilderTestUtils.js +0 -50
  701. package/lib/stores/QueryBuilderTestUtils.js.map +0 -1
  702. package/lib/stores/QueryBuilderTypeaheadHelper.d.ts.map +0 -1
  703. package/lib/stores/QueryBuilderTypeaheadHelper.js +0 -84
  704. package/lib/stores/QueryBuilderTypeaheadHelper.js.map +0 -1
  705. package/lib/stores/QueryBuilderUnsupportedState.d.ts +0 -26
  706. package/lib/stores/QueryBuilderUnsupportedState.d.ts.map +0 -1
  707. package/lib/stores/QueryBuilderUnsupportedState.js +0 -36
  708. package/lib/stores/QueryBuilderUnsupportedState.js.map +0 -1
  709. package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts +0 -28
  710. package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +0 -1
  711. package/lib/stores/QueryBuilderValueSpecificationBuilder.js +0 -396
  712. package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +0 -1
  713. package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts +0 -25
  714. package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +0 -1
  715. package/lib/stores/QueryBuilderValueSpecificationHelper.js +0 -158
  716. package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +0 -1
  717. package/lib/stores/QueryBuilderValueSpecificationProcessor.d.ts +0 -56
  718. package/lib/stores/QueryBuilderValueSpecificationProcessor.d.ts.map +0 -1
  719. package/lib/stores/QueryBuilderValueSpecificationProcessor.js +0 -548
  720. package/lib/stores/QueryBuilderValueSpecificationProcessor.js.map +0 -1
  721. package/lib/stores/QueryParametersState.d.ts +0 -28
  722. package/lib/stores/QueryParametersState.d.ts.map +0 -1
  723. package/lib/stores/QueryParametersState.js +0 -39
  724. package/lib/stores/QueryParametersState.js.map +0 -1
  725. package/lib/stores/QueryTextEditorState.d.ts +0 -49
  726. package/lib/stores/QueryTextEditorState.d.ts.map +0 -1
  727. package/lib/stores/QueryTextEditorState.js +0 -145
  728. package/lib/stores/QueryTextEditorState.js.map +0 -1
  729. package/lib/stores/explorer/QueryBuilderExplorerState.d.ts +0 -98
  730. package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +0 -1
  731. package/lib/stores/explorer/QueryBuilderExplorerState.js +0 -409
  732. package/lib/stores/explorer/QueryBuilderExplorerState.js.map +0 -1
  733. package/lib/stores/explorer/QueryBuilderPropertySearchPanelState.d.ts +0 -46
  734. package/lib/stores/explorer/QueryBuilderPropertySearchPanelState.d.ts.map +0 -1
  735. package/lib/stores/explorer/QueryBuilderPropertySearchPanelState.js +0 -240
  736. package/lib/stores/explorer/QueryBuilderPropertySearchPanelState.js.map +0 -1
  737. package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts.map +0 -1
  738. package/lib/stores/explorer/QueryFunctionsExplorerState.js +0 -229
  739. package/lib/stores/explorer/QueryFunctionsExplorerState.js.map +0 -1
  740. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +0 -23
  741. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +0 -1
  742. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js +0 -24
  743. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +0 -1
  744. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts +0 -44
  745. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts.map +0 -1
  746. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js +0 -116
  747. package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js.map +0 -1
  748. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +0 -36
  749. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +0 -1
  750. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +0 -68
  751. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +0 -1
  752. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts +0 -41
  753. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +0 -1
  754. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js +0 -178
  755. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +0 -1
  756. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.d.ts +0 -19
  757. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.d.ts.map +0 -1
  758. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.js +0 -49
  759. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.js.map +0 -1
  760. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts.map +0 -1
  761. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js +0 -187
  762. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js.map +0 -1
  763. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.d.ts +0 -60
  764. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.d.ts.map +0 -1
  765. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js +0 -241
  766. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js.map +0 -1
  767. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts +0 -21
  768. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +0 -1
  769. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js +0 -73
  770. package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +0 -1
  771. package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.d.ts.map +0 -1
  772. package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.js.map +0 -1
  773. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts.map +0 -1
  774. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js.map +0 -1
  775. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.d.ts.map +0 -1
  776. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.js.map +0 -1
  777. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts.map +0 -1
  778. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js +0 -103
  779. package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js.map +0 -1
  780. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.d.ts.map +0 -1
  781. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.js.map +0 -1
  782. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +0 -1
  783. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js +0 -50
  784. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +0 -1
  785. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +0 -1
  786. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js +0 -55
  787. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +0 -1
  788. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts.map +0 -1
  789. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js +0 -50
  790. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +0 -1
  791. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +0 -1
  792. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +0 -78
  793. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +0 -1
  794. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts.map +0 -1
  795. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js +0 -67
  796. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +0 -1
  797. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts.map +0 -1
  798. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js +0 -86
  799. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +0 -1
  800. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts.map +0 -1
  801. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js +0 -86
  802. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +0 -1
  803. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +0 -1
  804. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js +0 -50
  805. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +0 -1
  806. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +0 -1
  807. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js +0 -50
  808. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +0 -1
  809. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts.map +0 -1
  810. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js +0 -45
  811. package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +0 -1
  812. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts.map +0 -1
  813. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js.map +0 -1
  814. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts.map +0 -1
  815. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.js.map +0 -1
  816. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts.map +0 -1
  817. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js +0 -586
  818. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js.map +0 -1
  819. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map +0 -1
  820. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js +0 -82
  821. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +0 -1
  822. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationProcessor.d.ts +0 -21
  823. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationProcessor.d.ts.map +0 -1
  824. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationProcessor.js +0 -113
  825. package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationProcessor.js.map +0 -1
  826. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts.map +0 -1
  827. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +0 -74
  828. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +0 -1
  829. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +0 -1
  830. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +0 -75
  831. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +0 -1
  832. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +0 -1
  833. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +0 -75
  834. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +0 -1
  835. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +0 -1
  836. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +0 -118
  837. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +0 -1
  838. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +0 -1
  839. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +0 -81
  840. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +0 -1
  841. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +0 -1
  842. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +0 -43
  843. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +0 -1
  844. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +0 -1
  845. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js +0 -104
  846. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +0 -1
  847. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +0 -1
  848. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +0 -67
  849. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +0 -1
  850. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +0 -1
  851. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +0 -81
  852. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +0 -1
  853. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +0 -1
  854. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js +0 -43
  855. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +0 -1
  856. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +0 -1
  857. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +0 -75
  858. package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +0 -1
  859. package/lib/stores/filter/QueryBuilderFilterOperator.d.ts.map +0 -1
  860. package/lib/stores/filter/QueryBuilderFilterOperator.js.map +0 -1
  861. package/lib/stores/filter/QueryBuilderFilterOperatorLoader.d.ts.map +0 -1
  862. package/lib/stores/filter/QueryBuilderFilterOperatorLoader.js.map +0 -1
  863. package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +0 -1
  864. package/lib/stores/filter/QueryBuilderFilterState.js +0 -531
  865. package/lib/stores/filter/QueryBuilderFilterState.js.map +0 -1
  866. package/lib/stores/filter/QueryBuilderValueSpecificationBuilder.d.ts +0 -19
  867. package/lib/stores/filter/QueryBuilderValueSpecificationBuilder.d.ts.map +0 -1
  868. package/lib/stores/filter/QueryBuilderValueSpecificationBuilder.js +0 -78
  869. package/lib/stores/filter/QueryBuilderValueSpecificationBuilder.js.map +0 -1
  870. package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.d.ts.map +0 -1
  871. package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.js +0 -257
  872. package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.js.map +0 -1
  873. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +0 -1
  874. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +0 -71
  875. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js.map +0 -1
  876. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +0 -1
  877. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js +0 -71
  878. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +0 -1
  879. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +0 -1
  880. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js +0 -115
  881. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +0 -1
  882. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +0 -1
  883. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js +0 -83
  884. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js.map +0 -1
  885. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +0 -1
  886. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js +0 -83
  887. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +0 -1
  888. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts.map +0 -1
  889. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js +0 -103
  890. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +0 -1
  891. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +0 -1
  892. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js +0 -65
  893. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +0 -1
  894. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts.map +0 -1
  895. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js +0 -83
  896. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js.map +0 -1
  897. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +0 -1
  898. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js +0 -83
  899. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js.map +0 -1
  900. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +0 -1
  901. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js +0 -71
  902. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +0 -1
  903. package/src/QueryBuilder_Const.ts +0 -88
  904. package/src/components/QueryBuilder.tsx +0 -393
  905. package/src/components/QueryBuilderParameterPanel.tsx +0 -403
  906. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +0 -374
  907. package/src/components/QueryBuilderResultPanel.tsx +0 -633
  908. package/src/components/QueryBuilderSetupPanel.tsx +0 -342
  909. package/src/components/QueryBuilderTextEditor.tsx +0 -127
  910. package/src/components/QueryBuilderUnsupportedQueryEditor.tsx +0 -112
  911. package/src/components/explorer/QueryBuilderExplorerPanel.tsx +0 -942
  912. package/src/components/explorer/QueryBuilderFunctionsExplorerPanel.tsx +0 -554
  913. package/src/components/explorer/QueryBuilderMilestoneEditor.tsx +0 -291
  914. package/src/components/explorer/QueryBuilderPropertySearchPanel.tsx +0 -617
  915. package/src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx +0 -246
  916. package/src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx +0 -279
  917. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +0 -1069
  918. package/src/components/fetch-structure/QueryBuilderProjectionPanel.tsx +0 -623
  919. package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +0 -262
  920. package/src/components/filter/QueryBuilderFilterPanel.tsx +0 -890
  921. package/src/components/shared/QueryBuilderLambdaEditor.tsx +0 -120
  922. package/src/components/shared/QueryBuilderPanelIssueCountBadge.tsx +0 -38
  923. package/src/stores/QueryBuilderGroupOperationHelper.ts +0 -54
  924. package/src/stores/QueryBuilderPreviewDataHelper.ts +0 -201
  925. package/src/stores/QueryBuilderPropertyEditorState.ts +0 -659
  926. package/src/stores/QueryBuilderResultState.ts +0 -281
  927. package/src/stores/QueryBuilderSetupState.ts +0 -236
  928. package/src/stores/QueryBuilderState.ts +0 -471
  929. package/src/stores/QueryBuilderTestUtils.ts +0 -96
  930. package/src/stores/QueryBuilderTypeaheadHelper.ts +0 -148
  931. package/src/stores/QueryBuilderUnsupportedState.ts +0 -42
  932. package/src/stores/QueryBuilderValueSpecificationBuilder.ts +0 -739
  933. package/src/stores/QueryBuilderValueSpecificationHelper.ts +0 -245
  934. package/src/stores/QueryBuilderValueSpecificationProcessor.ts +0 -1254
  935. package/src/stores/QueryParametersState.ts +0 -52
  936. package/src/stores/QueryTextEditorState.ts +0 -203
  937. package/src/stores/explorer/QueryBuilderExplorerState.ts +0 -770
  938. package/src/stores/explorer/QueryBuilderPropertySearchPanelState.ts +0 -331
  939. package/src/stores/explorer/QueryFunctionsExplorerState.ts +0 -376
  940. package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +0 -34
  941. package/src/stores/fetch-structure/QueryBuilderFetchStructureState.ts +0 -173
  942. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +0 -100
  943. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts +0 -291
  944. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.ts +0 -90
  945. package/src/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.ts +0 -329
  946. package/src/stores/fetch-structure/projection/QueryBuilderProjectionState.ts +0 -464
  947. package/src/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +0 -170
  948. package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.ts +0 -145
  949. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.ts +0 -98
  950. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.ts +0 -106
  951. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.ts +0 -96
  952. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +0 -173
  953. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.ts +0 -155
  954. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.ts +0 -174
  955. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.ts +0 -174
  956. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.ts +0 -98
  957. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.ts +0 -98
  958. package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.ts +0 -88
  959. package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.ts +0 -808
  960. package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts +0 -131
  961. package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationProcessor.ts +0 -277
  962. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +0 -129
  963. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +0 -140
  964. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +0 -135
  965. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +0 -218
  966. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +0 -143
  967. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +0 -70
  968. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +0 -183
  969. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +0 -113
  970. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +0 -143
  971. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts +0 -70
  972. package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +0 -135
  973. package/src/stores/filter/QueryBuilderFilterState.ts +0 -738
  974. package/src/stores/filter/QueryBuilderValueSpecificationBuilder.ts +0 -120
  975. package/src/stores/filter/operators/QueryBuilderFilterOperatorHelper.ts +0 -524
  976. package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +0 -134
  977. package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +0 -134
  978. package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +0 -211
  979. package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +0 -145
  980. package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +0 -145
  981. package/src/stores/filter/operators/QueryBuilderFilterOperator_In.ts +0 -181
  982. package/src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts +0 -125
  983. package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThan.ts +0 -145
  984. package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +0 -145
  985. package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +0 -134
@@ -1,1254 +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
-
17
- import {
18
- type PlainObject,
19
- assertNonNullable,
20
- assertTrue,
21
- assertType,
22
- guaranteeNonNullable,
23
- guaranteeType,
24
- isNonNullable,
25
- isNumber,
26
- isString,
27
- returnUndefOnError,
28
- UnsupportedOperationError,
29
- } from '@finos/legend-shared';
30
- import type { QueryBuilderState } from './QueryBuilderState.js';
31
- import {
32
- COLUMN_SORT_TYPE,
33
- SortColumnState,
34
- } from './fetch-structure/projection/QueryResultSetModifierState.js';
35
- import {
36
- type QueryBuilderFilterState,
37
- QueryBuilderFilterTreeGroupNodeData,
38
- QueryBuilderFilterTreeConditionNodeData,
39
- } from './filter/QueryBuilderFilterState.js';
40
- import { FETCH_STRUCTURE_MODE } from './fetch-structure/QueryBuilderFetchStructureState.js';
41
- import {
42
- type AlloySerializationConfigInstanceValue,
43
- type EnumValueInstanceValue,
44
- type FunctionExpression,
45
- type MappingInstanceValue,
46
- type PairInstanceValue,
47
- type PropertyGraphFetchTreeInstanceValue,
48
- type PureListInstanceValue,
49
- type RootGraphFetchTreeInstanceValue,
50
- type RuntimeInstanceValue,
51
- type ValueSpecification,
52
- type ValueSpecificationVisitor,
53
- type InstanceValue,
54
- type INTERNAL__UnknownValueSpecification,
55
- type LambdaFunction,
56
- MILESTONING_STEREOTYPE,
57
- DerivedProperty,
58
- RawLambda,
59
- matchFunctionName,
60
- Class,
61
- CollectionInstanceValue,
62
- GraphFetchTreeInstanceValue,
63
- LambdaFunctionInstanceValue,
64
- PrimitiveInstanceValue,
65
- RootGraphFetchTree,
66
- SimpleFunctionExpression,
67
- VariableExpression,
68
- AbstractPropertyExpression,
69
- V1_deserializeRawValueSpecification,
70
- V1_RawLambda,
71
- getMilestoneTemporalStereotype,
72
- type INTERNAL__PropagatedValue,
73
- type PureModel,
74
- } from '@finos/legend-graph';
75
- import {
76
- type QueryBuilderProjectionColumnState,
77
- QueryBuilderDerivationProjectionColumnState,
78
- QueryBuilderSimpleProjectionColumnState,
79
- } from './fetch-structure/projection/QueryBuilderProjectionColumnState.js';
80
- import type { QueryBuilderAggregationState } from './fetch-structure/projection/aggregation/QueryBuilderAggregationState.js';
81
- import { processPostFilterLambda } from './fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationProcessor.js';
82
- import { getDerivedPropertyMilestoningSteoreotype } from './QueryBuilderPropertyEditorState.js';
83
- import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../QueryBuilder_Const.js';
84
- import { LambdaParameterState } from '@finos/legend-application';
85
- import { toGroupOperation } from './QueryBuilderGroupOperationHelper.js';
86
-
87
- const getNullableStringValueFromValueSpec = (
88
- valueSpec: ValueSpecification,
89
- ): string | undefined => {
90
- if (
91
- valueSpec instanceof PrimitiveInstanceValue &&
92
- isString(valueSpec.values[0])
93
- ) {
94
- return valueSpec.values[0];
95
- }
96
- return undefined;
97
- };
98
-
99
- const getNullableNumberValueFromValueSpec = (
100
- valueSpec: ValueSpecification,
101
- ): number | undefined => {
102
- if (
103
- valueSpec instanceof PrimitiveInstanceValue &&
104
- isNumber(valueSpec.values[0])
105
- ) {
106
- return valueSpec.values[0];
107
- }
108
- return undefined;
109
- };
110
-
111
- /**
112
- * Checks if the milestoning property expression is valid in terms of number of parameter values provided
113
- * in relation to its milestoning type.
114
- *
115
- * NOTE: this takes date propgation into account. See the table below for all
116
- * the combination:
117
- *
118
- * | [source] | | | | |
119
- * ----------------------------------------------------------------------
120
- * [target] | | NONE | PR_TMP | BI_TMP | BU_TMP |
121
- * ----------------------------------------------------------------------
122
- * | NONE | N.A. | PRD | PRD,BUD | BUD |
123
- * ----------------------------------------------------------------------
124
- * | PR_TMP | N.A. | X | PRD,BUD | BUD |
125
- * ----------------------------------------------------------------------
126
- * | BI_TMP | N.A. | X | X | X |
127
- * ----------------------------------------------------------------------
128
- * | BU_TMP | N.A. | PRD | PRD,BUD | X |
129
- * ----------------------------------------------------------------------
130
- *
131
- * Annotations:
132
- *
133
- * [source]: source temporal type
134
- * [target]: target temporal type
135
- *
136
- * PR_TMP : processing temporal
137
- * BI_TMP : bitemporal
138
- * BU_TMP : business temporal
139
- *
140
- * X : no default date propagated
141
- * PRD : default processing date is propagated
142
- * BUD : default business date is propgated
143
- */
144
- const validatePropertyExpressionChain = (
145
- propertyExpression: AbstractPropertyExpression,
146
- graph: PureModel,
147
- ): void => {
148
- if (
149
- propertyExpression.func.genericType.value.rawType instanceof Class &&
150
- propertyExpression.func._OWNER._generatedMilestonedProperties.length !== 0
151
- ) {
152
- const name = propertyExpression.func.name;
153
- const func =
154
- propertyExpression.func._OWNER._generatedMilestonedProperties.find(
155
- (e) => e.name === name,
156
- );
157
- if (func) {
158
- const targetStereotype = getMilestoneTemporalStereotype(
159
- propertyExpression.func.genericType.value.rawType,
160
- graph,
161
- );
162
-
163
- if (targetStereotype) {
164
- const sourceStereotype = getDerivedPropertyMilestoningSteoreotype(
165
- guaranteeType(func, DerivedProperty),
166
- graph,
167
- );
168
- if (
169
- sourceStereotype !== MILESTONING_STEREOTYPE.BITEMPORAL &&
170
- targetStereotype !== sourceStereotype
171
- ) {
172
- if (targetStereotype === MILESTONING_STEREOTYPE.BITEMPORAL) {
173
- if (
174
- propertyExpression.parametersValues.length !== 3 &&
175
- !sourceStereotype
176
- ) {
177
- throw new UnsupportedOperationError(
178
- `Property of milestoning sterotype '${MILESTONING_STEREOTYPE.BITEMPORAL}' should have exactly two parameters`,
179
- );
180
- } else if (propertyExpression.parametersValues.length < 2) {
181
- throw new UnsupportedOperationError(
182
- `Property of milestoning sterotype '${MILESTONING_STEREOTYPE.BITEMPORAL}' should have at least one parameter`,
183
- );
184
- } else if (propertyExpression.parametersValues.length > 3) {
185
- throw new UnsupportedOperationError(
186
- `Property of milestoning sterotype '${MILESTONING_STEREOTYPE.BITEMPORAL}' should not have more than two parameters`,
187
- );
188
- }
189
- } else if (propertyExpression.parametersValues.length !== 2) {
190
- throw new UnsupportedOperationError(
191
- `Property of milestoning sterotype '${targetStereotype}' should have exactly one parameter`,
192
- );
193
- }
194
- }
195
- }
196
- }
197
- }
198
- };
199
-
200
- const processFilterExpression = (
201
- expression: SimpleFunctionExpression,
202
- filterState: QueryBuilderFilterState,
203
- parentFilterNodeId: string | undefined,
204
- ): void => {
205
- const parentNode = parentFilterNodeId
206
- ? filterState.getNode(parentFilterNodeId)
207
- : undefined;
208
- if (
209
- [
210
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.AND,
211
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.OR,
212
- ].some((fn) => matchFunctionName(expression.functionName, fn))
213
- ) {
214
- const groupNode = new QueryBuilderFilterTreeGroupNodeData(
215
- parentFilterNodeId,
216
- toGroupOperation(expression.functionName),
217
- );
218
- filterState.nodes.set(groupNode.id, groupNode);
219
- expression.parametersValues.forEach((filterExpression) =>
220
- processFilterExpression(
221
- guaranteeType(
222
- filterExpression,
223
- SimpleFunctionExpression,
224
- `Can't process filter group expression: each child expression must be a function expression`,
225
- ),
226
- filterState,
227
- groupNode.id,
228
- ),
229
- );
230
- filterState.addNodeFromNode(groupNode, parentNode);
231
- } else {
232
- const propertyExpression = expression.parametersValues[0];
233
- if (propertyExpression instanceof AbstractPropertyExpression) {
234
- const currentPropertyExpression = propertyExpression.parametersValues[0];
235
- if (currentPropertyExpression instanceof AbstractPropertyExpression) {
236
- validatePropertyExpressionChain(
237
- currentPropertyExpression,
238
- filterState.queryBuilderState.graphManagerState.graph,
239
- );
240
- }
241
- }
242
- for (const operator of filterState.operators) {
243
- // NOTE: this allow plugin author to either return `undefined` or throw error
244
- // if there is a problem with building the lambda. Either case, the plugin is
245
- // considered as not supporting the lambda.
246
- const filterConditionState = returnUndefOnError(() =>
247
- operator.buildFilterConditionState(filterState, expression),
248
- );
249
- if (filterConditionState) {
250
- filterState.addNodeFromNode(
251
- new QueryBuilderFilterTreeConditionNodeData(
252
- undefined,
253
- filterConditionState,
254
- ),
255
- parentNode,
256
- );
257
- return;
258
- }
259
- }
260
- throw new UnsupportedOperationError(
261
- `Can't process filter() expression: no compatible filter operator processer available from plugins`,
262
- );
263
- }
264
- };
265
-
266
- const processFilterLambda = (
267
- filterLambda: LambdaFunctionInstanceValue,
268
- filterState: QueryBuilderFilterState,
269
- ): void => {
270
- const lambdaFunc = guaranteeNonNullable(
271
- filterLambda.values[0],
272
- `Can't process filter() lambda: filter() lambda function is missing`,
273
- );
274
- assertTrue(
275
- lambdaFunc.expressionSequence.length === 1,
276
- `Can't process filter() lambda: only support filter() lambda body with 1 expression`,
277
- );
278
- const rootExpression = guaranteeType(
279
- lambdaFunc.expressionSequence[0],
280
- SimpleFunctionExpression,
281
- `Can't process filter() lambda: only support filter() lambda body with 1 expression`,
282
- );
283
-
284
- assertTrue(
285
- lambdaFunc.functionType.parameters.length === 1,
286
- `Can't process filter() lambda: only support filter() lambda with 1 parameter`,
287
- );
288
- filterState.setLambdaParameterName(
289
- guaranteeType(
290
- lambdaFunc.functionType.parameters[0],
291
- VariableExpression,
292
- `Can't process filter() lambda: only support filter() lambda with 1 parameter`,
293
- ).name,
294
- );
295
- processFilterExpression(rootExpression, filterState, undefined);
296
- };
297
-
298
- const processAggregateLambda = (
299
- aggregateLambda: LambdaFunctionInstanceValue,
300
- projectionColumnState: QueryBuilderProjectionColumnState,
301
- aggregationState: QueryBuilderAggregationState,
302
- ): void => {
303
- const lambdaFunc = guaranteeNonNullable(
304
- aggregateLambda.values[0],
305
- `Can't process agg() lambda: agg() lambda function is missing`,
306
- );
307
- assertTrue(
308
- lambdaFunc.expressionSequence.length === 1,
309
- `Can't process agg() lambda: only support agg() lambda body with 1 expression`,
310
- );
311
- const expression = guaranteeType(
312
- lambdaFunc.expressionSequence[0],
313
- SimpleFunctionExpression,
314
- `Can't process agg() lambda: only support agg() lambda body with 1 expression`,
315
- );
316
-
317
- assertTrue(
318
- lambdaFunc.functionType.parameters.length === 1,
319
- `Can't process agg() lambda: only support agg() lambda with 1 parameter`,
320
- );
321
-
322
- const lambdaParam = guaranteeType(
323
- lambdaFunc.functionType.parameters[0],
324
- VariableExpression,
325
- `Can't process agg() lambda: only support agg() lambda with 1 parameter`,
326
- );
327
-
328
- for (const operator of aggregationState.operators) {
329
- // NOTE: this allow plugin author to either return `undefined` or throw error
330
- // if there is a problem with building the lambda. Either case, the plugin is
331
- // considered as not supporting the lambda.
332
- const aggregateColumnState = returnUndefOnError(() =>
333
- operator.buildAggregateColumnState(
334
- expression,
335
- lambdaParam,
336
- projectionColumnState,
337
- ),
338
- );
339
- if (aggregateColumnState) {
340
- aggregationState.addColumn(aggregateColumnState);
341
- return;
342
- }
343
- }
344
- throw new UnsupportedOperationError(
345
- `Can't process aggregate expression function: no compatible aggregate operator processer available from plugins`,
346
- );
347
- };
348
-
349
- /**
350
- * This is the expression processor for query builder.
351
- * Unlike expression builder which takes care of transforming the value specification
352
- * from `protocol` to `metamodel`, and type-inferencing, this takes care
353
- * of traversing the expression to populate the query builder UI state.
354
- *
355
- * NOTE: While traversing the expression, this processor also does a fair amount of
356
- * validations and assertsions but just so enough to populate the UI state.
357
- *
358
- * Validation and assertion should be done by both the builder and processor, but the builder
359
- * will do more structural checks to build the proper metamodel. The processor should never
360
- * modify the metamodel, just traversing it.
361
- */
362
- export class QueryBuilderLambdaProcessor
363
- implements ValueSpecificationVisitor<void>
364
- {
365
- queryBuilderState: QueryBuilderState;
366
- precedingExpression?: SimpleFunctionExpression | undefined;
367
-
368
- constructor(
369
- queryBuilderState: QueryBuilderState,
370
- precedingExpression: SimpleFunctionExpression | undefined,
371
- ) {
372
- this.queryBuilderState = queryBuilderState;
373
- this.precedingExpression = precedingExpression;
374
- }
375
-
376
- visit_INTERNAL__UnknownValueSpecification(
377
- valueSpecification: INTERNAL__UnknownValueSpecification,
378
- ): void {
379
- assertNonNullable(
380
- this.precedingExpression,
381
- `Can't process unknown value: unknown value preceding expression cannot be retrieved`,
382
- );
383
- const precedingExpressionName = this.precedingExpression.functionName;
384
- if (
385
- [
386
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_PROJECT,
387
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_GROUP_BY,
388
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_AGG,
389
- ].some((fn) => matchFunctionName(precedingExpressionName, fn))
390
- ) {
391
- const projectionState =
392
- this.queryBuilderState.fetchStructureState.projectionState;
393
- const rawLambdaProtocol = returnUndefOnError(() =>
394
- guaranteeType(
395
- V1_deserializeRawValueSpecification(
396
- valueSpecification.content as PlainObject<V1_RawLambda>,
397
- ),
398
- V1_RawLambda,
399
- ),
400
- );
401
- assertNonNullable(
402
- rawLambdaProtocol,
403
- `Can't process unknown value: only support ${precedingExpressionName}() column expression as a lambda`,
404
- );
405
-
406
- const columnState = new QueryBuilderDerivationProjectionColumnState(
407
- projectionState,
408
- new RawLambda(rawLambdaProtocol.parameters, rawLambdaProtocol.body),
409
- );
410
- projectionState.addColumn(columnState, { skipSorting: true });
411
- return;
412
- }
413
- throw new UnsupportedOperationError(
414
- `Can't process unknown value with preceding expression of function ${this.precedingExpression.functionName}()`,
415
- );
416
- }
417
-
418
- visit_RootGraphFetchTreeInstanceValue(
419
- valueSpecification: RootGraphFetchTreeInstanceValue,
420
- ): void {
421
- throw new UnsupportedOperationError();
422
- }
423
-
424
- visit_PropertyGraphFetchTreeInstanceValue(
425
- valueSpecification: PropertyGraphFetchTreeInstanceValue,
426
- ): void {
427
- throw new UnsupportedOperationError();
428
- }
429
-
430
- visit_AlloySerializationConfigInstanceValue(
431
- valueSpecification: AlloySerializationConfigInstanceValue,
432
- ): void {
433
- throw new UnsupportedOperationError();
434
- }
435
-
436
- visit_PrimitiveInstanceValue(
437
- valueSpecification: PrimitiveInstanceValue,
438
- ): void {
439
- throw new UnsupportedOperationError();
440
- }
441
-
442
- visit_EnumValueInstanceValue(
443
- valueSpecification: EnumValueInstanceValue,
444
- ): void {
445
- throw new UnsupportedOperationError();
446
- }
447
-
448
- visit_RuntimeInstanceValue(valueSpecification: RuntimeInstanceValue): void {
449
- throw new UnsupportedOperationError();
450
- }
451
-
452
- visit_PairInstanceValue(valueSpecification: PairInstanceValue): void {
453
- throw new UnsupportedOperationError();
454
- }
455
-
456
- visit_MappingInstanceValue(valueSpecification: MappingInstanceValue): void {
457
- throw new UnsupportedOperationError();
458
- }
459
-
460
- visit_PureListInstanceValue(valueSpecification: PureListInstanceValue): void {
461
- throw new UnsupportedOperationError();
462
- }
463
-
464
- visit_CollectionInstanceValue(
465
- valueSpecification: CollectionInstanceValue,
466
- ): void {
467
- throw new UnsupportedOperationError();
468
- }
469
-
470
- visit_FunctionExpression(valueSpecification: FunctionExpression): void {
471
- throw new UnsupportedOperationError();
472
- }
473
-
474
- visit_INTERNAL__PropagatedValue(
475
- valueSpecification: INTERNAL__PropagatedValue,
476
- ): void {
477
- throw new UnsupportedOperationError();
478
- }
479
-
480
- visit_SimpleFunctionExpression(
481
- valueSpecification: SimpleFunctionExpression,
482
- ): void {
483
- const functionName = valueSpecification.functionName;
484
- if (
485
- matchFunctionName(functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.GET_ALL)
486
- ) {
487
- const _class = valueSpecification.genericType?.value.rawType;
488
- assertType(
489
- _class,
490
- Class,
491
- `Can't process getAll() expression: getAll() return type is missing`,
492
- );
493
- this.queryBuilderState.querySetupState.setClass(_class, true);
494
- this.queryBuilderState.explorerState.refreshTreeData();
495
- let acceptedNoOfParameters = 1;
496
- const stereotype = getMilestoneTemporalStereotype(
497
- _class,
498
- this.queryBuilderState.graphManagerState.graph,
499
- );
500
- switch (stereotype) {
501
- case MILESTONING_STEREOTYPE.BITEMPORAL:
502
- acceptedNoOfParameters = 3;
503
- assertTrue(
504
- valueSpecification.parametersValues.length ===
505
- acceptedNoOfParameters,
506
- `Can't process getAll() expression: when used with a bitemporal milestoned class getAll() expects two parameters`,
507
- );
508
- this.queryBuilderState.querySetupState.setProcessingDate(
509
- valueSpecification.parametersValues[1],
510
- );
511
- this.queryBuilderState.querySetupState.setBusinessDate(
512
- valueSpecification.parametersValues[2],
513
- );
514
- break;
515
- case MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL:
516
- acceptedNoOfParameters = 2;
517
- assertTrue(
518
- valueSpecification.parametersValues.length ===
519
- acceptedNoOfParameters,
520
- `Can't process getAll() expression: when used with a milestoned class getAll() expects a parameter`,
521
- );
522
- this.queryBuilderState.querySetupState.setBusinessDate(
523
- valueSpecification.parametersValues[1],
524
- );
525
- break;
526
- case MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL:
527
- acceptedNoOfParameters = 2;
528
- assertTrue(
529
- valueSpecification.parametersValues.length ===
530
- acceptedNoOfParameters,
531
- `Can't process getAll() expression: when used with a milestoned class getAll() expects a parameter`,
532
- );
533
- this.queryBuilderState.querySetupState.setProcessingDate(
534
- valueSpecification.parametersValues[1],
535
- );
536
- break;
537
- default:
538
- assertTrue(
539
- valueSpecification.parametersValues.length ===
540
- acceptedNoOfParameters,
541
- `Can't process getAll() expression: getAll() expects no arguments`,
542
- );
543
- }
544
- return;
545
- } else if (
546
- matchFunctionName(
547
- functionName,
548
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.FILTER,
549
- ) ||
550
- matchFunctionName(
551
- functionName,
552
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_FILTER,
553
- )
554
- ) {
555
- assertTrue(
556
- valueSpecification.parametersValues.length === 2,
557
- `Can't process filter() expression: filter() expects 1 argument`,
558
- );
559
-
560
- const filterState = this.queryBuilderState.filterState;
561
- const precedingExpression = guaranteeType(
562
- valueSpecification.parametersValues[0],
563
- SimpleFunctionExpression,
564
- `Can't process filter() expression: only support filter() immediately following an expression`,
565
- );
566
- precedingExpression.accept_ValueSpecificationVisitor(
567
- new QueryBuilderLambdaProcessor(this.queryBuilderState, undefined),
568
- );
569
-
570
- if (
571
- matchFunctionName(
572
- precedingExpression.functionName,
573
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.GET_ALL,
574
- )
575
- ) {
576
- assertTrue(
577
- matchFunctionName(
578
- functionName,
579
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.FILTER,
580
- ),
581
- `Can't process filter() expression: only supports ${QUERY_BUILDER_SUPPORTED_FUNCTIONS.FILTER}() immediately following getAll() (got '${functionName}')`,
582
- );
583
- const filterLambda = valueSpecification.parametersValues[1];
584
- assertType(
585
- filterLambda,
586
- LambdaFunctionInstanceValue,
587
- `Can't process filter() expression: filter() expects argument #1 to be a lambda function`,
588
- );
589
- processFilterLambda(filterLambda, filterState);
590
- /**
591
- * NOTE: Since group operations like and/or do not take more than 2 parameters, if there are
592
- * more than 2 clauses in each group operations, then these clauses are converted into an
593
- * unbalanced tree. However, this would look quite bad for UX, as such, we simplify the tree.
594
- * After building the filter state.
595
- */
596
- filterState.simplifyTree();
597
-
598
- return;
599
- } else if (
600
- matchFunctionName(
601
- precedingExpression.functionName,
602
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_PROJECT,
603
- ) ||
604
- matchFunctionName(
605
- precedingExpression.functionName,
606
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_GROUP_BY,
607
- )
608
- ) {
609
- assertTrue(
610
- matchFunctionName(
611
- functionName,
612
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_FILTER,
613
- ),
614
- `Can't process post-filter expression: only supports ${QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_FILTER}() immediately following TDS project()/groupBy() (got '${functionName}')`,
615
- );
616
- const postFilterState =
617
- this.queryBuilderState.fetchStructureState.projectionState
618
- .postFilterState;
619
- const postFilterLambda = valueSpecification.parametersValues[1];
620
- assertType(
621
- postFilterLambda,
622
- LambdaFunctionInstanceValue,
623
- `Can't process post-filter expression: expects argument #1 to be a lambda function`,
624
- );
625
- processPostFilterLambda(postFilterLambda, postFilterState);
626
- this.queryBuilderState.fetchStructureState.projectionState.setShowPostFilterPanel(
627
- true,
628
- );
629
- postFilterState.simplifyTree();
630
- return;
631
- } else {
632
- throw new UnsupportedOperationError(
633
- "`Can't process filter() expression: only support filter() immediately following getAll() or TDS project()/groupBy()",
634
- );
635
- }
636
- } else if (
637
- matchFunctionName(
638
- functionName,
639
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_PROJECT,
640
- )
641
- ) {
642
- const params = valueSpecification.parametersValues;
643
- assertTrue(
644
- params.length === 3,
645
- `Can't process project() expression: project() expects 2 arguments`,
646
- );
647
-
648
- const precedingExpression = guaranteeType(
649
- params[0],
650
- SimpleFunctionExpression,
651
- `Can't process project() expression: only support project() immediately following an expression`,
652
- );
653
- precedingExpression.accept_ValueSpecificationVisitor(
654
- new QueryBuilderLambdaProcessor(this.queryBuilderState, undefined),
655
- );
656
- // check caller
657
- assertTrue(
658
- [
659
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.GET_ALL,
660
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.FILTER,
661
- ].some((fn) => matchFunctionName(precedingExpression.functionName, fn)),
662
- `Can't process project() expression: only support project() immediately following either getAll() or filter()`,
663
- );
664
-
665
- // columns
666
- const columnLambdas = params[1];
667
- assertType(
668
- columnLambdas,
669
- CollectionInstanceValue,
670
- `Can't process project() expression: project() expects argument #1 to be a collection`,
671
- );
672
- columnLambdas.values.map((value) =>
673
- value.accept_ValueSpecificationVisitor(
674
- new QueryBuilderLambdaProcessor(
675
- this.queryBuilderState,
676
- valueSpecification,
677
- ),
678
- ),
679
- );
680
-
681
- // aliases
682
- const columnAliases = params[2];
683
- assertType(
684
- columnAliases,
685
- CollectionInstanceValue,
686
- `Can't process project() expression: project() expects argument #2 to be a collection`,
687
- );
688
- assertTrue(
689
- columnLambdas.values.length === columnAliases.values.length,
690
- `Can't process project() expression: number of aliases does not match the number of columns`,
691
- );
692
- const aliases = columnAliases.values
693
- .map(getNullableStringValueFromValueSpec)
694
- .filter(isNonNullable);
695
-
696
- this.queryBuilderState.fetchStructureState.projectionState.columns.forEach(
697
- (e, idx) => e.setColumnName(aliases[idx] as string),
698
- );
699
-
700
- this.queryBuilderState.fetchStructureState.setFetchStructureMode(
701
- FETCH_STRUCTURE_MODE.PROJECTION,
702
- );
703
-
704
- return;
705
- } else if (
706
- matchFunctionName(
707
- functionName,
708
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_TAKE,
709
- )
710
- ) {
711
- assertTrue(
712
- valueSpecification.parametersValues.length === 2,
713
- `Can't process take() expression: take() expects 1 argument`,
714
- );
715
-
716
- const precedingExpression = guaranteeType(
717
- valueSpecification.parametersValues[0],
718
- SimpleFunctionExpression,
719
- `Can't process take() expression: only support take() immediately following an expression`,
720
- );
721
- precedingExpression.accept_ValueSpecificationVisitor(
722
- new QueryBuilderLambdaProcessor(this.queryBuilderState, undefined),
723
- );
724
-
725
- // check caller
726
- assertTrue(
727
- [
728
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_TAKE,
729
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_DISTINCT,
730
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_SORT,
731
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_PROJECT,
732
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_GROUP_BY,
733
- ].some((fn) => matchFunctionName(precedingExpression.functionName, fn)),
734
- `Can't process take() expression: only support take() in TDS expression`,
735
- );
736
-
737
- const takeValue = getNullableNumberValueFromValueSpec(
738
- guaranteeNonNullable(valueSpecification.parametersValues[1]),
739
- );
740
- this.queryBuilderState.fetchStructureState.projectionState.resultSetModifierState.setLimit(
741
- takeValue,
742
- );
743
-
744
- return;
745
- } else if (
746
- matchFunctionName(
747
- functionName,
748
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_DISTINCT,
749
- )
750
- ) {
751
- assertTrue(
752
- valueSpecification.parametersValues.length === 1,
753
- `Can't process disctinct() expression: distinct() expects no parameter`,
754
- );
755
-
756
- const precedingExpression = guaranteeType(
757
- valueSpecification.parametersValues[0],
758
- SimpleFunctionExpression,
759
- `Can't process distinct() expression: only support distinct() immediately following an expression`,
760
- );
761
- precedingExpression.accept_ValueSpecificationVisitor(
762
- new QueryBuilderLambdaProcessor(this.queryBuilderState, undefined),
763
- );
764
-
765
- // check caller
766
- assertTrue(
767
- [
768
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_TAKE,
769
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_DISTINCT,
770
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_SORT,
771
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_PROJECT,
772
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_GROUP_BY,
773
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_FILTER,
774
- ].some((fn) => matchFunctionName(precedingExpression.functionName, fn)),
775
- `Can't process distinct() expression: only support distinct() in TDS expression`,
776
- );
777
-
778
- this.queryBuilderState.fetchStructureState.projectionState.resultSetModifierState.distinct =
779
- true;
780
-
781
- return;
782
- } else if (
783
- matchFunctionName(
784
- functionName,
785
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_SORT,
786
- )
787
- ) {
788
- assertTrue(
789
- valueSpecification.parametersValues.length === 2,
790
- `Can't process sort() expression: sort() expects 1 argument`,
791
- );
792
-
793
- const precedingExpression = guaranteeType(
794
- valueSpecification.parametersValues[0],
795
- SimpleFunctionExpression,
796
- `Can't process sort() expression: only support sort() immediately following an expression`,
797
- );
798
- precedingExpression.accept_ValueSpecificationVisitor(
799
- new QueryBuilderLambdaProcessor(this.queryBuilderState, undefined),
800
- );
801
-
802
- // check caller
803
- assertTrue(
804
- [
805
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_TAKE,
806
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_DISTINCT,
807
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_SORT,
808
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_PROJECT,
809
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_GROUP_BY,
810
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_FILTER,
811
- ].some((fn) => matchFunctionName(precedingExpression.functionName, fn)),
812
- `Can't process sort() expression: only support sort() in TDS expression`,
813
- );
814
-
815
- const sortParam = valueSpecification.parametersValues[1];
816
- assertType(
817
- sortParam,
818
- CollectionInstanceValue,
819
- `Can't process sort() expression: sort() argument should be a collection`,
820
- );
821
- sortParam.values.map((e) =>
822
- e.accept_ValueSpecificationVisitor(
823
- new QueryBuilderLambdaProcessor(
824
- this.queryBuilderState,
825
- valueSpecification,
826
- ),
827
- ),
828
- );
829
-
830
- return;
831
- } else if (
832
- (matchFunctionName(
833
- functionName,
834
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_ASC,
835
- ) ||
836
- matchFunctionName(
837
- functionName,
838
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_DESC,
839
- )) &&
840
- this.precedingExpression &&
841
- matchFunctionName(
842
- this.precedingExpression.functionName,
843
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_SORT,
844
- )
845
- ) {
846
- assertTrue(
847
- valueSpecification.parametersValues.length === 1,
848
- `Can't process ${functionName}() expression: ${functionName}() expects no argument`,
849
- );
850
-
851
- const sortColumnName = getNullableStringValueFromValueSpec(
852
- guaranteeNonNullable(valueSpecification.parametersValues[0]),
853
- );
854
- const queryBuilderProjectionColumnState =
855
- this.queryBuilderState.fetchStructureState.projectionState.columns.find(
856
- (e) => e.columnName === sortColumnName,
857
- );
858
- if (queryBuilderProjectionColumnState) {
859
- const sortColumnState = new SortColumnState(
860
- queryBuilderProjectionColumnState,
861
- );
862
- sortColumnState.sortType = matchFunctionName(
863
- functionName,
864
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_ASC,
865
- )
866
- ? COLUMN_SORT_TYPE.ASC
867
- : COLUMN_SORT_TYPE.DESC;
868
- this.queryBuilderState.fetchStructureState.projectionState.resultSetModifierState.addSortColumn(
869
- sortColumnState,
870
- );
871
- }
872
-
873
- return;
874
- } else if (
875
- matchFunctionName(
876
- functionName,
877
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_GROUP_BY,
878
- )
879
- ) {
880
- assertTrue(
881
- valueSpecification.parametersValues.length === 4,
882
- `Can't process groupBy() expression: groupBy() expects 3 arguments`,
883
- );
884
-
885
- const params = valueSpecification.parametersValues;
886
- const precedingExpression = guaranteeType(
887
- params[0],
888
- SimpleFunctionExpression,
889
- `Can't process groupBy() expression: only support groupBy() immediately following an expression`,
890
- );
891
- precedingExpression.accept_ValueSpecificationVisitor(
892
- new QueryBuilderLambdaProcessor(this.queryBuilderState, undefined),
893
- );
894
-
895
- // check caller
896
- assertTrue(
897
- [
898
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.GET_ALL,
899
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.FILTER,
900
- ].some((fn) => matchFunctionName(precedingExpression.functionName, fn)),
901
- `Can't process groupBy() expression: only support groupBy() immediately following either getAll() or filter()`,
902
- );
903
-
904
- // columns
905
- const columnExpressions = params[1];
906
- assertType(
907
- columnExpressions,
908
- CollectionInstanceValue,
909
- `Can't process groupBy() expression: groupBy() expects argument #1 to be a collection`,
910
- );
911
- columnExpressions.values.map((e) =>
912
- e.accept_ValueSpecificationVisitor(
913
- new QueryBuilderLambdaProcessor(
914
- this.queryBuilderState,
915
- valueSpecification,
916
- ),
917
- ),
918
- );
919
-
920
- // aggregations
921
- const aggregationExpressions = params[2];
922
- assertType(
923
- aggregationExpressions,
924
- CollectionInstanceValue,
925
- `Can't process groupBy() expression: groupBy() expects argument #2 to be a collection`,
926
- );
927
- aggregationExpressions.values.map((e) =>
928
- e.accept_ValueSpecificationVisitor(
929
- new QueryBuilderLambdaProcessor(
930
- this.queryBuilderState,
931
- valueSpecification,
932
- ),
933
- ),
934
- );
935
-
936
- // aliases
937
- const columnAliases = params[3];
938
- assertType(
939
- columnAliases,
940
- CollectionInstanceValue,
941
- `Can't process groupBy() expression: groupBy() expects argument #3 to be a collection`,
942
- );
943
- assertTrue(
944
- columnAliases.values.length ===
945
- columnExpressions.values.length +
946
- aggregationExpressions.values.length,
947
- `Can't process groupBy() expression: number of aliases does not match the number of columns`,
948
- );
949
- const aliases = columnAliases.values
950
- .map(getNullableStringValueFromValueSpec)
951
- .filter(isNonNullable);
952
- this.queryBuilderState.fetchStructureState.projectionState.columns.forEach(
953
- (e, idx) => e.setColumnName(aliases[idx] as string),
954
- );
955
-
956
- this.queryBuilderState.fetchStructureState.setFetchStructureMode(
957
- FETCH_STRUCTURE_MODE.PROJECTION,
958
- );
959
-
960
- return;
961
- } else if (
962
- matchFunctionName(functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_AGG)
963
- ) {
964
- assertTrue(
965
- valueSpecification.parametersValues.length === 2,
966
- `Can't process agg() expression: agg() expects 2 arguments`,
967
- );
968
-
969
- // check caller
970
- assertNonNullable(this.precedingExpression);
971
- assertTrue(
972
- matchFunctionName(
973
- this.precedingExpression.functionName,
974
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_GROUP_BY,
975
- ),
976
- `Can't process agg() expression: only support agg() in aggregation`,
977
- );
978
-
979
- const columnLambdas = guaranteeNonNullable(
980
- valueSpecification.parametersValues[0],
981
- );
982
- columnLambdas.accept_ValueSpecificationVisitor(
983
- new QueryBuilderLambdaProcessor(
984
- this.queryBuilderState,
985
- valueSpecification,
986
- ),
987
- );
988
-
989
- const aggregateLambda = valueSpecification.parametersValues[1];
990
- assertType(
991
- aggregateLambda,
992
- LambdaFunctionInstanceValue,
993
- `Can't process agg() expression: agg() expects argument #1 to be a lambda function`,
994
- );
995
-
996
- // NOTE: since we process agg() expressions one by one, we know that the current agg()
997
- // always correspond to the last column projection state, based on our processing procedure
998
- processAggregateLambda(
999
- aggregateLambda,
1000
- guaranteeNonNullable(
1001
- this.queryBuilderState.fetchStructureState.projectionState.columns[
1002
- this.queryBuilderState.fetchStructureState.projectionState.columns
1003
- .length - 1
1004
- ],
1005
- ),
1006
- this.queryBuilderState.fetchStructureState.projectionState
1007
- .aggregationState,
1008
- );
1009
-
1010
- return;
1011
- } else if (
1012
- matchFunctionName(
1013
- functionName,
1014
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.SERIALIZE,
1015
- )
1016
- ) {
1017
- assertTrue(
1018
- valueSpecification.parametersValues.length === 2,
1019
- `Can't process serialize() expression: serialize() expects 1 argument`,
1020
- );
1021
-
1022
- const precedingExpression = guaranteeType(
1023
- valueSpecification.parametersValues[0],
1024
- SimpleFunctionExpression,
1025
- `Can't process serialize() expression: only support serialize() immediately following an expression`,
1026
- );
1027
- precedingExpression.accept_ValueSpecificationVisitor(
1028
- new QueryBuilderLambdaProcessor(
1029
- this.queryBuilderState,
1030
-
1031
- valueSpecification,
1032
- ),
1033
- );
1034
-
1035
- // check caller
1036
- assertTrue(
1037
- [
1038
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.GRAPH_FETCH,
1039
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.GRAPH_FETCH_CHECKED,
1040
- ].some((fn) => matchFunctionName(precedingExpression.functionName, fn)),
1041
- `Can't process serialize() expression: only support serialize() in graph-fetch expression`,
1042
- );
1043
-
1044
- const serializeFunc = guaranteeType(
1045
- valueSpecification.parametersValues[1],
1046
- GraphFetchTreeInstanceValue,
1047
- `Can't process serialize() expression: serialize() graph-fetch is missing`,
1048
- );
1049
- const value = guaranteeType(
1050
- serializeFunc.values[0],
1051
- RootGraphFetchTree,
1052
- `Can't process serialize() expression: serialize() graph-fetch tree root is missing`,
1053
- );
1054
- this.queryBuilderState.fetchStructureState.setFetchStructureMode(
1055
- FETCH_STRUCTURE_MODE.GRAPH_FETCH,
1056
- );
1057
- this.queryBuilderState.fetchStructureState.graphFetchTreeState.initialize(
1058
- value,
1059
- );
1060
-
1061
- return;
1062
- } else if (
1063
- (matchFunctionName(
1064
- functionName,
1065
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.GRAPH_FETCH_CHECKED,
1066
- ) ||
1067
- matchFunctionName(
1068
- functionName,
1069
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.GRAPH_FETCH,
1070
- )) &&
1071
- this.precedingExpression &&
1072
- matchFunctionName(
1073
- this.precedingExpression.functionName,
1074
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.SERIALIZE,
1075
- )
1076
- ) {
1077
- assertTrue(
1078
- valueSpecification.parametersValues.length === 2,
1079
- `Can't process ${functionName}() expression: ${functionName}() expects 1 argument`,
1080
- );
1081
-
1082
- const precedingExpression = guaranteeType(
1083
- valueSpecification.parametersValues[0],
1084
- SimpleFunctionExpression,
1085
- `Can't process ${functionName}() expression: only support ${functionName}() immediately following an expression`,
1086
- );
1087
- precedingExpression.accept_ValueSpecificationVisitor(
1088
- new QueryBuilderLambdaProcessor(
1089
- this.queryBuilderState,
1090
- valueSpecification,
1091
- ),
1092
- );
1093
-
1094
- // check caller
1095
- assertTrue(
1096
- [
1097
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.FILTER,
1098
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.GET_ALL,
1099
- ].some((fn) => matchFunctionName(precedingExpression.functionName, fn)),
1100
- `Can't process ${functionName}(): only support ${functionName}() immediately following either getAll() or filter()`,
1101
- );
1102
-
1103
- this.queryBuilderState.fetchStructureState.graphFetchTreeState.setChecked(
1104
- matchFunctionName(
1105
- functionName,
1106
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.GRAPH_FETCH_CHECKED,
1107
- ),
1108
- );
1109
-
1110
- return;
1111
- }
1112
- throw new UnsupportedOperationError(
1113
- `Can't process expression of function ${functionName}()`,
1114
- );
1115
- }
1116
-
1117
- visit_VariableExpression(valueSpecification: VariableExpression): void {
1118
- throw new UnsupportedOperationError();
1119
- }
1120
-
1121
- visit_LambdaFunctionInstanceValue(
1122
- valueSpecification: LambdaFunctionInstanceValue,
1123
- ): void {
1124
- valueSpecification.values.forEach((value) =>
1125
- value.expressionSequence.forEach((expression) =>
1126
- expression.accept_ValueSpecificationVisitor(
1127
- new QueryBuilderLambdaProcessor(
1128
- this.queryBuilderState,
1129
- this.precedingExpression,
1130
- ),
1131
- ),
1132
- ),
1133
- );
1134
- }
1135
-
1136
- visit_AbstractPropertyExpression(
1137
- valueSpecification: AbstractPropertyExpression,
1138
- ): void {
1139
- assertNonNullable(
1140
- this.precedingExpression,
1141
- `Can't process property expression: property expression preceding expression cannot be retrieved`,
1142
- );
1143
-
1144
- const precedingExpressionName = this.precedingExpression.functionName;
1145
- if (
1146
- [
1147
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_PROJECT,
1148
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_GROUP_BY,
1149
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_AGG,
1150
- ].some((fn) => matchFunctionName(precedingExpressionName, fn))
1151
- ) {
1152
- // NOTE: we do this before creating the projection state, as we will
1153
- // auto-fill arguments for derived properties when missing as part of building
1154
- // the property expression state.
1155
- let currentPropertyExpression: ValueSpecification = valueSpecification;
1156
- while (currentPropertyExpression instanceof AbstractPropertyExpression) {
1157
- const propertyExpression = currentPropertyExpression;
1158
- validatePropertyExpressionChain(
1159
- currentPropertyExpression,
1160
- this.queryBuilderState.graphManagerState.graph,
1161
- );
1162
- currentPropertyExpression = guaranteeNonNullable(
1163
- currentPropertyExpression.parametersValues[0],
1164
- );
1165
- // here we just do a simple check to ensure that if we encounter derived properties
1166
- // the number of parameters and arguments provided match
1167
- if (propertyExpression.func instanceof DerivedProperty) {
1168
- assertTrue(
1169
- (Array.isArray(propertyExpression.func.parameters)
1170
- ? propertyExpression.func.parameters.length
1171
- : 0) ===
1172
- propertyExpression.parametersValues.length - 1,
1173
- `Can't process property expression: derived property '${propertyExpression.func.name}' expects number of provided arguments to match number of parameters`,
1174
- );
1175
- }
1176
- // Take care of chains of subtype (a pattern that is not useful, but we want to support and rectify)
1177
- // $x.employees->subType(@Person)->subType(@Staff)
1178
- while (
1179
- currentPropertyExpression instanceof SimpleFunctionExpression &&
1180
- matchFunctionName(
1181
- currentPropertyExpression.functionName,
1182
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE,
1183
- )
1184
- ) {
1185
- currentPropertyExpression = guaranteeNonNullable(
1186
- currentPropertyExpression.parametersValues[0],
1187
- );
1188
- }
1189
- }
1190
- assertType(
1191
- currentPropertyExpression,
1192
- VariableExpression,
1193
- `Can't process property expression: expects expression root to be a variable`,
1194
- );
1195
-
1196
- const projectionState =
1197
- this.queryBuilderState.fetchStructureState.projectionState;
1198
- const columnState = new QueryBuilderSimpleProjectionColumnState(
1199
- projectionState,
1200
- valueSpecification,
1201
- false,
1202
- );
1203
-
1204
- projectionState.addColumn(columnState, { skipSorting: true });
1205
-
1206
- // NOTE: technically we should set the lambda parameter name when we process
1207
- // the lambda, not when we process the lambda body like this, but that requires
1208
- // some setup, so it's easier to do it here. The validation of this should have
1209
- // already been taken care of by the builder.
1210
- columnState.setLambdaParameterName(currentPropertyExpression.name);
1211
- return;
1212
- }
1213
- throw new UnsupportedOperationError(
1214
- `Can't process property expression with preceding expression of function ${this.precedingExpression.functionName}()`,
1215
- );
1216
- }
1217
-
1218
- visit_InstanceValue(valueSpecification: InstanceValue): void {
1219
- throw new UnsupportedOperationError();
1220
- }
1221
- }
1222
-
1223
- export const processQueryParameters = (
1224
- parameters: VariableExpression[],
1225
- queryBuilderState: QueryBuilderState,
1226
- ): void => {
1227
- const queryParameterState = queryBuilderState.queryParametersState;
1228
- parameters.forEach((parameter) => {
1229
- const parameterState = new LambdaParameterState(
1230
- parameter,
1231
- queryBuilderState.observableContext,
1232
- queryBuilderState.graphManagerState.graph,
1233
- );
1234
- parameterState.mockParameterValue();
1235
- queryParameterState.addParameter(parameterState);
1236
- });
1237
- };
1238
-
1239
- export const processQueryBuilderLambdaFunction = (
1240
- queryBuilderState: QueryBuilderState,
1241
- lambdaFunc: LambdaFunction,
1242
- ): void => {
1243
- if (lambdaFunc.functionType.parameters.length) {
1244
- processQueryParameters(
1245
- lambdaFunc.functionType.parameters,
1246
- queryBuilderState,
1247
- );
1248
- }
1249
- lambdaFunc.expressionSequence.map((e) =>
1250
- e.accept_ValueSpecificationVisitor(
1251
- new QueryBuilderLambdaProcessor(queryBuilderState, undefined),
1252
- ),
1253
- );
1254
- };