@elasticpath/js-sdk 33.3.0 → 33.4.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 = "33.3.0";
533
+ var version = "33.4.0";
534
534
 
535
535
  var LocalStorageFactory = /*#__PURE__*/function () {
536
536
  function LocalStorageFactory() {
@@ -5372,7 +5372,7 @@ var Releases = /*#__PURE__*/function (_CRUDExtend3) {
5372
5372
  var catalogId = _ref13.catalogId,
5373
5373
  _ref13$token = _ref13.token,
5374
5374
  token = _ref13$token === void 0 ? null : _ref13$token;
5375
- return this.request.send("catalogs/".concat(this.endpoint, "/").concat(catalogId), 'GET', undefined, token);
5375
+ return this.request.send("catalogs/".concat(catalogId, "/").concat(this.endpoint), 'GET', undefined, token);
5376
5376
  }
5377
5377
  }, {
5378
5378
  key: "Get",
@@ -5406,6 +5406,23 @@ var Releases = /*#__PURE__*/function (_CRUDExtend3) {
5406
5406
  token = _ref16$token === void 0 ? null : _ref16$token;
5407
5407
  return this.request.send("catalogs/".concat(catalogId, "/").concat(this.endpoint), 'POST', body, token);
5408
5408
  }
5409
+ }, {
5410
+ key: "Delete",
5411
+ value: function Delete(_ref17) {
5412
+ var catalogId = _ref17.catalogId,
5413
+ releaseId = _ref17.releaseId,
5414
+ _ref17$token = _ref17.token,
5415
+ token = _ref17$token === void 0 ? null : _ref17$token;
5416
+ return this.request.send("catalogs/".concat(catalogId, "/").concat(this.endpoint, "/").concat(releaseId), 'DELETE', undefined, token);
5417
+ }
5418
+ }, {
5419
+ key: "DeleteAll",
5420
+ value: function DeleteAll(_ref18) {
5421
+ var catalogId = _ref18.catalogId,
5422
+ _ref18$token = _ref18.token,
5423
+ token = _ref18$token === void 0 ? null : _ref18$token;
5424
+ return this.request.send("catalogs/".concat(catalogId, "/").concat(this.endpoint), 'DELETE', undefined, token);
5425
+ }
5409
5426
  }]);
5410
5427
  return Releases;
5411
5428
  }(CRUDExtend);
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 = "33.3.0";
522
+ var version = "33.4.0";
523
523
 
524
524
  var LocalStorageFactory = /*#__PURE__*/function () {
525
525
  function LocalStorageFactory() {
@@ -5361,7 +5361,7 @@ var Releases = /*#__PURE__*/function (_CRUDExtend3) {
5361
5361
  var catalogId = _ref13.catalogId,
5362
5362
  _ref13$token = _ref13.token,
5363
5363
  token = _ref13$token === void 0 ? null : _ref13$token;
5364
- return this.request.send("catalogs/".concat(this.endpoint, "/").concat(catalogId), 'GET', undefined, token);
5364
+ return this.request.send("catalogs/".concat(catalogId, "/").concat(this.endpoint), 'GET', undefined, token);
5365
5365
  }
5366
5366
  }, {
5367
5367
  key: "Get",
@@ -5395,6 +5395,23 @@ var Releases = /*#__PURE__*/function (_CRUDExtend3) {
5395
5395
  token = _ref16$token === void 0 ? null : _ref16$token;
5396
5396
  return this.request.send("catalogs/".concat(catalogId, "/").concat(this.endpoint), 'POST', body, token);
5397
5397
  }
5398
+ }, {
5399
+ key: "Delete",
5400
+ value: function Delete(_ref17) {
5401
+ var catalogId = _ref17.catalogId,
5402
+ releaseId = _ref17.releaseId,
5403
+ _ref17$token = _ref17.token,
5404
+ token = _ref17$token === void 0 ? null : _ref17$token;
5405
+ return this.request.send("catalogs/".concat(catalogId, "/").concat(this.endpoint, "/").concat(releaseId), 'DELETE', undefined, token);
5406
+ }
5407
+ }, {
5408
+ key: "DeleteAll",
5409
+ value: function DeleteAll(_ref18) {
5410
+ var catalogId = _ref18.catalogId,
5411
+ _ref18$token = _ref18.token,
5412
+ token = _ref18$token === void 0 ? null : _ref18$token;
5413
+ return this.request.send("catalogs/".concat(catalogId, "/").concat(this.endpoint), 'DELETE', undefined, token);
5414
+ }
5398
5415
  }]);
5399
5416
  return Releases;
5400
5417
  }(CRUDExtend);
package/dist/index.js CHANGED
@@ -1085,7 +1085,7 @@
1085
1085
  globalThis.Response = browserPonyfill.exports.Response;
1086
1086
  }
1087
1087
 
1088
- var version = "33.3.0";
1088
+ var version = "33.4.0";
1089
1089
 
1090
1090
  var LocalStorageFactory = /*#__PURE__*/function () {
1091
1091
  function LocalStorageFactory() {
@@ -6533,7 +6533,7 @@
6533
6533
  var catalogId = _ref13.catalogId,
6534
6534
  _ref13$token = _ref13.token,
6535
6535
  token = _ref13$token === void 0 ? null : _ref13$token;
6536
- return this.request.send("catalogs/".concat(this.endpoint, "/").concat(catalogId), 'GET', undefined, token);
6536
+ return this.request.send("catalogs/".concat(catalogId, "/").concat(this.endpoint), 'GET', undefined, token);
6537
6537
  }
6538
6538
  }, {
6539
6539
  key: "Get",
@@ -6567,6 +6567,23 @@
6567
6567
  token = _ref16$token === void 0 ? null : _ref16$token;
6568
6568
  return this.request.send("catalogs/".concat(catalogId, "/").concat(this.endpoint), 'POST', body, token);
6569
6569
  }
6570
+ }, {
6571
+ key: "Delete",
6572
+ value: function Delete(_ref17) {
6573
+ var catalogId = _ref17.catalogId,
6574
+ releaseId = _ref17.releaseId,
6575
+ _ref17$token = _ref17.token,
6576
+ token = _ref17$token === void 0 ? null : _ref17$token;
6577
+ return this.request.send("catalogs/".concat(catalogId, "/").concat(this.endpoint, "/").concat(releaseId), 'DELETE', undefined, token);
6578
+ }
6579
+ }, {
6580
+ key: "DeleteAll",
6581
+ value: function DeleteAll(_ref18) {
6582
+ var catalogId = _ref18.catalogId,
6583
+ _ref18$token = _ref18.token,
6584
+ token = _ref18$token === void 0 ? null : _ref18$token;
6585
+ return this.request.send("catalogs/".concat(catalogId, "/").concat(this.endpoint), 'DELETE', undefined, token);
6586
+ }
6570
6587
  }]);
6571
6588
  return Releases;
6572
6589
  }(CRUDExtend);
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": "33.3.0",
4
+ "version": "33.4.0",
5
5
  "homepage": "https://github.com/elasticpath/js-sdk",
6
6
  "author": "Elastic Path (https://elasticpath.com/)",
7
7
  "files": [