UNPKG

lml-main

Version:

This is now a mono repository published into many standalone packages.

18 lines 891 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var redux_observable_1 = require("redux-observable"); var cosmoui_1 = require("cosmoui"); var actions_1 = require("../actions"); exports.fetchConsolidationsSuccess = function (action$, store) { return action$.ofType(actions_1.FETCH_CONSOLIDATIONS.SUCCESS) .map(function (action) { var result = action.result; return actions_1.setConsolidations(result); }); }; exports.fetchConsolidationsError = function (action$, store) { return action$.ofType(actions_1.FETCH_CONSOLIDATIONS.ERROR) .mapTo(cosmoui_1.notificationError('There was a problem fetching consolidations. Please refresh')); }; exports.consolidationsApiEpics = redux_observable_1.combineEpics(exports.fetchConsolidationsSuccess, exports.fetchConsolidationsError); //# sourceMappingURL=fetch-consolidations.js.map