@webiny/handler-aws 5.40.5 → 5.41.0-dbt.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/dynamodb/index.d.ts +1 -1
- package/eventBridge/index.d.ts +1 -1
- package/gateway/index.d.ts +1 -1
- package/package.json +10 -10
- package/raw/index.d.ts +1 -1
- package/s3/index.d.ts +1 -1
- package/sns/index.d.ts +1 -1
- package/sqs/index.d.ts +1 -1
- package/types.d.ts +1 -1
- package/utils/composedHandler.d.ts +1 -1
- package/utils/timer/factory.d.ts +1 -1
package/dynamodb/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { APIGatewayProxyResult, Context as LambdaContext, DynamoDBStreamEvent } from "aws-lambda";
|
|
2
2
|
import { HandlerFactoryParams } from "../types";
|
|
3
3
|
export * from "./plugins/DynamoDBEventHandler";
|
|
4
|
-
export
|
|
4
|
+
export type HandlerParams = HandlerFactoryParams;
|
|
5
5
|
export interface HandlerCallable {
|
|
6
6
|
(event: DynamoDBStreamEvent, context: LambdaContext): Promise<APIGatewayProxyResult>;
|
|
7
7
|
}
|
package/eventBridge/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HandlerFactoryParams } from "../types";
|
|
2
2
|
import type { APIGatewayProxyResult, Context as LambdaContext, EventBridgeEvent } from "aws-lambda";
|
|
3
3
|
export * from "./plugins/EventBridgeEventHandler";
|
|
4
|
-
export
|
|
4
|
+
export type HandlerParams = HandlerFactoryParams;
|
|
5
5
|
export interface HandlerCallable {
|
|
6
6
|
(event: EventBridgeEvent<string, string>, context: LambdaContext): Promise<APIGatewayProxyResult>;
|
|
7
7
|
}
|
package/gateway/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { LambdaResponse } from "@fastify/aws-lambda";
|
|
|
3
3
|
import { createRoute, RoutePlugin } from "@webiny/handler";
|
|
4
4
|
import { HandlerFactoryParams } from "../types";
|
|
5
5
|
export { RoutePlugin, createRoute };
|
|
6
|
-
export
|
|
6
|
+
export type HandlerParams = HandlerFactoryParams;
|
|
7
7
|
export interface HandlerCallable {
|
|
8
8
|
(event: APIGatewayEvent, ctx: LambdaContext): Promise<LambdaResponse>;
|
|
9
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/handler-aws",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.41.0-dbt.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"@babel/runtime": "7.24.1",
|
|
16
16
|
"@fastify/aws-lambda": "3.1.3",
|
|
17
17
|
"@types/aws-lambda": "8.10.136",
|
|
18
|
-
"@webiny/aws-sdk": "5.
|
|
19
|
-
"@webiny/handler": "5.
|
|
20
|
-
"@webiny/handler-client": "5.
|
|
21
|
-
"@webiny/plugins": "5.
|
|
22
|
-
"@webiny/utils": "5.
|
|
18
|
+
"@webiny/aws-sdk": "5.41.0-dbt.0",
|
|
19
|
+
"@webiny/handler": "5.41.0-dbt.0",
|
|
20
|
+
"@webiny/handler-client": "5.41.0-dbt.0",
|
|
21
|
+
"@webiny/plugins": "5.41.0-dbt.0",
|
|
22
|
+
"@webiny/utils": "5.41.0-dbt.0",
|
|
23
23
|
"fastify": "4.11.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"@babel/core": "7.24.3",
|
|
28
28
|
"@babel/preset-env": "7.24.3",
|
|
29
29
|
"@babel/preset-typescript": "7.24.1",
|
|
30
|
-
"@webiny/cli": "5.
|
|
31
|
-
"@webiny/project-utils": "5.
|
|
30
|
+
"@webiny/cli": "5.41.0-dbt.0",
|
|
31
|
+
"@webiny/project-utils": "5.41.0-dbt.0",
|
|
32
32
|
"rimraf": "5.0.5",
|
|
33
33
|
"ttypescript": "1.5.15",
|
|
34
|
-
"typescript": "4.
|
|
34
|
+
"typescript": "4.9.5"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"build": "yarn webiny run build",
|
|
42
42
|
"watch": "yarn webiny run watch"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "bbaec4dd1685579548c08bbde386aee5d96b80f8",
|
|
45
45
|
"adio": {
|
|
46
46
|
"ignore": {
|
|
47
47
|
"src": [
|
package/raw/index.d.ts
CHANGED
|
@@ -10,6 +10,6 @@ import { APIGatewayProxyResult } from "aws-lambda/trigger/api-gateway-proxy";
|
|
|
10
10
|
export interface HandlerCallable<Payload, Response = APIGatewayProxyResult> {
|
|
11
11
|
(payload: Payload, context: LambdaContext): Promise<Response>;
|
|
12
12
|
}
|
|
13
|
-
export
|
|
13
|
+
export type CreateHandlerParams = BaseCreateHandlerParams;
|
|
14
14
|
export declare const createHandler: <Payload = any, Response_1 = APIGatewayProxyResult>(params: CreateHandlerParams) => HandlerCallable<Payload, Response_1>;
|
|
15
15
|
export * from "./plugins/RawEventHandler";
|
package/s3/index.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export * from "./plugins/S3EventHandler";
|
|
|
5
5
|
export interface HandlerCallable {
|
|
6
6
|
(event: S3Event, context: LambdaContext): Promise<APIGatewayProxyResult>;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type HandlerParams = HandlerFactoryParams;
|
|
9
9
|
export declare const createHandler: (params: HandlerParams) => HandlerCallable;
|
package/sns/index.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export * from "./plugins/SNSEventHandler";
|
|
|
5
5
|
export interface HandlerCallable {
|
|
6
6
|
(event: SNSEvent, context: LambdaContext): Promise<APIGatewayProxyResult>;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type HandlerParams = HandlerFactoryParams;
|
|
9
9
|
export declare const createHandler: (params: HandlerParams) => HandlerCallable;
|
package/sqs/index.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export * from "./plugins/SQSEventHandler";
|
|
|
5
5
|
export interface HandlerCallable {
|
|
6
6
|
(event: SQSEvent, context: LambdaContext): Promise<APIGatewayProxyResult>;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type HandlerParams = HandlerFactoryParams;
|
|
9
9
|
export declare const createHandler: (params: HandlerParams) => HandlerCallable;
|
package/types.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { LambdaFastifyOptions as LambdaOptions } from "@fastify/aws-lambda";
|
|
|
5
5
|
export { HandlerRegistry } from "./registry";
|
|
6
6
|
export * from "@webiny/handler/types";
|
|
7
7
|
export { APIGatewayEvent, LambdaContext, APIGatewayEventRequestContextWithAuthorizer };
|
|
8
|
-
export
|
|
8
|
+
export type HandlerEvent = APIGatewayEvent | SNSEvent | SQSEvent | S3Event | EventBridgeEvent<string, string> | DynamoDBStreamEvent;
|
|
9
9
|
export interface EventResolver<T = any> {
|
|
10
10
|
(event: HandlerEvent, context: LambdaContext): T;
|
|
11
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Plugin } from "@webiny/plugins/types";
|
|
2
|
-
|
|
2
|
+
type WrappedInput<TInput, TOutput> = TInput & {
|
|
3
3
|
next: () => Promise<TOutput>;
|
|
4
4
|
};
|
|
5
5
|
export declare const createComposedHandler: <P extends Plugin<Record<string, any>>, TInput, TOutput>(plugins: P[]) => import("@webiny/utils").NextAsyncProcessor<WrappedInput<TInput, TOutput>, TOutput>;
|
package/utils/timer/factory.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ITimer } from "./abstractions/ITimer";
|
|
2
2
|
import { Context as LambdaContext } from "aws-lambda/handler";
|
|
3
|
-
export
|
|
3
|
+
export type ITimerFactoryParams = Pick<LambdaContext, "getRemainingTimeInMillis">;
|
|
4
4
|
export declare const timerFactory: (params?: Partial<ITimerFactoryParams>) => ITimer;
|