UNPKG

lml-main

Version:

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

17 lines 1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var redux_rx_http_1 = require("redux-rx-http"); exports.POST_AUTO_ALLOCATION_GLOBAL = redux_rx_http_1.createRxHttpActionTypes('POST_AUTO_ALLOCATION_GLOBAL'); exports.SET_AUTO_ALLOCATION_GLOBAL = 'SET_AUTO_ALLOCATION_GLOBAL'; exports.postAutoAllocationGlobal = function (autoAllocationGlobal, args) { if (args === void 0) { args = {}; } var body = { autoAllocationGlobal: autoAllocationGlobal }; return redux_rx_http_1.rxHttpPost( // i have no idea why we are calling job labels to switch auto allocation on and off '/v2/joblabel/switch', exports.POST_AUTO_ALLOCATION_GLOBAL, body, tslib_1.__assign({ autoAllocationGlobal: autoAllocationGlobal }, args)); }; exports.setAutoAllocationGlobal = function (autoAllocationGlobal) { return ({ type: exports.SET_AUTO_ALLOCATION_GLOBAL, autoAllocationGlobal: autoAllocationGlobal }); }; //# sourceMappingURL=auto-allocation.js.map