lml-main
Version:
This is now a mono repository published into many standalone packages.
20 lines • 958 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var redux_rx_http_1 = require("redux-rx-http");
exports.FETCH_CONSOLIDATIONS = redux_rx_http_1.createRxHttpActionTypes('FETCH_CONSOLIDATIONS');
exports.SET_CONSOLIDATIONS = 'SET_CONSOLIDATIONS';
exports.SET_CONSOLIDATION_BY_ID = 'SET_CONSOLIDATION_BY_ID';
exports.fetchConsolidations = function (labels, args) {
if (args === void 0) { args = {}; }
return redux_rx_http_1.rxHttpPost('/v1/consolidation/jobs', exports.FETCH_CONSOLIDATIONS, {
labels: labels.slice(),
}, tslib_1.__assign({}, args));
};
exports.setConsolidations = function (consolidations) {
return ({ type: exports.SET_CONSOLIDATIONS, consolidations: consolidations });
};
exports.setConsolidationById = function (consolidation) {
return ({ type: exports.SET_CONSOLIDATION_BY_ID, consolidation: consolidation });
};
//# sourceMappingURL=consolidation.js.map