@lafken/event 0.6.4 → 0.7.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/lib/resolver/resolver.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EventRuleResolver = void 0;
|
|
4
|
-
const cloudwatch_event_bus_1 = require("@
|
|
5
|
-
const data_aws_cloudwatch_event_bus_1 = require("@
|
|
4
|
+
const cloudwatch_event_bus_1 = require("@cdktn/provider-aws/lib/cloudwatch-event-bus");
|
|
5
|
+
const data_aws_cloudwatch_event_bus_1 = require("@cdktn/provider-aws/lib/data-aws-cloudwatch-event-bus");
|
|
6
6
|
const common_1 = require("@lafken/common");
|
|
7
7
|
const resolver_1 = require("@lafken/resolver");
|
|
8
8
|
const main_1 = require("../main");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CloudwatchEventBus } from '@
|
|
1
|
+
import type { CloudwatchEventBus } from '@cdktn/provider-aws/lib/cloudwatch-event-bus';
|
|
2
2
|
import type { EventBusNames } from '@lafken/common';
|
|
3
3
|
import type { AppStack } from '@lafken/resolver';
|
|
4
4
|
interface ExtendProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CloudwatchEventRule } from '@
|
|
1
|
+
import { CloudwatchEventRule } from '@cdktn/provider-aws/lib/cloudwatch-event-rule';
|
|
2
2
|
import { type AppModule } from '@lafken/resolver';
|
|
3
3
|
import type { RuleProps } from './rule.types';
|
|
4
4
|
declare const Rule_base: (new (...args: any[]) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Rule = void 0;
|
|
4
|
-
const cloudwatch_event_rule_1 = require("@
|
|
5
|
-
const cloudwatch_event_target_1 = require("@
|
|
4
|
+
const cloudwatch_event_rule_1 = require("@cdktn/provider-aws/lib/cloudwatch-event-rule");
|
|
5
|
+
const cloudwatch_event_target_1 = require("@cdktn/provider-aws/lib/cloudwatch-event-target");
|
|
6
6
|
const resolver_1 = require("@lafken/resolver");
|
|
7
|
-
const
|
|
7
|
+
const cdktn_1 = require("cdktn");
|
|
8
8
|
class Rule extends resolver_1.lafkenResource.make(cloudwatch_event_rule_1.CloudwatchEventRule) {
|
|
9
9
|
props;
|
|
10
10
|
constructor(scope, id, props) {
|
|
@@ -12,7 +12,7 @@ class Rule extends resolver_1.lafkenResource.make(cloudwatch_event_rule_1.Cloudw
|
|
|
12
12
|
super(scope, `${id}-rule`, {
|
|
13
13
|
name: id,
|
|
14
14
|
eventBusName: bus.name,
|
|
15
|
-
eventPattern:
|
|
15
|
+
eventPattern: cdktn_1.Fn.jsonencode(Rule.getEvent(handler)),
|
|
16
16
|
});
|
|
17
17
|
this.props = props;
|
|
18
18
|
this.isGlobal(scope.id, id);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CloudwatchEventBus } from '@
|
|
1
|
+
import type { CloudwatchEventBus } from '@cdktn/provider-aws/lib/cloudwatch-event-bus';
|
|
2
2
|
import type { ResourceMetadata } from '@lafken/common';
|
|
3
3
|
import type { EventRuleMetadata } from '../../main';
|
|
4
4
|
export interface RuleProps {
|
package/package.json
CHANGED
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lafken/event",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"private": false,
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Define EventBridge event listeners using TypeScript decorators - serverless event-driven infrastructure",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"aws",
|
|
8
8
|
"eventbridge",
|
|
9
9
|
"event",
|
|
10
|
+
"event-driven",
|
|
10
11
|
"serverless",
|
|
12
|
+
"typescript",
|
|
13
|
+
"decorators",
|
|
11
14
|
"lafken"
|
|
12
15
|
],
|
|
16
|
+
"homepage": "https://github.com/Hero64/lafken#readme",
|
|
17
|
+
"bugs": "https://github.com/Hero64/lafken/issues",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/Hero64/lafken",
|
|
21
|
+
"directory": "packages/event"
|
|
22
|
+
},
|
|
13
23
|
"license": "MIT",
|
|
24
|
+
"author": "Aníbal Jorquera",
|
|
14
25
|
"exports": {
|
|
15
26
|
"./main": {
|
|
16
27
|
"import": "./lib/main/index.js",
|
|
@@ -37,19 +48,27 @@
|
|
|
37
48
|
"lib"
|
|
38
49
|
],
|
|
39
50
|
"dependencies": {
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"constructs": "10.4.4",
|
|
43
|
-
"reflect-metadata": "0.2.2",
|
|
44
|
-
"@lafken/common": "0.6.4",
|
|
45
|
-
"@lafken/resolver": "0.6.4"
|
|
51
|
+
"reflect-metadata": "^0.2.2",
|
|
52
|
+
"@lafken/resolver": "0.7.0"
|
|
46
53
|
},
|
|
47
54
|
"devDependencies": {
|
|
48
|
-
"@
|
|
49
|
-
"@types/jest": "30.0.0",
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
55
|
+
"@cdktn/provider-aws": "^23.0.0",
|
|
56
|
+
"@types/jest": "^30.0.0",
|
|
57
|
+
"cdktn": "^0.22.0",
|
|
58
|
+
"constructs": "^10.4.5",
|
|
59
|
+
"jest": "^30.2.0",
|
|
60
|
+
"ts-jest": "^29.4.6",
|
|
61
|
+
"ts-node": "^10.9.2",
|
|
62
|
+
"@lafken/common": "0.7.0"
|
|
63
|
+
},
|
|
64
|
+
"peerDependencies": {
|
|
65
|
+
"@cdktn/provider-aws": "^23.0.0",
|
|
66
|
+
"@lafken/common": "^0.7.0",
|
|
67
|
+
"cdktn": "^0.22.0",
|
|
68
|
+
"constructs": "^10.4.5"
|
|
69
|
+
},
|
|
70
|
+
"engines": {
|
|
71
|
+
"node": ">=20.19"
|
|
53
72
|
},
|
|
54
73
|
"publishConfig": {
|
|
55
74
|
"access": "public"
|