@wix/auto_sdk_ecom_current-cart 1.0.132 → 1.0.134

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.
@@ -3278,7 +3278,7 @@ declare function onCartCreated(handler: (event: CartCreatedEnvelope) => void | P
3278
3278
  * Retrieves the current site visitor's cart.
3279
3279
  *
3280
3280
  * >**Note:**
3281
- * >This method requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
3281
+ * >This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
3282
3282
  * @public
3283
3283
  * @permissionId ECOM.READ_CARTS
3284
3284
  * @applicableIdentity APP
@@ -3291,7 +3291,7 @@ declare function getCurrentCart(): Promise<NonNullablePaths<Cart, `lineItems` |
3291
3291
  *
3292
3292
  * >**Notes:**
3293
3293
  * >+ When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
3294
- * >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
3294
+ * >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
3295
3295
  * >+ After a cart is updated, call [Refresh Cart](https://dev.wix.com/docs/sdk/frontend-modules/ecom/refresh-cart) to update the cart's UI elements and trigger the Cart Updated event.
3296
3296
  * @public
3297
3297
  * @requiredField options.lineItems.catalogReference
@@ -3333,7 +3333,7 @@ interface UpdateCurrentCartOptions {
3333
3333
  *
3334
3334
  * >**Notes:**
3335
3335
  * >+ When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
3336
- * >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
3336
+ * >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
3337
3337
  * >+ After a cart is updated, call [Refresh Cart](https://dev.wix.com/docs/sdk/frontend-modules/ecom/refresh-cart) to update the cart's UI elements and trigger the Cart Updated event.
3338
3338
  * @public
3339
3339
  * @requiredField options.customLineItems.itemType
@@ -124,8 +124,8 @@ function resolveComWixEcomCartApiV1CurrentCartServiceUrl(opts) {
124
124
  return resolveUrl(Object.assign(opts, { domainToMappings }));
125
125
  }
126
126
  var PACKAGE_NAME = "@wix/auto_sdk_ecom_current-cart";
127
- function getCurrentCart(payload) {
128
- function __getCurrentCart({ host }) {
127
+ function currentCartGetCurrentCart(payload) {
128
+ function __currentCartGetCurrentCart({ host }) {
129
129
  const metadata = {
130
130
  entityFqdn: "wix.ecom.v1.cart",
131
131
  method: "GET",
@@ -171,7 +171,7 @@ function getCurrentCart(payload) {
171
171
  };
172
172
  return metadata;
173
173
  }
174
- return __getCurrentCart;
174
+ return __currentCartGetCurrentCart;
175
175
  }
176
176
  function updateCurrentCart(payload) {
177
177
  function __updateCurrentCart({ host }) {
@@ -850,10 +850,10 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
850
850
  WebhookIdentityType2["APP"] = "APP";
851
851
  return WebhookIdentityType2;
852
852
  })(WebhookIdentityType || {});
853
- async function getCurrentCart2() {
853
+ async function getCurrentCart() {
854
854
  const { httpClient, sideEffects } = arguments[0];
855
855
  const payload = renameKeysFromSDKRequestToRESTRequest({});
856
- const reqOpts = getCurrentCart(payload);
856
+ const reqOpts = currentCartGetCurrentCart(payload);
857
857
  sideEffects?.onSiteCall?.();
858
858
  try {
859
859
  const result = await httpClient.request(reqOpts);
@@ -1332,7 +1332,7 @@ export {
1332
1332
  createCheckoutFromCurrentCart2 as createCheckoutFromCurrentCart,
1333
1333
  deleteCurrentCart2 as deleteCurrentCart,
1334
1334
  estimateCurrentCartTotals2 as estimateCurrentCartTotals,
1335
- getCurrentCart2 as getCurrentCart,
1335
+ getCurrentCart,
1336
1336
  removeCouponFromCurrentCart2 as removeCouponFromCurrentCart,
1337
1337
  removeLineItemsFromCurrentCart2 as removeLineItemsFromCurrentCart,
1338
1338
  updateCurrentCart2 as updateCurrentCart,