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