@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
@@ -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,