@vtex/delivery-packages
Advanced tools
Comparing version 2.11.0 to 2.12.0
@@ -223,3 +223,13 @@ if (!Array.prototype.findIndex) { | ||
export { getSelectedSlaInSlas, getSelectedSlaIfMatchSlaId, findSlaWithChannel, getSlaAsId, hasSLAs, hasDeliveryWindows, getSelectedSla, getSlaObj, excludePickupTypeFromSlas, filterPickupTypeFromSlas, getSelectedSlas, getPickupSelectedSlas }; | ||
function changeSelectedSla(logisticsInfoItem, sla) { | ||
if (!logisticsInfoItem || !sla) { | ||
return logisticsInfoItem; | ||
} | ||
return _extends({}, logisticsInfoItem, { | ||
selectedSla: sla.id, | ||
selectedDeliveryChannel: sla.deliveryChannel | ||
}); | ||
} | ||
export { getSelectedSlaInSlas, getSelectedSlaIfMatchSlaId, findSlaWithChannel, getSlaAsId, hasSLAs, hasDeliveryWindows, getSelectedSla, getSlaObj, excludePickupTypeFromSlas, filterPickupTypeFromSlas, getSelectedSlas, getPickupSelectedSlas, changeSelectedSla }; | ||
//# sourceMappingURL=sla.esm.js.map |
@@ -227,2 +227,12 @@ 'use strict'; | ||
function changeSelectedSla(logisticsInfoItem, sla) { | ||
if (!logisticsInfoItem || !sla) { | ||
return logisticsInfoItem; | ||
} | ||
return _extends({}, logisticsInfoItem, { | ||
selectedSla: sla.id, | ||
selectedDeliveryChannel: sla.deliveryChannel | ||
}); | ||
} | ||
exports.getSelectedSlaInSlas = getSelectedSlaInSlas; | ||
@@ -240,2 +250,3 @@ exports.getSelectedSlaIfMatchSlaId = getSelectedSlaIfMatchSlaId; | ||
exports.getPickupSelectedSlas = getPickupSelectedSlas; | ||
exports.changeSelectedSla = changeSelectedSla; | ||
//# sourceMappingURL=sla.js.map |
{ | ||
"name": "@vtex/delivery-packages", | ||
"version": "2.11.0", | ||
"version": "2.12.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
1770706
16839
2899