@vtex/delivery-packages
Advanced tools
Comparing version 2.4.0 to 2.5.0
@@ -151,2 +151,14 @@ if (!Array.prototype.find) { | ||
function checkLogisticsInfoHasScheduledDeliverySla(logisticsInfo) { | ||
if (!logisticsInfo || logisticsInfo.length === 0) { | ||
return false; | ||
} | ||
return logisticsInfo.some(function (li) { | ||
return li.slas.some(function (sla) { | ||
return hasDeliveryWindows(sla); | ||
}); | ||
}); | ||
} | ||
function checkLogisticsInfoHasScheduledDeliverySelected(logisticsInfo) { | ||
@@ -212,3 +224,3 @@ if (!logisticsInfo || logisticsInfo.length === 0) { | ||
export { areDeliveryWindowsEquals, checkIfHasDeliveryWindow, filterSlaByAvailableDeliveryWindows, getScheduledDeliverySLA, areAvailableDeliveryWindowsEquals, checkLogisticsInfoHasScheduledDeliverySelected, selectDeliveryWindow, getFirstScheduledDelivery }; | ||
export { areDeliveryWindowsEquals, checkIfHasDeliveryWindow, filterSlaByAvailableDeliveryWindows, getScheduledDeliverySLA, areAvailableDeliveryWindowsEquals, checkLogisticsInfoHasScheduledDeliverySla, checkLogisticsInfoHasScheduledDeliverySelected, selectDeliveryWindow, getFirstScheduledDelivery }; | ||
//# sourceMappingURL=scheduled-delivery.esm.js.map |
@@ -155,2 +155,14 @@ 'use strict'; | ||
function checkLogisticsInfoHasScheduledDeliverySla(logisticsInfo) { | ||
if (!logisticsInfo || logisticsInfo.length === 0) { | ||
return false; | ||
} | ||
return logisticsInfo.some(function (li) { | ||
return li.slas.some(function (sla) { | ||
return hasDeliveryWindows(sla); | ||
}); | ||
}); | ||
} | ||
function checkLogisticsInfoHasScheduledDeliverySelected(logisticsInfo) { | ||
@@ -221,2 +233,3 @@ if (!logisticsInfo || logisticsInfo.length === 0) { | ||
exports.areAvailableDeliveryWindowsEquals = areAvailableDeliveryWindowsEquals; | ||
exports.checkLogisticsInfoHasScheduledDeliverySla = checkLogisticsInfoHasScheduledDeliverySla; | ||
exports.checkLogisticsInfoHasScheduledDeliverySelected = checkLogisticsInfoHasScheduledDeliverySelected; | ||
@@ -223,0 +236,0 @@ exports.selectDeliveryWindow = selectDeliveryWindow; |
{ | ||
"name": "@vtex/delivery-packages", | ||
"version": "2.4.0", | ||
"version": "2.5.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
1513522
15314