@webiny/api-sync-system 0.0.0-unstable.ac6ebf63c6 → 0.0.0-unstable.c27f4d8a31
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/package.json +14 -14
- package/resolver/app/validation/body.d.ts +24 -123
- package/resolver/app/validation/createJsonTransform.d.ts +1 -1
- package/resolver/app/validation/detail.d.ts +17 -70
- package/resolver/app/validation/event.d.ts +28 -187
- package/resolver/app/validation/event.js +1 -1
- package/resolver/app/validation/event.js.map +1 -1
- package/resolver/app/validation/numericString.d.ts +1 -1
- package/resolver/app/validation/system.d.ts +2 -14
- package/resolver/deployment/Deployment.js +0 -6
- package/resolver/deployment/Deployment.js.map +1 -1
- package/resolver/deployment/DeploymentsFetcher.js +1 -3
- package/resolver/deployment/DeploymentsFetcher.js.map +1 -1
- package/resolver/deployment/types.d.ts +0 -2
- package/resolver/deployment/types.js.map +1 -1
- package/sync/utils/getTableType.js +0 -2
- package/sync/utils/getTableType.js.map +1 -1
- package/sync/utils/manifest.d.ts +1 -1
- package/types.d.ts +0 -1
- package/types.js +0 -1
- package/types.js.map +1 -1
- package/worker/actions/copyFile/copyFileSchema.d.ts +6 -38
- package/worker/actions/createUser/createUserSchema.d.ts +6 -38
- package/worker/actions/deleteFile/deleteFileSchema.d.ts +6 -38
- package/worker/actions/deleteUser/deleteUserSchema.d.ts +5 -23
- package/worker/actions/updateUser/updateUserSchema.d.ts +6 -38
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-sync-system",
|
|
3
|
-
"version": "0.0.0-unstable.
|
|
3
|
+
"version": "0.0.0-unstable.c27f4d8a31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -11,32 +11,32 @@
|
|
|
11
11
|
"author": "Webiny LTD",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@webiny/api": "0.0.0-unstable.
|
|
15
|
-
"@webiny/aws-sdk": "0.0.0-unstable.
|
|
16
|
-
"@webiny/error": "0.0.0-unstable.
|
|
17
|
-
"@webiny/handler": "0.0.0-unstable.
|
|
18
|
-
"@webiny/handler-aws": "0.0.0-unstable.
|
|
19
|
-
"@webiny/plugins": "0.0.0-unstable.
|
|
20
|
-
"@webiny/utils": "0.0.0-unstable.
|
|
14
|
+
"@webiny/api": "0.0.0-unstable.c27f4d8a31",
|
|
15
|
+
"@webiny/aws-sdk": "0.0.0-unstable.c27f4d8a31",
|
|
16
|
+
"@webiny/error": "0.0.0-unstable.c27f4d8a31",
|
|
17
|
+
"@webiny/handler": "0.0.0-unstable.c27f4d8a31",
|
|
18
|
+
"@webiny/handler-aws": "0.0.0-unstable.c27f4d8a31",
|
|
19
|
+
"@webiny/plugins": "0.0.0-unstable.c27f4d8a31",
|
|
20
|
+
"@webiny/utils": "0.0.0-unstable.c27f4d8a31",
|
|
21
21
|
"bytes": "3.1.2",
|
|
22
22
|
"lodash": "4.17.23",
|
|
23
23
|
"semver": "7.7.4",
|
|
24
|
-
"zod": "3.
|
|
24
|
+
"zod": "4.3.6"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@faker-js/faker": "9.9.0",
|
|
28
|
-
"@types/lodash": "4.17.
|
|
29
|
-
"@webiny/build-tools": "0.0.0-unstable.
|
|
30
|
-
"@webiny/project-utils": "0.0.0-unstable.
|
|
28
|
+
"@types/lodash": "4.17.24",
|
|
29
|
+
"@webiny/build-tools": "0.0.0-unstable.c27f4d8a31",
|
|
30
|
+
"@webiny/project-utils": "0.0.0-unstable.c27f4d8a31",
|
|
31
31
|
"aws-sdk-client-mock": "4.1.0",
|
|
32
32
|
"jest-dynalite": "3.6.1",
|
|
33
33
|
"rimraf": "6.1.3",
|
|
34
34
|
"typescript": "5.9.3",
|
|
35
|
-
"vitest": "
|
|
35
|
+
"vitest": "4.0.18"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public",
|
|
39
39
|
"directory": "dist"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "c27f4d8a31c3af1570817797441855292b6c1f20"
|
|
42
42
|
}
|
|
@@ -1,142 +1,43 @@
|
|
|
1
1
|
import zod from "zod";
|
|
2
2
|
export declare const createBodyValidation: () => zod.ZodObject<{
|
|
3
|
-
version: zod.
|
|
3
|
+
version: zod.ZodPipe<zod.ZodString, zod.ZodTransform<`${number}`, string>>;
|
|
4
4
|
id: zod.ZodString;
|
|
5
|
-
"detail-type": zod.
|
|
6
|
-
source: zod.
|
|
7
|
-
account: zod.
|
|
8
|
-
time: zod.
|
|
5
|
+
"detail-type": zod.ZodPipe<zod.ZodString, zod.ZodTransform<"synchronization-input", string>>;
|
|
6
|
+
source: zod.ZodPipe<zod.ZodString, zod.ZodTransform<`webiny:${string}`, string>>;
|
|
7
|
+
account: zod.ZodPipe<zod.ZodString, zod.ZodTransform<`${number}`, string>>;
|
|
8
|
+
time: zod.ZodPipe<zod.ZodString, zod.ZodTransform<Date, string>>;
|
|
9
9
|
region: zod.ZodString;
|
|
10
|
-
resources: zod.ZodArray<zod.ZodString
|
|
10
|
+
resources: zod.ZodArray<zod.ZodString>;
|
|
11
11
|
detail: zod.ZodObject<{
|
|
12
|
-
items: zod.
|
|
12
|
+
items: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
13
13
|
PK: zod.ZodString;
|
|
14
14
|
SK: zod.ZodString;
|
|
15
15
|
tableName: zod.ZodString;
|
|
16
|
-
tableType: zod.
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
tableType: zod.ZodPipe<zod.ZodEnum<{
|
|
17
|
+
regular: "regular";
|
|
18
|
+
opensearch: "opensearch";
|
|
19
|
+
unknown: "unknown";
|
|
20
|
+
log: "log";
|
|
21
|
+
}>, zod.ZodTransform<import("../../../types.js").DynamoDBTableType, "regular" | "opensearch" | "unknown" | "log">>;
|
|
22
|
+
command: zod.ZodEnum<{
|
|
23
|
+
put: "put";
|
|
24
|
+
delete: "delete";
|
|
25
|
+
update: "update";
|
|
26
|
+
}>;
|
|
27
|
+
}, zod.core.$strip>>, zod.ZodTransform<import("@webiny/api/types.js").NonEmptyArray<import("../abstractions/ResolverRecord.js").IResolverRecordBodyItem>, {
|
|
19
28
|
PK: string;
|
|
20
29
|
SK: string;
|
|
21
30
|
tableName: string;
|
|
22
31
|
tableType: import("../../../types.js").DynamoDBTableType;
|
|
23
32
|
command: "put" | "delete" | "update";
|
|
24
|
-
}
|
|
25
|
-
PK: string;
|
|
26
|
-
SK: string;
|
|
27
|
-
tableName: string;
|
|
28
|
-
tableType: "unknown" | "regular" | "opensearch" | "log";
|
|
29
|
-
command: "put" | "delete" | "update";
|
|
30
|
-
}>, "many">, {
|
|
31
|
-
PK: string;
|
|
32
|
-
SK: string;
|
|
33
|
-
tableName: string;
|
|
34
|
-
tableType: import("../../../types.js").DynamoDBTableType;
|
|
35
|
-
command: "put" | "delete" | "update";
|
|
36
|
-
}[], {
|
|
37
|
-
PK: string;
|
|
38
|
-
SK: string;
|
|
39
|
-
tableName: string;
|
|
40
|
-
tableType: "unknown" | "regular" | "opensearch" | "log";
|
|
41
|
-
command: "put" | "delete" | "update";
|
|
42
|
-
}[]>, import("@webiny/api/types.js").NonEmptyArray<import("../abstractions/ResolverRecord.js").IResolverRecordBodyItem>, {
|
|
43
|
-
PK: string;
|
|
44
|
-
SK: string;
|
|
45
|
-
tableName: string;
|
|
46
|
-
tableType: "unknown" | "regular" | "opensearch" | "log";
|
|
47
|
-
command: "put" | "delete" | "update";
|
|
48
|
-
}[]>;
|
|
33
|
+
}[]>>;
|
|
49
34
|
source: zod.ZodObject<{
|
|
50
35
|
name: zod.ZodString;
|
|
51
36
|
env: zod.ZodString;
|
|
52
|
-
variant: zod.
|
|
37
|
+
variant: zod.ZodPipe<zod.ZodOptional<zod.ZodNullable<zod.ZodOptional<zod.ZodString>>>, zod.ZodTransform<string | undefined, string | null | undefined>>;
|
|
53
38
|
region: zod.ZodString;
|
|
54
39
|
version: zod.ZodString;
|
|
55
|
-
},
|
|
56
|
-
region: string;
|
|
57
|
-
name: string;
|
|
58
|
-
env: string;
|
|
59
|
-
version: string;
|
|
60
|
-
variant?: string | undefined;
|
|
61
|
-
}, {
|
|
62
|
-
region: string;
|
|
63
|
-
name: string;
|
|
64
|
-
env: string;
|
|
65
|
-
version: string;
|
|
66
|
-
variant?: string | null | undefined;
|
|
67
|
-
}>;
|
|
40
|
+
}, zod.core.$strip>;
|
|
68
41
|
id: zod.ZodString;
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
region: string;
|
|
72
|
-
name: string;
|
|
73
|
-
env: string;
|
|
74
|
-
version: string;
|
|
75
|
-
variant?: string | undefined;
|
|
76
|
-
};
|
|
77
|
-
items: import("@webiny/api/types.js").NonEmptyArray<import("../abstractions/ResolverRecord.js").IResolverRecordBodyItem>;
|
|
78
|
-
id: string;
|
|
79
|
-
}, {
|
|
80
|
-
source: {
|
|
81
|
-
region: string;
|
|
82
|
-
name: string;
|
|
83
|
-
env: string;
|
|
84
|
-
version: string;
|
|
85
|
-
variant?: string | null | undefined;
|
|
86
|
-
};
|
|
87
|
-
items: {
|
|
88
|
-
PK: string;
|
|
89
|
-
SK: string;
|
|
90
|
-
tableName: string;
|
|
91
|
-
tableType: "unknown" | "regular" | "opensearch" | "log";
|
|
92
|
-
command: "put" | "delete" | "update";
|
|
93
|
-
}[];
|
|
94
|
-
id: string;
|
|
95
|
-
}>;
|
|
96
|
-
}, "strip", zod.ZodTypeAny, {
|
|
97
|
-
region: string;
|
|
98
|
-
source: `webiny:${string}`;
|
|
99
|
-
version: `${number}`;
|
|
100
|
-
id: string;
|
|
101
|
-
"detail-type": "synchronization-input";
|
|
102
|
-
account: `${number}`;
|
|
103
|
-
time: Date;
|
|
104
|
-
resources: string[];
|
|
105
|
-
detail: {
|
|
106
|
-
source: {
|
|
107
|
-
region: string;
|
|
108
|
-
name: string;
|
|
109
|
-
env: string;
|
|
110
|
-
version: string;
|
|
111
|
-
variant?: string | undefined;
|
|
112
|
-
};
|
|
113
|
-
items: import("@webiny/api/types.js").NonEmptyArray<import("../abstractions/ResolverRecord.js").IResolverRecordBodyItem>;
|
|
114
|
-
id: string;
|
|
115
|
-
};
|
|
116
|
-
}, {
|
|
117
|
-
region: string;
|
|
118
|
-
source: string;
|
|
119
|
-
version: string;
|
|
120
|
-
id: string;
|
|
121
|
-
"detail-type": string;
|
|
122
|
-
account: string;
|
|
123
|
-
time: string;
|
|
124
|
-
resources: string[];
|
|
125
|
-
detail: {
|
|
126
|
-
source: {
|
|
127
|
-
region: string;
|
|
128
|
-
name: string;
|
|
129
|
-
env: string;
|
|
130
|
-
version: string;
|
|
131
|
-
variant?: string | null | undefined;
|
|
132
|
-
};
|
|
133
|
-
items: {
|
|
134
|
-
PK: string;
|
|
135
|
-
SK: string;
|
|
136
|
-
tableName: string;
|
|
137
|
-
tableType: "unknown" | "regular" | "opensearch" | "log";
|
|
138
|
-
command: "put" | "delete" | "update";
|
|
139
|
-
}[];
|
|
140
|
-
id: string;
|
|
141
|
-
};
|
|
142
|
-
}>;
|
|
42
|
+
}, zod.core.$strip>;
|
|
43
|
+
}, zod.core.$strip>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import zod from "zod";
|
|
2
|
-
export declare const createJsonTransform: (name: string) => zod.
|
|
2
|
+
export declare const createJsonTransform: (name: string) => zod.ZodPipe<zod.ZodString, zod.ZodTransform<any, string>>;
|
|
@@ -3,87 +3,34 @@ import type { NonEmptyArray } from "@webiny/api/types.js";
|
|
|
3
3
|
import type { IResolverRecordBodyItem } from "../../../resolver/app/abstractions/ResolverRecord.js";
|
|
4
4
|
import { DynamoDBTableType } from "../../../types.js";
|
|
5
5
|
export declare const createDetailValidation: () => zod.ZodObject<{
|
|
6
|
-
items: zod.
|
|
6
|
+
items: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
7
7
|
PK: zod.ZodString;
|
|
8
8
|
SK: zod.ZodString;
|
|
9
9
|
tableName: zod.ZodString;
|
|
10
|
-
tableType: zod.
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
tableType: zod.ZodPipe<zod.ZodEnum<{
|
|
11
|
+
regular: "regular";
|
|
12
|
+
opensearch: "opensearch";
|
|
13
|
+
unknown: "unknown";
|
|
14
|
+
log: "log";
|
|
15
|
+
}>, zod.ZodTransform<DynamoDBTableType, "regular" | "opensearch" | "unknown" | "log">>;
|
|
16
|
+
command: zod.ZodEnum<{
|
|
17
|
+
put: "put";
|
|
18
|
+
delete: "delete";
|
|
19
|
+
update: "update";
|
|
20
|
+
}>;
|
|
21
|
+
}, zod.core.$strip>>, zod.ZodTransform<NonEmptyArray<IResolverRecordBodyItem>, {
|
|
13
22
|
PK: string;
|
|
14
23
|
SK: string;
|
|
15
24
|
tableName: string;
|
|
16
25
|
tableType: DynamoDBTableType;
|
|
17
26
|
command: "put" | "delete" | "update";
|
|
18
|
-
}
|
|
19
|
-
PK: string;
|
|
20
|
-
SK: string;
|
|
21
|
-
tableName: string;
|
|
22
|
-
tableType: "unknown" | "regular" | "opensearch" | "log";
|
|
23
|
-
command: "put" | "delete" | "update";
|
|
24
|
-
}>, "many">, {
|
|
25
|
-
PK: string;
|
|
26
|
-
SK: string;
|
|
27
|
-
tableName: string;
|
|
28
|
-
tableType: DynamoDBTableType;
|
|
29
|
-
command: "put" | "delete" | "update";
|
|
30
|
-
}[], {
|
|
31
|
-
PK: string;
|
|
32
|
-
SK: string;
|
|
33
|
-
tableName: string;
|
|
34
|
-
tableType: "unknown" | "regular" | "opensearch" | "log";
|
|
35
|
-
command: "put" | "delete" | "update";
|
|
36
|
-
}[]>, NonEmptyArray<IResolverRecordBodyItem>, {
|
|
37
|
-
PK: string;
|
|
38
|
-
SK: string;
|
|
39
|
-
tableName: string;
|
|
40
|
-
tableType: "unknown" | "regular" | "opensearch" | "log";
|
|
41
|
-
command: "put" | "delete" | "update";
|
|
42
|
-
}[]>;
|
|
27
|
+
}[]>>;
|
|
43
28
|
source: zod.ZodObject<{
|
|
44
29
|
name: zod.ZodString;
|
|
45
30
|
env: zod.ZodString;
|
|
46
|
-
variant: zod.
|
|
31
|
+
variant: zod.ZodPipe<zod.ZodOptional<zod.ZodNullable<zod.ZodOptional<zod.ZodString>>>, zod.ZodTransform<string | undefined, string | null | undefined>>;
|
|
47
32
|
region: zod.ZodString;
|
|
48
33
|
version: zod.ZodString;
|
|
49
|
-
},
|
|
50
|
-
region: string;
|
|
51
|
-
name: string;
|
|
52
|
-
env: string;
|
|
53
|
-
version: string;
|
|
54
|
-
variant?: string | undefined;
|
|
55
|
-
}, {
|
|
56
|
-
region: string;
|
|
57
|
-
name: string;
|
|
58
|
-
env: string;
|
|
59
|
-
version: string;
|
|
60
|
-
variant?: string | null | undefined;
|
|
61
|
-
}>;
|
|
34
|
+
}, zod.core.$strip>;
|
|
62
35
|
id: zod.ZodString;
|
|
63
|
-
},
|
|
64
|
-
source: {
|
|
65
|
-
region: string;
|
|
66
|
-
name: string;
|
|
67
|
-
env: string;
|
|
68
|
-
version: string;
|
|
69
|
-
variant?: string | undefined;
|
|
70
|
-
};
|
|
71
|
-
items: NonEmptyArray<IResolverRecordBodyItem>;
|
|
72
|
-
id: string;
|
|
73
|
-
}, {
|
|
74
|
-
source: {
|
|
75
|
-
region: string;
|
|
76
|
-
name: string;
|
|
77
|
-
env: string;
|
|
78
|
-
version: string;
|
|
79
|
-
variant?: string | null | undefined;
|
|
80
|
-
};
|
|
81
|
-
items: {
|
|
82
|
-
PK: string;
|
|
83
|
-
SK: string;
|
|
84
|
-
tableName: string;
|
|
85
|
-
tableType: "unknown" | "regular" | "opensearch" | "log";
|
|
86
|
-
command: "put" | "delete" | "update";
|
|
87
|
-
}[];
|
|
88
|
-
id: string;
|
|
89
|
-
}>;
|
|
36
|
+
}, zod.core.$strip>;
|
|
@@ -2,216 +2,57 @@ import zod from "zod";
|
|
|
2
2
|
export declare const createEventValidation: () => zod.ZodArray<zod.ZodObject<{
|
|
3
3
|
messageId: zod.ZodString;
|
|
4
4
|
receiptHandle: zod.ZodString;
|
|
5
|
-
body: zod.
|
|
6
|
-
version: zod.
|
|
5
|
+
body: zod.ZodPipe<zod.ZodPipe<zod.ZodString, zod.ZodTransform<any, string>>, zod.ZodObject<{
|
|
6
|
+
version: zod.ZodPipe<zod.ZodString, zod.ZodTransform<`${number}`, string>>;
|
|
7
7
|
id: zod.ZodString;
|
|
8
|
-
"detail-type": zod.
|
|
9
|
-
source: zod.
|
|
10
|
-
account: zod.
|
|
11
|
-
time: zod.
|
|
8
|
+
"detail-type": zod.ZodPipe<zod.ZodString, zod.ZodTransform<"synchronization-input", string>>;
|
|
9
|
+
source: zod.ZodPipe<zod.ZodString, zod.ZodTransform<`webiny:${string}`, string>>;
|
|
10
|
+
account: zod.ZodPipe<zod.ZodString, zod.ZodTransform<`${number}`, string>>;
|
|
11
|
+
time: zod.ZodPipe<zod.ZodString, zod.ZodTransform<Date, string>>;
|
|
12
12
|
region: zod.ZodString;
|
|
13
|
-
resources: zod.ZodArray<zod.ZodString
|
|
13
|
+
resources: zod.ZodArray<zod.ZodString>;
|
|
14
14
|
detail: zod.ZodObject<{
|
|
15
|
-
items: zod.
|
|
15
|
+
items: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
16
16
|
PK: zod.ZodString;
|
|
17
17
|
SK: zod.ZodString;
|
|
18
18
|
tableName: zod.ZodString;
|
|
19
|
-
tableType: zod.
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
tableType: zod.ZodPipe<zod.ZodEnum<{
|
|
20
|
+
regular: "regular";
|
|
21
|
+
opensearch: "opensearch";
|
|
22
|
+
unknown: "unknown";
|
|
23
|
+
log: "log";
|
|
24
|
+
}>, zod.ZodTransform<import("../../../types").DynamoDBTableType, "regular" | "opensearch" | "unknown" | "log">>;
|
|
25
|
+
command: zod.ZodEnum<{
|
|
26
|
+
put: "put";
|
|
27
|
+
delete: "delete";
|
|
28
|
+
update: "update";
|
|
29
|
+
}>;
|
|
30
|
+
}, zod.core.$strip>>, zod.ZodTransform<import("@webiny/api/types").NonEmptyArray<import("../abstractions/ResolverRecord").IResolverRecordBodyItem>, {
|
|
22
31
|
PK: string;
|
|
23
32
|
SK: string;
|
|
24
33
|
tableName: string;
|
|
25
34
|
tableType: import("../../../types").DynamoDBTableType;
|
|
26
35
|
command: "put" | "delete" | "update";
|
|
27
|
-
}
|
|
28
|
-
PK: string;
|
|
29
|
-
SK: string;
|
|
30
|
-
tableName: string;
|
|
31
|
-
tableType: "unknown" | "regular" | "opensearch" | "log";
|
|
32
|
-
command: "put" | "delete" | "update";
|
|
33
|
-
}>, "many">, {
|
|
34
|
-
PK: string;
|
|
35
|
-
SK: string;
|
|
36
|
-
tableName: string;
|
|
37
|
-
tableType: import("../../../types").DynamoDBTableType;
|
|
38
|
-
command: "put" | "delete" | "update";
|
|
39
|
-
}[], {
|
|
40
|
-
PK: string;
|
|
41
|
-
SK: string;
|
|
42
|
-
tableName: string;
|
|
43
|
-
tableType: "unknown" | "regular" | "opensearch" | "log";
|
|
44
|
-
command: "put" | "delete" | "update";
|
|
45
|
-
}[]>, import("@webiny/api/types").NonEmptyArray<import("../abstractions/ResolverRecord").IResolverRecordBodyItem>, {
|
|
46
|
-
PK: string;
|
|
47
|
-
SK: string;
|
|
48
|
-
tableName: string;
|
|
49
|
-
tableType: "unknown" | "regular" | "opensearch" | "log";
|
|
50
|
-
command: "put" | "delete" | "update";
|
|
51
|
-
}[]>;
|
|
36
|
+
}[]>>;
|
|
52
37
|
source: zod.ZodObject<{
|
|
53
38
|
name: zod.ZodString;
|
|
54
39
|
env: zod.ZodString;
|
|
55
|
-
variant: zod.
|
|
40
|
+
variant: zod.ZodPipe<zod.ZodOptional<zod.ZodNullable<zod.ZodOptional<zod.ZodString>>>, zod.ZodTransform<string | undefined, string | null | undefined>>;
|
|
56
41
|
region: zod.ZodString;
|
|
57
42
|
version: zod.ZodString;
|
|
58
|
-
},
|
|
59
|
-
region: string;
|
|
60
|
-
name: string;
|
|
61
|
-
env: string;
|
|
62
|
-
version: string;
|
|
63
|
-
variant?: string | undefined;
|
|
64
|
-
}, {
|
|
65
|
-
region: string;
|
|
66
|
-
name: string;
|
|
67
|
-
env: string;
|
|
68
|
-
version: string;
|
|
69
|
-
variant?: string | null | undefined;
|
|
70
|
-
}>;
|
|
43
|
+
}, zod.core.$strip>;
|
|
71
44
|
id: zod.ZodString;
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
region: string;
|
|
75
|
-
name: string;
|
|
76
|
-
env: string;
|
|
77
|
-
version: string;
|
|
78
|
-
variant?: string | undefined;
|
|
79
|
-
};
|
|
80
|
-
items: import("@webiny/api/types").NonEmptyArray<import("../abstractions/ResolverRecord").IResolverRecordBodyItem>;
|
|
81
|
-
id: string;
|
|
82
|
-
}, {
|
|
83
|
-
source: {
|
|
84
|
-
region: string;
|
|
85
|
-
name: string;
|
|
86
|
-
env: string;
|
|
87
|
-
version: string;
|
|
88
|
-
variant?: string | null | undefined;
|
|
89
|
-
};
|
|
90
|
-
items: {
|
|
91
|
-
PK: string;
|
|
92
|
-
SK: string;
|
|
93
|
-
tableName: string;
|
|
94
|
-
tableType: "unknown" | "regular" | "opensearch" | "log";
|
|
95
|
-
command: "put" | "delete" | "update";
|
|
96
|
-
}[];
|
|
97
|
-
id: string;
|
|
98
|
-
}>;
|
|
99
|
-
}, "strip", zod.ZodTypeAny, {
|
|
100
|
-
region: string;
|
|
101
|
-
source: `webiny:${string}`;
|
|
102
|
-
version: `${number}`;
|
|
103
|
-
id: string;
|
|
104
|
-
"detail-type": "synchronization-input";
|
|
105
|
-
account: `${number}`;
|
|
106
|
-
time: Date;
|
|
107
|
-
resources: string[];
|
|
108
|
-
detail: {
|
|
109
|
-
source: {
|
|
110
|
-
region: string;
|
|
111
|
-
name: string;
|
|
112
|
-
env: string;
|
|
113
|
-
version: string;
|
|
114
|
-
variant?: string | undefined;
|
|
115
|
-
};
|
|
116
|
-
items: import("@webiny/api/types").NonEmptyArray<import("../abstractions/ResolverRecord").IResolverRecordBodyItem>;
|
|
117
|
-
id: string;
|
|
118
|
-
};
|
|
119
|
-
}, {
|
|
120
|
-
region: string;
|
|
121
|
-
source: string;
|
|
122
|
-
version: string;
|
|
123
|
-
id: string;
|
|
124
|
-
"detail-type": string;
|
|
125
|
-
account: string;
|
|
126
|
-
time: string;
|
|
127
|
-
resources: string[];
|
|
128
|
-
detail: {
|
|
129
|
-
source: {
|
|
130
|
-
region: string;
|
|
131
|
-
name: string;
|
|
132
|
-
env: string;
|
|
133
|
-
version: string;
|
|
134
|
-
variant?: string | null | undefined;
|
|
135
|
-
};
|
|
136
|
-
items: {
|
|
137
|
-
PK: string;
|
|
138
|
-
SK: string;
|
|
139
|
-
tableName: string;
|
|
140
|
-
tableType: "unknown" | "regular" | "opensearch" | "log";
|
|
141
|
-
command: "put" | "delete" | "update";
|
|
142
|
-
}[];
|
|
143
|
-
id: string;
|
|
144
|
-
};
|
|
145
|
-
}>>;
|
|
45
|
+
}, zod.core.$strip>;
|
|
46
|
+
}, zod.core.$strip>>;
|
|
146
47
|
attributes: zod.ZodObject<{
|
|
147
48
|
ApproximateReceiveCount: zod.ZodString;
|
|
148
49
|
SentTimestamp: zod.ZodString;
|
|
149
50
|
SenderId: zod.ZodString;
|
|
150
51
|
ApproximateFirstReceiveTimestamp: zod.ZodString;
|
|
151
|
-
},
|
|
152
|
-
|
|
153
|
-
SentTimestamp: string;
|
|
154
|
-
SenderId: string;
|
|
155
|
-
ApproximateFirstReceiveTimestamp: string;
|
|
156
|
-
}, {
|
|
157
|
-
ApproximateReceiveCount: string;
|
|
158
|
-
SentTimestamp: string;
|
|
159
|
-
SenderId: string;
|
|
160
|
-
ApproximateFirstReceiveTimestamp: string;
|
|
161
|
-
}>;
|
|
162
|
-
messageAttributes: zod.ZodOptional<zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>>;
|
|
52
|
+
}, zod.core.$strip>;
|
|
53
|
+
messageAttributes: zod.ZodOptional<zod.ZodObject<{}, zod.core.$loose>>;
|
|
163
54
|
md5OfBody: zod.ZodString;
|
|
164
55
|
eventSource: zod.ZodString;
|
|
165
56
|
eventSourceARN: zod.ZodString;
|
|
166
57
|
awsRegion: zod.ZodString;
|
|
167
|
-
},
|
|
168
|
-
body: {
|
|
169
|
-
region: string;
|
|
170
|
-
source: `webiny:${string}`;
|
|
171
|
-
version: `${number}`;
|
|
172
|
-
id: string;
|
|
173
|
-
"detail-type": "synchronization-input";
|
|
174
|
-
account: `${number}`;
|
|
175
|
-
time: Date;
|
|
176
|
-
resources: string[];
|
|
177
|
-
detail: {
|
|
178
|
-
source: {
|
|
179
|
-
region: string;
|
|
180
|
-
name: string;
|
|
181
|
-
env: string;
|
|
182
|
-
version: string;
|
|
183
|
-
variant?: string | undefined;
|
|
184
|
-
};
|
|
185
|
-
items: import("@webiny/api/types").NonEmptyArray<import("../abstractions/ResolverRecord").IResolverRecordBodyItem>;
|
|
186
|
-
id: string;
|
|
187
|
-
};
|
|
188
|
-
};
|
|
189
|
-
messageId: string;
|
|
190
|
-
receiptHandle: string;
|
|
191
|
-
attributes: {
|
|
192
|
-
ApproximateReceiveCount: string;
|
|
193
|
-
SentTimestamp: string;
|
|
194
|
-
SenderId: string;
|
|
195
|
-
ApproximateFirstReceiveTimestamp: string;
|
|
196
|
-
};
|
|
197
|
-
md5OfBody: string;
|
|
198
|
-
eventSource: string;
|
|
199
|
-
eventSourceARN: string;
|
|
200
|
-
awsRegion: string;
|
|
201
|
-
messageAttributes?: zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough"> | undefined;
|
|
202
|
-
}, {
|
|
203
|
-
body: string;
|
|
204
|
-
messageId: string;
|
|
205
|
-
receiptHandle: string;
|
|
206
|
-
attributes: {
|
|
207
|
-
ApproximateReceiveCount: string;
|
|
208
|
-
SentTimestamp: string;
|
|
209
|
-
SenderId: string;
|
|
210
|
-
ApproximateFirstReceiveTimestamp: string;
|
|
211
|
-
};
|
|
212
|
-
md5OfBody: string;
|
|
213
|
-
eventSource: string;
|
|
214
|
-
eventSourceARN: string;
|
|
215
|
-
awsRegion: string;
|
|
216
|
-
messageAttributes?: zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | undefined;
|
|
217
|
-
}>, "many">;
|
|
58
|
+
}, zod.core.$strip>>;
|
|
@@ -13,7 +13,7 @@ export const createEventValidation = () => {
|
|
|
13
13
|
SenderId: zod.string(),
|
|
14
14
|
ApproximateFirstReceiveTimestamp: zod.string()
|
|
15
15
|
}),
|
|
16
|
-
messageAttributes: zod.
|
|
16
|
+
messageAttributes: zod.looseObject({}).optional(),
|
|
17
17
|
md5OfBody: zod.string(),
|
|
18
18
|
eventSource: zod.string(),
|
|
19
19
|
eventSourceARN: zod.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["zod","createJsonTransform","createBodyValidation","bodyTransform","createEventValidation","array","object","messageId","string","receiptHandle","body","pipe","attributes","ApproximateReceiveCount","SentTimestamp","SenderId","ApproximateFirstReceiveTimestamp","messageAttributes","
|
|
1
|
+
{"version":3,"names":["zod","createJsonTransform","createBodyValidation","bodyTransform","createEventValidation","array","object","messageId","string","receiptHandle","body","pipe","attributes","ApproximateReceiveCount","SentTimestamp","SenderId","ApproximateFirstReceiveTimestamp","messageAttributes","looseObject","optional","md5OfBody","eventSource","eventSourceARN","awsRegion"],"sources":["event.ts"],"sourcesContent":["import zod from \"zod\";\nimport { createJsonTransform } from \"~/resolver/app/validation/createJsonTransform.js\";\nimport { createBodyValidation } from \"~/resolver/app/validation/body.js\";\n\nconst bodyTransform = createJsonTransform(\"Body\");\n\nexport const createEventValidation = () => {\n return zod.array(\n zod.object({\n messageId: zod.string(),\n receiptHandle: zod.string(),\n body: bodyTransform.pipe(createBodyValidation()),\n attributes: zod.object({\n ApproximateReceiveCount: zod.string(),\n SentTimestamp: zod.string(),\n SenderId: zod.string(),\n ApproximateFirstReceiveTimestamp: zod.string()\n }),\n messageAttributes: zod.looseObject({}).optional(),\n md5OfBody: zod.string(),\n eventSource: zod.string(),\n eventSourceARN: zod.string(),\n awsRegion: zod.string()\n })\n );\n};\n"],"mappings":"AAAA,OAAOA,GAAG,MAAM,KAAK;AACrB,SAASC,mBAAmB;AAC5B,SAASC,oBAAoB;AAE7B,MAAMC,aAAa,GAAGF,mBAAmB,CAAC,MAAM,CAAC;AAEjD,OAAO,MAAMG,qBAAqB,GAAGA,CAAA,KAAM;EACvC,OAAOJ,GAAG,CAACK,KAAK,CACZL,GAAG,CAACM,MAAM,CAAC;IACPC,SAAS,EAAEP,GAAG,CAACQ,MAAM,CAAC,CAAC;IACvBC,aAAa,EAAET,GAAG,CAACQ,MAAM,CAAC,CAAC;IAC3BE,IAAI,EAAEP,aAAa,CAACQ,IAAI,CAACT,oBAAoB,CAAC,CAAC,CAAC;IAChDU,UAAU,EAAEZ,GAAG,CAACM,MAAM,CAAC;MACnBO,uBAAuB,EAAEb,GAAG,CAACQ,MAAM,CAAC,CAAC;MACrCM,aAAa,EAAEd,GAAG,CAACQ,MAAM,CAAC,CAAC;MAC3BO,QAAQ,EAAEf,GAAG,CAACQ,MAAM,CAAC,CAAC;MACtBQ,gCAAgC,EAAEhB,GAAG,CAACQ,MAAM,CAAC;IACjD,CAAC,CAAC;IACFS,iBAAiB,EAAEjB,GAAG,CAACkB,WAAW,CAAC,CAAC,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;IACjDC,SAAS,EAAEpB,GAAG,CAACQ,MAAM,CAAC,CAAC;IACvBa,WAAW,EAAErB,GAAG,CAACQ,MAAM,CAAC,CAAC;IACzBc,cAAc,EAAEtB,GAAG,CAACQ,MAAM,CAAC,CAAC;IAC5Be,SAAS,EAAEvB,GAAG,CAACQ,MAAM,CAAC;EAC1B,CAAC,CACL,CAAC;AACL,CAAC","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import zod from "zod";
|
|
2
|
-
export declare const createNumericStringValidation: (name: string) => zod.
|
|
2
|
+
export declare const createNumericStringValidation: (name: string) => zod.ZodPipe<zod.ZodString, zod.ZodTransform<`${number}`, string>>;
|
|
@@ -2,19 +2,7 @@ import zod from "zod";
|
|
|
2
2
|
export declare const createSystemValidation: () => zod.ZodObject<{
|
|
3
3
|
name: zod.ZodString;
|
|
4
4
|
env: zod.ZodString;
|
|
5
|
-
variant: zod.
|
|
5
|
+
variant: zod.ZodPipe<zod.ZodOptional<zod.ZodNullable<zod.ZodOptional<zod.ZodString>>>, zod.ZodTransform<string | undefined, string | null | undefined>>;
|
|
6
6
|
region: zod.ZodString;
|
|
7
7
|
version: zod.ZodString;
|
|
8
|
-
},
|
|
9
|
-
region: string;
|
|
10
|
-
name: string;
|
|
11
|
-
env: string;
|
|
12
|
-
version: string;
|
|
13
|
-
variant?: string | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
region: string;
|
|
16
|
-
name: string;
|
|
17
|
-
env: string;
|
|
18
|
-
version: string;
|
|
19
|
-
variant?: string | null | undefined;
|
|
20
|
-
}>;
|
|
8
|
+
}, zod.core.$strip>;
|
|
@@ -24,12 +24,6 @@ export class Deployment {
|
|
|
24
24
|
arn: this.services.opensearchDynamodbTableArn,
|
|
25
25
|
type
|
|
26
26
|
};
|
|
27
|
-
case "log":
|
|
28
|
-
return {
|
|
29
|
-
name: this.services.logDynamodbTableName,
|
|
30
|
-
arn: this.services.logDynamodbTableArn,
|
|
31
|
-
type
|
|
32
|
-
};
|
|
33
27
|
default:
|
|
34
28
|
throw new Error(`Unknown table type "${type}".`);
|
|
35
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Deployment","constructor","params","name","env","variant","region","services","version","getTable","type","primaryDynamoDbName","arn","primaryDynamoDbArn","opensearchDynamodbTableName","opensearchDynamodbTableArn","Error","
|
|
1
|
+
{"version":3,"names":["Deployment","constructor","params","name","env","variant","region","services","version","getTable","type","primaryDynamoDbName","arn","primaryDynamoDbArn","opensearchDynamodbTableName","opensearchDynamodbTableArn","Error","createDeployment"],"sources":["Deployment.ts"],"sourcesContent":["import type { SemVer } from \"semver\";\nimport type { IDeployment, IDeploymentServices } from \"./types.js\";\nimport type { DynamoDBTableType } from \"~/types.js\";\nimport type { ITable } from \"~/sync/types.js\";\n\nexport type IDeploymentParams = Omit<IDeployment, \"getTable\">;\n\nexport class Deployment implements IDeployment {\n public readonly name: string;\n public readonly env: string;\n public readonly variant: string | undefined;\n public readonly region: string;\n public readonly services: IDeploymentServices;\n public readonly version: SemVer;\n\n public constructor(params: IDeploymentParams) {\n this.name = params.name;\n this.env = params.env;\n this.variant = params.variant;\n this.region = params.region;\n this.services = params.services;\n this.version = params.version;\n }\n\n public getTable(type: DynamoDBTableType): ITable {\n switch (type) {\n case \"regular\":\n return {\n name: this.services.primaryDynamoDbName,\n arn: this.services.primaryDynamoDbArn,\n type\n };\n case \"opensearch\":\n if (\n !this.services.opensearchDynamodbTableName ||\n !this.services.opensearchDynamodbTableArn\n ) {\n throw new Error(`Unknown table type \"${type}\" - no data.`);\n }\n return {\n name: this.services.opensearchDynamodbTableName,\n arn: this.services.opensearchDynamodbTableArn,\n type\n };\n default:\n throw new Error(`Unknown table type \"${type}\".`);\n }\n }\n}\n\nexport const createDeployment = (params: IDeploymentParams): IDeployment => {\n return new Deployment(params);\n};\n"],"mappings":"AAOA,OAAO,MAAMA,UAAU,CAAwB;EAQpCC,WAAWA,CAACC,MAAyB,EAAE;IAC1C,IAAI,CAACC,IAAI,GAAGD,MAAM,CAACC,IAAI;IACvB,IAAI,CAACC,GAAG,GAAGF,MAAM,CAACE,GAAG;IACrB,IAAI,CAACC,OAAO,GAAGH,MAAM,CAACG,OAAO;IAC7B,IAAI,CAACC,MAAM,GAAGJ,MAAM,CAACI,MAAM;IAC3B,IAAI,CAACC,QAAQ,GAAGL,MAAM,CAACK,QAAQ;IAC/B,IAAI,CAACC,OAAO,GAAGN,MAAM,CAACM,OAAO;EACjC;EAEOC,QAAQA,CAACC,IAAuB,EAAU;IAC7C,QAAQA,IAAI;MACR,KAAK,SAAS;QACV,OAAO;UACHP,IAAI,EAAE,IAAI,CAACI,QAAQ,CAACI,mBAAmB;UACvCC,GAAG,EAAE,IAAI,CAACL,QAAQ,CAACM,kBAAkB;UACrCH;QACJ,CAAC;MACL,KAAK,YAAY;QACb,IACI,CAAC,IAAI,CAACH,QAAQ,CAACO,2BAA2B,IAC1C,CAAC,IAAI,CAACP,QAAQ,CAACQ,0BAA0B,EAC3C;UACE,MAAM,IAAIC,KAAK,CAAC,uBAAuBN,IAAI,cAAc,CAAC;QAC9D;QACA,OAAO;UACHP,IAAI,EAAE,IAAI,CAACI,QAAQ,CAACO,2BAA2B;UAC/CF,GAAG,EAAE,IAAI,CAACL,QAAQ,CAACQ,0BAA0B;UAC7CL;QACJ,CAAC;MACL;QACI,MAAM,IAAIM,KAAK,CAAC,uBAAuBN,IAAI,IAAI,CAAC;IACxD;EACJ;AACJ;AAEA,OAAO,MAAMO,gBAAgB,GAAIf,MAAyB,IAAkB;EACxE,OAAO,IAAIF,UAAU,CAACE,MAAM,CAAC;AACjC,CAAC","ignoreList":[]}
|
|
@@ -88,9 +88,7 @@ export class DeploymentsFetcher {
|
|
|
88
88
|
primaryDynamoDbHashKey: item.primaryDynamoDbHashKey,
|
|
89
89
|
primaryDynamoDbRangeKey: item.primaryDynamoDbRangeKey,
|
|
90
90
|
opensearchDynamodbTableArn: item.opensearchDynamodbTableArn,
|
|
91
|
-
opensearchDynamodbTableName: item.opensearchDynamodbTableName
|
|
92
|
-
logDynamodbTableName: item.primaryDynamoDbName,
|
|
93
|
-
logDynamodbTableArn: item.primaryDynamoDbArn
|
|
91
|
+
opensearchDynamodbTableName: item.opensearchDynamodbTableName
|
|
94
92
|
}
|
|
95
93
|
});
|
|
96
94
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["QueryCommand","unmarshall","WebinyError","createDeployments","zod","createZodError","createDeployment","SemVer","deploymentsValidation","array","object","name","string","env","variant","optional","region","version","s3Id","s3Arn","cognitoUserPoolId","transform","input","primaryDynamoDbArn","primaryDynamoDbName","primaryDynamoDbHashKey","primaryDynamoDbRangeKey","opensearchDynamodbTableArn","opensearchDynamodbTableName","DeploymentsFetcher","constructor","params","client","table","fetch","deployments","load","cmd","TableName","IndexName","KeyConditionExpression","ExpressionAttributeValues","S","result","send","ex","console","error","output","items","Items","map","item","length","message","code","data","safeParse","success","services","
|
|
1
|
+
{"version":3,"names":["QueryCommand","unmarshall","WebinyError","createDeployments","zod","createZodError","createDeployment","SemVer","deploymentsValidation","array","object","name","string","env","variant","optional","region","version","s3Id","s3Arn","cognitoUserPoolId","transform","input","primaryDynamoDbArn","primaryDynamoDbName","primaryDynamoDbHashKey","primaryDynamoDbRangeKey","opensearchDynamodbTableArn","opensearchDynamodbTableName","DeploymentsFetcher","constructor","params","client","table","fetch","deployments","load","cmd","TableName","IndexName","KeyConditionExpression","ExpressionAttributeValues","S","result","send","ex","console","error","output","items","Items","map","item","length","message","code","data","safeParse","success","services","createDeploymentsFetcher"],"sources":["DeploymentsFetcher.ts"],"sourcesContent":["import type { IDeployment, IDeployments, IDeploymentsFetcher } from \"./types.js\";\nimport type {\n DynamoDBDocument,\n QueryCommandOutput\n} from \"@webiny/aws-sdk/client-dynamodb/index.js\";\nimport { QueryCommand, unmarshall } from \"@webiny/aws-sdk/client-dynamodb/index.js\";\nimport { WebinyError } from \"@webiny/error\";\nimport { createDeployments } from \"./Deployments.js\";\nimport zod from \"zod\";\nimport { createZodError } from \"@webiny/utils/createZodError.js\";\nimport { createDeployment } from \"~/resolver/deployment/Deployment.js\";\nimport { SemVer } from \"semver\";\n\nconst deploymentsValidation = zod.array(\n zod.object({\n name: zod.string(),\n env: zod.string(),\n variant: zod.string().optional(),\n region: zod.string(),\n version: zod.string(),\n s3Id: zod.string(),\n s3Arn: zod.string(),\n cognitoUserPoolId: zod\n .string()\n .optional()\n .transform(input => input || \"\"),\n primaryDynamoDbArn: zod.string(),\n primaryDynamoDbName: zod.string(),\n primaryDynamoDbHashKey: zod.string(),\n primaryDynamoDbRangeKey: zod.string(),\n opensearchDynamodbTableArn: zod.string().optional(),\n opensearchDynamodbTableName: zod.string().optional()\n })\n);\n\nexport interface IDeploymentsFetcherParams {\n client: Pick<DynamoDBDocument, \"send\">;\n table: string;\n}\n\nexport class DeploymentsFetcher implements IDeploymentsFetcher {\n private readonly client: Pick<DynamoDBDocument, \"send\">;\n private deployments: IDeployments | undefined;\n private readonly table: string;\n\n public constructor(params: IDeploymentsFetcherParams) {\n this.client = params.client;\n this.table = params.table;\n }\n\n public async fetch(): Promise<IDeployments> {\n if (!this.deployments) {\n this.deployments = createDeployments({\n deployments: await this.load()\n });\n }\n return this.deployments;\n }\n\n private async load(): Promise<IDeployment[]> {\n const cmd = new QueryCommand({\n TableName: this.table,\n IndexName: \"GSI1\",\n KeyConditionExpression: `GSI1_PK = :pk`,\n ExpressionAttributeValues: {\n \":pk\": {\n S: \"DEPLOYMENTS\"\n }\n }\n });\n\n let result: QueryCommandOutput;\n try {\n result = await this.client.send(cmd);\n } catch (ex) {\n console.error(\"Error while fetching all deployments to be synced.\");\n throw ex;\n }\n return this.output(result);\n }\n\n private output(output: QueryCommandOutput): IDeployment[] {\n const items = (output.Items || []).map(item => {\n const result = unmarshall(item);\n return result.item;\n });\n if (items.length === 0) {\n throw new WebinyError({\n message: \"No deployments found which need to be synced.\",\n code: \"NO_DEPLOYMENTS\",\n data: {\n table: this.table\n }\n });\n }\n\n const result = deploymentsValidation.safeParse(items);\n if (!result.success) {\n throw createZodError(result.error);\n }\n return result.data.map(item => {\n return createDeployment({\n name: item.name,\n env: item.env,\n variant: item.variant,\n region: item.region,\n version: new SemVer(item.version),\n services: {\n s3Id: item.s3Id,\n s3Arn: item.s3Arn,\n cognitoUserPoolId: item.cognitoUserPoolId,\n primaryDynamoDbArn: item.primaryDynamoDbArn,\n primaryDynamoDbName: item.primaryDynamoDbName,\n primaryDynamoDbHashKey: item.primaryDynamoDbHashKey,\n primaryDynamoDbRangeKey: item.primaryDynamoDbRangeKey,\n opensearchDynamodbTableArn: item.opensearchDynamodbTableArn,\n opensearchDynamodbTableName: item.opensearchDynamodbTableName\n }\n });\n });\n }\n}\n\nexport const createDeploymentsFetcher = (\n params: IDeploymentsFetcherParams\n): IDeploymentsFetcher => {\n return new DeploymentsFetcher(params);\n};\n"],"mappings":"AAKA,SAASA,YAAY,EAAEC,UAAU,QAAQ,0CAA0C;AACnF,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,iBAAiB;AAC1B,OAAOC,GAAG,MAAM,KAAK;AACrB,SAASC,cAAc,QAAQ,iCAAiC;AAChE,SAASC,gBAAgB;AACzB,SAASC,MAAM,QAAQ,QAAQ;AAE/B,MAAMC,qBAAqB,GAAGJ,GAAG,CAACK,KAAK,CACnCL,GAAG,CAACM,MAAM,CAAC;EACPC,IAAI,EAAEP,GAAG,CAACQ,MAAM,CAAC,CAAC;EAClBC,GAAG,EAAET,GAAG,CAACQ,MAAM,CAAC,CAAC;EACjBE,OAAO,EAAEV,GAAG,CAACQ,MAAM,CAAC,CAAC,CAACG,QAAQ,CAAC,CAAC;EAChCC,MAAM,EAAEZ,GAAG,CAACQ,MAAM,CAAC,CAAC;EACpBK,OAAO,EAAEb,GAAG,CAACQ,MAAM,CAAC,CAAC;EACrBM,IAAI,EAAEd,GAAG,CAACQ,MAAM,CAAC,CAAC;EAClBO,KAAK,EAAEf,GAAG,CAACQ,MAAM,CAAC,CAAC;EACnBQ,iBAAiB,EAAEhB,GAAG,CACjBQ,MAAM,CAAC,CAAC,CACRG,QAAQ,CAAC,CAAC,CACVM,SAAS,CAACC,KAAK,IAAIA,KAAK,IAAI,EAAE,CAAC;EACpCC,kBAAkB,EAAEnB,GAAG,CAACQ,MAAM,CAAC,CAAC;EAChCY,mBAAmB,EAAEpB,GAAG,CAACQ,MAAM,CAAC,CAAC;EACjCa,sBAAsB,EAAErB,GAAG,CAACQ,MAAM,CAAC,CAAC;EACpCc,uBAAuB,EAAEtB,GAAG,CAACQ,MAAM,CAAC,CAAC;EACrCe,0BAA0B,EAAEvB,GAAG,CAACQ,MAAM,CAAC,CAAC,CAACG,QAAQ,CAAC,CAAC;EACnDa,2BAA2B,EAAExB,GAAG,CAACQ,MAAM,CAAC,CAAC,CAACG,QAAQ,CAAC;AACvD,CAAC,CACL,CAAC;AAOD,OAAO,MAAMc,kBAAkB,CAAgC;EAKpDC,WAAWA,CAACC,MAAiC,EAAE;IAClD,IAAI,CAACC,MAAM,GAAGD,MAAM,CAACC,MAAM;IAC3B,IAAI,CAACC,KAAK,GAAGF,MAAM,CAACE,KAAK;EAC7B;EAEA,MAAaC,KAAKA,CAAA,EAA0B;IACxC,IAAI,CAAC,IAAI,CAACC,WAAW,EAAE;MACnB,IAAI,CAACA,WAAW,GAAGhC,iBAAiB,CAAC;QACjCgC,WAAW,EAAE,MAAM,IAAI,CAACC,IAAI,CAAC;MACjC,CAAC,CAAC;IACN;IACA,OAAO,IAAI,CAACD,WAAW;EAC3B;EAEA,MAAcC,IAAIA,CAAA,EAA2B;IACzC,MAAMC,GAAG,GAAG,IAAIrC,YAAY,CAAC;MACzBsC,SAAS,EAAE,IAAI,CAACL,KAAK;MACrBM,SAAS,EAAE,MAAM;MACjBC,sBAAsB,EAAE,eAAe;MACvCC,yBAAyB,EAAE;QACvB,KAAK,EAAE;UACHC,CAAC,EAAE;QACP;MACJ;IACJ,CAAC,CAAC;IAEF,IAAIC,MAA0B;IAC9B,IAAI;MACAA,MAAM,GAAG,MAAM,IAAI,CAACX,MAAM,CAACY,IAAI,CAACP,GAAG,CAAC;IACxC,CAAC,CAAC,OAAOQ,EAAE,EAAE;MACTC,OAAO,CAACC,KAAK,CAAC,oDAAoD,CAAC;MACnE,MAAMF,EAAE;IACZ;IACA,OAAO,IAAI,CAACG,MAAM,CAACL,MAAM,CAAC;EAC9B;EAEQK,MAAMA,CAACA,MAA0B,EAAiB;IACtD,MAAMC,KAAK,GAAG,CAACD,MAAM,CAACE,KAAK,IAAI,EAAE,EAAEC,GAAG,CAACC,IAAI,IAAI;MAC3C,MAAMT,MAAM,GAAG1C,UAAU,CAACmD,IAAI,CAAC;MAC/B,OAAOT,MAAM,CAACS,IAAI;IACtB,CAAC,CAAC;IACF,IAAIH,KAAK,CAACI,MAAM,KAAK,CAAC,EAAE;MACpB,MAAM,IAAInD,WAAW,CAAC;QAClBoD,OAAO,EAAE,+CAA+C;QACxDC,IAAI,EAAE,gBAAgB;QACtBC,IAAI,EAAE;UACFvB,KAAK,EAAE,IAAI,CAACA;QAChB;MACJ,CAAC,CAAC;IACN;IAEA,MAAMU,MAAM,GAAGnC,qBAAqB,CAACiD,SAAS,CAACR,KAAK,CAAC;IACrD,IAAI,CAACN,MAAM,CAACe,OAAO,EAAE;MACjB,MAAMrD,cAAc,CAACsC,MAAM,CAACI,KAAK,CAAC;IACtC;IACA,OAAOJ,MAAM,CAACa,IAAI,CAACL,GAAG,CAACC,IAAI,IAAI;MAC3B,OAAO9C,gBAAgB,CAAC;QACpBK,IAAI,EAAEyC,IAAI,CAACzC,IAAI;QACfE,GAAG,EAAEuC,IAAI,CAACvC,GAAG;QACbC,OAAO,EAAEsC,IAAI,CAACtC,OAAO;QACrBE,MAAM,EAAEoC,IAAI,CAACpC,MAAM;QACnBC,OAAO,EAAE,IAAIV,MAAM,CAAC6C,IAAI,CAACnC,OAAO,CAAC;QACjC0C,QAAQ,EAAE;UACNzC,IAAI,EAAEkC,IAAI,CAAClC,IAAI;UACfC,KAAK,EAAEiC,IAAI,CAACjC,KAAK;UACjBC,iBAAiB,EAAEgC,IAAI,CAAChC,iBAAiB;UACzCG,kBAAkB,EAAE6B,IAAI,CAAC7B,kBAAkB;UAC3CC,mBAAmB,EAAE4B,IAAI,CAAC5B,mBAAmB;UAC7CC,sBAAsB,EAAE2B,IAAI,CAAC3B,sBAAsB;UACnDC,uBAAuB,EAAE0B,IAAI,CAAC1B,uBAAuB;UACrDC,0BAA0B,EAAEyB,IAAI,CAACzB,0BAA0B;UAC3DC,2BAA2B,EAAEwB,IAAI,CAACxB;QACtC;MACJ,CAAC,CAAC;IACN,CAAC,CAAC;EACN;AACJ;AAEA,OAAO,MAAMgC,wBAAwB,GACjC7B,MAAiC,IACX;EACtB,OAAO,IAAIF,kBAAkB,CAACE,MAAM,CAAC;AACzC,CAAC","ignoreList":[]}
|
|
@@ -10,8 +10,6 @@ export interface IDeploymentServices {
|
|
|
10
10
|
primaryDynamoDbRangeKey: string;
|
|
11
11
|
opensearchDynamodbTableArn?: string;
|
|
12
12
|
opensearchDynamodbTableName?: string;
|
|
13
|
-
logDynamodbTableArn: string;
|
|
14
|
-
logDynamodbTableName: string;
|
|
15
13
|
cognitoUserPoolId: string;
|
|
16
14
|
}
|
|
17
15
|
export interface IDeployment<S = IDeploymentServices> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type { DynamoDBTableType } from \"~/types.js\";\nimport type { SemVer } from \"semver\";\nimport type { ITable } from \"~/sync/types.js\";\n\nexport interface IDeploymentServices {\n s3Id: string;\n s3Arn: string;\n primaryDynamoDbArn: string;\n primaryDynamoDbName: string;\n primaryDynamoDbHashKey: string;\n primaryDynamoDbRangeKey: string;\n opensearchDynamodbTableArn?: string;\n opensearchDynamodbTableName?: string;\n
|
|
1
|
+
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type { DynamoDBTableType } from \"~/types.js\";\nimport type { SemVer } from \"semver\";\nimport type { ITable } from \"~/sync/types.js\";\n\nexport interface IDeploymentServices {\n s3Id: string;\n s3Arn: string;\n primaryDynamoDbArn: string;\n primaryDynamoDbName: string;\n primaryDynamoDbHashKey: string;\n primaryDynamoDbRangeKey: string;\n opensearchDynamodbTableArn?: string;\n opensearchDynamodbTableName?: string;\n cognitoUserPoolId: string;\n}\n\nexport interface IDeployment<S = IDeploymentServices> {\n name: string;\n env: string;\n variant: string | undefined;\n region: string;\n services: S;\n version: SemVer;\n getTable(type: DynamoDBTableType): ITable;\n}\n\nexport interface IDeployments {\n hasAny(): boolean;\n all(): IDeployment[];\n get(name: string): IDeployment | null;\n without(deployment: Pick<IDeployment, \"name\">): IDeployments;\n}\n\nexport interface IDeploymentsFetcher {\n fetch(): Promise<IDeployments>;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -5,8 +5,6 @@ export const getTableType = tableName => {
|
|
|
5
5
|
return DynamoDBTableType.REGULAR;
|
|
6
6
|
case process.env.DB_TABLE_OPENSEARCH:
|
|
7
7
|
return DynamoDBTableType.OPENSEARCH;
|
|
8
|
-
case process.env.DB_TABLE_LOG:
|
|
9
|
-
return DynamoDBTableType.LOG;
|
|
10
8
|
default:
|
|
11
9
|
return DynamoDBTableType.UNKNOWN;
|
|
12
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DynamoDBTableType","getTableType","tableName","process","env","DB_TABLE","REGULAR","DB_TABLE_OPENSEARCH","OPENSEARCH","
|
|
1
|
+
{"version":3,"names":["DynamoDBTableType","getTableType","tableName","process","env","DB_TABLE","REGULAR","DB_TABLE_OPENSEARCH","OPENSEARCH","UNKNOWN"],"sources":["getTableType.ts"],"sourcesContent":["import { DynamoDBTableType } from \"~/types.js\";\n\nexport const getTableType = (tableName: string): DynamoDBTableType => {\n switch (tableName) {\n case process.env.DB_TABLE:\n return DynamoDBTableType.REGULAR;\n case process.env.DB_TABLE_OPENSEARCH:\n return DynamoDBTableType.OPENSEARCH;\n default:\n return DynamoDBTableType.UNKNOWN;\n }\n};\n"],"mappings":"AAAA,SAASA,iBAAiB;AAE1B,OAAO,MAAMC,YAAY,GAAIC,SAAiB,IAAwB;EAClE,QAAQA,SAAS;IACb,KAAKC,OAAO,CAACC,GAAG,CAACC,QAAQ;MACrB,OAAOL,iBAAiB,CAACM,OAAO;IACpC,KAAKH,OAAO,CAACC,GAAG,CAACG,mBAAmB;MAChC,OAAOP,iBAAiB,CAACQ,UAAU;IACvC;MACI,OAAOR,iBAAiB,CAACS,OAAO;EACxC;AACJ,CAAC","ignoreList":[]}
|
package/sync/utils/manifest.d.ts
CHANGED
package/types.d.ts
CHANGED
package/types.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export let DynamoDBTableType = /*#__PURE__*/function (DynamoDBTableType) {
|
|
2
2
|
DynamoDBTableType["REGULAR"] = "regular";
|
|
3
3
|
DynamoDBTableType["OPENSEARCH"] = "opensearch";
|
|
4
|
-
DynamoDBTableType["LOG"] = "log";
|
|
5
4
|
DynamoDBTableType["UNKNOWN"] = "unknown";
|
|
6
5
|
return DynamoDBTableType;
|
|
7
6
|
}({});
|
package/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DynamoDBTableType"],"sources":["types.ts"],"sourcesContent":["import type { Context as BaseContext } from \"@webiny/handler-aws/types.js\";\n\nexport type CommandType = \"put\" | \"delete\";\nexport type ExtendedCommandType = \"put\" | \"delete\" | \"update\";\nexport type AllCommandType = ExtendedCommandType | \"batchWrite\" | \"null\";\n\nexport enum DynamoDBTableType {\n REGULAR = \"regular\",\n OPENSEARCH = \"opensearch\",\n
|
|
1
|
+
{"version":3,"names":["DynamoDBTableType"],"sources":["types.ts"],"sourcesContent":["import type { Context as BaseContext } from \"@webiny/handler-aws/types.js\";\n\nexport type CommandType = \"put\" | \"delete\";\nexport type ExtendedCommandType = \"put\" | \"delete\" | \"update\";\nexport type AllCommandType = ExtendedCommandType | \"batchWrite\" | \"null\";\n\nexport enum DynamoDBTableType {\n REGULAR = \"regular\",\n OPENSEARCH = \"opensearch\",\n UNKNOWN = \"unknown\"\n}\n\nexport type Context = BaseContext;\n\nexport interface IFileLambdaPayloadInfo {\n bucket: string;\n region: string;\n}\n\nexport interface ICopyFileLambdaPayload {\n action: \"copyFile\";\n key: string;\n source: IFileLambdaPayloadInfo;\n target: IFileLambdaPayloadInfo;\n}\n\nexport interface IDeleteFileLambdaPayload {\n action: \"deleteFile\";\n key: string;\n target: IFileLambdaPayloadInfo;\n}\n\nexport interface IUserLambdaPayloadInfo {\n region: string;\n userPoolId: string;\n}\n\nexport interface IDeleteUserLambdaPayload {\n action: \"deleteUser\";\n username: string;\n target: IUserLambdaPayloadInfo;\n}\n\nexport interface ICopyUserLambdaPayload {\n action: \"createUser\" | \"updateUser\";\n username: string;\n source: IUserLambdaPayloadInfo;\n target: IUserLambdaPayloadInfo;\n}\n"],"mappings":"AAMA,WAAYA,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA","ignoreList":[]}
|
|
@@ -1,47 +1,15 @@
|
|
|
1
1
|
import zod from "zod";
|
|
2
2
|
export declare const createCopyFileSchema: () => zod.ZodObject<{
|
|
3
|
-
action: zod.ZodEnum<
|
|
3
|
+
action: zod.ZodEnum<{
|
|
4
|
+
copyFile: "copyFile";
|
|
5
|
+
}>;
|
|
4
6
|
key: zod.ZodString;
|
|
5
7
|
source: zod.ZodObject<{
|
|
6
8
|
bucket: zod.ZodString;
|
|
7
9
|
region: zod.ZodString;
|
|
8
|
-
},
|
|
9
|
-
region: string;
|
|
10
|
-
bucket: string;
|
|
11
|
-
}, {
|
|
12
|
-
region: string;
|
|
13
|
-
bucket: string;
|
|
14
|
-
}>;
|
|
10
|
+
}, zod.core.$strip>;
|
|
15
11
|
target: zod.ZodObject<{
|
|
16
12
|
bucket: zod.ZodString;
|
|
17
13
|
region: zod.ZodString;
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
bucket: string;
|
|
21
|
-
}, {
|
|
22
|
-
region: string;
|
|
23
|
-
bucket: string;
|
|
24
|
-
}>;
|
|
25
|
-
}, "strip", zod.ZodTypeAny, {
|
|
26
|
-
key: string;
|
|
27
|
-
action: "copyFile";
|
|
28
|
-
source: {
|
|
29
|
-
region: string;
|
|
30
|
-
bucket: string;
|
|
31
|
-
};
|
|
32
|
-
target: {
|
|
33
|
-
region: string;
|
|
34
|
-
bucket: string;
|
|
35
|
-
};
|
|
36
|
-
}, {
|
|
37
|
-
key: string;
|
|
38
|
-
action: "copyFile";
|
|
39
|
-
source: {
|
|
40
|
-
region: string;
|
|
41
|
-
bucket: string;
|
|
42
|
-
};
|
|
43
|
-
target: {
|
|
44
|
-
region: string;
|
|
45
|
-
bucket: string;
|
|
46
|
-
};
|
|
47
|
-
}>;
|
|
14
|
+
}, zod.core.$strip>;
|
|
15
|
+
}, zod.core.$strip>;
|
|
@@ -1,47 +1,15 @@
|
|
|
1
1
|
import zod from "zod";
|
|
2
2
|
export declare const createCreateUserSchema: () => zod.ZodObject<{
|
|
3
|
-
action: zod.ZodEnum<
|
|
3
|
+
action: zod.ZodEnum<{
|
|
4
|
+
createUser: "createUser";
|
|
5
|
+
}>;
|
|
4
6
|
username: zod.ZodString;
|
|
5
7
|
source: zod.ZodObject<{
|
|
6
8
|
userPoolId: zod.ZodString;
|
|
7
9
|
region: zod.ZodString;
|
|
8
|
-
},
|
|
9
|
-
region: string;
|
|
10
|
-
userPoolId: string;
|
|
11
|
-
}, {
|
|
12
|
-
region: string;
|
|
13
|
-
userPoolId: string;
|
|
14
|
-
}>;
|
|
10
|
+
}, zod.core.$strip>;
|
|
15
11
|
target: zod.ZodObject<{
|
|
16
12
|
userPoolId: zod.ZodString;
|
|
17
13
|
region: zod.ZodString;
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
userPoolId: string;
|
|
21
|
-
}, {
|
|
22
|
-
region: string;
|
|
23
|
-
userPoolId: string;
|
|
24
|
-
}>;
|
|
25
|
-
}, "strip", zod.ZodTypeAny, {
|
|
26
|
-
action: "createUser";
|
|
27
|
-
source: {
|
|
28
|
-
region: string;
|
|
29
|
-
userPoolId: string;
|
|
30
|
-
};
|
|
31
|
-
target: {
|
|
32
|
-
region: string;
|
|
33
|
-
userPoolId: string;
|
|
34
|
-
};
|
|
35
|
-
username: string;
|
|
36
|
-
}, {
|
|
37
|
-
action: "createUser";
|
|
38
|
-
source: {
|
|
39
|
-
region: string;
|
|
40
|
-
userPoolId: string;
|
|
41
|
-
};
|
|
42
|
-
target: {
|
|
43
|
-
region: string;
|
|
44
|
-
userPoolId: string;
|
|
45
|
-
};
|
|
46
|
-
username: string;
|
|
47
|
-
}>;
|
|
14
|
+
}, zod.core.$strip>;
|
|
15
|
+
}, zod.core.$strip>;
|
|
@@ -1,47 +1,15 @@
|
|
|
1
1
|
import zod from "zod";
|
|
2
2
|
export declare const createDeleteFileSchema: () => zod.ZodObject<{
|
|
3
|
-
action: zod.ZodEnum<
|
|
3
|
+
action: zod.ZodEnum<{
|
|
4
|
+
deleteFile: "deleteFile";
|
|
5
|
+
}>;
|
|
4
6
|
key: zod.ZodString;
|
|
5
7
|
source: zod.ZodObject<{
|
|
6
8
|
bucket: zod.ZodString;
|
|
7
9
|
region: zod.ZodString;
|
|
8
|
-
},
|
|
9
|
-
region: string;
|
|
10
|
-
bucket: string;
|
|
11
|
-
}, {
|
|
12
|
-
region: string;
|
|
13
|
-
bucket: string;
|
|
14
|
-
}>;
|
|
10
|
+
}, zod.core.$strip>;
|
|
15
11
|
target: zod.ZodObject<{
|
|
16
12
|
bucket: zod.ZodString;
|
|
17
13
|
region: zod.ZodString;
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
bucket: string;
|
|
21
|
-
}, {
|
|
22
|
-
region: string;
|
|
23
|
-
bucket: string;
|
|
24
|
-
}>;
|
|
25
|
-
}, "strip", zod.ZodTypeAny, {
|
|
26
|
-
key: string;
|
|
27
|
-
action: "deleteFile";
|
|
28
|
-
source: {
|
|
29
|
-
region: string;
|
|
30
|
-
bucket: string;
|
|
31
|
-
};
|
|
32
|
-
target: {
|
|
33
|
-
region: string;
|
|
34
|
-
bucket: string;
|
|
35
|
-
};
|
|
36
|
-
}, {
|
|
37
|
-
key: string;
|
|
38
|
-
action: "deleteFile";
|
|
39
|
-
source: {
|
|
40
|
-
region: string;
|
|
41
|
-
bucket: string;
|
|
42
|
-
};
|
|
43
|
-
target: {
|
|
44
|
-
region: string;
|
|
45
|
-
bucket: string;
|
|
46
|
-
};
|
|
47
|
-
}>;
|
|
14
|
+
}, zod.core.$strip>;
|
|
15
|
+
}, zod.core.$strip>;
|
|
@@ -1,29 +1,11 @@
|
|
|
1
1
|
import zod from "zod";
|
|
2
2
|
export declare const createDeleteUserSchema: () => zod.ZodObject<{
|
|
3
|
-
action: zod.ZodEnum<
|
|
3
|
+
action: zod.ZodEnum<{
|
|
4
|
+
deleteUser: "deleteUser";
|
|
5
|
+
}>;
|
|
4
6
|
username: zod.ZodString;
|
|
5
7
|
target: zod.ZodObject<{
|
|
6
8
|
userPoolId: zod.ZodString;
|
|
7
9
|
region: zod.ZodString;
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
userPoolId: string;
|
|
11
|
-
}, {
|
|
12
|
-
region: string;
|
|
13
|
-
userPoolId: string;
|
|
14
|
-
}>;
|
|
15
|
-
}, "strip", zod.ZodTypeAny, {
|
|
16
|
-
action: "deleteUser";
|
|
17
|
-
target: {
|
|
18
|
-
region: string;
|
|
19
|
-
userPoolId: string;
|
|
20
|
-
};
|
|
21
|
-
username: string;
|
|
22
|
-
}, {
|
|
23
|
-
action: "deleteUser";
|
|
24
|
-
target: {
|
|
25
|
-
region: string;
|
|
26
|
-
userPoolId: string;
|
|
27
|
-
};
|
|
28
|
-
username: string;
|
|
29
|
-
}>;
|
|
10
|
+
}, zod.core.$strip>;
|
|
11
|
+
}, zod.core.$strip>;
|
|
@@ -1,47 +1,15 @@
|
|
|
1
1
|
import zod from "zod";
|
|
2
2
|
export declare const createUpdateUserSchema: () => zod.ZodObject<{
|
|
3
|
-
action: zod.ZodEnum<
|
|
3
|
+
action: zod.ZodEnum<{
|
|
4
|
+
updateUser: "updateUser";
|
|
5
|
+
}>;
|
|
4
6
|
username: zod.ZodString;
|
|
5
7
|
source: zod.ZodObject<{
|
|
6
8
|
userPoolId: zod.ZodString;
|
|
7
9
|
region: zod.ZodString;
|
|
8
|
-
},
|
|
9
|
-
region: string;
|
|
10
|
-
userPoolId: string;
|
|
11
|
-
}, {
|
|
12
|
-
region: string;
|
|
13
|
-
userPoolId: string;
|
|
14
|
-
}>;
|
|
10
|
+
}, zod.core.$strip>;
|
|
15
11
|
target: zod.ZodObject<{
|
|
16
12
|
userPoolId: zod.ZodString;
|
|
17
13
|
region: zod.ZodString;
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
userPoolId: string;
|
|
21
|
-
}, {
|
|
22
|
-
region: string;
|
|
23
|
-
userPoolId: string;
|
|
24
|
-
}>;
|
|
25
|
-
}, "strip", zod.ZodTypeAny, {
|
|
26
|
-
action: "updateUser";
|
|
27
|
-
source: {
|
|
28
|
-
region: string;
|
|
29
|
-
userPoolId: string;
|
|
30
|
-
};
|
|
31
|
-
target: {
|
|
32
|
-
region: string;
|
|
33
|
-
userPoolId: string;
|
|
34
|
-
};
|
|
35
|
-
username: string;
|
|
36
|
-
}, {
|
|
37
|
-
action: "updateUser";
|
|
38
|
-
source: {
|
|
39
|
-
region: string;
|
|
40
|
-
userPoolId: string;
|
|
41
|
-
};
|
|
42
|
-
target: {
|
|
43
|
-
region: string;
|
|
44
|
-
userPoolId: string;
|
|
45
|
-
};
|
|
46
|
-
username: string;
|
|
47
|
-
}>;
|
|
14
|
+
}, zod.core.$strip>;
|
|
15
|
+
}, zod.core.$strip>;
|