@elasticpath/js-sdk 33.3.1 → 33.4.1

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.1";
533
+ var version = "33.4.1";
534
534
 
535
535
  var LocalStorageFactory = /*#__PURE__*/function () {
536
536
  function LocalStorageFactory() {
@@ -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.d.ts CHANGED
@@ -5853,6 +5853,17 @@ interface CatalogsReleasesEndpoint {
5853
5853
  token?: string
5854
5854
  }): Promise<Resource<ReleaseBase>>
5855
5855
 
5856
+ Delete(options: {
5857
+ catalogId: string
5858
+ releaseId: string
5859
+ token?: string
5860
+ }): Promise<{}>
5861
+
5862
+ DeleteAll(options: {
5863
+ catalogId: string
5864
+ token?: string
5865
+ }): Promise<{}>
5866
+
5856
5867
  Limit(value: number): CatalogsReleasesEndpoint
5857
5868
 
5858
5869
  Offset(value: number): CatalogsReleasesEndpoint
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.1";
522
+ var version = "33.4.1";
523
523
 
524
524
  var LocalStorageFactory = /*#__PURE__*/function () {
525
525
  function LocalStorageFactory() {
@@ -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.1";
1088
+ var version = "33.4.1";
1089
1089
 
1090
1090
  var LocalStorageFactory = /*#__PURE__*/function () {
1091
1091
  function LocalStorageFactory() {
@@ -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.1",
4
+ "version": "33.4.1",
5
5
  "homepage": "https://github.com/elasticpath/js-sdk",
6
6
  "author": "Elastic Path (https://elasticpath.com/)",
7
7
  "files": [