@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
@@ -34,11 +34,11 @@ import {
34
34
  EnumValueExplicitReference,
35
35
  EnumValueInstanceValue,
36
36
  matchFunctionName,
37
- TYPICAL_MULTIPLICITY_TYPE,
38
37
  SUPPORTED_FUNCTIONS,
39
38
  DAY_OF_WEEK,
40
39
  DURATION_UNIT,
41
40
  type ObserverContext,
41
+ PrimitiveType,
42
42
  } from '@finos/legend-graph';
43
43
  import {
44
44
  guaranteeNonNullable,
@@ -241,26 +241,18 @@ const buildPureDateFunctionExpression = (
241
241
  graph: PureModel,
242
242
  observerContext: ObserverContext,
243
243
  ): SimpleFunctionExpression => {
244
- const multiplicityOne = graph.getTypicalMultiplicity(
245
- TYPICAL_MULTIPLICITY_TYPE.ONE,
246
- );
247
- const strictDate = graph.getPrimitiveType(PRIMITIVE_TYPE.STRICTDATE);
248
- const date = graph.getPrimitiveType(PRIMITIVE_TYPE.DATE);
249
- const dateTime = graph.getPrimitiveType(PRIMITIVE_TYPE.DATETIME);
250
244
  if (datePickerOption instanceof CustomPreviousDayOfWeekOption) {
251
245
  const previousFridaySFE = new SimpleFunctionExpression(
252
246
  SUPPORTED_FUNCTIONS.PREVIOUS_DAY_OF_WEEK,
253
- multiplicityOne,
254
247
  );
255
248
  valueSpecification_setGenericType(
256
249
  previousFridaySFE,
257
- GenericTypeExplicitReference.create(new GenericType(date)),
250
+ GenericTypeExplicitReference.create(new GenericType(PrimitiveType.DATE)),
258
251
  );
259
252
  const dayOfWeekEnumIntanceValue = new EnumValueInstanceValue(
260
253
  GenericTypeExplicitReference.create(
261
254
  new GenericType(graph.getType(DAY_OF_WEEK)),
262
255
  ),
263
- multiplicityOne,
264
256
  );
265
257
  instanceValue_setValues(dayOfWeekEnumIntanceValue, [
266
258
  ...dayOfWeekEnumIntanceValue.values,
@@ -283,44 +275,48 @@ const buildPureDateFunctionExpression = (
283
275
  case CUSTOM_DATE_FIRST_DAY_OF_UNIT.YEAR: {
284
276
  const firstDayOfYearSFE = new SimpleFunctionExpression(
285
277
  SUPPORTED_FUNCTIONS.FIRST_DAY_OF_YEAR,
286
- multiplicityOne,
287
278
  );
288
279
  valueSpecification_setGenericType(
289
280
  firstDayOfYearSFE,
290
- GenericTypeExplicitReference.create(new GenericType(date)),
281
+ GenericTypeExplicitReference.create(
282
+ new GenericType(PrimitiveType.DATE),
283
+ ),
291
284
  );
292
285
  return firstDayOfYearSFE;
293
286
  }
294
287
  case CUSTOM_DATE_FIRST_DAY_OF_UNIT.QUARTER: {
295
288
  const firstDayOfQuarterSFE = new SimpleFunctionExpression(
296
289
  SUPPORTED_FUNCTIONS.FIRST_DAY_OF_QUARTER,
297
- multiplicityOne,
298
290
  );
299
291
  valueSpecification_setGenericType(
300
292
  firstDayOfQuarterSFE,
301
- GenericTypeExplicitReference.create(new GenericType(strictDate)),
293
+ GenericTypeExplicitReference.create(
294
+ new GenericType(PrimitiveType.STRICTDATE),
295
+ ),
302
296
  );
303
297
  return firstDayOfQuarterSFE;
304
298
  }
305
299
  case CUSTOM_DATE_FIRST_DAY_OF_UNIT.MONTH: {
306
300
  const firstDayOfMonthSFE = new SimpleFunctionExpression(
307
301
  SUPPORTED_FUNCTIONS.FIRST_DAY_OF_MONTH,
308
- multiplicityOne,
309
302
  );
310
303
  valueSpecification_setGenericType(
311
304
  firstDayOfMonthSFE,
312
- GenericTypeExplicitReference.create(new GenericType(date)),
305
+ GenericTypeExplicitReference.create(
306
+ new GenericType(PrimitiveType.DATE),
307
+ ),
313
308
  );
314
309
  return firstDayOfMonthSFE;
315
310
  }
316
311
  case CUSTOM_DATE_FIRST_DAY_OF_UNIT.WEEK: {
317
312
  const firstDayOfWeekSFE = new SimpleFunctionExpression(
318
313
  SUPPORTED_FUNCTIONS.FIRST_DAY_OF_WEEK,
319
- multiplicityOne,
320
314
  );
321
315
  valueSpecification_setGenericType(
322
316
  firstDayOfWeekSFE,
323
- GenericTypeExplicitReference.create(new GenericType(date)),
317
+ GenericTypeExplicitReference.create(
318
+ new GenericType(PrimitiveType.DATE),
319
+ ),
324
320
  );
325
321
  return firstDayOfWeekSFE;
326
322
  }
@@ -334,66 +330,70 @@ const buildPureDateFunctionExpression = (
334
330
  case CUSTOM_DATE_PICKER_OPTION.TODAY: {
335
331
  const todaySFE = new SimpleFunctionExpression(
336
332
  SUPPORTED_FUNCTIONS.TODAY,
337
- multiplicityOne,
338
333
  );
339
334
  valueSpecification_setGenericType(
340
335
  todaySFE,
341
- GenericTypeExplicitReference.create(new GenericType(strictDate)),
336
+ GenericTypeExplicitReference.create(
337
+ new GenericType(PrimitiveType.STRICTDATE),
338
+ ),
342
339
  );
343
340
  return todaySFE;
344
341
  }
345
342
  case CUSTOM_DATE_PICKER_OPTION.NOW: {
346
- const nowSFE = new SimpleFunctionExpression(
347
- SUPPORTED_FUNCTIONS.NOW,
348
- multiplicityOne,
349
- );
343
+ const nowSFE = new SimpleFunctionExpression(SUPPORTED_FUNCTIONS.NOW);
350
344
  valueSpecification_setGenericType(
351
345
  nowSFE,
352
- GenericTypeExplicitReference.create(new GenericType(dateTime)),
346
+ GenericTypeExplicitReference.create(
347
+ new GenericType(PrimitiveType.DATETIME),
348
+ ),
353
349
  );
354
350
  return nowSFE;
355
351
  }
356
352
  case CUSTOM_DATE_OPTION_REFERENCE_MOMENT.FIRST_DAY_OF_YEAR: {
357
353
  const firstDayOfYearSFE = new SimpleFunctionExpression(
358
354
  SUPPORTED_FUNCTIONS.FIRST_DAY_OF_YEAR,
359
- multiplicityOne,
360
355
  );
361
356
  valueSpecification_setGenericType(
362
357
  firstDayOfYearSFE,
363
- GenericTypeExplicitReference.create(new GenericType(date)),
358
+ GenericTypeExplicitReference.create(
359
+ new GenericType(PrimitiveType.DATE),
360
+ ),
364
361
  );
365
362
  return firstDayOfYearSFE;
366
363
  }
367
364
  case CUSTOM_DATE_OPTION_REFERENCE_MOMENT.FIRST_DAY_OF_QUARTER: {
368
365
  const firstDayOfQuarterSFE = new SimpleFunctionExpression(
369
366
  SUPPORTED_FUNCTIONS.FIRST_DAY_OF_QUARTER,
370
- multiplicityOne,
371
367
  );
372
368
  valueSpecification_setGenericType(
373
369
  firstDayOfQuarterSFE,
374
- GenericTypeExplicitReference.create(new GenericType(strictDate)),
370
+ GenericTypeExplicitReference.create(
371
+ new GenericType(PrimitiveType.STRICTDATE),
372
+ ),
375
373
  );
376
374
  return firstDayOfQuarterSFE;
377
375
  }
378
376
  case CUSTOM_DATE_OPTION_REFERENCE_MOMENT.FIRST_DAY_OF_MONTH: {
379
377
  const firstDayOfMonthSFE = new SimpleFunctionExpression(
380
378
  SUPPORTED_FUNCTIONS.FIRST_DAY_OF_MONTH,
381
- multiplicityOne,
382
379
  );
383
380
  valueSpecification_setGenericType(
384
381
  firstDayOfMonthSFE,
385
- GenericTypeExplicitReference.create(new GenericType(date)),
382
+ GenericTypeExplicitReference.create(
383
+ new GenericType(PrimitiveType.DATE),
384
+ ),
386
385
  );
387
386
  return firstDayOfMonthSFE;
388
387
  }
389
388
  case CUSTOM_DATE_OPTION_REFERENCE_MOMENT.FIRST_DAY_OF_WEEK: {
390
389
  const firstDayOfWeekSFE = new SimpleFunctionExpression(
391
390
  SUPPORTED_FUNCTIONS.FIRST_DAY_OF_WEEK,
392
- multiplicityOne,
393
391
  );
394
392
  valueSpecification_setGenericType(
395
393
  firstDayOfWeekSFE,
396
- GenericTypeExplicitReference.create(new GenericType(date)),
394
+ GenericTypeExplicitReference.create(
395
+ new GenericType(PrimitiveType.DATE),
396
+ ),
397
397
  );
398
398
  return firstDayOfWeekSFE;
399
399
  }
@@ -437,12 +437,8 @@ const buildPureAdjustDateFunction = (
437
437
  graph: PureModel,
438
438
  observerContext: ObserverContext,
439
439
  ): SimpleFunctionExpression => {
440
- const multiplicityOne = graph.getTypicalMultiplicity(
441
- TYPICAL_MULTIPLICITY_TYPE.ONE,
442
- );
443
440
  const dateAdjustSimpleFunctionExpression = new SimpleFunctionExpression(
444
441
  SUPPORTED_FUNCTIONS.ADJUST,
445
- multiplicityOne,
446
442
  );
447
443
  functionExpression_addParameterValue(
448
444
  dateAdjustSimpleFunctionExpression,
@@ -457,10 +453,7 @@ const buildPureAdjustDateFunction = (
457
453
  observerContext,
458
454
  );
459
455
  if (customDateOption.direction === CUSTOM_DATE_OPTION_DIRECTION.BEFORE) {
460
- const minusFunc = new SimpleFunctionExpression(
461
- SUPPORTED_FUNCTIONS.MINUS,
462
- multiplicityOne,
463
- );
456
+ const minusFunc = new SimpleFunctionExpression(SUPPORTED_FUNCTIONS.MINUS);
464
457
  functionExpression_addParameterValue(
465
458
  minusFunc,
466
459
  buildPrimitiveInstanceValue(
@@ -491,7 +484,6 @@ const buildPureAdjustDateFunction = (
491
484
  GenericTypeExplicitReference.create(
492
485
  new GenericType(graph.getType(DURATION_UNIT)),
493
486
  ),
494
- multiplicityOne,
495
487
  );
496
488
  instanceValue_setValues(durationUnitEnumIntanceValue, [
497
489
  ...durationUnitEnumIntanceValue.values,
@@ -511,9 +503,7 @@ const buildPureAdjustDateFunction = (
511
503
  );
512
504
  valueSpecification_setGenericType(
513
505
  dateAdjustSimpleFunctionExpression,
514
- GenericTypeExplicitReference.create(
515
- new GenericType(graph.getPrimitiveType(PRIMITIVE_TYPE.DATE)),
516
- ),
506
+ GenericTypeExplicitReference.create(new GenericType(PrimitiveType.DATE)),
517
507
  );
518
508
  return dateAdjustSimpleFunctionExpression;
519
509
  };
@@ -747,7 +737,7 @@ const AbsoluteDateValueSpecificationEditor: React.FC<{
747
737
  valueSpecification_setGenericType(
748
738
  valueSpecification,
749
739
  GenericTypeExplicitReference.create(
750
- new GenericType(graph.getPrimitiveType(PRIMITIVE_TYPE.STRICTDATE)),
740
+ new GenericType(PrimitiveType.STRICTDATE),
751
741
  ),
752
742
  );
753
743
  }
@@ -816,7 +806,7 @@ const AbsoluteTimeValueSpecificationEditor: React.FC<{
816
806
  valueSpecification_setGenericType(
817
807
  valueSpecification,
818
808
  GenericTypeExplicitReference.create(
819
- new GenericType(graph.getPrimitiveType(PRIMITIVE_TYPE.DATETIME)),
809
+ new GenericType(PrimitiveType.DATETIME),
820
810
  ),
821
811
  );
822
812
  }
@@ -25,8 +25,8 @@ import {
25
25
  import {
26
26
  type PureModel,
27
27
  type ValueSpecification,
28
- PRIMITIVE_TYPE,
29
28
  type ObserverContext,
29
+ PrimitiveType,
30
30
  } from '@finos/legend-graph';
31
31
  import { prettyCONSTName } from '@finos/legend-shared';
32
32
  import { observer } from 'mobx-react-lite';
@@ -68,8 +68,8 @@ export const LambdaParameterValuesEditor = observer(
68
68
  <ModalHeader title="Set Parameter Values" />
69
69
  <ModalBody className="lambda-parameter-values__modal__body">
70
70
  {lambdaParametersState.parameterStates.map((paramState) => {
71
- const stringType = graph.getPrimitiveType(PRIMITIVE_TYPE.STRING);
72
- const variableType = paramState.variableType ?? stringType;
71
+ const variableType =
72
+ paramState.variableType ?? PrimitiveType.STRING;
73
73
  return (
74
74
  <div
75
75
  key={paramState.uuid}
@@ -95,9 +95,7 @@ export const LambdaParameterValuesEditor = observer(
95
95
  obseverContext={observerContext}
96
96
  typeCheckOption={{
97
97
  expectedType: variableType,
98
- match:
99
- variableType ===
100
- graph.getPrimitiveType(PRIMITIVE_TYPE.DATETIME),
98
+ match: variableType === PrimitiveType.DATETIME,
101
99
  }}
102
100
  className="query-builder__parameters__value__editor"
103
101
  resetValue={(): void => paramState.mockParameterValue()}
@@ -27,7 +27,13 @@ import {
27
27
  PanelFormListItems,
28
28
  PanelFormSection,
29
29
  } from '@finos/legend-art';
30
- import { PRIMITIVE_TYPE, type ValueSpecification } from '@finos/legend-graph';
30
+ import {
31
+ areMultiplicitiesEqual,
32
+ Multiplicity,
33
+ PrimitiveType,
34
+ type VariableExpression,
35
+ type ValueSpecification,
36
+ } from '@finos/legend-graph';
31
37
  import { observer } from 'mobx-react-lite';
32
38
  import { useCallback } from 'react';
33
39
  import { useDrop } from 'react-dnd';
@@ -40,6 +46,12 @@ import type { QueryBuilderWatermarkState } from '../../stores/watermark/QueryBui
40
46
  import { VariableExpressionViewer } from '../QueryBuilderParametersPanel.js';
41
47
  import { BasicValueSpecificationEditor } from '../shared/BasicValueSpecificationEditor.js';
42
48
 
49
+ const isParamaterCompatibleWithWaterMark = (
50
+ parameter: VariableExpression,
51
+ ): boolean =>
52
+ PrimitiveType.STRING === parameter.genericType?.value.rawType &&
53
+ areMultiplicitiesEqual(parameter.multiplicity, Multiplicity.ONE);
54
+
43
55
  const WatermarkValueEditor = observer(
44
56
  (props: {
45
57
  watermarkValue: ValueSpecification;
@@ -67,9 +79,7 @@ const WatermarkValueEditor = observer(
67
79
  if (
68
80
  !monitor.didDrop() &&
69
81
  // Only allows parameters with muliplicity 1 and type string
70
- watermarkState.isParamaterCompatibleWithWaterMark(
71
- item.variable.parameter,
72
- )
82
+ isParamaterCompatibleWithWaterMark(item.variable.parameter)
73
83
  ) {
74
84
  handleDrop(item);
75
85
  } // prevent drop event propagation to accomondate for nested DnD
@@ -100,7 +110,7 @@ const WatermarkValueEditor = observer(
100
110
  watermarkState.queryBuilderState.observableContext
101
111
  }
102
112
  typeCheckOption={{
103
- expectedType: graph.getPrimitiveType(PRIMITIVE_TYPE.STRING),
113
+ expectedType: PrimitiveType.STRING,
104
114
  }}
105
115
  resetValue={(): void => {
106
116
  watermarkState.resetValue();
@@ -122,7 +132,7 @@ export const QueryBuilderWatermarkEditor = observer(
122
132
  };
123
133
  const compatibleParameters =
124
134
  queryBuilderState.parametersState.parameterStates.filter((p) =>
125
- watermarkState.isParamaterCompatibleWithWaterMark(p.parameter),
135
+ isParamaterCompatibleWithWaterMark(p.parameter),
126
136
  );
127
137
 
128
138
  return (
@@ -65,20 +65,20 @@ export enum QUERY_BUILDER_HASH_STRUCTURE {
65
65
  WATERMARK_STATE = 'WATERMARK_STATE',
66
66
 
67
67
  // OLAPGroup state
68
- OLAP_GROUPBY_STATE = 'OLAP_GROUPBY_STATE',
69
- OLAP_GROUPBY_OPERATION_STATE = 'OLAP_GROUPBY_OPERATION_STATE',
70
- OLAP_GROUPBY_AGG_OPERATION_STATE = 'OLAP_GROUPBY_AGG_OPERATION_STATE',
71
- OLAP_GROUPBY_COLUMN_STATE = 'OLAP_GROUPBY_COLUMN_STATE',
72
- OLAP_GROUPBY_COLUMN_SORTBY_STATE = 'OLAP_GROUPBY_COLUMN_SORTBY_STATE',
73
- OLAP_OPERATOR_RANK = 'OLAP_OPERATOR_RANK',
74
- OLAP_OPERATOR_AVERAGE_RANK = 'OLAP_OPERATOR_AVERAGE_RANK',
75
- OLAP_OPERATOR_DENSE_RANK = 'OLAP_OPERATOR_DENSE_RANK',
76
- OLAP_OPERATOR_ROW_NUMBER = 'OLAP_OPERATOR_ROW_NUMBER',
77
- OLAP_OPERATOR_SUM = 'OLAP_OPERATOR_SUM',
78
- OLAP_OPERATOR_MAX = 'OLAP_OPERATOR_MAX',
79
- OLAP_OPERATOR_MIN = 'OLAP_OPERATOR_MIN',
80
- OLAP_OPERATOR_COUNT = 'OLAP_OPERATOR_COUNT',
81
- OLAP_OPERATOR_AVERAGE = 'OLAP_OPERATOR_AVERAGE',
68
+ TDS_OLAP_GROUPBY_STATE = 'TDS_OLAP_GROUPBY_STATE',
69
+ TDS_OLAP_GROUPBY_OPERATION_STATE = 'TDS_OLAP_GROUPBY_OPERATION_STATE',
70
+ TDS_OLAP_GROUPBY_AGG_OPERATION_STATE = 'TDS_OLAP_GROUPBY_AGG_OPERATION_STATE',
71
+ TDS_OLAP_GROUPBY_COLUMN_STATE = 'TDS_OLAP_GROUPBY_COLUMN_STATE',
72
+ TDS_OLAP_GROUPBY_COLUMN_SORTBY_STATE = 'TDS_OLAP_GROUPBY_COLUMN_SORTBY_STATE',
73
+ TDS_OLAP_OPERATOR_RANK = 'TDS_OLAP_OPERATOR_RANK',
74
+ TDS_OLAP_OPERATOR_AVERAGE_RANK = 'TDS_OLAP_OPERATOR_AVERAGE_RANK',
75
+ TDS_OLAP_OPERATOR_DENSE_RANK = 'TDS_OLAP_OPERATOR_DENSE_RANK',
76
+ TDS_OLAP_OPERATOR_ROW_NUMBER = 'TDS_OLAP_OPERATOR_ROW_NUMBER',
77
+ TDS_OLAP_OPERATOR_SUM = 'TDS_OLAP_OPERATOR_SUM',
78
+ TDS_OLAP_OPERATOR_MAX = 'TDS_OLAP_OPERATOR_MAX',
79
+ TDS_OLAP_OPERATOR_MIN = 'TDS_OLAP_OPERATOR_MIN',
80
+ TDS_OLAP_OPERATOR_COUNT = 'TDS_OLAP_OPERATOR_COUNT',
81
+ TDS_OLAP_OPERATOR_AVERAGE = 'TDS_OLAP_OPERATOR_AVERAGE',
82
82
 
83
83
  // filter state
84
84
  FILTER_TREE_GROUP_NODE_DATA = 'FILTER_TREE_GROUP_NODE_DATA',
@@ -20,7 +20,7 @@ import {
20
20
  V1_buildFilterFunctionExpression,
21
21
  V1_buildGetAllFunctionExpression,
22
22
  V1_buildGroupByFunctionExpression,
23
- V1_buildOlapGroupByFunctionExpression,
23
+ V1_buildOLAPGroupByFunctionExpression,
24
24
  V1_buildProjectFunctionExpression,
25
25
  V1_buildSubTypePropertyExpressionTypeInference,
26
26
  V1_buildWatermarkFunctionExpression,
@@ -142,7 +142,7 @@ export class QueryBuilder_PureProtocolProcessorPlugin extends PureProtocolProces
142
142
  QUERY_BUILDER_SUPPORTED_FUNCTIONS.OLAP_GROUPBY,
143
143
  )
144
144
  ) {
145
- return V1_buildOlapGroupByFunctionExpression(
145
+ return V1_buildOLAPGroupByFunctionExpression(
146
146
  functionName,
147
147
  parameters,
148
148
  openVariables,
@@ -18,7 +18,6 @@ import {
18
18
  EngineRuntime,
19
19
  GraphBuilderError,
20
20
  MappingInclude,
21
- V1_getIncludedMappingPath,
22
21
  V1_GraphBuilderContextBuilder,
23
22
  V1_Mapping,
24
23
  V1_MAPPING_ELEMENT_PROTOCOL_TYPE,
@@ -95,12 +94,12 @@ export class V1_QueryBuilder_PureGraphManagerExtension extends QueryBuilder_Pure
95
94
  const mapping = mappings.find((e) => e.path === element.path);
96
95
  if (mapping) {
97
96
  mapping.includes = element.includedMappings.map(
98
- (i) =>
97
+ (mappingInclude) =>
99
98
  new MappingInclude(
100
99
  mapping,
101
100
  context.resolveMapping(
102
101
  guaranteeNonEmptyString(
103
- V1_getIncludedMappingPath(i),
102
+ mappingInclude.includedMapping,
104
103
  `Mapping include path is missing or empty`,
105
104
  ),
106
105
  ),
@@ -201,7 +200,7 @@ export class V1_QueryBuilder_PureGraphManagerExtension extends QueryBuilder_Pure
201
200
  mapping,
202
201
  context.resolveMapping(
203
202
  guaranteeNonEmptyString(
204
- V1_getIncludedMappingPath(include),
203
+ include.includedMapping,
205
204
  `Mapping include path is missing or empty`,
206
205
  ),
207
206
  ),
@@ -47,10 +47,10 @@ import {
47
47
  V1_Lambda,
48
48
  V1_ValueSpecificationBuilder,
49
49
  AbstractPropertyExpression,
50
- TYPICAL_MULTIPLICITY_TYPE,
51
50
  VariableExpression,
52
51
  CORE_PURE_PATH,
53
- PRIMITIVE_TYPE,
52
+ Multiplicity,
53
+ PrimitiveType,
54
54
  } from '@finos/legend-graph';
55
55
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../QueryBuilderSupportedFunctions.js';
56
56
 
@@ -168,7 +168,10 @@ const buildAggregationExpression = (
168
168
  ),
169
169
  ) ??
170
170
  new INTERNAL__UnknownValueSpecification(
171
- V1_serializeValueSpecification(columnLambda),
171
+ V1_serializeValueSpecification(
172
+ columnLambda,
173
+ compileContext.extensions.plugins,
174
+ ),
172
175
  );
173
176
 
174
177
  // aggregate lambda
@@ -249,9 +252,7 @@ export const V1_buildExistsFunctionExpression = (
249
252
  if (variable.name && !variable.class) {
250
253
  const variableExpression = new VariableExpression(
251
254
  variable.name,
252
- compileContext.graph.getTypicalMultiplicity(
253
- TYPICAL_MULTIPLICITY_TYPE.ONE,
254
- ),
255
+ Multiplicity.ONE,
255
256
  );
256
257
  variableExpression.genericType = precedingExpression.genericType;
257
258
  processingContext.addInferredVariables(
@@ -408,7 +409,10 @@ export const V1_buildProjectFunctionExpression = (
408
409
  );
409
410
  } catch {
410
411
  return new INTERNAL__UnknownValueSpecification(
411
- V1_serializeValueSpecification(value),
412
+ V1_serializeValueSpecification(
413
+ value,
414
+ compileContext.extensions.plugins,
415
+ ),
412
416
  );
413
417
  }
414
418
  });
@@ -528,7 +532,10 @@ export const V1_buildGroupByFunctionExpression = (
528
532
  );
529
533
  } catch {
530
534
  return new INTERNAL__UnknownValueSpecification(
531
- V1_serializeValueSpecification(value),
535
+ V1_serializeValueSpecification(
536
+ value,
537
+ compileContext.extensions.plugins,
538
+ ),
532
539
  );
533
540
  }
534
541
  });
@@ -630,9 +637,8 @@ export const V1_buildWatermarkFunctionExpression = (
630
637
  const watermarkValueParamType =
631
638
  watermarkValueParam.genericType?.value.rawType;
632
639
  assertTrue(
633
- compileContext.graph.getPrimitiveType(PRIMITIVE_TYPE.STRING) ===
634
- watermarkValueParamType,
635
- "Can't build forWatermark() expression: watermark parameter is expected to be of type string.",
640
+ PrimitiveType.STRING === watermarkValueParamType,
641
+ "Can't build forWatermark() expression: parameter is expected to be a string",
636
642
  );
637
643
 
638
644
  const expression = V1_buildBaseSimpleFunctionExpression(
@@ -646,7 +652,7 @@ export const V1_buildWatermarkFunctionExpression = (
646
652
  return [expression, processedParams];
647
653
  };
648
654
 
649
- export const V1_buildOlapGroupByFunctionExpression = (
655
+ export const V1_buildOLAPGroupByFunctionExpression = (
650
656
  functionName: string,
651
657
  parameters: V1_ValueSpecification[],
652
658
  openVariables: string[],
@@ -22,10 +22,10 @@ import {
22
22
  getMilestoneTemporalStereotype,
23
23
  MILESTONING_STEREOTYPE,
24
24
  observe_ValueSpecification,
25
- PRIMITIVE_TYPE,
26
- TYPICAL_MULTIPLICITY_TYPE,
27
25
  VariableExpression,
28
26
  type ValueSpecification,
27
+ Multiplicity,
28
+ PrimitiveType,
29
29
  } from '@finos/legend-graph';
30
30
  import { type Hashable, hashArray } from '@finos/legend-shared';
31
31
  import { action, computed, makeObservable, observable } from 'mobx';
@@ -138,16 +138,8 @@ export class QueryBuilderMilestoningState implements Hashable {
138
138
  buildMilestoningParameter(parameterName: string): ValueSpecification {
139
139
  const milestoningParameter = new VariableExpression(
140
140
  parameterName,
141
- this.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
142
- TYPICAL_MULTIPLICITY_TYPE.ONE,
143
- ),
144
- GenericTypeExplicitReference.create(
145
- new GenericType(
146
- this.queryBuilderState.parametersState.queryBuilderState.graphManagerState.graph.getPrimitiveType(
147
- PRIMITIVE_TYPE.DATE,
148
- ),
149
- ),
150
- ),
141
+ Multiplicity.ONE,
142
+ GenericTypeExplicitReference.create(new GenericType(PrimitiveType.DATE)),
151
143
  );
152
144
  if (
153
145
  !this.queryBuilderState.parametersState.parameterStates.find(
@@ -31,8 +31,6 @@ import {
31
31
  type Enum,
32
32
  type ValueSpecification,
33
33
  type PureModel,
34
- TYPICAL_MULTIPLICITY_TYPE,
35
- CollectionInstanceValue,
36
34
  AbstractPropertyExpression,
37
35
  DerivedProperty,
38
36
  Enumeration,
@@ -56,8 +54,12 @@ import {
56
54
  Association,
57
55
  getGeneratedMilestonedPropertiesForAssociation,
58
56
  PropertyExplicitReference,
57
+ PrimitiveType,
59
58
  } from '@finos/legend-graph';
60
- import { generateDefaultValueForPrimitiveType } from './QueryBuilderValueSpecificationHelper.js';
59
+ import {
60
+ createNullishValue,
61
+ generateDefaultValueForPrimitiveType,
62
+ } from './QueryBuilderValueSpecificationHelper.js';
61
63
  import type { QueryBuilderState } from './QueryBuilderState.js';
62
64
  import type { QueryBuilderMilestoningState } from './QueryBuilderMilestoningState.js';
63
65
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graphManager/QueryBuilderSupportedFunctions.js';
@@ -369,42 +371,29 @@ export const getPropertyPath = (
369
371
  return propertyNameChain.join('.');
370
372
  };
371
373
 
374
+ /**
375
+ * TODO: this currently ignores the multiplicity of the parameters
376
+ * we should check for the multiplicity and adaptively produce
377
+ * either simple primitive/enum instance value or collection
378
+ */
372
379
  export const generateValueSpecificationForParameter = (
373
380
  parameter: VariableExpression,
374
381
  graph: PureModel,
375
382
  ): ValueSpecification => {
376
383
  if (parameter.genericType) {
377
384
  const type = parameter.genericType.value.rawType;
378
- if (
379
- (
380
- [
381
- PRIMITIVE_TYPE.STRING,
382
- PRIMITIVE_TYPE.BOOLEAN,
383
- PRIMITIVE_TYPE.NUMBER,
384
- PRIMITIVE_TYPE.FLOAT,
385
- PRIMITIVE_TYPE.DECIMAL,
386
- PRIMITIVE_TYPE.INTEGER,
387
- PRIMITIVE_TYPE.DATE,
388
- PRIMITIVE_TYPE.STRICTDATE,
389
- PRIMITIVE_TYPE.DATETIME,
390
- PRIMITIVE_TYPE.LATESTDATE,
391
- ] as string[]
392
- ).includes(type.name)
393
- ) {
385
+ if (type instanceof PrimitiveType) {
394
386
  const primitiveInstanceValue = new PrimitiveInstanceValue(
395
387
  GenericTypeExplicitReference.create(
396
388
  new GenericType(
397
389
  // NOTE: since the default generated value for type Date is a StrictDate
398
390
  // we need to adjust the generic type accordingly
399
391
  // See https://github.com/finos/legend-studio/issues/1391
400
- type.name === PRIMITIVE_TYPE.DATE
401
- ? graph.getType(PRIMITIVE_TYPE.STRICTDATE)
402
- : type,
392
+ type === PrimitiveType.DATE ? PrimitiveType.STRICTDATE : type,
403
393
  ),
404
394
  ),
405
- parameter.multiplicity,
406
395
  );
407
- if (type.name !== PRIMITIVE_TYPE.LATESTDATE) {
396
+ if (type !== PrimitiveType.LATESTDATE) {
408
397
  instanceValue_setValues(primitiveInstanceValue, [
409
398
  generateDefaultValueForPrimitiveType(type.name as PRIMITIVE_TYPE),
410
399
  ]);
@@ -413,7 +402,6 @@ export const generateValueSpecificationForParameter = (
413
402
  } else if (type instanceof Enumeration) {
414
403
  const enumValueInstanceValue = new EnumValueInstanceValue(
415
404
  GenericTypeExplicitReference.create(new GenericType(type)),
416
- parameter.multiplicity,
417
405
  );
418
406
  if (type.values.length) {
419
407
  const enumValueRef = EnumValueExplicitReference.create(
@@ -426,9 +414,7 @@ export const generateValueSpecificationForParameter = (
426
414
  }
427
415
  // for arguments of types we don't support, we will fill them with `[]`
428
416
  // which in Pure is equivalent to `null` in other languages
429
- return new CollectionInstanceValue(
430
- graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ZERO),
431
- );
417
+ return createNullishValue(graph);
432
418
  };
433
419
 
434
420
  const fillDerivedPropertyParameterValues = (
@@ -529,8 +515,7 @@ export class QueryBuilderDerivedPropertyExpressionState {
529
515
  // required and no values provided. LatestDate doesn't have any values so we skip that check for it.
530
516
  if (
531
517
  isRequired &&
532
- paramValue.genericType?.value.rawType.name !==
533
- PRIMITIVE_TYPE.LATESTDATE &&
518
+ paramValue.genericType?.value.rawType !== PrimitiveType.LATESTDATE &&
534
519
  !paramValue.values.length
535
520
  ) {
536
521
  return false;