@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
@@ -21,38 +21,35 @@ import {
21
21
  GenericType,
22
22
  GenericTypeExplicitReference,
23
23
  PrimitiveInstanceValue,
24
- PRIMITIVE_TYPE,
25
24
  SimpleFunctionExpression,
26
- TYPICAL_MULTIPLICITY_TYPE,
27
25
  VariableExpression,
26
+ Multiplicity,
27
+ PrimitiveType,
28
28
  } from '@finos/legend-graph';
29
29
  import { guaranteeNonNullable } from '@finos/legend-shared';
30
30
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../graphManager/QueryBuilderSupportedFunctions.js';
31
31
  import { buildGenericLambdaFunctionInstanceValue } from '../../../QueryBuilderValueSpecificationHelper.js';
32
32
  import { getFunctionNameFromTDSSortColumn } from '../QueryBuilderTDSHelper.js';
33
33
  import {
34
- type QueryBuilderOlapGroupByColumnState,
35
- type QueryBuilderOlapGroupByState,
36
- QueryBuilderTDSOlapAggreationOperatorState,
37
- } from './QueryBuilderOlapGroupByState.js';
34
+ type QueryBuilderOLAPGroupByColumnState,
35
+ type QueryBuilderOLAPGroupByState,
36
+ QueryBuilderTDS_OLAPAggreationOperatorState,
37
+ } from './QueryBuilderOLAPGroupByState_.js';
38
38
 
