@lafken/queue 0.11.8 → 0.11.10
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LambdaMetadata, LambdaProps, QueueNames, ResourceOutputType } from '@lafken/common';
|
|
1
|
+
import type { LambdaMetadata, LambdaProps, QueueNames, QueueReferenceNames, ResourceOutputType } from '@lafken/common';
|
|
2
2
|
/**
|
|
3
3
|
* Attributes that can be exported from an SQS queue resource.
|
|
4
4
|
*
|
|
@@ -87,6 +87,15 @@ export interface StandardProps {
|
|
|
87
87
|
* }
|
|
88
88
|
*/
|
|
89
89
|
outputs?: ResourceOutputType<QueueOutputAttributes>;
|
|
90
|
+
/**
|
|
91
|
+
* Registers this Queue as a named global reference, allowing other resources
|
|
92
|
+
* to access its attributes (e.g. ARN) by reference name.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* // Register the API under a reference name
|
|
96
|
+
* ref: 'order'
|
|
97
|
+
*/
|
|
98
|
+
ref?: QueueReferenceNames;
|
|
90
99
|
}
|
|
91
100
|
export interface FifoProps extends StandardProps {
|
|
92
101
|
/**
|
|
@@ -2,8 +2,8 @@ import { SqsQueue } from '@cdktn/provider-aws/lib/sqs-queue';
|
|
|
2
2
|
import { type AppModule } from '@lafken/resolver';
|
|
3
3
|
import type { QueueProps } from './queue.types';
|
|
4
4
|
declare const Queue_base: (new (...args: any[]) => {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
register(namespaces: import("@lafken/common").RegisterNamespaces | (string & {}), id: string): void;
|
|
6
|
+
onResolve(callback: () => void): void;
|
|
7
7
|
readonly node: import("constructs").Node;
|
|
8
8
|
with(...mixins: import("constructs").IMixin[]): import("constructs").IConstruct;
|
|
9
9
|
toString(): string;
|
|
@@ -22,7 +22,9 @@ class Queue extends resolver_1.lafkenResource.make(sqs_queue_1.SqsQueue) {
|
|
|
22
22
|
delaySeconds: handler.deliveryDelay,
|
|
23
23
|
});
|
|
24
24
|
this.props = props;
|
|
25
|
-
|
|
25
|
+
if (handler.ref) {
|
|
26
|
+
this.register('queue', handler.ref);
|
|
27
|
+
}
|
|
26
28
|
this.validateEventParams();
|
|
27
29
|
this.addEventSource(id);
|
|
28
30
|
new resolver_1.ResourceOutput(this, handler.outputs);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lafken/queue",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Define SQS queues and consumers using TypeScript decorators - automatic infrastructure generation with Lafken",
|
|
6
6
|
"keywords": [
|
|
@@ -52,30 +52,30 @@
|
|
|
52
52
|
"lib"
|
|
53
53
|
],
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@aws-sdk/client-sqs": "^3.
|
|
55
|
+
"@aws-sdk/client-sqs": "^3.1037.0",
|
|
56
56
|
"aws-lambda": "^1.0.7",
|
|
57
57
|
"reflect-metadata": "^0.2.2",
|
|
58
|
-
"@lafken/resolver": "0.11.
|
|
58
|
+
"@lafken/resolver": "0.11.10"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@cdktn/provider-aws": "^23.
|
|
62
|
-
"@swc/core": "^1.15.
|
|
63
|
-
"@swc/helpers": "^0.5.
|
|
61
|
+
"@cdktn/provider-aws": "^23.9.0",
|
|
62
|
+
"@swc/core": "^1.15.30",
|
|
63
|
+
"@swc/helpers": "^0.5.21",
|
|
64
64
|
"@types/aws-lambda": "^8.10.161",
|
|
65
|
-
"@vitest/runner": "^4.1.
|
|
65
|
+
"@vitest/runner": "^4.1.5",
|
|
66
66
|
"cdktn": "^0.22.1",
|
|
67
67
|
"cdktn-vitest": "^1.0.0",
|
|
68
68
|
"constructs": "^10.6.0",
|
|
69
|
-
"typescript": "6.0.
|
|
69
|
+
"typescript": "6.0.3",
|
|
70
70
|
"unplugin-swc": "^1.5.9",
|
|
71
|
-
"vitest": "^4.1.
|
|
72
|
-
"@lafken/common": "0.11.
|
|
71
|
+
"vitest": "^4.1.5",
|
|
72
|
+
"@lafken/common": "0.11.10"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"@cdktn/provider-aws": ">=23.0.0",
|
|
76
76
|
"cdktn": ">=0.22.0",
|
|
77
77
|
"constructs": "^10.4.5",
|
|
78
|
-
"@lafken/common": "0.11.
|
|
78
|
+
"@lafken/common": "0.11.10"
|
|
79
79
|
},
|
|
80
80
|
"engines": {
|
|
81
81
|
"node": ">=20.19"
|