@finos/legend-query-builder 0.4.0 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (369) hide show
  1. package/lib/components/QueryBuilder.js +2 -2
  2. package/lib/components/QueryBuilderDiffPanel.d.ts.map +1 -1
  3. package/lib/components/QueryBuilderDiffPanel.js.map +1 -1
  4. package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
  5. package/lib/components/QueryBuilderParametersPanel.js +4 -5
  6. package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
  7. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
  8. package/lib/components/QueryBuilderPropertyExpressionEditor.js +2 -3
  9. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
  10. package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
  11. package/lib/components/QueryBuilderResultPanel.js.map +1 -1
  12. package/lib/components/QueryBuilderSideBar.js +3 -3
  13. package/lib/components/QueryBuilderSideBar.js.map +1 -1
  14. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
  15. package/lib/components/explorer/QueryBuilderExplorerPanel.js +2 -2
  16. package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
  17. package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
  18. package/lib/components/explorer/QueryBuilderMilestoningEditor.js +3 -3
  19. package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
  20. package/lib/components/fetch-structure/{QueryBuilderOlapGroupByPanel.d.ts → QueryBuilderOLAPGroupByPanel_.d.ts} +3 -3
  21. package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel_.d.ts.map +1 -0
  22. package/lib/components/fetch-structure/{QueryBuilderOlapGroupByPanel.js → QueryBuilderOLAPGroupByPanel_.js} +63 -25
  23. package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel_.js.map +1 -0
  24. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +1 -1
  25. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  26. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js +3 -3
  27. package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js.map +1 -1
  28. package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.d.ts +1 -1
  29. package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.d.ts.map +1 -1
  30. package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
  31. package/lib/components/shared/BasicValueSpecificationEditor.js +7 -8
  32. package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
  33. package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
  34. package/lib/components/shared/CustomDatePicker.js +30 -35
  35. package/lib/components/shared/CustomDatePicker.js.map +1 -1
  36. package/lib/components/shared/LambdaParameterValuesEditor.d.ts.map +1 -1
  37. package/lib/components/shared/LambdaParameterValuesEditor.js +3 -5
  38. package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
  39. package/lib/components/watermark/QueryBuilderWatermark.d.ts.map +1 -1
  40. package/lib/components/watermark/QueryBuilderWatermark.js +6 -4
  41. package/lib/components/watermark/QueryBuilderWatermark.js.map +1 -1
  42. package/lib/graphManager/QueryBuilderHashUtils.d.ts +14 -14
  43. package/lib/graphManager/QueryBuilderHashUtils.d.ts.map +1 -1
  44. package/lib/graphManager/QueryBuilderHashUtils.js +14 -14
  45. package/lib/graphManager/QueryBuilderHashUtils.js.map +1 -1
  46. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +2 -2
  47. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts.map +1 -1
  48. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js +3 -3
  49. package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js.map +1 -1
  50. package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts +1 -1
  51. package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -1
  52. package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +7 -8
  53. package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -1
  54. package/lib/index.css +2 -2
  55. package/lib/index.css.map +1 -1
  56. package/lib/package.json +5 -5
  57. package/lib/stores/QueryBuilderMilestoningState.d.ts.map +1 -1
  58. package/lib/stores/QueryBuilderMilestoningState.js +2 -2
  59. package/lib/stores/QueryBuilderMilestoningState.js.map +1 -1
  60. package/lib/stores/QueryBuilderPropertyEditorState.d.ts +5 -0
  61. package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +1 -1
  62. package/lib/stores/QueryBuilderPropertyEditorState.js +13 -22
  63. package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -1
  64. package/lib/stores/QueryBuilderResultState.d.ts +2 -1
  65. package/lib/stores/QueryBuilderResultState.d.ts.map +1 -1
  66. package/lib/stores/QueryBuilderResultState.js +14 -16
  67. package/lib/stores/QueryBuilderResultState.js.map +1 -1
  68. package/lib/stores/QueryBuilderStateBuilder.d.ts +7 -13
  69. package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
  70. package/lib/stores/QueryBuilderStateBuilder.js +18 -36
  71. package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
  72. package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -1
  73. package/lib/stores/QueryBuilderValueSpecificationBuilder.js +6 -22
  74. package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
  75. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +1 -1
  76. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +3 -4
  77. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -1
  78. package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts +6 -2
  79. package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +1 -1
  80. package/lib/stores/QueryBuilderValueSpecificationHelper.js +12 -11
  81. package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
  82. package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +1 -1
  83. package/lib/stores/explorer/QueryBuilderExplorerState.js +8 -9
  84. package/lib/stores/explorer/QueryBuilderExplorerState.js.map +1 -1
  85. package/lib/stores/explorer/QueryBuilderPropertySearchState.d.ts.map +1 -1
  86. package/lib/stores/explorer/QueryBuilderPropertySearchState.js +2 -4
  87. package/lib/stores/explorer/QueryBuilderPropertySearchState.js.map +1 -1
  88. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.d.ts.map +1 -1
  89. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js +8 -10
  90. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js.map +1 -1
  91. package/lib/stores/fetch-structure/tds/{QueryBuilderTDSColumnState_.d.ts → QueryBuilderTDSColumnState.d.ts} +1 -1
  92. package/lib/stores/fetch-structure/tds/QueryBuilderTDSColumnState.d.ts.map +1 -0
  93. package/lib/stores/fetch-structure/tds/{QueryBuilderTDSColumnState_.js → QueryBuilderTDSColumnState.js} +1 -1
  94. package/lib/stores/fetch-structure/tds/QueryBuilderTDSColumnState.js.map +1 -0
  95. package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.d.ts +1 -1
  96. package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.d.ts.map +1 -1
  97. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +5 -5
  98. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
  99. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +4 -4
  100. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  101. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts +1 -1
  102. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts.map +1 -1
  103. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js +1 -1
  104. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js.map +1 -1
  105. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.d.ts.map +1 -1
  106. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.js +3 -4
  107. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.js.map +1 -1
  108. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +1 -1
  109. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.js +2 -4
  110. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +1 -1
  111. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +1 -1
  112. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.js +2 -4
  113. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +1 -1
  114. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +1 -1
  115. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +4 -5
  116. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -1
  117. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts.map +1 -1
  118. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js +8 -11
  119. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +1 -1
  120. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +1 -1
  121. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js +2 -4
  122. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +1 -1
  123. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +1 -1
  124. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js +2 -4
  125. package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +1 -1
  126. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByOperatorLoader.d.ts → QueryBuilderOLAPGroupByOperatorLoader_.d.ts} +3 -3
  127. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader_.d.ts.map +1 -0
  128. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader_.js +36 -0
  129. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader_.js.map +1 -0
  130. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByStateBuilder.d.ts → QueryBuilderOLAPGroupByStateBuilder_.d.ts} +2 -2
  131. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder_.d.ts.map +1 -0
  132. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByStateBuilder.js → QueryBuilderOLAPGroupByStateBuilder_.js} +8 -8
  133. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder_.js.map +1 -0
  134. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByState.d.ts → QueryBuilderOLAPGroupByState_.d.ts} +35 -35
  135. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState_.d.ts.map +1 -0
  136. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByState.js → QueryBuilderOLAPGroupByState_.js} +21 -21
  137. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState_.js.map +1 -0
  138. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByValueSpecificationBuilder.d.ts → QueryBuilderOLAPGroupByValueSpecificationBuilder_.d.ts} +3 -3
  139. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder_.d.ts.map +1 -0
  140. package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByValueSpecificationBuilder.js → QueryBuilderOLAPGroupByValueSpecificationBuilder_.js} +17 -19
  141. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder_.js.map +1 -0
  142. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_.d.ts → QueryBuilderTDS_OLAPOperator.d.ts} +3 -3
  143. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_.d.ts.map → QueryBuilderTDS_OLAPOperator.d.ts.map} +1 -1
  144. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_.js → QueryBuilderTDS_OLAPOperator.js} +4 -4
  145. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator.js.map +1 -0
  146. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Count.d.ts → QueryBuilderTDS_OLAPOperator_Average.d.ts} +3 -3
  147. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.d.ts.map +1 -0
  148. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Average.js → QueryBuilderTDS_OLAPOperator_Average.js} +4 -4
  149. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.js.map +1 -0
  150. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Average.d.ts → QueryBuilderTDS_OLAPOperator_Count.d.ts} +3 -3
  151. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.d.ts.map +1 -0
  152. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Count.js → QueryBuilderTDS_OLAPOperator_Count.js} +4 -4
  153. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.js.map +1 -0
  154. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Sum.d.ts → QueryBuilderTDS_OLAPOperator_Max.d.ts} +3 -3
  155. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.d.ts.map +1 -0
  156. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Max.js → QueryBuilderTDS_OLAPOperator_Max.js} +4 -4
  157. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.js.map +1 -0
  158. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Max.d.ts → QueryBuilderTDS_OLAPOperator_Min.d.ts} +3 -3
  159. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.d.ts.map +1 -0
  160. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Min.js → QueryBuilderTDS_OLAPOperator_Min.js} +4 -4
  161. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.js.map +1 -0
  162. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Min.d.ts → QueryBuilderTDS_OLAPOperator_Sum.d.ts} +3 -3
  163. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.d.ts.map +1 -0
  164. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Sum.js → QueryBuilderTDS_OLAPOperator_Sum.js} +4 -4
  165. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.js.map +1 -0
  166. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_AverageRank_.d.ts → QueryBuilderTDS_OLAPRankOperator_AverageRank.d.ts} +3 -3
  167. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_AverageRank.d.ts.map +1 -0
  168. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_AverageRank_.js → QueryBuilderTDS_OLAPRankOperator_AverageRank.js} +6 -4
  169. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_AverageRank_.js.map → QueryBuilderTDS_OLAPRankOperator_AverageRank.js.map} +1 -1
  170. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_DenseRank_.d.ts → QueryBuilderTDS_OLAPRankOperator_DenseRank.d.ts} +3 -3
  171. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_DenseRank.d.ts.map +1 -0
  172. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_DenseRank_.js → QueryBuilderTDS_OLAPRankOperator_DenseRank.js} +6 -4
  173. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_DenseRank_.js.map → QueryBuilderTDS_OLAPRankOperator_DenseRank.js.map} +1 -1
  174. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_Rank_.d.ts → QueryBuilderTDS_OLAPRankOperator_Rank.d.ts} +3 -3
  175. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_Rank.d.ts.map +1 -0
  176. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_Rank_.js → QueryBuilderTDS_OLAPRankOperator_Rank.js} +4 -4
  177. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_Rank_.js.map → QueryBuilderTDS_OLAPRankOperator_Rank.js.map} +1 -1
  178. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_RowNumber_.d.ts → QueryBuilderTDS_OLAPRankOperator_RowNumber.d.ts} +3 -3
  179. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_RowNumber.d.ts.map +1 -0
  180. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_RowNumber_.js → QueryBuilderTDS_OLAPRankOperator_RowNumber.js} +6 -4
  181. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_RowNumber_.js.map → QueryBuilderTDS_OLAPRankOperator_RowNumber.js.map} +1 -1
  182. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts +1 -1
  183. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -1
  184. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +10 -10
  185. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
  186. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map +1 -1
  187. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js +4 -6
  188. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +1 -1
  189. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts +2 -2
  190. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts.map +1 -1
  191. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +5 -7
  192. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -1
  193. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts.map +1 -1
  194. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js +5 -7
  195. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js.map +1 -1
  196. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -1
  197. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +4 -10
  198. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -1
  199. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -1
  200. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +4 -10
  201. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -1
  202. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -1
  203. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +3 -7
  204. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -1
  205. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +1 -1
  206. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js +3 -7
  207. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -1
  208. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +1 -1
  209. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +2 -3
  210. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -1
  211. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -1
  212. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +4 -10
  213. package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -1
  214. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts +1 -1
  215. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts.map +1 -1
  216. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js +5 -5
  217. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js.map +1 -1
  218. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
  219. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +14 -18
  220. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
  221. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts.map +1 -1
  222. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js +4 -6
  223. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +1 -1
  224. package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.d.ts.map +1 -1
  225. package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.js +10 -13
  226. package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.js.map +1 -1
  227. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -1
  228. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +6 -7
  229. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js.map +1 -1
  230. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +1 -1
  231. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js +6 -7
  232. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +1 -1
  233. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +1 -1
  234. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js +3 -5
  235. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +1 -1
  236. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts.map +1 -1
  237. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js +3 -5
  238. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +1 -1
  239. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +1 -1
  240. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js +4 -7
  241. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +1 -1
  242. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -1
  243. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js +6 -7
  244. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +1 -1
  245. package/lib/stores/shared/LambdaParameterState.d.ts +1 -2
  246. package/lib/stores/shared/LambdaParameterState.d.ts.map +1 -1
  247. package/lib/stores/shared/LambdaParameterState.js +2 -22
  248. package/lib/stores/shared/LambdaParameterState.js.map +1 -1
  249. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
  250. package/lib/stores/shared/ValueSpecificationEditorHelper.js +6 -7
  251. package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
  252. package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts +1 -2
  253. package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts.map +1 -1
  254. package/lib/stores/watermark/QueryBuilderWatermarkState.js +2 -7
  255. package/lib/stores/watermark/QueryBuilderWatermarkState.js.map +1 -1
  256. package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.d.ts.map +1 -1
  257. package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.js +1 -1
  258. package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.js.map +1 -1
  259. package/package.json +12 -12
  260. package/src/components/QueryBuilder.tsx +2 -2
  261. package/src/components/QueryBuilderDiffPanel.tsx +4 -16
  262. package/src/components/QueryBuilderParametersPanel.tsx +14 -23
  263. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +1 -4
  264. package/src/components/QueryBuilderResultPanel.tsx +2 -1
  265. package/src/components/QueryBuilderSideBar.tsx +3 -3
  266. package/src/components/explorer/QueryBuilderExplorerPanel.tsx +4 -2
  267. package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +3 -13
  268. package/src/components/fetch-structure/{QueryBuilderOlapGroupByPanel.tsx → QueryBuilderOLAPGroupByPanel_.tsx} +168 -87
  269. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +4 -4
  270. package/src/components/fetch-structure/QueryBuilderPostTDSPanel.tsx +5 -5
  271. package/src/components/fetch-structure/QueryBuilderTDSComponentHelper.tsx +1 -1
  272. package/src/components/shared/BasicValueSpecificationEditor.tsx +1 -10
  273. package/src/components/shared/CustomDatePicker.tsx +37 -47
  274. package/src/components/shared/LambdaParameterValuesEditor.tsx +4 -6
  275. package/src/components/watermark/QueryBuilderWatermark.tsx +16 -6
  276. package/src/graphManager/QueryBuilderHashUtils.ts +14 -14
  277. package/src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +2 -2
  278. package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.ts +3 -4
  279. package/src/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +18 -12
  280. package/src/stores/QueryBuilderMilestoningState.ts +4 -12
  281. package/src/stores/QueryBuilderPropertyEditorState.ts +15 -30
  282. package/src/stores/QueryBuilderResultState.ts +19 -22
  283. package/src/stores/QueryBuilderStateBuilder.ts +44 -78
  284. package/src/stores/QueryBuilderValueSpecificationBuilder.ts +8 -33
  285. package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +2 -10
  286. package/src/stores/QueryBuilderValueSpecificationHelper.ts +24 -25
  287. package/src/stores/explorer/QueryBuilderExplorerState.ts +6 -19
  288. package/src/stores/explorer/QueryBuilderPropertySearchState.ts +2 -8
  289. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.ts +5 -30
  290. package/src/stores/fetch-structure/tds/{QueryBuilderTDSColumnState_.ts → QueryBuilderTDSColumnState.ts} +0 -0
  291. package/src/stores/fetch-structure/tds/QueryBuilderTDSHelper.ts +1 -1
  292. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +8 -8
  293. package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.ts +1 -1
  294. package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.ts +2 -6
  295. package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.ts +2 -4
  296. package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.ts +2 -4
  297. package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +2 -7
  298. package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.ts +10 -17
  299. package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.ts +2 -4
  300. package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.ts +2 -4
  301. package/src/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader_.ts +39 -0
  302. package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByStateBuilder.ts → QueryBuilderOLAPGroupByStateBuilder_.ts} +14 -14
  303. package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByState.ts → QueryBuilderOLAPGroupByState_.ts} +51 -51
  304. package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByValueSpecificationBuilder.ts → QueryBuilderOLAPGroupByValueSpecificationBuilder_.ts} +28 -33
  305. package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_.ts → QueryBuilderTDS_OLAPOperator.ts} +4 -4
  306. package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Average.ts → QueryBuilderTDS_OLAPOperator_Average.ts} +3 -3
  307. package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Count.ts → QueryBuilderTDS_OLAPOperator_Count.ts} +3 -3
  308. package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Max.ts → QueryBuilderTDS_OLAPOperator_Max.ts} +3 -3
  309. package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Min.ts → QueryBuilderTDS_OLAPOperator_Min.ts} +3 -3
  310. package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Sum.ts → QueryBuilderTDS_OLAPOperator_Sum.ts} +3 -3
  311. package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_AverageRank_.ts → QueryBuilderTDS_OLAPRankOperator_AverageRank.ts} +5 -3
  312. package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_DenseRank_.ts → QueryBuilderTDS_OLAPRankOperator_DenseRank.ts} +5 -3
  313. package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_Rank_.ts → QueryBuilderTDS_OLAPRankOperator_Rank.ts} +3 -3
  314. package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_RowNumber_.ts → QueryBuilderTDS_OLAPRankOperator_RowNumber.ts} +5 -3
  315. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +11 -10
  316. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.ts +1 -1
  317. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts +0 -12
  318. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +8 -14
  319. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.ts +5 -14
  320. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +4 -12
  321. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +4 -12
  322. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +1 -13
  323. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +3 -13
  324. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +2 -5
  325. package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +4 -12
  326. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.ts +7 -11
  327. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +11 -44
  328. package/src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts +0 -12
  329. package/src/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.ts +5 -28
  330. package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +6 -6
  331. package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +6 -6
  332. package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +0 -8
  333. package/src/stores/filter/operators/QueryBuilderFilterOperator_In.ts +2 -8
  334. package/src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts +4 -8
  335. package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +6 -6
  336. package/src/stores/shared/LambdaParameterState.ts +0 -49
  337. package/src/stores/shared/ValueSpecificationEditorHelper.ts +2 -9
  338. package/src/stores/watermark/QueryBuilderWatermarkState.ts +2 -29
  339. package/src/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.ts +0 -2
  340. package/tsconfig.json +16 -16
  341. package/lib/components/fetch-structure/QueryBuilderOlapGroupByPanel.d.ts.map +0 -1
  342. package/lib/components/fetch-structure/QueryBuilderOlapGroupByPanel.js.map +0 -1
  343. package/lib/stores/fetch-structure/tds/QueryBuilderTDSColumnState_.d.ts.map +0 -1
  344. package/lib/stores/fetch-structure/tds/QueryBuilderTDSColumnState_.js.map +0 -1
  345. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByOperatorLoader.d.ts.map +0 -1
  346. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByOperatorLoader.js +0 -36
  347. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByOperatorLoader.js.map +0 -1
  348. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByState.d.ts.map +0 -1
  349. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByState.js.map +0 -1
  350. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByStateBuilder.d.ts.map +0 -1
  351. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByStateBuilder.js.map +0 -1
  352. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByValueSpecificationBuilder.d.ts.map +0 -1
  353. package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByValueSpecificationBuilder.js.map +0 -1
  354. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_.js.map +0 -1
  355. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Average.d.ts.map +0 -1
  356. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Average.js.map +0 -1
  357. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Count.d.ts.map +0 -1
  358. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Count.js.map +0 -1
  359. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Max.d.ts.map +0 -1
  360. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Max.js.map +0 -1
  361. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Min.d.ts.map +0 -1
  362. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Min.js.map +0 -1
  363. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Sum.d.ts.map +0 -1
  364. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Sum.js.map +0 -1
  365. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_AverageRank_.d.ts.map +0 -1
  366. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_DenseRank_.d.ts.map +0 -1
  367. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_Rank_.d.ts.map +0 -1
  368. package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_RowNumber_.d.ts.map +0 -1
  369. package/src/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByOperatorLoader.ts +0 -39
