@fayz-ai/shop 0.56.0 → 0.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -374,7 +374,7 @@ function toPublicDeliveryPolicy(row) {
|
|
|
374
374
|
if (!row) return null;
|
|
375
375
|
const min = row.min_order_total == null ? null : Number(row.min_order_total);
|
|
376
376
|
const eta = row.delivery_eta_minutes == null ? null : Number(row.delivery_eta_minutes);
|
|
377
|
-
return { minOrderTotal: min && min > 0 ? min : null, etaMinutes: eta && eta > 0 ? eta : null, deliveryFlow: Boolean(row.delivery_flow) };
|
|
377
|
+
return { minOrderTotal: min && min > 0 ? min : null, etaMinutes: eta && eta > 0 ? eta : null, deliveryFlow: Boolean(row.delivery_flow), paused: row.delivery_paused === true };
|
|
378
378
|
}
|
|
379
379
|
function rowToStoreSettings(row) {
|
|
380
380
|
const bool = (v) => v == null ? void 0 : Boolean(v);
|