@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.
@@ -3131,7 +3131,7 @@ declare function onCartCreated(handler: (event: CartCreatedEnvelope) => void | P
3131
3131
  * Retrieves the current site visitor's cart.
3132
3132
  *
3133
3133
  * >**Note:**
3134
- * >This method requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
3134
+ * >This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
3135
3135
  * @public
3136
3136
  * @permissionId ECOM.READ_CARTS
3137
3137
  * @applicableIdentity APP
@@ -3144,7 +3144,7 @@ declare function getCurrentCart(): Promise<NonNullablePaths<Cart, `lineItems` |
3144
3144
  *
3145
3145
  * >**Notes:**
3146
3146
  * >+ When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
3147
- * >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
3147
+ * >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
3148
3148
  * >+ 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.
3149
3149
  * @public
3150
3150
  * @requiredField options.lineItems.catalogReference
@@ -3186,7 +3186,7 @@ interface UpdateCurrentCartOptions {
3186
3186
  *
3187
3187
  * >**Notes:**
3188
3188
  * >+ When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
3189
- * >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
3189
+ * >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
3190
3190
  * >+ 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.
3191
3191
  * @public
3192
3192
  * @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);