redis-smq 3.0.2 → 3.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 3.1.1 (2021-09-16)
4
+
5
+ * Added Github CI
6
+
7
+ ## 3.1.0 (2021-09-15)
8
+
9
+ * Added Scheduler API docs.
10
+ * Added new methods to fetch and delete scheduled messages.
11
+
12
+ ## 3.0.4 (2021-09-08)
13
+
14
+ * Updated examples.
15
+
16
+ ## 3.0.3 (2021-09-08)
17
+
18
+ * Fixed .npmignore.
19
+
3
20
  ## 3.0.2 (2021-09-08)
4
21
 
5
22
  * Moved all dependant declaration packages from "devDependencies" to "dependencies".
package/README.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # RedisSMQ - Yet another simple Redis message queue
2
2
 
3
+ [![CI](https://github.com/weyoss/redis-smq/actions/workflows/main.yml/badge.svg)](https://github.com/weyoss/redis-smq/actions/workflows/main.yml)
4
+ [![Coverage Status](https://coveralls.io/repos/weyoss/redis-smq/badge.svg?branch=ci)](https://coveralls.io/r/weyoss/redis-smq?branch=master)
5
+ [![Dependencies Status](https://david-dm.org/weyoss/redis-smq.svg)]((https://david-dm.org/weyoss/redis-smq))
6
+ [![NPM version](http://img.shields.io/npm/v/redis-smq.svg)](https://npmjs.org/package/redis-smq)
7
+ [![NPM downloads](https://img.shields.io/npm/dm/redis-smq.svg)](https://npmjs.org/package/redis-smq)
8
+ [![Code quality](https://img.shields.io/lgtm/grade/javascript/github/weyoss/redis-smq.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/weyoss/redis-smq/context:javascript)
9
+
3
10
  A simple high-performance Redis message queue for Node.js.
4
11
 
5
12
  For more details about RedisSMQ design see [https://medium.com/@weyoss/building-a-simple-message-queue-using-redis-server-and-node-js-964eda240a2a](https://medium.com/@weyoss/building-a-simple-message-queue-using-redis-server-and-node-js-964eda240a2a)
@@ -35,6 +42,7 @@ For more details about RedisSMQ design see [https://medium.com/@weyoss/building-
35
42
  1. [Message Class](#message-class)
36
43
  2. [Producer Class](#producer-class)
37
44
  3. [Consumer Class](#consumer-class)
45
+ 4. [Message Scheduler](#message-scheduler)
38
46
  5. [Performance](#performance)
39
47
  1. [Scenarios](#scenarios)
40
48
  2. [Environment](#environment)
@@ -185,8 +193,7 @@ const message = new Message();
185
193
 
186
194
  message
187
195
  .setBody({hello: 'world'})
188
- .setTTL(3600000)
189
- .setScheduledDelay(10);
196
+ .setTTL(3600000);
190
197
 
191
198
  const producer = new Producer('test_queue');
192
199
  producer.produceMessage(message, (err) => {
@@ -257,6 +264,48 @@ corresponding queue called dead-letter queue where all failed to consume message
257
264
 
258
265
  See [Consumer API Reference](docs/api/consumer.md) for more details.
259
266
 
267
+ ### Message Scheduler
268
+
269
+ Message Scheduler enables you to schedule a one-time or repeating messages in your MQ server.
270
+
271
+ The [Message API](docs/api/message.md) provides many methods:
272
+
273
+ - [setScheduledPeriod()](docs/api/message.md#messageprototypesetscheduledperiod)
274
+ - [setScheduledDelay()](docs/api/message.md#messageprototypesetscheduleddelay)
275
+ - [setScheduledCron()](docs/api/message.md#messageprototypesetscheduledcron)
276
+ - [setScheduledRepeat()](docs/api/message.md#messageprototypesetscheduledrepeat)
277
+
278
+ in order to set up scheduling parameters for a specific message. Once your message is ready, you can use
279
+ [producer.produceMessage()](docs/api/producer.md#producerprototypeproducemessage) to publish it.
280
+
281
+ Under the hood, the `producer` invokes `isSchedulable()` and `schedule()` of the [Scheduler class](docs/api/scheduler.md)
282
+ to place your message in the delay queue.
283
+
284
+ Alternatively, you can also manually get the scheduler instance from the producer using `producer.getScheduler()`
285
+ and call the `schedule()` method as shown in the example bellow:
286
+
287
+ ```javascript
288
+ 'use strict';
289
+ const { Message, Producer } = require('redis-smq');
290
+
291
+ const message = new Message();
292
+
293
+ message
294
+ .setBody({hello: 'world'})
295
+ .setScheduledCron(`0 0 * * * *`);
296
+
297
+ const producer = new Producer('test_queue');
298
+ const scheduler = producer.getScheduler();
299
+
300
+ scheduler.schedule(message, (err, reply) => {
301
+ if (err) console.log(err);
302
+ else if (rely) console.log('Message has been succefully scheduled');
303
+ else console.log('Message has not been scheduled');
304
+ });
305
+ ```
306
+
307
+ See [Scheduler API Reference](docs/api/scheduler.md) for more details.
308
+
260
309
  ## Performance
261
310
 
262
311
  One key indicator about how RedisSMQ is fast and performant is Message throughput. Message throughput is the number of
@@ -36,7 +36,7 @@ class Producer extends instance_1.Instance {
36
36
  const proceed = () => {
37
37
  const scheduler = this.getScheduler();
38
38
  if (scheduler.isSchedulable(message)) {
39
- scheduler.schedule(message, undefined, onProduced);
39
+ scheduler.schedule(message, onProduced);
40
40
  }
41
41
  else {
42
42
  const { keyQueue } = this.getInstanceRedisKeys();
@@ -1 +1 @@
1
- {"version":3,"file":"producer.js","sourceRoot":"","sources":["../../src/producer.ts"],"names":[],"mappings":";;;AACA,uCAAoC;AACpC,sFAAiF;AACjF,yCAAsC;AACtC,0EAAqE;AACrE,qCAAkC;AAElC,MAAa,QAAS,SAAQ,mBAAQ;IAGpC,YAAY,SAAiB,EAAE,SAAkB,EAAE;QACjD,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAHjB,kBAAa,GAAiC,IAAI,CAAC;QAI3D,IAAI,CAAC,SAAS,GAAG,IAAI,uCAAiB,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;QAC1E,IAAI,CAAC,GAAG,EAAE,CAAC;IACb,CAAC;IAES,sBAAsB;QAC9B,KAAK,CAAC,sBAAsB,EAAE,CAAC;QAC/B,IAAI,CAAC,EAAE,CAAC,eAAM,CAAC,IAAI,EAAE,GAAG,EAAE;YACxB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAC5B,CAAC,CAAC,CAAC;IACL,CAAC;IAES,gBAAgB;QACxB,IAAI,CAAC,IAAI,CAAC,aAA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;AAxDD,4BAwDC"}
@@ -12,6 +12,8 @@ export declare class RedisClient extends EventEmitter {
12
12
  multi(): Multi | IORedis.Pipeline;
13
13
  execMulti<T>(multi: TRedisClientMulti, cb: TCallback<T[]>): void;
14
14
  end(flush: boolean): void;
15
+ zcard(key: string, cb: TCallback<number>): void;
16
+ zrange(key: string, min: number, max: number, cb: TCallback<string[]>): void;
15
17
  zrangebyscore(key: string, min: number, max: number, cb: TCallback<string[]>): void;
16
18
  smembers(key: string, cb: TCallback<string[]>): void;
17
19
  sadd(key: string, member: string, cb: TCallback<number>): void;
@@ -73,6 +73,17 @@ class RedisClient extends events_1.EventEmitter {
73
73
  this.client.disconnect(false);
74
74
  }
75
75
  }
76
+ zcard(key, cb) {
77
+ this.client.zcard(key, cb);
78
+ }
79
+ zrange(key, min, max, cb) {
80
+ if (this.client instanceof redis_1.RedisClient) {
81
+ this.client.zrange(key, min, max, cb);
82
+ }
83
+ else {
84
+ this.client.zrange(key, min, max, cb);
85
+ }
86
+ }
76
87
  zrangebyscore(key, min, max, cb) {
77
88
  if (this.client instanceof redis_1.RedisClient) {
78
89
  this.client.zrangebyscore(key, min, max, cb);
@@ -1 +1 @@
1
- {"version":3,"file":"redis-client.js","sourceRoot":"","sources":["../../src/redis-client.ts"],"names":[],"mappings":";;;AAAA,qCAA8B;AAC9B,iCAAsE;AACtE,oCAMkB;AAClB,mCAAsC;AAEtC,MAAa,WAAY,SAAQ,qBAAY;IAI3C,YAAoB,SAAkB,EAAE;;QACtC,KAAK,EAAE,CAAC;QAHA,QAAG,GAAkB,IAAI,CAAC;QAIlC,MAAM,EAAE,MAAM,GAAG,uBAAe,CAAC,KAAK,EAAE,OAAO,GAAG,EAAE,EAAE,GAAG,MAAA,MAAM,CAAC,KAAK,mCAAI,EAAE,CAAC;QAC5E,IAAI,CAAC,CAAC,uBAAe,CAAC,OAAO,EAAE,uBAAe,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;YACtE,MAA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C,SAAS,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;SAChD;IACH,CAAC;IAGD,IAAI;QACF,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACjB,CAAC;CACF;AA9OD,kCA8OC"}
@@ -33,6 +33,7 @@ export declare class ConsumerRedisKeys extends MQRedisKeys {
33
33
  keyQueueDLQ: string;
34
34
  keyQueueDelayed: string;
35
35
  keyLockScheduler: string;
36
+ keyIndexQueueDelayedMessages: string;
36
37
  };
37
38
  static extractData(key: string): {
38
39
  ns: string;
@@ -7,6 +7,7 @@ export declare class MQRedisKeys {
7
7
  keyQueueDLQ: string;
8
8
  keyQueueDelayed: string;
9
9
  keyLockScheduler: string;
10
+ keyIndexQueueDelayedMessages: string;
10
11
  keyIndexQueue: string;
11
12
  keyIndexQueueDLQ: string;
12
13
  keyIndexRate: string;
@@ -14,6 +14,7 @@ class MQRedisKeys {
14
14
  keyQueueDLQ: MQRedisKeys.joinSegments(MQRedisKeys.types.KEY_TYPE_QUEUE_DLQ, this.queueName),
15
15
  keyQueueDelayed: MQRedisKeys.joinSegments(MQRedisKeys.types.KEY_TYPE_QUEUE_DELAYED_QUEUE, this.queueName),
16
16
  keyLockScheduler: MQRedisKeys.joinSegments(MQRedisKeys.types.KEY_TYPE_LOCK_SCHEDULER, this.queueName),
17
+ keyIndexQueueDelayedMessages: MQRedisKeys.joinSegments(MQRedisKeys.types.KEY_INDEX_QUEUE_DELAYED_MESSAGES, this.queueName),
17
18
  };
18
19
  return Object.assign(Object.assign({}, globalKeys), MQRedisKeys.makeNamespacedKeys(keys));
19
20
  }
@@ -90,6 +91,7 @@ MQRedisKeys.types = {
90
91
  KEY_TYPE_INDEX_RATE: '4',
91
92
  KEY_TYPE_INDEX_QUEUE: '6.1',
92
93
  KEY_TYPE_INDEX_QUEUE_DLQ: '6.3',
94
+ KEY_INDEX_QUEUE_DELAYED_MESSAGES: '8',
93
95
  KEY_TYPE_LOCK_STATS_AGGREGATOR: '5.1',
94
96
  };
95
97
  //# sourceMappingURL=mq-redis-keys.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mq-redis-keys.js","sourceRoot":"","sources":["../../../src/redis-keys/mq-redis-keys.ts"],"names":[],"mappings":";;;AAAA,MAAM,eAAe,GAAG,wBAAwB,CAAC;AACjD,IAAI,SAAS,GAAG,sBAAsB,CAAC;AAEvC,MAAa,WAAW;IAkBtB,YAAY,SAAiB;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED,OAAO;QACL,MAAM,UAAU,GAAG,WAAW,CAAC,aAAa,EAAE,CAAC;QAC/C,MAAM,IAAI,GAAG;YACX,QAAQ,EAAE,WAAW,CAAC,YAAY,CAChC,WAAW,CAAC,KAAK,CAAC,cAAc,EAChC,IAAI,CAAC,SAAS,CACf;YACD,WAAW,EAAE,WAAW,CAAC,YAAY,CACnC,WAAW,CAAC,KAAK,CAAC,kBAAkB,EACpC,IAAI,CAAC,SAAS,CACf;YACD,eAAe,EAAE,WAAW,CAAC,YAAY,CACvC,WAAW,CAAC,KAAK,CAAC,4BAA4B,EAC9C,IAAI,CAAC,SAAS,CACf;YACD,gBAAgB,EAAE,WAAW,CAAC,YAAY,CACxC,WAAW,CAAC,KAAK,CAAC,uBAAuB,EACzC,IAAI,CAAC,SAAS,CACf;SACF,CAAC;QACF,uCACK,UAAU,GACV,WAAW,CAAC,kBAAkB,CAAC,IAAI,CAAC,EACvC;IACJ,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,GAAW;QAC5B,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,WAAW,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACtD,IACE,QAAQ,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC,KAAK,CAAC,cAAc;YAChD,QAAQ,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC,KAAK,CAAC,4BAA4B;YAC9D,QAAQ,CA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15
  keyQueueDLQ: string;
16
16
  keyQueueDelayed: string;
17
17
  keyLockScheduler: string;
18
+ keyIndexQueueDelayedMessages: string;
18
19
  };
19
20
  static extractData(key: string): {
20
21
  ns: string;
@@ -1,5 +1,5 @@
1
1
  import { Instance } from './instance';
2
- import { TCallback, TRedisClientMulti } from '../types';
2
+ import { TCallback, TGetScheduledMessagesReply, TRedisClientMulti } from '../types';
3
3
  import { Message } from './message';
4
4
  import { LockManager } from './lock-manager';
5
5
  import * as Logger from 'bunyan';
@@ -16,20 +16,23 @@ export declare class Scheduler {
16
16
  protected keyLockScheduler: string;
17
17
  protected keyQueue: string;
18
18
  protected keyQueueDelayed: string;
19
+ protected keyIndexQueueDelayedMessages: string;
19
20
  protected tickPeriod: number;
20
21
  constructor(instance: Instance, tickPeriod?: number);
21
22
  protected getRedisClient(): RedisClient;
22
23
  protected getLockManager(): LockManager;
23
24
  protected getTicker(): Ticker;
24
25
  protected debug(message: string): void;
25
- protected scheduleMessage(message: Message, timestamp: number, multi?: TRedisClientMulti, cb?: TCallback<number | string>): void;
26
- protected scheduleNextDelivery(msg: string, multi: TRedisClientMulti): void;
27
- protected deliverScheduledMessage(msg: string, multi: TRedisClientMulti, cb?: TCallback<unknown>): void;
26
+ protected scheduleMessage(message: Message, timestamp: number, mixed: TRedisClientMulti | TCallback<boolean>): void;
27
+ protected scheduleNextDelivery(msg: Message, multi: TRedisClientMulti): void;
28
+ protected deliverScheduledMessage(msg: Message, multi: TRedisClientMulti): void;
28
29
  protected onTick(): void;
29
30
  protected getNextScheduledTimestamp(message: Message): number | null;
30
31
  isSchedulable(message: Message): boolean;
31
32
  isPeriodic(message: Message): boolean;
32
- schedule(message: Message, multi?: TRedisClientMulti, cb?: TCallback<number | string>): void;
33
+ schedule(message: Message, mixed: TRedisClientMulti | TCallback<boolean>): void;
34
+ deleteScheduledMessage(messageId: string, cb: TCallback<boolean>): void;
35
+ getScheduledMessages(skip: number, take: number, cb: TCallback<TGetScheduledMessagesReply>): void;
33
36
  start(): void;
34
37
  stop(): void;
35
38
  runTicker(): void;
@@ -16,10 +16,11 @@ class Scheduler {
16
16
  this.redisClientInstance = null;
17
17
  this.ticker = null;
18
18
  this.instance = instance;
19
- const { keyLockScheduler, keyQueue, keyQueueDelayed } = instance.getInstanceRedisKeys();
19
+ const { keyLockScheduler, keyQueue, keyQueueDelayed, keyIndexQueueDelayedMessages, } = instance.getInstanceRedisKeys();
20
20
  this.keyLockScheduler = keyLockScheduler;
21
21
  this.keyQueue = keyQueue;
22
22
  this.keyQueueDelayed = keyQueueDelayed;
23
+ this.keyIndexQueueDelayedMessages = keyIndexQueueDelayedMessages;
23
24
  this.logger = instance.getLogger();
24
25
  this.tickPeriod = tickPeriod;
25
26
  }
@@ -44,41 +45,43 @@ class Scheduler {
44
45
  debug(message) {
45
46
  this.logger.debug({ scheduler: true }, message);
46
47
  }
47
- scheduleMessage(message, timestamp, multi, cb) {
48
- if (multi)
49
- multi.zadd(this.keyQueueDelayed, timestamp, message.toString());
48
+ scheduleMessage(message, timestamp, mixed) {
49
+ const schedule = (m) => {
50
+ const msgStr = message.toString();
51
+ m.zadd(this.keyQueueDelayed, timestamp, msgStr);
52
+ m.hset(this.keyIndexQueueDelayedMessages, message.getId(), msgStr);
53
+ return m;
54
+ };
55
+ if (typeof mixed === 'object')
56
+ schedule(mixed);
57
+ else if (typeof mixed === 'function') {
58
+ const m = this.getRedisClient().multi();
59
+ schedule(m).exec((err) => {
60
+ if (err)
61
+ mixed(err);
62
+ else
63
+ mixed(null, true);
64
+ });
65
+ }
50
66
  else {
51
- if (!cb) {
52
- throw new Error('Callback function is required');
53
- }
54
- this.getRedisClient().zadd(this.keyQueueDelayed, timestamp, message.toString(), cb);
67
+ throw new Error('Invalid function argument [mixed]. Expected a callback or an instance of Multi.');
55
68
  }
56
69
  }
57
70
  scheduleNextDelivery(msg, multi) {
58
71
  var _a;
59
- const message = message_1.Message.createFromMessage(msg);
60
- if (this.isPeriodic(message)) {
61
- const timestamp = (_a = this.getNextScheduledTimestamp(message)) !== null && _a !== void 0 ? _a : 0;
72
+ if (this.isPeriodic(msg)) {
73
+ const timestamp = (_a = this.getNextScheduledTimestamp(msg)) !== null && _a !== void 0 ? _a : 0;
62
74
  if (timestamp > 0) {
63
- const newMessage = message_1.Message.createFromMessage(message, true);
64
- this.scheduleMessage(newMessage, timestamp, multi);
75
+ this.scheduleMessage(msg, timestamp, multi);
65
76
  }
66
77
  }
67
78
  }
68
- deliverScheduledMessage(msg, multi, cb) {
69
- if (multi) {
70
- multi.lpush(this.keyQueue, msg);
71
- multi.zrem(this.keyQueueDelayed, msg);
72
- }
73
- else {
74
- if (typeof cb !== 'function') {
75
- throw new Error('Callback function required.');
76
- }
77
- multi = this.getRedisClient().multi();
78
- multi.lpush(this.keyQueue, msg);
79
- multi.zrem(this.keyQueueDelayed, msg);
80
- this.getRedisClient().execMulti(multi, cb);
81
- }
79
+ deliverScheduledMessage(msg, multi) {
80
+ const message = this.isPeriodic(msg)
81
+ ? message_1.Message.createFromMessage(msg, true)
82
+ : msg;
83
+ multi.lpush(this.keyQueue, message.toString());
84
+ multi.zrem(this.keyQueueDelayed, msg.toString());
82
85
  }
83
86
  onTick() {
84
87
  if (this.powerManager.isRunning()) {
@@ -91,9 +94,10 @@ class Scheduler {
91
94
  const process = (messages, cb) => {
92
95
  if (messages.length) {
93
96
  async.each(messages, (msg, _, done) => {
97
+ const message = message_1.Message.createFromMessage(msg);
94
98
  const multi = this.getRedisClient().multi();
95
- this.deliverScheduledMessage(msg, multi);
96
- this.scheduleNextDelivery(msg, multi);
99
+ this.deliverScheduledMessage(message, multi);
100
+ this.scheduleNextDelivery(message, multi);
97
101
  multi.exec(done);
98
102
  }, cb);
99
103
  }
@@ -179,11 +183,73 @@ class Scheduler {
179
183
  return (message.getMessageScheduledCRON() !== null ||
180
184
  message.getMessageScheduledRepeat() > 0);
181
185
  }
182
- schedule(message, multi, cb) {
186
+ schedule(message, mixed) {
183
187
  var _a;
184
188
  const timestamp = (_a = this.getNextScheduledTimestamp(message)) !== null && _a !== void 0 ? _a : 0;
185
189
  if (timestamp > 0) {
186
- this.scheduleMessage(message, timestamp, multi, cb);
190
+ this.scheduleMessage(message, timestamp, mixed);
191
+ }
192
+ else if (typeof mixed === 'function')
193
+ mixed(null, false);
194
+ }
195
+ deleteScheduledMessage(messageId, cb) {
196
+ const getMessage = (cb) => {
197
+ this.getRedisClient().hget(this.keyIndexQueueDelayedMessages, messageId, (err, message) => {
198
+ if (err)
199
+ cb(err);
200
+ else
201
+ cb(null, message);
202
+ });
203
+ };
204
+ const deleteMessage = (msg, cb) => {
205
+ if (msg) {
206
+ const multi = this.getRedisClient().multi();
207
+ multi.zrem(this.keyQueueDelayed, msg);
208
+ multi.hdel(this.keyIndexQueueDelayedMessages, messageId);
209
+ this.getRedisClient().execMulti(multi, (err, reply) => {
210
+ if (err)
211
+ cb(err);
212
+ else
213
+ cb(null, reply && reply[0] === 1 && reply[1] === 1);
214
+ });
215
+ }
216
+ else
217
+ cb(null, false);
218
+ };
219
+ async.waterfall([getMessage, deleteMessage], (err, result) => cb(err, result));
220
+ }
221
+ getScheduledMessages(skip, take, cb) {
222
+ if (skip < 0 || take <= 0) {
223
+ cb(new Error(`Parameter [skip] should be >= 0. Parameter [take] should be >= 1.`));
224
+ }
225
+ else {
226
+ const getTotal = (cb) => {
227
+ this.getRedisClient().zcard(this.keyQueueDelayed, cb);
228
+ };
229
+ const getItems = (total, cb) => {
230
+ if (!total) {
231
+ cb(null, {
232
+ total,
233
+ items: [],
234
+ });
235
+ }
236
+ else {
237
+ this.getRedisClient().zrange(this.keyQueueDelayed, skip, skip + take - 1, (err, result) => {
238
+ if (err)
239
+ cb(err);
240
+ else {
241
+ const items = (result !== null && result !== void 0 ? result : []).map((msg) => message_1.Message.createFromMessage(msg));
242
+ cb(null, { total, items });
243
+ }
244
+ });
245
+ }
246
+ };
247
+ async.waterfall([getTotal, getItems], (err, result) => {
248
+ if (err)
249
+ cb(err);
250
+ else
251
+ cb(null, result);
252
+ });
187
253
  }
188
254
  }
189
255
  start() {
@@ -1 +1 @@
1
- {"version":3,"file":"scheduler.js","sourceRoot":"","sources":["../../src/scheduler.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AAGnC,uCAAoC;AACpC,6CAA8C;AAC9C,iDAA6C;AAE7C,mDAA+C;AAC/C,qCAAkC;AAClC,iDAA6C;AAC7C,qCAAkC;AAElC,MAAa,SAAS;IAYpB,YAAY,QAAkB,EAAE,UAAU,GAAG,IAAI;QAVvC,iBAAY,GAAG,IAAI,4BAAY,EAAE,CAAC;QAElC,wBAAmB,GAAuB,IAAI,CAAC;QAC/C,wBAAmB,GAAuB,IAAI,CAAC;QAC/C,WAAM,GAAkB,IAAI,CAAC;QAOrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,eAAe,EAAE,GACnD,QAAQ,CAAC,oBAAoB,EAAE,CAAC;QAClC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,SAAS,EAAE,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAES,cAAc;QACtB,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;SACxD;QACD,OAAO,IAAI,CAAC,mBAAmB,CAAC;IAClC,CAAC;IAES,cAAc;QACtB,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;SACxD;QACD,OAAO,IAAI,CAAC,mBAAmB,CAAC;IAClC,CAAC;IAES,SAAS;QACjB,IAAI,CAAC,IAAI,CAAC,MAAM,E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ules/typescript/lib/lib.es6.d.ts","../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@types/ioredis/index.d.ts","../node_modules/@types/redis/index.d.ts","../node_modules/@types/bunyan/index.d.ts","../node_modules/@types/component-emitter/index.d.ts","../node_modules/socket.io-parser/dist/index.d.ts","../node_modules/socket.io/dist/typed-events.d.ts","../node_modules/socket.io/dist/client.d.ts","../node_modules/socket.io-adapter/dist/index.d.ts","../node_modules/socket.io/dist/broadcast-operator.d.ts","../node_modules/socket.io/dist/socket.d.ts","../node_modules/socket.io/dist/namespace.d.ts","../node_modules/@types/cookie/index.d.ts","../node_modules/@types/cors/index.d.ts","../node_modules/socket.io/dist/index.d.ts","../node_modules/redis-smq-monitor/types/index.ts","../src/redis-client.ts","../types/index.ts","../node_modules/@types/uuid/index.d.ts","../src/power-manager.ts","../src/logger.ts","../node_modules/cron-parser/types/common.d.ts","../node_modules/cron-parser/types/index.d.ts","../node_modules/cron-parser/index.d.ts","../src/message.ts","../node_modules/@types/bluebird/index.d.ts","../node_modules/@types/redlock/index.d.ts","../src/lock-manager.ts","../src/ticker.ts","../src/events.ts","../src/scheduler.ts","../src/redis-keys/mq-redis-keys.ts","../src/stats.ts","../src/instance.ts","../src/stats-provider/consumer-stats-provider.ts","../src/redis-keys/consumer-redis-keys.ts","../node_modules/@types/lodash/common/common.d.ts","../node_modules/@types/lodash/common/array.d.ts","../node_modules/@types/lodash/common/collection.d.ts","../node_modules/@types/lodash/common/date.d.ts","../node_modules/@types/lodash/common/function.d.ts","../node_modules/@types/lodash/common/lang.d.ts","../node_modules/@types/lodash/common/math.d.ts","../node_modules/@types/lodash/common/number.d.ts","../node_modules/@types/lodash/common/object.d.ts","../node_modules/@types/lodash/common/seq.d.ts","../node_modules/@types/lodash/common/string.d.ts","../node_modules/@types/lodash/common/util.d.ts","../node_modules/@types/lodash/index.d.ts","../src/heartbeat.ts","../src/gc-message-collector.ts","../src/gc.ts","../src/consumer.ts","../src/stats-provider/producer-stats-provider.ts","../src/redis-keys/producer-redis-keys.ts","../src/producer.ts","../node_modules/redis-smq-monitor/dist/types/index.d.ts","../node_modules/redis-smq-monitor/dist/src/server/index.d.ts","../node_modules/redis-smq-monitor/dist/index.d.ts","../index.ts","../src/heartbeat-monitor.ts","../src/stats-aggregator.ts","../tests/config.ts","../tests/common.ts","../tests/jest.setup.ts","../tests/test01.test.ts","../tests/test02.test.ts","../tests/test03.test.ts","../tests/test04.test.ts","../tests/test05.test.ts","../tests/test06.test.ts","../tests/test07.test.ts","../tests/test08.test.ts","../tests/test09.test.ts","../tests/test10.test.ts","../tests/test11.test.ts","../tests/test12.test.ts","../tests/test13.test.ts","../tests/test14.test.ts","../tests/test15.test.ts","../tests/test16.test.ts","../types/neo-async/index.d.ts","../node_modules/@babel/types/lib/index.d.ts","../node_modules/@types/babel__generator/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/@types/babel__template/index.d.ts","../node_modules/@types/babel__traverse/index.d.ts","../node_modules/@types/babel__core/index.d.ts","../node_modules/@types/graceful-fs/index.d.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/jest-diff/build/cleanupsemantic.d.ts","../node_modules/jest-diff/build/types.d.ts","../node_modules/jest-diff/build/difflines.d.ts","../node_modules/jest-diff/build/printdiffs.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/pretty-format/build/types.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/parse-json/index.d.ts","../node_modules/@types/prettier/index.d.ts","../node_modules/@types/stack-utils/index.d.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/@types/yargs/index.d.ts"],"fileInfos":["721cec59c3fef87aaf480047d821fb758b3ec9482c4129a54631e6e25e432a31",{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"e54c8715a4954cfdc66cd69489f2b725c09ebf37492dbd91cff0a1688b1159e8","affectsGlobalScope":true},{"version":"e34eb9339171ec45da2801c1967e4d378bd61a1dceaa1b1b4e1b6d28cb9ca962","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"31c268bcfbbb3a89dd4019ff8001069024921c2c0fb73bccc6f8e6f2da7bff09","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"34f1d0e1f63dd8c0bdc1fd15ec2b7216fd709953781c4d1b1213d88e2d94db9e","affectsGlobalScope":true},"4be51d991034b331db6a518e5a9607cb136b6d3ab2a691191a7d481354836a5f",{"version":"fa56e5f529c26a31207fecafbfd88136936868a4c17f8a347f0e8e6ea18309ad","affectsGlobalScope":true},"dbfe629576a07827e766347bea31814a914dbce17a0e6b42b71df91d6b4c5f04","3fe5750809a130a0c9ee5dbca9e262913a10d1deda3ddb1280a77b099197e937",{"version":"d7e32c36d30042b47cd8620b197d3e3381954cf8baa413dc4273796e4cf718a1","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","ca4f1923f7b902be3f19040f9b3859524f8d276f73c1c2985af8df1446a27da8","53cf527b7d4a7ee1c16eeadff678d6df9f2a98cd5ece18f0f9211d8080204734","0038ccd1c90bc523ee4f7eeabc3f4082a48a5775415855e46f142447b9ad1114","aacb7a1f78d635e42d1112144c83508f340722e5293f7f14091581193618dca3","87c064559d14068edb2861fc7d48c1a8196a63523e00cc29aadd57c0eefb24a5","226afbe8d2d18dc02d1aebb449af0a11a278acb98b42c763aeec6d5a8e654441",{"version":"c3a43212afe9781a304d8f5dd3895fd38a143ac46fb64b4d343122e38c83a9ab","affectsGlobalScope":true},"21259ca1ed518e7adf7653fe0c75972a9baaafc459c8a95e78964a867517adac","01862fc59b8c037ea9fe03c6f3dc1ffc95bfc16fb37d58d6e7603706b9041d97","2163cfbd3438e495c08fb59b29740b1f96c7aec8ebb4faf9c9156f4fe94cb501","b9855c90cb7d9dcc9d6235aa9581f57e34d1396fbaaa8eb56d2754bb47b3b118","1f66294c9e9c24e84552cfaa70a27422811649de5a2efc69d3cf2ef38e833308","a82a261dac2131e55347889de6846a3e84741283d93d6525550ab3976be85cf6",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"1207275e727d14356922953c0597c77acad13e9812a0109a756c0c59ff0e87f3","dce04e108fbcbe674bceeea757269b7775a8a07693d6a58f55b36e649541675a","c90911387c5e9e024c309e63a14946a9bc3c71293e8f9d09eece16e11f167974","066f0de5d2acf0be06eb29a5ada8107f93891d7a983e6ba095260406650d742d",{"version":"6ae884f4861da8949f2c466b2d44fb087b2f1de82fe3449c3c52bd1d8cf998e6","affectsGlobalScope":true},"cbe717c2735bf2a6ceb29c2131232e74f4f95878072873dfb263566035024f99","5fd00b0ad7ef4e7eb69341da6ec17400922860afbdbc2cc46a37eba833d8a0bd","bc0c9dbd2b273d9466a31143a5f0118e8902232d906b3987d19d1bd67b96ee5d","757fec48e36f86c8b791b770c31f510d0e53817a95f61130df26df57cb382113","e28d7f6119c9c585989f28bbd34716f6f93f4b31b4a19d9fb8a2e2cc13699464","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"a279435e7813d1f061c0cab6ab77b1b9377e8d96851e5ed4a76a1ce6eb6e628f","28e6ac6505a2b6755ce0752cd4d2dbd880e0e4e9bbfeaa3c777821825db2711a",{"version":"8a4f510bad5e5f5312fd966d20675381a3467c0c8d1b528b7f8e5ebb732ba1c9","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","8222fe4c00d4530dc2eba1c2948292d02ea45801c35cea74e7647034d6f0ee88","dcbcf0056d7bcd4e716bd0cc9223913e58373095c4750250f525694d88f49962","715b8aedc97884235eac2346481e7f1cca0379f870a58a60d22f444f8b7c59a8","1379d5d1decf758cf2041743711f1d0235ef30b1eed5777faba29181088149c5","2ac6c37c23dbb6a87d0657fbaa509bd077dd4ea066fecff1e94a01e19410d8c6","5d50d7b266824bd435c9696f71d64041db90667b6f95d5285adfa6946a73dde5","58250ab8b2768e6d713bb8271d4d1ed1029069bb94631764538a474fe1cb1eca","b9d6227d9cf5e2aac16c149377136b01e8692c0f82f185f6192c78285236e71d","555122eabf41efe584457b407892ed4420c5dc5404004eafed8bc365459f1eef","56f3ed639ae070160aaa79a626e0f956374c7dcd2093216f48cc952981ea2e93",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"4f6762953742f1fa21ec4b41d49c0f76e72e324960f56b127717d2dc9a0baa3e","0a6c6306ff022877c02ad90b69c5496296e310debcbc39ea3cbef857d76bef8c","0c38ba3e818de05d91060057a65f488998a593d994385d41b94b1e86b7cf01f7","978ed556fbd3f429ce72cdf4dd90d9901c7684717258ae9b5590115331c28d7c","a3a88c1869ba1022dfaefac47ff7a984ec62510e9b4d60988f91d5e523266c34","6ce9c4c7d976960a7f14dfe40e26c357bcab9405eb2eea38f79760ed4f323512","e34c13b2d9d15cb284619be06ea9645827f56b89eb3f7e8b65ea854a78d3f620","6277392b2b150463fd49bb8e37e9b7b23ad678f2aae4a9f6486916759f78b683","1d18834019a6cafb83ca02f308c6ac7a4bfcc6aa03f1609975a886d0813aaf69","7310329579c7cee56637f843669ed4a2448b7731eec33ce2be9e8b5effa9b0e6","4b8e3a9d0246f02bfa86a2a7e026f3b08de858e188c01dc5a11f7ed48d546d5f","88f3961fc40340b220398d00e32ff69ef3cc160ec71c649b95659154084db657","117ffeecf6c55e25b6446f449ad079029b5e7317399b0a693858faaaea5ca73e","6fbd58e4015b9ae31ea977d4d549eb24a1102cc798b57ec5d70868b542c06612","38ca7568c60773a8afc800bc383c7ad2542b7165af61dab96c21a5a56f5da96d","4f549c22d50f6f3e998e65116ff8dda16bae842d9fccce7b8fb2ff5abffe08b0","4b780ed060bf1603c9927c3b283f89ebe483e8161b32e00b9922a316eb61b295","48ec80db67c8328c99fc313b52ec73734287307e166a692b34f5ee768be093d3","fab58e600970e66547644a44bc9918e3223aa2cbd9e8763cec004b2cfb48827e","7dd27aa0b8799a3b1ae6d4d791d72a8544e05581f265428571b76b56f3bf16a7","dab3a147763b87996fae6e66099fc3f60d8ca30d98ff8fe750c1147ee4276cbd","827eb54656695635a6e25543f711f0fe86d1083e5e1c0e84f394ffc122bd3ad7","2309cee540edc190aa607149b673b437cb8807f4e8d921bf7f5a50e6aa8d609c","908a84aef7827422ff7c8623c661bcf2bcb0cb7a30aea39e82a79bbc09042ef6","61c12186de9af3105601616b05587da7c9cc3d6e60a8c6aadff6f6aa5cd51234","338bd7c3518b05b4c473971be0e5f8f854aca7cdb00d1b97192c14860f4ebf2f","9f4b16c9bb8cf258ef8c5f258dff2ab2e453b22c2251253f27287502c5ff54b8","5f1b89c94d7d7f79d46968923de1f8d23a4e411cfe3ae46d7dd4e54e5f0ff7d5","804276c31ba66c460ade6a80109fd411e45f2ffd444f0f67229c82ee1ec35c64","ff0eeff8e9ade169b80bc66f712bb7aa3371866356f48a417ac230f68d67d6f1","130b315c358ce7e1b4dd6134894dda8b20c48fb679ca5ff17b5a4f610448a559","4567fccca941e9955e33bbcff889f433e882cd1c639b76e82ad1aea0e122b37f","fab9d87e826c191ab543772f464c7319d9a584fdb99685fdd5390022fac6fb9e","4dcd03f0456b2a579419e9671389e15cde6d7288b276ac265c7fd29dce9127f3","5eca25504752f5fe918790bc65da3e6d9df785ca2de8f44512a398404b10b61f","1111770080248368edf849f0910136266cd8ea0b4d4f00c7d8bc932a24f1ca27","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","438284c7c455a29b9c0e2d1e72abc62ee93d9a163029ffe918a34c5db3b92da2","0c75b204aed9cf6ff1c7b4bed87a3ece0d9d6fc857a6350c0c95ed0c38c814e8","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","c24ad9be9adf28f0927e3d9d9e9cec1c677022356f241ccbbfb97bfe8fb3d1a1","0ec0998e2d085e8ea54266f547976ae152c9dd6cdb9ac4d8a520a230f5ebae84","9364c7566b0be2f7b70ff5285eb34686f83ccb01bda529b82d23b2a844653bfb","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","82251920b05f30981c9a4109cb5f3169dce4b477effc845c6d781044a30e7672","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3e59f00ab03c33717b3130066d4debb272da90eeded4935ff0604c2bc25a5cae","9fa6b83a35e897f340858995ca5d77e901d89fd18644cd4c9e8a4afe0b2e6363",{"version":"0714e2046df66c0e93c3330d30dbc0565b3e8cd3ee302cf99e4ede6220e5fec8","affectsGlobalScope":true},"d5a9d02750a633bb5171f023c48d00cebc02ae7042507b18abdf145ec5b4a9b5","2af57a4d58ae35f4e1e42d166ecff77faabecc00279a207be3563c7a92be58fd","3beb7377bb5e038e947d83f20ccd35b6f7044ad6833831b57d885f0bb41f614c","257ded1dfccf00eb399ba6765b9ee4443f4710bc41669557bcad30c353dd896b","b3c62c4cffbadb884bf7f378811bf0be86809ac59040faef4ad04619714458f1","7be0eeae4d822ea8be9880d694b48214c02b90c3fb6b0788c30739a896b1d136","5e43d9e0ab7c8288800ada0a7d9ca4cac4a2fb96a79036061e01522ba9732da7","bcf8ff798adac57521999232898ff711d09a8396ae507ed4ff1d1e2e9269c123","a9366e63ff875dc292ae006de072dd9276b42a56ca68ce9d494735c28bdf5889","d9e26975ff44fbaf0fd9f58511857fb7ecd5f5398e52b28f53a751fcc04f6584","b4c6e1126bcb8ccad6c9f372642c536d9981889f192ed4f8eadd795e138cafc2","96b579a6252fabd46e905c74788ed776b6fa50b20efcdde6804ae8c3a7369a98","a1956cea44d3ba0ec4fa72b434c4a3d3f96d33eea60af9035f1f14d224f87e6b","7f325836bfa751e94053cf9e7532cc20faed99ae3e954560ea3ab85c63353b8e","9c4c6bdd25d6d5c94e407b8a44697eda3138d241341d0cb9e301ff44ff966038","d6d9dbdbd4e8d04a0f10d1f7eef9e29e7016606e20777598655504f6a8bab540","5cf6a9ea49208e66d94815dcb831455667a2cf79ce94edb72e40e636c810e0e1","af8b47cbbdaa4823af738a638608d680081ae81dd4dbdc2fb0305165b3fe0339","cc64bcaab2280ab276f632555def7801f84e993f50998088e66717b3edd90f68","1b475a693c8dc4edda7a5bb4335695a8bfdd6266d8d9e315b67995235696b353","d2a3052b5bb962c9ee433676136e875d7d72730d51b96461a91112c318ed86fe","fed92f999d9fab4410ba3de3cebda23f0721e809419b4d55b6c14e35c8646339","881772fe4ca9f9983e99ae5fca455fc4b59a93d1530252efeae06413983bfaec","0de35b48053b4161b8e007822914df2dbb5b77590ddc57aec038fa6e6670653b","a403c6f59a5c8835182017e343970ca5643b4a7273bad2bfc364417a84d9540a","b13899a0c12fb31c5290e1519647973d8aabce0a783033c7e34e9336b759def8","85b014951e03b36d109f457361511e4e4077cfd8d0f374afa9f77786b4687950","ae4b38ae2548caa93b34f274666d864cc3a6282dc7c3c090d1d68ec5611ff065","b7d4a1682624310dda32f9f4ebb4a11c0bd4cee3fa28ab2a37f8cafa184116c5","76250def0d96e88dd7f457c7122ee834b0bca8132d351c789b96fa40f8436995","d3a81a55b3526333ff2584f58d90138c06bb9b6e0c42259f5c6b55081691e5a7","fdb55b8edc0e0e559ac9adc2cf235a0593c089a69fa3c1c4aa524eb0e0bfb82b","d0caae343f7bff00a1e033ef0e2ba63f32597eb42e20e879d4e7645e24ba783d","f82348f8ac4f637d6ad76ef5d45577ccc0c59fbd25d8c44d55349a71a90e195a","8dfed5c91ad36e69e6da6b7e49be929d4e19666db2b651aa839c485170a2902c","4aaf84a5ac87bad3211f041fab85de5cc42e5954c3ed56842faf6f08167e6202","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","3b043cf9a81854a72963fdb57d1884fc4da1cf5be69b5e0a4c5b751e58cb6d88","71c56bdaa82d7ce75a72d3c06c04fe10becec09bd9c4ef21776a2a055d3f428e","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","f014d6d053cb1840965952268a589c9e2a74d66c8c88286562d5699350e28e19","66851b263230decb3684072b2cb777f70ea3e52d4489b88f78f185618d4d398e",{"version":"3a3b67317eaa3b7fac600760815a3f308ff14275e73636bc359926371d46c3a0","affectsGlobalScope":true},"0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","65455ea1b00bae7bd26d3c8c2401eb3d10401c09c55192d6f3b8b2275eda20c2","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","f7e133b20ee2669b6c0e5d7f0cd510868c57cd64b283e68c7f598e30ce9d76d2","6ba73232c9d3267ca36ddb83e335d474d2c0e167481e3dec416c782894e11438"],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"experimentalDecorators":true,"module":1,"outDir":"./","removeComments":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"strictPropertyInitialization":true,"target":2},"fileIdsList":[[87,118,146,149,152],[87,176],[87],[87,176,177,178,179,180],[87,176,178],[59,87,94],[62,87],[60,87,94],[59,76,83,87,94],[87,183],[87,184],[87,190,192],[87,130,132,133,134,135,136,137,138,139,140,141,142],[87,130,131,133,134,135,136,137,138,139,140,141,142],[87,131,132,133,134,135,136,137,138,139,140,141,142],[87,130,131,132,134,135,136,137,138,139,140,141,142],[87,130,131,132,133,135,136,137,138,139,140,141,142],[87,130,131,132,133,134,136,137,138,139,140,141,142],[87,130,131,132,133,134,135,137,138,139,140,141,142],[87,130,131,132,133,134,135,136,138,139,140,141,142],[87,130,131,132,133,134,135,136,137,139,140,141,142],[87,130,131,132,133,134,135,136,137,138,140,141,142],[87,130,131,132,133,134,135,136,137,138,139,141,142],[87,130,131,132,133,134,135,136,137,138,139,140,142],[87,130,131,132,133,134,135,136,137,138,139,140,141],[44,87],[47,87],[48,53,87],[49,59,60,67,76,86,87],[49,50,59,67,87],[51,87],[52,53,60,68,87],[53,76,83,87],[54,56,59,67,87],[55,87],[56,57,87],[58,59,87],[59,87],[59,60,61,76,86,87],[59,60,61,76,87],[62,67,76,86,87],[59,60,62,63,67,76,83,86,87],[62,64,76,83,86,87],[44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],[59,65,87],[66,86,87],[56,59,67,76,87],[68,87],[69,87],[47,70,87],[71,85,87,91],[72,87],[73,87],[59,74,87],[74,75,87,89],[59,76,77,78,87],[76,78,87],[76,77,87],[79,87],[80,87],[59,81,82,87],[81,82,87],[53,67,83,87],[84,87],[67,85,87],[48,62,73,86,87],[53,87],[76,87,88],[87,89],[87,90],[48,53,59,61,70,76,86,87,89,91],[76,87,92],[59,76,87,94],[59,87,119],[87,198],[87,116],[87,115],[87,186,187],[87,186,187,188,189],[87,191],[87,151],[87,150],[87,95,96,108],[87,98],[87,100,102,104],[62,87,94,99,100,104,108],[62,87,94,99,100,102,103,104,105,106,107],[87,100,101,102,103,104,108],[62,73,87,94,99,100,101,102,103,105],[87,111,118,123,127,128,129,143,145],[87,96,97,110,111,118,123,124,146],[87,97,110,111,113,118,121,122,123,129,143,144,146,175],[87,110,111,121,122,129,143,175],[49,68,69,87,110,111,113,122,123,127,129,142,175],[59,87,97,110,111,112,113,114,123,124,125,126,175],[87,110,111,120],[87,97,111],[87,112,117],[87,111,118,123,127,147,148],[59,87,95,96,111],[87,125],[87,97,110,111,113,117,118,121,122,123,127,175],[87,110,111,121,125,127,129,142,143,148,175],[87,110,111,123,146],[87,110,111,149],[49,69,87,110,111,113,122,123,127],[87,111],[87,110,111,119,123,153,156],[87,157],[87,153,157],[87,118,119,123,157],[87,111,118,123,157],[87,111,118,119,123,157],[87,118,123,157],[87,118,157],[87,95,96,97,109,110]],"referencedMap":[[153,1],[178,2],[176,3],[181,4],[177,2],[179,5],[180,2],[119,3],[97,6],[98,3],[106,3],[107,7],[182,8],[95,9],[183,3],[184,10],[185,11],[193,12],[194,3],[131,13],[132,14],[130,15],[133,16],[134,17],[135,18],[136,19],[137,20],[138,21],[139,22],[140,23],[141,24],[142,25],[44,26],[45,26],[47,27],[48,28],[49,29],[50,30],[51,31],[52,32],[53,33],[54,34],[55,35],[56,36],[57,36],[58,37],[59,38],[60,39],[61,40],[46,3],[93,3],[62,41],[63,42],[64,43],[94,44],[65,45],[66,46],[67,47],[68,48],[69,49],[70,50],[71,51],[72,52],[73,53],[74,54],[75,55],[76,56],[78,57],[77,58],[79,59],[80,60],[81,61],[82,62],[83,63],[84,64],[85,65],[86,66],[87,67],[88,68],[89,69],[90,70],[91,71],[92,72],[195,3],[196,3],[96,73],[120,74],[197,3],[112,3],[198,3],[199,75],[117,76],[115,3],[116,77],[186,3],[188,78],[190,79],[189,78],[187,3],[192,80],[191,3],[152,81],[151,82],[150,83],[109,83],[102,6],[99,84],[103,85],[101,86],[108,87],[105,88],[104,89],[100,6],[9,3],[10,3],[14,3],[13,3],[3,3],[15,3],[16,3],[17,3],[18,3],[19,3],[20,3],[21,3],[22,3],[4,3],[5,3],[26,3],[23,3],[24,3],[25,3],[27,3],[28,3],[29,3],[6,3],[30,3],[31,3],[32,3],[33,3],[7,3],[34,3],[35,3],[36,3],[37,3],[8,3],[42,3],[38,3],[39,3],[40,3],[41,3],[2,3],[1,3],[43,3],[12,3],[11,3],[146,90],[123,3],[144,91],[145,92],[154,93],[143,94],[127,95],[121,96],[114,97],[118,98],[113,3],[149,99],[110,100],[129,101],[125,3],[148,101],[124,102],[155,103],[128,104],[147,105],[126,106],[122,107],[157,108],[156,107],[158,109],[159,109],[160,110],[161,110],[162,111],[163,111],[164,112],[165,113],[166,114],[167,114],[168,114],[169,111],[170,115],[171,115],[172,115],[173,114],[174,113],[111,116],[175,3]],"exportedModulesMap":[[153,1],[178,2],[176,3],[181,4],[177,2],[179,5],[180,2],[119,3],[97,6],[98,3],[106,3],[107,7],[182,8],[95,9],[183,3],[184,10],[185,11],[193,12],[194,3],[131,13],[132,14],[130,15],[133,16],[134,17],[135,18],[136,19],[137,20],[138,21],[139,22],[140,23],[141,24],[142,25],[44,26],[45,26],[47,27],[48,28],[49,29],[50,30],[51,31],[52,32],[53,33],[54,34],[55,35],[56,36],[57,36],[58,37],[59,38],[60,39],[61,40],[46,3],[93,3],[62,41],[63,42],[64,43],[94,44],[65,45],[66,46],[67,47],[68,48],[69,49],[70,50],[71,51],[72,52],[73,53],[74,54],[75,55],[76,56],[78,57],[77,58],[79,59],[80,60],[81,61],[82,62],[83,63],[84,64],[85,65],[86,66],[87,67],[88,68],[89,69],[90,70],[91,71],[92,72],[195,3],[196,3],[96,73],[120,74],[197,3],[112,3],[198,3],[199,75],[117,76],[115,3],[116,77],[186,3],[188,78],[190,79],[189,78],[187,3],[192,80],[191,3],[152,81],[151,82],[150,83],[109,83],[102,6],[99,84],[103,85],[101,86],[108,87],[105,88],[104,89],[100,6],[9,3],[10,3],[14,3],[13,3],[3,3],[15,3],[16,3],[17,3],[18,3],[19,3],[20,3],[21,3],[22,3],[4,3],[5,3],[26,3],[23,3],[24,3],[25,3],[27,3],[28,3],[29,3],[6,3],[30,3],[31,3],[32,3],[33,3],[7,3],[34,3],[35,3],[36,3],[37,3],[8,3],[42,3],[38,3],[39,3],[40,3],[41,3],[2,3],[1,3],[43,3],[12,3],[11,3],[146,90],[123,3],[144,91],[145,92],[154,93],[143,94],[127,95],[121,96],[114,97],[118,98],[113,3],[149,99],[110,100],[129,101],[125,3],[148,101],[124,102],[155,103],[128,104],[147,105],[126,106],[122,107],[157,108],[156,107],[158,109],[159,109],[160,110],[161,110],[162,111],[163,111],[164,112],[165,113],[166,114],[167,114],[168,114],[169,111],[170,115],[171,115],[172,115],[173,114],[174,113],[111,116],[175,3]],"semanticDiagnosticsPerFile":[153,178,176,181,177,179,180,119,97,98,106,107,182,95,183,184,185,193,194,131,132,130,133,134,135,136,137,138,139,140,141,142,44,45,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,46,93,62,63,64,94,65,66,67,68,69,70,71,72,73,74,75,76,78,77,79,80,81,82,83,84,85,86,87,88,89,90,91,92,195,196,96,120,197,112,198,199,117,115,116,186,188,190,189,187,192,191,152,151,150,109,102,99,103,101,108,105,104,100,9,10,14,13,3,15,16,17,18,19,20,21,22,4,5,26,23,24,25,27,28,29,6,30,31,32,33,7,34,35,36,37,8,42,38,39,40,41,2,1,43,12,11,146,123,144,145,154,143,127,121,114,118,113,149,110,129,125,148,124,155,128,147,126,122,157,156,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,111,175]},"version":"4.4.2"}
1
+ {"program":{"fileNames":["../node_modules/typescript/lib/lib.es6.d.ts","../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@types/ioredis/index.d.ts","../node_modules/@types/redis/index.d.ts","../node_modules/@types/bunyan/index.d.ts","../node_modules/@types/component-emitter/index.d.ts","../node_modules/socket.io-parser/dist/index.d.ts","../node_modules/socket.io/dist/typed-events.d.ts","../node_modules/socket.io/dist/client.d.ts","../node_modules/socket.io-adapter/dist/index.d.ts","../node_modules/socket.io/dist/broadcast-operator.d.ts","../node_modules/socket.io/dist/socket.d.ts","../node_modules/socket.io/dist/namespace.d.ts","../node_modules/@types/cookie/index.d.ts","../node_modules/@types/cors/index.d.ts","../node_modules/socket.io/dist/index.d.ts","../node_modules/redis-smq-monitor/types/index.ts","../src/redis-client.ts","../node_modules/@types/uuid/index.d.ts","../node_modules/cron-parser/types/common.d.ts","../node_modules/cron-parser/types/index.d.ts","../node_modules/cron-parser/index.d.ts","../src/message.ts","../types/index.ts","../src/power-manager.ts","../src/logger.ts","../node_modules/@types/bluebird/index.d.ts","../node_modules/@types/redlock/index.d.ts","../src/lock-manager.ts","../src/ticker.ts","../src/events.ts","../src/scheduler.ts","../src/redis-keys/mq-redis-keys.ts","../src/stats.ts","../src/instance.ts","../src/stats-provider/consumer-stats-provider.ts","../src/redis-keys/consumer-redis-keys.ts","../node_modules/@types/lodash/common/common.d.ts","../node_modules/@types/lodash/common/array.d.ts","../node_modules/@types/lodash/common/collection.d.ts","../node_modules/@types/lodash/common/date.d.ts","../node_modules/@types/lodash/common/function.d.ts","../node_modules/@types/lodash/common/lang.d.ts","../node_modules/@types/lodash/common/math.d.ts","../node_modules/@types/lodash/common/number.d.ts","../node_modules/@types/lodash/common/object.d.ts","../node_modules/@types/lodash/common/seq.d.ts","../node_modules/@types/lodash/common/string.d.ts","../node_modules/@types/lodash/common/util.d.ts","../node_modules/@types/lodash/index.d.ts","../src/heartbeat.ts","../src/gc-message-collector.ts","../src/gc.ts","../src/consumer.ts","../src/stats-provider/producer-stats-provider.ts","../src/redis-keys/producer-redis-keys.ts","../src/producer.ts","../node_modules/redis-smq-monitor/dist/types/index.d.ts","../node_modules/redis-smq-monitor/dist/src/server/index.d.ts","../node_modules/redis-smq-monitor/dist/index.d.ts","../index.ts","../src/heartbeat-monitor.ts","../src/stats-aggregator.ts","../tests/config.ts","../tests/common.ts","../tests/jest.setup.ts","../tests/test01.test.ts","../tests/test02.test.ts","../tests/test03.test.ts","../tests/test04.test.ts","../tests/test05.test.ts","../tests/test06.test.ts","../tests/test07.test.ts","../tests/test08.test.ts","../tests/test09.test.ts","../tests/test10.test.ts","../tests/test11.test.ts","../tests/test12.test.ts","../tests/test13.test.ts","../tests/test14.test.ts","../tests/test15.test.ts","../tests/test16.test.ts","../tests/test17.test.ts","../types/neo-async/index.d.ts","../node_modules/@babel/types/lib/index.d.ts","../node_modules/@types/babel__generator/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/@types/babel__template/index.d.ts","../node_modules/@types/babel__traverse/index.d.ts","../node_modules/@types/babel__core/index.d.ts","../node_modules/@types/graceful-fs/index.d.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/jest-diff/build/cleanupsemantic.d.ts","../node_modules/jest-diff/build/types.d.ts","../node_modules/jest-diff/build/difflines.d.ts","../node_modules/jest-diff/build/printdiffs.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/pretty-format/build/types.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/parse-json/index.d.ts","../node_modules/@types/prettier/index.d.ts","../node_modules/@types/stack-utils/index.d.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/@types/yargs/index.d.ts"],"fileInfos":["721cec59c3fef87aaf480047d821fb758b3ec9482c4129a54631e6e25e432a31",{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"e54c8715a4954cfdc66cd69489f2b725c09ebf37492dbd91cff0a1688b1159e8","affectsGlobalScope":true},{"version":"e34eb9339171ec45da2801c1967e4d378bd61a1dceaa1b1b4e1b6d28cb9ca962","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"31c268bcfbbb3a89dd4019ff8001069024921c2c0fb73bccc6f8e6f2da7bff09","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"4be51d991034b331db6a518e5a9607cb136b6d3ab2a691191a7d481354836a5f",{"version":"fa56e5f529c26a31207fecafbfd88136936868a4c17f8a347f0e8e6ea18309ad","affectsGlobalScope":true},"dbfe629576a07827e766347bea31814a914dbce17a0e6b42b71df91d6b4c5f04","3fe5750809a130a0c9ee5dbca9e262913a10d1deda3ddb1280a77b099197e937",{"version":"d7e32c36d30042b47cd8620b197d3e3381954cf8baa413dc4273796e4cf718a1","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","ca4f1923f7b902be3f19040f9b3859524f8d276f73c1c2985af8df1446a27da8","53cf527b7d4a7ee1c16eeadff678d6df9f2a98cd5ece18f0f9211d8080204734","0038ccd1c90bc523ee4f7eeabc3f4082a48a5775415855e46f142447b9ad1114","aacb7a1f78d635e42d1112144c83508f340722e5293f7f14091581193618dca3","87c064559d14068edb2861fc7d48c1a8196a63523e00cc29aadd57c0eefb24a5","226afbe8d2d18dc02d1aebb449af0a11a278acb98b42c763aeec6d5a8e654441",{"version":"c3a43212afe9781a304d8f5dd3895fd38a143ac46fb64b4d343122e38c83a9ab","affectsGlobalScope":true},"21259ca1ed518e7adf7653fe0c75972a9baaafc459c8a95e78964a867517adac","01862fc59b8c037ea9fe03c6f3dc1ffc95bfc16fb37d58d6e7603706b9041d97","2163cfbd3438e495c08fb59b29740b1f96c7aec8ebb4faf9c9156f4fe94cb501","b9855c90cb7d9dcc9d6235aa9581f57e34d1396fbaaa8eb56d2754bb47b3b118","1f66294c9e9c24e84552cfaa70a27422811649de5a2efc69d3cf2ef38e833308","a82a261dac2131e55347889de6846a3e84741283d93d6525550ab3976be85cf6",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"1207275e727d14356922953c0597c77acad13e9812a0109a756c0c59ff0e87f3","dce04e108fbcbe674bceeea757269b7775a8a07693d6a58f55b36e649541675a","c90911387c5e9e024c309e63a14946a9bc3c71293e8f9d09eece16e11f167974","066f0de5d2acf0be06eb29a5ada8107f93891d7a983e6ba095260406650d742d",{"version":"6ae884f4861da8949f2c466b2d44fb087b2f1de82fe3449c3c52bd1d8cf998e6","affectsGlobalScope":true},"cbe717c2735bf2a6ceb29c2131232e74f4f95878072873dfb263566035024f99","5fd00b0ad7ef4e7eb69341da6ec17400922860afbdbc2cc46a37eba833d8a0bd","bc0c9dbd2b273d9466a31143a5f0118e8902232d906b3987d19d1bd67b96ee5d","757fec48e36f86c8b791b770c31f510d0e53817a95f61130df26df57cb382113","e28d7f6119c9c585989f28bbd34716f6f93f4b31b4a19d9fb8a2e2cc13699464","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"a279435e7813d1f061c0cab6ab77b1b9377e8d96851e5ed4a76a1ce6eb6e628f","28e6ac6505a2b6755ce0752cd4d2dbd880e0e4e9bbfeaa3c777821825db2711a",{"version":"8a4f510bad5e5f5312fd966d20675381a3467c0c8d1b528b7f8e5ebb732ba1c9","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","8222fe4c00d4530dc2eba1c2948292d02ea45801c35cea74e7647034d6f0ee88","dcbcf0056d7bcd4e716bd0cc9223913e58373095c4750250f525694d88f49962","715b8aedc97884235eac2346481e7f1cca0379f870a58a60d22f444f8b7c59a8","1379d5d1decf758cf2041743711f1d0235ef30b1eed5777faba29181088149c5","2ac6c37c23dbb6a87d0657fbaa509bd077dd4ea066fecff1e94a01e19410d8c6","5d50d7b266824bd435c9696f71d64041db90667b6f95d5285adfa6946a73dde5","6ad31da46b09e72ed5ab6d5c645c22934724dd1bfafb18bf6b225824032d3f72","b9d6227d9cf5e2aac16c149377136b01e8692c0f82f185f6192c78285236e71d","555122eabf41efe584457b407892ed4420c5dc5404004eafed8bc365459f1eef","56f3ed639ae070160aaa79a626e0f956374c7dcd2093216f48cc952981ea2e93",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"8dd5ff5a0e4e5bed93d6937b16fb4a117e8b9b5b3750dacb5a10e8f33c356d2b","3215b0695702bdaec6799e6b08f860c5d1bdc30f222c80b6c6d0990846d7720c","1746ef6931d8b4739de3cd6c82d09f5b8edfef49825e1fb5e88b93c52df3fecd","978ed556fbd3f429ce72cdf4dd90d9901c7684717258ae9b5590115331c28d7c","a3a88c1869ba1022dfaefac47ff7a984ec62510e9b4d60988f91d5e523266c34","6ce9c4c7d976960a7f14dfe40e26c357bcab9405eb2eea38f79760ed4f323512","e34c13b2d9d15cb284619be06ea9645827f56b89eb3f7e8b65ea854a78d3f620","6277392b2b150463fd49bb8e37e9b7b23ad678f2aae4a9f6486916759f78b683","1d18834019a6cafb83ca02f308c6ac7a4bfcc6aa03f1609975a886d0813aaf69","7310329579c7cee56637f843669ed4a2448b7731eec33ce2be9e8b5effa9b0e6","4b8e3a9d0246f02bfa86a2a7e026f3b08de858e188c01dc5a11f7ed48d546d5f","88f3961fc40340b220398d00e32ff69ef3cc160ec71c649b95659154084db657","117ffeecf6c55e25b6446f449ad079029b5e7317399b0a693858faaaea5ca73e","6fbd58e4015b9ae31ea977d4d549eb24a1102cc798b57ec5d70868b542c06612","38ca7568c60773a8afc800bc383c7ad2542b7165af61dab96c21a5a56f5da96d","4f549c22d50f6f3e998e65116ff8dda16bae842d9fccce7b8fb2ff5abffe08b0","9f13bb588f5716628d67b29105d22ca43f62b6fd7a4030119d7836f452b69e2f","fab58e600970e66547644a44bc9918e3223aa2cbd9e8763cec004b2cfb48827e","827eb54656695635a6e25543f711f0fe86d1083e5e1c0e84f394ffc122bd3ad7","2309cee540edc190aa607149b673b437cb8807f4e8d921bf7f5a50e6aa8d609c","908a84aef7827422ff7c8623c661bcf2bcb0cb7a30aea39e82a79bbc09042ef6","61c12186de9af3105601616b05587da7c9cc3d6e60a8c6aadff6f6aa5cd51234","df6733295117d2b1f21df595015619bcb2664db259dee05210899478b351c2ac","7dd27aa0b8799a3b1ae6d4d791d72a8544e05581f265428571b76b56f3bf16a7","dab3a147763b87996fae6e66099fc3f60d8ca30d98ff8fe750c1147ee4276cbd","338bd7c3518b05b4c473971be0e5f8f854aca7cdb00d1b97192c14860f4ebf2f","9f4b16c9bb8cf258ef8c5f258dff2ab2e453b22c2251253f27287502c5ff54b8","5f1b89c94d7d7f79d46968923de1f8d23a4e411cfe3ae46d7dd4e54e5f0ff7d5","804276c31ba66c460ade6a80109fd411e45f2ffd444f0f67229c82ee1ec35c64","ff0eeff8e9ade169b80bc66f712bb7aa3371866356f48a417ac230f68d67d6f1","6de0806b58e7ab77b0e3766c86c7a25ecfd1d551e0f6b848c3f4b5ab61404215","ac2d68c64223dcd9f872ece47204b3eb533e607e503bb5a194b8a3c631f6a343","fab9d87e826c191ab543772f464c7319d9a584fdb99685fdd5390022fac6fb9e","4dcd03f0456b2a579419e9671389e15cde6d7288b276ac265c7fd29dce9127f3","5eca25504752f5fe918790bc65da3e6d9df785ca2de8f44512a398404b10b61f","1111770080248368edf849f0910136266cd8ea0b4d4f00c7d8bc932a24f1ca27","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","438284c7c455a29b9c0e2d1e72abc62ee93d9a163029ffe918a34c5db3b92da2","0c75b204aed9cf6ff1c7b4bed87a3ece0d9d6fc857a6350c0c95ed0c38c814e8","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","c24ad9be9adf28f0927e3d9d9e9cec1c677022356f241ccbbfb97bfe8fb3d1a1","0ec0998e2d085e8ea54266f547976ae152c9dd6cdb9ac4d8a520a230f5ebae84","9364c7566b0be2f7b70ff5285eb34686f83ccb01bda529b82d23b2a844653bfb","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","82251920b05f30981c9a4109cb5f3169dce4b477effc845c6d781044a30e7672","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3e59f00ab03c33717b3130066d4debb272da90eeded4935ff0604c2bc25a5cae","9fa6b83a35e897f340858995ca5d77e901d89fd18644cd4c9e8a4afe0b2e6363",{"version":"0714e2046df66c0e93c3330d30dbc0565b3e8cd3ee302cf99e4ede6220e5fec8","affectsGlobalScope":true},"d5a9d02750a633bb5171f023c48d00cebc02ae7042507b18abdf145ec5b4a9b5","2af57a4d58ae35f4e1e42d166ecff77faabecc00279a207be3563c7a92be58fd","3beb7377bb5e038e947d83f20ccd35b6f7044ad6833831b57d885f0bb41f614c","257ded1dfccf00eb399ba6765b9ee4443f4710bc41669557bcad30c353dd896b","b3c62c4cffbadb884bf7f378811bf0be86809ac59040faef4ad04619714458f1","7be0eeae4d822ea8be9880d694b48214c02b90c3fb6b0788c30739a896b1d136","514230dc066ae84eaf193cc97c4bfaf9dc220b532e1e372828d6ff7fd4fd9af0","bcf8ff798adac57521999232898ff711d09a8396ae507ed4ff1d1e2e9269c123","a9366e63ff875dc292ae006de072dd9276b42a56ca68ce9d494735c28bdf5889","d9e26975ff44fbaf0fd9f58511857fb7ecd5f5398e52b28f53a751fcc04f6584","b4c6e1126bcb8ccad6c9f372642c536d9981889f192ed4f8eadd795e138cafc2","96b579a6252fabd46e905c74788ed776b6fa50b20efcdde6804ae8c3a7369a98","a1956cea44d3ba0ec4fa72b434c4a3d3f96d33eea60af9035f1f14d224f87e6b","d31a90526e0ce94b9fa93b6e4591d8f87661b32be736b8e5cc498c6bd9f04cd3","9c4c6bdd25d6d5c94e407b8a44697eda3138d241341d0cb9e301ff44ff966038","d6d9dbdbd4e8d04a0f10d1f7eef9e29e7016606e20777598655504f6a8bab540","5cf6a9ea49208e66d94815dcb831455667a2cf79ce94edb72e40e636c810e0e1","af8b47cbbdaa4823af738a638608d680081ae81dd4dbdc2fb0305165b3fe0339","cc64bcaab2280ab276f632555def7801f84e993f50998088e66717b3edd90f68","1b475a693c8dc4edda7a5bb4335695a8bfdd6266d8d9e315b67995235696b353","d2a3052b5bb962c9ee433676136e875d7d72730d51b96461a91112c318ed86fe","fed92f999d9fab4410ba3de3cebda23f0721e809419b4d55b6c14e35c8646339","881772fe4ca9f9983e99ae5fca455fc4b59a93d1530252efeae06413983bfaec","0de35b48053b4161b8e007822914df2dbb5b77590ddc57aec038fa6e6670653b","a403c6f59a5c8835182017e343970ca5643b4a7273bad2bfc364417a84d9540a","9db30886cadb9a3fb07800858323f8d24929f084b0975a1f73435fb101dcff46","85b014951e03b36d109f457361511e4e4077cfd8d0f374afa9f77786b4687950","ae4b38ae2548caa93b34f274666d864cc3a6282dc7c3c090d1d68ec5611ff065","b7d4a1682624310dda32f9f4ebb4a11c0bd4cee3fa28ab2a37f8cafa184116c5","76250def0d96e88dd7f457c7122ee834b0bca8132d351c789b96fa40f8436995","d3a81a55b3526333ff2584f58d90138c06bb9b6e0c42259f5c6b55081691e5a7","fdb55b8edc0e0e559ac9adc2cf235a0593c089a69fa3c1c4aa524eb0e0bfb82b","02a694dd45b756214000970104f3afd3cab5cd00ac3599acc9a40178f1878b75","d0caae343f7bff00a1e033ef0e2ba63f32597eb42e20e879d4e7645e24ba783d","f82348f8ac4f637d6ad76ef5d45577ccc0c59fbd25d8c44d55349a71a90e195a","8dfed5c91ad36e69e6da6b7e49be929d4e19666db2b651aa839c485170a2902c","4aaf84a5ac87bad3211f041fab85de5cc42e5954c3ed56842faf6f08167e6202","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","3b043cf9a81854a72963fdb57d1884fc4da1cf5be69b5e0a4c5b751e58cb6d88","d0b0a00cf31968a33baeaadf974ce4e5e7edf58cea5288765293f41ba5e72b3a","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","f014d6d053cb1840965952268a589c9e2a74d66c8c88286562d5699350e28e19","66851b263230decb3684072b2cb777f70ea3e52d4489b88f78f185618d4d398e",{"version":"3a3b67317eaa3b7fac600760815a3f308ff14275e73636bc359926371d46c3a0","affectsGlobalScope":true},"0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","65455ea1b00bae7bd26d3c8c2401eb3d10401c09c55192d6f3b8b2275eda20c2","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","f7e133b20ee2669b6c0e5d7f0cd510868c57cd64b283e68c7f598e30ce9d76d2","6ba73232c9d3267ca36ddb83e335d474d2c0e167481e3dec416c782894e11438"],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"experimentalDecorators":true,"module":1,"outDir":"./","removeComments":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"strictPropertyInitialization":true,"target":2},"fileIdsList":[[87,115,146,149,152],[87,177],[87],[87,177,178,179,180,181],[87,177,179],[59,87,94],[62,87],[60,87,94],[59,76,83,87,94],[87,184],[87,185],[87,191,193],[87,130,132,133,134,135,136,137,138,139,140,141,142],[87,130,131,133,134,135,136,137,138,139,140,141,142],[87,131,132,133,134,135,136,137,138,139,140,141,142],[87,130,131,132,134,135,136,137,138,139,140,141,142],[87,130,131,132,133,135,136,137,138,139,140,141,142],[87,130,131,132,133,134,136,137,138,139,140,141,142],[87,130,131,132,133,134,135,137,138,139,140,141,142],[87,130,131,132,133,134,135,136,138,139,140,141,142],[87,130,131,132,133,134,135,136,137,139,140,141,142],[87,130,131,132,133,134,135,136,137,138,140,141,142],[87,130,131,132,133,134,135,136,137,138,139,141,142],[87,130,131,132,133,134,135,136,137,138,139,140,142],[87,130,131,132,133,134,135,136,137,138,139,140,141],[44,87],[47,87],[48,53,87],[49,59,60,67,76,86,87],[49,50,59,67,87],[51,87],[52,53,60,68,87],[53,76,83,87],[54,56,59,67,87],[55,87],[56,57,87],[58,59,87],[59,87],[59,60,61,76,86,87],[59,60,61,76,87],[62,67,76,86,87],[59,60,62,63,67,76,83,86,87],[62,64,76,83,86,87],[44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],[59,65,87],[66,86,87],[56,59,67,76,87],[68,87],[69,87],[47,70,87],[71,85,87,91],[72,87],[73,87],[59,74,87],[74,75,87,89],[59,76,77,78,87],[76,78,87],[76,77,87],[79,87],[80,87],[59,81,82,87],[81,82,87],[53,67,83,87],[84,87],[67,85,87],[48,62,73,86,87],[53,87],[76,87,88],[87,89],[87,90],[48,53,59,61,70,76,86,87,89,91],[76,87,92],[59,76,87,94],[59,87,119],[87,199],[87,113],[87,112],[87,187,188],[87,187,188,189,190],[87,192],[87,151],[87,150],[87,95,96,108],[87,98],[87,100,102,104],[62,87,94,99,100,104,108],[62,87,94,99,100,102,103,104,105,106,107],[87,100,101,102,103,104,108],[62,73,87,94,99,100,101,102,103,105],[87,115,116,123,127,128,129,143,145],[87,96,97,110,115,116,123,124,146],[87,97,110,115,116,117,121,122,123,129,143,144,146,176],[87,110,116,121,122,129,143,176],[49,68,69,87,110,116,117,122,123,127,129,142,176],[59,87,97,110,111,116,117,118,123,124,125,126,176],[87,110,116,120],[87,97,116],[87,111,114],[87,115,116,123,127,147,148],[59,87,95,96,116],[87,125],[87,97,110,114,115,116,117,121,122,123,127,176],[87,110,116,121,125,127,129,142,143,148,176],[87,110,116,123,146],[87,110,116,149],[49,69,87,110,116,117,122,123,127],[87,116],[87,110,116,119,123,153,156],[87,157],[87,153,157],[87,115,119,123,157],[87,115,116,123,157],[87,115,116,119,123,157],[87,115,123,157],[87,115,157],[87,115,119,157],[87,95,96,97,109,110,115]],"referencedMap":[[153,1],[179,2],[177,3],[182,4],[178,2],[180,5],[181,2],[119,3],[97,6],[98,3],[106,3],[107,7],[183,8],[95,9],[184,3],[185,10],[186,11],[194,12],[195,3],[131,13],[132,14],[130,15],[133,16],[134,17],[135,18],[136,19],[137,20],[138,21],[139,22],[140,23],[141,24],[142,25],[44,26],[45,26],[47,27],[48,28],[49,29],[50,30],[51,31],[52,32],[53,33],[54,34],[55,35],[56,36],[57,36],[58,37],[59,38],[60,39],[61,40],[46,3],[93,3],[62,41],[63,42],[64,43],[94,44],[65,45],[66,46],[67,47],[68,48],[69,49],[70,50],[71,51],[72,52],[73,53],[74,54],[75,55],[76,56],[78,57],[77,58],[79,59],[80,60],[81,61],[82,62],[83,63],[84,64],[85,65],[86,66],[87,67],[88,68],[89,69],[90,70],[91,71],[92,72],[196,3],[197,3],[96,73],[120,74],[198,3],[111,3],[199,3],[200,75],[114,76],[112,3],[113,77],[187,3],[189,78],[191,79],[190,78],[188,3],[193,80],[192,3],[152,81],[151,82],[150,83],[109,83],[102,6],[99,84],[103,85],[101,86],[108,87],[105,88],[104,89],[100,6],[9,3],[10,3],[14,3],[13,3],[3,3],[15,3],[16,3],[17,3],[18,3],[19,3],[20,3],[21,3],[22,3],[4,3],[5,3],[26,3],[23,3],[24,3],[25,3],[27,3],[28,3],[29,3],[6,3],[30,3],[31,3],[32,3],[33,3],[7,3],[34,3],[35,3],[36,3],[37,3],[8,3],[42,3],[38,3],[39,3],[40,3],[41,3],[2,3],[1,3],[43,3],[12,3],[11,3],[146,90],[123,3],[144,91],[145,92],[154,93],[143,94],[127,95],[121,96],[118,97],[115,98],[117,3],[149,99],[110,100],[129,101],[125,3],[148,101],[124,102],[155,103],[128,104],[147,105],[126,106],[122,107],[157,108],[156,107],[158,109],[159,109],[160,110],[161,110],[162,111],[163,111],[164,112],[165,113],[166,114],[167,114],[168,114],[169,111],[170,115],[171,115],[172,115],[173,114],[174,113],[175,116],[116,117],[176,3]],"exportedModulesMap":[[153,1],[179,2],[177,3],[182,4],[178,2],[180,5],[181,2],[119,3],[97,6],[98,3],[106,3],[107,7],[183,8],[95,9],[184,3],[185,10],[186,11],[194,12],[195,3],[131,13],[132,14],[130,15],[133,16],[134,17],[135,18],[136,19],[137,20],[138,21],[139,22],[140,23],[141,24],[142,25],[44,26],[45,26],[47,27],[48,28],[49,29],[50,30],[51,31],[52,32],[53,33],[54,34],[55,35],[56,36],[57,36],[58,37],[59,38],[60,39],[61,40],[46,3],[93,3],[62,41],[63,42],[64,43],[94,44],[65,45],[66,46],[67,47],[68,48],[69,49],[70,50],[71,51],[72,52],[73,53],[74,54],[75,55],[76,56],[78,57],[77,58],[79,59],[80,60],[81,61],[82,62],[83,63],[84,64],[85,65],[86,66],[87,67],[88,68],[89,69],[90,70],[91,71],[92,72],[196,3],[197,3],[96,73],[120,74],[198,3],[111,3],[199,3],[200,75],[114,76],[112,3],[113,77],[187,3],[189,78],[191,79],[190,78],[188,3],[193,80],[192,3],[152,81],[151,82],[150,83],[109,83],[102,6],[99,84],[103,85],[101,86],[108,87],[105,88],[104,89],[100,6],[9,3],[10,3],[14,3],[13,3],[3,3],[15,3],[16,3],[17,3],[18,3],[19,3],[20,3],[21,3],[22,3],[4,3],[5,3],[26,3],[23,3],[24,3],[25,3],[27,3],[28,3],[29,3],[6,3],[30,3],[31,3],[32,3],[33,3],[7,3],[34,3],[35,3],[36,3],[37,3],[8,3],[42,3],[38,3],[39,3],[40,3],[41,3],[2,3],[1,3],[43,3],[12,3],[11,3],[146,90],[123,3],[144,91],[145,92],[154,93],[143,94],[127,95],[121,96],[118,97],[115,98],[117,3],[149,99],[110,100],[129,101],[125,3],[148,101],[124,102],[155,103],[128,104],[147,105],[126,106],[122,107],[157,108],[156,107],[158,109],[159,109],[160,110],[161,110],[162,111],[163,111],[164,112],[165,113],[166,114],[167,114],[168,114],[169,111],[170,115],[171,115],[172,115],[173,114],[174,113],[175,116],[116,117],[176,3]],"semanticDiagnosticsPerFile":[153,179,177,182,178,180,181,119,97,98,106,107,183,95,184,185,186,194,195,131,132,130,133,134,135,136,137,138,139,140,141,142,44,45,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,46,93,62,63,64,94,65,66,67,68,69,70,71,72,73,74,75,76,78,77,79,80,81,82,83,84,85,86,87,88,89,90,91,92,196,197,96,120,198,111,199,200,114,112,113,187,189,191,190,188,193,192,152,151,150,109,102,99,103,101,108,105,104,100,9,10,14,13,3,15,16,17,18,19,20,21,22,4,5,26,23,24,25,27,28,29,6,30,31,32,33,7,34,35,36,37,8,42,38,39,40,41,2,1,43,12,11,146,123,144,145,154,143,127,121,118,115,117,149,110,129,125,148,124,155,128,147,126,122,157,156,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,116,176]},"version":"4.4.2"}
@@ -3,6 +3,7 @@ import { ClientOpts, Multi, RedisClient as NodeRedis } from 'redis';
3
3
  import * as Logger from 'bunyan';
4
4
  import { IMonitorConfig } from 'redis-smq-monitor/types';
5
5
  import { RedisClient } from '../src/redis-client';
6
+ import { Message } from '../src/message';
6
7
  export declare type TCallback<T> = (err?: Error | null, reply?: T | null) => void;
7
8
  export declare type TFunction<TReturn = void, TArgs = any> = (...args: TArgs[]) => TReturn;
8
9
  export interface IConsumerStats {
@@ -87,3 +88,7 @@ export declare type TAggregatedStats = {
87
88
  };
88
89
  };
89
90
  };
91
+ export declare type TGetScheduledMessagesReply = {
92
+ total: number;
93
+ items: Message[];
94
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";;;AA4BA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,kCAAe,CAAA;IACf,sCAAmB,CAAA;AACrB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";;;AA6BA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,kCAAe,CAAA;IACf,sCAAmB,CAAA;AACrB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B"}
@@ -0,0 +1,152 @@
1
+ # Scheduler Class API
2
+
3
+ Scheduler Class can not be directly instantiated but instead its instance can be obtained from the producer
4
+ or the consumer using `getScheduler()`.
5
+
6
+ ```javascript
7
+ 'use strict';
8
+ const { Consumer, Producer } = require('redis-smq');
9
+
10
+ const producer = new Producer('test_queue');
11
+ const scheduler = producer.getScheduler();
12
+
13
+ // Or
14
+ const consumer = new Consumer('test_queue');
15
+ const scheduler = consumer.getScheduler();
16
+ ```
17
+
18
+ ## Public properties
19
+
20
+ No public property exists.
21
+
22
+ ## Public methods
23
+
24
+ ### Scheduler.prototype.schedule()
25
+
26
+ ```javascript
27
+ scheduler.schedule(message, mixed);
28
+ ```
29
+
30
+ **Parameters**
31
+
32
+ - `message` *(Message): Required.* A Message instance.
33
+ - `mixed` *(Function | Redis.Multi | IORedis.Pipeline): Required.* When `mixed` is a callback function, its
34
+ signature is `cb(err, result)` where:
35
+ - `err` *(Error | null | undefined).*
36
+ - `result` *(boolean | undefined).* Indicates whether the message has been scheduled.
37
+
38
+ ```javascript
39
+ 'use strict';
40
+ const { Message, Producer } = require('redis-smq');
41
+
42
+ const message = new Message();
43
+
44
+ message
45
+ .setBody({hello: 'world'})
46
+ .setScheduledCron(`0 0 * * * *`);
47
+
48
+ const producer = new Producer('test_queue');
49
+ const scheduler = producer.getScheduler();
50
+
51
+ scheduler.schedule(message, (err, rely) => {
52
+ if (err) console.log(err);
53
+ else if (rely) console.log('Message has been succefully scheduled');
54
+ else console.log('Message has not been scheduled');
55
+ });
56
+ ```
57
+
58
+ ### Scheduler.prototype.deleteScheduledMessage()
59
+
60
+ ```javascript
61
+ scheduler.deleteScheduledMessage(messageId, cb);
62
+ ```
63
+
64
+ **Parameters**
65
+
66
+ - `message` *(string): Required.* A Message ID which was previously scheduled.
67
+ - `cb(err, result)` * (Function): Required. A callback function.
68
+ - `err` *(Error | null | undefined).*
69
+ - `result` *(boolean | undefined).* Indicates whether the message has been deleted.
70
+
71
+ ```javascript
72
+ 'use strict';
73
+ const { Message, Producer } = require('redis-smq');
74
+
75
+ const producer = new Producer('test_queue');
76
+ const scheduler = producer.getScheduler();
77
+
78
+ scheduler.deleteScheduledMessage(message_id, (err, result) => {
79
+ if (err) console.log(err);
80
+ else if (result === true) console.log('Message has been succefully deleted');
81
+ else console.log('Message has not been deleted');
82
+ });
83
+ ```
84
+
85
+ ### Scheduler.prototype.getScheduledMessages()
86
+
87
+ ```javascript
88
+ scheduler.getScheduledMessages(skip, take, cb);
89
+ ```
90
+
91
+ **Parameters**
92
+
93
+ - `skip` *(number): Required.* Offset from where messages should be taken. Starts from 0.
94
+ - `take` *(number): Required.* Max number of messages that should be taken. Starts from 1.
95
+ - `cb(err, result)` *(Function): Required.* A callback function.
96
+ - `err` *(Error | null | undefined).*
97
+ - `result.total` *(number).* Total messages that has been scheduled so far.
98
+ - `result.items` *(Message[]).* An array of scheduled messages.
99
+
100
+
101
+ ```javascript
102
+ 'use strict';
103
+ const { Message, Producer } = require('redis-smq');
104
+
105
+ const producer = new Producer('test_queue');
106
+ const scheduler = producer.getScheduler();
107
+
108
+ scheduler.getScheduledMessages(0, 25, (err, result) => {
109
+ if (err) console.log(err);
110
+ else {
111
+ console.log('Total scheduled items: ', result.total);
112
+ console.log('Items: ', result.items);
113
+ }
114
+ });
115
+ ```
116
+ ### Scheduler.prototype.isSchedulable()
117
+
118
+ **Syntax**
119
+
120
+ ```javascript
121
+ scheduler.isSchedulable(message);
122
+ ```
123
+
124
+ **Parameters**
125
+
126
+ - `message` *(Message): Required.* A Message instance.
127
+
128
+ **Return type**
129
+
130
+ Boolean. True if one of message scheduling parameters has been set.
131
+
132
+ ### Scheduler.prototype.isPeriodic()
133
+
134
+ ```javascript
135
+ scheduler.isPeriodic(message);
136
+ ```
137
+
138
+ **Parameters**
139
+
140
+ - `message` *(Message): Required.* A Message instance.
141
+
142
+ **Return type**
143
+
144
+ Boolean. True when either message `scheduling repeat` or `scheduling CRON` has been set.
145
+
146
+ ## Other public methods
147
+
148
+ These methods are used internally and should not be used in your application:
149
+
150
+ - Scheduler.prototype.start()
151
+ - Scheduler.prototype.stop()
152
+ - Scheduler.prototype.runTicker()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redis-smq",
3
- "version": "3.0.2",
3
+ "version": "3.1.1",
4
4
  "description": "A simple high-performance Redis message queue for Node.js.",
5
5
  "author": "Weyoss <weyoss@protonmail.com>",
6
6
  "license": "MIT",
@@ -46,11 +46,12 @@
46
46
  "@typescript-eslint/eslint-plugin": "^4.30.0",
47
47
  "@typescript-eslint/parser": "^4.30.0",
48
48
  "bluebird": "^3.7.2",
49
+ "coveralls": "^3.1.1",
49
50
  "eslint": "^7.32.0",
50
51
  "eslint-config-prettier": "^8.3.0",
51
52
  "eslint-plugin-prettier": "^4.0.0",
52
- "jest": "^27.1.0",
53
53
  "husky": "^4.3.8",
54
+ "jest": "^27.1.0",
54
55
  "lint-staged": "^11.1.2",
55
56
  "prettier": "^2.3.2",
56
57
  "ts-jest": "^27.0.5",
@@ -64,6 +65,7 @@
64
65
  "build": "tsc",
65
66
  "format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
66
67
  "lint": "eslint \"{src,tests,types}/**/*.ts\" --fix",
68
+ "pretest": "npm run build",
67
69
  "test": "NODE_ENV=test jest --runInBand",
68
70
  "type-coverage": "type-coverage --strict --at-least 100 --ignore-files \"dist/**/*\""
69
71
  },
package/types/index.ts DELETED
@@ -1,106 +0,0 @@
1
- import IORedis, { Redis, RedisOptions } from 'ioredis';
2
- import { ClientOpts, Multi, RedisClient as NodeRedis } from 'redis';
3
- import * as Logger from 'bunyan';
4
- import { IMonitorConfig } from 'redis-smq-monitor/types';
5
- import { RedisClient } from '../src/redis-client';
6
-
7
- export type TCallback<T> = (err?: Error | null, reply?: T | null) => void;
8
-
9
- export type TFunction<TReturn = void, TArgs = any> = (
10
- ...args: TArgs[]
11
- ) => TReturn;
12
-
13
- export interface IConsumerStats {
14
- acknowledgedRate: number;
15
- unacknowledgedRate: number;
16
- processingRate: number;
17
- isIdle: boolean;
18
- }
19
-
20
- export interface IProducerStats {
21
- inputRate: number;
22
- }
23
-
24
- export interface IStatsProvider<T = unknown> {
25
- tick(): T;
26
- publish(redisClient: RedisClient, stats: T): void;
27
- }
28
-
29
- export enum RedisClientName {
30
- REDIS = 'redis',
31
- IOREDIS = 'ioredis',
32
- }
33
-
34
- export type TCompatibleRedisClient = NodeRedis | Redis;
35
-
36
- export type TRedisClientMulti = Multi | IORedis.Pipeline;
37
-
38
- export interface IRedisOptions {
39
- client: RedisClientName;
40
- options?: RedisOptions | ClientOpts;
41
- }
42
-
43
- export interface IConfig {
44
- redis?: IRedisOptions;
45
- namespace?: string;
46
- log?: {
47
- enabled?: boolean;
48
- options?: Logger.LoggerOptions;
49
- };
50
- monitor?: IMonitorConfig;
51
- }
52
-
53
- export interface IConsumerConstructorOptions {
54
- messageConsumeTimeout?: number;
55
- messageTTL?: number;
56
- messageRetryThreshold?: number;
57
- messageRetryDelay?: number;
58
- }
59
-
60
- export type TAggregatedStatsQueueProducer = {
61
- id: string;
62
- namespace: string;
63
- queueName: string;
64
- rates: {
65
- input: number;
66
- };
67
- };
68
-
69
- export type TAggregatedStatsQueueConsumer = {
70
- id: string;
71
- namespace: string;
72
- queueName: string;
73
- resources?: Record<string, any>;
74
- rates: {
75
- processing: number;
76
- acknowledged: number;
77
- unacknowledged: number;
78
- };
79
- };
80
-
81
- export type TAggregatedStatsQueue = {
82
- queueName: string;
83
- namespace: string;
84
- erroredMessages: number;
85
- size: number;
86
- producers?: {
87
- [producerId: string]: TAggregatedStatsQueueProducer;
88
- };
89
- consumers?: {
90
- [consumerId: string]: TAggregatedStatsQueueConsumer;
91
- };
92
- };
93
-
94
- export type TAggregatedStats = {
95
- rates: {
96
- processing: number;
97
- acknowledged: number;
98
- unacknowledged: number;
99
- input: number;
100
- };
101
- queues: {
102
- [ns: string]: {
103
- [queueName: string]: TAggregatedStatsQueue;
104
- };
105
- };
106
- };
@@ -1,60 +0,0 @@
1
- declare module 'neo-async' {
2
- import { TFunction } from '../index';
3
-
4
- export interface Dictionary<T> {
5
- [key: string]: T;
6
- }
7
- export type IterableCollection<T> = T[] | IterableIterator<T> | Dictionary<T>;
8
-
9
- export interface ErrorCallback<E = Error> {
10
- (err?: E | null): void;
11
- }
12
-
13
- export interface AsyncResultCallback<T, E = Error> {
14
- (err?: E | null, result?: T): void;
15
- }
16
- export interface AsyncResultArrayCallback<T, E = Error> {
17
- (err?: E | null, results?: Array<T | undefined>): void;
18
- }
19
- export interface AsyncResultObjectCallback<T, E = Error> {
20
- (err: E | undefined, results: Dictionary<T | undefined>): void;
21
- }
22
-
23
- export interface AsyncFunction<T, E = Error> {
24
- (callback: (err?: E | null, result?: T) => void): void;
25
- }
26
-
27
- export interface AsyncIterator<T, E = Error> {
28
- (item: T, key: number | string, callback: ErrorCallback<E>): void;
29
- }
30
-
31
- export function each<T, E = Error>(
32
- arr: IterableCollection<T>,
33
- iterator: AsyncIterator<T, E>,
34
- callback: ErrorCallback<E>,
35
- ): void;
36
-
37
- export function each<T, E = Error>(
38
- arr: IterableCollection<T>,
39
- iterator: AsyncIterator<T, E>,
40
- ): Promise<void>;
41
-
42
- export function parallel<T, E = Error>(
43
- tasks: Array<AsyncFunction<T, E>>,
44
- callback?: AsyncResultArrayCallback<T, E>,
45
- ): void;
46
-
47
- export function parallel<T, E = Error>(
48
- tasks: Dictionary<AsyncFunction<T, E>>,
49
- callback?: AsyncResultObjectCallback<T, E>,
50
- ): void;
51
-
52
- export function parallel<T, R, E = Error>(
53
- tasks: Array<AsyncFunction<T, E>> | Dictionary<AsyncFunction<T, E>>,
54
- ): Promise<R>;
55
-
56
- export function waterfall<T, E = Error>(
57
- tasks: TFunction[],
58
- callback?: AsyncResultCallback<T, E>,
59
- ): void;
60
- }