redis-smq-rest-api 9.0.4-next.0 → 9.0.5-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.
- package/CHANGELOG.md +16 -0
- package/dist/cjs/src/errors/errors.d.ts +2 -0
- package/dist/cjs/src/errors/errors.d.ts.map +1 -1
- package/dist/cjs/src/errors/errors.js +8 -0
- package/dist/cjs/src/errors/errors.js.map +1 -1
- package/dist/cjs/src/services/QueueAcknowledgedMessagesService.d.ts +1 -1
- package/dist/cjs/src/services/QueueDeadLetteredMessagesService.d.ts +1 -1
- package/dist/esm/src/errors/errors.d.ts +2 -0
- package/dist/esm/src/errors/errors.d.ts.map +1 -1
- package/dist/esm/src/errors/errors.js +8 -0
- package/dist/esm/src/errors/errors.js.map +1 -1
- package/dist/esm/src/services/QueueAcknowledgedMessagesService.d.ts +1 -1
- package/dist/esm/src/services/QueueDeadLetteredMessagesService.d.ts +1 -1
- package/dist/schema.json +40 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.5-next.0](https://github.com/weyoss/redis-smq/compare/v9.0.4...v9.0.5-next.0) (2025-12-04)
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore
|
|
9
|
+
|
|
10
|
+
- update READMEs after merging 'v9.0.4' into 'next' ([9fce2ae](https://github.com/weyoss/redis-smq/commit/9fce2ae4158c1c2ca112a897e08d73913d1a7bd1))
|
|
11
|
+
|
|
12
|
+
### ♻️ Code Refactoring
|
|
13
|
+
|
|
14
|
+
- **redis-smq-rest-api:** add new error classes ([0da54a6](https://github.com/weyoss/redis-smq/commit/0da54a6293e6053534a696d0f7d15dbd892587be))
|
|
15
|
+
|
|
16
|
+
## [9.0.4](https://github.com/weyoss/redis-smq/compare/v9.0.4-next.0...v9.0.4) (2025-11-13)
|
|
17
|
+
|
|
18
|
+
### 🚀 Chore
|
|
19
|
+
|
|
20
|
+
- update READMEs after merging 'origin/next' into 'master' ([9f03064](https://github.com/weyoss/redis-smq/commit/9f030649dc6fe369c0e49bd2843a9fcf05a1e68e))
|
|
21
|
+
|
|
6
22
|
## [9.0.4-next.0](https://github.com/weyoss/redis-smq/compare/v9.0.3...v9.0.4-next.0) (2025-11-11)
|
|
7
23
|
|
|
8
24
|
### 🚀 Chore
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const errors: {
|
|
2
|
+
readonly AcknowledgedMessageAuditNotEnabledError: readonly [500, "AcknowledgedMessageAuditNotEnabledError"];
|
|
2
3
|
readonly ConfigurationError: readonly [400, "ConfigurationError"];
|
|
3
4
|
readonly ConfigurationMessageAuditExpireError: readonly [400, "ConfigurationMessageAuditExpireError"];
|
|
4
5
|
readonly ConfigurationMessageAuditQueueSizeError: readonly [400, "ConfigurationMessageAuditQueueSizeError"];
|
|
@@ -9,6 +10,7 @@ export declare const errors: {
|
|
|
9
10
|
readonly ConsumerGroupRequiredError: readonly [400, "ConsumerGroupRequiredError"];
|
|
10
11
|
readonly ConsumerGroupsError: readonly [500, "ConsumerGroupsError"];
|
|
11
12
|
readonly ConsumerGroupsNotSupportedError: readonly [501, "ConsumerGroupsNotSupportedError"];
|
|
13
|
+
readonly DeadLetteredMessageAuditNotEnabledError: readonly [500, "DeadLetteredMessageAuditNotEnabledError"];
|
|
12
14
|
readonly ExchangeError: readonly [500, "ExchangeError"];
|
|
13
15
|
readonly ExchangeFanoutError: readonly [500, "ExchangeFanoutError"];
|
|
14
16
|
readonly ExchangeHasBoundQueuesError: readonly [500, "ExchangeHasBoundQueuesError"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/errors/errors.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/errors/errors.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6FT,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG,OAAO,MAAM,CAAC"}
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.errors = void 0;
|
|
4
4
|
exports.errors = {
|
|
5
|
+
AcknowledgedMessageAuditNotEnabledError: [
|
|
6
|
+
500,
|
|
7
|
+
'AcknowledgedMessageAuditNotEnabledError',
|
|
8
|
+
],
|
|
5
9
|
ConfigurationError: [400, 'ConfigurationError'],
|
|
6
10
|
ConfigurationMessageAuditExpireError: [
|
|
7
11
|
400,
|
|
@@ -18,6 +22,10 @@ exports.errors = {
|
|
|
18
22
|
ConsumerGroupRequiredError: [400, 'ConsumerGroupRequiredError'],
|
|
19
23
|
ConsumerGroupsError: [500, 'ConsumerGroupsError'],
|
|
20
24
|
ConsumerGroupsNotSupportedError: [501, 'ConsumerGroupsNotSupportedError'],
|
|
25
|
+
DeadLetteredMessageAuditNotEnabledError: [
|
|
26
|
+
500,
|
|
27
|
+
'DeadLetteredMessageAuditNotEnabledError',
|
|
28
|
+
],
|
|
21
29
|
ExchangeError: [500, 'ExchangeError'],
|
|
22
30
|
ExchangeFanoutError: [500, 'ExchangeFanoutError'],
|
|
23
31
|
ExchangeHasBoundQueuesError: [500, 'ExchangeHasBoundQueuesError'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/errors/errors.ts"],"names":[],"mappings":";;;AAgBa,QAAA,MAAM,GAAG;IACpB,kBAAkB,EAAE,CAAC,GAAG,EAAE,oBAAoB,CAAC;IAC/C,oCAAoC,EAAE;QACpC,GAAG;QACH,sCAAsC;KACvC;IACD,uCAAuC,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AAmB,EAAE,CAAC,GAAG,EAAE,qBAAqB,CAAC;IACjD,cAAc,EAAE,CAAC,GAAG,EAAE,gBAAgB,CAAC;IACvC,wBAAwB,EAAE,CAAC,GAAG,EAAE,0BAA0B,CAAC;IAC3D,uBAAuB,EAAE,CAAC,GAAG,EAAE,yBAAyB,CAAC;IACzD,qBAAqB,EAAE,CAAC,GAAG,EAAE,uBAAuB,CAAC;CAC7C,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IQueueParams, QueueAcknowledgedMessages } from 'redis-smq';
|
|
2
2
|
export declare class QueueAcknowledgedMessagesService {
|
|
3
3
|
protected queueAcknowledgedMessages: {
|
|
4
|
-
purgeAsync: ((queue: import("redis-smq").TQueueExtendedParams) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams) => Promise<void>);
|
|
5
4
|
getMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IPaginationPage<import("redis-smq").IMessageTransferable<unknown>>>;
|
|
5
|
+
purgeAsync: ((queue: import("redis-smq").TQueueExtendedParams) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams) => Promise<void>);
|
|
6
6
|
countMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<number>;
|
|
7
7
|
} & QueueAcknowledgedMessages;
|
|
8
8
|
constructor(queueAcknowledgedMessages: QueueAcknowledgedMessages);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IQueueParams, QueueDeadLetteredMessages } from 'redis-smq';
|
|
2
2
|
export declare class QueueDeadLetteredMessagesService {
|
|
3
3
|
protected queueDeadLetteredMessages: {
|
|
4
|
-
purgeAsync: ((queue: import("redis-smq").TQueueExtendedParams) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams) => Promise<void>);
|
|
5
4
|
getMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IPaginationPage<import("redis-smq").IMessageTransferable<unknown>>>;
|
|
5
|
+
purgeAsync: ((queue: import("redis-smq").TQueueExtendedParams) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams) => Promise<void>);
|
|
6
6
|
countMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<number>;
|
|
7
7
|
} & QueueDeadLetteredMessages;
|
|
8
8
|
constructor(queueDeadLetteredMessages: QueueDeadLetteredMessages);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const errors: {
|
|
2
|
+
readonly AcknowledgedMessageAuditNotEnabledError: readonly [500, "AcknowledgedMessageAuditNotEnabledError"];
|
|
2
3
|
readonly ConfigurationError: readonly [400, "ConfigurationError"];
|
|
3
4
|
readonly ConfigurationMessageAuditExpireError: readonly [400, "ConfigurationMessageAuditExpireError"];
|
|
4
5
|
readonly ConfigurationMessageAuditQueueSizeError: readonly [400, "ConfigurationMessageAuditQueueSizeError"];
|
|
@@ -9,6 +10,7 @@ export declare const errors: {
|
|
|
9
10
|
readonly ConsumerGroupRequiredError: readonly [400, "ConsumerGroupRequiredError"];
|
|
10
11
|
readonly ConsumerGroupsError: readonly [500, "ConsumerGroupsError"];
|
|
11
12
|
readonly ConsumerGroupsNotSupportedError: readonly [501, "ConsumerGroupsNotSupportedError"];
|
|
13
|
+
readonly DeadLetteredMessageAuditNotEnabledError: readonly [500, "DeadLetteredMessageAuditNotEnabledError"];
|
|
12
14
|
readonly ExchangeError: readonly [500, "ExchangeError"];
|
|
13
15
|
readonly ExchangeFanoutError: readonly [500, "ExchangeFanoutError"];
|
|
14
16
|
readonly ExchangeHasBoundQueuesError: readonly [500, "ExchangeHasBoundQueuesError"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/errors/errors.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/errors/errors.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6FT,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG,OAAO,MAAM,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export const errors = {
|
|
2
|
+
AcknowledgedMessageAuditNotEnabledError: [
|
|
3
|
+
500,
|
|
4
|
+
'AcknowledgedMessageAuditNotEnabledError',
|
|
5
|
+
],
|
|
2
6
|
ConfigurationError: [400, 'ConfigurationError'],
|
|
3
7
|
ConfigurationMessageAuditExpireError: [
|
|
4
8
|
400,
|
|
@@ -15,6 +19,10 @@ export const errors = {
|
|
|
15
19
|
ConsumerGroupRequiredError: [400, 'ConsumerGroupRequiredError'],
|
|
16
20
|
ConsumerGroupsError: [500, 'ConsumerGroupsError'],
|
|
17
21
|
ConsumerGroupsNotSupportedError: [501, 'ConsumerGroupsNotSupportedError'],
|
|
22
|
+
DeadLetteredMessageAuditNotEnabledError: [
|
|
23
|
+
500,
|
|
24
|
+
'DeadLetteredMessageAuditNotEnabledError',
|
|
25
|
+
],
|
|
18
26
|
ExchangeError: [500, 'ExchangeError'],
|
|
19
27
|
ExchangeFanoutError: [500, 'ExchangeFanoutError'],
|
|
20
28
|
ExchangeHasBoundQueuesError: [500, 'ExchangeHasBoundQueuesError'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/errors/errors.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,kBAAkB,EAAE,CAAC,GAAG,EAAE,oBAAoB,CAAC;IAC/C,oCAAoC,EAAE;QACpC,GAAG;QACH,sCAAsC;KACvC;IACD,uCAAuC,EAAE;QACvC,GAAG;QACH,yCAAyC;KAC1C;IACD,2BAA2B,EAAE,CAAC,GAAG,EAAE,6BAA6B,CAAC;IACjE,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B,CAAC;IACvC,wBAAwB,EAAE,CAAC,GAAG,EAAE,0BAA0B,CAAC;IAC3D,uBAAuB,EAAE,CAAC,GAAG,EAAE,yBAAyB,CAAC;IACzD,qBAAqB,EAAE,CAAC,GAAG,EAAE,uBAAuB,CAAC;CAC7C,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IQueueParams, QueueAcknowledgedMessages } from 'redis-smq';
|
|
2
2
|
export declare class QueueAcknowledgedMessagesService {
|
|
3
3
|
protected queueAcknowledgedMessages: {
|
|
4
|
-
purgeAsync: ((queue: import("redis-smq").TQueueExtendedParams) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams) => Promise<void>);
|
|
5
4
|
getMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IPaginationPage<import("redis-smq").IMessageTransferable<unknown>>>;
|
|
5
|
+
purgeAsync: ((queue: import("redis-smq").TQueueExtendedParams) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams) => Promise<void>);
|
|
6
6
|
countMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<number>;
|
|
7
7
|
} & QueueAcknowledgedMessages;
|
|
8
8
|
constructor(queueAcknowledgedMessages: QueueAcknowledgedMessages);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IQueueParams, QueueDeadLetteredMessages } from 'redis-smq';
|
|
2
2
|
export declare class QueueDeadLetteredMessagesService {
|
|
3
3
|
protected queueDeadLetteredMessages: {
|
|
4
|
-
purgeAsync: ((queue: import("redis-smq").TQueueExtendedParams) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams) => Promise<void>);
|
|
5
4
|
getMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams, page: number, pageSize: number) => Promise<import("redis-smq").IPaginationPage<import("redis-smq").IMessageTransferable<unknown>>>;
|
|
5
|
+
purgeAsync: ((queue: import("redis-smq").TQueueExtendedParams) => Promise<undefined>) | ((queue: import("redis-smq").TQueueExtendedParams) => Promise<void>);
|
|
6
6
|
countMessagesAsync: (queue: import("redis-smq").TQueueExtendedParams) => Promise<number>;
|
|
7
7
|
} & QueueDeadLetteredMessages;
|
|
8
8
|
constructor(queueDeadLetteredMessages: QueueDeadLetteredMessages);
|
package/dist/schema.json
CHANGED
|
@@ -6822,6 +6822,25 @@
|
|
|
6822
6822
|
},
|
|
6823
6823
|
"TErrors": {
|
|
6824
6824
|
"properties": {
|
|
6825
|
+
"AcknowledgedMessageAuditNotEnabledError": {
|
|
6826
|
+
"default": [
|
|
6827
|
+
500,
|
|
6828
|
+
"AcknowledgedMessageAuditNotEnabledError"
|
|
6829
|
+
],
|
|
6830
|
+
"items": [
|
|
6831
|
+
{
|
|
6832
|
+
"const": 500,
|
|
6833
|
+
"type": "number"
|
|
6834
|
+
},
|
|
6835
|
+
{
|
|
6836
|
+
"const": "AcknowledgedMessageAuditNotEnabledError",
|
|
6837
|
+
"type": "string"
|
|
6838
|
+
}
|
|
6839
|
+
],
|
|
6840
|
+
"maxItems": 2,
|
|
6841
|
+
"minItems": 2,
|
|
6842
|
+
"type": "array"
|
|
6843
|
+
},
|
|
6825
6844
|
"ConfigurationError": {
|
|
6826
6845
|
"default": [
|
|
6827
6846
|
400,
|
|
@@ -7012,6 +7031,25 @@
|
|
|
7012
7031
|
"minItems": 2,
|
|
7013
7032
|
"type": "array"
|
|
7014
7033
|
},
|
|
7034
|
+
"DeadLetteredMessageAuditNotEnabledError": {
|
|
7035
|
+
"default": [
|
|
7036
|
+
500,
|
|
7037
|
+
"DeadLetteredMessageAuditNotEnabledError"
|
|
7038
|
+
],
|
|
7039
|
+
"items": [
|
|
7040
|
+
{
|
|
7041
|
+
"const": 500,
|
|
7042
|
+
"type": "number"
|
|
7043
|
+
},
|
|
7044
|
+
{
|
|
7045
|
+
"const": "DeadLetteredMessageAuditNotEnabledError",
|
|
7046
|
+
"type": "string"
|
|
7047
|
+
}
|
|
7048
|
+
],
|
|
7049
|
+
"maxItems": 2,
|
|
7050
|
+
"minItems": 2,
|
|
7051
|
+
"type": "array"
|
|
7052
|
+
},
|
|
7015
7053
|
"ExchangeError": {
|
|
7016
7054
|
"default": [
|
|
7017
7055
|
500,
|
|
@@ -7964,6 +8002,7 @@
|
|
|
7964
8002
|
}
|
|
7965
8003
|
},
|
|
7966
8004
|
"required": [
|
|
8005
|
+
"AcknowledgedMessageAuditNotEnabledError",
|
|
7967
8006
|
"ConfigurationError",
|
|
7968
8007
|
"ConfigurationMessageAuditExpireError",
|
|
7969
8008
|
"ConfigurationMessageAuditQueueSizeError",
|
|
@@ -7974,6 +8013,7 @@
|
|
|
7974
8013
|
"ConsumerGroupRequiredError",
|
|
7975
8014
|
"ConsumerGroupsError",
|
|
7976
8015
|
"ConsumerGroupsNotSupportedError",
|
|
8016
|
+
"DeadLetteredMessageAuditNotEnabledError",
|
|
7977
8017
|
"ExchangeError",
|
|
7978
8018
|
"ExchangeFanoutError",
|
|
7979
8019
|
"ExchangeHasBoundQueuesError",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redis-smq-rest-api",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.5-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@protonmail.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.
|
|
72
|
-
"redis-smq-common": "^9.0.
|
|
71
|
+
"redis-smq": "^9.0.5-next.0",
|
|
72
|
+
"redis-smq-common": "^9.0.5-next.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependenciesMeta": {
|
|
75
75
|
"@redis/client": {
|