@finos/legend-query-builder 4.14.12 → 4.14.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +1 -0
  2. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
  3. package/lib/components/QueryBuilderPropertyExpressionEditor.js +9 -8
  4. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
  5. package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts.map +1 -1
  6. package/lib/components/explorer/QueryBuilderPropertySearchPanel.js +1 -5
  7. package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +1 -1
  8. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  9. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +14 -11
  10. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  11. package/lib/index.css +2 -2
  12. package/lib/index.css.map +1 -1
  13. package/lib/package.json +1 -1
  14. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.d.ts +10 -7
  15. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.d.ts.map +1 -1
  16. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.js +41 -4
  17. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.js.map +1 -1
  18. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionLoader.d.ts +1 -1
  19. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionLoader.d.ts.map +1 -1
  20. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionLoader.js +37 -62
  21. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionLoader.js.map +1 -1
  22. package/lib/stores/fetch-structure/tds/aggregation/{calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.d.ts → QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.d.ts} +3 -3
  23. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.d.ts.map +1 -0
  24. package/lib/stores/fetch-structure/tds/aggregation/{calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js → QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js} +3 -3
  25. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js.map +1 -0
  26. package/package.json +5 -5
  27. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +17 -20
  28. package/src/components/explorer/QueryBuilderPropertySearchPanel.tsx +0 -4
  29. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +64 -32
  30. package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.ts +70 -19
  31. package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionLoader.ts +166 -63
  32. package/src/stores/fetch-structure/tds/aggregation/{calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.ts → QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.ts} +4 -4
  33. package/tsconfig.json +1 -32
  34. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.d.ts.map +0 -1
  35. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js.map +0 -1
  36. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.d.ts +0 -28
  37. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.d.ts.map +0 -1
  38. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.js +0 -55
  39. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.js.map +0 -1
  40. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.d.ts +0 -28
  41. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.d.ts.map +0 -1
  42. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.js +0 -55
  43. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.js.map +0 -1
  44. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.d.ts +0 -28
  45. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.d.ts.map +0 -1
  46. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.js +0 -55
  47. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.js.map +0 -1
  48. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.d.ts +0 -28
  49. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.d.ts.map +0 -1
  50. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.js +0 -55
  51. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.js.map +0 -1
  52. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.d.ts +0 -28
  53. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.d.ts.map +0 -1
  54. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.js +0 -55
  55. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.js.map +0 -1
  56. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.d.ts +0 -28
  57. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.d.ts.map +0 -1
  58. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.js +0 -55
  59. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.js.map +0 -1
  60. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Mtd.d.ts +0 -28
  61. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Mtd.d.ts.map +0 -1
  62. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Mtd.js +0 -55
  63. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Mtd.js.map +0 -1
  64. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wa.d.ts +0 -28
  65. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wa.d.ts.map +0 -1
  66. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wa.js +0 -55
  67. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wa.js.map +0 -1
  68. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wtd.d.ts +0 -28
  69. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wtd.d.ts.map +0 -1
  70. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wtd.js +0 -55
  71. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wtd.js.map +0 -1
  72. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wa.d.ts +0 -28
  73. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wa.d.ts.map +0 -1
  74. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wa.js +0 -55
  75. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wa.js.map +0 -1
  76. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wtd.d.ts +0 -28
  77. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wtd.d.ts.map +0 -1
  78. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wtd.js +0 -55
  79. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wtd.js.map +0 -1
  80. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wa.d.ts +0 -28
  81. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wa.d.ts.map +0 -1
  82. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wa.js +0 -55
  83. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wa.js.map +0 -1
  84. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wtd.d.ts +0 -28
  85. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wtd.d.ts.map +0 -1
  86. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wtd.js +0 -55
  87. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wtd.js.map +0 -1
  88. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pma.d.ts +0 -28
  89. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pma.d.ts.map +0 -1
  90. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pma.js +0 -55
  91. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pma.js.map +0 -1
  92. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pmtd.d.ts +0 -28
  93. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pmtd.d.ts.map +0 -1
  94. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pmtd.js +0 -55
  95. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pmtd.js.map +0 -1
  96. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pqtd.d.ts +0 -28
  97. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pqtd.d.ts.map +0 -1
  98. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pqtd.js +0 -55
  99. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pqtd.js.map +0 -1
  100. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorDay.d.ts +0 -28
  101. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorDay.d.ts.map +0 -1
  102. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorDay.js +0 -55
  103. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorDay.js.map +0 -1
  104. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorYear.d.ts +0 -28
  105. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorYear.d.ts.map +0 -1
  106. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorYear.js +0 -55
  107. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorYear.js.map +0 -1
  108. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw.d.ts +0 -28
  109. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw.d.ts.map +0 -1
  110. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw.js +0 -55
  111. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw.js.map +0 -1
  112. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw_Fm.d.ts +0 -28
  113. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw_Fm.d.ts.map +0 -1
  114. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw_Fm.js +0 -55
  115. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw_Fm.js.map +0 -1
  116. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwa.d.ts +0 -28
  117. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwa.d.ts.map +0 -1
  118. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwa.js +0 -55
  119. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwa.js.map +0 -1
  120. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwtd.d.ts +0 -28
  121. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwtd.d.ts.map +0 -1
  122. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwtd.js +0 -55
  123. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwtd.js.map +0 -1
  124. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pymtd.d.ts +0 -28
  125. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pymtd.d.ts.map +0 -1
  126. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pymtd.js +0 -55
  127. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pymtd.js.map +0 -1
  128. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pyqtd.d.ts +0 -28
  129. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pyqtd.d.ts.map +0 -1
  130. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pyqtd.js +0 -55
  131. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pyqtd.js.map +0 -1
  132. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pytd.d.ts +0 -28
  133. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pytd.d.ts.map +0 -1
  134. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pytd.js +0 -55
  135. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pytd.js.map +0 -1
  136. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywa.d.ts +0 -28
  137. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywa.d.ts.map +0 -1
  138. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywa.js +0 -55
  139. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywa.js.map +0 -1
  140. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywtd.d.ts +0 -28
  141. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywtd.d.ts.map +0 -1
  142. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywtd.js +0 -55
  143. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywtd.js.map +0 -1
  144. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Qtd.d.ts +0 -28
  145. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Qtd.d.ts.map +0 -1
  146. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Qtd.js +0 -55
  147. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Qtd.js.map +0 -1
  148. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_ReportEndDay.d.ts +0 -28
  149. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_ReportEndDay.d.ts.map +0 -1
  150. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_ReportEndDay.js +0 -55
  151. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_ReportEndDay.js.map +0 -1
  152. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Wtd.d.ts +0 -28
  153. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Wtd.d.ts.map +0 -1
  154. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Wtd.js +0 -55
  155. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Wtd.js.map +0 -1
  156. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.d.ts +0 -28
  157. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.d.ts.map +0 -1
  158. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.js +0 -55
  159. package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.js.map +0 -1
  160. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.ts +0 -99
  161. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.ts +0 -99
  162. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.ts +0 -99
  163. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.ts +0 -100
  164. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.ts +0 -99
  165. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.ts +0 -99
  166. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Mtd.ts +0 -99
  167. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wa.ts +0 -99
  168. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wtd.ts +0 -99
  169. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wa.ts +0 -99
  170. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wtd.ts +0 -99
  171. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wa.ts +0 -99
  172. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wtd.ts +0 -99
  173. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pma.ts +0 -99
  174. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pmtd.ts +0 -99
  175. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pqtd.ts +0 -99
  176. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorDay.ts +0 -99
  177. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorYear.ts +0 -99
  178. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw.ts +0 -99
  179. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw_Fm.ts +0 -99
  180. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwa.ts +0 -99
  181. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwtd.ts +0 -99
  182. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pymtd.ts +0 -99
  183. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pyqtd.ts +0 -99
  184. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pytd.ts +0 -99
  185. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywa.ts +0 -99
  186. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywtd.ts +0 -99
  187. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Qtd.ts +0 -99
  188. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_ReportEndDay.ts +0 -99
  189. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Wtd.ts +0 -99
  190. package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.ts +0 -99