@@ -35,10 +35,10 @@ import {
35
35
  EXECUTION_SERIALIZATION_FORMAT,
36
36
  RawExecutionResult,
37
37
  buildRawLambdaFromLambdaFunction,
38
+ ParameterValue,
38
39
  } from '@finos/legend-graph';
39
40
  import { buildLambdaFunction } from './QueryBuilderValueSpecificationBuilder.js';
40
41
  import { ExecutionPlanState } from '@finos/legend-application';
41
- import { buildParametersLetLambdaFunc } from './shared/LambdaParameterState.js';
42
42
 
43
43
  const DEFAULT_LIMIT = 1000;
44
44
 
@@ -125,31 +125,24 @@ export class QueryBuilderResultState {
125
125
  this.queryBuilderState.unsupportedQueryState.rawLambda,
126
126
  'Lambda is required to execute query',
127
127
  );
128
- if (
129
- !this.queryBuilderState.isParameterSupportDisabled &&
130
- this.queryBuilderState.parametersState.parameterStates.length
131
- ) {
132
- const letlambdaFunction = buildParametersLetLambdaFunc(
133
- this.queryBuilderState.graphManagerState.graph,
134
- this.queryBuilderState.parametersState.parameterStates,
135
- );
136
- const letRawLambda = buildRawLambdaFromLambdaFunction(
137
- letlambdaFunction,
138
- this.queryBuilderState.graphManagerState,
139
- );
140
- // reset paramaters
141
- if (Array.isArray(query.body) && Array.isArray(letRawLambda.body)) {
142
- letRawLambda.body = [
143
- ...(letRawLambda.body as object[]),
144
- ...(query.body as object[]),
145
- ];
146
- query = letRawLambda;
147
- }
148
- }
149
128
  }
