@elasticpath/js-sdk 19.0.0 → 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.0";
533
+ var version = "20.0.0";
534
534
 
535
535
  var LocalStorageFactory = /*#__PURE__*/function () {
536
536
  function LocalStorageFactory() {
@@ -4375,7 +4375,12 @@ var RulePromotionsEndpoint = /*#__PURE__*/function (_CRUDExtend) {
4375
4375
  limit: limit,
4376
4376
  offset: offset,
4377
4377
  filter: filter
4378
- }), 'GET');
4378
+ }), 'GET', undefined, undefined, this);
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');
4379
4384
  }
4380
4385
  }, {
4381
4386
  key: "AddCodes",
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.0";
522
+ var version = "20.0.0";
523
523
 
524
524
  var LocalStorageFactory = /*#__PURE__*/function () {
525
525
  function LocalStorageFactory() {
@@ -4364,7 +4364,12 @@ var RulePromotionsEndpoint = /*#__PURE__*/function (_CRUDExtend) {
4364
4364
  limit: limit,
4365
4365
  offset: offset,
4366
4366
  filter: filter
4367
- }), 'GET');
4367
+ }), 'GET', undefined, undefined, this);
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');
4368
4373
  }
4369
4374
  }, {
4370
4375
  key: "AddCodes",
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.0";
1088
+ var version = "20.0.0";
1089
1089
 
1090
1090
  var LocalStorageFactory = /*#__PURE__*/function () {
1091
1091
  function LocalStorageFactory() {
@@ -5536,7 +5536,12 @@
5536
5536
  limit: limit,
5537
5537
  offset: offset,
5538
5538
  filter: filter
5539
- }), 'GET');
5539
+ }), 'GET', undefined, undefined, this);
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');
5540
5545
  }
5541
5546
  }, {
5542
5547
  key: "AddCodes",
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.0",
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": [