@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
@@ -19,6 +19,7 @@ import {
19
19
  type ValueSpecification,
20
20
  type FunctionExpression,
21
21
  PRIMITIVE_TYPE,
22
+ PrimitiveType,
22
23
  } from '@finos/legend-graph';
23
24
  import {
24
25
  type Hashable,
@@ -51,10 +52,7 @@ export class QueryBuilderPostFilterOperator_EndWith
51
52
  }
52
53
 
53
54
  isCompatibleWithType(type: Type): boolean {
54
- if (type.path === PRIMITIVE_TYPE.STRING) {
55
- return true;
56
- }
57
- return false;
55
+ return PrimitiveType.STRING === type;
58
56
  }
59
57
 
60
58
  isCompatibleWithConditionValue(
@@ -63,7 +61,7 @@ export class QueryBuilderPostFilterOperator_EndWith
63
61
  const type = postFilterConditionState.value
64
62
  ? getNonCollectionValueSpecificationType(postFilterConditionState.value)
65
63
  : undefined;
66
- return PRIMITIVE_TYPE.STRING === type?.path;
64
+ return PrimitiveType.STRING === type;
67
65
  }
68
66
 
69
67
  getDefaultFilterConditionValue(
@@ -128,13 +126,7 @@ export class QueryBuilderPostFilterOperator_NotEndWith extends QueryBuilderPostF
128
126
  const expression = super.buildPostFilterConditionExpression(
129
127
  postFilterConditionState,
130
128
  );
131
- return expression
132
- ? buildNotExpression(
133
- expression,
134
- postFilterConditionState.postFilterState.tdsState.queryBuilderState
135
- .graphManagerState.graph,
136
- )
137
- : undefined;
129
+ return expression ? buildNotExpression(expression) : undefined;
138
130
  }
139
131
 
