@skillstew/common 1.0.34 → 1.0.35
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.
|
@@ -4,20 +4,20 @@ export declare const EventSchemas: {
|
|
|
4
4
|
connectionId: z.ZodString;
|
|
5
5
|
requesterId: z.ZodString;
|
|
6
6
|
recipientId: z.ZodString;
|
|
7
|
-
requesterUsername: z.ZodString
|
|
8
|
-
recipientUsername: z.ZodString
|
|
7
|
+
requesterUsername: z.ZodOptional<z.ZodString>;
|
|
8
|
+
recipientUsername: z.ZodOptional<z.ZodString>;
|
|
9
9
|
timestamp: z.ZodCoercedDate<unknown>;
|
|
10
10
|
}, z.core.$strict>;
|
|
11
11
|
readonly "connection.accepted": z.ZodObject<{
|
|
12
12
|
connectionId: z.ZodString;
|
|
13
13
|
accepterId: z.ZodString;
|
|
14
|
-
accepterUsername: z.ZodString
|
|
14
|
+
accepterUsername: z.ZodOptional<z.ZodString>;
|
|
15
15
|
timestamp: z.ZodCoercedDate<unknown>;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
readonly "connection.rejected": z.ZodObject<{
|
|
18
18
|
connectionId: z.ZodString;
|
|
19
19
|
rejecterId: z.ZodString;
|
|
20
|
-
rejecterUsername: z.ZodString
|
|
20
|
+
rejecterUsername: z.ZodOptional<z.ZodString>;
|
|
21
21
|
timestamp: z.ZodCoercedDate<unknown>;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
readonly "skill.created": z.ZodObject<{
|
|
@@ -3,20 +3,20 @@ export declare const connectionRequestedSchema: z.ZodObject<{
|
|
|
3
3
|
connectionId: z.ZodString;
|
|
4
4
|
requesterId: z.ZodString;
|
|
5
5
|
recipientId: z.ZodString;
|
|
6
|
-
requesterUsername: z.ZodString
|
|
7
|
-
recipientUsername: z.ZodString
|
|
6
|
+
requesterUsername: z.ZodOptional<z.ZodString>;
|
|
7
|
+
recipientUsername: z.ZodOptional<z.ZodString>;
|
|
8
8
|
timestamp: z.ZodCoercedDate<unknown>;
|
|
9
9
|
}, z.core.$strict>;
|
|
10
10
|
export declare const connectionAcceptedSchema: z.ZodObject<{
|
|
11
11
|
connectionId: z.ZodString;
|
|
12
12
|
accepterId: z.ZodString;
|
|
13
|
-
accepterUsername: z.ZodString
|
|
13
|
+
accepterUsername: z.ZodOptional<z.ZodString>;
|
|
14
14
|
timestamp: z.ZodCoercedDate<unknown>;
|
|
15
15
|
}, z.core.$strip>;
|
|
16
16
|
export declare const connectionRejectedSchema: z.ZodObject<{
|
|
17
17
|
connectionId: z.ZodString;
|
|
18
18
|
rejecterId: z.ZodString;
|
|
19
|
-
rejecterUsername: z.ZodString
|
|
19
|
+
rejecterUsername: z.ZodOptional<z.ZodString>;
|
|
20
20
|
timestamp: z.ZodCoercedDate<unknown>;
|
|
21
21
|
}, z.core.$strip>;
|
|
22
22
|
export declare const ConnectionEventSchemas: {
|
|
@@ -24,20 +24,20 @@ export declare const ConnectionEventSchemas: {
|
|
|
24
24
|
connectionId: z.ZodString;
|
|
25
25
|
requesterId: z.ZodString;
|
|
26
26
|
recipientId: z.ZodString;
|
|
27
|
-
requesterUsername: z.ZodString
|
|
28
|
-
recipientUsername: z.ZodString
|
|
27
|
+
requesterUsername: z.ZodOptional<z.ZodString>;
|
|
28
|
+
recipientUsername: z.ZodOptional<z.ZodString>;
|
|
29
29
|
timestamp: z.ZodCoercedDate<unknown>;
|
|
30
30
|
}, z.core.$strict>;
|
|
31
31
|
readonly "connection.accepted": z.ZodObject<{
|
|
32
32
|
connectionId: z.ZodString;
|
|
33
33
|
accepterId: z.ZodString;
|
|
34
|
-
accepterUsername: z.ZodString
|
|
34
|
+
accepterUsername: z.ZodOptional<z.ZodString>;
|
|
35
35
|
timestamp: z.ZodCoercedDate<unknown>;
|
|
36
36
|
}, z.core.$strip>;
|
|
37
37
|
readonly "connection.rejected": z.ZodObject<{
|
|
38
38
|
connectionId: z.ZodString;
|
|
39
39
|
rejecterId: z.ZodString;
|
|
40
|
-
rejecterUsername: z.ZodString
|
|
40
|
+
rejecterUsername: z.ZodOptional<z.ZodString>;
|
|
41
41
|
timestamp: z.ZodCoercedDate<unknown>;
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
};
|
|
@@ -10,21 +10,21 @@ exports.connectionRequestedSchema = zod_1.default
|
|
|
10
10
|
connectionId: zod_1.default.string(),
|
|
11
11
|
requesterId: zod_1.default.string(),
|
|
12
12
|
recipientId: zod_1.default.string(),
|
|
13
|
-
requesterUsername: zod_1.default.string(),
|
|
14
|
-
recipientUsername: zod_1.default.string(),
|
|
13
|
+
requesterUsername: zod_1.default.string().optional(),
|
|
14
|
+
recipientUsername: zod_1.default.string().optional(),
|
|
15
15
|
timestamp: zod_1.default.coerce.date(),
|
|
16
16
|
})
|
|
17
17
|
.strict();
|
|
18
18
|
exports.connectionAcceptedSchema = zod_1.default.object({
|
|
19
19
|
connectionId: zod_1.default.string(),
|
|
20
20
|
accepterId: zod_1.default.string(),
|
|
21
|
-
accepterUsername: zod_1.default.string(),
|
|
21
|
+
accepterUsername: zod_1.default.string().optional(),
|
|
22
22
|
timestamp: zod_1.default.coerce.date(),
|
|
23
23
|
});
|
|
24
24
|
exports.connectionRejectedSchema = zod_1.default.object({
|
|
25
25
|
connectionId: zod_1.default.string(),
|
|
26
26
|
rejecterId: zod_1.default.string(),
|
|
27
|
-
rejecterUsername: zod_1.default.string(),
|
|
27
|
+
rejecterUsername: zod_1.default.string().optional(),
|
|
28
28
|
timestamp: zod_1.default.coerce.date(),
|
|
29
29
|
});
|
|
30
30
|
exports.ConnectionEventSchemas = {
|
package/package.json
CHANGED
|
@@ -5,8 +5,8 @@ export const connectionRequestedSchema = z
|
|
|
5
5
|
connectionId: z.string(),
|
|
6
6
|
requesterId: z.string(),
|
|
7
7
|
recipientId: z.string(),
|
|
8
|
-
requesterUsername: z.string(),
|
|
9
|
-
recipientUsername: z.string(),
|
|
8
|
+
requesterUsername: z.string().optional(),
|
|
9
|
+
recipientUsername: z.string().optional(),
|
|
10
10
|
timestamp: z.coerce.date(),
|
|
11
11
|
})
|
|
12
12
|
.strict();
|
|
@@ -14,14 +14,14 @@ export const connectionRequestedSchema = z
|
|
|
14
14
|
export const connectionAcceptedSchema = z.object({
|
|
15
15
|
connectionId: z.string(),
|
|
16
16
|
accepterId: z.string(),
|
|
17
|
-
accepterUsername: z.string(),
|
|
17
|
+
accepterUsername: z.string().optional(),
|
|
18
18
|
timestamp: z.coerce.date(),
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
export const connectionRejectedSchema = z.object({
|
|
22
22
|
connectionId: z.string(),
|
|
23
23
|
rejecterId: z.string(),
|
|
24
|
-
rejecterUsername: z.string(),
|
|
24
|
+
rejecterUsername: z.string().optional(),
|
|
25
25
|
timestamp: z.coerce.date(),
|
|
26
26
|
});
|
|
27
27
|
|