@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.
@@ -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 currentCartGetCurrentCart(payload) {
138
- function __currentCartGetCurrentCart({ host }) {
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 __currentCartGetCurrentCart;
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 getCurrentCart() {
863
+ async function getCurrentCart2() {
864
864
  const { httpClient, sideEffects } = arguments[0];
865
865
  const payload = renameKeysFromSDKRequestToRESTRequest({});
866
- const reqOpts = currentCartGetCurrentCart(payload);
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 getCurrentCart2(httpClient) {
1316
- return () => getCurrentCart(
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 getCurrentCart3 = /* @__PURE__ */ createRESTModule(getCurrentCart2);
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
- getCurrentCart3 as getCurrentCart,
1579
+ getCurrentCart4 as getCurrentCart,
1580
1580
  onCartCreated2 as onCartCreated,
1581
1581
  onCartDeleted2 as onCartDeleted,
1582
1582
  onCartUpdated2 as onCartUpdated,