150
129
  return query;
151
130
  }
152
131
 
132
+ buildExecutionParameterValues(): ParameterValue[] {
133
+ return this.queryBuilderState.parametersState.parameterStates.map(
134
+ (queryParamState) => {
135
+ const paramValue = new ParameterValue();
136
+ paramValue.name = queryParamState.parameter.name;
137
+ paramValue.value =
138
+ this.queryBuilderState.graphManagerState.graphManager.serializeValueSpecification(
139
+ guaranteeNonNullable(queryParamState.value),
140
+ );
141
+ return paramValue;
142
+ },
143
+ );
144
+ }
145
+
153
146
  *exportData(
154
147
  serializationFormat: EXECUTION_SERIALIZATION_FORMAT,
155
148
  ): GeneratorFn<void> {
@@ -217,6 +210,7 @@ export class QueryBuilderResultState {
217
210
  `Runtime is required to execute query`,
218
211
  );
219
212
  const query = this.buildExecutionRawLambda();
213
+ const parameterValues = this.buildExecutionParameterValues();
220
214
  const startTime = Date.now();
221
215
  const promise =
222
216
  this.queryBuilderState.graphManagerState.graphManager.executeMapping(
@@ -224,6 +218,9 @@ export class QueryBuilderResultState {
224
218
  mapping,
225
219
  runtime,
226
220
  this.queryBuilderState.graphManagerState.graph,
221
+ {
222
+ parameterValues: parameterValues,
223
+ },
227
224
  );
228
225
  this.setQueryRunPromise(promise);
229
226
  const result = (yield promise) as ExecutionResult;
@@ -23,15 +23,9 @@ import {
23
23
  } from '@finos/legend-shared';
24
24
  import type { QueryBuilderState } from './QueryBuilderState.js';
25
25
  import {
26
- type AlloySerializationConfigInstanceValue,
27
26
  type EnumValueInstanceValue,
28
27
  type FunctionExpression,
29
- type MappingInstanceValue,
30
- type PairInstanceValue,
31
- type PropertyGraphFetchTreeInstanceValue,
32
- type PureListInstanceValue,
33
- type RootGraphFetchTreeInstanceValue,
34
- type RuntimeInstanceValue,
28
+ type GraphFetchTreeInstanceValue,
35
29
  type ValueSpecificationVisitor,
36
30
  type InstanceValue,
37
31
  type INTERNAL__UnknownValueSpecification,
@@ -70,7 +64,7 @@ import {
70
64
  } from './fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js';
71
65
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graphManager/QueryBuilderSupportedFunctions.js';
72
66
  import { LambdaParameterState } from './shared/LambdaParameterState.js';
73
- import { processTDSOlapGroupByExpression } from './fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByStateBuilder.js';
67
+ import { processTDS_OLAPGroupByExpression } from './fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder_.js';
74
68
  import { processWatermarkExpression } from './watermark/QueryBuilderWatermarkStateBuilder.js';
75
69
 
76
70
  const processGetAllExpression = (
@@ -278,54 +272,8 @@ export class QueryBuilderValueSpecificationProcessor
278
272
  );
279
273
  }
280
274
 
281
- visit_RootGraphFetchTreeInstanceValue(
282
- valueSpecification: RootGraphFetchTreeInstanceValue,
283
- ): void {
284
- throw new UnsupportedOperationError();
285
- }
286
-
287
- visit_PropertyGraphFetchTreeInstanceValue(
288
- valueSpecification: PropertyGraphFetchTreeInstanceValue,
289
- ): void {
290
- throw new UnsupportedOperationError();
291
- }
292
-
293
- visit_AlloySerializationConfigInstanceValue(
294
- valueSpecification: AlloySerializationConfigInstanceValue,
295
- ): void {
296
- throw new UnsupportedOperationError();
297
- }
298
-
299
- visit_PrimitiveInstanceValue(
300
- valueSpecification: PrimitiveInstanceValue,
301
- ): void {
302
- throw new UnsupportedOperationError();
303
- }
304
-
305
- visit_EnumValueInstanceValue(
306
- valueSpecification: EnumValueInstanceValue,
307
- ): void {
308
- throw new UnsupportedOperationError();
309
- }
310
-
311
- visit_RuntimeInstanceValue(valueSpecification: RuntimeInstanceValue): void {
312
- throw new UnsupportedOperationError();
313
- }
314
-
315
- visit_PairInstanceValue(valueSpecification: PairInstanceValue): void {
316
- throw new UnsupportedOperationError();
317
- }
318
-
319
- visit_MappingInstanceValue(valueSpecification: MappingInstanceValue): void {
320
- throw new UnsupportedOperationError();
321
- }
322
-
323
- visit_PureListInstanceValue(valueSpecification: PureListInstanceValue): void {
324
- throw new UnsupportedOperationError();
325
- }
326
-
327
- visit_CollectionInstanceValue(
328
- valueSpecification: CollectionInstanceValue,
275
+ visit_INTERNAL__PropagatedValue(
276
+ valueSpecification: INTERNAL__PropagatedValue,
329
277
  ): void {
330
278
  throw new UnsupportedOperationError();
331
279
  }
@@ -334,12 +282,6 @@ export class QueryBuilderValueSpecificationProcessor
334
282
  throw new UnsupportedOperationError();
335
283
  }
336
284
 
337
- visit_INTERNAL__PropagatedValue(
338
- valueSpecification: INTERNAL__PropagatedValue,
339
- ): void {
340
- throw new UnsupportedOperationError();
341
- }
342
-
343
285
  visit_SimpleFunctionExpression(
344
286
  valueSpecification: SimpleFunctionExpression,
345
287
  ): void {
@@ -498,7 +440,7 @@ export class QueryBuilderValueSpecificationProcessor
498
440
  QUERY_BUILDER_SUPPORTED_FUNCTIONS.OLAP_GROUPBY,
499
441
  )
500
442
  ) {
501
- processTDSOlapGroupByExpression(
443
+ processTDS_OLAPGroupByExpression(
502
444
  valueSpecification,
503
445
  this.queryBuilderState,
504
446
  );
@@ -532,21 +474,6 @@ export class QueryBuilderValueSpecificationProcessor
532
474
  throw new UnsupportedOperationError();
533
475
  }
534
476
 
535
- visit_LambdaFunctionInstanceValue(
536
- valueSpecification: LambdaFunctionInstanceValue,
537
- ): void {
538
- valueSpecification.values.forEach((value) =>
539
- value.expressionSequence.forEach((expression) =>
540
- expression.accept_ValueSpecificationVisitor(
541
- new QueryBuilderValueSpecificationProcessor(
542
- this.queryBuilderState,
543
- this.parentExpression,
544
- ),
545
- ),
546
- ),
547
- );
548
- }
549
-
550
477
  visit_AbstractPropertyExpression(
551
478
  valueSpecification: AbstractPropertyExpression,
552
479
  ): void {
@@ -577,6 +504,45 @@ export class QueryBuilderValueSpecificationProcessor
577
504
  visit_InstanceValue(valueSpecification: InstanceValue): void {
578
505
  throw new UnsupportedOperationError();
579
506
  }
507
+
508
+ visit_CollectionInstanceValue(
509
+ valueSpecification: CollectionInstanceValue,
510
+ ): void {
511
+ throw new UnsupportedOperationError();
512
+ }
513
+
514
+ visit_EnumValueInstanceValue(
515
+ valueSpecification: EnumValueInstanceValue,
516
+ ): void {
517
+ throw new UnsupportedOperationError();
518
+ }
519
+
520
+ visit_PrimitiveInstanceValue(
521
+ valueSpecification: PrimitiveInstanceValue,
522
+ ): void {
523
+ throw new UnsupportedOperationError();
524
+ }
525
+
526
+ visit_LambdaFunctionInstanceValue(
527
+ valueSpecification: LambdaFunctionInstanceValue,
528
+ ): void {
529
+ valueSpecification.values.forEach((value) =>
530
+ value.expressionSequence.forEach((expression) =>
531
+ expression.accept_ValueSpecificationVisitor(
532
+ new QueryBuilderValueSpecificationProcessor(
533
+ this.queryBuilderState,
534
+ this.parentExpression,
535
+ ),
536
+ ),
537
+ ),
538
+ );
539
+ }
540
+
541
+ visit_GraphFetchTreeInstanceValue(
542
+ valueSpecification: GraphFetchTreeInstanceValue,
543
+ ): void {
544
+ throw new UnsupportedOperationError();
545
+ }
580
546
  }
581
547
 
582
548
  export const processParameters = (
@@ -17,7 +17,7 @@
17
17
  import { guaranteeNonNullable } from '@finos/legend-shared';
18
18
  import {
19
19
  type Class,
20
- type Multiplicity,
20
+ Multiplicity,
21
21
  getMilestoneTemporalStereotype,
22
22
  extractElementNameFromPath,
23
23
  InstanceValue,
@@ -28,7 +28,6 @@ import {
28
28
  GenericTypeExplicitReference,
29
29
  LambdaFunction,
30
30
  SimpleFunctionExpression,
31
- TYPICAL_MULTIPLICITY_TYPE,
32
31
  MILESTONING_STEREOTYPE,
33
32
  } from '@finos/legend-graph';
34
33
  import type { QueryBuilderState } from './QueryBuilderState.js';
@@ -36,7 +35,6 @@ import { buildFilterExpression } from './filter/QueryBuilderFilterValueSpecifica
36
35
  import type { LambdaFunctionBuilderOption } from './QueryBuilderValueSpecificationBuilderHelper.js';
37
36
  import type { QueryBuilderFetchStructureState } from './fetch-structure/QueryBuilderFetchStructureState.js';
38
37
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graphManager/QueryBuilderSupportedFunctions.js';
39
- import { buildParametersLetLambdaFunc } from './shared/LambdaParameterState.js';
40
38
  import { buildWatermarkExpression } from './watermark/QueryBuilderWatermarkValueSpecificationBuilder.js';
41
39
 
42
40
  const buildGetAllFunction = (
@@ -45,7 +43,6 @@ const buildGetAllFunction = (
45
43
  ): SimpleFunctionExpression => {
46
44
  const _func = new SimpleFunctionExpression(
47
45
  extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.GET_ALL),
48
- multiplicity,
49
46
  );
50
47
  const classInstance = new InstanceValue(
51
48
  multiplicity,
@@ -75,22 +72,17 @@ export const buildLambdaFunction = (
75
72
  queryBuilderState.class,
76
73
  'Class is required to build query',
77
74
  );
78
- const multiplicityOne =
79
- queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
80
- TYPICAL_MULTIPLICITY_TYPE.ONE,
81
- );
82
- const typeAny = queryBuilderState.graphManagerState.graph.getType(
83
- CORE_PURE_PATH.ANY,
84
- );
85
75
  const lambdaFunction = new LambdaFunction(
86
76
  new FunctionType(
87
- PackageableElementExplicitReference.create(typeAny),
88
- multiplicityOne,
77
+ PackageableElementExplicitReference.create(
78
+ queryBuilderState.graphManagerState.graph.getType(CORE_PURE_PATH.ANY),
79
+ ),
80
+ Multiplicity.ONE,
89
81
  ),
90
82
  );
91
83
 
92
84
  // build getAll()
93
- const getAllFunction = buildGetAllFunction(_class, multiplicityOne);
85
+ const getAllFunction = buildGetAllFunction(_class, Multiplicity.ONE);
94
86
 
95
87
  // build milestoning parameter(s) for getAll()
96
88
  const milestoningStereotype = getMilestoneTemporalStereotype(
@@ -167,25 +159,8 @@ export const buildLambdaFunction = (
167
159
  !queryBuilderState.isParameterSupportDisabled &&
168
160
  queryBuilderState.parametersState.parameterStates.length
169
161
  ) {
170
- // NOTE: if we are executing:
171
- // 1. set the parameters to empty
172
- // 2. add let statements for each parameter
173
- if (options?.isBuildingExecutionQuery) {
174
- lambdaFunction.functionType.parameters = [];
175
- const letsFuncs = buildParametersLetLambdaFunc(
176
- queryBuilderState.graphManagerState.graph,
177
- queryBuilderState.parametersState.parameterStates,
178
- );
179
- lambdaFunction.expressionSequence = [
180
- ...letsFuncs.expressionSequence,
181
- ...lambdaFunction.expressionSequence,
182
- ];
183
- } else {
184
- lambdaFunction.functionType.parameters =
185
- queryBuilderState.parametersState.parameterStates.map(
186
- (e) => e.parameter,
187
- );
188
- }
162
+ lambdaFunction.functionType.parameters =
163
+ queryBuilderState.parametersState.parameterStates.map((e) => e.parameter);
189
164
  }
190
165
 
191
166
  return lambdaFunction;
@@ -23,7 +23,6 @@ import {
23
23
  matchFunctionName,
24
24
  MILESTONING_STEREOTYPE,
25
25
  SimpleFunctionExpression,
26
- TYPICAL_MULTIPLICITY_TYPE,
27
26
  type ValueSpecification,
28
27
  } from '@finos/legend-graph';
29
28
  import {
@@ -142,11 +141,7 @@ export const buildPropertyExpressionChain = (
142
141
  */
143
142
  TEMPORARY__disableDatePropagation?: boolean,
144
143
  ): ValueSpecification => {
145
- const graph = queryBuilderState.graphManagerState.graph;
146
- const newPropertyExpression = new AbstractPropertyExpression(
147
- '',
148
- graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE),
149
- );
144
+ const newPropertyExpression = new AbstractPropertyExpression('');
150
145
  newPropertyExpression.func = propertyExpression.func;
151
146
  newPropertyExpression.parametersValues = [
152
147
  ...propertyExpression.parametersValues,
@@ -159,10 +154,7 @@ export const buildPropertyExpressionChain = (
159
154
  currentExpression.parametersValues,
160
155
  );
161
156
  if (nextExpression instanceof AbstractPropertyExpression) {
162
- const parameterValue = new AbstractPropertyExpression(
163
- '',
164
- graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE),
165
- );
157
+ const parameterValue = new AbstractPropertyExpression('');
166
158
  parameterValue.func = nextExpression.func;
167
159
  parameterValue.parametersValues = [...nextExpression.parametersValues];
168
160
  nextExpression = parameterValue;
@@ -22,7 +22,6 @@ import {
22
22
  LambdaFunction,
23
23
  LambdaFunctionInstanceValue,
24
24
  PRIMITIVE_TYPE,
25
- TYPICAL_MULTIPLICITY_TYPE,
26
25
  VariableExpression,
27
26
  DATE_FORMAT,
28
27
  DATE_TIME_FORMAT,
@@ -31,7 +30,7 @@ import {
31
30
  PrimitiveInstanceValue,
32
31
  EnumValueInstanceValue,
33
32
  SimpleFunctionExpression,
34
- type PrimitiveType,
33
+ PrimitiveType,
35
34
  type Enumeration,
36
35
  extractElementNameFromPath,
37
36
  AbstractPropertyExpression,
@@ -41,6 +40,10 @@ import {
41
40
  DerivedProperty,
42
41
  MILESTONING_STEREOTYPE,
43
42
  PackageableElementExplicitReference,
43
+ Multiplicity,
44
+ CollectionInstanceValue,
45
+ GenericTypeExplicitReference,
46
+ GenericType,
44
47
  } from '@finos/legend-graph';
45
48
  import {
46
49
  addUniqueEntry,
@@ -79,19 +82,13 @@ export const getCollectionValueSpecificationType = (
79
82
  const primitiveType = val.genericType.value.rawType;
80
83
  switch (primitiveType.path) {
81
84
  case PRIMITIVE_TYPE.STRING:
82
- addUniqueEntry(
83
- valuePrimitiveTypes,
84
- graph.getPrimitiveType(PRIMITIVE_TYPE.STRING),
85
- );
85
+ addUniqueEntry(valuePrimitiveTypes, PrimitiveType.STRING);
86
86
  break;
87
87
  case PRIMITIVE_TYPE.INTEGER:
88
88
  case PRIMITIVE_TYPE.DECIMAL:
89
89
  case PRIMITIVE_TYPE.FLOAT:
90
90
  case PRIMITIVE_TYPE.NUMBER:
91
- addUniqueEntry(
92
- valuePrimitiveTypes,
93
- graph.getPrimitiveType(PRIMITIVE_TYPE.NUMBER),
94
- );
91
+ addUniqueEntry(valuePrimitiveTypes, PrimitiveType.NUMBER);
95
92
  break;
96
93
  default:
97
94
  valuePrimitiveTypes.push(undefined);
@@ -137,14 +134,9 @@ export const unwrapNotExpression = (
137
134
 
138
135
  export const buildNotExpression = (
139
136
  expression: ValueSpecification,
140
- graph: PureModel,
141
137
  ): ValueSpecification => {
142
- const multiplicityOne = graph.getTypicalMultiplicity(
143
- TYPICAL_MULTIPLICITY_TYPE.ONE,
144
- );
145
138
  const expressionNot = new SimpleFunctionExpression(
146
139
  extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.NOT),
147
- multiplicityOne,
148
140
  );
149
141
  expressionNot.parametersValues.push(expression);
150
142
  return expressionNot;
@@ -235,19 +227,15 @@ export const buildGenericLambdaFunctionInstanceValue = (
235
227
  lambdaBodyExpressions: ValueSpecification[],
236
228
  graph: PureModel,
237
229
  ): LambdaFunctionInstanceValue => {
238
- const multiplicityOne = graph.getTypicalMultiplicity(
239
- TYPICAL_MULTIPLICITY_TYPE.ONE,
240
- );
241
- const typeAny = graph.getType(CORE_PURE_PATH.ANY);
242
- const functionInstanceValue = new LambdaFunctionInstanceValue(
243
- multiplicityOne,
244
- );
230
+ const functionInstanceValue = new LambdaFunctionInstanceValue();
245
231
  const functionType = new FunctionType(
246
- PackageableElementExplicitReference.create(typeAny),
247
- multiplicityOne,
232
+ PackageableElementExplicitReference.create(
233
+ graph.getType(CORE_PURE_PATH.ANY),
234
+ ),
235
+ Multiplicity.ONE,
248
236
  );
249
237
  functionType.parameters.push(
250
- new VariableExpression(lambdaParameterName, multiplicityOne),
238
+ new VariableExpression(lambdaParameterName, Multiplicity.ONE),
251
239
  );
252
240
  const lambdaFunction = new LambdaFunction(functionType);
253
241
  lambdaFunction.expressionSequence = lambdaBodyExpressions;
@@ -362,3 +350,14 @@ export const extractNullableNumberFromInstanceValue = (
362
350
  }
363
351
  return undefined;
364
352
  };
353
+
354
+ /**
355
+ * NOTE: Pure doesn't have a nullish value, rather we use empty collection of type Nil
356
+ */
357
+ export const createNullishValue = (graph: PureModel): CollectionInstanceValue =>
358
+ new CollectionInstanceValue(
359
+ Multiplicity.ZERO,
360
+ GenericTypeExplicitReference.create(
361
+ new GenericType(graph.getType(CORE_PURE_PATH.ANY)),
362
+ ),
363
+ );
@@ -30,7 +30,6 @@ import {
30
30
  type MappingModelCoverageAnalysisResult,
31
31
  type EnumMappedProperty,
32
32
  type MappedEntity,
33
- TYPICAL_MULTIPLICITY_TYPE,
34
33
  AbstractPropertyExpression,
35
34
  Class,
36
35
  VariableExpression,
@@ -198,19 +197,11 @@ export const buildPropertyExpressionFromExplorerTreeNodeData = (
198
197
  const treeData = explorerState.nonNullableTreeData;
199
198
  const propertySearchIndexedTreeNodes =
200
199
  explorerState.propertySearchState.indexedExplorerTreeNodes;
201
-
202
- const multiplicityOne =
203
- explorerState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
204
- TYPICAL_MULTIPLICITY_TYPE.ONE,
205
- );
206
200
  const projectionColumnLambdaVariable = new VariableExpression(
207
201
  DEFAULT_LAMBDA_VARIABLE_NAME,
208
- multiplicityOne,
209
- );
210
- const propertyExpression = new AbstractPropertyExpression(
211
- '',
212
- multiplicityOne,
202
+ Multiplicity.ONE,
213
203
  );
204
+ const propertyExpression = new AbstractPropertyExpression('');
214
205
  propertyExpression_setFunc(
215
206
  propertyExpression,
216
207
  PropertyExplicitReference.create(guaranteeNonNullable(node.property)),
@@ -239,13 +230,9 @@ export const buildPropertyExpressionFromExplorerTreeNodeData = (
239
230
  if (parentNode instanceof QueryBuilderExplorerTreeSubTypeNodeData) {
240
231
  parentPropertyExpression = new SimpleFunctionExpression(
241
232
  extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE),
242
- multiplicityOne,
243
233
  );
244
234
  } else {
245
- parentPropertyExpression = new AbstractPropertyExpression(
246
- '',
247
- multiplicityOne,
248
- );
235
+ parentPropertyExpression = new AbstractPropertyExpression('');
249
236
  propertyExpression_setFunc(
250
237
  parentPropertyExpression,
251
238
  PropertyExplicitReference.create(
@@ -262,7 +249,7 @@ export const buildPropertyExpressionFromExplorerTreeNodeData = (
262
249
  )
263
250
  ) {
264
251
  const subclass = new InstanceValue(
265
- multiplicityOne,
252
+ Multiplicity.ONE,
266
253
  GenericTypeExplicitReference.create(new GenericType(currentNode.type)),
267
254
  );
268
255
  currentExpression.parametersValues.push(subclass);
@@ -286,7 +273,7 @@ export const buildPropertyExpressionFromExplorerTreeNodeData = (
286
273
  currentExpression.parametersValues.push(projectionColumnLambdaVariable);
287
274
  if (currentExpression instanceof SimpleFunctionExpression) {
288
275
  const subclass = new InstanceValue(
289
- multiplicityOne,
276
+ Multiplicity.ONE,
290
277
  GenericTypeExplicitReference.create(new GenericType(currentNode.type)),
291
278
  );
292
279
  currentExpression.parametersValues.push(subclass);
@@ -506,7 +493,7 @@ export const getQueryBuilderSubTypeNodeData = (
506
493
  ? parentNode.property.multiplicity
507
494
  : parentNode instanceof QueryBuilderExplorerTreeSubTypeNodeData
508
495
  ? parentNode.multiplicity
509
- : new Multiplicity(1, 1),
496
+ : Multiplicity.ONE,
510
497
  );
511
498
  subTypeNode.childrenIds =
512
499
  generateExplorerTreeClassNodeChildrenIDs(subTypeNode);
@@ -343,10 +343,7 @@ export class QueryBuilderPropertySearchState {
343
343
  if (
344
344
  this.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.STRING)
345
345
  ) {
346
- if (
347
- node.type instanceof PrimitiveType &&
348
- node.type.name === PRIMITIVE_TYPE.STRING
349
- ) {
346
+ if (node.type === PrimitiveType.STRING) {
350
347
  return true;
351
348
  }
352
349
  }
@@ -370,10 +367,7 @@ export class QueryBuilderPropertySearchState {
370
367
  if (
371
368
  this.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.BOOLEAN)
372
369
  ) {
373
- if (
374
- node.type instanceof PrimitiveType &&
375
- node.type.name === PRIMITIVE_TYPE.BOOLEAN
376
- ) {
370
+ if (node.type === PrimitiveType.BOOLEAN) {
377
371
  return true;
378
372
  }
379
373
  }
@@ -20,31 +20,24 @@ import {
20
20
  GenericTypeExplicitReference,
21
21
  matchFunctionName,
22
22
  PrimitiveInstanceValue,
23
- PRIMITIVE_TYPE,
24
23
  SimpleFunctionExpression,
25
- TYPICAL_MULTIPLICITY_TYPE,
26
24
  type ValueSpecification,
27
25
  type LambdaFunction,
28
- RootGraphFetchTreeInstanceValue,
26
+ GraphFetchTreeInstanceValue,
27
+ PrimitiveType,
29
28
  } from '@finos/legend-graph';
30
29
  import { guaranteeNonNullable, guaranteeType } from '@finos/legend-shared';
31
30
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graphManager/QueryBuilderSupportedFunctions.js';
32
- import type { QueryBuilderState } from '../../QueryBuilderState.js';
33
31
  import type { QueryBuilderGraphFetchTreeState } from './QueryBuilderGraphFetchTreeState.js';
34
32
  import { isGraphFetchTreeDataEmpty } from './QueryBuilderGraphFetchTreeUtil.js';
35
33
 
36
34
  const appendTakeLimit = (
37
- queryBuilderState: QueryBuilderState,
38
35
  lambda: LambdaFunction,
39
36
  previewLimit?: number | undefined,
40
37
  ): LambdaFunction => {
41
38
  if (!previewLimit) {
42
39
  return lambda;
43
40
  }
44
- const multiplicityOne =
45
- queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
46
- TYPICAL_MULTIPLICITY_TYPE.ONE,
47
- );
48
41
  if (lambda.expressionSequence.length === 1) {
49
42
  const func = lambda.expressionSequence[0];
50
43
  if (func instanceof SimpleFunctionExpression) {
@@ -56,18 +49,12 @@ const appendTakeLimit = (
56
49
  ) {
57
50
  const limit = new PrimitiveInstanceValue(
58
51
  GenericTypeExplicitReference.create(
59
- new GenericType(
60
- queryBuilderState.graphManagerState.graph.getPrimitiveType(
61
- PRIMITIVE_TYPE.INTEGER,
62
- ),
63
- ),
52
+ new GenericType(PrimitiveType.INTEGER),
64
53
  ),
65
- multiplicityOne,
66
54
  );
67
55
  limit.values = [previewLimit];
68
56
  const takeFunction = new SimpleFunctionExpression(
69
57
  extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.TAKE),
70
- multiplicityOne,
71
58
  );
72
59
 
73
60
  // NOTE: `take()` does not work on `graphFetch()` or `serialize()` so we need to
@@ -109,23 +96,16 @@ export const appendGraphFetch = (
109
96
  lambdaFunction.expressionSequence[0],
110
97
  `Can't build graph-fetch tree expression: preceding expression is not defined`,
111
98
  );
112
- const multiplicityOne =
113
- queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
114
- TYPICAL_MULTIPLICITY_TYPE.ONE,
115
- );
116
99
 
117
100
  // build graph-fetch tree
118
101
  if (
119
102
  graphFetchTreeState.treeData &&
120
103
  !isGraphFetchTreeDataEmpty(graphFetchTreeState.treeData)
121
104
  ) {
122
- const graphFetchInstance = new RootGraphFetchTreeInstanceValue(
123
- multiplicityOne,
124
- );
105
+ const graphFetchInstance = new GraphFetchTreeInstanceValue();
125
106
  graphFetchInstance.values = [graphFetchTreeState.treeData.tree];
126
107
  const serializeFunction = new SimpleFunctionExpression(
127
108
  extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.SERIALIZE),
128
- multiplicityOne,
129
109
  );
130
110
  const graphFetchFunc = new SimpleFunctionExpression(
131
111
  graphFetchTreeState.isChecked
@@ -135,7 +115,6 @@ export const appendGraphFetch = (
135
115
  : extractElementNameFromPath(
136
116
  QUERY_BUILDER_SUPPORTED_FUNCTIONS.GRAPH_FETCH,
137
117
  ),
138
- multiplicityOne,
139
118
  );
140
119
  graphFetchFunc.parametersValues = [precedingExpression, graphFetchInstance];
141
120
  serializeFunction.parametersValues = [graphFetchFunc, graphFetchInstance];
@@ -144,10 +123,6 @@ export const appendGraphFetch = (
144
123
 
145
124
  // build result set modifier: i.e. preview limit
146
125
  if (options?.isBuildingExecutionQuery) {
147
- appendTakeLimit(
148
- queryBuilderState,
149
- lambdaFunction,
150
- queryBuilderState.resultState.previewLimit,
151
- );
126
+ appendTakeLimit(lambdaFunction, queryBuilderState.resultState.previewLimit);
152
127
  }
153
128
  };
@@ -24,7 +24,7 @@ import {
24
24
  } from '@finos/legend-shared';
25
25
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graphManager/QueryBuilderSupportedFunctions.js';
26
26
  import type { QueryBuilderTDSState } from './QueryBuilderTDSState.js';
27
- import type { QueryBuilderTDSColumnState } from './QueryBuilderTDSColumnState_.js';
27
+ import type { QueryBuilderTDSColumnState } from './QueryBuilderTDSColumnState.js';
28
28
  import { COLUMN_SORT_TYPE } from './QueryResultSetModifierState.js';
29
29
 
30
30
  export const findTDSColumnState = (