UNPKG

lml-main

Version:

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

25 lines 976 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var redux_rx_http_1 = require("redux-rx-http"); exports.PATCH_COURIER_LABEL = redux_rx_http_1.createRxHttpActionTypes('PATCH_COURIER_LABEL'); exports.SET_COURIER_LABEL = 'SET_COURIER_LABEL'; exports.patchCourierLabel = function (courier, label, args) { if (args === void 0) { args = {}; } var body = { refId: courier.refId, firstName: courier.firstName, vehicleType: courier.vehicleType, label: { label: label.toUpperCase(), }, }; return redux_rx_http_1.rxHttpPatch("/v1/couriers/" + courier.refId, exports.PATCH_COURIER_LABEL, body, { args: tslib_1.__assign({ courier: courier, label: label }, args), }); }; exports.setCourierLabel = function (refId, label) { return ({ type: exports.SET_COURIER_LABEL, refId: refId, label: label }); }; //# sourceMappingURL=label.js.map