notification-processor 4.13.0 → 4.14.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.
@@ -59,11 +59,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
59
59
  observable.on("started", function (payload) {
60
60
  return _this.uploadTrackingFile(payload, "started");
61
61
  });
62
- observable.on("finished", function (payload) {
63
- return _this.uploadTrackingFile(payload, "finished");
64
- });
65
- return observable.on("success", function (payload) {
66
- return _this.uploadTrackingFile(payload, "success");
62
+ return observable.on("successful", function (payload) {
63
+ return _this.uploadTrackingFile(payload, "successful");
67
64
  });
68
65
  }
69
66
  }, {
@@ -121,10 +118,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
121
118
 
122
119
  var ref1, ref2;
123
120
  return {
124
- key: user + "/" + notification.message.EventId + "/" + _this3.app + "|" + _this3.job + "|" + eventType + "|" + new Date().toISOString(),
121
+ key: user + "/" + notification.message.EventId + "/" + id + "/" + _this3.app + "|" + _this3.job + "|" + eventType + "|" + new Date().toISOString(),
125
122
  body: JSON.stringify({
126
123
  eventId: notification != null ? (ref1 = notification.message) != null ? ref1.EventId : void 0 : void 0,
127
124
  parentEventId: (notification != null ? (ref2 = notification.message) != null ? ref2.ParentEventId : void 0 : void 0) || null,
125
+ executionId: id,
128
126
  date: new Date().toISOString(),
129
127
  resource: "" + resource,
130
128
  notification: notification,