@wix/auto_sdk_ecom_current-cart 1.0.132 → 1.0.133
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/build/cjs/index.js +9 -9
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +6 -6
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +6 -6
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +9 -9
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +6 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +6 -6
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +9 -9
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.js +6 -6
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.js +6 -6
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +9 -9
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.mjs +6 -6
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.mjs +6 -6
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -124,8 +124,8 @@ function resolveComWixEcomCartApiV1CurrentCartServiceUrl(opts) {
|
|
|
124
124
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
125
125
|
}
|
|
126
126
|
var PACKAGE_NAME = "@wix/auto_sdk_ecom_current-cart";
|
|
127
|
-
function
|
|
128
|
-
function
|
|
127
|
+
function currentCartGetCurrentCart(payload) {
|
|
128
|
+
function __currentCartGetCurrentCart({ host }) {
|
|
129
129
|
const metadata = {
|
|
130
130
|
entityFqdn: "wix.ecom.v1.cart",
|
|
131
131
|
method: "GET",
|
|
@@ -171,7 +171,7 @@ function getCurrentCart(payload) {
|
|
|
171
171
|
};
|
|
172
172
|
return metadata;
|
|
173
173
|
}
|
|
174
|
-
return
|
|
174
|
+
return __currentCartGetCurrentCart;
|
|
175
175
|
}
|
|
176
176
|
function updateCurrentCart(payload) {
|
|
177
177
|
function __updateCurrentCart({ host }) {
|
|
@@ -850,10 +850,10 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
850
850
|
WebhookIdentityType2["APP"] = "APP";
|
|
851
851
|
return WebhookIdentityType2;
|
|
852
852
|
})(WebhookIdentityType || {});
|
|
853
|
-
async function
|
|
853
|
+
async function getCurrentCart() {
|
|
854
854
|
const { httpClient, sideEffects } = arguments[0];
|
|
855
855
|
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
856
|
-
const reqOpts =
|
|
856
|
+
const reqOpts = currentCartGetCurrentCart(payload);
|
|
857
857
|
sideEffects?.onSiteCall?.();
|
|
858
858
|
try {
|
|
859
859
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1332,7 +1332,7 @@ export {
|
|
|
1332
1332
|
createCheckoutFromCurrentCart2 as createCheckoutFromCurrentCart,
|
|
1333
1333
|
deleteCurrentCart2 as deleteCurrentCart,
|
|
1334
1334
|
estimateCurrentCartTotals2 as estimateCurrentCartTotals,
|
|
1335
|
-
|
|
1335
|
+
getCurrentCart,
|
|
1336
1336
|
removeCouponFromCurrentCart2 as removeCouponFromCurrentCart,
|
|
1337
1337
|
removeLineItemsFromCurrentCart2 as removeLineItemsFromCurrentCart,
|
|
1338
1338
|
updateCurrentCart2 as updateCurrentCart,
|