@elasticpath/js-sdk 19.0.1 → 20.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 = "19.0.1";
533
+ var version = "20.0.0";
534
534
 
535
535
  var LocalStorageFactory = /*#__PURE__*/function () {
536
536
  function LocalStorageFactory() {
@@ -4377,6 +4377,11 @@ var RulePromotionsEndpoint = /*#__PURE__*/function (_CRUDExtend) {
4377
4377
  filter: filter
4378
4378
  }), 'GET', undefined, undefined, this);
4379
4379
  }
4380
+ }, {
4381
+ key: "CancelJob",
4382
+ value: function CancelJob(promotionId, jobId) {
4383
+ return this.request.send("".concat(this.endpoint, "/").concat(promotionId, "/jobs/").concat(jobId, "/cancel"), 'POST');
4384
+ }
4380
4385
  }, {
4381
4386
  key: "AddCodes",
4382
4387
  value: function AddCodes(promotionId, codes) {
package/dist/index.d.ts CHANGED
@@ -8110,6 +8110,8 @@ interface RulePromotionsEndpoint
8110
8110
  body: RulePromotionCodesJob
8111
8111
  ): Promise<Resource<RulePromotionJob>>
8112
8112
 
8113
+ CancelJob(promotionId: string, jobId: string): Promise<{}>
8114
+
8113
8115
  DeleteCode(promotionId: string, codeId: string): Promise<{}>
8114
8116
 
8115
8117
  DeleteCodes(
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 = "19.0.1";
522
+ var version = "20.0.0";
523
523
 
524
524
  var LocalStorageFactory = /*#__PURE__*/function () {
525
525
  function LocalStorageFactory() {
@@ -4366,6 +4366,11 @@ var RulePromotionsEndpoint = /*#__PURE__*/function (_CRUDExtend) {
4366
4366
  filter: filter
4367
4367
  }), 'GET', undefined, undefined, this);
4368
4368
  }
4369
+ }, {
4370
+ key: "CancelJob",
4371
+ value: function CancelJob(promotionId, jobId) {
4372
+ return this.request.send("".concat(this.endpoint, "/").concat(promotionId, "/jobs/").concat(jobId, "/cancel"), 'POST');
4373
+ }
4369
4374
  }, {
4370
4375
  key: "AddCodes",
4371
4376
  value: function AddCodes(promotionId, codes) {
package/dist/index.js CHANGED
@@ -1085,7 +1085,7 @@
1085
1085
  globalThis.Response = browserPonyfill.exports.Response;
1086
1086
  }
1087
1087
 
1088
- var version = "19.0.1";
1088
+ var version = "20.0.0";
1089
1089
 
1090
1090
  var LocalStorageFactory = /*#__PURE__*/function () {
1091
1091
  function LocalStorageFactory() {
@@ -5538,6 +5538,11 @@
5538
5538
  filter: filter
5539
5539
  }), 'GET', undefined, undefined, this);
5540
5540
  }
5541
+ }, {
5542
+ key: "CancelJob",
5543
+ value: function CancelJob(promotionId, jobId) {
5544
+ return this.request.send("".concat(this.endpoint, "/").concat(promotionId, "/jobs/").concat(jobId, "/cancel"), 'POST');
5545
+ }
5541
5546
  }, {
5542
5547
  key: "AddCodes",
5543
5548
  value: function AddCodes(promotionId, codes) {
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": "19.0.1",
4
+ "version": "20.0.0",
5
5
  "homepage": "https://github.com/elasticpath/js-sdk",
6
6
  "author": "Elastic Path (https://elasticpath.com/)",
7
7
  "files": [