notification-processor 4.15.1 → 4.16.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.
@@ -6,7 +6,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
6
6
 
7
7
  // Generated by CoffeeScript 2.7.0
8
8
  (function () {
9
- var AWS, MonitoringCenterObserver, Promise, _, debug, retry;
9
+ var AWS, MonitoringCenterObserver, Promise, _, debug, moment, retry;
10
10
 
11
11
  _ = require("lodash");
12
12
 
@@ -18,6 +18,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
18
18
 
19
19
  AWS = require("aws-sdk");
20
20
 
21
+ moment = require("moment");
22
+
21
23
  module.exports = MonitoringCenterObserver = function () {
22
24
  function MonitoringCenterObserver(_ref) {
23
25
  var sender = _ref.sender,
@@ -29,7 +31,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
29
31
  _ref$connection = _ref.connection,
30
32
  accessKeyId = _ref$connection.accessKeyId,
31
33
  secretAccessKey = _ref$connection.secretAccessKey,
32
- monitoringCenterBucket = _ref$connection.monitoringCenterBucket,
34
+ deliveryStream = _ref$connection.deliveryStream,
33
35
  region = _ref$connection.region;
34
36
 
35
37
  _classCallCheck(this, MonitoringCenterObserver);
@@ -40,9 +42,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
40
42
  this.app = app;
41
43
  this.job = job;
42
44
  this.propertiesToOmit = propertiesToOmit;
43
- this.s3 = new AWS.S3({ accessKeyId: accessKeyId, secretAccessKey: secretAccessKey, region: region });
44
- this.bucket = monitoringCenterBucket;
45
- this.uploadToS3 = Promise.promisify(this.s3.upload).bind(this.s3);
45
+ this.deliveryStream = deliveryStream;
46
+ this.firehose = new AWS.Firehose({ accessKeyId: accessKeyId, secretAccessKey: secretAccessKey, region: region });
47
+ this.uploadToFirehose = Promise.promisify(this.firehose.putRecord).bind(this.firehose);
46
48
  }
47
49
 
48
50
  _createClass(MonitoringCenterObserver, [{
@@ -57,7 +59,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
57
59
  return _this.uploadTrackingFile(payload, "unsuccessful");
58
60
  });
59
61
  observable.on("started", function (payload) {
60
- return _this.uploadTrackingFile(payload, "started");
62
+ return _this.uploadTrackingFile(payload, "pending");
61
63
  });
62
64
  return observable.on("successful", function (payload) {
63
65
  return _this.uploadTrackingFile(payload, "successful");
@@ -72,30 +74,28 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
72
74
  notification = _ref2.notification,
73
75
  error = _ref2.error;
74
76
 
75
- return this._mapper(id, notification, error, eventType).then(function (_ref3) {
76
- var key = _ref3.key,
77
- body = _ref3.body;
78
-
79
- var __uploadToS3, uploadParams;
80
- if (!key || !body) {
77
+ return this._mapper(id, notification, error, eventType).then(function (record) {
78
+ var __uploadToFirehose, uploadParams;
79
+ if (_.isEmpty(record)) {
81
80
  return;
82
81
  }
83
82
  uploadParams = {
84
- Bucket: _this2.bucket,
85
- Key: key,
86
- Body: body
83
+ DeliveryStreamName: _this2.deliveryStream,
84
+ Record: {
85
+ Data: JSON.stringify(record)
86
+ }
87
87
  };
88
- debug("Uploading file " + uploadParams.Key + " to bucket " + uploadParams.Bucket);
89
- __uploadToS3 = function __uploadToS3() {
90
- return _this2.uploadToS3(uploadParams);
88
+ debug("Uploading file " + record.event + " to firehose delivery stream " + uploadParams.DeliveryStreamName);
89
+ __uploadToFirehose = function __uploadToFirehose() {
90
+ return _this2.uploadToFirehose(uploadParams);
91
91
  };
92
- return retry(__uploadToS3, {
92
+ return retry(__uploadToFirehose, {
93
93
  throw_original: true
94
94
  }).tap(function () {
95
- return debug("Uploaded file " + uploadParams.Key + " to bucket " + uploadParams.Bucket);
95
+ return debug("Uploaded file " + record.event + " to firehose delivery stream " + uploadParams.DeliveryStreamName);
96
96
  }).catch(function (e) {
97
97
  // We'll do nothing with this error
98
- return debug("Error uploading file " + uploadParams.Key + " to bucket " + uploadParams.Bucket + " %o", e);
98
+ return debug("Error uploading file " + record.event + " to firehose delivery stream " + uploadParams.DeliveryStreamName + " %o", e);
99
99
  });
100
100
  });
101
101
  }
@@ -112,21 +112,29 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
112
112
  return Promise.props({
113
113
  resource: Promise.method(this.sender.resource)(notification),
114
114
  user: Promise.method(this.sender.user)(notification)
115
- }).then(function (_ref4) {
116
- var resource = _ref4.resource,
117
- user = _ref4.user;
115
+ }).then(function (_ref3) {
116
+ var resource = _ref3.resource,
117
+ user = _ref3.user;
118
118
 
119
- var ref1, ref2;
119
+ var now, ref1, ref2;
120
+ now = new Date();
120
121
  return {
121
- key: user + "/" + notification.message.EventId + "/" + id + "/" + _this3.app + "|" + _this3.job + "|" + eventType + "|" + new Date().toISOString(),
122
- body: JSON.stringify({
123
- eventId: notification != null ? (ref1 = notification.message) != null ? ref1.EventId : void 0 : void 0,
124
- parentEventId: (notification != null ? (ref2 = notification.message) != null ? ref2.ParentEventId : void 0 : void 0) || null,
125
- executionId: id,
126
- date: new Date().toISOString(),
127
- resource: "" + resource,
128
- notification: notification,
129
- user: "" + user,
122
+ id: id,
123
+ executionId: id,
124
+ app: parseInt(_this3.clientId),
125
+ type: "service-bus",
126
+ company: "" + user,
127
+ user: null, //TODO: Chequear si podemos completar esto
128
+ event: notification != null ? (ref1 = notification.message) != null ? ref1.EventId : void 0 : void 0,
129
+ parent: (notification != null ? (ref2 = notification.message) != null ? ref2.ParentEventId : void 0 : void 0) || null,
130
+ externalreference: null,
131
+ timestamp: now.getTime(),
132
+ date: now.toISOString(),
133
+ year: moment(now).format('YYYY'),
134
+ month: moment(now).format('MM'),
135
+ day: moment(now).format('DD'),
136
+ hour: moment(now).format('HH'),
137
+ payload: JSON.stringify({
130
138
  clientId: _this3.clientId,
131
139
  job: _this3.job,
132
140
  app: _this3.app,
@@ -134,7 +142,16 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
134
142
  request: _.omit(theRequest, _.castArray(_this3.propertiesToOmit).concat("auth")),
135
143
  type: _.get(err, "type", "unknown_error"),
136
144
  tags: _.get(err, "tags", [])
137
- })
145
+ }),
146
+ status: eventType,
147
+ resource: resource,
148
+ integration: _this3.app + "|" + _this3.job,
149
+ // Generic app fields
150
+ event_timestamp: null, //TODO
151
+ output_message: null, //TODO
152
+ user_settings_version: null, //TODO
153
+ env_version: null, //TODO
154
+ code_version: null //TODO
138
155
  };
139
156
  });
140
157
  }
@@ -0,0 +1,790 @@
1
+ {
2
+ "auto_complete":
3
+ {
4
+ "selected_items":
5
+ [
6
+ [
7
+ "has",
8
+ "hasStocksSynchroEnabled"
9
+ ],
10
+ [
11
+ "wron",
12
+ "wrongPriceMesage"
13
+ ],
14
+ [
15
+ "resou",
16
+ "resourceId"
17
+ ],
18
+ [
19
+ "prod",
20
+ "productId"
21
+ ],
22
+ [
23
+ "sales",
24
+ "salesOrder"
25
+ ],
26
+ [
27
+ "resour",
28
+ "resourceId"
29
+ ]
30
+ ]
31
+ },
32
+ "buffers":
33
+ [
34
+ {
35
+ "contents": "_ = require \"lodash\"\nPromise = require \"bluebird\"\nretry = require \"bluebird-retry\"\ndebug = require(\"debug\") \"notification-processor:observers:monitor-center\"\nAWS = require \"aws-sdk\"\n\nmodule.exports = \n class MonitoringCenterObserver\n\n constructor: ({ @sender, @clientId, @app, @job, @propertiesToOmit = \"auth\", connection : { accessKeyId, secretAccessKey, monitoringCenterBucket, region } }) ->\n @s3 = new AWS.S3 { accessKeyId, secretAccessKey, region }\n @bucket = monitoringCenterBucket\n @uploadToS3 = Promise.promisify(@s3.upload).bind(@s3)\n \n listenTo: (observable) ->\n observable.on \"unsuccessful_non_retryable\", (payload) => @uploadTrackingFile(payload, \"unsuccessful_non_retryable\")\n observable.on \"unsuccessful\", (payload) => @uploadTrackingFile(payload, \"unsuccessful\")\n observable.on \"started\", (payload) => @uploadTrackingFile(payload, \"started\")\n observable.on \"successful\", (payload) => @uploadTrackingFile(payload, \"successful\")\n\n uploadTrackingFile: ({ id, notification, error }, eventType) =>\n @_mapper id, notification, error, eventType\n .then ({ key, body }) => \n return if !key or !body\n uploadParams = {\n Bucket: @bucket, \n Key: key, \n Body: body\n }\n debug \"Uploading file #{uploadParams.Key} to bucket #{uploadParams.Bucket}\"\n __uploadToS3 = () => @uploadToS3 uploadParams\n retry __uploadToS3, { throw_original: true }\n .tap () => debug \"Uploaded file #{uploadParams.Key} to bucket #{uploadParams.Bucket}\"\n .catch (e) => # We'll do nothing with this error\n debug \"Error uploading file #{uploadParams.Key} to bucket #{uploadParams.Bucket} %o\", e\n \n \n _mapper: (id, notification, err, eventType) ->\n return Promise.resolve({ }) if !notification?.message?.EventId\n theRequest = _.get(err, \"detail.request\") || _.get(err, \"cause.detail.request\")\n Promise.props\n resource: Promise.method(@sender.resource) notification\n user: Promise.method(@sender.user) notification\n .then ({ resource, user }) => {\n key: \"#{user}/#{notification.message.EventId}/#{id}/#{@app}|#{@job}|#{eventType}|#{new Date().toISOString()}\"\n body: JSON.stringify {\n eventId: notification?.message?.EventId,\n parentEventId: notification?.message?.ParentEventId or null,\n executionId: id\n date: new Date().toISOString()\n resource: \"#{ resource }\"\n notification: notification\n companyId: \"#{ user }\"\n eventType\n payload: {\n @clientId\n @job\n @app\n error: _.omit(err, [\"detail.request\", \"cause.detail.request\"])\n request: _.omit(theRequest, _.castArray(@propertiesToOmit).concat(\"auth\"))\n type: _.get err, \"type\", \"unknown_error\"\n tags: _.get err, \"tags\", []\n }\n }\n }\n\n #event,execution,company,date,type,payload",
36
+ "file": "src/observers/monitoringCenter.observer.coffee",
37
+ "file_size": 2918,
38
+ "file_write_time": 133407379470423036,
39
+ "settings":
40
+ {
41
+ "buffer_size": 2985,
42
+ "encoding": "UTF-8",
43
+ "line_ending": "Unix"
44
+ },
45
+ "undo_stack":
46
+ [
47
+ [
48
+ 8,
49
+ 1,
50
+ "insert",
51
+ {
52
+ "characters": "#"
53
+ },
54
+ "AQAAADcLAAAAAAAAOAsAAAAAAAAAAAAA",
55
+ "AQAAAAAAAAABAAAANwsAAAAAAAA3CwAAAAAAAAAAAAAAAHlA"
56
+ ],
57
+ [
58
+ 10,
59
+ 1,
60
+ "",
61
+ null,
62
+ "AQAAADgLAAAAAAAAYQsAAAAAAAAAAAAA",
63
+ "AQAAAAAAAAABAAAAOAsAAAAAAAA4CwAAAAAAAAAAAAAAAPC/"
64
+ ],
65
+ [
66
+ 43,
67
+ 1,
68
+ "insert",
69
+ {
70
+ "characters": "companyId"
71
+ },
72
+ "CgAAAOYJAAAAAAAA5wkAAAAAAAAAAAAA5wkAAAAAAADnCQAAAAAAAAQAAAB1c2Vy5wkAAAAAAADoCQAAAAAAAAAAAADoCQAAAAAAAOkJAAAAAAAAAAAAAOkJAAAAAAAA6gkAAAAAAAAAAAAA6gkAAAAAAADrCQAAAAAAAAAAAADrCQAAAAAAAOwJAAAAAAAAAAAAAOwJAAAAAAAA7QkAAAAAAAAAAAAA7QkAAAAAAADuCQAAAAAAAAAAAADuCQAAAAAAAO8JAAAAAAAAAAAAAA",
73
+ "AQAAAAAAAAABAAAA5gkAAAAAAADqCQAAAAAAAAAAAAAAAPC/"
74
+ ],
75
+ [
76
+ 92,
77
+ 1,
78
+ "insert",
79
+ {
80
+ "characters": "\n"
81
+ },
82
+ "AgAAAPwJAAAAAAAA/QkAAAAAAAAAAAAA/QkAAAAAAAAHCgAAAAAAAAAAAAA",
83
+ "AQAAAAAAAAABAAAA/AkAAAAAAAD8CQAAAAAAAAAAAAAAAPC/"
84
+ ],
85
+ [
86
+ 93,
87
+ 1,
88
+ "paste",
89
+ null,
90
+ "AQAAAAcKAAAAAAAAEAoAAAAAAAAAAAAA",
91
+ "AQAAAAAAAAABAAAABwoAAAAAAAAHCgAAAAAAAAAAAAAAAPC/"
92
+ ],
93
+ [
94
+ 94,
95
+ 1,
96
+ "insert",
97
+ {
98
+ "characters": "\npa"
99
+ },
100
+ "BAAAABAKAAAAAAAAEQoAAAAAAAAAAAAAEQoAAAAAAAAbCgAAAAAAAAAAAAAbCgAAAAAAABwKAAAAAAAAAAAAABwKAAAAAAAAHQoAAAAAAAAAAAAA",
101
+ "AQAAAAAAAAABAAAAEAoAAAAAAAAQCgAAAAAAAAAAAAAAAPC/"
102
+ ],
103
+ [
104
+ 95,
105
+ 1,
106
+ "insert_completion",
107
+ {
108
+ "completion": "payload",
109
+ "format": "text",
110
+ "keep_prefix": false,
111
+ "must_insert": false,
112
+ "trigger": "payload"
113
+ },
114
+ "AgAAABsKAAAAAAAAGwoAAAAAAAACAAAAcGEbCgAAAAAAACIKAAAAAAAAAAAAAA",
115
+ "AQAAAAAAAAABAAAAHQoAAAAAAAAdCgAAAAAAAAAAAAAAAPC/"
116
+ ],
117
+ [
118
+ 96,
119
+ 1,
120
+ "insert",
121
+ {
122
+ "characters": "Ñ"
123
+ },
124
+ "AQAAACIKAAAAAAAAIwoAAAAAAAAAAAAA",
125
+ "AQAAAAAAAAABAAAAIgoAAAAAAAAiCgAAAAAAAAAAAAAAAPC/"
126
+ ],
127
+ [
128
+ 97,
129
+ 1,
130
+ "left_delete",
131
+ null,
132
+ "AQAAACIKAAAAAAAAIgoAAAAAAAACAAAAw5E",
133
+ "AQAAAAAAAAABAAAAIwoAAAAAAAAjCgAAAAAAAAAAAAAAAPC/"
134
+ ],
135
+ [
136
+ 98,
137
+ 1,
138
+ "insert",
139
+ {
140
+ "characters": ":"
141
+ },
142
+ "AQAAACIKAAAAAAAAIwoAAAAAAAAAAAAA",
143
+ "AQAAAAAAAAABAAAAIgoAAAAAAAAiCgAAAAAAAAAAAAAAAPC/"
144
+ ],
145
+ [
146
+ 99,
147
+ 1,
148
+ "insert",
149
+ {
150
+ "characters": " "
151
+ },
152
+ "AQAAACMKAAAAAAAAJAoAAAAAAAAAAAAA",
153
+ "AQAAAAAAAAABAAAAIwoAAAAAAAAjCgAAAAAAAAAAAAAAAPC/"
154
+ ],
155
+ [
156
+ 100,
157
+ 1,
158
+ "insert_snippet",
159
+ {
160
+ "contents": "{$0}"
161
+ },
162
+ "AQAAACQKAAAAAAAAJgoAAAAAAAAAAAAA",
163
+ "AQAAAAAAAAABAAAAJAoAAAAAAAAkCgAAAAAAAAAAAAAAAPC/"
164
+ ],
165
+ [
166
+ 101,
167
+ 1,
168
+ "run_macro_file",
169
+ {
170
+ "file": "res://Packages/Default/Add Line in Braces.sublime-macro"
171
+ },
172
+ "BgAAACUKAAAAAAAAJgoAAAAAAAAAAAAAJgoAAAAAAAAwCgAAAAAAAAAAAAAwCgAAAAAAADEKAAAAAAAAAAAAADEKAAAAAAAAOwoAAAAAAAAAAAAAJgoAAAAAAAAmCgAAAAAAAAoAAAAgICAgICAgICAgJgoAAAAAAAAyCgAAAAAAAAAAAAA",
173
+ "AQAAAAAAAAABAAAAJQoAAAAAAAAlCgAAAAAAAAAAAAAAAPC/"
174
+ ],
175
+ [
176
+ 104,
177
+ 1,
178
+ "swap_line_up",
179
+ null,
180
+ "AgAAAD8KAAAAAAAAPwoAAAAAAAApAQAAICAgICAgICAgIEBjbGllbnRJZAogICAgICAgICAgQGpvYgogICAgICAgICAgQGFwcAogICAgICAgICAgZXJyb3I6IF8ub21pdChlcnIsIFsiZGV0YWlsLnJlcXVlc3QiLCAiY2F1c2UuZGV0YWlsLnJlcXVlc3QiXSkKICAgICAgICAgIHJlcXVlc3Q6IF8ub21pdCh0aGVSZXF1ZXN0LCBfLmNhc3RBcnJheShAcHJvcGVydGllc1RvT21pdCkuY29uY2F0KCJhdXRoIikpCiAgICAgICAgICB0eXBlOiBfLmdldCBlcnIsICJ0eXBlIiwgInVua25vd25fZXJyb3IiCiAgICAgICAgICB0YWdzOiBfLmdldCBlcnIsICJ0YWdzIiwgW10KMwoAAAAAAABcCwAAAAAAAAAAAAA",
181
+ "AQAAAAAAAAABAAAASwoAAAAAAABOCwAAAAAAAAAAAAAAAFhA"
182
+ ],
183
+ [
184
+ 105,
185
+ 1,
186
+ "indent",
187
+ null,
188
+ "BwAAADMKAAAAAAAANQoAAAAAAAAAAAAASQoAAAAAAABLCgAAAAAAAAAAAABaCgAAAAAAAFwKAAAAAAAAAAAAAGsKAAAAAAAAbQoAAAAAAAAAAAAAtgoAAAAAAAC4CgAAAAAAAAAAAAANCwAAAAAAAA8LAAAAAAAAAAAAAEILAAAAAAAARAsAAAAAAAAAAAAA",
189
+ "AQAAAAAAAAABAAAAPwoAAAAAAABCCwAAAAAAAAAAAAAAAFhA"
190
+ ],
191
+ [
192
+ 108,
193
+ 2,
194
+ "right_delete",
195
+ null,
196
+ "AgAAACYKAAAAAAAAJgoAAAAAAAAMAAAAICAgICAgICAgICAgJgoAAAAAAAAmCgAAAAAAAAEAAAAK",
197
+ "AQAAAAAAAAABAAAAMgoAAAAAAAAmCgAAAAAAAAAAAAAAAAAA"
198
+ ]
199
+ ]
200
+ },
201
+ {
202
+ "contents": "kubectl describe vpa/web-client-vpa\n",
203
+ "settings":
204
+ {
205
+ "buffer_size": 36,
206
+ "line_ending": "Unix",
207
+ "name": "kubectl describe vpa/web-client-vpa"
208
+ },
209
+ "undo_stack":
210
+ [
211
+ [
212
+ 2,
213
+ 1,
214
+ "",
215
+ null,
216
+ "AQAAAAAAAAAAAAAAIQAAAAAAAAAAAAAA",
217
+ "AQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPC/"
218
+ ],
219
+ [
220
+ 6,
221
+ 1,
222
+ "insert",
223
+ {
224
+ "characters": "web-clinet"
225
+ },
226
+ "CwAAABUAAAAAAAAAFgAAAAAAAAAAAAAAFgAAAAAAAAAWAAAAAAAAAAcAAABoYW1zdGVyFgAAAAAAAAAXAAAAAAAAAAAAAAAXAAAAAAAAABgAAAAAAAAAAAAAABgAAAAAAAAAGQAAAAAAAAAAAAAAGQAAAAAAAAAaAAAAAAAAAAAAAAAaAAAAAAAAABsAAAAAAAAAAAAAABsAAAAAAAAAHAAAAAAAAAAAAAAAHAAAAAAAAAAdAAAAAAAAAAAAAAAdAAAAAAAAAB4AAAAAAAAAAAAAAB4AAAAAAAAAHwAAAAAAAAAAAAAA",
227
+ "AQAAAAAAAAABAAAAFQAAAAAAAAAcAAAAAAAAAAAAAAAAAPC/"
228
+ ],
229
+ [
230
+ 7,
231
+ 3,
232
+ "left_delete",
233
+ null,
234
+ "AwAAAB4AAAAAAAAAHgAAAAAAAAABAAAAdB0AAAAAAAAAHQAAAAAAAAABAAAAZRwAAAAAAAAAHAAAAAAAAAABAAAAbg",
235
+ "AQAAAAAAAAABAAAAHwAAAAAAAAAfAAAAAAAAAAAAAAAAAPC/"
236
+ ],
237
+ [
238
+ 8,
239
+ 1,
240
+ "insert",
241
+ {
242
+ "characters": "ent"
243
+ },
244
+ "AwAAABwAAAAAAAAAHQAAAAAAAAAAAAAAHQAAAAAAAAAeAAAAAAAAAAAAAAAeAAAAAAAAAB8AAAAAAAAAAAAAAA",
245
+ "AQAAAAAAAAABAAAAHAAAAAAAAAAcAAAAAAAAAAAAAAAAAPC/"
246
+ ]
247
+ ]
248
+ },
249
+ {
250
+ "contents": "[\n [\n {\n \"label\": \"KM_WB_Pelvis_Velocity_ROT_TS_MS\",\n \"value\": -27.374562\n },\n {\n \"label\": \"KM_WB_Pelvis_Angle_ROT_TS_MS\",\n \"value\": -37.997072\n }\n ],\n [\n {\n \"label\": \"KM_WB_Trunk_Velocity_ROT_TS_MS\",\n \"value\": 3.046936\n },\n {\n \"label\": \"KM_WB_Trunk_Angle_ROT_TS_MS\",\n \"value\": -29.726736\n }\n ],\n [\n {\n \"label\": \"KM_WB_Trunk_Velocity_ForwardTilt_TS_MS\",\n \"value\": 14.699216\n },\n {\n \"label\": \"KM_WB_Trunk_Angle_ForwardTilt_TS_MS\",\n \"value\": 17.613006\n }\n ],\n [\n {\n \"label\": \"KM_L_Knee_Velocity_Flexion_TS_MS\",\n \"value\": -462.143335\n },\n {\n \"label\": \"KM_L_Knee_Angle_Flexion_TS_MS\",\n \"value\": 104.320967\n }\n ]\n]",
251
+ "settings":
252
+ {
253
+ "buffer_size": 921,
254
+ "line_ending": "Unix",
255
+ "name": "["
256
+ },
257
+ "undo_stack":
258
+ [
259
+ ]
260
+ },
261
+ {
262
+ "contents": "[\n [\n {\n \"label\": \"KM_WB_Pelvis_Velocity_ROT_TS_MAX\",\n \"value\": 921.886436\n },\n {\n \"label\": \"KM_WB_Pelvis_Velocity_ROT_TS_TMAX\",\n \"value\": 0.083333\n }\n ],\n [\n {\n \"label\": \"KM_WB_Trunk_Velocity_ROT_TS_MAX\",\n \"value\": 1314.512197\n },\n {\n \"label\": \"KM_WB_Trunk_Velocity_ROT_TS_TMAX\",\n \"value\": 0.066667\n }\n ],\n [\n {\n \"label\": \"KM_WB_Trunk_Velocity_ForwardTilt_TS_MAX\",\n \"value\": 654.0178\n },\n {\n \"label\": \"KM_WB_Trunk_Velocity_ForwardTilt_TS_TMAX\",\n \"value\": 0.023333\n }\n ],\n [\n {\n \"label\": \"KM_L_Knee_Velocity_Flexion_TS_MAX\",\n \"value\": 364.545248\n },\n {\n \"label\": \"KM_L_Knee_Velocity_Flexion_TS_TMAX\",\n \"value\": 0.4\n }\n ]\n]",
263
+ "settings":
264
+ {
265
+ "buffer_size": 934,
266
+ "line_ending": "Unix",
267
+ "name": "["
268
+ },
269
+ "undo_stack":
270
+ [
271
+ [
272
+ 2,
273
+ 1,
274
+ "",
275
+ null,
276
+ "AQAAAAAAAAAAAAAApgMAAAAAAAAAAAAA",
277
+ "AQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPC/"
278
+ ]
279
+ ]
280
+ },
281
+ {
282
+ "file": "src/senders/meli.sender.coffee",
283
+ "settings":
284
+ {
285
+ "buffer_size": 114,
286
+ "line_ending": "Unix"
287
+ }
288
+ },
289
+ {
290
+ "file": "src/senders/producteca.sender.coffee",
291
+ "settings":
292
+ {
293
+ "buffer_size": 123,
294
+ "line_ending": "Unix"
295
+ }
296
+ }
297
+ ],
298
+ "build_system": "",
299
+ "build_system_choices":
300
+ [
301
+ ],
302
+ "build_varint": "",
303
+ "command_palette":
304
+ {
305
+ "height": 0.0,
306
+ "last_filter": "",
307
+ "selected_items":
308
+ [
309
+ [
310
+ "packa",
311
+ "Package Control: Install Package"
312
+ ],
313
+ [
314
+ "renam",
315
+ "Rename File"
316
+ ],
317
+ [
318
+ "rena",
319
+ "Rename File"
320
+ ],
321
+ [
322
+ "synjs",
323
+ "Set Syntax: JavaScript"
324
+ ]
325
+ ],
326
+ "width": 0.0
327
+ },
328
+ "console":
329
+ {
330
+ "height": 0.0,
331
+ "history":
332
+ [
333
+ ]
334
+ },
335
+ "distraction_free":
336
+ {
337
+ "menu_visible": true,
338
+ "show_minimap": false,
339
+ "show_open_files": false,
340
+ "show_tabs": false,
341
+ "side_bar_visible": false,
342
+ "status_bar_visible": false
343
+ },
344
+ "expanded_folders":
345
+ [
346
+ "/home/juan/producteca/notification-processor"
347
+ ],
348
+ "file_history":
349
+ [
350
+ "/home/juan/producteca/notification-processor/notification-processor.sublime-project",
351
+ "/home/juan/producteca/notification-processor/lib/senders/meli.sender.js",
352
+ "/home/juan/producteca/notification-processor/lib/observers/monitoringCenter.observer.js",
353
+ "/home/juan/producteca/channelteca/src/api/products/products.controller.js",
354
+ "/home/juan/producteca/channelteca/src/api/products/index.js",
355
+ "/home/juan/producteca/channelteca/src/channelteca.js",
356
+ "/home/juan/producteca/channelteca/src/api/index.js",
357
+ "/home/juan/producteca/channelteca/src/specHelpers/fixture.js",
358
+ "/home/juan/producteca/shopify/server/domain/schemas/user.methods.js",
359
+ "/home/juan/producteca/deals-api/server/helpers/apiGetter.coffee",
360
+ "/home/juan/producteca/deals-api/server/services/channels.api.service.coffee",
361
+ "/home/juan/producteca/deals-api/makefile",
362
+ "/home/juan/.bashrc",
363
+ "/home/juan/scripts/tenantof",
364
+ "/home/juan/producteca/deals-api/server/services/products.api.service.coffee",
365
+ "/home/juan/producteca/deals-api/server/api/bindController.coffee",
366
+ "/home/juan/producteca/deals-api/server/api/product/controller.coffee",
367
+ "/home/juan/producteca/deals-api/server/config/environment/index.coffee",
368
+ "/home/juan/producteca/deals-api/server/config/local.env.js",
369
+ "/home/juan/producteca/deals-api/server/auth/producteca.middleware.coffee",
370
+ "/home/juan/producteca/deals-api/server/services/basic.api.service.coffee",
371
+ "/home/juan/producteca/audit-functions/package.json",
372
+ "/home/juan/producteca/audit-functions/src/processors/changes.handlebars",
373
+ "/home/juan/producteca/audit-functions/src/commons/config.js",
374
+ "/home/juan/producteca/audit-functions/src/functions/salesOrders-price-alert.json",
375
+ "/home/juan/producteca/audit-functions/makefile",
376
+ "/home/juan/producteca/deals-api/deals-api",
377
+ "/home/juan/producteca/audit-functions/src/processors/salesOrdersPriceAlert.handlebars"
378
+ ],
379
+ "find":
380
+ {
381
+ "height": 38.0
382
+ },
383
+ "find_in_files":
384
+ {
385
+ "height": 98.0,
386
+ "where_history":
387
+ [
388
+ ]
389
+ },
390
+ "find_state":
391
+ {
392
+ "case_sensitive": false,
393
+ "find_history":
394
+ [
395
+ ],
396
+ "highlight": true,
397
+ "in_selection": false,
398
+ "preserve_case": false,
399
+ "regex": false,
400
+ "replace_history":
401
+ [
402
+ ],
403
+ "reverse": false,
404
+ "scrollbar_highlights": true,
405
+ "show_context": true,
406
+ "use_buffer2": true,
407
+ "use_gitignore": true,
408
+ "whole_word": false,
409
+ "wrap": true
410
+ },
411
+ "groups":
412
+ [
413
+ {
414
+ "sheets":
415
+ [
416
+ {
417
+ "buffer": 0,
418
+ "file": "src/observers/monitoringCenter.observer.coffee",
419
+ "semi_transient": false,
420
+ "settings":
421
+ {
422
+ "buffer_size": 2985,
423
+ "regions":
424
+ {
425
+ },
426
+ "selection":
427
+ [
428
+ [
429
+ 2619,
430
+ 2611
431
+ ]
432
+ ],
433
+ "settings":
434
+ {
435
+ "syntax": "Packages/Better CoffeeScript/CoffeeScript.tmLanguage",
436
+ "tab_size": 2,
437
+ "translate_tabs_to_spaces": true
438
+ },
439
+ "translation.x": 0.0,
440
+ "translation.y": 408.0,
441
+ "zoom_level": 1.0
442
+ },
443
+ "stack_index": 1,
444
+ "stack_multiselect": false,
445
+ "type": "text"
446
+ },
447
+ {
448
+ "buffer": 1,
449
+ "selected": true,
450
+ "semi_transient": false,
451
+ "settings":
452
+ {
453
+ "buffer_size": 36,
454
+ "regions":
455
+ {
456
+ },
457
+ "selection":
458
+ [
459
+ [
460
+ 0,
461
+ 36
462
+ ]
463
+ ],
464
+ "settings":
465
+ {
466
+ "auto_name": "kubectl describe vpa/web-client-vpa",
467
+ "syntax": "Packages/Text/Plain text.tmLanguage"
468
+ },
469
+ "translation.x": 0.0,
470
+ "translation.y": 0.0,
471
+ "zoom_level": 1.0
472
+ },
473
+ "stack_index": 0,
474
+ "stack_multiselect": false,
475
+ "type": "text"
476
+ },
477
+ {
478
+ "buffer": 2,
479
+ "semi_transient": false,
480
+ "settings":
481
+ {
482
+ "buffer_size": 921,
483
+ "regions":
484
+ {
485
+ },
486
+ "selection":
487
+ [
488
+ [
489
+ 921,
490
+ 921
491
+ ]
492
+ ],
493
+ "settings":
494
+ {
495
+ "auto_name": "[",
496
+ "syntax": "Packages/Text/Plain text.tmLanguage",
497
+ "tab_size": 4,
498
+ "translate_tabs_to_spaces": true
499
+ },
500
+ "translation.x": 0.0,
501
+ "translation.y": 0.0,
502
+ "zoom_level": 1.0
503
+ },
504
+ "stack_index": 2,
505
+ "stack_multiselect": false,
506
+ "type": "text"
507
+ },
508
+ {
509
+ "buffer": 3,
510
+ "semi_transient": false,
511
+ "settings":
512
+ {
513
+ "buffer_size": 934,
514
+ "regions":
515
+ {
516
+ },
517
+ "selection":
518
+ [
519
+ [
520
+ 934,
521
+ 934
522
+ ]
523
+ ],
524
+ "settings":
525
+ {
526
+ "auto_name": "[",
527
+ "syntax": "Packages/Text/Plain text.tmLanguage",
528
+ "tab_size": 4,
529
+ "translate_tabs_to_spaces": true
530
+ },
531
+ "translation.x": 0.0,
532
+ "translation.y": 7.0,
533
+ "zoom_level": 1.0
534
+ },
535
+ "stack_index": 3,
536
+ "stack_multiselect": false,
537
+ "type": "text"
538
+ },
539
+ {
540
+ "buffer": 4,
541
+ "file": "src/senders/meli.sender.coffee",
542
+ "semi_transient": false,
543
+ "settings":
544
+ {
545
+ "buffer_size": 114,
546
+ "regions":
547
+ {
548
+ },
549
+ "selection":
550
+ [
551
+ [
552
+ 0,
553
+ 0
554
+ ]
555
+ ],
556
+ "settings":
557
+ {
558
+ "syntax": "Packages/Better CoffeeScript/CoffeeScript.tmLanguage",
559
+ "tab_size": 2,
560
+ "translate_tabs_to_spaces": true
561
+ },
562
+ "translation.x": 0.0,
563
+ "translation.y": 0.0,
564
+ "zoom_level": 1.0
565
+ },
566
+ "stack_index": 4,
567
+ "stack_multiselect": false,
568
+ "type": "text"
569
+ },
570
+ {
571
+ "buffer": 5,
572
+ "file": "src/senders/producteca.sender.coffee",
573
+ "semi_transient": false,
574
+ "settings":
575
+ {
576
+ "buffer_size": 123,
577
+ "regions":
578
+ {
579
+ },
580
+ "selection":
581
+ [
582
+ [
583
+ 0,
584
+ 0
585
+ ]
586
+ ],
587
+ "settings":
588
+ {
589
+ "syntax": "Packages/Better CoffeeScript/CoffeeScript.tmLanguage",
590
+ "tab_size": 2,
591
+ "translate_tabs_to_spaces": true
592
+ },
593
+ "translation.x": 0.0,
594
+ "translation.y": 0.0,
595
+ "zoom_level": 1.0
596
+ },
597
+ "stack_index": 5,
598
+ "stack_multiselect": false,
599
+ "type": "text"
600
+ }
601
+ ]
602
+ }
603
+ ],
604
+ "incremental_find":
605
+ {
606
+ "height": 26.0
607
+ },
608
+ "input":
609
+ {
610
+ "height": 0.0
611
+ },
612
+ "layout":
613
+ {
614
+ "cells":
615
+ [
616
+ [
617
+ 0,
618
+ 0,
619
+ 1,
620
+ 1
621
+ ]
622
+ ],
623
+ "cols":
624
+ [
625
+ 0.0,
626
+ 1.0
627
+ ],
628
+ "rows":
629
+ [
630
+ 0.0,
631
+ 1.0
632
+ ]
633
+ },
634
+ "menu_visible": true,
635
+ "output.find_results":
636
+ {
637
+ "height": 0.0
638
+ },
639
+ "pinned_build_system": "",
640
+ "project": "notification-processor.sublime-project",
641
+ "replace":
642
+ {
643
+ "height": 48.0
644
+ },
645
+ "save_all_on_build": true,
646
+ "select_file":
647
+ {
648
+ "height": 0.0,
649
+ "last_filter": "",
650
+ "selected_items":
651
+ [
652
+ [
653
+ "prosend",
654
+ "src/senders/producteca.sender.coffee"
655
+ ],
656
+ [
657
+ "sender",
658
+ "src/senders/meli.sender.coffee"
659
+ ],
660
+ [
661
+ "monit",
662
+ "src/observers/monitoringCenter.observer.coffee"
663
+ ],
664
+ [
665
+ "channe",
666
+ "src/channelteca.js"
667
+ ],
668
+ [
669
+ "userme",
670
+ "server/domain/schemas/user.methods.js"
671
+ ],
672
+ [
673
+ "local",
674
+ "server/config/local.env.js"
675
+ ],
676
+ [
677
+ "prodser",
678
+ "server/services/products.api.service.coffee"
679
+ ],
680
+ [
681
+ "prodm",
682
+ "server/auth/producteca.middleware.coffee"
683
+ ],
684
+ [
685
+ "bindController",
686
+ "server/api/bindController.coffee"
687
+ ],
688
+ [
689
+ "makef",
690
+ "makefile"
691
+ ],
692
+ [
693
+ "localen",
694
+ "server/config/local.env.js"
695
+ ],
696
+ [
697
+ "conenind",
698
+ "server/config/environment/index.coffee"
699
+ ],
700
+ [
701
+ "services/basic.api.service",
702
+ "server/services/basic.api.service.coffee"
703
+ ],
704
+ [
705
+ "helpers/apiGetter",
706
+ "server/helpers/apiGetter.coffee"
707
+ ],
708
+ [
709
+ "prodmidd",
710
+ "server/auth/producteca.middleware.coffee"
711
+ ],
712
+ [
713
+ "locale",
714
+ "server/config/local.env.js"
715
+ ],
716
+ [
717
+ "coneind",
718
+ "server/config/environment/index.coffee"
719
+ ],
720
+ [
721
+ "apige",
722
+ "server/helpers/apiGetter.coffee"
723
+ ],
724
+ [
725
+ "products.api.service",
726
+ "server/services/products.api.service.coffee"
727
+ ],
728
+ [
729
+ "producteca.middleware",
730
+ "server/auth/producteca.middleware.coffee"
731
+ ],
732
+ [
733
+ "productcontro",
734
+ "server/api/product/controller.coffee"
735
+ ],
736
+ [
737
+ "config",
738
+ "src/commons/config.js"
739
+ ],
740
+ [
741
+ "pack",
742
+ "package.json"
743
+ ],
744
+ [
745
+ "commconfig",
746
+ "src/commons/config.js"
747
+ ],
748
+ [
749
+ "chan",
750
+ "src/processors/changes.handlebars"
751
+ ],
752
+ [
753
+ "salesorale",
754
+ "src/processors/salesOrdersPriceAlert.handlebars"
755
+ ]
756
+ ],
757
+ "width": 0.0
758
+ },
759
+ "select_project":
760
+ {
761
+ "height": 500.0,
762
+ "last_filter": "",
763
+ "selected_items":
764
+ [
765
+ ],
766
+ "width": 380.0
767
+ },
768
+ "select_symbol":
769
+ {
770
+ "height": 0.0,
771
+ "last_filter": "",
772
+ "selected_items":
773
+ [
774
+ ],
775
+ "width": 0.0
776
+ },
777
+ "selected_group": 0,
778
+ "settings":
779
+ {
780
+ },
781
+ "show_minimap": true,
782
+ "show_open_files": false,
783
+ "show_tabs": true,
784
+ "side_bar_visible": true,
785
+ "side_bar_width": 316.0,
786
+ "status_bar_visible": true,
787
+ "template_settings":
788
+ {
789
+ }
790
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notification-processor",
3
- "version": "4.15.1",
3
+ "version": "4.16.1",
4
4
  "description": "notification-processor",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/.node-version DELETED
@@ -1 +0,0 @@
1
- 8.11.1