@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
|
@@ -51,7 +51,7 @@ __export(index_typings_exports, {
|
|
|
51
51
|
createCheckoutFromCurrentCart: () => createCheckoutFromCurrentCart2,
|
|
52
52
|
deleteCurrentCart: () => deleteCurrentCart2,
|
|
53
53
|
estimateCurrentCartTotals: () => estimateCurrentCartTotals2,
|
|
54
|
-
getCurrentCart: () =>
|
|
54
|
+
getCurrentCart: () => getCurrentCart,
|
|
55
55
|
removeCouponFromCurrentCart: () => removeCouponFromCurrentCart2,
|
|
56
56
|
removeLineItemsFromCurrentCart: () => removeLineItemsFromCurrentCart2,
|
|
57
57
|
updateCurrentCart: () => updateCurrentCart2,
|
|
@@ -182,8 +182,8 @@ function resolveComWixEcomCartApiV1CurrentCartServiceUrl(opts) {
|
|
|
182
182
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
183
183
|
}
|
|
184
184
|
var PACKAGE_NAME = "@wix/auto_sdk_ecom_current-cart";
|
|
185
|
-
function
|
|
186
|
-
function
|
|
185
|
+
function currentCartGetCurrentCart(payload) {
|
|
186
|
+
function __currentCartGetCurrentCart({ host }) {
|
|
187
187
|
const metadata = {
|
|
188
188
|
entityFqdn: "wix.ecom.v1.cart",
|
|
189
189
|
method: "GET",
|
|
@@ -229,7 +229,7 @@ function getCurrentCart(payload) {
|
|
|
229
229
|
};
|
|
230
230
|
return metadata;
|
|
231
231
|
}
|
|
232
|
-
return
|
|
232
|
+
return __currentCartGetCurrentCart;
|
|
233
233
|
}
|
|
234
234
|
function updateCurrentCart(payload) {
|
|
235
235
|
function __updateCurrentCart({ host }) {
|
|
@@ -908,10 +908,10 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
908
908
|
WebhookIdentityType2["APP"] = "APP";
|
|
909
909
|
return WebhookIdentityType2;
|
|
910
910
|
})(WebhookIdentityType || {});
|
|
911
|
-
async function
|
|
911
|
+
async function getCurrentCart() {
|
|
912
912
|
const { httpClient, sideEffects } = arguments[0];
|
|
913
913
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
|
|
914
|
-
const reqOpts =
|
|
914
|
+
const reqOpts = currentCartGetCurrentCart(payload);
|
|
915
915
|
sideEffects?.onSiteCall?.();
|
|
916
916
|
try {
|
|
917
917
|
const result = await httpClient.request(reqOpts);
|