@elasticpath/js-sdk 12.0.0 → 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/dist/index.cjs.js +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
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 = "
|
|
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
|
@@ -8522,7 +8522,7 @@ interface Location extends Identifiable, LocationBase {}
|
|
|
8522
8522
|
|
|
8523
8523
|
interface CreateLocationBody extends LocationAttributes {}
|
|
8524
8524
|
|
|
8525
|
-
interface UpdateLocationBody extends
|
|
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 = "
|
|
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 = "
|
|
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