UNPKG

lml-main

Version:

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

19 lines 988 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var redux_observable_1 = require("redux-observable"); var actions_1 = require("../../jobs/actions"); var actions_2 = require("../actions"); var cosmoui_1 = require("cosmoui"); exports.fetchCourierJobsSuccess = function (action$, store) { return action$.ofType(actions_2.FETCH_COURIER_JOBS.SUCCESS) .mergeMap(function (action) { return [ actions_2.setCourierJobs(action.args.refId, action.result.jobStatuses), actions_1.setJobsByIdBatch(action.result.jobs), ]; }); }; exports.fetchCourierJobsError = function (action$, store) { return action$.ofType(actions_2.FETCH_COURIER_JOBS.ERROR) .mapTo(cosmoui_1.notificationError('There was a problem fetching the courier jobs. Please try again')); }; exports.fetchCourierJobsEpics = redux_observable_1.combineEpics(exports.fetchCourierJobsSuccess, exports.fetchCourierJobsError); //# sourceMappingURL=fetch-courier-jobs.js.map