@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/es/index.mjs
CHANGED
|
@@ -134,8 +134,8 @@ function resolveComWixEcomCartApiV1CurrentCartServiceUrl(opts) {
|
|
|
134
134
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
135
135
|
}
|
|
136
136
|
var PACKAGE_NAME = "@wix/auto_sdk_ecom_current-cart";
|
|
137
|
-
function
|
|
138
|
-
function
|
|
137
|
+
function getCurrentCart(payload) {
|
|
138
|
+
function __getCurrentCart({ host }) {
|
|
139
139
|
const metadata = {
|
|
140
140
|
entityFqdn: "wix.ecom.v1.cart",
|
|
141
141
|
method: "GET",
|
|
@@ -181,7 +181,7 @@ function currentCartGetCurrentCart(payload) {
|
|
|
181
181
|
};
|
|
182
182
|
return metadata;
|
|
183
183
|
}
|
|
184
|
-
return
|
|
184
|
+
return __getCurrentCart;
|
|
185
185
|
}
|
|
186
186
|
function updateCurrentCart(payload) {
|
|
187
187
|
function __updateCurrentCart({ host }) {
|
|
@@ -860,10 +860,10 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
860
860
|
WebhookIdentityType2["APP"] = "APP";
|
|
861
861
|
return WebhookIdentityType2;
|
|
862
862
|
})(WebhookIdentityType || {});
|
|
863
|
-
async function
|
|
863
|
+
async function getCurrentCart2() {
|
|
864
864
|
const { httpClient, sideEffects } = arguments[0];
|
|
865
865
|
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
866
|
-
const reqOpts =
|
|
866
|
+
const reqOpts = getCurrentCart(payload);
|
|
867
867
|
sideEffects?.onSiteCall?.();
|
|
868
868
|
try {
|
|
869
869
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1312,8 +1312,8 @@ async function deleteCurrentCart2() {
|
|
|
1312
1312
|
}
|
|
1313
1313
|
|
|
1314
1314
|
// src/ecom-v1-cart-current-cart.public.ts
|
|
1315
|
-
function
|
|
1316
|
-
return () =>
|
|
1315
|
+
function getCurrentCart3(httpClient) {
|
|
1316
|
+
return () => getCurrentCart2(
|
|
1317
1317
|
// @ts-ignore
|
|
1318
1318
|
{ httpClient }
|
|
1319
1319
|
);
|
|
@@ -1532,7 +1532,7 @@ var onCartCreated = EventDefinition(
|
|
|
1532
1532
|
// src/ecom-v1-cart-current-cart.context.ts
|
|
1533
1533
|
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
1534
1534
|
import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
|
|
1535
|
-
var
|
|
1535
|
+
var getCurrentCart4 = /* @__PURE__ */ createRESTModule(getCurrentCart3);
|
|
1536
1536
|
var updateCurrentCart4 = /* @__PURE__ */ createRESTModule(updateCurrentCart3);
|
|
1537
1537
|
var addToCurrentCart4 = /* @__PURE__ */ createRESTModule(addToCurrentCart3);
|
|
1538
1538
|
var removeLineItemsFromCurrentCart4 = /* @__PURE__ */ createRESTModule(removeLineItemsFromCurrentCart3);
|
|
@@ -1576,7 +1576,7 @@ export {
|
|
|
1576
1576
|
createCheckoutFromCurrentCart4 as createCheckoutFromCurrentCart,
|
|
1577
1577
|
deleteCurrentCart4 as deleteCurrentCart,
|
|
1578
1578
|
estimateCurrentCartTotals4 as estimateCurrentCartTotals,
|
|
1579
|
-
|
|
1579
|
+
getCurrentCart4 as getCurrentCart,
|
|
1580
1580
|
onCartCreated2 as onCartCreated,
|
|
1581
1581
|
onCartDeleted2 as onCartDeleted,
|
|
1582
1582
|
onCartUpdated2 as onCartUpdated,
|