@webiny/api-websockets 5.42.4-beta.0 → 5.43.0-beta.1
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/graphql/utils.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ export declare const emptyResolver: () => {};
|
|
|
3
3
|
interface ResolveCallable<T = any> {
|
|
4
4
|
(): Promise<T>;
|
|
5
5
|
}
|
|
6
|
-
export declare const resolve: <T = any>(fn: ResolveCallable<T>) => Promise<
|
|
6
|
+
export declare const resolve: <T = any>(fn: ResolveCallable<T>) => Promise<Response<T> | ErrorResponse>;
|
|
7
7
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-websockets",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.43.0-beta.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,30 +12,29 @@
|
|
|
12
12
|
],
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@webiny/api": "5.
|
|
16
|
-
"@webiny/api-i18n": "5.
|
|
17
|
-
"@webiny/api-security": "5.
|
|
18
|
-
"@webiny/api-tenancy": "5.
|
|
19
|
-
"@webiny/aws-sdk": "5.
|
|
20
|
-
"@webiny/db-dynamodb": "5.
|
|
21
|
-
"@webiny/error": "5.
|
|
22
|
-
"@webiny/handler": "5.
|
|
23
|
-
"@webiny/handler-aws": "5.
|
|
24
|
-
"@webiny/plugins": "5.
|
|
25
|
-
"@webiny/utils": "5.
|
|
26
|
-
"type-fest": "
|
|
15
|
+
"@webiny/api": "5.43.0-beta.1",
|
|
16
|
+
"@webiny/api-i18n": "5.43.0-beta.1",
|
|
17
|
+
"@webiny/api-security": "5.43.0-beta.1",
|
|
18
|
+
"@webiny/api-tenancy": "5.43.0-beta.1",
|
|
19
|
+
"@webiny/aws-sdk": "5.43.0-beta.1",
|
|
20
|
+
"@webiny/db-dynamodb": "5.43.0-beta.1",
|
|
21
|
+
"@webiny/error": "5.43.0-beta.1",
|
|
22
|
+
"@webiny/handler": "5.43.0-beta.1",
|
|
23
|
+
"@webiny/handler-aws": "5.43.0-beta.1",
|
|
24
|
+
"@webiny/plugins": "5.43.0-beta.1",
|
|
25
|
+
"@webiny/utils": "5.43.0-beta.1",
|
|
26
|
+
"type-fest": "4.14.0",
|
|
27
27
|
"zod": "3.23.8"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@webiny/api-headless-cms": "5.
|
|
31
|
-
"@webiny/api-wcp": "5.
|
|
32
|
-
"@webiny/handler-db": "5.
|
|
33
|
-
"@webiny/handler-graphql": "5.
|
|
34
|
-
"@webiny/project-utils": "5.
|
|
30
|
+
"@webiny/api-headless-cms": "5.43.0-beta.1",
|
|
31
|
+
"@webiny/api-wcp": "5.43.0-beta.1",
|
|
32
|
+
"@webiny/handler-db": "5.43.0-beta.1",
|
|
33
|
+
"@webiny/handler-graphql": "5.43.0-beta.1",
|
|
34
|
+
"@webiny/project-utils": "5.43.0-beta.1",
|
|
35
35
|
"graphql": "15.9.0",
|
|
36
36
|
"rimraf": "6.0.1",
|
|
37
|
-
"
|
|
38
|
-
"typescript": "4.9.5"
|
|
37
|
+
"typescript": "5.3.3"
|
|
39
38
|
},
|
|
40
39
|
"publishConfig": {
|
|
41
40
|
"access": "public",
|
|
@@ -45,5 +44,5 @@
|
|
|
45
44
|
"build": "node ../cli/bin.js run build",
|
|
46
45
|
"watch": "node ../cli/bin.js run watch"
|
|
47
46
|
},
|
|
48
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "d47a234b09383cb7ab2d9907300b8eaa89aa64d6"
|
|
49
48
|
}
|
|
@@ -8,4 +8,4 @@ export declare class WebsocketsActionPlugin<T extends GenericRecord = GenericRec
|
|
|
8
8
|
constructor(action: string, cb: IWebsocketsActionPluginCallable<T>);
|
|
9
9
|
run(params: IWebsocketsActionPluginCallableParams): Promise<WebsocketsActionPluginCallableResponse<T>>;
|
|
10
10
|
}
|
|
11
|
-
export declare const createWebsocketsAction: <T extends GenericRecord
|
|
11
|
+
export declare const createWebsocketsAction: <T extends GenericRecord = GenericRecord>(action: string, cb: IWebsocketsActionPluginCallable<T>) => WebsocketsActionPlugin<T>;
|
package/registry/entity.d.ts
CHANGED
|
@@ -78,18 +78,18 @@ export declare const createEntity: (documentClient: DynamoDBDocument) => Entity<
|
|
|
78
78
|
data: {
|
|
79
79
|
type: "map";
|
|
80
80
|
};
|
|
81
|
-
}, true, "created", "modified", "entity", false
|
|
81
|
+
}, true, "created", "modified", "entity", false>, {
|
|
82
82
|
data?: any;
|
|
83
83
|
GSI1_PK?: string | undefined;
|
|
84
84
|
GSI1_SK?: string | undefined;
|
|
85
85
|
GSI2_PK?: string | undefined;
|
|
86
86
|
GSI2_SK?: string | undefined;
|
|
87
87
|
TYPE?: string | undefined;
|
|
88
|
+
PK: any;
|
|
89
|
+
SK: any;
|
|
88
90
|
created: string;
|
|
89
91
|
modified: string;
|
|
90
92
|
entity: string;
|
|
91
|
-
PK: any;
|
|
92
|
-
SK: any;
|
|
93
93
|
}, {
|
|
94
94
|
data?: any;
|
|
95
95
|
GSI1_PK?: string | undefined;
|
|
@@ -97,11 +97,11 @@ export declare const createEntity: (documentClient: DynamoDBDocument) => Entity<
|
|
|
97
97
|
GSI2_PK?: string | undefined;
|
|
98
98
|
GSI2_SK?: string | undefined;
|
|
99
99
|
TYPE?: string | undefined;
|
|
100
|
+
PK: any;
|
|
101
|
+
SK: any;
|
|
100
102
|
created: string;
|
|
101
103
|
modified: string;
|
|
102
104
|
entity: string;
|
|
103
|
-
PK: any;
|
|
104
|
-
SK: any;
|
|
105
105
|
}, {
|
|
106
106
|
PK: any;
|
|
107
107
|
SK: any;
|
package/utils/middleware.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ import { GenericRecord } from "@webiny/api/types";
|
|
|
2
2
|
export interface MiddlewareCallable<I extends GenericRecord = GenericRecord, O extends GenericRecord = GenericRecord> {
|
|
3
3
|
(input: I, next: () => Promise<O>): Promise<O>;
|
|
4
4
|
}
|
|
5
|
-
export declare const middleware: <I extends GenericRecord
|
|
5
|
+
export declare const middleware: <I extends GenericRecord = GenericRecord, O extends GenericRecord = GenericRecord>(functions: MiddlewareCallable<I, O>[]) => (input: I) => Promise<O>;
|