redis-smq-rest-api 9.0.10-next.3 → 9.0.11-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +3 -9
  3. package/README.template.md +3 -3
  4. package/dist/cjs/src/controllers/queue-pending-messages/getQueuePendingMessagesController.js +1 -1
  5. package/dist/cjs/src/controllers/queue-pending-messages/getQueuePendingMessagesController.js.map +1 -1
  6. package/dist/cjs/src/errors/errors.d.ts +3 -0
  7. package/dist/cjs/src/errors/errors.d.ts.map +1 -1
  8. package/dist/cjs/src/errors/errors.js +3 -0
  9. package/dist/cjs/src/errors/errors.js.map +1 -1
  10. package/dist/cjs/src/services/ConsumerGroupsService.d.ts +3 -1
  11. package/dist/cjs/src/services/ConsumerGroupsService.d.ts.map +1 -1
  12. package/dist/cjs/src/services/ConsumerGroupsService.js +5 -4
  13. package/dist/cjs/src/services/ConsumerGroupsService.js.map +1 -1
  14. package/dist/cjs/src/services/QueueAcknowledgedMessagesService.d.ts +3 -1
  15. package/dist/cjs/src/services/QueueAcknowledgedMessagesService.d.ts.map +1 -1
  16. package/dist/cjs/src/services/QueueAcknowledgedMessagesService.js +2 -1
  17. package/dist/cjs/src/services/QueueAcknowledgedMessagesService.js.map +1 -1
  18. package/dist/cjs/src/services/QueueDeadLetteredMessagesService.d.ts +3 -1
  19. package/dist/cjs/src/services/QueueDeadLetteredMessagesService.d.ts.map +1 -1
  20. package/dist/cjs/src/services/QueueDeadLetteredMessagesService.js +2 -1
  21. package/dist/cjs/src/services/QueueDeadLetteredMessagesService.js.map +1 -1
  22. package/dist/cjs/src/services/QueueMessagesService.d.ts +4 -2
  23. package/dist/cjs/src/services/QueueMessagesService.d.ts.map +1 -1
  24. package/dist/cjs/src/services/QueuePendingMessagesService.d.ts +4 -2
  25. package/dist/cjs/src/services/QueuePendingMessagesService.d.ts.map +1 -1
  26. package/dist/cjs/src/services/QueuePendingMessagesService.js +6 -3
  27. package/dist/cjs/src/services/QueuePendingMessagesService.js.map +1 -1
  28. package/dist/cjs/src/services/QueueScheduledMessagesService.d.ts +3 -1
  29. package/dist/cjs/src/services/QueueScheduledMessagesService.d.ts.map +1 -1
  30. package/dist/cjs/src/services/QueueScheduledMessagesService.js +2 -1
  31. package/dist/cjs/src/services/QueueScheduledMessagesService.js.map +1 -1
  32. package/dist/esm/src/controllers/queue-pending-messages/getQueuePendingMessagesController.js +1 -1
  33. package/dist/esm/src/controllers/queue-pending-messages/getQueuePendingMessagesController.js.map +1 -1
  34. package/dist/esm/src/errors/errors.d.ts +3 -0
  35. package/dist/esm/src/errors/errors.d.ts.map +1 -1
  36. package/dist/esm/src/errors/errors.js +3 -0
  37. package/dist/esm/src/errors/errors.js.map +1 -1
  38. package/dist/esm/src/services/ConsumerGroupsService.d.ts +3 -1
  39. package/dist/esm/src/services/ConsumerGroupsService.d.ts.map +1 -1
  40. package/dist/esm/src/services/ConsumerGroupsService.js +5 -4
  41. package/dist/esm/src/services/ConsumerGroupsService.js.map +1 -1
  42. package/dist/esm/src/services/QueueAcknowledgedMessagesService.d.ts +3 -1
  43. package/dist/esm/src/services/QueueAcknowledgedMessagesService.d.ts.map +1 -1
  44. package/dist/esm/src/services/QueueAcknowledgedMessagesService.js +2 -1
  45. package/dist/esm/src/services/QueueAcknowledgedMessagesService.js.map +1 -1
  46. package/dist/esm/src/services/QueueDeadLetteredMessagesService.d.ts +3 -1
  47. package/dist/esm/src/services/QueueDeadLetteredMessagesService.d.ts.map +1 -1
  48. package/dist/esm/src/services/QueueDeadLetteredMessagesService.js +2 -1
  49. package/dist/esm/src/services/QueueDeadLetteredMessagesService.js.map +1 -1
  50. package/dist/esm/src/services/QueueMessagesService.d.ts +4 -2
  51. package/dist/esm/src/services/QueueMessagesService.d.ts.map +1 -1
  52. package/dist/esm/src/services/QueuePendingMessagesService.d.ts +4 -2
  53. package/dist/esm/src/services/QueuePendingMessagesService.d.ts.map +1 -1
  54. package/dist/esm/src/services/QueuePendingMessagesService.js +6 -3
  55. package/dist/esm/src/services/QueuePendingMessagesService.js.map +1 -1
  56. package/dist/esm/src/services/QueueScheduledMessagesService.d.ts +3 -1
  57. package/dist/esm/src/services/QueueScheduledMessagesService.d.ts.map +1 -1
  58. package/dist/esm/src/services/QueueScheduledMessagesService.js +2 -1
  59. package/dist/esm/src/services/QueueScheduledMessagesService.js.map +1 -1
  60. package/dist/schema.json +60 -0
  61. package/package.json +4 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [9.0.11-next.0](https://github.com/weyoss/redis-smq/compare/v9.0.10-next.4...v9.0.11-next.0) (2026-01-22)
7
+
8
+ ### 📝 Documentation
9
+
10
+ - improve README files for clarity ([6ba6543](https://github.com/weyoss/redis-smq/commit/6ba65433d6743d336141e7351ee6267de42a0219))
11
+
12
+ ### ♻️ Code Refactoring
13
+
14
+ - **redis-smq-rest-api:** rename queue to queueParams to correctly pass IQueueParsedParams ([d95bc48](https://github.com/weyoss/redis-smq/commit/d95bc48585d32ad9c214499383acba7febbfdc48))
15
+ - **redis-smq-rest-api:** update error mapping ([48da1da](https://github.com/weyoss/redis-smq/commit/48da1da9c470ef86a9902a62ace8d8ba60f084cf))
16
+
17
+ ### ✅ Tests
18
+
19
+ - **redis-smq-rest-api:** fix purge messages test cases ([c9a0343](https://github.com/weyoss/redis-smq/commit/c9a03434480b9dfdb0a84588235e58bd210020db))
20
+
21
+ ## [9.0.10-next.4](https://github.com/weyoss/redis-smq/compare/v9.0.10-next.3...v9.0.10-next.4) (2026-01-16)
22
+
23
+ ### 📝 Documentation
24
+
25
+ - adjust badges position to enhance page styling ([ef3e2fe](https://github.com/weyoss/redis-smq/commit/ef3e2fe19a1f61fb0cbd861090686c7ccfe3bbbe))
26
+ - refine notifications for master and next branch clarity ([63fef1b](https://github.com/weyoss/redis-smq/commit/63fef1bd430680e0de7eba7fe2b8c8f82e821bb9))
27
+
6
28
  ## [9.0.10-next.3](https://github.com/weyoss/redis-smq/compare/v9.0.10-next.2...v9.0.10-next.3) (2026-01-16)
7
29
 
8
30
  **Note:** Version bump only for package redis-smq-rest-api
package/README.md CHANGED
@@ -1,16 +1,10 @@
1
1
  # RedisSMQ REST API
2
2
 
3
- > [!NOTE]
4
- > You are viewing the documentation for the "next" branch. These docs describe unreleased changes published under the npm "next" dist-tag.
5
- > For the latest stable documentation, see:
6
- >
7
- > - Master (stable) README: https://github.com/weyoss/redis-smq/tree/master/packages/redis-smq-rest-api
8
- > - Latest release notes/tags: https://github.com/weyoss/redis-smq/releases/latest
9
- > - Install stable packages with @latest; pre-release with @next.
10
-
11
3
  [![Pre-release (next)](https://img.shields.io/npm/v/redis-smq-rest-api/next?style=flat-square&label=redis-smq-rest-api%40next)](https://github.com/weyoss/redis-smq/releases)
12
4
  [![Code Coverage (next)](https://img.shields.io/codecov/c/github/weyoss/redis-smq/next?flag=redis-smq-rest-api&style=flat-square)](https://app.codecov.io/github/weyoss/redis-smq/tree/next/packages/redis-smq-rest-api)
13
5
 
6
+ > 💡 **Note:** You are viewing the `next` branch with upcoming features. For stable releases, check the [`master` branch](https://github.com/weyoss/redis-smq/tree/master/packages/redis-smq-rest-api).
7
+
14
8
  RedisSMQ REST API provides an HTTP interface enabling any web-capable application to interact with the RedisSMQ message
15
9
  queue using a RESTful API.
16
10
 
@@ -29,7 +23,7 @@ queue using a RESTful API.
29
23
  npm install redis-smq@next redis-smq-common@next redis-smq-rest-api@next --save
30
24
  ```
31
25
 
32
- Don't forget to install a Redis client. Choose either node-redis or ioredis:
26
+ Don't forget to install a Redis client:
33
27
 
34
28
  ```shell
35
29
  npm install @redis/client --save
@@ -1,10 +1,10 @@
1
1
  # RedisSMQ REST API
2
2
 
3
- __IS_NEXT_NOTE__
4
-
5
3
  __NPM_BADGE__
6
4
  __CODECOV_BADGE__
7
5
 
6
+ __IS_NEXT_NOTE__
7
+
8
8
  RedisSMQ REST API provides an HTTP interface enabling any web-capable application to interact with the RedisSMQ message
9
9
  queue using a RESTful API.
10
10
 
@@ -23,7 +23,7 @@ queue using a RESTful API.
23
23
  npm install redis-smq__TAG_SUFFIX__ redis-smq-common__TAG_SUFFIX__ redis-smq-rest-api__TAG_SUFFIX__ --save
24
24
  ```
25
25
 
26
- Don't forget to install a Redis client. Choose either node-redis or ioredis:
26
+ Don't forget to install a Redis client:
27
27
 
28
28
  ```shell
29
29
  npm install @redis/client --save
@@ -16,7 +16,7 @@ const getQueuePendingMessagesController = (ctx) => __awaiter(void 0, void 0, voi
16
16
  const queueParams = ctx.scope.resolve('requestPathDTO');
17
17
  const { page, pageSize, consumerGroupId } = ctx.scope.resolve('requestQueryDTO');
18
18
  const r = yield queuePendingMessagesService.getMessages({
19
- queue: queueParams,
19
+ queueParams,
20
20
  groupId: consumerGroupId !== null && consumerGroupId !== void 0 ? consumerGroupId : null,
21
21
  }, page, pageSize);
22
22
  return [200, r];
@@ -1 +1 @@
1
- {"version":3,"file":"getQueuePendingMessagesController.js","sourceRoot":"","sources":["../../../../../src/controllers/queue-pending-messages/getQueuePendingMessagesController.ts"],"names":[],"mappings":";;;;;;;;;;;;AAaA,+DAAyD;AAKlD,MAAM,iCAAiC,GAK1C,CAAO,GAAG,EAAE,EAAE;IAChB,MAAM,2BAA2B,GAAG,wBAAS,CAAC,WAAW,EAAE,CAAC,OAAO,CACjE,6BAA6B,CAC9B,CAAC;IACF,MAAM,WAAW,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACxD,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,eAAe,EAAE,GACvC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACvC,MAAM,CAAC,GAAG,MAAM,2BAA2B,CAAC,WAAW,CACrD;QACE,KAAK,EAAE,WAAW;QAClB,OAAO,EAAE,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,IAAI;KACjC,EACD,IAAI,EACJ,QAAQ,CACT,CAAC;IACF,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AAClB,CAAC,CAAA,CAAC;AArBW,QAAA,iCAAiC,qCAqB5C"}
1
+ {"version":3,"file":"getQueuePendingMessagesController.js","sourceRoot":"","sources":["../../../../../src/controllers/queue-pending-messages/getQueuePendingMessagesController.ts"],"names":[],"mappings":";;;;;;;;;;;;AAaA,+DAAyD;AAKlD,MAAM,iCAAiC,GAK1C,CAAO,GAAG,EAAE,EAAE;IAChB,MAAM,2BAA2B,GAAG,wBAAS,CAAC,WAAW,EAAE,CAAC,OAAO,CACjE,6BAA6B,CAC9B,CAAC;IACF,MAAM,WAAW,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACxD,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,eAAe,EAAE,GACvC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACvC,MAAM,CAAC,GAAG,MAAM,2BAA2B,CAAC,WAAW,CACrD;QACE,WAAW;QACX,OAAO,EAAE,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,IAAI;KACjC,EACD,IAAI,EACJ,QAAQ,CACT,CAAC;IACF,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AAClB,CAAC,CAAA,CAAC;AArBW,QAAA,iCAAiC,qCAqB5C"}
@@ -1,5 +1,7 @@
1
1
  export declare const errors: {
2
2
  readonly AcknowledgedMessageAuditNotEnabledError: readonly [500, "AcknowledgedMessageAuditNotEnabledError"];
3
+ readonly BackgroundJobNotFoundError: readonly [404, "BackgroundJobNotFoundError"];
4
+ readonly BackgroundJobTargetLockedError: readonly [500, "BackgroundJobTargetLockedError"];
3
5
  readonly ConfigurationMessageAuditExpireError: readonly [400, "ConfigurationMessageAuditExpireError"];
4
6
  readonly ConfigurationMessageAuditQueueSizeError: readonly [400, "ConfigurationMessageAuditQueueSizeError"];
5
7
  readonly ConfigurationNamespaceError: readonly [400, "ConfigurationNamespaceError"];
@@ -23,6 +25,7 @@ export declare const errors: {
23
25
  readonly InvalidExchangeParametersError: readonly [400, "InvalidExchangeParametersError"];
24
26
  readonly InvalidFanoutExchangeParametersError: readonly [400, "InvalidFanoutExchangeParametersError"];
25
27
  readonly InvalidNamespaceError: readonly [400, "InvalidNamespaceError"];
28
+ readonly InvalidPurgeQueueJobIdError: readonly [400, "InvalidPurgeQueueJobIdError"];
26
29
  readonly InvalidQueueParametersError: readonly [400, "InvalidQueueParametersError"];
27
30
  readonly InvalidQueueTypeError: readonly [400, "InvalidQueueTypeError"];
28
31
  readonly InvalidRateLimitIntervalError: readonly [429, "InvalidRateLimitIntervalError"];
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/errors/errors.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4FT,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG,OAAO,MAAM,CAAC"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/errors/errors.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+FT,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG,OAAO,MAAM,CAAC"}
@@ -6,6 +6,8 @@ exports.errors = {
6
6
  500,
7
7
  'AcknowledgedMessageAuditNotEnabledError',
8
8
  ],
9
+ BackgroundJobNotFoundError: [404, 'BackgroundJobNotFoundError'],
10
+ BackgroundJobTargetLockedError: [500, 'BackgroundJobTargetLockedError'],
9
11
  ConfigurationMessageAuditExpireError: [
10
12
  400,
11
13
  'ConfigurationMessageAuditExpireError',
@@ -44,6 +46,7 @@ exports.errors = {
44
46
  'InvalidFanoutExchangeParametersError',
45
47
  ],
46
48
  InvalidNamespaceError: [400, 'InvalidNamespaceError'],
49
+ InvalidPurgeQueueJobIdError: [400, 'InvalidPurgeQueueJobIdError'],
47
50
  InvalidQueueParametersError: [400, 'InvalidQueueParametersError'],
48
51
  InvalidQueueTypeError: [400, 'InvalidQueueTypeError'],
49
52
  InvalidRateLimitIntervalError: [429, 'InvalidRateLimitIntervalError'],
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/errors/errors.ts"],"names":[],"mappings":";;;AAgBa,QAAA,MAAM,GAAG;IACpB,uCAAuC,EAAE;QACvC,GAAG;QACH,yCAAyC;KAC1C;IACD,oCAAoC,EAAE;QACpC,GAAG;QACH,sCAAsC;KACvC;IACD,uCAAuC,EAAE;QACvC,GAAG;QACH,yCAAyC;KAC1C;IACD,2BAA2B,EAAE,CAAC,GAAG,EAAE,6BAA6B,CAAC;IACjE,wBAAwB,EAAE,CAAC,GAAG,EAAE,0BAA0B,CAAC;IAC3D,0BAA0B,EAAE,CAAC,GAAG,EAAE,4BAA4B,CAAC;IAC/D,0BAA0B,EAAE,CAAC,GAAG,EAAE,4BAA4B,CAAC;IAC/D,0BAA0B,EAAE,CAAC,GAAG,EAAE,4BAA4B,CAAC;IAC/D,+BAA+B,EAAE,CAAC,GAAG,EAAE,iCAAiC,CAAC;IACzE,wBAAwB,EAAE,CAAC,GAAG,EAAE,0BAA0B,CAAC;IAC3D,uCAAuC,EAAE;QACvC,GAAG;QACH,yCAAyC;KAC1C;IACD,0BAA0B,EAAE,CAAC,GAAG,EAAE,4BAA4B,CAAC;IAC/D,2BAA2B,EAAE,CAAC,GAAG,EAAE,6BAA6B,CAAC;IACjE,qBAAqB,EAAE,CAAC,GAAG,EAAE,uBAAuB,CAAC;IACrD,gCAAgC,EAAE,CAAC,GAAG,EAAE,kCAAkC,CAAC;IAC3E,qBAAqB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,gCAAgC,EAAE,CAAC,GAAG,EAAE,kCAAkC,CAAC;IAC3E,sBAAsB,EAAE,CAAC,GAAG,EAAE,wBAAwB,CAAC;IACvD,sBAAsB,EAAE,CAAC,GAAG,EAAE,wBAAwB,CAAC;IACvD,sCAAsC,EAAE;QACtC,GAAG;QACH,wCAAwC;KACzC;IACD,8BAA8B,EAAE,CAAC,GAAG,EAAE,gCAAgC,CAAC;IACvE,uBAAuB,EAAE,CAAC,GAAG,EAAE,yBAAyB,CAAC;IACzD,iBAAiB,EAAE,CAAC,GAAG,EAAE,mBAAmB,CAAC;IAC7C,uBAAuB,EAAE,CAAC,GAAG,EAAE,yBAAyB,CAAC;IACzD,+BAA+B,EAAE,CAAC,GAAG,EAAE,iCAAiC,CAAC;IACzE,2BAA2B,EAAE,CAAC,GAAG,EAAE,6BAA6B,CAAC;IACjE,6BAA6B,EAAE,CAAC,GAAG,EAAE,+BAA+B,CAAC;IACrE,gCAAgC,EAAE,CAAC,GAAG,EAAE,kCAAkC,CAAC;IAC3E,kBAAkB,EAAE,CAAC,GAAG,EAAE,oBAAoB,CAAC;IAC/C,kBAAkB,EAAE,CAAC,GAAG,EAAE,oBAAoB,CAAC;IAC/C,kBAAkB,EAAE,CAAC,GAAG,EAAE,oBAAoB,CAAC;IAC/C,yBAAyB,EAAE,CAAC,GAAG,EAAE,2BAA2B,CAAC;IAC7D,uBAAuB,EAAE,CAAC,GAAG,EAAE,yBAAyB,CAAC;IACzD,yBAAyB,EAAE,CAAC,GAAG,EAAE,2BAA2B,CAAC;IAC7D,0BAA0B,EAAE,CAAC,GAAG,EAAE,4BAA4B,CAAC;CACvD,CAAC"}
@@ -7,8 +7,10 @@ export declare class ConsumerGroupsService {
7
7
  } & ConsumerGroups;
8
8
  protected queuePendingMessages: {
9
9
  countMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<number>;
10
+ getMessageIdsAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<string>>;
10
11
  getMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
11
- purgeAsync: ((queue: import("redis-smq").TQueueExtendedParams) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams) => Promise<void>);
12
+ purgeAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<string>;
13
+ cancelPurgeAsync: ((queue: import("redis-smq").TQueueExtendedParams, jobId: string) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams, jobId: string) => Promise<void>);
12
14
  } & QueuePendingMessages;
13
15
  constructor(consumerGroups: ConsumerGroups, queuePendingMessages: QueuePendingMessages);
14
16
  deleteConsumerGroup(queueParams: IQueueParams, consumerGroupId: string): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"ConsumerGroupsService.d.ts","sourceRoot":"","sources":["../../../../src/services/ConsumerGroupsService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAI/E,qBAAa,qBAAqB;IAChC,SAAS,CAAC,cAAc;;;;uBAAC;IACzB,SAAS,CAAC,oBAAoB;;;;6BAAC;gBAG7B,cAAc,EAAE,cAAc,EAC9B,oBAAoB,EAAE,oBAAoB;IAMtC,mBAAmB,CACvB,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,MAAM;IAQnB,iBAAiB,CAAC,WAAW,EAAE,YAAY;IAI3C,iBAAiB,CAAC,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM;IAOpE,kBAAkB,CACtB,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;IAYZ,oBAAoB,CACxB,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,MAAM;IAQnB,oBAAoB,CACxB,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,MAAM;CAO1B"}
1
+ {"version":3,"file":"ConsumerGroupsService.d.ts","sourceRoot":"","sources":["../../../../src/services/ConsumerGroupsService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAI/E,qBAAa,qBAAqB;IAChC,SAAS,CAAC,cAAc;;;;uBAAC;IACzB,SAAS,CAAC,oBAAoB;;;;;;6BAAC;gBAG7B,cAAc,EAAE,cAAc,EAC9B,oBAAoB,EAAE,oBAAoB;IAMtC,mBAAmB,CACvB,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,MAAM;IAQnB,iBAAiB,CAAC,WAAW,EAAE,YAAY;IAI3C,iBAAiB,CAAC,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM;IAOpE,kBAAkB,CACtB,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;IAYZ,oBAAoB,CACxB,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,MAAM;IAQnB,oBAAoB,CACxB,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,MAAM;CAQ1B"}
@@ -38,7 +38,7 @@ class ConsumerGroupsService {
38
38
  getPendingMessages(queueParams, consumerGroupId, page, pageSize) {
39
39
  return __awaiter(this, void 0, void 0, function* () {
40
40
  return this.queuePendingMessages.getMessagesAsync({
41
- queue: queueParams,
41
+ queueParams,
42
42
  groupId: consumerGroupId,
43
43
  }, page, pageSize);
44
44
  });
@@ -46,17 +46,18 @@ class ConsumerGroupsService {
46
46
  countPendingMessages(queueParams, consumerGroupId) {
47
47
  return __awaiter(this, void 0, void 0, function* () {
48
48
  return this.queuePendingMessages.countMessagesAsync({
49
- queue: queueParams,
49
+ queueParams,
50
50
  groupId: consumerGroupId,
51
51
  });
52
52
  });
53
53
  }
54
54
  purgePendingMessages(queueParams, consumerGroupId) {
55
55
  return __awaiter(this, void 0, void 0, function* () {
56
- return this.queuePendingMessages.purgeAsync({
57
- queue: queueParams,
56
+ yield this.queuePendingMessages.purgeAsync({
57
+ queueParams,
58
58
  groupId: consumerGroupId,
59
59
  });
60
+ yield bluebird_1.default.delay(5000);
60
61
  });
61
62
  }
62
63
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ConsumerGroupsService.js","sourceRoot":"","sources":["../../../../src/services/ConsumerGroupsService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AASA,wDAAgC;AAGhC,MAAM,EAAE,YAAY,EAAE,GAAG,kBAAQ,CAAC;AAElC,MAAa,qBAAqB;IAIhC,YACE,cAA8B,EAC9B,oBAA0C;QAE1C,IAAI,CAAC,cAAc,GAAG,YAAY,CAAC,cAAc,CAAC,CAAC;QACnD,IAAI,CAAC,oBAAoB,GAAG,YAAY,CAAC,oBAAoB,CAAC,CAAC;IACjE,CAAC;IAEK,mBAAmB,CACvB,WAAyB,EACzB,eAAuB;;YAEvB,MAAM,IAAI,CAAC,cAAc,CAAC,wBAAwB,CAChD,WAAW,EACX,eAAe,CAChB,CAAC;QACJ,CAAC;KAAA;IAEK,iBAAiB,CAAC,WAAyB;;YAC/C,OAAO,IAAI,CAAC,cAAc,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAAC;QACjE,CAAC;KAAA;IAEK,iBAAiB,CAAC,WAAyB,EAAE,eAAuB;;YACxE,MAAM,IAAI,CAAC,cAAc,CAAC,sBAAsB,CAC9C,WAAW,EACX,eAAe,CAChB,CAAC;QACJ,CAAC;KAAA;IAEK,kBAAkB,CACtB,WAAyB,EACzB,eAAuB,EACvB,IAAY,EACZ,QAAgB;;YAEhB,OAAO,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CAC/C;gBACE,KAAK,EAAE,WAAW;gBAClB,OAAO,EAAE,eAAe;aACzB,EACD,IAAI,EACJ,QAAQ,CACT,CAAC;QACJ,CAAC;KAAA;IAEK,oBAAoB,CACxB,WAAyB,EACzB,eAAuB;;YAEvB,OAAO,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAAC;gBAClD,KAAK,EAAE,WAAW;gBAClB,OAAO,EAAE,eAAe;aACzB,CAAC,CAAC;QACL,CAAC;KAAA;IAEK,oBAAoB,CACxB,WAAyB,EACzB,eAAuB;;YAEvB,OAAO,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC;gBAC1C,KAAK,EAAE,WAAW;gBAClB,OAAO,EAAE,eAAe;aACzB,CAAC,CAAC;QACL,CAAC;KAAA;CACF;AApED,sDAoEC"}
1
+ {"version":3,"file":"ConsumerGroupsService.js","sourceRoot":"","sources":["../../../../src/services/ConsumerGroupsService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AASA,wDAAgC;AAGhC,MAAM,EAAE,YAAY,EAAE,GAAG,kBAAQ,CAAC;AAElC,MAAa,qBAAqB;IAIhC,YACE,cAA8B,EAC9B,oBAA0C;QAE1C,IAAI,CAAC,cAAc,GAAG,YAAY,CAAC,cAAc,CAAC,CAAC;QACnD,IAAI,CAAC,oBAAoB,GAAG,YAAY,CAAC,oBAAoB,CAAC,CAAC;IACjE,CAAC;IAEK,mBAAmB,CACvB,WAAyB,EACzB,eAAuB;;YAEvB,MAAM,IAAI,CAAC,cAAc,CAAC,wBAAwB,CAChD,WAAW,EACX,eAAe,CAChB,CAAC;QACJ,CAAC;KAAA;IAEK,iBAAiB,CAAC,WAAyB;;YAC/C,OAAO,IAAI,CAAC,cAAc,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAAC;QACjE,CAAC;KAAA;IAEK,iBAAiB,CAAC,WAAyB,EAAE,eAAuB;;YACxE,MAAM,IAAI,CAAC,cAAc,CAAC,sBAAsB,CAC9C,WAAW,EACX,eAAe,CAChB,CAAC;QACJ,CAAC;KAAA;IAEK,kBAAkB,CACtB,WAAyB,EACzB,eAAuB,EACvB,IAAY,EACZ,QAAgB;;YAEhB,OAAO,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CAC/C;gBACE,WAAW;gBACX,OAAO,EAAE,eAAe;aACzB,EACD,IAAI,EACJ,QAAQ,CACT,CAAC;QACJ,CAAC;KAAA;IAEK,oBAAoB,CACxB,WAAyB,EACzB,eAAuB;;YAEvB,OAAO,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAAC;gBAClD,WAAW;gBACX,OAAO,EAAE,eAAe;aACzB,CAAC,CAAC;QACL,CAAC;KAAA;IAEK,oBAAoB,CACxB,WAAyB,EACzB,eAAuB;;YAEvB,MAAM,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC;gBACzC,WAAW;gBACX,OAAO,EAAE,eAAe;aACzB,CAAC,CAAC;YACH,MAAM,kBAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC;KAAA;CACF;AArED,sDAqEC"}
@@ -2,8 +2,10 @@ import { IQueueParams, QueueAcknowledgedMessages } from 'redis-smq';
2
2
  export declare class QueueAcknowledgedMessagesService {
3
3
  protected queueAcknowledgedMessages: {
4
4
  getMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
5
- purgeAsync: ((queue: import("redis-smq").TQueueExtendedParams) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams) => Promise<void>);
5
+ purgeAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<string>;
6
6
  countMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<number>;
7
+ cancelPurgeAsync: ((queue: import("redis-smq").TQueueExtendedParams, jobId: string) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams, jobId: string) => Promise<void>);
8
+ getMessageIdsAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<string>>;
7
9
  } & QueueAcknowledgedMessages;
8
10
  constructor(queueAcknowledgedMessages: QueueAcknowledgedMessages);
9
11
  getMessages(queueParams: IQueueParams, page: number, pageSize: number): Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"QueueAcknowledgedMessagesService.d.ts","sourceRoot":"","sources":["../../../../src/services/QueueAcknowledgedMessagesService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAIpE,qBAAa,gCAAgC;IAC3C,SAAS,CAAC,yBAAyB;;;;kCAAC;gBAExB,yBAAyB,EAAE,yBAAyB;IAIhE,WAAW,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAQ/D,KAAK,CAAC,WAAW,EAAE,YAAY;IAI/B,kBAAkB,CAAC,WAAW,EAAE,YAAY;CAGnD"}
1
+ {"version":3,"file":"QueueAcknowledgedMessagesService.d.ts","sourceRoot":"","sources":["../../../../src/services/QueueAcknowledgedMessagesService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAIpE,qBAAa,gCAAgC;IAC3C,SAAS,CAAC,yBAAyB;;;;;;kCAAC;gBAExB,yBAAyB,EAAE,yBAAyB;IAIhE,WAAW,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAQ/D,KAAK,CAAC,WAAW,EAAE,YAAY;IAK/B,kBAAkB,CAAC,WAAW,EAAE,YAAY;CAGnD"}
@@ -24,7 +24,8 @@ class QueueAcknowledgedMessagesService {
24
24
  }
25
25
  purge(queueParams) {
26
26
  return __awaiter(this, void 0, void 0, function* () {
27
- return this.queueAcknowledgedMessages.purgeAsync(queueParams);
27
+ yield this.queueAcknowledgedMessages.purgeAsync(queueParams);
28
+ yield bluebird_1.default.delay(5000);
28
29
  });
29
30
  }
30
31
  countMessagesAsync(queueParams) {
@@ -1 +1 @@
1
- {"version":3,"file":"QueueAcknowledgedMessagesService.js","sourceRoot":"","sources":["../../../../src/services/QueueAcknowledgedMessagesService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AASA,wDAAgC;AAGhC,MAAM,EAAE,YAAY,EAAE,GAAG,kBAAQ,CAAC;AAElC,MAAa,gCAAgC;IAG3C,YAAY,yBAAoD;QAC9D,IAAI,CAAC,yBAAyB,GAAG,YAAY,CAAC,yBAAyB,CAAC,CAAC;IAC3E,CAAC;IAED,WAAW,CAAC,WAAyB,EAAE,IAAY,EAAE,QAAgB;QACnE,OAAO,IAAI,CAAC,yBAAyB,CAAC,gBAAgB,CACpD,WAAW,EACX,IAAI,EACJ,QAAQ,CACT,CAAC;IACJ,CAAC;IAEK,KAAK,CAAC,WAAyB;;YACnC,OAAO,IAAI,CAAC,yBAAyB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAChE,CAAC;KAAA;IAEK,kBAAkB,CAAC,WAAyB;;YAChD,OAAO,IAAI,CAAC,yBAAyB,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;QACxE,CAAC;KAAA;CACF;AAtBD,4EAsBC"}
1
+ {"version":3,"file":"QueueAcknowledgedMessagesService.js","sourceRoot":"","sources":["../../../../src/services/QueueAcknowledgedMessagesService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AASA,wDAAgC;AAGhC,MAAM,EAAE,YAAY,EAAE,GAAG,kBAAQ,CAAC;AAElC,MAAa,gCAAgC;IAG3C,YAAY,yBAAoD;QAC9D,IAAI,CAAC,yBAAyB,GAAG,YAAY,CAAC,yBAAyB,CAAC,CAAC;IAC3E,CAAC;IAED,WAAW,CAAC,WAAyB,EAAE,IAAY,EAAE,QAAgB;QACnE,OAAO,IAAI,CAAC,yBAAyB,CAAC,gBAAgB,CACpD,WAAW,EACX,IAAI,EACJ,QAAQ,CACT,CAAC;IACJ,CAAC;IAEK,KAAK,CAAC,WAAyB;;YACnC,MAAM,IAAI,CAAC,yBAAyB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;YAC7D,MAAM,kBAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC;KAAA;IAEK,kBAAkB,CAAC,WAAyB;;YAChD,OAAO,IAAI,CAAC,yBAAyB,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;QACxE,CAAC;KAAA;CACF;AAvBD,4EAuBC"}
@@ -2,8 +2,10 @@ import { IQueueParams, QueueDeadLetteredMessages } from 'redis-smq';
2
2
  export declare class QueueDeadLetteredMessagesService {
3
3
  protected queueDeadLetteredMessages: {
4
4
  getMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
5
- purgeAsync: ((queue: import("redis-smq").TQueueExtendedParams) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams) => Promise<void>);
5
+ purgeAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<string>;
6
6
  countMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<number>;
7
+ cancelPurgeAsync: ((queue: import("redis-smq").TQueueExtendedParams, jobId: string) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams, jobId: string) => Promise<void>);
8
+ getMessageIdsAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<string>>;
7
9
  } & QueueDeadLetteredMessages;
8
10
  constructor(queueDeadLetteredMessages: QueueDeadLetteredMessages);
9
11
  getMessages(queueParams: IQueueParams, page: number, pageSize: number): Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"QueueDeadLetteredMessagesService.d.ts","sourceRoot":"","sources":["../../../../src/services/QueueDeadLetteredMessagesService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAIpE,qBAAa,gCAAgC;IAC3C,SAAS,CAAC,yBAAyB;;;;kCAAC;gBAExB,yBAAyB,EAAE,yBAAyB;IAIhE,WAAW,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAQ/D,KAAK,CAAC,WAAW,EAAE,YAAY;IAI/B,kBAAkB,CAAC,WAAW,EAAE,YAAY;CAGnD"}
1
+ {"version":3,"file":"QueueDeadLetteredMessagesService.d.ts","sourceRoot":"","sources":["../../../../src/services/QueueDeadLetteredMessagesService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAIpE,qBAAa,gCAAgC;IAC3C,SAAS,CAAC,yBAAyB;;;;;;kCAAC;gBAExB,yBAAyB,EAAE,yBAAyB;IAIhE,WAAW,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAQ/D,KAAK,CAAC,WAAW,EAAE,YAAY;IAK/B,kBAAkB,CAAC,WAAW,EAAE,YAAY;CAGnD"}
@@ -24,7 +24,8 @@ class QueueDeadLetteredMessagesService {
24
24
  }
25
25
  purge(queueParams) {
26
26
  return __awaiter(this, void 0, void 0, function* () {
27
- return this.queueDeadLetteredMessages.purgeAsync(queueParams);
27
+ yield this.queueDeadLetteredMessages.purgeAsync(queueParams);
28
+ yield bluebird_1.default.delay(5000);
28
29
  });
29
30
  }
30
31
  countMessagesAsync(queueParams) {
@@ -1 +1 @@
1
- {"version":3,"file":"QueueDeadLetteredMessagesService.js","sourceRoot":"","sources":["../../../../src/services/QueueDeadLetteredMessagesService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AASA,wDAAgC;AAGhC,MAAM,EAAE,YAAY,EAAE,GAAG,kBAAQ,CAAC;AAElC,MAAa,gCAAgC;IAG3C,YAAY,yBAAoD;QAC9D,IAAI,CAAC,yBAAyB,GAAG,YAAY,CAAC,yBAAyB,CAAC,CAAC;IAC3E,CAAC;IAED,WAAW,CAAC,WAAyB,EAAE,IAAY,EAAE,QAAgB;QACnE,OAAO,IAAI,CAAC,yBAAyB,CAAC,gBAAgB,CACpD,WAAW,EACX,IAAI,EACJ,QAAQ,CACT,CAAC;IACJ,CAAC;IAEK,KAAK,CAAC,WAAyB;;YACnC,OAAO,IAAI,CAAC,yBAAyB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAChE,CAAC;KAAA;IAEK,kBAAkB,CAAC,WAAyB;;YAChD,OAAO,IAAI,CAAC,yBAAyB,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;QACxE,CAAC;KAAA;CACF;AAtBD,4EAsBC"}
1
+ {"version":3,"file":"QueueDeadLetteredMessagesService.js","sourceRoot":"","sources":["../../../../src/services/QueueDeadLetteredMessagesService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AASA,wDAAgC;AAGhC,MAAM,EAAE,YAAY,EAAE,GAAG,kBAAQ,CAAC;AAElC,MAAa,gCAAgC;IAG3C,YAAY,yBAAoD;QAC9D,IAAI,CAAC,yBAAyB,GAAG,YAAY,CAAC,yBAAyB,CAAC,CAAC;IAC3E,CAAC;IAED,WAAW,CAAC,WAAyB,EAAE,IAAY,EAAE,QAAgB;QACnE,OAAO,IAAI,CAAC,yBAAyB,CAAC,gBAAgB,CACpD,WAAW,EACX,IAAI,EACJ,QAAQ,CACT,CAAC;IACJ,CAAC;IAEK,KAAK,CAAC,WAAyB;;YACnC,MAAM,IAAI,CAAC,yBAAyB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;YAC7D,MAAM,kBAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC;KAAA;IAEK,kBAAkB,CAAC,WAAyB;;YAChD,OAAO,IAAI,CAAC,yBAAyB,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;QACxE,CAAC;KAAA;CACF;AAvBD,4EAuBC"}
@@ -2,14 +2,16 @@ import { IQueueParams, QueueMessages } from 'redis-smq';
2
2
  export declare class QueueMessagesService {
3
3
  protected queueMessages: {
4
4
  countMessagesByStatusAsync: (queue: string | IQueueParams) => Promise<import("redis-smq").IQueueMessagesCount>;
5
- purgeAsync: ((queue: import("redis-smq").TQueueExtendedParams) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams) => Promise<void>);
5
+ purgeAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<string>;
6
+ cancelPurgeAsync: ((queue: import("redis-smq").TQueueExtendedParams, jobId: string) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams, jobId: string) => Promise<void>);
6
7
  getMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
7
8
  countMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<number>;
9
+ getMessageIdsAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<string>>;
8
10
  } & QueueMessages;
9
11
  constructor(queueMessages: QueueMessages);
10
12
  getMessages(queueParams: IQueueParams, page: number, pageSize: number): Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
11
13
  countMessagesAsync(queueParams: IQueueParams): Promise<number>;
12
- purge(queueParams: IQueueParams): Promise<void>;
14
+ purge(queueParams: IQueueParams): Promise<string>;
13
15
  countMessagesByStatus(queueParams: IQueueParams): Promise<import("redis-smq").IQueueMessagesCount>;
14
16
  }
15
17
  //# sourceMappingURL=QueueMessagesService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueueMessagesService.d.ts","sourceRoot":"","sources":["../../../../src/services/QueueMessagesService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAIxD,qBAAa,oBAAoB;IAC/B,SAAS,CAAC,aAAa;;;;;sBAAC;gBAEZ,aAAa,EAAE,aAAa;IAIxC,WAAW,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAI/D,kBAAkB,CAAC,WAAW,EAAE,YAAY;IAI5C,KAAK,CAAC,WAAW,EAAE,YAAY;IAI/B,qBAAqB,CAAC,WAAW,EAAE,YAAY;CAGtD"}
1
+ {"version":3,"file":"QueueMessagesService.d.ts","sourceRoot":"","sources":["../../../../src/services/QueueMessagesService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAIxD,qBAAa,oBAAoB;IAC/B,SAAS,CAAC,aAAa;;;;;;;sBAAC;gBAEZ,aAAa,EAAE,aAAa;IAIxC,WAAW,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAI/D,kBAAkB,CAAC,WAAW,EAAE,YAAY;IAI5C,KAAK,CAAC,WAAW,EAAE,YAAY;IAI/B,qBAAqB,CAAC,WAAW,EAAE,YAAY;CAGtD"}
@@ -2,12 +2,14 @@ import { IQueueParams, QueuePendingMessages, TQueueExtendedParams } from 'redis-
2
2
  export declare class QueuePendingMessagesService {
3
3
  protected queuePendingMessages: {
4
4
  countMessagesAsync: (queue: TQueueExtendedParams) => Promise<number>;
5
+ getMessageIdsAsync: (queue: TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<string>>;
5
6
  getMessagesAsync: (queue: TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
6
- purgeAsync: ((queue: TQueueExtendedParams) => Promise<undefined>) | ((queue: TQueueExtendedParams) => Promise<void>);
7
+ purgeAsync: (queue: TQueueExtendedParams) => Promise<string>;
8
+ cancelPurgeAsync: ((queue: TQueueExtendedParams, jobId: string) => Promise<undefined>) | ((queue: TQueueExtendedParams, jobId: string) => Promise<void>);
7
9
  } & QueuePendingMessages;
8
10
  constructor(queuePendingMessages: QueuePendingMessages);
9
11
  getMessages(queueParams: TQueueExtendedParams, page: number, pageSize: number): Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
10
12
  purge(queueParams: IQueueParams): Promise<void>;
11
- countMessagesAsync(queue: IQueueParams, groupId?: string): Promise<number>;
13
+ countMessagesAsync(queueParams: IQueueParams, groupId?: string): Promise<number>;
12
14
  }
13
15
  //# sourceMappingURL=QueuePendingMessagesService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueuePendingMessagesService.d.ts","sourceRoot":"","sources":["../../../../src/services/QueuePendingMessagesService.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,WAAW,CAAC;AAInB,qBAAa,2BAA2B;IACtC,SAAS,CAAC,oBAAoB;;;;6BAAC;gBAEnB,oBAAoB,EAAE,oBAAoB;IAItD,WAAW,CACT,WAAW,EAAE,oBAAoB,EACjC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;IASZ,KAAK,CAAC,WAAW,EAAE,YAAY;IAI/B,kBAAkB,CAAC,KAAK,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,MAAM;CAI/D"}
1
+ {"version":3,"file":"QueuePendingMessagesService.d.ts","sourceRoot":"","sources":["../../../../src/services/QueuePendingMessagesService.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,WAAW,CAAC;AAInB,qBAAa,2BAA2B;IACtC,SAAS,CAAC,oBAAoB;;;;;;6BAAC;gBAEnB,oBAAoB,EAAE,oBAAoB;IAItD,WAAW,CACT,WAAW,EAAE,oBAAoB,EACjC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;IASZ,KAAK,CAAC,WAAW,EAAE,YAAY;IAK/B,kBAAkB,CAAC,WAAW,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,MAAM;CAMrE"}
@@ -24,12 +24,15 @@ class QueuePendingMessagesService {
24
24
  }
25
25
  purge(queueParams) {
26
26
  return __awaiter(this, void 0, void 0, function* () {
27
- return this.queuePendingMessages.purgeAsync(queueParams);
27
+ yield this.queuePendingMessages.purgeAsync(queueParams);
28
+ yield bluebird_1.default.delay(5000);
28
29
  });
29
30
  }
30
- countMessagesAsync(queue, groupId) {
31
+ countMessagesAsync(queueParams, groupId) {
31
32
  return __awaiter(this, void 0, void 0, function* () {
32
- const params = groupId ? { queue, groupId } : queue;
33
+ const params = groupId
34
+ ? { queueParams, groupId }
35
+ : queueParams;
33
36
  return this.queuePendingMessages.countMessagesAsync(params);
34
37
  });
35
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QueuePendingMessagesService.js","sourceRoot":"","sources":["../../../../src/services/QueuePendingMessagesService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AASA,wDAAgC;AAOhC,MAAM,EAAE,YAAY,EAAE,GAAG,kBAAQ,CAAC;AAElC,MAAa,2BAA2B;IAGtC,YAAY,oBAA0C;QACpD,IAAI,CAAC,oBAAoB,GAAG,YAAY,CAAC,oBAAoB,CAAC,CAAC;IACjE,CAAC;IAED,WAAW,CACT,WAAiC,EACjC,IAAY,EACZ,QAAgB;QAEhB,OAAO,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CAC/C,WAAW,EACX,IAAI,EACJ,QAAQ,CACT,CAAC;IACJ,CAAC;IAEK,KAAK,CAAC,WAAyB;;YACnC,OAAO,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC3D,CAAC;KAAA;IAEK,kBAAkB,CAAC,KAAmB,EAAE,OAAgB;;YAC5D,MAAM,MAAM,GAAyB,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;YAC1E,OAAO,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;QAC9D,CAAC;KAAA;CACF;AA3BD,kEA2BC"}
1
+ {"version":3,"file":"QueuePendingMessagesService.js","sourceRoot":"","sources":["../../../../src/services/QueuePendingMessagesService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AASA,wDAAgC;AAOhC,MAAM,EAAE,YAAY,EAAE,GAAG,kBAAQ,CAAC;AAElC,MAAa,2BAA2B;IAGtC,YAAY,oBAA0C;QACpD,IAAI,CAAC,oBAAoB,GAAG,YAAY,CAAC,oBAAoB,CAAC,CAAC;IACjE,CAAC;IAED,WAAW,CACT,WAAiC,EACjC,IAAY,EACZ,QAAgB;QAEhB,OAAO,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CAC/C,WAAW,EACX,IAAI,EACJ,QAAQ,CACT,CAAC;IACJ,CAAC;IAEK,KAAK,CAAC,WAAyB;;YACnC,MAAM,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;YACxD,MAAM,kBAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC;KAAA;IAEK,kBAAkB,CAAC,WAAyB,EAAE,OAAgB;;YAClE,MAAM,MAAM,GAAyB,OAAO;gBAC1C,CAAC,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE;gBAC1B,CAAC,CAAC,WAAW,CAAC;YAChB,OAAO,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;QAC9D,CAAC;KAAA;CACF;AA9BD,kEA8BC"}
@@ -1,9 +1,11 @@
1
1
  import { IQueueParams, QueueScheduledMessages } from 'redis-smq';
2
2
  export declare class QueueScheduledMessagesService {
3
3
  protected queueScheduledMessages: {
4
- purgeAsync: ((queue: import("redis-smq").TQueueExtendedParams) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams) => Promise<void>);
4
+ purgeAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<string>;
5
+ cancelPurgeAsync: ((queue: import("redis-smq").TQueueExtendedParams, jobId: string) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams, jobId: string) => Promise<void>);
5
6
  getMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
6
7
  countMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<number>;
8
+ getMessageIdsAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<string>>;
7
9
  } & QueueScheduledMessages;
8
10
  constructor(queueScheduledMessages: QueueScheduledMessages);
9
11
  getMessages(queueParams: IQueueParams, page: number, pageSize: number): Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"QueueScheduledMessagesService.d.ts","sourceRoot":"","sources":["../../../../src/services/QueueScheduledMessagesService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAIjE,qBAAa,6BAA6B;IACxC,SAAS,CAAC,sBAAsB;;;;+BAAC;gBAErB,sBAAsB,EAAE,sBAAsB;IAI1D,WAAW,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAQ/D,KAAK,CAAC,WAAW,EAAE,YAAY;IAI/B,kBAAkB,CAAC,WAAW,EAAE,YAAY;CAGnD"}
1
+ {"version":3,"file":"QueueScheduledMessagesService.d.ts","sourceRoot":"","sources":["../../../../src/services/QueueScheduledMessagesService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAIjE,qBAAa,6BAA6B;IACxC,SAAS,CAAC,sBAAsB;;;;;;+BAAC;gBAErB,sBAAsB,EAAE,sBAAsB;IAI1D,WAAW,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAQ/D,KAAK,CAAC,WAAW,EAAE,YAAY;IAK/B,kBAAkB,CAAC,WAAW,EAAE,YAAY;CAGnD"}
@@ -24,7 +24,8 @@ class QueueScheduledMessagesService {
24
24
  }
25
25
  purge(queueParams) {
26
26
  return __awaiter(this, void 0, void 0, function* () {
27
- return this.queueScheduledMessages.purgeAsync(queueParams);
27
+ yield this.queueScheduledMessages.purgeAsync(queueParams);
28
+ yield bluebird_1.default.delay(5000);
28
29
  });
29
30
  }
30
31
  countMessagesAsync(queueParams) {
@@ -1 +1 @@
1
- {"version":3,"file":"QueueScheduledMessagesService.js","sourceRoot":"","sources":["../../../../src/services/QueueScheduledMessagesService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AASA,wDAAgC;AAGhC,MAAM,EAAE,YAAY,EAAE,GAAG,kBAAQ,CAAC;AAElC,MAAa,6BAA6B;IAGxC,YAAY,sBAA8C;QACxD,IAAI,CAAC,sBAAsB,GAAG,YAAY,CAAC,sBAAsB,CAAC,CAAC;IACrE,CAAC;IAED,WAAW,CAAC,WAAyB,EAAE,IAAY,EAAE,QAAgB;QACnE,OAAO,IAAI,CAAC,sBAAsB,CAAC,gBAAgB,CACjD,WAAW,EACX,IAAI,EACJ,QAAQ,CACT,CAAC;IACJ,CAAC;IAEK,KAAK,CAAC,WAAyB;;YACnC,OAAO,IAAI,CAAC,sBAAsB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC7D,CAAC;KAAA;IAEK,kBAAkB,CAAC,WAAyB;;YAChD,OAAO,IAAI,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;QACrE,CAAC;KAAA;CACF;AAtBD,sEAsBC"}
1
+ {"version":3,"file":"QueueScheduledMessagesService.js","sourceRoot":"","sources":["../../../../src/services/QueueScheduledMessagesService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AASA,wDAAgC;AAGhC,MAAM,EAAE,YAAY,EAAE,GAAG,kBAAQ,CAAC;AAElC,MAAa,6BAA6B;IAGxC,YAAY,sBAA8C;QACxD,IAAI,CAAC,sBAAsB,GAAG,YAAY,CAAC,sBAAsB,CAAC,CAAC;IACrE,CAAC;IAED,WAAW,CAAC,WAAyB,EAAE,IAAY,EAAE,QAAgB;QACnE,OAAO,IAAI,CAAC,sBAAsB,CAAC,gBAAgB,CACjD,WAAW,EACX,IAAI,EACJ,QAAQ,CACT,CAAC;IACJ,CAAC;IAEK,KAAK,CAAC,WAAyB;;YACnC,MAAM,IAAI,CAAC,sBAAsB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;YAC1D,MAAM,kBAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC;KAAA;IAEK,kBAAkB,CAAC,WAAyB;;YAChD,OAAO,IAAI,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;QACrE,CAAC;KAAA;CACF;AAvBD,sEAuBC"}
@@ -4,7 +4,7 @@ export const getQueuePendingMessagesController = async (ctx) => {
4
4
  const queueParams = ctx.scope.resolve('requestPathDTO');
5
5
  const { page, pageSize, consumerGroupId } = ctx.scope.resolve('requestQueryDTO');
6
6
  const r = await queuePendingMessagesService.getMessages({
7
- queue: queueParams,
7
+ queueParams,
8
8
  groupId: consumerGroupId ?? null,
9
9
  }, page, pageSize);
10
10
  return [200, r];
@@ -1 +1 @@
1
- {"version":3,"file":"getQueuePendingMessagesController.js","sourceRoot":"","sources":["../../../../../src/controllers/queue-pending-messages/getQueuePendingMessagesController.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAKzD,MAAM,CAAC,MAAM,iCAAiC,GAK1C,KAAK,EAAE,GAAG,EAAE,EAAE;IAChB,MAAM,2BAA2B,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC,OAAO,CACjE,6BAA6B,CAC9B,CAAC;IACF,MAAM,WAAW,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACxD,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,eAAe,EAAE,GACvC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACvC,MAAM,CAAC,GAAG,MAAM,2BAA2B,CAAC,WAAW,CACrD;QACE,KAAK,EAAE,WAAW;QAClB,OAAO,EAAE,eAAe,IAAI,IAAI;KACjC,EACD,IAAI,EACJ,QAAQ,CACT,CAAC;IACF,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC"}
1
+ {"version":3,"file":"getQueuePendingMessagesController.js","sourceRoot":"","sources":["../../../../../src/controllers/queue-pending-messages/getQueuePendingMessagesController.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAKzD,MAAM,CAAC,MAAM,iCAAiC,GAK1C,KAAK,EAAE,GAAG,EAAE,EAAE;IAChB,MAAM,2BAA2B,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC,OAAO,CACjE,6BAA6B,CAC9B,CAAC;IACF,MAAM,WAAW,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACxD,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,eAAe,EAAE,GACvC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACvC,MAAM,CAAC,GAAG,MAAM,2BAA2B,CAAC,WAAW,CACrD;QACE,WAAW;QACX,OAAO,EAAE,eAAe,IAAI,IAAI;KACjC,EACD,IAAI,EACJ,QAAQ,CACT,CAAC;IACF,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC"}
@@ -1,5 +1,7 @@
1
1
  export declare const errors: {
2
2
  readonly AcknowledgedMessageAuditNotEnabledError: readonly [500, "AcknowledgedMessageAuditNotEnabledError"];
3
+ readonly BackgroundJobNotFoundError: readonly [404, "BackgroundJobNotFoundError"];
4
+ readonly BackgroundJobTargetLockedError: readonly [500, "BackgroundJobTargetLockedError"];
3
5
  readonly ConfigurationMessageAuditExpireError: readonly [400, "ConfigurationMessageAuditExpireError"];
4
6
  readonly ConfigurationMessageAuditQueueSizeError: readonly [400, "ConfigurationMessageAuditQueueSizeError"];
5
7
  readonly ConfigurationNamespaceError: readonly [400, "ConfigurationNamespaceError"];
@@ -23,6 +25,7 @@ export declare const errors: {
23
25
  readonly InvalidExchangeParametersError: readonly [400, "InvalidExchangeParametersError"];
24
26
  readonly InvalidFanoutExchangeParametersError: readonly [400, "InvalidFanoutExchangeParametersError"];
25
27
  readonly InvalidNamespaceError: readonly [400, "InvalidNamespaceError"];
28
+ readonly InvalidPurgeQueueJobIdError: readonly [400, "InvalidPurgeQueueJobIdError"];
26
29
  readonly InvalidQueueParametersError: readonly [400, "InvalidQueueParametersError"];
27
30
  readonly InvalidQueueTypeError: readonly [400, "InvalidQueueTypeError"];
28
31
  readonly InvalidRateLimitIntervalError: readonly [429, "InvalidRateLimitIntervalError"];
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/errors/errors.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4FT,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG,OAAO,MAAM,CAAC"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/errors/errors.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+FT,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG,OAAO,MAAM,CAAC"}
@@ -3,6 +3,8 @@ export const errors = {
3
3
  500,
4
4
  'AcknowledgedMessageAuditNotEnabledError',
5
5
  ],
6
+ BackgroundJobNotFoundError: [404, 'BackgroundJobNotFoundError'],
7
+ BackgroundJobTargetLockedError: [500, 'BackgroundJobTargetLockedError'],
6
8
  ConfigurationMessageAuditExpireError: [
7
9
  400,
8
10
  'ConfigurationMessageAuditExpireError',
@@ -41,6 +43,7 @@ export const errors = {
41
43
  'InvalidFanoutExchangeParametersError',
42
44
  ],
43
45
  InvalidNamespaceError: [400, 'InvalidNamespaceError'],
46
+ InvalidPurgeQueueJobIdError: [400, 'InvalidPurgeQueueJobIdError'],
44
47
  InvalidQueueParametersError: [400, 'InvalidQueueParametersError'],
45
48
  InvalidQueueTypeError: [400, 'InvalidQueueTypeError'],
46
49
  InvalidRateLimitIntervalError: [429, 'InvalidRateLimitIntervalError'],
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/errors/errors.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,uCAAuC,EAAE;QACvC,GAAG;QACH,yCAAyC;KAC1C;IACD,oCAAoC,EAAE;QACpC,GAAG;QACH,sCAAsC;KACvC;IACD,uCAAuC,EAAE;QACvC,GAAG;QACH,yCAAyC;KAC1C;IACD,2BAA2B,EAAE,CAAC,GAAG,EAAE,6BAA6B,CAAC;IACjE,wBAAwB,EAAE,CAAC,GAAG,EAAE,0BAA0B,CAAC;IAC3D,0BAA0B,EAAE,CAAC,GAAG,EAAE,4BAA4B,CAAC;IAC/D,0BAA0B,EAAE,CAAC,GAAG,EAAE,4BAA4B,CAAC;IAC/D,0BAA0B,EAAE,CAAC,GAAG,EAAE,4BAA4B,CAAC;IAC/D,+BAA+B,EAAE,CAAC,GAAG,EAAE,iCAAiC,CAAC;IACzE,wBAAwB,EAAE,CAAC,GAAG,EAAE,0BAA0B,CAAC;IAC3D,uCAAuC,EAAE;QACvC,GAAG;QACH,yCAAyC;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AAE,4BAA4B,CAAC;CACvD,CAAC"}
@@ -7,8 +7,10 @@ export declare class ConsumerGroupsService {
7
7
  } & ConsumerGroups;
8
8
  protected queuePendingMessages: {
9
9
  countMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<number>;
10
+ getMessageIdsAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<string>>;
10
11
  getMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
11
- purgeAsync: ((queue: import("redis-smq").TQueueExtendedParams) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams) => Promise<void>);
12
+ purgeAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<string>;
13
+ cancelPurgeAsync: ((queue: import("redis-smq").TQueueExtendedParams, jobId: string) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams, jobId: string) => Promise<void>);
12
14
  } & QueuePendingMessages;
13
15
  constructor(consumerGroups: ConsumerGroups, queuePendingMessages: QueuePendingMessages);
14
16
  deleteConsumerGroup(queueParams: IQueueParams, consumerGroupId: string): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"ConsumerGroupsService.d.ts","sourceRoot":"","sources":["../../../../src/services/ConsumerGroupsService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAI/E,qBAAa,qBAAqB;IAChC,SAAS,CAAC,cAAc;;;;uBAAC;IACzB,SAAS,CAAC,oBAAoB;;;;6BAAC;gBAG7B,cAAc,EAAE,cAAc,EAC9B,oBAAoB,EAAE,oBAAoB;IAMtC,mBAAmB,CACvB,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,MAAM;IAQnB,iBAAiB,CAAC,WAAW,EAAE,YAAY;IAI3C,iBAAiB,CAAC,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM;IAOpE,kBAAkB,CACtB,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;IAYZ,oBAAoB,CACxB,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,MAAM;IAQnB,oBAAoB,CACxB,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,MAAM;CAO1B"}
1
+ {"version":3,"file":"ConsumerGroupsService.d.ts","sourceRoot":"","sources":["../../../../src/services/ConsumerGroupsService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAI/E,qBAAa,qBAAqB;IAChC,SAAS,CAAC,cAAc;;;;uBAAC;IACzB,SAAS,CAAC,oBAAoB;;;;;;6BAAC;gBAG7B,cAAc,EAAE,cAAc,EAC9B,oBAAoB,EAAE,oBAAoB;IAMtC,mBAAmB,CACvB,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,MAAM;IAQnB,iBAAiB,CAAC,WAAW,EAAE,YAAY;IAI3C,iBAAiB,CAAC,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM;IAOpE,kBAAkB,CACtB,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;IAYZ,oBAAoB,CACxB,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,MAAM;IAQnB,oBAAoB,CACxB,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,MAAM;CAQ1B"}
@@ -18,21 +18,22 @@ export class ConsumerGroupsService {
18
18
  }
19
19
  async getPendingMessages(queueParams, consumerGroupId, page, pageSize) {
20
20
  return this.queuePendingMessages.getMessagesAsync({
21
- queue: queueParams,
21
+ queueParams,
22
22
  groupId: consumerGroupId,
23
23
  }, page, pageSize);
24
24
  }
25
25
  async countPendingMessages(queueParams, consumerGroupId) {
26
26
  return this.queuePendingMessages.countMessagesAsync({
27
- queue: queueParams,
27
+ queueParams,
28
28
  groupId: consumerGroupId,
29
29
  });
30
30
  }
31
31
  async purgePendingMessages(queueParams, consumerGroupId) {
32
- return this.queuePendingMessages.purgeAsync({
33
- queue: queueParams,
32
+ await this.queuePendingMessages.purgeAsync({
33
+ queueParams,
34
34
  groupId: consumerGroupId,
35
35
  });
36
+ await bluebird.delay(5000);
36
37
  }
37
38
  }
38
39
  //# sourceMappingURL=ConsumerGroupsService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConsumerGroupsService.js","sourceRoot":"","sources":["../../../../src/services/ConsumerGroupsService.ts"],"names":[],"mappings":"AASA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,MAAM,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAC;AAElC,MAAM,OAAO,qBAAqB;IACtB,cAAc,CAAC;IACf,oBAAoB,CAAC;IAE/B,YACE,cAA8B,EAC9B,oBAA0C;QAE1C,IAAI,CAAC,cAAc,GAAG,YAAY,CAAC,cAAc,CAAC,CAAC;QACnD,IAAI,CAAC,oBAAoB,GAAG,YAAY,CAAC,oBAAoB,CAAC,CAAC;IACjE,CAAC;IAED,KAAK,CAAC,mBAAmB,CACvB,WAAyB,EACzB,eAAuB;QAEvB,MAAM,IAAI,CAAC,cAAc,CAAC,wBAAwB,CAChD,WAAW,EACX,eAAe,CAChB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,WAAyB;QAC/C,OAAO,IAAI,CAAC,cAAc,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAAC;IACjE,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,WAAyB,EAAE,eAAuB;QACxE,MAAM,IAAI,CAAC,cAAc,CAAC,sBAAsB,CAC9C,WAAW,EACX,eAAe,CAChB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,kBAAkB,CACtB,WAAyB,EACzB,eAAuB,EACvB,IAAY,EACZ,QAAgB;QAEhB,OAAO,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CAC/C;YACE,KAAK,EAAE,WAAW;YAClB,OAAO,EAAE,eAAe;SACzB,EACD,IAAI,EACJ,QAAQ,CACT,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,oBAAoB,CACxB,WAAyB,EACzB,eAAuB;QAEvB,OAAO,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAAC;YAClD,KAAK,EAAE,WAAW;YAClB,OAAO,EAAE,eAAe;SACzB,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,oBAAoB,CACxB,WAAyB,EACzB,eAAuB;QAEvB,OAAO,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC;YAC1C,KAAK,EAAE,WAAW;YAClB,OAAO,EAAE,eAAe;SACzB,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"ConsumerGroupsService.js","sourceRoot":"","sources":["../../../../src/services/ConsumerGroupsService.ts"],"names":[],"mappings":"AASA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,MAAM,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAC;AAElC,MAAM,OAAO,qBAAqB;IACtB,cAAc,CAAC;IACf,oBAAoB,CAAC;IAE/B,YACE,cAA8B,EAC9B,oBAA0C;QAE1C,IAAI,CAAC,cAAc,GAAG,YAAY,CAAC,cAAc,CAAC,CAAC;QACnD,IAAI,CAAC,oBAAoB,GAAG,YAAY,CAAC,oBAAoB,CAAC,CAAC;IACjE,CAAC;IAED,KAAK,CAAC,mBAAmB,CACvB,WAAyB,EACzB,eAAuB;QAEvB,MAAM,IAAI,CAAC,cAAc,CAAC,wBAAwB,CAChD,WAAW,EACX,eAAe,CAChB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,WAAyB;QAC/C,OAAO,IAAI,CAAC,cAAc,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAAC;IACjE,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,WAAyB,EAAE,eAAuB;QACxE,MAAM,IAAI,CAAC,cAAc,CAAC,sBAAsB,CAC9C,WAAW,EACX,eAAe,CAChB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,kBAAkB,CACtB,WAAyB,EACzB,eAAuB,EACvB,IAAY,EACZ,QAAgB;QAEhB,OAAO,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CAC/C;YACE,WAAW;YACX,OAAO,EAAE,eAAe;SACzB,EACD,IAAI,EACJ,QAAQ,CACT,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,oBAAoB,CACxB,WAAyB,EACzB,eAAuB;QAEvB,OAAO,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAAC;YAClD,WAAW;YACX,OAAO,EAAE,eAAe;SACzB,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,oBAAoB,CACxB,WAAyB,EACzB,eAAuB;QAEvB,MAAM,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC;YACzC,WAAW;YACX,OAAO,EAAE,eAAe;SACzB,CAAC,CAAC;QACH,MAAM,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;CACF"}
@@ -2,8 +2,10 @@ import { IQueueParams, QueueAcknowledgedMessages } from 'redis-smq';
2
2
  export declare class QueueAcknowledgedMessagesService {
3
3
  protected queueAcknowledgedMessages: {
4
4
  getMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
5
- purgeAsync: ((queue: import("redis-smq").TQueueExtendedParams) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams) => Promise<void>);
5
+ purgeAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<string>;
6
6
  countMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<number>;
7
+ cancelPurgeAsync: ((queue: import("redis-smq").TQueueExtendedParams, jobId: string) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams, jobId: string) => Promise<void>);
8
+ getMessageIdsAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<string>>;
7
9
  } & QueueAcknowledgedMessages;
8
10
  constructor(queueAcknowledgedMessages: QueueAcknowledgedMessages);
9
11
  getMessages(queueParams: IQueueParams, page: number, pageSize: number): Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"QueueAcknowledgedMessagesService.d.ts","sourceRoot":"","sources":["../../../../src/services/QueueAcknowledgedMessagesService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAIpE,qBAAa,gCAAgC;IAC3C,SAAS,CAAC,yBAAyB;;;;kCAAC;gBAExB,yBAAyB,EAAE,yBAAyB;IAIhE,WAAW,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAQ/D,KAAK,CAAC,WAAW,EAAE,YAAY;IAI/B,kBAAkB,CAAC,WAAW,EAAE,YAAY;CAGnD"}
1
+ {"version":3,"file":"QueueAcknowledgedMessagesService.d.ts","sourceRoot":"","sources":["../../../../src/services/QueueAcknowledgedMessagesService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAIpE,qBAAa,gCAAgC;IAC3C,SAAS,CAAC,yBAAyB;;;;;;kCAAC;gBAExB,yBAAyB,EAAE,yBAAyB;IAIhE,WAAW,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAQ/D,KAAK,CAAC,WAAW,EAAE,YAAY;IAK/B,kBAAkB,CAAC,WAAW,EAAE,YAAY;CAGnD"}
@@ -9,7 +9,8 @@ export class QueueAcknowledgedMessagesService {
9
9
  return this.queueAcknowledgedMessages.getMessagesAsync(queueParams, page, pageSize);
10
10
  }
11
11
  async purge(queueParams) {
12
- return this.queueAcknowledgedMessages.purgeAsync(queueParams);
12
+ await this.queueAcknowledgedMessages.purgeAsync(queueParams);
13
+ await bluebird.delay(5000);
13
14
  }
14
15
  async countMessagesAsync(queueParams) {
15
16
  return this.queueAcknowledgedMessages.countMessagesAsync(queueParams);
@@ -1 +1 @@
1
- {"version":3,"file":"QueueAcknowledgedMessagesService.js","sourceRoot":"","sources":["../../../../src/services/QueueAcknowledgedMessagesService.ts"],"names":[],"mappings":"AASA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,MAAM,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAC;AAElC,MAAM,OAAO,gCAAgC;IACjC,yBAAyB,CAAC;IAEpC,YAAY,yBAAoD;QAC9D,IAAI,CAAC,yBAAyB,GAAG,YAAY,CAAC,yBAAyB,CAAC,CAAC;IAC3E,CAAC;IAED,WAAW,CAAC,WAAyB,EAAE,IAAY,EAAE,QAAgB;QACnE,OAAO,IAAI,CAAC,yBAAyB,CAAC,gBAAgB,CACpD,WAAW,EACX,IAAI,EACJ,QAAQ,CACT,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,WAAyB;QACnC,OAAO,IAAI,CAAC,yBAAyB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;IAChE,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,WAAyB;QAChD,OAAO,IAAI,CAAC,yBAAyB,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;IACxE,CAAC;CACF"}
1
+ {"version":3,"file":"QueueAcknowledgedMessagesService.js","sourceRoot":"","sources":["../../../../src/services/QueueAcknowledgedMessagesService.ts"],"names":[],"mappings":"AASA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,MAAM,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAC;AAElC,MAAM,OAAO,gCAAgC;IACjC,yBAAyB,CAAC;IAEpC,YAAY,yBAAoD;QAC9D,IAAI,CAAC,yBAAyB,GAAG,YAAY,CAAC,yBAAyB,CAAC,CAAC;IAC3E,CAAC;IAED,WAAW,CAAC,WAAyB,EAAE,IAAY,EAAE,QAAgB;QACnE,OAAO,IAAI,CAAC,yBAAyB,CAAC,gBAAgB,CACpD,WAAW,EACX,IAAI,EACJ,QAAQ,CACT,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,WAAyB;QACnC,MAAM,IAAI,CAAC,yBAAyB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC7D,MAAM,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,WAAyB;QAChD,OAAO,IAAI,CAAC,yBAAyB,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;IACxE,CAAC;CACF"}
@@ -2,8 +2,10 @@ import { IQueueParams, QueueDeadLetteredMessages } from 'redis-smq';
2
2
  export declare class QueueDeadLetteredMessagesService {
3
3
  protected queueDeadLetteredMessages: {
4
4
  getMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
5
- purgeAsync: ((queue: import("redis-smq").TQueueExtendedParams) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams) => Promise<void>);
5
+ purgeAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<string>;
6
6
  countMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<number>;
7
+ cancelPurgeAsync: ((queue: import("redis-smq").TQueueExtendedParams, jobId: string) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams, jobId: string) => Promise<void>);
8
+ getMessageIdsAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<string>>;
7
9
  } & QueueDeadLetteredMessages;
8
10
  constructor(queueDeadLetteredMessages: QueueDeadLetteredMessages);
9
11
  getMessages(queueParams: IQueueParams, page: number, pageSize: number): Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"QueueDeadLetteredMessagesService.d.ts","sourceRoot":"","sources":["../../../../src/services/QueueDeadLetteredMessagesService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAIpE,qBAAa,gCAAgC;IAC3C,SAAS,CAAC,yBAAyB;;;;kCAAC;gBAExB,yBAAyB,EAAE,yBAAyB;IAIhE,WAAW,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAQ/D,KAAK,CAAC,WAAW,EAAE,YAAY;IAI/B,kBAAkB,CAAC,WAAW,EAAE,YAAY;CAGnD"}
1
+ {"version":3,"file":"QueueDeadLetteredMessagesService.d.ts","sourceRoot":"","sources":["../../../../src/services/QueueDeadLetteredMessagesService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAIpE,qBAAa,gCAAgC;IAC3C,SAAS,CAAC,yBAAyB;;;;;;kCAAC;gBAExB,yBAAyB,EAAE,yBAAyB;IAIhE,WAAW,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAQ/D,KAAK,CAAC,WAAW,EAAE,YAAY;IAK/B,kBAAkB,CAAC,WAAW,EAAE,YAAY;CAGnD"}
@@ -9,7 +9,8 @@ export class QueueDeadLetteredMessagesService {
9
9
  return this.queueDeadLetteredMessages.getMessagesAsync(queueParams, page, pageSize);
10
10
  }
11
11
  async purge(queueParams) {
12
- return this.queueDeadLetteredMessages.purgeAsync(queueParams);
12
+ await this.queueDeadLetteredMessages.purgeAsync(queueParams);
13
+ await bluebird.delay(5000);
13
14
  }
14
15
  async countMessagesAsync(queueParams) {
15
16
  return this.queueDeadLetteredMessages.countMessagesAsync(queueParams);
@@ -1 +1 @@
1
- {"version":3,"file":"QueueDeadLetteredMessagesService.js","sourceRoot":"","sources":["../../../../src/services/QueueDeadLetteredMessagesService.ts"],"names":[],"mappings":"AASA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,MAAM,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAC;AAElC,MAAM,OAAO,gCAAgC;IACjC,yBAAyB,CAAC;IAEpC,YAAY,yBAAoD;QAC9D,IAAI,CAAC,yBAAyB,GAAG,YAAY,CAAC,yBAAyB,CAAC,CAAC;IAC3E,CAAC;IAED,WAAW,CAAC,WAAyB,EAAE,IAAY,EAAE,QAAgB;QACnE,OAAO,IAAI,CAAC,yBAAyB,CAAC,gBAAgB,CACpD,WAAW,EACX,IAAI,EACJ,QAAQ,CACT,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,WAAyB;QACnC,OAAO,IAAI,CAAC,yBAAyB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;IAChE,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,WAAyB;QAChD,OAAO,IAAI,CAAC,yBAAyB,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;IACxE,CAAC;CACF"}
1
+ {"version":3,"file":"QueueDeadLetteredMessagesService.js","sourceRoot":"","sources":["../../../../src/services/QueueDeadLetteredMessagesService.ts"],"names":[],"mappings":"AASA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,MAAM,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAC;AAElC,MAAM,OAAO,gCAAgC;IACjC,yBAAyB,CAAC;IAEpC,YAAY,yBAAoD;QAC9D,IAAI,CAAC,yBAAyB,GAAG,YAAY,CAAC,yBAAyB,CAAC,CAAC;IAC3E,CAAC;IAED,WAAW,CAAC,WAAyB,EAAE,IAAY,EAAE,QAAgB;QACnE,OAAO,IAAI,CAAC,yBAAyB,CAAC,gBAAgB,CACpD,WAAW,EACX,IAAI,EACJ,QAAQ,CACT,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,WAAyB;QACnC,MAAM,IAAI,CAAC,yBAAyB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC7D,MAAM,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,WAAyB;QAChD,OAAO,IAAI,CAAC,yBAAyB,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;IACxE,CAAC;CACF"}
@@ -2,14 +2,16 @@ import { IQueueParams, QueueMessages } from 'redis-smq';
2
2
  export declare class QueueMessagesService {
3
3
  protected queueMessages: {
4
4
  countMessagesByStatusAsync: (queue: string | IQueueParams) => Promise<import("redis-smq").IQueueMessagesCount>;
5
- purgeAsync: ((queue: import("redis-smq").TQueueExtendedParams) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams) => Promise<void>);
5
+ purgeAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<string>;
6
+ cancelPurgeAsync: ((queue: import("redis-smq").TQueueExtendedParams, jobId: string) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams, jobId: string) => Promise<void>);
6
7
  getMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
7
8
  countMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<number>;
9
+ getMessageIdsAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<string>>;
8
10
  } & QueueMessages;
9
11
  constructor(queueMessages: QueueMessages);
10
12
  getMessages(queueParams: IQueueParams, page: number, pageSize: number): Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
11
13
  countMessagesAsync(queueParams: IQueueParams): Promise<number>;
12
- purge(queueParams: IQueueParams): Promise<void>;
14
+ purge(queueParams: IQueueParams): Promise<string>;
13
15
  countMessagesByStatus(queueParams: IQueueParams): Promise<import("redis-smq").IQueueMessagesCount>;
14
16
  }
15
17
  //# sourceMappingURL=QueueMessagesService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueueMessagesService.d.ts","sourceRoot":"","sources":["../../../../src/services/QueueMessagesService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAIxD,qBAAa,oBAAoB;IAC/B,SAAS,CAAC,aAAa;;;;;sBAAC;gBAEZ,aAAa,EAAE,aAAa;IAIxC,WAAW,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAI/D,kBAAkB,CAAC,WAAW,EAAE,YAAY;IAI5C,KAAK,CAAC,WAAW,EAAE,YAAY;IAI/B,qBAAqB,CAAC,WAAW,EAAE,YAAY;CAGtD"}
1
+ {"version":3,"file":"QueueMessagesService.d.ts","sourceRoot":"","sources":["../../../../src/services/QueueMessagesService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAIxD,qBAAa,oBAAoB;IAC/B,SAAS,CAAC,aAAa;;;;;;;sBAAC;gBAEZ,aAAa,EAAE,aAAa;IAIxC,WAAW,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAI/D,kBAAkB,CAAC,WAAW,EAAE,YAAY;IAI5C,KAAK,CAAC,WAAW,EAAE,YAAY;IAI/B,qBAAqB,CAAC,WAAW,EAAE,YAAY;CAGtD"}
@@ -2,12 +2,14 @@ import { IQueueParams, QueuePendingMessages, TQueueExtendedParams } from 'redis-
2
2
  export declare class QueuePendingMessagesService {
3
3
  protected queuePendingMessages: {
4
4
  countMessagesAsync: (queue: TQueueExtendedParams) => Promise<number>;
5
+ getMessageIdsAsync: (queue: TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<string>>;
5
6
  getMessagesAsync: (queue: TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
6
- purgeAsync: ((queue: TQueueExtendedParams) => Promise<undefined>) | ((queue: TQueueExtendedParams) => Promise<void>);
7
+ purgeAsync: (queue: TQueueExtendedParams) => Promise<string>;
8
+ cancelPurgeAsync: ((queue: TQueueExtendedParams, jobId: string) => Promise<undefined>) | ((queue: TQueueExtendedParams, jobId: string) => Promise<void>);
7
9
  } & QueuePendingMessages;
8
10
  constructor(queuePendingMessages: QueuePendingMessages);
9
11
  getMessages(queueParams: TQueueExtendedParams, page: number, pageSize: number): Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
10
12
  purge(queueParams: IQueueParams): Promise<void>;
11
- countMessagesAsync(queue: IQueueParams, groupId?: string): Promise<number>;
13
+ countMessagesAsync(queueParams: IQueueParams, groupId?: string): Promise<number>;
12
14
  }
13
15
  //# sourceMappingURL=QueuePendingMessagesService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueuePendingMessagesService.d.ts","sourceRoot":"","sources":["../../../../src/services/QueuePendingMessagesService.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,WAAW,CAAC;AAInB,qBAAa,2BAA2B;IACtC,SAAS,CAAC,oBAAoB;;;;6BAAC;gBAEnB,oBAAoB,EAAE,oBAAoB;IAItD,WAAW,CACT,WAAW,EAAE,oBAAoB,EACjC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;IASZ,KAAK,CAAC,WAAW,EAAE,YAAY;IAI/B,kBAAkB,CAAC,KAAK,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,MAAM;CAI/D"}
1
+ {"version":3,"file":"QueuePendingMessagesService.d.ts","sourceRoot":"","sources":["../../../../src/services/QueuePendingMessagesService.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,WAAW,CAAC;AAInB,qBAAa,2BAA2B;IACtC,SAAS,CAAC,oBAAoB;;;;;;6BAAC;gBAEnB,oBAAoB,EAAE,oBAAoB;IAItD,WAAW,CACT,WAAW,EAAE,oBAAoB,EACjC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;IASZ,KAAK,CAAC,WAAW,EAAE,YAAY;IAK/B,kBAAkB,CAAC,WAAW,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,MAAM;CAMrE"}
@@ -9,10 +9,13 @@ export class QueuePendingMessagesService {
9
9
  return this.queuePendingMessages.getMessagesAsync(queueParams, page, pageSize);
10
10
  }
11
11
  async purge(queueParams) {
12
- return this.queuePendingMessages.purgeAsync(queueParams);
12
+ await this.queuePendingMessages.purgeAsync(queueParams);
13
+ await bluebird.delay(5000);
13
14
  }
14
- async countMessagesAsync(queue, groupId) {
15
- const params = groupId ? { queue, groupId } : queue;
15
+ async countMessagesAsync(queueParams, groupId) {
16
+ const params = groupId
17
+ ? { queueParams, groupId }
18
+ : queueParams;
16
19
  return this.queuePendingMessages.countMessagesAsync(params);
17
20
  }
18
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QueuePendingMessagesService.js","sourceRoot":"","sources":["../../../../src/services/QueuePendingMessagesService.ts"],"names":[],"mappings":"AASA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAOhC,MAAM,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAC;AAElC,MAAM,OAAO,2BAA2B;IAC5B,oBAAoB,CAAC;IAE/B,YAAY,oBAA0C;QACpD,IAAI,CAAC,oBAAoB,GAAG,YAAY,CAAC,oBAAoB,CAAC,CAAC;IACjE,CAAC;IAED,WAAW,CACT,WAAiC,EACjC,IAAY,EACZ,QAAgB;QAEhB,OAAO,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CAC/C,WAAW,EACX,IAAI,EACJ,QAAQ,CACT,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,WAAyB;QACnC,OAAO,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;IAC3D,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,KAAmB,EAAE,OAAgB;QAC5D,MAAM,MAAM,GAAyB,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;QAC1E,OAAO,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC9D,CAAC;CACF"}
1
+ {"version":3,"file":"QueuePendingMessagesService.js","sourceRoot":"","sources":["../../../../src/services/QueuePendingMessagesService.ts"],"names":[],"mappings":"AASA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAOhC,MAAM,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAC;AAElC,MAAM,OAAO,2BAA2B;IAC5B,oBAAoB,CAAC;IAE/B,YAAY,oBAA0C;QACpD,IAAI,CAAC,oBAAoB,GAAG,YAAY,CAAC,oBAAoB,CAAC,CAAC;IACjE,CAAC;IAED,WAAW,CACT,WAAiC,EACjC,IAAY,EACZ,QAAgB;QAEhB,OAAO,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CAC/C,WAAW,EACX,IAAI,EACJ,QAAQ,CACT,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,WAAyB;QACnC,MAAM,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QACxD,MAAM,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,WAAyB,EAAE,OAAgB;QAClE,MAAM,MAAM,GAAyB,OAAO;YAC1C,CAAC,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE;YAC1B,CAAC,CAAC,WAAW,CAAC;QAChB,OAAO,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC9D,CAAC;CACF"}
@@ -1,9 +1,11 @@
1
1
  import { IQueueParams, QueueScheduledMessages } from 'redis-smq';
2
2
  export declare class QueueScheduledMessagesService {
3
3
  protected queueScheduledMessages: {
4
- purgeAsync: ((queue: import("redis-smq").TQueueExtendedParams) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams) => Promise<void>);
4
+ purgeAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<string>;
5
+ cancelPurgeAsync: ((queue: import("redis-smq").TQueueExtendedParams, jobId: string) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams, jobId: string) => Promise<void>);
5
6
  getMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
6
7
  countMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<number>;
8
+ getMessageIdsAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IBrowserPage<string>>;
7
9
  } & QueueScheduledMessages;
8
10
  constructor(queueScheduledMessages: QueueScheduledMessages);
9
11
  getMessages(queueParams: IQueueParams, page: number, pageSize: number): Promise<import("redis-smq").IBrowserPage<import("redis-smq").IMessageTransferable<unknown>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"QueueScheduledMessagesService.d.ts","sourceRoot":"","sources":["../../../../src/services/QueueScheduledMessagesService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAIjE,qBAAa,6BAA6B;IACxC,SAAS,CAAC,sBAAsB;;;;+BAAC;gBAErB,sBAAsB,EAAE,sBAAsB;IAI1D,WAAW,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAQ/D,KAAK,CAAC,WAAW,EAAE,YAAY;IAI/B,kBAAkB,CAAC,WAAW,EAAE,YAAY;CAGnD"}
1
+ {"version":3,"file":"QueueScheduledMessagesService.d.ts","sourceRoot":"","sources":["../../../../src/services/QueueScheduledMessagesService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAIjE,qBAAa,6BAA6B;IACxC,SAAS,CAAC,sBAAsB;;;;;;+BAAC;gBAErB,sBAAsB,EAAE,sBAAsB;IAI1D,WAAW,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAQ/D,KAAK,CAAC,WAAW,EAAE,YAAY;IAK/B,kBAAkB,CAAC,WAAW,EAAE,YAAY;CAGnD"}
@@ -9,7 +9,8 @@ export class QueueScheduledMessagesService {
9
9
  return this.queueScheduledMessages.getMessagesAsync(queueParams, page, pageSize);
10
10
  }
11
11
  async purge(queueParams) {
12
- return this.queueScheduledMessages.purgeAsync(queueParams);
12
+ await this.queueScheduledMessages.purgeAsync(queueParams);
13
+ await bluebird.delay(5000);
13
14
  }
14
15
  async countMessagesAsync(queueParams) {
15
16
  return this.queueScheduledMessages.countMessagesAsync(queueParams);
@@ -1 +1 @@
1
- {"version":3,"file":"QueueScheduledMessagesService.js","sourceRoot":"","sources":["../../../../src/services/QueueScheduledMessagesService.ts"],"names":[],"mappings":"AASA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,MAAM,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAC;AAElC,MAAM,OAAO,6BAA6B;IAC9B,sBAAsB,CAAC;IAEjC,YAAY,sBAA8C;QACxD,IAAI,CAAC,sBAAsB,GAAG,YAAY,CAAC,sBAAsB,CAAC,CAAC;IACrE,CAAC;IAED,WAAW,CAAC,WAAyB,EAAE,IAAY,EAAE,QAAgB;QACnE,OAAO,IAAI,CAAC,sBAAsB,CAAC,gBAAgB,CACjD,WAAW,EACX,IAAI,EACJ,QAAQ,CACT,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,WAAyB;QACnC,OAAO,IAAI,CAAC,sBAAsB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;IAC7D,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,WAAyB;QAChD,OAAO,IAAI,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;IACrE,CAAC;CACF"}
1
+ {"version":3,"file":"QueueScheduledMessagesService.js","sourceRoot":"","sources":["../../../../src/services/QueueScheduledMessagesService.ts"],"names":[],"mappings":"AASA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,MAAM,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAC;AAElC,MAAM,OAAO,6BAA6B;IAC9B,sBAAsB,CAAC;IAEjC,YAAY,sBAA8C;QACxD,IAAI,CAAC,sBAAsB,GAAG,YAAY,CAAC,sBAAsB,CAAC,CAAC;IACrE,CAAC;IAED,WAAW,CAAC,WAAyB,EAAE,IAAY,EAAE,QAAgB;QACnE,OAAO,IAAI,CAAC,sBAAsB,CAAC,gBAAgB,CACjD,WAAW,EACX,IAAI,EACJ,QAAQ,CACT,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,WAAyB;QACnC,MAAM,IAAI,CAAC,sBAAsB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC1D,MAAM,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,WAAyB;QAChD,OAAO,IAAI,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;IACrE,CAAC;CACF"}
package/dist/schema.json CHANGED
@@ -7977,6 +7977,44 @@
7977
7977
  "minItems": 2,
7978
7978
  "type": "array"
7979
7979
  },
7980
+ "BackgroundJobNotFoundError": {
7981
+ "default": [
7982
+ 404,
7983
+ "BackgroundJobNotFoundError"
7984
+ ],
7985
+ "items": [
7986
+ {
7987
+ "const": 404,
7988
+ "type": "number"
7989
+ },
7990
+ {
7991
+ "const": "BackgroundJobNotFoundError",
7992
+ "type": "string"
7993
+ }
7994
+ ],
7995
+ "maxItems": 2,
7996
+ "minItems": 2,
7997
+ "type": "array"
7998
+ },
7999
+ "BackgroundJobTargetLockedError": {
8000
+ "default": [
8001
+ 500,
8002
+ "BackgroundJobTargetLockedError"
8003
+ ],
8004
+ "items": [
8005
+ {
8006
+ "const": 500,
8007
+ "type": "number"
8008
+ },
8009
+ {
8010
+ "const": "BackgroundJobTargetLockedError",
8011
+ "type": "string"
8012
+ }
8013
+ ],
8014
+ "maxItems": 2,
8015
+ "minItems": 2,
8016
+ "type": "array"
8017
+ },
7980
8018
  "ConfigurationMessageAuditExpireError": {
7981
8019
  "default": [
7982
8020
  400,
@@ -8414,6 +8452,25 @@
8414
8452
  "minItems": 2,
8415
8453
  "type": "array"
8416
8454
  },
8455
+ "InvalidPurgeQueueJobIdError": {
8456
+ "default": [
8457
+ 400,
8458
+ "InvalidPurgeQueueJobIdError"
8459
+ ],
8460
+ "items": [
8461
+ {
8462
+ "const": 400,
8463
+ "type": "number"
8464
+ },
8465
+ {
8466
+ "const": "InvalidPurgeQueueJobIdError",
8467
+ "type": "string"
8468
+ }
8469
+ ],
8470
+ "maxItems": 2,
8471
+ "minItems": 2,
8472
+ "type": "array"
8473
+ },
8417
8474
  "InvalidQueueParametersError": {
8418
8475
  "default": [
8419
8476
  400,
@@ -9120,6 +9177,8 @@
9120
9177
  },
9121
9178
  "required": [
9122
9179
  "AcknowledgedMessageAuditNotEnabledError",
9180
+ "BackgroundJobNotFoundError",
9181
+ "BackgroundJobTargetLockedError",
9123
9182
  "ConfigurationMessageAuditExpireError",
9124
9183
  "ConfigurationMessageAuditQueueSizeError",
9125
9184
  "ConfigurationNamespaceError",
@@ -9143,6 +9202,7 @@
9143
9202
  "InvalidExchangeParametersError",
9144
9203
  "InvalidFanoutExchangeParametersError",
9145
9204
  "InvalidNamespaceError",
9205
+ "InvalidPurgeQueueJobIdError",
9146
9206
  "InvalidQueueParametersError",
9147
9207
  "InvalidQueueTypeError",
9148
9208
  "InvalidRateLimitIntervalError",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redis-smq-rest-api",
3
- "version": "9.0.10-next.3",
3
+ "version": "9.0.11-next.0",
4
4
  "description": "REST API for RedisSMQ: OpenAPI 3 schema and Swagger UI for managing queues, messages, and consumers.",
5
5
  "author": "Weyoss <weyoss@outlook.com>",
6
6
  "license": "MIT",
@@ -68,8 +68,8 @@
68
68
  "peerDependencies": {
69
69
  "@redis/client": "^5",
70
70
  "ioredis": "^5",
71
- "redis-smq": "^9.0.10-next.3",
72
- "redis-smq-common": "^9.0.10-next.3"
71
+ "redis-smq-common": "^9.0.11-next.0",
72
+ "redis-smq": "^9.0.11-next.0"
73
73
  },
74
74
  "peerDependenciesMeta": {
75
75
  "@redis/client": {
@@ -88,6 +88,7 @@
88
88
  "@types/koa__router": "12.0.5",
89
89
  "@types/swagger-ui-dist": "3.30.6",
90
90
  "@types/tmp": "0.2.6",
91
+ "bluebird": "3.7.2",
91
92
  "openapi-types": "12.1.3"
92
93
  },
93
94
  "bin": {