39
- const appendOlapGroupByColumnState = (
40
- olapGroupByColumnState: QueryBuilderOlapGroupByColumnState,
39
+ const appendOLAPGroupByColumnState = (
40
+ olapGroupByColumnState: QueryBuilderOLAPGroupByColumnState,
41
41
  lambda: LambdaFunction,
42
42
  ): LambdaFunction => {
43
43
  const graph =
44
44
  olapGroupByColumnState.olapState.tdsState.queryBuilderState
45
45
  .graphManagerState.graph;
46
- const multiplicityOne = graph.getTypicalMultiplicity(
47
- TYPICAL_MULTIPLICITY_TYPE.ONE,
48
- );
49
- const typeString = graph.getPrimitiveType(PRIMITIVE_TYPE.STRING);
50
46
 
51
47
  // create window cols expression
52
48
  const windowColumns = olapGroupByColumnState.windowColumns.map((column) => {
53
49
  const stringInstance = new PrimitiveInstanceValue(
54
- GenericTypeExplicitReference.create(new GenericType(typeString)),
55
- multiplicityOne,
50
+ GenericTypeExplicitReference.create(
51
+ new GenericType(PrimitiveType.STRING),
52
+ ),
56
53
  );
57
54
  stringInstance.values = [column.columnName];
58
55
  return stringInstance;
@@ -69,11 +66,11 @@ const appendOlapGroupByColumnState = (
69
66
  const sortByState = olapGroupByColumnState.sortByState;
70
67
  sortByFunction = new SimpleFunctionExpression(
71
68
  getFunctionNameFromTDSSortColumn(sortByState.sortType),
72
- multiplicityOne,
73
69
  );
74
70
  const sortColInstance = new PrimitiveInstanceValue(
75
- GenericTypeExplicitReference.create(new GenericType(typeString)),
76
- multiplicityOne,
71
+ GenericTypeExplicitReference.create(
72
+ new GenericType(PrimitiveType.STRING),
73
+ ),
77
74
  );
78
75
  sortColInstance.values = [sortByState.columnState.columnName];
79
76
  sortByFunction.parametersValues[0] = sortColInstance;
@@ -82,12 +79,12 @@ const appendOlapGroupByColumnState = (
82
79
  // create olap operation expression
83
80
  const operationState = olapGroupByColumnState.operationState;
84
81
  const olapFunc = extractElementNameFromPath(operationState.operator.pureFunc);
85
- const olapFuncExpression = new SimpleFunctionExpression(
86
- olapFunc,
87
- multiplicityOne,
88
- );
82
+ const olapFuncExpression = new SimpleFunctionExpression(olapFunc);
89
83
  olapFuncExpression.parametersValues = [
90
- new VariableExpression(operationState.lambdaParameterName, multiplicityOne),
84
+ new VariableExpression(
85
+ operationState.lambdaParameterName,
86
+ Multiplicity.ONE,
87
+ ),
91
88
  ];
92
89
  const olapLambdaFuncInstance = buildGenericLambdaFunctionInstanceValue(
93
90
  operationState.lambdaParameterName,
@@ -95,17 +92,17 @@ const appendOlapGroupByColumnState = (
95
92
  graph,
96
93
  );
97
94
  let olapAggregationExpression: SimpleFunctionExpression | undefined;
98
- if (operationState instanceof QueryBuilderTDSOlapAggreationOperatorState) {
95
+ if (operationState instanceof QueryBuilderTDS_OLAPAggreationOperatorState) {
99
96
  // column param
100
97
  const olapAggregateColumn = new PrimitiveInstanceValue(
101
- GenericTypeExplicitReference.create(new GenericType(typeString)),
102
- multiplicityOne,
98
+ GenericTypeExplicitReference.create(
99
+ new GenericType(PrimitiveType.STRING),
100
+ ),
103
101
  );
104
102
  olapAggregateColumn.values = [operationState.columnState.columnName];
105
103
  // build `meta::pure::tds::func`
106
104
  olapAggregationExpression = new SimpleFunctionExpression(
107
105
  extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_FUNC),
108
- multiplicityOne,
109
106
  );
110
107
  olapAggregationExpression.parametersValues = [
111
108
  olapAggregateColumn,
@@ -115,17 +112,15 @@ const appendOlapGroupByColumnState = (
115
112
  const olapOperationExpression =
116
113
  olapAggregationExpression ?? olapLambdaFuncInstance;
117
114
 
118
- // OLAP column nam expression
115
+ // OLAP column name expression
119
116
  const olapColumn = new PrimitiveInstanceValue(
120
- GenericTypeExplicitReference.create(new GenericType(typeString)),
121
- multiplicityOne,
117
+ GenericTypeExplicitReference.create(new GenericType(PrimitiveType.STRING)),
122
118
  );
123
119
  olapColumn.values = [olapGroupByColumnState.columnName];
124
120
 
125
121
  // create main expression
126
122
  const olapExpression = new SimpleFunctionExpression(
127
123
  extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.OLAP_GROUPBY),
128
- multiplicityOne,
129
124
  );
130
125
  const currentExpression = guaranteeNonNullable(lambda.expressionSequence[0]);
131
126
  olapExpression.parametersValues = [
@@ -137,12 +132,12 @@ const appendOlapGroupByColumnState = (
137
132
  return lambda;
138
133
  };
139
134
 
140
- export const appendOlapGroupByState = (
141
- olapGroupByState: QueryBuilderOlapGroupByState,
135
+ export const appendOLAPGroupByState = (
136
+ olapGroupByState: QueryBuilderOLAPGroupByState,
142
137
  lambda: LambdaFunction,
143
138
  ): LambdaFunction => {
144
139
  olapGroupByState.olapColumns.forEach((c) =>
145
- appendOlapGroupByColumnState(c, lambda),
140
+ appendOLAPGroupByColumnState(c, lambda),
146
141
  );
147
142
  return lambda;
148
143
  };
@@ -14,11 +14,11 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { PRIMITIVE_TYPE, type PureModel, type Type } from '@finos/legend-graph';
17
+ import { PrimitiveType, type PureModel, type Type } from '@finos/legend-graph';
18
18
  import { type Hashable, uuid } from '@finos/legend-shared';
19
- import type { QueryBuilderTDSColumnState } from '../../QueryBuilderTDSColumnState_.js';
19
+ import type { QueryBuilderTDSColumnState } from '../../QueryBuilderTDSColumnState.js';
20
20
 
21
- export abstract class QueryBuilderTDSOlapOperator implements Hashable {
21
+ export abstract class QueryBuilderTDS_OLAPOperator implements Hashable {
22
22
  readonly uuid = uuid();
23
23
 
24
24
  abstract getLabel(): string;
@@ -34,7 +34,7 @@ export abstract class QueryBuilderTDSOlapOperator implements Hashable {
34
34
  }
35
35
 
36
36
  getOperatorReturnType(graph: PureModel): Type {
37
- return graph.getPrimitiveType(PRIMITIVE_TYPE.NUMBER);
37
+ return PrimitiveType.NUMBER;
38
38
  }
39
39
 
40
40
  isCompatibleWithColumn(column: QueryBuilderTDSColumnState): boolean {
@@ -16,11 +16,11 @@
16
16
 
17
17
  import { hashArray } from '@finos/legend-shared';
18
18
  import { type Type, PRIMITIVE_TYPE } from '@finos/legend-graph';
19
- import { QueryBuilderTDSOlapOperator } from './QueryBuilderTDSOlapOperator_.js';
19
+ import { QueryBuilderTDS_OLAPOperator } from './QueryBuilderTDS_OLAPOperator.js';
20
20
  import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
21
21
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
22
22
 
23
- export class QueryBuilderTDSOlapOperator_Average extends QueryBuilderTDSOlapOperator {
23
+ export class QueryBuilderTDS_OLAPOperator_Average extends QueryBuilderTDS_OLAPOperator {
24
24
  override isColumnAggregator(): boolean {
25
25
  return true;
26
26
  }
@@ -33,7 +33,7 @@ export class QueryBuilderTDSOlapOperator_Average extends QueryBuilderTDSOlapOper
33
33
  }
34
34
 
35
35
  get hashCode(): string {
36
- return hashArray([QUERY_BUILDER_HASH_STRUCTURE.OLAP_OPERATOR_AVERAGE]);
36
+ return hashArray([QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_OPERATOR_AVERAGE]);
37
37
  }
38
38
 
39
39
  isCompatibleWithType(type: Type | undefined): boolean {
@@ -16,11 +16,11 @@
16
16
 
17
17
  import { hashArray } from '@finos/legend-shared';
18
18
  import { type Type, PRIMITIVE_TYPE } from '@finos/legend-graph';
19
- import { QueryBuilderTDSOlapOperator } from './QueryBuilderTDSOlapOperator_.js';
19
+ import { QueryBuilderTDS_OLAPOperator } from './QueryBuilderTDS_OLAPOperator.js';
20
20
  import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
21
21
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
22
22
 
23
- export class QueryBuilderTDSOlapOperator_Count extends QueryBuilderTDSOlapOperator {
23
+ export class QueryBuilderTDS_OLAPOperator_Count extends QueryBuilderTDS_OLAPOperator {
24
24
  override isColumnAggregator(): boolean {
25
25
  return true;
26
26
  }
@@ -33,7 +33,7 @@ export class QueryBuilderTDSOlapOperator_Count extends QueryBuilderTDSOlapOperat
33
33
  }
34
34
 
35
35
  get hashCode(): string {
36
- return hashArray([QUERY_BUILDER_HASH_STRUCTURE.OLAP_OPERATOR_COUNT]);
36
+ return hashArray([QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_OPERATOR_COUNT]);
37
37
  }
38
38
 
39
39
  isCompatibleWithType(type: Type | undefined): boolean {
@@ -16,11 +16,11 @@
16
16
 
17
17
  import { hashArray } from '@finos/legend-shared';
18
18
  import { type Type, PRIMITIVE_TYPE } from '@finos/legend-graph';
19
- import { QueryBuilderTDSOlapOperator } from './QueryBuilderTDSOlapOperator_.js';
19
+ import { QueryBuilderTDS_OLAPOperator } from './QueryBuilderTDS_OLAPOperator.js';
20
20
  import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
21
21
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
22
22
 
23
- export class QueryBuilderTDSOlapOperator_Max extends QueryBuilderTDSOlapOperator {
23
+ export class QueryBuilderTDS_OLAPOperator_Max extends QueryBuilderTDS_OLAPOperator {
24
24
  override isColumnAggregator(): boolean {
25
25
  return true;
26
26
  }
@@ -33,7 +33,7 @@ export class QueryBuilderTDSOlapOperator_Max extends QueryBuilderTDSOlapOperator
33
33
  }
34
34
 
35
35
  get hashCode(): string {
36
- return hashArray([QUERY_BUILDER_HASH_STRUCTURE.OLAP_OPERATOR_MAX]);
36
+ return hashArray([QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_OPERATOR_MAX]);
37
37
  }
38
38
 
39
39
  isCompatibleWithType(type: Type | undefined): boolean {
@@ -16,11 +16,11 @@
16
16
 
17
17
  import { hashArray } from '@finos/legend-shared';
18
18
  import { type Type, PRIMITIVE_TYPE } from '@finos/legend-graph';
19
- import { QueryBuilderTDSOlapOperator } from './QueryBuilderTDSOlapOperator_.js';
19
+ import { QueryBuilderTDS_OLAPOperator } from './QueryBuilderTDS_OLAPOperator.js';
20
20
  import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
21
21
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
22
22
 
23
- export class QueryBuilderTDSOlapOperator_Min extends QueryBuilderTDSOlapOperator {
23
+ export class QueryBuilderTDS_OLAPOperator_Min extends QueryBuilderTDS_OLAPOperator {
24
24
  override isColumnAggregator(): boolean {
25
25
  return true;
26
26
  }
@@ -33,7 +33,7 @@ export class QueryBuilderTDSOlapOperator_Min extends QueryBuilderTDSOlapOperator
33
33
  }
34
34
 
35
35
  get hashCode(): string {
36
- return hashArray([QUERY_BUILDER_HASH_STRUCTURE.OLAP_OPERATOR_MIN]);
36
+ return hashArray([QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_OPERATOR_MIN]);
37
37
  }
38
38
 
39
39
  isCompatibleWithType(type: Type | undefined): boolean {
@@ -16,11 +16,11 @@
16
16
 
17
17
  import { hashArray } from '@finos/legend-shared';
18
18
  import { type Type, PRIMITIVE_TYPE } from '@finos/legend-graph';
19
- import { QueryBuilderTDSOlapOperator } from './QueryBuilderTDSOlapOperator_.js';
19
+ import { QueryBuilderTDS_OLAPOperator } from './QueryBuilderTDS_OLAPOperator.js';
20
20
  import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
21
21
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
22
22
 
23
- export class QueryBuilderTDSOlapOperator_Sum extends QueryBuilderTDSOlapOperator {
23
+ export class QueryBuilderTDS_OLAPOperator_Sum extends QueryBuilderTDS_OLAPOperator {
24
24
  override isColumnAggregator(): boolean {
25
25
  return true;
26
26
  }
@@ -33,7 +33,7 @@ export class QueryBuilderTDSOlapOperator_Sum extends QueryBuilderTDSOlapOperator
33
33
  }
34
34
 
35
35
  get hashCode(): string {
36
- return hashArray([QUERY_BUILDER_HASH_STRUCTURE.OLAP_OPERATOR_SUM]);
36
+ return hashArray([QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_OPERATOR_SUM]);
37
37
  }
38
38
 
39
39
  isCompatibleWithType(type: Type | undefined): boolean {
@@ -18,9 +18,9 @@ import { PRIMITIVE_TYPE, type Type } from '@finos/legend-graph';
18
18
  import { hashArray } from '@finos/legend-shared';
19
19
  import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
20
20
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
21
- import { QueryBuilderTDSOlapOperator } from './QueryBuilderTDSOlapOperator_.js';
21
+ import { QueryBuilderTDS_OLAPOperator } from './QueryBuilderTDS_OLAPOperator.js';
22
22
 
23
- export class QueryBuilderTDSOlapRankOperator_AverageRank extends QueryBuilderTDSOlapOperator {
23
+ export class QueryBuilderTDS_OLAPRankOperator_AverageRank extends QueryBuilderTDS_OLAPOperator {
24
24
  getLabel(): string {
25
25
  return 'average rank';
26
26
  }
@@ -30,7 +30,9 @@ export class QueryBuilderTDSOlapRankOperator_AverageRank extends QueryBuilderTDS
30
30
  }
31
31
 
32
32
  get hashCode(): string {
33
- return hashArray([QUERY_BUILDER_HASH_STRUCTURE.OLAP_OPERATOR_DENSE_RANK]);
33
+ return hashArray([
34
+ QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_OPERATOR_DENSE_RANK,
35
+ ]);
34
36
  }
35
37
 
36
38
  isCompatibleWithType(type: Type | undefined): boolean {
@@ -18,9 +18,9 @@ import { PRIMITIVE_TYPE, type Type } from '@finos/legend-graph';
18
18
  import { hashArray } from '@finos/legend-shared';
19
19
  import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
20
20
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
21
- import { QueryBuilderTDSOlapOperator } from './QueryBuilderTDSOlapOperator_.js';
21
+ import { QueryBuilderTDS_OLAPOperator } from './QueryBuilderTDS_OLAPOperator.js';
22
22
 
23
- export class QueryBuilderTDSOlapRankOperator_DenseRank extends QueryBuilderTDSOlapOperator {
23
+ export class QueryBuilderTDS_OLAPRankOperator_DenseRank extends QueryBuilderTDS_OLAPOperator {
24
24
  getLabel(): string {
25
25
  return 'dense rank';
26
26
  }
@@ -30,7 +30,9 @@ export class QueryBuilderTDSOlapRankOperator_DenseRank extends QueryBuilderTDSOl
30
30
  }
31
31
 
32
32
  get hashCode(): string {
33
- return hashArray([QUERY_BUILDER_HASH_STRUCTURE.OLAP_OPERATOR_DENSE_RANK]);
33
+ return hashArray([
34
+ QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_OPERATOR_DENSE_RANK,
35
+ ]);
34
36
  }
35
37
 
36
38
  isCompatibleWithType(type: Type | undefined): boolean {
@@ -18,9 +18,9 @@ import { PRIMITIVE_TYPE, type Type } from '@finos/legend-graph';
18
18
  import { hashArray } from '@finos/legend-shared';
19
19
  import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
20
20
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
21
- import { QueryBuilderTDSOlapOperator } from './QueryBuilderTDSOlapOperator_.js';
21
+ import { QueryBuilderTDS_OLAPOperator } from './QueryBuilderTDS_OLAPOperator.js';
22
22
 
23
- export class QueryBuilderTDSOlapRankOperator_Rank extends QueryBuilderTDSOlapOperator {
23
+ export class QueryBuilderTDS_OLAPRankOperator_Rank extends QueryBuilderTDS_OLAPOperator {
24
24
  getLabel(): string {
25
25
  return 'rank';
26
26
  }
@@ -30,7 +30,7 @@ export class QueryBuilderTDSOlapRankOperator_Rank extends QueryBuilderTDSOlapOpe
30
30
  }
31
31
 
32
32
  get hashCode(): string {
33
- return hashArray([QUERY_BUILDER_HASH_STRUCTURE.OLAP_OPERATOR_RANK]);
33
+ return hashArray([QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_OPERATOR_RANK]);
34
34
  }
35
35
 
36
36
  isCompatibleWithType(type: Type | undefined): boolean {
@@ -18,9 +18,9 @@ import { PRIMITIVE_TYPE, type Type } from '@finos/legend-graph';
18
18
  import { hashArray } from '@finos/legend-shared';
19
19
  import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
20
20
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
21
- import { QueryBuilderTDSOlapOperator } from './QueryBuilderTDSOlapOperator_.js';
21
+ import { QueryBuilderTDS_OLAPOperator } from './QueryBuilderTDS_OLAPOperator.js';
22
22
 
23
- export class QueryBuilderTDSOlapRankOperator_RowNumber extends QueryBuilderTDSOlapOperator {
23
+ export class QueryBuilderTDS_OLAPRankOperator_RowNumber extends QueryBuilderTDS_OLAPOperator {
24
24
  getLabel(): string {
25
25
  return 'row number';
26
26
  }
@@ -30,7 +30,9 @@ export class QueryBuilderTDSOlapRankOperator_RowNumber extends QueryBuilderTDSOl
30
30
  }
31
31
 
32
32
  get hashCode(): string {
33
- return hashArray([QUERY_BUILDER_HASH_STRUCTURE.OLAP_OPERATOR_ROW_NUMBER]);
33
+ return hashArray([
34
+ QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_OPERATOR_ROW_NUMBER,
35
+ ]);
34
36
  }
35
37
 
36
38
  isCompatibleWithType(type: Type | undefined): boolean {
@@ -23,6 +23,7 @@ import {
23
23
  Enumeration,
24
24
  PRIMITIVE_TYPE,
25
25
  observe_ValueSpecification,
26
+ PrimitiveType,
26
27
  } from '@finos/legend-graph';
27
28
  import {
28
29
  type GeneratorFn,
@@ -66,7 +67,7 @@ import {
66
67
  import { QUERY_BUILDER_GROUP_OPERATION } from '../../../QueryBuilderGroupOperationHelper.js';
67
68
  import type { QueryBuilderTDSState } from '../QueryBuilderTDSState.js';
68
69
  import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../graphManager/QueryBuilderHashUtils.js';
69
- import type { QueryBuilderTDSColumnState } from '../QueryBuilderTDSColumnState_.js';
70
+ import type { QueryBuilderTDSColumnState } from '../QueryBuilderTDSColumnState.js';
70
71
 
71
72
  export enum QUERY_BUILDER_POST_FILTER_DND_TYPE {
72
73
  GROUP_CONDITION = 'GROUP_CONDITION',
@@ -127,23 +128,23 @@ export const getTypeFromDerivedProperty = (
127
128
  ): Type | undefined => {
128
129
  switch (derivedProperty) {
129
130
  case TDS_COLUMN_GETTER.GET_STRING:
130
- return graph.getPrimitiveType(PRIMITIVE_TYPE.STRING);
131
+ return PrimitiveType.STRING;
131
132
  case TDS_COLUMN_GETTER.GET_NUMBER:
132
- return graph.getPrimitiveType(PRIMITIVE_TYPE.NUMBER);
133
+ return PrimitiveType.NUMBER;
133
134
  case TDS_COLUMN_GETTER.GET_INTEGER:
134
- return graph.getPrimitiveType(PRIMITIVE_TYPE.INTEGER);
135
+ return PrimitiveType.INTEGER;
135
136
  case TDS_COLUMN_GETTER.GET_FLOAT:
136
- return graph.getPrimitiveType(PRIMITIVE_TYPE.FLOAT);
137
+ return PrimitiveType.FLOAT;
137
138
  case TDS_COLUMN_GETTER.GET_DECIMAL:
138
- return graph.getPrimitiveType(PRIMITIVE_TYPE.DECIMAL);
139
+ return PrimitiveType.DECIMAL;
139
140
  case TDS_COLUMN_GETTER.GET_DATE:
140
- return graph.getPrimitiveType(PRIMITIVE_TYPE.DATE);
141
+ return PrimitiveType.DATE;
141
142
  case TDS_COLUMN_GETTER.GET_DATETIME:
142
- return graph.getPrimitiveType(PRIMITIVE_TYPE.DATETIME);
143
+ return PrimitiveType.DATETIME;
143
144
  case TDS_COLUMN_GETTER.GET_STRICTDATE:
144
- return graph.getPrimitiveType(PRIMITIVE_TYPE.STRICTDATE);
145
+ return PrimitiveType.STRICTDATE;
145
146
  case TDS_COLUMN_GETTER.GET_BOOLEAN:
146
- return graph.getPrimitiveType(PRIMITIVE_TYPE.BOOLEAN);
147
+ return PrimitiveType.BOOLEAN;
147
148
  default:
148
149
  return undefined;
149
150
  }
@@ -33,7 +33,7 @@ import {
33
33
  UnsupportedOperationError,
34
34
  } from '@finos/legend-shared';
35
35
  import { QueryBuilderDerivationProjectionColumnState } from '../projection/QueryBuilderProjectionColumnState.js';
36
- import type { QueryBuilderTDSColumnState } from '../QueryBuilderTDSColumnState_.js';
36
+ import type { QueryBuilderTDSColumnState } from '../QueryBuilderTDSColumnState.js';
37
37
  import { getTDSColumnState } from '../QueryBuilderTDSHelper.js';
38
38
  import type { QueryBuilderPostFilterOperator } from './QueryBuilderPostFilterOperator.js';
39
39
  import {
@@ -17,7 +17,6 @@
17
17
  import {
18
18
  extractElementNameFromPath,
19
19
  SimpleFunctionExpression,
20
- TYPICAL_MULTIPLICITY_TYPE,
21
20
  type LambdaFunction,
22
21
  type ValueSpecification,
23
22
  } from '@finos/legend-graph';
@@ -41,13 +40,8 @@ const buildPostFilterExpression = (
41
40
  node.condition,
42
41
  );
43
42
  } else if (node instanceof QueryBuilderPostFilterTreeGroupNodeData) {
44
- const multiplicityOne =
45
- postFilterState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
46
- TYPICAL_MULTIPLICITY_TYPE.ONE,
47
- );
48
43
  const func = new SimpleFunctionExpression(
49
44
  extractElementNameFromPath(fromGroupOperation(node.groupOperation)),
50
- multiplicityOne,
51
45
  );
52
46
  const clauses = node.childrenIds
53
47
  .map((e) => postFilterState.nodes.get(e))
@@ -72,7 +66,6 @@ const buildPostFilterExpression = (
72
66
  const clause2 = currentClause;
73
67
  const groupClause = new SimpleFunctionExpression(
74
68
  extractElementNameFromPath(fromGroupOperation(node.groupOperation)),
75
- multiplicityOne,
76
69
  );
77
70
  groupClause.parametersValues = [clause1, clause2];
78
71
  currentClause = groupClause;
@@ -100,10 +93,6 @@ export const appendPostFilter = (
100
93
  ) {
101
94
  return lambdaFunction;
102
95
  }
103
- const multiplicityOne =
104
- postFilterState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
105
- TYPICAL_MULTIPLICITY_TYPE.ONE,
106
- );
107
96
  const filterLambda = buildGenericLambdaFunctionInstanceValue(
108
97
  postFilterState.lambdaParameterName,
109
98
  postFilterConditionExpressions,
@@ -112,7 +101,6 @@ export const appendPostFilter = (
112
101
  // main filter expression
113
102
  const filterExpression = new SimpleFunctionExpression(
114
103
  extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_FILTER),
115
- multiplicityOne,
116
104
  );
117
105
  const currentExpression = guaranteeNonNullable(
118
106
  lambdaFunction.expressionSequence[0],
@@ -14,27 +14,21 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import {
18
- type Multiplicity,
19
- TYPICAL_MULTIPLICITY_TYPE,
20
- } from '@finos/legend-graph';
17
+ import { Multiplicity } from '@finos/legend-graph';
21
18
  import { UnsupportedOperationError } from '@finos/legend-shared';
22
19
  import { QueryBuilderAggregateColumnState } from '../../aggregation/QueryBuilderAggregationState.js';
23
- import { QueryBuilderOlapGroupByColumnState } from '../../olapGroupBy/QueryBuilderOlapGroupByState.js';
20
+ import { QueryBuilderOLAPGroupByColumnState } from '../../olapGroupBy/QueryBuilderOLAPGroupByState_.js';
24
21
  import { QueryBuilderSimpleProjectionColumnState } from '../../projection/QueryBuilderProjectionColumnState.js';
25
- import type { QueryBuilderTDSColumnState } from '../../QueryBuilderTDSColumnState_.js';
22
+ import type { QueryBuilderTDSColumnState } from '../../QueryBuilderTDSColumnState.js';
26
23
 
27
24
  export const getColumnMultiplicity = (
28
25
  columnState: QueryBuilderTDSColumnState | QueryBuilderAggregateColumnState,
29
26
  ): Multiplicity => {
30
- if (columnState instanceof QueryBuilderAggregateColumnState) {
31
- return columnState.aggregationState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
32
- TYPICAL_MULTIPLICITY_TYPE.ONE,
33
- );
34
- } else if (columnState instanceof QueryBuilderOlapGroupByColumnState) {
35
- return columnState.olapState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
36
- TYPICAL_MULTIPLICITY_TYPE.ONE,
37
- );
27
+ if (
28
+ columnState instanceof QueryBuilderAggregateColumnState ||
29
+ columnState instanceof QueryBuilderOLAPGroupByColumnState
30
+ ) {
31
+ return Multiplicity.ONE;
38
32
  } else if (columnState instanceof QueryBuilderSimpleProjectionColumnState) {
39
33
  return columnState.propertyExpressionState.propertyExpression.func.value
40
34
  .multiplicity;
@@ -21,13 +21,13 @@ import {
21
21
  GenericType,
22
22
  GenericTypeExplicitReference,
23
23
  PrimitiveInstanceValue,
24
- PRIMITIVE_TYPE,
25
24
  SimpleFunctionExpression,
26
- TYPICAL_MULTIPLICITY_TYPE,
27
25
  VariableExpression,
28
26
  getAllClassDerivedProperties,
29
27
  CORE_PURE_PATH,
30
28
  PropertyExplicitReference,
29
+ Multiplicity,
30
+ PrimitiveType,
31
31
  } from '@finos/legend-graph';
32
32
  import { guaranteeNonNullable } from '@finos/legend-shared';
33
33
  import type { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js';
@@ -52,16 +52,9 @@ export const buildPostFilterConditionExpression = (
52
52
  const graph =
53
53
  filterConditionState.postFilterState.tdsState.queryBuilderState
54
54
  .graphManagerState.graph;
55
- const multiplicityOne = graph.getTypicalMultiplicity(
56
- TYPICAL_MULTIPLICITY_TYPE.ONE,
57
- );
58
- const typeString = graph.getPrimitiveType(PRIMITIVE_TYPE.STRING);
59
55
  // property expression
60
56
  const colState = filterConditionState.columnState;
61
- const tdsPropertyExpression = new AbstractPropertyExpression(
62
- '',
63
- multiplicityOne,
64
- );
57
+ const tdsPropertyExpression = new AbstractPropertyExpression('');
65
58
  let tdsDerivedPropertyName: TDS_COLUMN_GETTER;
66
59
  const correspondingTDSDerivedProperty = operator.getTDSColumnGetter();
67
60
  if (correspondingTDSDerivedProperty) {
@@ -79,11 +72,10 @@ export const buildPostFilterConditionExpression = (
79
72
  );
80
73
  const variableName = new VariableExpression(
81
74
  filterConditionState.postFilterState.lambdaParameterName,
82
- multiplicityOne,
75
+ Multiplicity.ONE,
83
76
  );
84
77
  const colInstanceValue = new PrimitiveInstanceValue(
85
- GenericTypeExplicitReference.create(new GenericType(typeString)),
86
- multiplicityOne,
78
+ GenericTypeExplicitReference.create(new GenericType(PrimitiveType.STRING)),
87
79
  );
88
80
  colInstanceValue.values = [colState.columnName];
89
81
  tdsPropertyExpression.parametersValues = [variableName, colInstanceValue];
@@ -91,7 +83,6 @@ export const buildPostFilterConditionExpression = (
91
83
  if (operatorFunctionFullPath) {
92
84
  const expression = new SimpleFunctionExpression(
93
85
  extractElementNameFromPath(operatorFunctionFullPath),
94
- multiplicityOne,
95
86
  );
96
87
  expression.parametersValues.push(tdsPropertyExpression);
97
88
  if (filterConditionState.value) {
@@ -20,6 +20,7 @@ import {
20
20
  type ValueSpecification,
21
21
  type FunctionExpression,
22
22
  PRIMITIVE_TYPE,
23
+ PrimitiveType,
23
24
  } from '@finos/legend-graph';
24
25
  import {
25
26
  guaranteeNonNullable,
@@ -53,10 +54,7 @@ export class QueryBuilderPostFilterOperator_Contain
53
54
  }
54
55
 
55
56
  isCompatibleWithType(type: Type): boolean {
56
- if (type.path === PRIMITIVE_TYPE.STRING) {
57
- return true;
58
- }
59
- return false;
57
+ return type === PrimitiveType.STRING;
60
58
  }
61
59
 
62
60
  isCompatibleWithConditionValue(
@@ -65,7 +63,7 @@ export class QueryBuilderPostFilterOperator_Contain
65
63
  const type = postFilterConditionState.value
66
64
  ? getNonCollectionValueSpecificationType(postFilterConditionState.value)
67
65
  : undefined;
68
- return PRIMITIVE_TYPE.STRING === type?.path;
66
+ return PrimitiveType.STRING === type;
69
67
  }
70
68
 
71
69
  getDefaultFilterConditionValue(
@@ -131,13 +129,7 @@ export class QueryBuilderPostFilterOperator_NotContain extends QueryBuilderPostF
131
129
  const expression = super.buildPostFilterConditionExpression(
132
130
  postFilterConditionState,
133
131
  );
134
- return expression
135
- ? buildNotExpression(
136
- expression,
137
- postFilterConditionState.postFilterState.tdsState.queryBuilderState
138
- .graphManagerState.graph,
139
- )
140
- : undefined;
132
+ return expression ? buildNotExpression(expression) : undefined;
141
133
  }
142
134
 
143
135
  override buildPostFilterConditionState(