@elasticpath/js-sdk 11.1.1 → 13.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/README.md CHANGED
@@ -350,4 +350,4 @@ You can learn more about the Rollup API and configuration [here](https://github.
350
350
  ## Terms And Conditions
351
351
 
352
352
  - Any changes to this project must be reviewed and approved by the repository owner.
353
- - For more information about the license, see [MIT License](https://github.com/elasticpath/js-sdk/blob/main/LICENSE).
353
+ - For more information about the license, see [MIT License](https://github.com/elasticpath/js-sdk/blob/main/LICENSE).
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 = "11.1.1";
533
+ var version = "13.0.0";
534
534
 
535
535
  var LocalStorageFactory = /*#__PURE__*/function () {
536
536
  function LocalStorageFactory() {
@@ -4667,6 +4667,7 @@ var InventoryLocationsEndpoint = /*#__PURE__*/function () {
4667
4667
  value: function Update(locationId, body) {
4668
4668
  return this.request.send("".concat(this.endpoint, "/").concat(locationId), 'PUT', {
4669
4669
  type: 'inventory_location',
4670
+ id: locationId,
4670
4671
  attributes: body
4671
4672
  });
4672
4673
  }
package/dist/index.d.ts CHANGED
@@ -7977,7 +7977,7 @@ interface Condition {
7977
7977
  interface RulePromotionBase {
7978
7978
  type: 'rule_promotion'
7979
7979
  name: string
7980
- description: string
7980
+ description?: string
7981
7981
  enabled: boolean
7982
7982
  automatic?: boolean
7983
7983
  start: string
@@ -8522,7 +8522,7 @@ interface Location extends Identifiable, LocationBase {}
8522
8522
 
8523
8523
  interface CreateLocationBody extends LocationAttributes {}
8524
8524
 
8525
- interface UpdateLocationBody extends Identifiable, LocationAttributes {}
8525
+ interface UpdateLocationBody extends LocationAttributes {}
8526
8526
 
8527
8527
  /**
8528
8528
  * Location Endpoints
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 = "11.1.1";
522
+ var version = "13.0.0";
523
523
 
524
524
  var LocalStorageFactory = /*#__PURE__*/function () {
525
525
  function LocalStorageFactory() {
@@ -4656,6 +4656,7 @@ var InventoryLocationsEndpoint = /*#__PURE__*/function () {
4656
4656
  value: function Update(locationId, body) {
4657
4657
  return this.request.send("".concat(this.endpoint, "/").concat(locationId), 'PUT', {
4658
4658
  type: 'inventory_location',
4659
+ id: locationId,
4659
4660
  attributes: body
4660
4661
  });
4661
4662
  }
package/dist/index.js CHANGED
@@ -1085,7 +1085,7 @@
1085
1085
  globalThis.Response = browserPonyfill.exports.Response;
1086
1086
  }
1087
1087
 
1088
- var version = "11.1.1";
1088
+ var version = "13.0.0";
1089
1089
 
1090
1090
  var LocalStorageFactory = /*#__PURE__*/function () {
1091
1091
  function LocalStorageFactory() {
@@ -5828,6 +5828,7 @@
5828
5828
  value: function Update(locationId, body) {
5829
5829
  return this.request.send("".concat(this.endpoint, "/").concat(locationId), 'PUT', {
5830
5830
  type: 'inventory_location',
5831
+ id: locationId,
5831
5832
  attributes: body
5832
5833
  });
5833
5834
  }
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": "11.1.1",
4
+ "version": "13.0.0",
5
5
  "homepage": "https://github.com/elasticpath/js-sdk",
6
6
  "author": "Elastic Path (https://elasticpath.com/)",
7
7
  "files": [