@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
@@ -51,7 +51,7 @@ __export(index_typings_exports, {
51
51
  createCheckoutFromCurrentCart: () => createCheckoutFromCurrentCart2,
52
52
  deleteCurrentCart: () => deleteCurrentCart2,
53
53
  estimateCurrentCartTotals: () => estimateCurrentCartTotals2,
54
- getCurrentCart: () => getCurrentCart2,
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 getCurrentCart(payload) {
186
- function __getCurrentCart({ host }) {
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 __getCurrentCart;
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 getCurrentCart2() {
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 = getCurrentCart(payload);
914
+ const reqOpts = currentCartGetCurrentCart(payload);
915
915
  sideEffects?.onSiteCall?.();
916
916
  try {
917
917
  const result = await httpClient.request(reqOpts);