@wix/auto_sdk_ecom_current-cart 1.0.84 → 1.0.85
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/index.js
CHANGED
|
@@ -49,7 +49,7 @@ __export(index_exports, {
|
|
|
49
49
|
createCheckoutFromCurrentCart: () => createCheckoutFromCurrentCart4,
|
|
50
50
|
deleteCurrentCart: () => deleteCurrentCart4,
|
|
51
51
|
estimateCurrentCartTotals: () => estimateCurrentCartTotals4,
|
|
52
|
-
getCurrentCart: () =>
|
|
52
|
+
getCurrentCart: () => getCurrentCart3,
|
|
53
53
|
onCartCreated: () => onCartCreated2,
|
|
54
54
|
onCartDeleted: () => onCartDeleted2,
|
|
55
55
|
onCartUpdated: () => onCartUpdated2,
|
|
@@ -193,8 +193,8 @@ function resolveComWixEcomCartApiV1CurrentCartServiceUrl(opts) {
|
|
|
193
193
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
194
194
|
}
|
|
195
195
|
var PACKAGE_NAME = "@wix/auto_sdk_ecom_current-cart";
|
|
196
|
-
function
|
|
197
|
-
function
|
|
196
|
+
function currentCartGetCurrentCart(payload) {
|
|
197
|
+
function __currentCartGetCurrentCart({ host }) {
|
|
198
198
|
const metadata = {
|
|
199
199
|
entityFqdn: "wix.ecom.v1.cart",
|
|
200
200
|
method: "GET",
|
|
@@ -239,7 +239,7 @@ function getCurrentCart(payload) {
|
|
|
239
239
|
};
|
|
240
240
|
return metadata;
|
|
241
241
|
}
|
|
242
|
-
return
|
|
242
|
+
return __currentCartGetCurrentCart;
|
|
243
243
|
}
|
|
244
244
|
function updateCurrentCart(payload) {
|
|
245
245
|
function __updateCurrentCart({ host }) {
|
|
@@ -895,10 +895,10 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
895
895
|
WebhookIdentityType2["APP"] = "APP";
|
|
896
896
|
return WebhookIdentityType2;
|
|
897
897
|
})(WebhookIdentityType || {});
|
|
898
|
-
async function
|
|
898
|
+
async function getCurrentCart() {
|
|
899
899
|
const { httpClient, sideEffects } = arguments[0];
|
|
900
900
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
|
|
901
|
-
const reqOpts =
|
|
901
|
+
const reqOpts = currentCartGetCurrentCart(payload);
|
|
902
902
|
sideEffects?.onSiteCall?.();
|
|
903
903
|
try {
|
|
904
904
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1345,8 +1345,8 @@ async function deleteCurrentCart2() {
|
|
|
1345
1345
|
}
|
|
1346
1346
|
|
|
1347
1347
|
// src/ecom-v1-cart-current-cart.public.ts
|
|
1348
|
-
function
|
|
1349
|
-
return () =>
|
|
1348
|
+
function getCurrentCart2(httpClient) {
|
|
1349
|
+
return () => getCurrentCart(
|
|
1350
1350
|
// @ts-ignore
|
|
1351
1351
|
{ httpClient }
|
|
1352
1352
|
);
|
|
@@ -1541,7 +1541,7 @@ var onCartCreated = (0, import_sdk_types.EventDefinition)(
|
|
|
1541
1541
|
// src/ecom-v1-cart-current-cart.context.ts
|
|
1542
1542
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
1543
1543
|
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
1544
|
-
var
|
|
1544
|
+
var getCurrentCart3 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getCurrentCart2);
|
|
1545
1545
|
var updateCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateCurrentCart3);
|
|
1546
1546
|
var addToCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(addToCurrentCart3);
|
|
1547
1547
|
var removeLineItemsFromCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(removeLineItemsFromCurrentCart3);
|