@elasticpath/js-sdk 29.5.0 → 30.0.0

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.
package/dist/index.cjs.js CHANGED
@@ -530,7 +530,7 @@ if (!globalThis.fetch) {
530
530
  globalThis.Response = fetch$1.Response;
531
531
  }
532
532
 
533
- var version = "29.5.0";
533
+ var version = "30.0.0";
534
534
 
535
535
  var LocalStorageFactory = /*#__PURE__*/function () {
536
536
  function LocalStorageFactory() {
package/dist/index.d.ts CHANGED
@@ -3389,6 +3389,7 @@ interface CartSettings {
3389
3389
  discounts?: {
3390
3390
  custom_discounts_enabled?: boolean
3391
3391
  }
3392
+ show_all_carts: boolean
3392
3393
  }
3393
3394
 
3394
3395
  interface SubscriptionSettings {
@@ -3443,6 +3444,7 @@ interface SettingsEndpoint {
3443
3444
  * DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/settings/cart-settings.html#put-cart-settings
3444
3445
  * @param body.type - The type is settings.
3445
3446
  * @param body.cart_expiry_days - The number of days in which the cart will expire.
3447
+ * @param body.show_all_carts - When true, admins (users with admin scope) can retrieve all carts in the store via GET /v2/carts, regardless of customer or account associations. When false, admins can only see carts that are registered (associated with customers or accounts).
3446
3448
  */
3447
3449
  UpdateCart(body: CartSettings): Promise<Resource<CartSettings>>
3448
3450
 
@@ -3456,7 +3458,9 @@ interface SettingsEndpoint {
3456
3458
  * Update Subscriptions Settings
3457
3459
  * Description: You can update the Subscriptions Settings using this endpoint
3458
3460
  */
3459
- UpdateSubscriptions(body: SubscriptionSettings): Promise<Resource<SubscriptionSettings>>
3461
+ UpdateSubscriptions(
3462
+ body: SubscriptionSettings
3463
+ ): Promise<Resource<SubscriptionSettings>>
3460
3464
 
3461
3465
  /**
3462
3466
  * Get Promotions Settings
package/dist/index.esm.js CHANGED
@@ -519,7 +519,7 @@ if (!globalThis.fetch) {
519
519
  globalThis.Response = Response;
520
520
  }
521
521
 
522
- var version = "29.5.0";
522
+ var version = "30.0.0";
523
523
 
524
524
  var LocalStorageFactory = /*#__PURE__*/function () {
525
525
  function LocalStorageFactory() {
package/dist/index.js CHANGED
@@ -1085,7 +1085,7 @@
1085
1085
  globalThis.Response = browserPonyfill.exports.Response;
1086
1086
  }
1087
1087
 
1088
- var version = "29.5.0";
1088
+ var version = "30.0.0";
1089
1089
 
1090
1090
  var LocalStorageFactory = /*#__PURE__*/function () {
1091
1091
  function LocalStorageFactory() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elasticpath/js-sdk",
3
3
  "description": "SDK for the Elastic Path eCommerce API",
4
- "version": "29.5.0",
4
+ "version": "30.0.0",
5
5
  "homepage": "https://github.com/elasticpath/js-sdk",
6
6
  "author": "Elastic Path (https://elasticpath.com/)",
7
7
  "files": [