From 79be9c330bf6557e130ab13317d9f719285c0e89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emi=20Pallar=C3=A8s?= Date: Tue, 10 Dec 2024 15:28:26 +0100 Subject: [PATCH] Update storefront-order to version 1.0.0-beta3 --- package-lock.json | 8 ++++---- package.json | 2 +- scripts/__dropins__/storefront-order/api.js | 3 ++- .../__dropins__/storefront-order/configs/mock.config.d.ts | 1 + 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 232f44181..2b9b36b24 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "@dropins/storefront-auth": "1.0.0-beta2", "@dropins/storefront-cart": "1.0.0-beta2", "@dropins/storefront-checkout": "1.0.0-beta1", - "@dropins/storefront-order": "1.0.0-beta2", + "@dropins/storefront-order": "1.0.0-beta3", "@dropins/storefront-pdp": "1.0.0-beta3", "@dropins/tools": "^0.37.0" }, @@ -785,9 +785,9 @@ "integrity": "sha512-pnPfRfhOtjjd+W+W3ftO7un+j9nJ8Rk29uaVo/rkB5ubF8FELIfexqzE+0PW48xRVPZhC8RkJyEGNKi/tNtUiA==" }, "node_modules/@dropins/storefront-order": { - "version": "1.0.0-beta2", - "resolved": "https://registry.npmjs.org/@dropins/storefront-order/-/storefront-order-1.0.0-beta2.tgz", - "integrity": "sha512-J1lvOdyMvxcIy0eQ9UFjI9Mriaw8YDgh8qp6WbuJwHrSFpqijmM3Z6kdNdNbkve8b/3BFTIwm9ZyePDSVB/Oeg==" + "version": "1.0.0-beta3", + "resolved": "https://registry.npmjs.org/@dropins/storefront-order/-/storefront-order-1.0.0-beta3.tgz", + "integrity": "sha512-lLGS64BFv6GiLVNNX2ZOhi3cOkKvkgKck8XEd2WAt2pOWkHRaZVOaKeH+xRReLJlQ6V7cBspZRaB9v+zLj7JTw==" }, "node_modules/@dropins/storefront-pdp": { "version": "1.0.0-beta3", diff --git a/package.json b/package.json index 3c0db2d2a..3cd51c4d9 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "@dropins/storefront-auth": "1.0.0-beta2", "@dropins/storefront-cart": "1.0.0-beta2", "@dropins/storefront-checkout": "1.0.0-beta1", - "@dropins/storefront-order": "1.0.0-beta2", + "@dropins/storefront-order": "1.0.0-beta3", "@dropins/storefront-pdp": "1.0.0-beta3", "@dropins/tools": "^0.37.0" } diff --git a/scripts/__dropins__/storefront-order/api.js b/scripts/__dropins__/storefront-order/api.js index 955e04c73..373e18463 100644 --- a/scripts/__dropins__/storefront-order/api.js +++ b/scripts/__dropins__/storefront-order/api.js @@ -12,6 +12,7 @@ import{c as H,r as q}from"./chunks/requestGuestOrderCancel.js";import{f as E,h a available_actions status number + token id order_date carrier @@ -89,4 +90,4 @@ import{c as H,r as q}from"./chunks/requestGuestOrderCancel.js";import{f as E,h a ${h} ${f} ${C} -`,k=async t=>{if(!t)throw new Error("No cart ID found");return E(S,{variables:{cartId:t}}).then(r=>{var a;(a=r.errors)!=null&&a.length&&_(r.errors);const e=N(r);return e&&(u.emit("order/placed",e),u.emit("cart/reset",void 0),L(t,e)),e}).catch(R)};export{H as cancelOrder,ce as config,Te as confirmCancelOrder,Re as confirmGuestReturn,E as fetchGraphQl,W as getAttributesForm,ee as getAttributesList,V as getConfig,oe as getCustomer,ie as getCustomerOrdersReturn,ne as getGuestOrder,ue as getOrderDetailsById,Ee as getStoreConfig,de as guestOrderByToken,le as initialize,k as placeOrder,Y as removeFetchGraphQlHeader,De as reorderItems,q as requestGuestOrderCancel,te as requestGuestReturn,re as requestReturn,z as setEndpoint,j as setFetchGraphQlHeader,J as setFetchGraphQlHeaders}; +`,$=async t=>{if(!t)throw new Error("No cart ID found");return E(S,{variables:{cartId:t}}).then(r=>{var a;(a=r.errors)!=null&&a.length&&_(r.errors);const e=N(r);return e&&(u.emit("order/placed",e),u.emit("cart/reset",void 0),L(t,e)),e}).catch(R)};export{H as cancelOrder,ce as config,Te as confirmCancelOrder,Re as confirmGuestReturn,E as fetchGraphQl,W as getAttributesForm,ee as getAttributesList,V as getConfig,oe as getCustomer,ie as getCustomerOrdersReturn,ne as getGuestOrder,ue as getOrderDetailsById,Ee as getStoreConfig,de as guestOrderByToken,le as initialize,$ as placeOrder,Y as removeFetchGraphQlHeader,De as reorderItems,q as requestGuestOrderCancel,te as requestGuestReturn,re as requestReturn,z as setEndpoint,j as setFetchGraphQlHeader,J as setFetchGraphQlHeaders}; diff --git a/scripts/__dropins__/storefront-order/configs/mock.config.d.ts b/scripts/__dropins__/storefront-order/configs/mock.config.d.ts index ba35296dd..866bcf6d7 100644 --- a/scripts/__dropins__/storefront-order/configs/mock.config.d.ts +++ b/scripts/__dropins__/storefront-order/configs/mock.config.d.ts @@ -166,6 +166,7 @@ export declare const transformMockOrderInput: { available_actions: string[]; status: string; number: string; + token: string; id: string; order_date: string; carrier: string;