@finos/legend-query-builder 3.0.8 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +51 -4
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts +18 -0
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +152 -15
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/graph/QueryBuilderMetaModelConst.d.ts +33 -0
- package/lib/graph/QueryBuilderMetaModelConst.d.ts.map +1 -1
- package/lib/graph/QueryBuilderMetaModelConst.js +34 -0
- package/lib/graph/QueryBuilderMetaModelConst.js.map +1 -1
- package/lib/graph-manager/QueryBuilderConst.d.ts +20 -0
- package/lib/graph-manager/QueryBuilderConst.d.ts.map +1 -0
- package/lib/graph-manager/QueryBuilderConst.js +21 -0
- package/lib/graph-manager/QueryBuilderConst.js.map +1 -0
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +3 -2
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +27 -14
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderState.d.ts +2 -0
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +7 -0
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.d.ts +1 -1
- package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js +11 -2
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderStateHashUtils.d.ts +32 -1
- package/lib/stores/QueryBuilderStateHashUtils.d.ts.map +1 -1
- package/lib/stores/QueryBuilderStateHashUtils.js +32 -0
- package/lib/stores/QueryBuilderStateHashUtils.js.map +1 -1
- package/lib/stores/QueryBuilderTextEditorState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderTextEditorState.js +12 -6
- package/lib/stores/QueryBuilderTextEditorState.js.map +1 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.d.ts +1 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +1 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.js +2 -2
- package/lib/stores/explorer/QueryBuilderExplorerState.js.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js +1 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +2 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +14 -4
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.d.ts +38 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.js +54 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionLoader.d.ts +18 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionLoader.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionLoader.js +80 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionLoader.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts +8 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js +24 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js +23 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.d.ts +22 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js +61 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Mtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Mtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Mtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Mtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wa.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wa.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wa.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wa.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wa.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wa.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wa.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wa.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wa.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wa.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wa.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wa.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pma.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pma.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pma.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pma.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pmtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pmtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pmtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pmtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pqtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pqtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pqtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pqtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorDay.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorDay.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorDay.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorDay.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorYear.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorYear.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorYear.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorYear.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw_Fm.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw_Fm.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw_Fm.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw_Fm.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwa.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwa.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwa.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwa.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pymtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pymtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pymtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pymtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pyqtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pyqtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pyqtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pyqtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pytd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pytd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pytd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pytd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywa.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywa.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywa.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywa.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Qtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Qtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Qtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Qtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_ReportEndDay.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_ReportEndDay.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_ReportEndDay.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_ReportEndDay.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Wtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Wtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Wtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Wtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +9 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
- package/package.json +5 -5
- package/src/components/QueryBuilder.tsx +79 -0
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +456 -92
- package/src/graph/QueryBuilderMetaModelConst.ts +34 -0
- package/src/graph-manager/QueryBuilderConst.ts +20 -0
- package/src/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +10 -1
- package/src/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +73 -28
- package/src/stores/QueryBuilderState.ts +8 -0
- package/src/stores/QueryBuilderStateBuilder.ts +33 -2
- package/src/stores/QueryBuilderStateHashUtils.ts +33 -0
- package/src/stores/QueryBuilderTextEditorState.ts +21 -14
- package/src/stores/explorer/QueryBuilderExplorerState.ts +2 -1
- package/src/stores/fetch-structure/QueryBuilderFetchStructureState.ts +1 -0
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +22 -3
- package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionLoader.ts +83 -0
- package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.ts +31 -0
- package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.ts +41 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.ts +175 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.ts +99 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Mtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wa.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wa.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wa.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pma.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pmtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pqtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorDay.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorYear.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw_Fm.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwa.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pymtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pyqtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pytd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywa.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Qtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_ReportEndDay.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Wtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.ts +98 -0
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +18 -1
- package/tsconfig.json +35 -0
@@ -0,0 +1,61 @@
|
|
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 { SimpleFunctionExpression, extractElementNameFromPath, matchFunctionName, AbstractPropertyExpression, PrimitiveInstanceValue, GenericType, GenericTypeExplicitReference, PrimitiveType, PRIMITIVE_TYPE, VariableExpression, } from '@finos/legend-graph';
|
17
|
+
import { guaranteeType, assertTrue, UnsupportedOperationError, } from '@finos/legend-shared';
|
18
|
+
import {} from '../QueryBuilderAggregateCalendarFunction.js';
|
19
|
+
import { QUERY_BUILDER_CALENDAR_TYPE } from '../../../../../graph-manager/QueryBuilderConst.js';
|
20
|
+
export const buildCalendarFunctionExpression = (calendarFunctionFullPath, dateColumn, calendarType, endDate, targetColumn) => {
|
21
|
+
const expression = new SimpleFunctionExpression(extractElementNameFromPath(calendarFunctionFullPath));
|
22
|
+
if (dateColumn) {
|
23
|
+
expression.parametersValues.push(dateColumn);
|
24
|
+
}
|
25
|
+
else {
|
26
|
+
throw new UnsupportedOperationError(`Please specify date column for calendar Function for column ${targetColumn.func.value.name}`);
|
27
|
+
}
|
28
|
+
const calendarTypeParameter = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(PrimitiveType.STRING)));
|
29
|
+
calendarTypeParameter.values = [calendarType];
|
30
|
+
expression.parametersValues.push(calendarTypeParameter);
|
31
|
+
expression.parametersValues.push(endDate);
|
32
|
+
expression.parametersValues.push(targetColumn);
|
33
|
+
return expression;
|
34
|
+
};
|
35
|
+
export const updateAggregateColumnState = (expression, calendarFunctionFullPath, calendarFunction, aggregateColumnState) => {
|
36
|
+
if (matchFunctionName(expression.functionName, calendarFunctionFullPath)) {
|
37
|
+
assertTrue(expression.parametersValues.length === 4, `Can't process ${extractElementNameFromPath(calendarFunctionFullPath)}() expression: ${extractElementNameFromPath(calendarFunctionFullPath)}() expects four arguments`);
|
38
|
+
const dateColumn = guaranteeType(expression.parametersValues[0], AbstractPropertyExpression, `Can't process ${extractElementNameFromPath(calendarFunctionFullPath)}() expression: only support ${extractElementNameFromPath(calendarFunctionFullPath)}() with first parameter as property expression`);
|
39
|
+
assertTrue(dateColumn.func.value.genericType.value.rawType.name ===
|
40
|
+
PRIMITIVE_TYPE.STRICTDATE ||
|
41
|
+
dateColumn.func.value.genericType.value.rawType.name ===
|
42
|
+
PRIMITIVE_TYPE.DATE, `Can't process ${extractElementNameFromPath(calendarFunctionFullPath)}() expression: only support ${extractElementNameFromPath(calendarFunctionFullPath)}() with first parameter as property expression of type StrictDate`);
|
43
|
+
const lambdaParameterName = guaranteeType(dateColumn.parametersValues[0], VariableExpression).name;
|
44
|
+
calendarFunction.setLambdaParameterName(lambdaParameterName);
|
45
|
+
const calendarTypeParameter = guaranteeType(expression.parametersValues[1], PrimitiveInstanceValue, `Can't process ${extractElementNameFromPath(calendarFunctionFullPath)}() expression: only support ${extractElementNameFromPath(calendarFunctionFullPath)}() with second parameter as PrimitiveInstancevalue`);
|
46
|
+
assertTrue(Object.values(QUERY_BUILDER_CALENDAR_TYPE).find((val) => val === calendarTypeParameter.values[0]) !== undefined, `Can't process ${extractElementNameFromPath(calendarFunctionFullPath)}() expression: only support ${extractElementNameFromPath(calendarFunctionFullPath)}() calendar types NY and LDN`);
|
47
|
+
const endDate = guaranteeType(expression.parametersValues[2], PrimitiveInstanceValue, `Can't process ${extractElementNameFromPath(calendarFunctionFullPath)}() expression: only support ${extractElementNameFromPath(calendarFunctionFullPath)}() with third parameter as PrimitiveInstancevalue`);
|
48
|
+
assertTrue(endDate.genericType.value.rawType.name === PRIMITIVE_TYPE.STRICTDATE ||
|
49
|
+
dateColumn.func.value.genericType.value.rawType.name ===
|
50
|
+
PRIMITIVE_TYPE.DATE, `Can't process ${extractElementNameFromPath(calendarFunctionFullPath)}() expression: only support ${extractElementNameFromPath(calendarFunctionFullPath)}() with third parameter of type StrictDate`);
|
51
|
+
guaranteeType(expression.parametersValues[3], AbstractPropertyExpression, `Can't process ${extractElementNameFromPath(calendarFunctionFullPath)}() expression: only support ${extractElementNameFromPath(calendarFunctionFullPath)}() fourth parameter as property expression`);
|
52
|
+
calendarFunction.calendarType = calendarTypeParameter
|
53
|
+
.values[0];
|
54
|
+
calendarFunction.endDate = endDate;
|
55
|
+
calendarFunction.dateColumn = dateColumn;
|
56
|
+
assertTrue(calendarFunction.isCompatibleWithColumn(aggregateColumnState.projectionColumnState), `Can't process ${extractElementNameFromPath(calendarFunctionFullPath)}() expression: property is not compatible with calendar function`);
|
57
|
+
aggregateColumnState.setHideCalendarColumnState(false);
|
58
|
+
aggregateColumnState.setCalendarFunction(calendarFunction);
|
59
|
+
}
|
60
|
+
};
|
61
|
+
//# sourceMappingURL=QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1,28 @@
|
|
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 { type ValueSpecification, type SimpleFunctionExpression, type AbstractPropertyExpression } from '@finos/legend-graph';
|
17
|
+
import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
18
|
+
import { type QueryBuilderProjectionColumnState } from '../../projection/QueryBuilderProjectionColumnState.js';
|
19
|
+
import { QueryBuilderAggregateCalendarFunction } from '../QueryBuilderAggregateCalendarFunction.js';
|
20
|
+
import { type Hashable } from '@finos/legend-shared';
|
21
|
+
export declare class QueryBuilderAggregateCalendarFunction_Annualized extends QueryBuilderAggregateCalendarFunction implements Hashable {
|
22
|
+
getLabel(): string;
|
23
|
+
isCompatibleWithColumn(projectionColumnState: QueryBuilderProjectionColumnState): boolean;
|
24
|
+
buildCalendarFunctionExpression(p: AbstractPropertyExpression): ValueSpecification;
|
25
|
+
updateAggregateColumnState(expression: SimpleFunctionExpression, aggregationColumnState: QueryBuilderAggregateColumnState): void;
|
26
|
+
get hashCode(): string;
|
27
|
+
}
|
28
|
+
//# sourceMappingURL=QueryBuilderAggregateCalendarFunction_Annualized.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateCalendarFunction_Annualized.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EACL,KAAK,iCAAiC,EAEvC,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAE,qCAAqC,EAAE,MAAM,6CAA6C,CAAC;AAMpG,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhE,qBAAa,gDACX,SAAQ,qCACR,YAAW,QAAQ;IAEnB,QAAQ,IAAI,MAAM;IAIlB,sBAAsB,CACpB,qBAAqB,EAAE,iCAAiC,GACvD,OAAO;IAmBV,+BAA+B,CAC7B,CAAC,EAAE,0BAA0B,GAC5B,kBAAkB;IAUrB,0BAA0B,CACxB,UAAU,EAAE,wBAAwB,EACpC,sBAAsB,EAAE,gCAAgC,GACvD,IAAI;IASP,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF"}
|
@@ -0,0 +1,55 @@
|
|
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 { QueryBuilderAggregateCalendarFunction } from '../QueryBuilderAggregateCalendarFunction.js';
|
19
|
+
import { updateAggregateColumnState, buildCalendarFunctionExpression, } from './QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js';
|
20
|
+
import { QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
|
21
|
+
import { hashArray } from '@finos/legend-shared';
|
22
|
+
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
|
23
|
+
export class QueryBuilderAggregateCalendarFunction_Annualized extends QueryBuilderAggregateCalendarFunction {
|
24
|
+
getLabel() {
|
25
|
+
return 'Annualized';
|
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_ANNUALIZED, this.dateColumn, this.calendarType, this.endDate, p);
|
42
|
+
}
|
43
|
+
updateAggregateColumnState(expression, aggregationColumnState) {
|
44
|
+
updateAggregateColumnState(expression, QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_ANNUALIZED, this, aggregationColumnState);
|
45
|
+
}
|
46
|
+
get hashCode() {
|
47
|
+
return hashArray([
|
48
|
+
QUERY_BUILDER_STATE_HASH_STRUCTURE.AGGREGATE_CALENDAR_FUNCTION_ANNUALIZED,
|
49
|
+
this.dateColumn ?? '',
|
50
|
+
this.calendarType,
|
51
|
+
this.endDate,
|
52
|
+
]);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
//# sourceMappingURL=QueryBuilderAggregateCalendarFunction_Annualized.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateCalendarFunction_Annualized.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,cAAc,GAIf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAEL,uCAAuC,GACxC,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAE,qCAAqC,EAAE,MAAM,6CAA6C,CAAC;AACpG,OAAO,EACL,0BAA0B,EAC1B,+BAA+B,GAChC,MAAM,qEAAqE,CAAC;AAC7E,OAAO,EAAE,sDAAsD,EAAE,MAAM,oDAAoD,CAAC;AAC5H,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAE/F,MAAM,OAAO,gDACX,SAAQ,qCAAqC;IAG7C,QAAQ;QACN,OAAO,YAAY,CAAC;IACtB,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,CAA6B;QAE7B,OAAO,+BAA+B,CACpC,sDAAsD,CAAC,mBAAmB,EAC1E,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,mBAAmB,EAC1E,IAAI,EACJ,sBAAsB,CACvB,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,sCAAsC;YACzE,IAAI,CAAC,UAAU,IAAI,EAAE;YACrB,IAAI,CAAC,YAAY;YACjB,IAAI,CAAC,OAAO;SACb,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -0,0 +1,28 @@
|
|
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 { type ValueSpecification, type SimpleFunctionExpression, type AbstractPropertyExpression } from '@finos/legend-graph';
|
17
|
+
import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
18
|
+
import { type QueryBuilderProjectionColumnState } from '../../projection/QueryBuilderProjectionColumnState.js';
|
19
|
+
import { type Hashable } from '@finos/legend-shared';
|
20
|
+
import { QueryBuilderAggregateCalendarFunction } from '../QueryBuilderAggregateCalendarFunction.js';
|
21
|
+
export declare class QueryBuilderAggregateCalendarFunction_Cme extends QueryBuilderAggregateCalendarFunction implements Hashable {
|
22
|
+
getLabel(): string;
|
23
|
+
isCompatibleWithColumn(projectionColumnState: QueryBuilderProjectionColumnState): boolean;
|
24
|
+
buildCalendarFunctionExpression(p: AbstractPropertyExpression): ValueSpecification;
|
25
|
+
updateAggregateColumnState(expression: SimpleFunctionExpression, aggregationColumnState: QueryBuilderAggregateColumnState): void;
|
26
|
+
get hashCode(): string;
|
27
|
+
}
|
28
|
+
//# sourceMappingURL=QueryBuilderAggregateCalendarFunction_Cme.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateCalendarFunction_Cme.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EACL,KAAK,iCAAiC,EAEvC,MAAM,uDAAuD,CAAC;AAE/D,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EAAE,qCAAqC,EAAE,MAAM,6CAA6C,CAAC;AAMpG,qBAAa,yCACX,SAAQ,qCACR,YAAW,QAAQ;IAEnB,QAAQ,IAAI,MAAM;IAIlB,sBAAsB,CACpB,qBAAqB,EAAE,iCAAiC,GACvD,OAAO;IAmBV,+BAA+B,CAC7B,CAAC,EAAE,0BAA0B,GAC5B,kBAAkB;IAUrB,0BAA0B,CACxB,UAAU,EAAE,wBAAwB,EACpC,sBAAsB,EAAE,gCAAgC,GACvD,IAAI;IASP,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF"}
|
@@ -0,0 +1,55 @@
|
|
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_Cme extends QueryBuilderAggregateCalendarFunction {
|
24
|
+
getLabel() {
|
25
|
+
return `Current Month Estimate`;
|
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_CME, this.dateColumn, this.calendarType, this.endDate, p);
|
42
|
+
}
|
43
|
+
updateAggregateColumnState(expression, aggregationColumnState) {
|
44
|
+
updateAggregateColumnState(expression, QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_CME, this, aggregationColumnState);
|
45
|
+
}
|
46
|
+
get hashCode() {
|
47
|
+
return hashArray([
|
48
|
+
QUERY_BUILDER_STATE_HASH_STRUCTURE.AGGREGATE_CALENDAR_FUNCTION_CME,
|
49
|
+
this.dateColumn ?? '',
|
50
|
+
this.calendarType,
|
51
|
+
this.endDate,
|
52
|
+
]);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
//# sourceMappingURL=QueryBuilderAggregateCalendarFunction_Cme.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateCalendarFunction_Cme.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,cAAc,GAIf,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,wBAAwB,CAAC;IAClC,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,CAA6B;QAE7B,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"}
|
@@ -0,0 +1,28 @@
|
|
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 { type ValueSpecification, type SimpleFunctionExpression, type AbstractPropertyExpression } from '@finos/legend-graph';
|
17
|
+
import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
18
|
+
import { type QueryBuilderProjectionColumnState } from '../../projection/QueryBuilderProjectionColumnState.js';
|
19
|
+
import { type Hashable } from '@finos/legend-shared';
|
20
|
+
import { QueryBuilderAggregateCalendarFunction } from '../QueryBuilderAggregateCalendarFunction.js';
|
21
|
+
export declare class QueryBuilderAggregateCalendarFunction_Cw extends QueryBuilderAggregateCalendarFunction implements Hashable {
|
22
|
+
getLabel(): string;
|
23
|
+
isCompatibleWithColumn(projectionColumnState: QueryBuilderProjectionColumnState): boolean;
|
24
|
+
buildCalendarFunctionExpression(p: AbstractPropertyExpression): ValueSpecification;
|
25
|
+
updateAggregateColumnState(expression: SimpleFunctionExpression, aggregationColumnState: QueryBuilderAggregateColumnState): void;
|
26
|
+
get hashCode(): string;
|
27
|
+
}
|
28
|
+
//# sourceMappingURL=QueryBuilderAggregateCalendarFunction_Cw.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateCalendarFunction_Cw.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EACL,KAAK,iCAAiC,EAEvC,MAAM,uDAAuD,CAAC;AAE/D,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EAAE,qCAAqC,EAAE,MAAM,6CAA6C,CAAC;AAMpG,qBAAa,wCACX,SAAQ,qCACR,YAAW,QAAQ;IAEnB,QAAQ,IAAI,MAAM;IAIlB,sBAAsB,CACpB,qBAAqB,EAAE,iCAAiC,GACvD,OAAO;IAmBV,+BAA+B,CAC7B,CAAC,EAAE,0BAA0B,GAC5B,kBAAkB;IAUrB,0BAA0B,CACxB,UAAU,EAAE,wBAAwB,EACpC,sBAAsB,EAAE,gCAAgC,GACvD,IAAI;IASP,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF"}
|
@@ -0,0 +1,55 @@
|
|
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_Cw extends QueryBuilderAggregateCalendarFunction {
|
24
|
+
getLabel() {
|
25
|
+
return `Current Week`;
|
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_CW, this.dateColumn, this.calendarType, this.endDate, p);
|
42
|
+
}
|
43
|
+
updateAggregateColumnState(expression, aggregationColumnState) {
|
44
|
+
updateAggregateColumnState(expression, QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_CW, this, aggregationColumnState);
|
45
|
+
}
|
46
|
+
get hashCode() {
|
47
|
+
return hashArray([
|
48
|
+
QUERY_BUILDER_STATE_HASH_STRUCTURE.AGGREGATE_CALENDAR_FUNCTION_CW,
|
49
|
+
this.dateColumn ?? '',
|
50
|
+
this.calendarType,
|
51
|
+
this.endDate,
|
52
|
+
]);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
//# sourceMappingURL=QueryBuilderAggregateCalendarFunction_Cw.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateCalendarFunction_Cw.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,cAAc,GAIf,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,wCACX,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,CAA6B;QAE7B,OAAO,+BAA+B,CACpC,sDAAsD,CAAC,WAAW,EAClE,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,WAAW,EAClE,IAAI,EACJ,sBAAsB,CACvB,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,8BAA8B;YACjE,IAAI,CAAC,UAAU,IAAI,EAAE;YACrB,IAAI,CAAC,YAAY;YACjB,IAAI,CAAC,OAAO;SACb,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -0,0 +1,28 @@
|
|
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 { type ValueSpecification, type SimpleFunctionExpression, type AbstractPropertyExpression } from '@finos/legend-graph';
|
17
|
+
import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
18
|
+
import { type QueryBuilderProjectionColumnState } from '../../projection/QueryBuilderProjectionColumnState.js';
|
19
|
+
import { type Hashable } from '@finos/legend-shared';
|
20
|
+
import { QueryBuilderAggregateCalendarFunction } from '../QueryBuilderAggregateCalendarFunction.js';
|
21
|
+
export declare class QueryBuilderAggregateCalendarFunction_Cw_Fm extends QueryBuilderAggregateCalendarFunction implements Hashable {
|
22
|
+
getLabel(): string;
|
23
|
+
isCompatibleWithColumn(projectionColumnState: QueryBuilderProjectionColumnState): boolean;
|
24
|
+
buildCalendarFunctionExpression(p: AbstractPropertyExpression): ValueSpecification;
|
25
|
+
updateAggregateColumnState(expression: SimpleFunctionExpression, aggregationColumnState: QueryBuilderAggregateColumnState): void;
|
26
|
+
get hashCode(): string;
|
27
|
+
}
|
28
|
+
//# sourceMappingURL=QueryBuilderAggregateCalendarFunction_Cw_Fm.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateCalendarFunction_Cw_Fm.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EACL,KAAK,iCAAiC,EAEvC,MAAM,uDAAuD,CAAC;AAE/D,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhE,OAAO,EAAE,qCAAqC,EAAE,MAAM,6CAA6C,CAAC;AAMpG,qBAAa,2CACX,SAAQ,qCACR,YAAW,QAAQ;IAEnB,QAAQ,IAAI,MAAM;IAIlB,sBAAsB,CACpB,qBAAqB,EAAE,iCAAiC,GACvD,OAAO;IAmBV,+BAA+B,CAC7B,CAAC,EAAE,0BAA0B,GAC5B,kBAAkB;IAUrB,0BAA0B,CACxB,UAAU,EAAE,wBAAwB,EACpC,sBAAsB,EAAE,gCAAgC,GACvD,IAAI;IASP,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF"}
|
@@ -0,0 +1,55 @@
|
|
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_Cw_Fm extends QueryBuilderAggregateCalendarFunction {
|
24
|
+
getLabel() {
|
25
|
+
return `Current Month Estimate`;
|
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_CW_FM, this.dateColumn, this.calendarType, this.endDate, p);
|
42
|
+
}
|
43
|
+
updateAggregateColumnState(expression, aggregationColumnState) {
|
44
|
+
updateAggregateColumnState(expression, QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_CW_FM, this, aggregationColumnState);
|
45
|
+
}
|
46
|
+
get hashCode() {
|
47
|
+
return hashArray([
|
48
|
+
QUERY_BUILDER_STATE_HASH_STRUCTURE.AGGREGATE_CALENDAR_FUNCTION_CW_FM,
|
49
|
+
this.dateColumn ?? '',
|
50
|
+
this.calendarType,
|
51
|
+
this.endDate,
|
52
|
+
]);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
//# sourceMappingURL=QueryBuilderAggregateCalendarFunction_Cw_Fm.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateCalendarFunction_Cw_Fm.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,cAAc,GAIf,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;AAE/F,OAAO,EAAE,qCAAqC,EAAE,MAAM,6CAA6C,CAAC;AACpG,OAAO,EACL,0BAA0B,EAC1B,+BAA+B,GAChC,MAAM,qEAAqE,CAAC;AAE7E,MAAM,OAAO,2CACX,SAAQ,qCAAqC;IAG7C,QAAQ;QACN,OAAO,wBAAwB,CAAC;IAClC,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,CAA6B;QAE7B,OAAO,+BAA+B,CACpC,sDAAsD,CAAC,cAAc,EACrE,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,cAAc,EACrE,IAAI,EACJ,sBAAsB,CACvB,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,iCAAiC;YACpE,IAAI,CAAC,UAAU,IAAI,EAAE;YACrB,IAAI,CAAC,YAAY;YACjB,IAAI,CAAC,OAAO;SACb,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -0,0 +1,28 @@
|
|
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 { type ValueSpecification, type SimpleFunctionExpression, type AbstractPropertyExpression } from '@finos/legend-graph';
|
17
|
+
import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
18
|
+
import { type QueryBuilderProjectionColumnState } from '../../projection/QueryBuilderProjectionColumnState.js';
|
19
|
+
import { type Hashable } from '@finos/legend-shared';
|
20
|
+
import { QueryBuilderAggregateCalendarFunction } from '../QueryBuilderAggregateCalendarFunction.js';
|
21
|
+
export declare class QueryBuilderAggregateCalendarFunction_Cy_Minus2 extends QueryBuilderAggregateCalendarFunction implements Hashable {
|
22
|
+
getLabel(): string;
|
23
|
+
isCompatibleWithColumn(projectionColumnState: QueryBuilderProjectionColumnState): boolean;
|
24
|
+
buildCalendarFunctionExpression(p: AbstractPropertyExpression): ValueSpecification;
|
25
|
+
updateAggregateColumnState(expression: SimpleFunctionExpression, aggregationColumnState: QueryBuilderAggregateColumnState): void;
|
26
|
+
get hashCode(): string;
|
27
|
+
}
|
28
|
+
//# sourceMappingURL=QueryBuilderAggregateCalendarFunction_Cy_Minus2.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateCalendarFunction_Cy_Minus2.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EACL,KAAK,iCAAiC,EAEvC,MAAM,uDAAuD,CAAC;AAE/D,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EAAE,qCAAqC,EAAE,MAAM,6CAA6C,CAAC;AAMpG,qBAAa,+CACX,SAAQ,qCACR,YAAW,QAAQ;IAEnB,QAAQ,IAAI,MAAM;IAIlB,sBAAsB,CACpB,qBAAqB,EAAE,iCAAiC,GACvD,OAAO;IAmBV,+BAA+B,CAC7B,CAAC,EAAE,0BAA0B,GAC5B,kBAAkB;IAUrB,0BAA0B,CACxB,UAAU,EAAE,wBAAwB,EACpC,sBAAsB,EAAE,gCAAgC,GACvD,IAAI;IASP,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF"}
|
@@ -0,0 +1,55 @@
|
|
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 { buildCalendarFunctionExpression, updateAggregateColumnState, } from './QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js';
|
23
|
+
export class QueryBuilderAggregateCalendarFunction_Cy_Minus2 extends QueryBuilderAggregateCalendarFunction {
|
24
|
+
getLabel() {
|
25
|
+
return `Current year minus 2`;
|
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_CY_MINUS2, this.dateColumn, this.calendarType, this.endDate, p);
|
42
|
+
}
|
43
|
+
updateAggregateColumnState(expression, aggregationColumnState) {
|
44
|
+
updateAggregateColumnState(expression, QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_CY_MINUS2, this, aggregationColumnState);
|
45
|
+
}
|
46
|
+
get hashCode() {
|
47
|
+
return hashArray([
|
48
|
+
QUERY_BUILDER_STATE_HASH_STRUCTURE.AGGREGATE_CALENDAR_FUNCTION_CY_MINUS2,
|
49
|
+
this.dateColumn ?? '',
|
50
|
+
this.calendarType,
|
51
|
+
this.endDate,
|
52
|
+
]);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
//# sourceMappingURL=QueryBuilderAggregateCalendarFunction_Cy_Minus2.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateCalendarFunction_Cy_Minus2.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,cAAc,GAIf,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,+BAA+B,EAC/B,0BAA0B,GAC3B,MAAM,qEAAqE,CAAC;AAE7E,MAAM,OAAO,+CACX,SAAQ,qCAAqC;IAG7C,QAAQ;QACN,OAAO,sBAAsB,CAAC;IAChC,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,CAA6B;QAE7B,OAAO,+BAA+B,CACpC,sDAAsD,CAAC,kBAAkB,EACzE,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,kBAAkB,EACzE,IAAI,EACJ,sBAAsB,CACvB,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,qCAAqC;YACxE,IAAI,CAAC,UAAU,IAAI,EAAE;YACrB,IAAI,CAAC,YAAY;YACjB,IAAI,CAAC,OAAO;SACb,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -0,0 +1,28 @@
|
|
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 { type ValueSpecification, type SimpleFunctionExpression, type AbstractPropertyExpression } from '@finos/legend-graph';
|
17
|
+
import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
18
|
+
import { type QueryBuilderProjectionColumnState } from '../../projection/QueryBuilderProjectionColumnState.js';
|
19
|
+
import { type Hashable } from '@finos/legend-shared';
|
20
|
+
import { QueryBuilderAggregateCalendarFunction } from '../QueryBuilderAggregateCalendarFunction.js';
|
21
|
+
export declare class QueryBuilderAggregateCalendarFunction_Cy_Minus3 extends QueryBuilderAggregateCalendarFunction implements Hashable {
|
22
|
+
getLabel(): string;
|
23
|
+
isCompatibleWithColumn(projectionColumnState: QueryBuilderProjectionColumnState): boolean;
|
24
|
+
buildCalendarFunctionExpression(p: AbstractPropertyExpression): ValueSpecification;
|
25
|
+
updateAggregateColumnState(expression: SimpleFunctionExpression, aggregationColumnState: QueryBuilderAggregateColumnState): void;
|
26
|
+
get hashCode(): string;
|
27
|
+
}
|
28
|
+
//# sourceMappingURL=QueryBuilderAggregateCalendarFunction_Cy_Minus3.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateCalendarFunction_Cy_Minus3.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EACL,KAAK,iCAAiC,EAEvC,MAAM,uDAAuD,CAAC;AAE/D,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EAAE,qCAAqC,EAAE,MAAM,6CAA6C,CAAC;AAMpG,qBAAa,+CACX,SAAQ,qCACR,YAAW,QAAQ;IAEnB,QAAQ,IAAI,MAAM;IAIlB,sBAAsB,CACpB,qBAAqB,EAAE,iCAAiC,GACvD,OAAO;IAmBV,+BAA+B,CAC7B,CAAC,EAAE,0BAA0B,GAC5B,kBAAkB;IAUrB,0BAA0B,CACxB,UAAU,EAAE,wBAAwB,EACpC,sBAAsB,EAAE,gCAAgC,GACvD,IAAI;IASP,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF"}
|