@@ -1,55 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { PRIMITIVE_TYPE, } from '@finos/legend-graph';
17
- import { QueryBuilderSimpleProjectionColumnState, } from '../../projection/QueryBuilderProjectionColumnState.js';
18
- import { QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
19
- import { hashArray } from '@finos/legend-shared';
20
- import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
21
- import { QueryBuilderAggregateCalendarFunction } from '../QueryBuilderAggregateCalendarFunction.js';
22
- import { updateAggregateColumnState, buildCalendarFunctionExpression, } from './QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js';
23
- export class QueryBuilderAggregateCalendarFunction_Ytd extends QueryBuilderAggregateCalendarFunction {
24
- getLabel() {
25
- return 'Year to Date';
26
- }
27
- isCompatibleWithColumn(projectionColumnState) {
28
- if (projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState) {
29
- const propertyType = projectionColumnState.propertyExpressionState.propertyExpression.func
30
- .value.genericType.value.rawType;
31
- return [
32
- PRIMITIVE_TYPE.NUMBER,
33
- PRIMITIVE_TYPE.INTEGER,
34
- PRIMITIVE_TYPE.DECIMAL,
35
- PRIMITIVE_TYPE.FLOAT,
36
- ].includes(propertyType.path);
37
- }
38
- return true;
39
- }
40
- buildCalendarFunctionExpression(p) {
41
- return buildCalendarFunctionExpression(QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_YTD, this.dateColumn, this.calendarType, this.endDate, p);
42
- }
43
- updateAggregateColumnState(expression, aggregationColumnState) {
44
- updateAggregateColumnState(expression, QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_YTD, this, aggregationColumnState);
45
- }
46
- get hashCode() {
47
- return hashArray([
48
- QUERY_BUILDER_STATE_HASH_STRUCTURE.AGGREGATE_CALENDAR_FUNCTION_YTD,
49
- this.dateColumn ?? '',
50
- this.calendarType,
51
- this.endDate,
52
- ]);
53
- }
54
- }
55
- //# sourceMappingURL=QueryBuilderAggregateCalendarFunction_Ytd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryBuilderAggregateCalendarFunction_Ytd.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,cAAc,GAKf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAEL,uCAAuC,GACxC,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAE,sDAAsD,EAAE,MAAM,oDAAoD,CAAC;AAC5H,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAC/F,OAAO,EAAE,qCAAqC,EAAE,MAAM,6CAA6C,CAAC;AACpG,OAAO,EACL,0BAA0B,EAC1B,+BAA+B,GAChC,MAAM,qEAAqE,CAAC;AAE7E,MAAM,OAAO,yCACX,SAAQ,qCAAqC;IAG7C,QAAQ;QACN,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,sBAAsB,CACpB,qBAAwD;QAExD,IACE,qBAAqB,YAAY,uCAAuC,EACxE;YACA,MAAM,YAAY,GAChB,qBAAqB,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,IAAI;iBAClE,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC;YACrC,OACE;gBACE,cAAc,CAAC,MAAM;gBACrB,cAAc,CAAC,OAAO;gBACtB,cAAc,CAAC,OAAO;gBACtB,cAAc,CAAC,KAAK;aAEvB,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;SAC/B;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,+BAA+B,CAC7B,CAAmE;QAEnE,OAAO,+BAA+B,CACpC,sDAAsD,CAAC,YAAY,EACnE,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,OAAO,EACZ,CAAC,CACF,CAAC;IACJ,CAAC;IAED,0BAA0B,CACxB,UAAoC,EACpC,sBAAwD;QAExD,0BAA0B,CACxB,UAAU,EACV,sDAAsD,CAAC,YAAY,EACnE,IAAI,EACJ,sBAAsB,CACvB,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,+BAA+B;YAClE,IAAI,CAAC,UAAU,IAAI,EAAE;YACrB,IAAI,CAAC,YAAY;YACjB,IAAI,CAAC,OAAO;SACb,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,99 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import {
18
- PRIMITIVE_TYPE,
19
- type ValueSpecification,
20
- type SimpleFunctionExpression,
21
- type AbstractPropertyExpression,
22
- type INTERNAL__UnknownValueSpecification,
23
- } from '@finos/legend-graph';
24
- import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
25
- import {
26
- type QueryBuilderProjectionColumnState,
27
- QueryBuilderSimpleProjectionColumnState,
28
- } from '../../projection/QueryBuilderProjectionColumnState.js';
29
- import { QueryBuilderAggregateCalendarFunction } from '../QueryBuilderAggregateCalendarFunction.js';
30
- import {
31
- updateAggregateColumnState,
32
- buildCalendarFunctionExpression,
33
- } from './QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js';
34
- import { QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
35
- import { hashArray, type Hashable } from '@finos/legend-shared';
36
- import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
37
-
38
- export class QueryBuilderAggregateCalendarFunction_Annualized
39
- extends QueryBuilderAggregateCalendarFunction
40
- implements Hashable
41
- {
42
- getLabel(): string {
43
- return 'Annualized';
44
- }
45
-
46
- isCompatibleWithColumn(
47
- projectionColumnState: QueryBuilderProjectionColumnState,
48
- ): boolean {
49
- if (
50
- projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState
51
- ) {
52
- const propertyType =
53
- projectionColumnState.propertyExpressionState.propertyExpression.func
54
- .value.genericType.value.rawType;
55
- return (
56
- [
57
- PRIMITIVE_TYPE.NUMBER,
58
- PRIMITIVE_TYPE.INTEGER,
59
- PRIMITIVE_TYPE.DECIMAL,
60
- PRIMITIVE_TYPE.FLOAT,
61
- ] as string[]
62
- ).includes(propertyType.path);
63
- }
64
- return true;
65
- }
66
-
67
- buildCalendarFunctionExpression(
68
- p: AbstractPropertyExpression | INTERNAL__UnknownValueSpecification,
69
- ): ValueSpecification {
70
- return buildCalendarFunctionExpression(
71
- QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_ANNUALIZED,
72
- this.dateColumn,
73
- this.calendarType,
74
- this.endDate,
75
- p,
76
- );
77
- }
78
-
79
- updateAggregateColumnState(
80
- expression: SimpleFunctionExpression,
81
- aggregationColumnState: QueryBuilderAggregateColumnState,
82
- ): void {
83
- updateAggregateColumnState(
84
- expression,
85
- QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_ANNUALIZED,
86
- this,
87
- aggregationColumnState,
88
- );
89
- }
90
-
91
- get hashCode(): string {
92
- return hashArray([
93
- QUERY_BUILDER_STATE_HASH_STRUCTURE.AGGREGATE_CALENDAR_FUNCTION_ANNUALIZED,
94
- this.dateColumn ?? '',
95
- this.calendarType,
96
- this.endDate,
97
- ]);
98
- }
99
- }
@@ -1,99 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import {
18
- PRIMITIVE_TYPE,
19
- type ValueSpecification,
20
- type SimpleFunctionExpression,
21
- type AbstractPropertyExpression,
22
- type INTERNAL__UnknownValueSpecification,
23
- } from '@finos/legend-graph';
24
- import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
25
- import {
26
- type QueryBuilderProjectionColumnState,
27
- QueryBuilderSimpleProjectionColumnState,
28
- } from '../../projection/QueryBuilderProjectionColumnState.js';
29
- import { QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
30
- import { hashArray, type Hashable } from '@finos/legend-shared';
31
- import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
32
- import { QueryBuilderAggregateCalendarFunction } from '../QueryBuilderAggregateCalendarFunction.js';
33
- import {
34
- updateAggregateColumnState,
35
- buildCalendarFunctionExpression,
36
- } from './QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js';
37
-
38
- export class QueryBuilderAggregateCalendarFunction_Cme
39
- extends QueryBuilderAggregateCalendarFunction
40
- implements Hashable
41
- {
42
- getLabel(): string {
43
- return `Current Month Estimate`;
44
- }
45
-
46
- isCompatibleWithColumn(
47
- projectionColumnState: QueryBuilderProjectionColumnState,
48
- ): boolean {
49
- if (
50
- projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState
51
- ) {
52
- const propertyType =
53
- projectionColumnState.propertyExpressionState.propertyExpression.func
54
- .value.genericType.value.rawType;
55
- return (
56
- [
57
- PRIMITIVE_TYPE.NUMBER,
58
- PRIMITIVE_TYPE.INTEGER,
59
- PRIMITIVE_TYPE.DECIMAL,
60
- PRIMITIVE_TYPE.FLOAT,
61
- ] as string[]
62
- ).includes(propertyType.path);
63
- }
64
- return true;
65
- }
66
-
67
- buildCalendarFunctionExpression(
68
- p: AbstractPropertyExpression | INTERNAL__UnknownValueSpecification,
69
- ): ValueSpecification {
70
- return buildCalendarFunctionExpression(
71
- QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_CME,
72
- this.dateColumn,
73
- this.calendarType,
74
- this.endDate,
75
- p,
76
- );
77
- }
78
-
79
- updateAggregateColumnState(
80
- expression: SimpleFunctionExpression,
81
- aggregationColumnState: QueryBuilderAggregateColumnState,
82
- ): void {
83
- updateAggregateColumnState(
84
- expression,
85
- QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_CME,
86
- this,
87
- aggregationColumnState,
88
- );
89
- }
90
-
91
- get hashCode(): string {
92
- return hashArray([
93
- QUERY_BUILDER_STATE_HASH_STRUCTURE.AGGREGATE_CALENDAR_FUNCTION_CME,
94
- this.dateColumn ?? '',
95
- this.calendarType,
96
- this.endDate,
97
- ]);
98
- }
99
- }
@@ -1,99 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import {
18
- PRIMITIVE_TYPE,
19
- type ValueSpecification,
20
- type SimpleFunctionExpression,
21
- type AbstractPropertyExpression,
22
- type INTERNAL__UnknownValueSpecification,
23
- } from '@finos/legend-graph';
24
- import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
25
- import {
26
- type QueryBuilderProjectionColumnState,
27
- QueryBuilderSimpleProjectionColumnState,
28
- } from '../../projection/QueryBuilderProjectionColumnState.js';
29
- import { QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
30
- import { hashArray, type Hashable } from '@finos/legend-shared';
31
- import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
32
- import { QueryBuilderAggregateCalendarFunction } from '../QueryBuilderAggregateCalendarFunction.js';
33
- import {
34
- updateAggregateColumnState,
35
- buildCalendarFunctionExpression,
36
- } from './QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js';
37
-
38
- export class QueryBuilderAggregateCalendarFunction_Cw
39
- extends QueryBuilderAggregateCalendarFunction
40
- implements Hashable
41
- {
42
- getLabel(): string {
43
- return `Current Week`;
44
- }
45
-
46
- isCompatibleWithColumn(
47
- projectionColumnState: QueryBuilderProjectionColumnState,
48
- ): boolean {
49
- if (
50
- projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState
51
- ) {
52
- const propertyType =
53
- projectionColumnState.propertyExpressionState.propertyExpression.func
54
- .value.genericType.value.rawType;
55
- return (
56
- [
57
- PRIMITIVE_TYPE.NUMBER,
58
- PRIMITIVE_TYPE.INTEGER,
59
- PRIMITIVE_TYPE.DECIMAL,
60
- PRIMITIVE_TYPE.FLOAT,
61
- ] as string[]
62
- ).includes(propertyType.path);
63
- }
64
- return true;
65
- }
66
-
67
- buildCalendarFunctionExpression(
68
- p: AbstractPropertyExpression | INTERNAL__UnknownValueSpecification,
69
- ): ValueSpecification {
70
- return buildCalendarFunctionExpression(
71
- QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_CW,
72
- this.dateColumn,
73
- this.calendarType,
74
- this.endDate,
75
- p,
76
- );
77
- }
78
-
79
- updateAggregateColumnState(
80
- expression: SimpleFunctionExpression,
81
- aggregationColumnState: QueryBuilderAggregateColumnState,
82
- ): void {
83
- updateAggregateColumnState(
84
- expression,
85
- QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_CW,
86
- this,
87
- aggregationColumnState,
88
- );
89
- }
90
-
91
- get hashCode(): string {
92
- return hashArray([
93
- QUERY_BUILDER_STATE_HASH_STRUCTURE.AGGREGATE_CALENDAR_FUNCTION_CW,
94
- this.dateColumn ?? '',
95
- this.calendarType,
96
- this.endDate,
97
- ]);
98
- }
99
- }
@@ -1,100 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import {
18
- PRIMITIVE_TYPE,
19
- type ValueSpecification,
20
- type SimpleFunctionExpression,
21
- type AbstractPropertyExpression,
22
- type INTERNAL__UnknownValueSpecification,
23
- } from '@finos/legend-graph';
24
- import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
25
- import {
26
- type QueryBuilderProjectionColumnState,
27
- QueryBuilderSimpleProjectionColumnState,
28
- } from '../../projection/QueryBuilderProjectionColumnState.js';
29
- import { QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
30
- import { hashArray, type Hashable } from '@finos/legend-shared';
31
- import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
32
-
33
- import { QueryBuilderAggregateCalendarFunction } from '../QueryBuilderAggregateCalendarFunction.js';
34
- import {
35
- updateAggregateColumnState,
36
- buildCalendarFunctionExpression,
37
- } from './QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js';
38
-
39
- export class QueryBuilderAggregateCalendarFunction_Cw_Fm
40
- extends QueryBuilderAggregateCalendarFunction
41
- implements Hashable
42
- {
43
- getLabel(): string {
44
- return `Current Month Estimate`;
45
- }
46
-
47
- isCompatibleWithColumn(
48
- projectionColumnState: QueryBuilderProjectionColumnState,
49
- ): boolean {
50
- if (
51
- projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState
52
- ) {
53
- const propertyType =
54
- projectionColumnState.propertyExpressionState.propertyExpression.func
55
- .value.genericType.value.rawType;
56
- return (
57
- [
58
- PRIMITIVE_TYPE.NUMBER,
59
- PRIMITIVE_TYPE.INTEGER,
60
- PRIMITIVE_TYPE.DECIMAL,
61
- PRIMITIVE_TYPE.FLOAT,
62
- ] as string[]
63
- ).includes(propertyType.path);
64
- }
65
- return true;
66
- }
67
-
68
- buildCalendarFunctionExpression(
69
- p: AbstractPropertyExpression | INTERNAL__UnknownValueSpecification,
70
- ): ValueSpecification {
71
- return buildCalendarFunctionExpression(
72
- QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_CW_FM,
73
- this.dateColumn,
74
- this.calendarType,
75
- this.endDate,
76
- p,
77
- );
78
- }
79
-
80
- updateAggregateColumnState(
81
- expression: SimpleFunctionExpression,
82
- aggregationColumnState: QueryBuilderAggregateColumnState,
83
- ): void {
84
- updateAggregateColumnState(
85
- expression,
86
- QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_CW_FM,
87
- this,
88
- aggregationColumnState,
89
- );
90
- }
91
-
92
- get hashCode(): string {
93
- return hashArray([
94
- QUERY_BUILDER_STATE_HASH_STRUCTURE.AGGREGATE_CALENDAR_FUNCTION_CW_FM,
95
- this.dateColumn ?? '',
96
- this.calendarType,
97
- this.endDate,
98
- ]);
99
- }
100
- }
@@ -1,99 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import {
18
- PRIMITIVE_TYPE,
19
- type ValueSpecification,
20
- type SimpleFunctionExpression,
21
- type AbstractPropertyExpression,
22
- type INTERNAL__UnknownValueSpecification,
23
- } from '@finos/legend-graph';
24
- import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
25
- import {
26
- type QueryBuilderProjectionColumnState,
27
- QueryBuilderSimpleProjectionColumnState,
28
- } from '../../projection/QueryBuilderProjectionColumnState.js';
29
- import { QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
30
- import { hashArray, type Hashable } from '@finos/legend-shared';
31
- import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
32
- import { QueryBuilderAggregateCalendarFunction } from '../QueryBuilderAggregateCalendarFunction.js';
33
- import {
34
- buildCalendarFunctionExpression,
35
- updateAggregateColumnState,
36
- } from './QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js';
37
-
38
- export class QueryBuilderAggregateCalendarFunction_Cy_Minus2
39
- extends QueryBuilderAggregateCalendarFunction
40
- implements Hashable
41
- {
42
- getLabel(): string {
43
- return `Current year minus 2`;
44
- }
45
-
46
- isCompatibleWithColumn(
47
- projectionColumnState: QueryBuilderProjectionColumnState,
48
- ): boolean {
49
- if (
50
- projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState
51
- ) {
52
- const propertyType =
53
- projectionColumnState.propertyExpressionState.propertyExpression.func
54
- .value.genericType.value.rawType;
55
- return (
56
- [
57
- PRIMITIVE_TYPE.NUMBER,
58
- PRIMITIVE_TYPE.INTEGER,
59
- PRIMITIVE_TYPE.DECIMAL,
60
- PRIMITIVE_TYPE.FLOAT,
61
- ] as string[]
62
- ).includes(propertyType.path);
63
- }
64
- return true;
65
- }
66
-
67
- buildCalendarFunctionExpression(
68
- p: AbstractPropertyExpression | INTERNAL__UnknownValueSpecification,
69
- ): ValueSpecification {
70
- return buildCalendarFunctionExpression(
71
- QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_CY_MINUS2,
72
- this.dateColumn,
73
- this.calendarType,
74
- this.endDate,
75
- p,
76
- );
77
- }
78
-
79
- updateAggregateColumnState(
80
- expression: SimpleFunctionExpression,
81
- aggregationColumnState: QueryBuilderAggregateColumnState,
82
- ): void {
83
- updateAggregateColumnState(
84
- expression,
85
- QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_CY_MINUS2,
86
- this,
87
- aggregationColumnState,
88
- );
89
- }
90
-
91
- get hashCode(): string {
92
- return hashArray([
93
- QUERY_BUILDER_STATE_HASH_STRUCTURE.AGGREGATE_CALENDAR_FUNCTION_CY_MINUS2,
94
- this.dateColumn ?? '',
95
- this.calendarType,
96
- this.endDate,
97
- ]);
98
- }
99
- }
@@ -1,99 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import {
18
- PRIMITIVE_TYPE,
19
- type ValueSpecification,
20
- type SimpleFunctionExpression,
21
- type AbstractPropertyExpression,
22
- type INTERNAL__UnknownValueSpecification,
23
- } from '@finos/legend-graph';
24
- import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
25
- import {
26
- type QueryBuilderProjectionColumnState,
27
- QueryBuilderSimpleProjectionColumnState,
28
- } from '../../projection/QueryBuilderProjectionColumnState.js';
29
- import { QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
30
- import { hashArray, type Hashable } from '@finos/legend-shared';
31
- import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
32
- import { QueryBuilderAggregateCalendarFunction } from '../QueryBuilderAggregateCalendarFunction.js';
33
- import {
34
- buildCalendarFunctionExpression,
35
- updateAggregateColumnState,
36
- } from './QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js';
37
-
38
- export class QueryBuilderAggregateCalendarFunction_Cy_Minus3
39
- extends QueryBuilderAggregateCalendarFunction
40
- implements Hashable
41
- {
42
- getLabel(): string {
43
- return `Current year minus 3`;
44
- }
45
-
46
- isCompatibleWithColumn(
47
- projectionColumnState: QueryBuilderProjectionColumnState,
48
- ): boolean {
49
- if (
50
- projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState
51
- ) {
52
- const propertyType =
53
- projectionColumnState.propertyExpressionState.propertyExpression.func
54
- .value.genericType.value.rawType;
55
- return (
56
- [
57
- PRIMITIVE_TYPE.NUMBER,
58
- PRIMITIVE_TYPE.INTEGER,
59
- PRIMITIVE_TYPE.DECIMAL,
60
- PRIMITIVE_TYPE.FLOAT,
61
- ] as string[]
62
- ).includes(propertyType.path);
63
- }
64
- return true;
65
- }
66
-
67
- buildCalendarFunctionExpression(
68
- p: AbstractPropertyExpression | INTERNAL__UnknownValueSpecification,
69
- ): ValueSpecification {
70
- return buildCalendarFunctionExpression(
71
- QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_CY_MINUS3,
72
- this.dateColumn,
73
- this.calendarType,
74
- this.endDate,
75
- p,
76
- );
77
- }
78
-
79
- updateAggregateColumnState(
80
- expression: SimpleFunctionExpression,
81
- aggregationColumnState: QueryBuilderAggregateColumnState,
82
- ): void {
83
- updateAggregateColumnState(
84
- expression,
85
- QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_CY_MINUS3,
86
- this,
87
- aggregationColumnState,
88
- );
89
- }
90
-
91
- get hashCode(): string {
92
- return hashArray([
93
- QUERY_BUILDER_STATE_HASH_STRUCTURE.AGGREGATE_CALENDAR_FUNCTION_CY_MINUS3,
94
- this.dateColumn ?? '',
95
- this.calendarType,
96
- this.endDate,
97
- ]);
98
- }
99
- }