140
132
  override buildPostFilterConditionState(
@@ -27,7 +27,6 @@ import {
27
27
  GenericType,
28
28
  GenericTypeExplicitReference,
29
29
  PRIMITIVE_TYPE,
30
- TYPICAL_MULTIPLICITY_TYPE,
31
30
  SUPPORTED_FUNCTIONS,
32
31
  } from '@finos/legend-graph';
33
32
  import {
@@ -131,15 +130,10 @@ export class QueryBuilderPostFilterOperator_Equal
131
130
  default:
132
131
  if (propertyType instanceof Enumeration) {
133
132
  if (propertyType.values.length > 0) {
134
- const multiplicityOne =
135
- postFilterConditionState.postFilterState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
136
- TYPICAL_MULTIPLICITY_TYPE.ONE,
137
- );
138
133
  const enumValueInstanceValue = new EnumValueInstanceValue(
139
134
  GenericTypeExplicitReference.create(
140
135
  new GenericType(propertyType),
141
136
  ),
142
- multiplicityOne,
143
137
  );
144
138
  instanceValue_setValues(enumValueInstanceValue, [
145
139
  EnumValueExplicitReference.create(propertyType.values[0] as Enum),
@@ -208,13 +202,7 @@ export class QueryBuilderPostFilterOperator_NotEqual extends QueryBuilderPostFil
208
202
  const expression = super.buildPostFilterConditionExpression(
209
203
  postFilterConditionState,
210
204
  );
211
- return expression
212
- ? buildNotExpression(
213
- expression,
214
- postFilterConditionState.postFilterState.tdsState.queryBuilderState
215
- .graphManagerState.graph,
216
- )
217
- : undefined;
205
+ return expression ? buildNotExpression(expression) : undefined;
218
206
  }
219
207
 
220
208
  override buildPostFilterConditionState(
@@ -25,7 +25,7 @@ import {
25
25
  VariableExpression,
26
26
  GenericTypeExplicitReference,
27
27
  GenericType,
28
- TYPICAL_MULTIPLICITY_TYPE,
28
+ Multiplicity,
29
29
  } from '@finos/legend-graph';
30
30
  import {
31
31
  guaranteeNonNullable,
@@ -123,15 +123,11 @@ export class QueryBuilderPostFilterOperator_In
123
123
  getDefaultFilterConditionValue(
124
124
  postFilterConditionState: PostFilterConditionState,
125
125
  ): ValueSpecification {
126
- const multiplicityOne =
127
- postFilterConditionState.postFilterState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
128
- TYPICAL_MULTIPLICITY_TYPE.ONE,
129
- );
130
126
  const propertyType = guaranteeNonNullable(
131
127
  postFilterConditionState.columnState.getColumnType(),
132
128
  );
133
129
  return new CollectionInstanceValue(
134
- multiplicityOne,
130
+ Multiplicity.ONE,
135
131
  GenericTypeExplicitReference.create(new GenericType(propertyType)),
136
132
  );
137
133
  }
@@ -174,13 +170,7 @@ export class QueryBuilderPostFilterOperator_NotIn extends QueryBuilderPostFilter
174
170
  const expression = super.buildPostFilterConditionExpression(
175
171
  postFilterConditionState,
176
172
  );
177
- return expression
178
- ? buildNotExpression(
179
- expression,
180
- postFilterConditionState.postFilterState.tdsState.queryBuilderState
181
- .graphManagerState.graph,
182
- )
183
- : undefined;
173
+ return expression ? buildNotExpression(expression) : undefined;
184
174
  }
185
175
 
186
176
  override buildPostFilterConditionState(
@@ -19,7 +19,7 @@ import {
19
19
  type ValueSpecification,
20
20
  type FunctionExpression,
21
21
  Enumeration,
22
- PRIMITIVE_TYPE,
22
+ PrimitiveType,
23
23
  } from '@finos/legend-graph';
24
24
  import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js';
25
25
  import { buildPostFilterConditionState } from '../QueryBuilderPostFilterStateBuilder.js';
@@ -47,10 +47,7 @@ export class QueryBuilderPostFilterOperator_IsEmpty
47
47
  }
48
48
 
49
49
  isCompatibleWithType(type: Type): boolean {
50
- return (
51
- Object.values(PRIMITIVE_TYPE).includes(type.path as PRIMITIVE_TYPE) ||
52
- type instanceof Enumeration
53
- );
50
+ return type instanceof PrimitiveType || type instanceof Enumeration;
54
51
  }
55
52
 
56
53
  isCompatibleWithConditionValue(
@@ -20,6 +20,7 @@ import {
20
20
  type SimpleFunctionExpression,
21
21
  type FunctionExpression,
22
22
  PRIMITIVE_TYPE,
23
+ PrimitiveType,
23
24
  } from '@finos/legend-graph';
24
25
  import {
25
26
  type Hashable,
@@ -52,10 +53,7 @@ export class QueryBuilderPostFilterOperator_StartWith
52
53
  }
53
54
 
54
55
  isCompatibleWithType(type: Type): boolean {
55
- if (type.path === PRIMITIVE_TYPE.STRING) {
56
- return true;
57
- }
58
- return false;
56
+ return PrimitiveType.STRING === type;
59
57
  }
60
58
 
61
59
  isCompatibleWithConditionValue(
@@ -64,7 +62,7 @@ export class QueryBuilderPostFilterOperator_StartWith
64
62
  const type = postFilterConditionState.value
65
63
  ? getNonCollectionValueSpecificationType(postFilterConditionState.value)
66
64
  : undefined;
67
- return PRIMITIVE_TYPE.STRING === type?.path;
65
+ return PrimitiveType.STRING === type;
68
66
  }
69
67
 
70
68
  getDefaultFilterConditionValue(
@@ -131,13 +129,7 @@ export class QueryBuilderPostFilterOperator_NotStartWith
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(
@@ -40,16 +40,16 @@ import {
40
40
  type VariableExpression,
41
41
  PackageableElementExplicitReference,
42
42
  GRAPH_MANAGER_EVENT,
43
- PRIMITIVE_TYPE,
44
43
  buildSourceInformationSourceId,
45
44
  ParserError,
46
- TYPICAL_MULTIPLICITY_TYPE,
47
45
  RawVariableExpression,
48
46
  Enumeration,
49
47
  RawLambda,
50
48
  stub_RawLambda,
49
+ Multiplicity,
50
+ PrimitiveType,
51
51
  } from '@finos/legend-graph';
52
- import { QueryBuilderTDSColumnState } from '../QueryBuilderTDSColumnState_.js';
52
+ import { QueryBuilderTDSColumnState } from '../QueryBuilderTDSColumnState.js';
53
53
  import type { QueryBuilderTDSState } from '../QueryBuilderTDSState.js';
54
54
  import {
55
55
  DEFAULT_LAMBDA_VARIABLE_NAME,
@@ -294,16 +294,13 @@ export class QueryBuilderDerivationProjectionColumnState
294
294
  assertTrue(Array.isArray(this.lambda.parameters));
295
295
  const projectionParameter = this.lambda.parameters as object[];
296
296
  const graph = this.tdsState.queryBuilderState.graphManagerState.graph;
297
- const multiplicityOne = graph.getTypicalMultiplicity(
298
- TYPICAL_MULTIPLICITY_TYPE.ONE,
299
- );
300
297
  assertTrue(projectionParameter.length === 1);
301
298
  const variable = projectionParameter[0] as VariableExpression;
302
299
  assertNonEmptyString(variable.name);
303
300
  // assign variable to query class
304
301
  const rawVariableExpression = new RawVariableExpression(
305
302
  variable.name,
306
- multiplicityOne,
303
+ Multiplicity.ONE,
307
304
  PackageableElementExplicitReference.create(
308
305
  guaranteeNonNullable(this.tdsState.queryBuilderState.class),
309
306
  ),
@@ -323,10 +320,9 @@ export class QueryBuilderDerivationProjectionColumnState
323
320
  )) as string;
324
321
  const resolvedType = graph.getType(type);
325
322
  assertTrue(
326
- Object.values(PRIMITIVE_TYPE).includes(
327
- resolvedType.path as PRIMITIVE_TYPE,
328
- ) || resolvedType instanceof Enumeration,
329
- 'projection column must have primitive return type',
323
+ resolvedType instanceof PrimitiveType ||
324
+ resolvedType instanceof Enumeration,
325
+ 'Projection column must have return type of either primitve type or enumeration',
330
326
  );
331
327
  this.setReturnType(resolvedType);
332
328
  }
@@ -21,15 +21,14 @@ import {
21
21
  GenericType,
22
22
  GenericTypeExplicitReference,
23
23
  PrimitiveInstanceValue,
24
- PRIMITIVE_TYPE,
25
24
  SimpleFunctionExpression,
26
- TYPICAL_MULTIPLICITY_TYPE,
27
25
  type ValueSpecification,
28
26
  INTERNAL__UnknownValueSpecification,
29
27
  V1_serializeRawValueSpecification,
30
28
  V1_transformRawLambda,
31
29
  V1_GraphTransformerContextBuilder,
32
30
  matchFunctionName,
31
+ PrimitiveType,
33
32
  } from '@finos/legend-graph';
34
33
  import {
35
34
  guaranteeNonNullable,
@@ -48,33 +47,21 @@ import {
48
47
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../graphManager/QueryBuilderSupportedFunctions.js';
49
48
  import { buildGenericLambdaFunctionInstanceValue } from '../../../QueryBuilderValueSpecificationHelper.js';
50
49
  import { buildPropertyExpressionChain } from '../../../QueryBuilderValueSpecificationBuilderHelper.js';
51
- import { appendOlapGroupByState } from '../olapGroupBy/QueryBuilderOlapGroupByValueSpecificationBuilder.js';
50
+ import { appendOLAPGroupByState } from '../olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder_.js';
52
51
  import { appendPostFilter } from '../post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js';
53
52
 
54
53
  const buildSortExpression = (
55
54
  sortColumnState: SortColumnState,
56
55
  ): SimpleFunctionExpression => {
57
- const multiplicityOne =
58
- sortColumnState.columnState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
59
- TYPICAL_MULTIPLICITY_TYPE.ONE,
60
- );
61
56
  const sortColumnFunction = new SimpleFunctionExpression(
62
57
  extractElementNameFromPath(
63
58
  sortColumnState.sortType === COLUMN_SORT_TYPE.ASC
64
59
  ? QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_ASC
65
60
  : QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_DESC,
66
61
  ),
67
- multiplicityOne,
68
62
  );
69
63
  const sortColumnName = new PrimitiveInstanceValue(
70
- GenericTypeExplicitReference.create(
71
- new GenericType(
72
- sortColumnState.columnState.tdsState.queryBuilderState.graphManagerState.graph.getPrimitiveType(
73
- PRIMITIVE_TYPE.STRING,
74
- ),
75
- ),
76
- ),
77
- multiplicityOne,
64
+ GenericTypeExplicitReference.create(new GenericType(PrimitiveType.STRING)),
78
65
  );
79
66
  sortColumnName.values = [sortColumnState.columnState.columnName];
80
67
  sortColumnFunction.parametersValues[0] = sortColumnName;
@@ -90,10 +77,6 @@ const appendResultSetModifier = (
90
77
  }
91
78
  | undefined,
92
79
  ): LambdaFunction => {
93
- const multiplicityOne =
94
- resultModifierState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
95
- TYPICAL_MULTIPLICITY_TYPE.ONE,
96
- );
97
80
  if (lambdaFunction.expressionSequence.length === 1) {
98
81
  const func = lambdaFunction.expressionSequence[0];
99
82
  if (func instanceof SimpleFunctionExpression) {
@@ -112,7 +95,6 @@ const appendResultSetModifier = (
112
95
  extractElementNameFromPath(
113
96
  QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_DISTINCT,
114
97
  ),
115
- multiplicityOne,
116
98
  );
117
99
  distinctFunction.parametersValues[0] = currentExpression;
118
100
  currentExpression = distinctFunction;
@@ -124,7 +106,6 @@ const appendResultSetModifier = (
124
106
  extractElementNameFromPath(
125
107
  QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_SORT,
126
108
  ),
127
- multiplicityOne,
128
109
  );
129
110
  const multiplicity =
130
111
  resultModifierState.tdsState.queryBuilderState.graphManagerState.graph.getMultiplicity(
@@ -146,13 +127,8 @@ const appendResultSetModifier = (
146
127
  if (resultModifierState.limit || options?.overridingLimit) {
147
128
  const limit = new PrimitiveInstanceValue(
148
129
  GenericTypeExplicitReference.create(
149
- new GenericType(
150
- resultModifierState.tdsState.queryBuilderState.graphManagerState.graph.getPrimitiveType(
151
- PRIMITIVE_TYPE.INTEGER,
152
- ),
153
- ),
130
+ new GenericType(PrimitiveType.INTEGER),
154
131
  ),
155
- multiplicityOne,
156
132
  );
157
133
  limit.values = [
158
134
  Math.min(
@@ -164,7 +140,6 @@ const appendResultSetModifier = (
164
140
  extractElementNameFromPath(
165
141
  QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_TAKE,
166
142
  ),
167
- multiplicityOne,
168
143
  );
169
144
  takeFunction.parametersValues[0] = currentExpression;
170
145
  takeFunction.parametersValues[1] = limit;
@@ -195,13 +170,6 @@ export const appendProjection = (
195
170
  lambdaFunction.expressionSequence[0],
196
171
  `Can't build projection expression: preceding expression is not defined`,
197
172
  );
198
- const multiplicityOne =
199
- queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
200
- TYPICAL_MULTIPLICITY_TYPE.ONE,
201
- );
202
- const typeString = queryBuilderState.graphManagerState.graph.getPrimitiveType(
203
- PRIMITIVE_TYPE.STRING,
204
- );
205
173
 
206
174
  // build projection
207
175
  if (tdsState.aggregationState.columns.length) {
@@ -210,7 +178,6 @@ export const appendProjection = (
210
178
  extractElementNameFromPath(
211
179
  QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_GROUP_BY,
212
180
  ),
213
- multiplicityOne,
214
181
  );
215
182
 
216
183
  const colLambdas = new CollectionInstanceValue(
@@ -236,8 +203,9 @@ export const appendProjection = (
236
203
  tdsState.projectionColumns.forEach((projectionColumnState) => {
237
204
  // column alias
238
205
  const colAlias = new PrimitiveInstanceValue(
239
- GenericTypeExplicitReference.create(new GenericType(typeString)),
240
- multiplicityOne,
206
+ GenericTypeExplicitReference.create(
207
+ new GenericType(PrimitiveType.STRING),
208
+ ),
241
209
  );
242
210
  colAlias.values.push(projectionColumnState.columnName);
243
211
  colAliases.values.push(colAlias);
@@ -292,7 +260,6 @@ export const appendProjection = (
292
260
  if (aggregateColumnState) {
293
261
  const aggregateFunctionExpression = new SimpleFunctionExpression(
294
262
  extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_AGG),
295
- multiplicityOne,
296
263
  );
297
264
  const aggregateLambda = buildGenericLambdaFunctionInstanceValue(
298
265
  aggregateColumnState.lambdaParameterName,
@@ -324,7 +291,6 @@ export const appendProjection = (
324
291
  // projection
325
292
  const projectFunction = new SimpleFunctionExpression(
326
293
  extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_PROJECT),
327
- multiplicityOne,
328
294
  );
329
295
  const colLambdas = new CollectionInstanceValue(
330
296
  queryBuilderState.graphManagerState.graph.getMultiplicity(
@@ -341,8 +307,9 @@ export const appendProjection = (
341
307
  tdsState.projectionColumns.forEach((projectionColumnState) => {
342
308
  // column alias
343
309
  const colAlias = new PrimitiveInstanceValue(
344
- GenericTypeExplicitReference.create(new GenericType(typeString)),
345
- multiplicityOne,
310
+ GenericTypeExplicitReference.create(
311
+ new GenericType(PrimitiveType.STRING),
312
+ ),
346
313
  );
347
314
  colAlias.values.push(projectionColumnState.columnName);
348
315
  colAliases.values.push(colAlias);
@@ -398,7 +365,7 @@ export const appendProjection = (
398
365
  }
399
366
 
400
367
  // build olapGroupBy
401
- appendOlapGroupByState(tdsState.olapGroupByState, lambdaFunction);
368
+ appendOLAPGroupByState(tdsState.olapGroupByState, lambdaFunction);
402
369
 
403
370
  // build post-filter
404
371
  appendPostFilter(tdsState.postFilterState, lambdaFunction);
@@ -19,7 +19,6 @@ import {
19
19
  type ValueSpecification,
20
20
  extractElementNameFromPath,
21
21
  SimpleFunctionExpression,
22
- TYPICAL_MULTIPLICITY_TYPE,
23
22
  } from '@finos/legend-graph';
24
23
  import { buildGenericLambdaFunctionInstanceValue } from '../QueryBuilderValueSpecificationHelper.js';
25
24
  import { fromGroupOperation } from '../QueryBuilderGroupOperationHelper.js';
@@ -40,13 +39,8 @@ const buildFilterConditionExpression = (
40
39
  node.condition,
41
40
  );
42
41
  } else if (node instanceof QueryBuilderFilterTreeGroupNodeData) {
43
- const multiplicityOne =
44
- filterState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
45
- TYPICAL_MULTIPLICITY_TYPE.ONE,
46
- );
47
42
  const func = new SimpleFunctionExpression(
48
43
  extractElementNameFromPath(fromGroupOperation(node.groupOperation)),
49
- multiplicityOne,
50
44
  );
51
45
  const clauses = node.childrenIds
52
46
  .map((e) => filterState.nodes.get(e))
@@ -71,7 +65,6 @@ const buildFilterConditionExpression = (
71
65
  const clause2 = currentClause;
72
66
  const groupClause = new SimpleFunctionExpression(
73
67
  extractElementNameFromPath(fromGroupOperation(node.groupOperation)),
74
- multiplicityOne,
75
68
  );
76
69
  groupClause.parametersValues = [clause1, clause2];
77
70
  currentClause = groupClause;
@@ -97,14 +90,9 @@ export const buildFilterExpression = (
97
90
  if (!filterConditionExpressions.length) {
98
91
  return undefined;
99
92
  }
100
- const multiplicityOne =
101
- filterState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
102
- TYPICAL_MULTIPLICITY_TYPE.ONE,
103
- );
104
93
  // main filter expression
105
94
  const filterExpression = new SimpleFunctionExpression(
106
95
  extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.FILTER),
107
- multiplicityOne,
108
96
  );
109
97
  // param [0]
110
98
  filterExpression.parametersValues.push(getAllFunc);
@@ -22,7 +22,7 @@ import {
22
22
  VariableExpression,
23
23
  AbstractPropertyExpression,
24
24
  SimpleFunctionExpression,
25
- TYPICAL_MULTIPLICITY_TYPE,
25
+ Multiplicity,
26
26
  } from '@finos/legend-graph';
27
27
  import {
28
28
  guaranteeType,
@@ -68,10 +68,6 @@ const buildFilterConditionExpressionWithExists = (
68
68
  filterConditionState: FilterConditionState,
69
69
  operatorFunctionFullPath: string,
70
70
  ): ValueSpecification => {
71
- const multiplicityOne =
72
- filterConditionState.filterState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
73
- TYPICAL_MULTIPLICITY_TYPE.ONE,
74
- );
75
71
  assertTrue(
76
72
  filterConditionState.propertyExpressionState.requiresExistsHandling,
77
73
  );
@@ -95,10 +91,9 @@ const buildFilterConditionExpressionWithExists = (
95
91
  if (currentPropertyExpression instanceof SimpleFunctionExpression) {
96
92
  exp = new SimpleFunctionExpression(
97
93
  extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE),
98
- multiplicityOne,
99
94
  );
100
95
  } else {
101
- exp = new AbstractPropertyExpression('', multiplicityOne);
96
+ exp = new AbstractPropertyExpression('');
102
97
  exp.func = currentPropertyExpression.func;
103
98
  }
104
99
  // NOTE: we must retain the rest of the parameters as those are derived property parameters
@@ -155,7 +150,7 @@ const buildFilterConditionExpressionWithExists = (
155
150
  existsLambdaPropertyChains.push(
156
151
  new VariableExpression(
157
152
  existsLambdaParamNames[currentParamNameIndex] as string,
158
- multiplicityOne,
153
+ Multiplicity.ONE,
159
154
  ),
160
155
  );
161
156
  currentParamNameIndex++;
@@ -167,7 +162,6 @@ const buildFilterConditionExpressionWithExists = (
167
162
  for (let i = 0; i < existsLambdaPropertyChains.length - 1; ++i) {
168
163
  const simpleFunctionExpression = new SimpleFunctionExpression(
169
164
  extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.EXISTS),
170
- multiplicityOne,
171
165
  );
172
166
  simpleFunctionExpression.parametersValues.push(
173
167
  existsLambdaPropertyChains[i] as ValueSpecification,
@@ -177,7 +171,6 @@ const buildFilterConditionExpressionWithExists = (
177
171
  // build the leaf simple function expression which uses the operator
178
172
  const operatorEpression = new SimpleFunctionExpression(
179
173
  extractElementNameFromPath(operatorFunctionFullPath),
180
- multiplicityOne,
181
174
  );
182
175
  operatorEpression.parametersValues.push(
183
176
  existsLambdaPropertyChains[
@@ -220,10 +213,6 @@ export const buildFilterConditionExpression = (
220
213
  filterConditionState: FilterConditionState,
221
214
  operatorFunctionFullPath: string,
222
215
  ): ValueSpecification => {
223
- const multiplicityOne =
224
- filterConditionState.filterState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
225
- TYPICAL_MULTIPLICITY_TYPE.ONE,
226
- );
227
216
  if (filterConditionState.propertyExpressionState.requiresExistsHandling) {
228
217
  return buildFilterConditionExpressionWithExists(
229
218
  filterConditionState,
@@ -232,7 +221,6 @@ export const buildFilterConditionExpression = (
232
221
  }
233
222
  const expression = new SimpleFunctionExpression(
234
223
  extractElementNameFromPath(operatorFunctionFullPath),
235
- multiplicityOne,
236
224
  );
237
225
  const propertyExpression = buildPropertyExpressionChain(
238
226
  filterConditionState.propertyExpressionState.propertyExpression,
@@ -333,18 +321,11 @@ const buildFilterConditionStateWithExists = (
333
321
  }
334
322
 
335
323
  // 2. Build the property expression
336
- const multiplicityOne =
337
- filterState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
338
- TYPICAL_MULTIPLICITY_TYPE.ONE,
339
- );
340
324
  const initialPropertyExpression = guaranteeType(
341
325
  parentExpression.parametersValues[0],
342
326
  AbstractPropertyExpression,
343
327
  );
344
- let flattenedPropertyExpressionChain = new AbstractPropertyExpression(
345
- '',
346
- multiplicityOne,
347
- );
328
+ let flattenedPropertyExpressionChain = new AbstractPropertyExpression('');
348
329
  flattenedPropertyExpressionChain.func = initialPropertyExpression.func;
349
330
  flattenedPropertyExpressionChain.parametersValues = [
350
331
  ...initialPropertyExpression.parametersValues,
@@ -370,17 +351,13 @@ const buildFilterConditionStateWithExists = (
370
351
  extractElementNameFromPath(
371
352
  QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE,
372
353
  ),
373
- multiplicityOne,
374
354
  );
375
355
  functionExpression.parametersValues.unshift(
376
356
  guaranteeNonNullable(currentExpression.parametersValues[1]),
377
357
  );
378
358
  expressions.push(functionExpression);
379
359
  } else if (currentExpression instanceof AbstractPropertyExpression) {
380
- const propertyExpression = new AbstractPropertyExpression(
381
- '',
382
- multiplicityOne,
383
- );
360
+ const propertyExpression = new AbstractPropertyExpression('');
384
361
  propertyExpression.func = currentExpression.func;
385
362
  // NOTE: we must retain the rest of the parameters as those are derived property parameters
386
363
  propertyExpression.parametersValues =
@@ -23,6 +23,7 @@ import {
23
23
  PRIMITIVE_TYPE,
24
24
  type ValueSpecification,
25
25
  type SimpleFunctionExpression,
26
+ PrimitiveType,
26
27
  } from '@finos/legend-graph';
27
28
  import {
28
29
  type Hashable,
@@ -54,10 +55,11 @@ export class QueryBuilderFilterOperator_Contain
54
55
  isCompatibleWithFilterConditionProperty(
55
56
  filterConditionState: FilterConditionState,
56
57
  ): boolean {
57
- const propertyType =
58
+ return (
59
+ PrimitiveType.STRING ===
58
60
  filterConditionState.propertyExpressionState.propertyExpression.func.value
59
- .genericType.value.rawType;
60
- return PRIMITIVE_TYPE.STRING === propertyType.path;
61
+ .genericType.value.rawType
62
+ );
61
63
  }
62
64
 
63
65
  isCompatibleWithFilterConditionValue(
@@ -66,7 +68,7 @@ export class QueryBuilderFilterOperator_Contain
66
68
  const type = filterConditionState.value
67
69
  ? getNonCollectionValueSpecificationType(filterConditionState.value)
68
70
  : undefined;
69
- return PRIMITIVE_TYPE.STRING === type?.path;
71
+ return PrimitiveType.STRING === type;
70
72
  }
71
73
 
72
74
  getDefaultFilterConditionValue(
@@ -129,8 +131,6 @@ export class QueryBuilderFilterOperator_NotContain extends QueryBuilderFilterOpe
129
131
  ): ValueSpecification {
130
132
  return buildNotExpression(
131
133
  super.buildFilterConditionExpression(filterConditionState),
132
- filterConditionState.filterState.queryBuilderState.graphManagerState
133
- .graph,
134
134
  );
135
135
  }
136
136
 
@@ -23,6 +23,7 @@ import {
23
23
  PRIMITIVE_TYPE,
24
24
  type ValueSpecification,
25
25
  type SimpleFunctionExpression,
26
+ PrimitiveType,
26
27
  } from '@finos/legend-graph';
27
28
  import {
28
29
  type Hashable,
@@ -54,10 +55,11 @@ export class QueryBuilderFilterOperator_EndWith
54
55
  isCompatibleWithFilterConditionProperty(
55
56
  filterConditionState: FilterConditionState,
56
57
  ): boolean {
57
- const propertyType =
58
+ return (
59
+ PrimitiveType.STRING ===
58
60
  filterConditionState.propertyExpressionState.propertyExpression.func.value
59
- .genericType.value.rawType;
60
- return PRIMITIVE_TYPE.STRING === propertyType.path;
61
+ .genericType.value.rawType
62
+ );
61
63
  }
62
64
 
63
65
  isCompatibleWithFilterConditionValue(
@@ -66,7 +68,7 @@ export class QueryBuilderFilterOperator_EndWith
66
68
  const type = filterConditionState.value
67
69
  ? getNonCollectionValueSpecificationType(filterConditionState.value)
68
70
  : undefined;
69
- return PRIMITIVE_TYPE.STRING === type?.path;
71
+ return PrimitiveType.STRING === type;
70
72
  }
71
73
 
72
74
  getDefaultFilterConditionValue(
@@ -129,8 +131,6 @@ export class QueryBuilderFilterOperator_NotEndWith extends QueryBuilderFilterOpe
129
131
  ): ValueSpecification {
130
132
  return buildNotExpression(
131
133
  super.buildFilterConditionExpression(filterConditionState),
132
- filterConditionState.filterState.queryBuilderState.graphManagerState
133
- .graph,
134
134
  );
135
135
  }
136
136
 
@@ -27,7 +27,6 @@ import {
27
27
  EnumValueInstanceValue,
28
28
  GenericTypeExplicitReference,
29
29
  GenericType,
30
- TYPICAL_MULTIPLICITY_TYPE,
31
30
  EnumValueExplicitReference,
32
31
  Enumeration,
33
32
  PRIMITIVE_TYPE,
@@ -132,15 +131,10 @@ export class QueryBuilderFilterOperator_Equal
132
131
  default:
133
132
  if (propertyType instanceof Enumeration) {
134
133
  if (propertyType.values.length > 0) {
135
- const multiplicityOne =
136
- filterConditionState.filterState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
137
- TYPICAL_MULTIPLICITY_TYPE.ONE,
138
- );
139
134
  const enumValueInstanceValue = new EnumValueInstanceValue(
140
135
  GenericTypeExplicitReference.create(
141
136
  new GenericType(propertyType),
142
137
  ),
143
- multiplicityOne,
144
138
  );
145
139
  instanceValue_setValues(enumValueInstanceValue, [
146
140
  EnumValueExplicitReference.create(propertyType.values[0] as Enum),
@@ -207,8 +201,6 @@ export class QueryBuilderFilterOperator_NotEqual extends QueryBuilderFilterOpera
207
201
  ): ValueSpecification {
208
202
  return buildNotExpression(
209
203
  super.buildFilterConditionExpression(filterConditionState),
210
- filterConditionState.filterState.queryBuilderState.graphManagerState
211
- .graph,
212
204
  );
213
205
  }
214
206