@pristine-ts/aws 2.0.7 → 2.0.9
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/dist/lib/cjs/mappers/kafka-event.mapper.js +11 -2
- package/dist/lib/cjs/mappers/kafka-event.mapper.js.map +1 -1
- package/dist/lib/cjs/mappers/s3-event.mapper.js +9 -3
- package/dist/lib/cjs/mappers/s3-event.mapper.js.map +1 -1
- package/dist/lib/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/lib/esm/mappers/kafka-event.mapper.js +12 -3
- package/dist/lib/esm/mappers/kafka-event.mapper.js.map +1 -1
- package/dist/lib/esm/mappers/s3-event.mapper.js +10 -4
- package/dist/lib/esm/mappers/s3-event.mapper.js.map +1 -1
- package/dist/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/types/mappers/kafka-event.mapper.d.ts +3 -1
- package/dist/types/mappers/s3-event.mapper.d.ts +3 -1
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventMapperInterface, EventResponse, EventsExecutionOptionsInterface, ExecutionContextInterface } from "@pristine-ts/core";
|
|
1
|
+
import { EventIdManager, EventMapperInterface, EventResponse, EventsExecutionOptionsInterface, ExecutionContextInterface } from "@pristine-ts/core";
|
|
2
2
|
import { KafkaEventPayload } from "../event-payloads/kafka.event-payload";
|
|
3
3
|
/**
|
|
4
4
|
* Mapper to map the Kafka event from the AWS kafka connector into a Pristine event.
|
|
@@ -6,6 +6,8 @@ import { KafkaEventPayload } from "../event-payloads/kafka.event-payload";
|
|
|
6
6
|
* It is module scoped so that it gets injected only if the AWS module is imported.
|
|
7
7
|
*/
|
|
8
8
|
export declare class KafkaEventMapper implements EventMapperInterface<KafkaEventPayload, void> {
|
|
9
|
+
private readonly eventIdManager;
|
|
10
|
+
constructor(eventIdManager: EventIdManager);
|
|
9
11
|
/**
|
|
10
12
|
* Parses the Kafka event from the AWS kafka connector into a Pristine event.
|
|
11
13
|
* @param rawEvent The raw Kafka event
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventMapperInterface, EventResponse, EventsExecutionOptionsInterface, ExecutionContextInterface } from "@pristine-ts/core";
|
|
1
|
+
import { EventIdManager, EventMapperInterface, EventResponse, EventsExecutionOptionsInterface, ExecutionContextInterface } from "@pristine-ts/core";
|
|
2
2
|
import { S3EventPayload } from "../event-payloads/s3.event-payload";
|
|
3
3
|
/**
|
|
4
4
|
* Mapper to map the S3 event into a Pristine event.
|
|
@@ -6,6 +6,8 @@ import { S3EventPayload } from "../event-payloads/s3.event-payload";
|
|
|
6
6
|
* It is module scoped so that it gets injected only if the AWS module is imported.
|
|
7
7
|
*/
|
|
8
8
|
export declare class S3EventMapper implements EventMapperInterface<S3EventPayload, void> {
|
|
9
|
+
private readonly eventIdManager;
|
|
10
|
+
constructor(eventIdManager: EventIdManager);
|
|
9
11
|
/**
|
|
10
12
|
* Parses the S3 event into a Pristine event.
|
|
11
13
|
* @param rawEvent The raw S3 event
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pristine-ts/aws",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "dist/lib/esm/aws.module.js",
|
|
6
6
|
"main": "dist/lib/cjs/aws.module.js",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"@awslabs-community-fork/dynamodb-data-mapper": "^0.7.13",
|
|
31
31
|
"@awslabs-community-fork/dynamodb-data-marshaller": "^0.7.13",
|
|
32
32
|
"@awslabs-community-fork/dynamodb-expressions": "^0.7.13",
|
|
33
|
-
"@pristine-ts/common": "^2.0.
|
|
34
|
-
"@pristine-ts/core": "^2.0.
|
|
35
|
-
"@pristine-ts/logging": "^2.0.
|
|
36
|
-
"@pristine-ts/networking": "^2.0.
|
|
37
|
-
"@pristine-ts/security": "^2.0.
|
|
33
|
+
"@pristine-ts/common": "^2.0.9",
|
|
34
|
+
"@pristine-ts/core": "^2.0.9",
|
|
35
|
+
"@pristine-ts/logging": "^2.0.9",
|
|
36
|
+
"@pristine-ts/networking": "^2.0.9",
|
|
37
|
+
"@pristine-ts/security": "^2.0.9",
|
|
38
38
|
"uuid": "^9.0.1"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"src/*.{js,ts}"
|
|
75
75
|
]
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "760994a87a1207f1670d31c67c6b8cde4c5b09f4",
|
|
78
78
|
"repository": {
|
|
79
79
|
"type": "git",
|
|
80
80
|
"url": "https://github.com/magieno/pristine-ts.git",
|