@pristine-ts/aws-api-gateway 2.0.6 → 2.0.8
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/http-api-event.mapper.js +4 -4
- package/dist/lib/cjs/mappers/http-api-event.mapper.js.map +1 -1
- package/dist/lib/cjs/mappers/rest-api-event.mapper.js +5 -5
- package/dist/lib/cjs/mappers/rest-api-event.mapper.js.map +1 -1
- package/dist/lib/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/lib/esm/mappers/http-api-event.mapper.js +5 -5
- package/dist/lib/esm/mappers/http-api-event.mapper.js.map +1 -1
- package/dist/lib/esm/mappers/rest-api-event.mapper.js +6 -6
- package/dist/lib/esm/mappers/rest-api-event.mapper.js.map +1 -1
- package/dist/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/types/mappers/http-api-event.mapper.d.ts +3 -2
- package/dist/types/mappers/rest-api-event.mapper.d.ts +3 -2
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiGatewayEventsHandlingStrategyEnum } from "../enums/api-gateway-events-handling-strategy.enum";
|
|
2
|
-
import { EventMapperInterface, EventResponse, EventsExecutionOptionsInterface, ExecutionContextInterface } from "@pristine-ts/core";
|
|
2
|
+
import { EventIdManager, EventMapperInterface, EventResponse, EventsExecutionOptionsInterface, ExecutionContextInterface } from "@pristine-ts/core";
|
|
3
3
|
import { Request, Response } from "@pristine-ts/common";
|
|
4
4
|
import { HttpApiEventPayload } from "../event-payloads/http-api.event-payload";
|
|
5
5
|
import { HttpApiEventResponsePayload } from "../event-response-payloads/http-api.event-response-payload";
|
|
@@ -14,13 +14,14 @@ import { LogHandlerInterface } from "@pristine-ts/logging";
|
|
|
14
14
|
export declare class HttpApiEventMapper extends BaseApiEventMapper implements EventMapperInterface<HttpApiEventPayload | Request, HttpApiEventResponsePayload | Response> {
|
|
15
15
|
private readonly logHandler;
|
|
16
16
|
private readonly httpRequestsHandlingStrategy;
|
|
17
|
+
private readonly eventIdManager;
|
|
17
18
|
/**
|
|
18
19
|
* The Http api event mapper maps a raw event to EventsExecutionOptionsInterface with either an HttpApiEventPayload or a Request
|
|
19
20
|
* depending on the handling strategy defined in the environment configs.
|
|
20
21
|
* @param logHandler The log handler to output logs.
|
|
21
22
|
* @param httpRequestsHandlingStrategy The handling strategy to use when handling http api events.
|
|
22
23
|
*/
|
|
23
|
-
constructor(logHandler: LogHandlerInterface, httpRequestsHandlingStrategy: ApiGatewayEventsHandlingStrategyEnum);
|
|
24
|
+
constructor(logHandler: LogHandlerInterface, httpRequestsHandlingStrategy: ApiGatewayEventsHandlingStrategyEnum, eventIdManager: EventIdManager);
|
|
24
25
|
/**
|
|
25
26
|
* Whether or not this mapper supports the raw event.
|
|
26
27
|
* @param rawEvent The raw event that needs to be mapped.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Request, Response } from "@pristine-ts/common";
|
|
2
|
-
import { EventMapperInterface, EventResponse, EventsExecutionOptionsInterface, ExecutionContextInterface } from "@pristine-ts/core";
|
|
2
|
+
import { EventIdManager, EventMapperInterface, EventResponse, EventsExecutionOptionsInterface, ExecutionContextInterface } from "@pristine-ts/core";
|
|
3
3
|
import { RestApiEventResponsePayload } from "../event-response-payloads/rest-api.event-response-payload";
|
|
4
4
|
import { RestApiEventPayload } from "../event-payloads/rest-api.event-payload";
|
|
5
5
|
import { ApiGatewayEventsHandlingStrategyEnum } from "../enums/api-gateway-events-handling-strategy.enum";
|
|
@@ -14,13 +14,14 @@ import { LogHandlerInterface } from "@pristine-ts/logging";
|
|
|
14
14
|
export declare class RestApiEventMapper extends BaseApiEventMapper implements EventMapperInterface<RestApiEventPayload | Request, RestApiEventResponsePayload | Response> {
|
|
15
15
|
private readonly logHandler;
|
|
16
16
|
private readonly restApiEventsHandlingStrategy;
|
|
17
|
+
private readonly eventIdManager;
|
|
17
18
|
/**
|
|
18
19
|
* The Http api event mapper maps a raw event to EventsExecutionOptionsInterface with either an RestApiEventResponsePayload or a Request
|
|
19
20
|
* depending on the handling strategy defined in the environment configs.
|
|
20
21
|
* @param logHandler The log handler to output logs.
|
|
21
22
|
* @param restApiEventsHandlingStrategy The handling strategy to use when handling rest api events.
|
|
22
23
|
*/
|
|
23
|
-
constructor(logHandler: LogHandlerInterface, restApiEventsHandlingStrategy: ApiGatewayEventsHandlingStrategyEnum);
|
|
24
|
+
constructor(logHandler: LogHandlerInterface, restApiEventsHandlingStrategy: ApiGatewayEventsHandlingStrategyEnum, eventIdManager: EventIdManager);
|
|
24
25
|
/**
|
|
25
26
|
* Whether or not this mapper supports the raw event.
|
|
26
27
|
* @param rawEvent The raw event that needs to be mapped.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pristine-ts/aws-api-gateway",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "dist/lib/esm/aws-api-gateway.module.js",
|
|
6
6
|
"main": "dist/lib/cjs/aws-api-gateway.module.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@pristine-ts/aws": "file:../common",
|
|
27
|
-
"@pristine-ts/core": "^2.0.
|
|
28
|
-
"@pristine-ts/networking": "^2.0.
|
|
27
|
+
"@pristine-ts/core": "^2.0.8",
|
|
28
|
+
"@pristine-ts/networking": "^2.0.8",
|
|
29
29
|
"jsonwebtoken": "^9.0.2",
|
|
30
30
|
"jwk-to-pem": "^2.0.5",
|
|
31
31
|
"uuid": "^9.0.1"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"src/*.{js,ts}"
|
|
65
65
|
]
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "c760fc252d427fec8d98dfadf06e36db232bc8c9",
|
|
68
68
|
"repository": {
|
|
69
69
|
"type": "git",
|
|
70
70
|
"url": "https://github.com/magieno/pristine-ts.git",
|