@skillstew/common 1.0.24 → 1.0.26
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.
|
@@ -31,13 +31,14 @@ export declare const EventSchemas: {
|
|
|
31
31
|
}, z.core.$strip>;
|
|
32
32
|
readonly "user.profileUpdated": z.ZodObject<{
|
|
33
33
|
id: z.ZodUUID;
|
|
34
|
-
name: z.ZodString
|
|
35
|
-
username: z.ZodString
|
|
36
|
-
location: z.ZodObject<{
|
|
34
|
+
name: z.ZodOptional<z.ZodString>;
|
|
35
|
+
username: z.ZodOptional<z.ZodString>;
|
|
36
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
37
37
|
latitude: z.ZodNumber;
|
|
38
38
|
longitude: z.ZodNumber;
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
formattedAddress: z.ZodString;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
42
|
}, z.core.$strip>;
|
|
42
43
|
};
|
|
43
44
|
export type EventName = keyof typeof EventSchemas;
|
|
@@ -8,13 +8,14 @@ export declare const userVerifiedSchema: z.ZodObject<{
|
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
export declare const userProfileUpdatedSchema: z.ZodObject<{
|
|
10
10
|
id: z.ZodUUID;
|
|
11
|
-
name: z.ZodString
|
|
12
|
-
username: z.ZodString
|
|
13
|
-
location: z.ZodObject<{
|
|
11
|
+
name: z.ZodOptional<z.ZodString>;
|
|
12
|
+
username: z.ZodOptional<z.ZodString>;
|
|
13
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
14
14
|
latitude: z.ZodNumber;
|
|
15
15
|
longitude: z.ZodNumber;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
formattedAddress: z.ZodString;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
19
|
}, z.core.$strip>;
|
|
19
20
|
export declare const UserEventSchemas: {
|
|
20
21
|
readonly "user.registered": z.ZodObject<{
|
|
@@ -26,12 +27,13 @@ export declare const UserEventSchemas: {
|
|
|
26
27
|
}, z.core.$strip>;
|
|
27
28
|
readonly "user.profileUpdated": z.ZodObject<{
|
|
28
29
|
id: z.ZodUUID;
|
|
29
|
-
name: z.ZodString
|
|
30
|
-
username: z.ZodString
|
|
31
|
-
location: z.ZodObject<{
|
|
30
|
+
name: z.ZodOptional<z.ZodString>;
|
|
31
|
+
username: z.ZodOptional<z.ZodString>;
|
|
32
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
32
33
|
latitude: z.ZodNumber;
|
|
33
34
|
longitude: z.ZodNumber;
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
formattedAddress: z.ZodString;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
36
38
|
}, z.core.$strip>;
|
|
37
39
|
};
|
|
@@ -14,10 +14,16 @@ exports.userVerifiedSchema = zod_1.default.object({
|
|
|
14
14
|
});
|
|
15
15
|
exports.userProfileUpdatedSchema = zod_1.default.object({
|
|
16
16
|
id: zod_1.default.uuid(),
|
|
17
|
-
name: zod_1.default.string(),
|
|
18
|
-
username: zod_1.default.string(),
|
|
19
|
-
location: zod_1.default
|
|
20
|
-
|
|
17
|
+
name: zod_1.default.string().optional(),
|
|
18
|
+
username: zod_1.default.string().optional(),
|
|
19
|
+
location: zod_1.default
|
|
20
|
+
.object({
|
|
21
|
+
latitude: zod_1.default.number(),
|
|
22
|
+
longitude: zod_1.default.number(),
|
|
23
|
+
formattedAddress: zod_1.default.string(),
|
|
24
|
+
})
|
|
25
|
+
.optional(),
|
|
26
|
+
languages: zod_1.default.array(zod_1.default.string()).optional(),
|
|
21
27
|
});
|
|
22
28
|
exports.UserEventSchemas = {
|
|
23
29
|
"user.registered": exports.userRegisteredSchema,
|
package/package.json
CHANGED
package/publish.sh
CHANGED
|
@@ -11,10 +11,16 @@ export const userVerifiedSchema = z.object({
|
|
|
11
11
|
|
|
12
12
|
export const userProfileUpdatedSchema = z.object({
|
|
13
13
|
id: z.uuid(),
|
|
14
|
-
name: z.string(),
|
|
15
|
-
username: z.string(),
|
|
16
|
-
location: z
|
|
17
|
-
|
|
14
|
+
name: z.string().optional(),
|
|
15
|
+
username: z.string().optional(),
|
|
16
|
+
location: z
|
|
17
|
+
.object({
|
|
18
|
+
latitude: z.number(),
|
|
19
|
+
longitude: z.number(),
|
|
20
|
+
formattedAddress: z.string(),
|
|
21
|
+
})
|
|
22
|
+
.optional(),
|
|
23
|
+
languages: z.array(z.string()).optional(),
|
|
18
24
|
});
|
|
19
25
|
|
|
20
26
|
export const UserEventSchemas = {
|