@webiny/api-websockets 6.4.12-beta.7 → 6.4.12-beta.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/handler/types.js.map +1 -1
- package/package.json +16 -16
package/handler/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler/types.js","sources":["../../src/handler/types.ts"],"sourcesContent":["import type { HandlerFactoryParams } from \"@webiny/handler-aws/types.js\";\nimport type { IWebsocketsEventValidator } from \"~/validator/index.js\";\nimport type { IWebsocketsResponse } from \"~/response/index.js\";\nimport type {\n APIGatewayProxyResult,\n Context as LambdaContext\n} from \"@webiny/aws-sdk/types/index.js\";\nimport type { GenericRecord } from \"@webiny/api/types.js\";\nimport type { PartialDeep } from \"type-fest\";\n\nexport interface HandlerCallable {\n (event: IWebsocketsIncomingEvent, context: LambdaContext): Promise<APIGatewayProxyResult>;\n}\n\nexport interface HandlerParams extends HandlerFactoryParams {\n validator?: IWebsocketsEventValidator;\n response?: IWebsocketsResponse;\n}\n\nexport enum WebsocketsEventRoute {\n connect = \"$connect\",\n disconnect = \"$disconnect\",\n default = \"$default\"\n}\n\nexport interface IWebsocketsEventData {\n token?: string;\n tenant?: string;\n messageId?: string;\n action?: string;\n data?: GenericRecord;\n}\n\nexport enum WebsocketsEventRequestContextEventType {\n message = \"MESSAGE\",\n connect = \"CONNECT\",\n disconnect = \"DISCONNECT\"\n}\n\nexport interface IWebsocketsEventRequestContext {\n connectionId: string;\n connectedAt: number;\n domainName: string;\n eventType: WebsocketsEventRequestContextEventType;\n routeKey: WebsocketsEventRoute | string;\n stage: string;\n}\n\nexport interface IWebsocketsEventHeaders {\n \"Accept-Encoding\"?: string;\n \"Accept-Language\"?: string;\n \"Cache-Control\"?: string;\n Host?: string;\n Origin?: string;\n Pragma?: string;\n \"Sec-WebSocket-Extensions\"?: string;\n \"Sec-WebSocket-Key\"?: string;\n \"Sec-WebSocket-Version\"?: string;\n \"Sec-WebSocket-Protocol\"?: string;\n \"User-Agent\"?: string;\n \"X-Amzn-Trace-Id\"?: string;\n \"X-Forwarded-For\"?: string;\n \"X-Forwarded-Port\"?: `${number}`;\n \"X-Forwarded-Proto\"?: \"https\" | \"http\";\n [\"x-tenant\"]?: string;\n [\"x-webiny-cms-endpoint\"]?: string;\n}\n\nexport interface IWebsocketsEventQueryStringParameters {\n tenant?: string;\n token?: string;\n}\n\nexport interface IWebsocketsEvent<T extends IWebsocketsEventData = IWebsocketsEventData> {\n headers?: IWebsocketsEventHeaders;\n queryStringParameters?: IWebsocketsEventQueryStringParameters;\n requestContext: IWebsocketsEventRequestContext;\n body?: T;\n}\n\nexport interface IWebsocketsIncomingEvent extends PartialDeep<Omit<IWebsocketsEvent, \"body\">> {\n body?: string | GenericRecord;\n}\n"],"names":["WebsocketsEventRoute","WebsocketsEventRequestContextEventType"],"mappings":"AAmBO,IAAKA,6BAAoBA,WAAAA,GAAAA,
|
|
1
|
+
{"version":3,"file":"handler/types.js","sources":["../../src/handler/types.ts"],"sourcesContent":["import type { HandlerFactoryParams } from \"@webiny/handler-aws/types.js\";\nimport type { IWebsocketsEventValidator } from \"~/validator/index.js\";\nimport type { IWebsocketsResponse } from \"~/response/index.js\";\nimport type {\n APIGatewayProxyResult,\n Context as LambdaContext\n} from \"@webiny/aws-sdk/types/index.js\";\nimport type { GenericRecord } from \"@webiny/api/types.js\";\nimport type { PartialDeep } from \"type-fest\";\n\nexport interface HandlerCallable {\n (event: IWebsocketsIncomingEvent, context: LambdaContext): Promise<APIGatewayProxyResult>;\n}\n\nexport interface HandlerParams extends HandlerFactoryParams {\n validator?: IWebsocketsEventValidator;\n response?: IWebsocketsResponse;\n}\n\nexport enum WebsocketsEventRoute {\n connect = \"$connect\",\n disconnect = \"$disconnect\",\n default = \"$default\"\n}\n\nexport interface IWebsocketsEventData {\n token?: string;\n tenant?: string;\n messageId?: string;\n action?: string;\n data?: GenericRecord;\n}\n\nexport enum WebsocketsEventRequestContextEventType {\n message = \"MESSAGE\",\n connect = \"CONNECT\",\n disconnect = \"DISCONNECT\"\n}\n\nexport interface IWebsocketsEventRequestContext {\n connectionId: string;\n connectedAt: number;\n domainName: string;\n eventType: WebsocketsEventRequestContextEventType;\n routeKey: WebsocketsEventRoute | string;\n stage: string;\n}\n\nexport interface IWebsocketsEventHeaders {\n \"Accept-Encoding\"?: string;\n \"Accept-Language\"?: string;\n \"Cache-Control\"?: string;\n Host?: string;\n Origin?: string;\n Pragma?: string;\n \"Sec-WebSocket-Extensions\"?: string;\n \"Sec-WebSocket-Key\"?: string;\n \"Sec-WebSocket-Version\"?: string;\n \"Sec-WebSocket-Protocol\"?: string;\n \"User-Agent\"?: string;\n \"X-Amzn-Trace-Id\"?: string;\n \"X-Forwarded-For\"?: string;\n \"X-Forwarded-Port\"?: `${number}`;\n \"X-Forwarded-Proto\"?: \"https\" | \"http\";\n [\"x-tenant\"]?: string;\n [\"x-webiny-cms-endpoint\"]?: string;\n}\n\nexport interface IWebsocketsEventQueryStringParameters {\n tenant?: string;\n token?: string;\n}\n\nexport interface IWebsocketsEvent<T extends IWebsocketsEventData = IWebsocketsEventData> {\n headers?: IWebsocketsEventHeaders;\n queryStringParameters?: IWebsocketsEventQueryStringParameters;\n requestContext: IWebsocketsEventRequestContext;\n body?: T;\n}\n\nexport interface IWebsocketsIncomingEvent extends PartialDeep<Omit<IWebsocketsEvent, \"body\">> {\n body?: string | GenericRecord;\n}\n"],"names":["WebsocketsEventRoute","WebsocketsEventRequestContextEventType"],"mappings":"AAmBO,IAAKA,6BAAoBA,WAAAA,GAAAA,SAAAA,oBAAAA;;;;;;AAczB,IAAKC,+CAAsCA,WAAAA,GAAAA,SAAAA,sCAAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-websockets",
|
|
3
|
-
"version": "6.4.12-beta.
|
|
3
|
+
"version": "6.4.12-beta.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,25 +16,25 @@
|
|
|
16
16
|
},
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@webiny/api": "6.4.12-beta.
|
|
20
|
-
"@webiny/api-core": "6.4.12-beta.
|
|
21
|
-
"@webiny/aws-sdk": "6.4.12-beta.
|
|
22
|
-
"@webiny/db-dynamodb": "6.4.12-beta.
|
|
23
|
-
"@webiny/error": "6.4.12-beta.
|
|
24
|
-
"@webiny/feature": "6.4.12-beta.
|
|
25
|
-
"@webiny/handler": "6.4.12-beta.
|
|
26
|
-
"@webiny/handler-aws": "6.4.12-beta.
|
|
27
|
-
"@webiny/plugins": "6.4.12-beta.
|
|
28
|
-
"@webiny/utils": "6.4.12-beta.
|
|
19
|
+
"@webiny/api": "6.4.12-beta.9",
|
|
20
|
+
"@webiny/api-core": "6.4.12-beta.9",
|
|
21
|
+
"@webiny/aws-sdk": "6.4.12-beta.9",
|
|
22
|
+
"@webiny/db-dynamodb": "6.4.12-beta.9",
|
|
23
|
+
"@webiny/error": "6.4.12-beta.9",
|
|
24
|
+
"@webiny/feature": "6.4.12-beta.9",
|
|
25
|
+
"@webiny/handler": "6.4.12-beta.9",
|
|
26
|
+
"@webiny/handler-aws": "6.4.12-beta.9",
|
|
27
|
+
"@webiny/plugins": "6.4.12-beta.9",
|
|
28
|
+
"@webiny/utils": "6.4.12-beta.9",
|
|
29
29
|
"type-fest": "5.10.0",
|
|
30
30
|
"zod": "4.6.7"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@webiny/api-headless-cms": "6.4.12-beta.
|
|
34
|
-
"@webiny/build-tools": "6.4.12-beta.
|
|
35
|
-
"@webiny/handler-db": "6.4.12-beta.
|
|
36
|
-
"@webiny/handler-graphql": "6.4.12-beta.
|
|
37
|
-
"@webiny/project-utils": "6.4.12-beta.
|
|
33
|
+
"@webiny/api-headless-cms": "6.4.12-beta.9",
|
|
34
|
+
"@webiny/build-tools": "6.4.12-beta.9",
|
|
35
|
+
"@webiny/handler-db": "6.4.12-beta.9",
|
|
36
|
+
"@webiny/handler-graphql": "6.4.12-beta.9",
|
|
37
|
+
"@webiny/project-utils": "6.4.12-beta.9",
|
|
38
38
|
"graphql": "16.15.0",
|
|
39
39
|
"rimraf": "6.1.4",
|
|
40
40
|
"typescript": "6.0.3",
|