@lafken/queue 0.12.3 → 0.12.5

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.
@@ -18,7 +18,29 @@ export interface DlqProps {
18
18
  */
19
19
  retentionPeriod?: number;
20
20
  }
21
- export interface InternalStandardProps {
21
+ export interface SourceMappingProps {
22
+ /**
23
+ * Maximum number of messages to retrieve in a single batch.
24
+ *
25
+ * Only applicable when consuming messages with a Lambda or batch processor.
26
+ */
27
+ batchSize?: number;
28
+ /**
29
+ * Maximum batching window in seconds.
30
+ *
31
+ * Defines the maximum amount of time to gather messages into a batch
32
+ * before sending them to the consumer.
33
+ */
34
+ maxBatchingWindow?: number;
35
+ /**
36
+ * Maximum concurrency for Lambda consumers.
37
+ *
38
+ * Specifies the maximum number of Lambda functions that
39
+ * can process messages from the queue concurrently.
40
+ */
41
+ maxConcurrency?: number;
42
+ }
43
+ export interface InternalStandardProps extends SourceMappingProps {
22
44
  /**
23
45
  * Marks the queue as an external resource.
24
46
  *
@@ -54,26 +76,6 @@ export interface InternalStandardProps {
54
76
  * while being processed.
55
77
  */
56
78
  visibilityTimeout?: number;
57
- /**
58
- * Maximum number of messages to retrieve in a single batch.
59
- *
60
- * Only applicable when consuming messages with a Lambda or batch processor.
61
- */
62
- batchSize?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
63
- /**
64
- * Maximum concurrency for Lambda consumers.
65
- *
66
- * Specifies the maximum number of Lambda functions that
67
- * can process messages from the queue concurrently.
68
- */
69
- maxConcurrency?: number;
70
- /**
71
- * Maximum batching window in seconds.
72
- *
73
- * Defines the maximum amount of time to gather messages into a batch
74
- * before sending them to the consumer.
75
- */
76
- maxBatchingWindow?: number;
77
79
  /**
78
80
  * Lambda configuration for processing messages from this queue.
79
81
  */
@@ -123,7 +125,7 @@ export interface InternalStandardProps {
123
125
  */
124
126
  dlq?: DlqProps;
125
127
  }
126
- export interface ExternalQueueProps {
128
+ export interface ExternalQueueProps extends SourceMappingProps {
127
129
  /**
128
130
  * Marks the queue as an external resource.
129
131
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lafken/queue",
3
- "version": "0.12.3",
3
+ "version": "0.12.5",
4
4
  "private": false,
5
5
  "description": "Define SQS queues and consumers using TypeScript decorators - automatic infrastructure generation with Lafken",
6
6
  "keywords": [
@@ -54,7 +54,7 @@
54
54
  "dependencies": {
55
55
  "@aws-sdk/client-sqs": "^3.1045.0",
56
56
  "reflect-metadata": "^0.2.2",
57
- "@lafken/resolver": "0.12.3"
57
+ "@lafken/resolver": "0.12.5"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@cdktn/provider-aws": "^24.0.0",
@@ -68,13 +68,13 @@
68
68
  "typescript": "6.0.3",
69
69
  "unplugin-swc": "^1.5.9",
70
70
  "vitest": "^4.1.5",
71
- "@lafken/common": "0.12.3"
71
+ "@lafken/common": "0.12.5"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "@cdktn/provider-aws": ">=23.0.0",
75
75
  "cdktn": ">=0.22.0",
76
76
  "constructs": "^10.4.5",
77
- "@lafken/common": "0.12.3"
77
+ "@lafken/common": "0.12.5"
78
78
  },
79
79
  "engines": {
80
80
  "node": ">=20.19"