@wix/auto_sdk_ecom_current-cart 1.0.131 → 1.0.132
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
package/build/cjs/meta.js
CHANGED
|
@@ -51,7 +51,7 @@ __export(meta_exports, {
|
|
|
51
51
|
createCheckoutFromCurrentCart: () => createCheckoutFromCurrentCart2,
|
|
52
52
|
deleteCurrentCart: () => deleteCurrentCart2,
|
|
53
53
|
estimateCurrentCartTotals: () => estimateCurrentCartTotals2,
|
|
54
|
-
getCurrentCart: () =>
|
|
54
|
+
getCurrentCart: () => getCurrentCart2,
|
|
55
55
|
removeCouponFromCurrentCart: () => removeCouponFromCurrentCart2,
|
|
56
56
|
removeLineItemsFromCurrentCart: () => removeLineItemsFromCurrentCart2,
|
|
57
57
|
updateCurrentCart: () => updateCurrentCart2,
|
|
@@ -178,8 +178,8 @@ function resolveComWixEcomCartApiV1CurrentCartServiceUrl(opts) {
|
|
|
178
178
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
179
179
|
}
|
|
180
180
|
var PACKAGE_NAME = "@wix/auto_sdk_ecom_current-cart";
|
|
181
|
-
function
|
|
182
|
-
function
|
|
181
|
+
function getCurrentCart(payload) {
|
|
182
|
+
function __getCurrentCart({ host }) {
|
|
183
183
|
const metadata = {
|
|
184
184
|
entityFqdn: "wix.ecom.v1.cart",
|
|
185
185
|
method: "GET",
|
|
@@ -225,7 +225,7 @@ function currentCartGetCurrentCart(payload) {
|
|
|
225
225
|
};
|
|
226
226
|
return metadata;
|
|
227
227
|
}
|
|
228
|
-
return
|
|
228
|
+
return __getCurrentCart;
|
|
229
229
|
}
|
|
230
230
|
function updateCurrentCart(payload) {
|
|
231
231
|
function __updateCurrentCart({ host }) {
|
|
@@ -899,9 +899,9 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
899
899
|
})(WebhookIdentityType || {});
|
|
900
900
|
|
|
901
901
|
// src/ecom-v1-cart-current-cart.meta.ts
|
|
902
|
-
function
|
|
902
|
+
function getCurrentCart2() {
|
|
903
903
|
const payload = {};
|
|
904
|
-
const getRequestOptions =
|
|
904
|
+
const getRequestOptions = getCurrentCart(payload);
|
|
905
905
|
const getUrl = (context) => {
|
|
906
906
|
const { url } = getRequestOptions(context);
|
|
907
907
|
return url;
|