import { ForecastCalculations } from 'app/modules/forecast/store/forecast.types'; import { createAction } from 'app/common/store/actions.creators'; import { FORECAST } from 'app/modules/forecast/store/forecast.constants'; const forecastSetDetails = (payload) => { return { type: FORECAST.FORECAST_SET_DETAILS, payload, }; }; const forecastSetAggregations = (payload: ForecastCalculations) => { return { type: FORECAST.FORECAST_SET_AGGREGATIONS, payload, }; }; const forecastSelectAggregation = (payload: number | null) => { return { type: FORECAST.FORECAST_SELECT_AGGREGATION, payload, }; }; const forecastFetchCollectionRequest = (payload: number) => createAction(FORECAST.FETCH_COLLECTION_REQUEST, payload); const forecastFetchCollectionSuccess = () => createAction(FORECAST.FETCH_COLLECTION_SUCCESS); const forecastFetchCollectionFailure = () => createAction(FORECAST.FETCH_COLLECTION_FAILURE); export { forecastSelectAggregation, forecastSetAggregations, forecastSetDetails, forecastFetchCollectionRequest, forecastFetchCollectionSuccess, forecastFetchCollectionFailure, };