@skillstew/common 1.0.46 → 1.0.48
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.
|
@@ -104,6 +104,17 @@ export declare const EventSchemas: {
|
|
|
104
104
|
readonly "skill.deleted": z.ZodObject<{
|
|
105
105
|
id: z.ZodUUID;
|
|
106
106
|
}, z.core.$strip>;
|
|
107
|
+
readonly "workshop.published": z.ZodObject<{
|
|
108
|
+
id: z.ZodUUID;
|
|
109
|
+
expertId: z.ZodString;
|
|
110
|
+
title: z.ZodString;
|
|
111
|
+
description: z.ZodNullable<z.ZodString>;
|
|
112
|
+
targetAudience: z.ZodNullable<z.ZodString>;
|
|
113
|
+
bannerImageKey: z.ZodNullable<z.ZodString>;
|
|
114
|
+
publishedAt: z.ZodISODateTime;
|
|
115
|
+
sessionTitles: z.ZodArray<z.ZodString>;
|
|
116
|
+
sessionDescriptions: z.ZodArray<z.ZodString>;
|
|
117
|
+
}, z.core.$strict>;
|
|
107
118
|
readonly "user.registered": z.ZodObject<{
|
|
108
119
|
id: z.ZodUUID;
|
|
109
120
|
email: z.ZodEmail;
|
|
@@ -27,6 +27,17 @@ export declare const skillProfileUpdatedSchema: z.ZodObject<{
|
|
|
27
27
|
name: z.ZodString;
|
|
28
28
|
}, z.core.$strip>>;
|
|
29
29
|
}, z.core.$strict>;
|
|
30
|
+
export declare const workshopPublishedSchema: z.ZodObject<{
|
|
31
|
+
id: z.ZodUUID;
|
|
32
|
+
expertId: z.ZodString;
|
|
33
|
+
title: z.ZodString;
|
|
34
|
+
description: z.ZodNullable<z.ZodString>;
|
|
35
|
+
targetAudience: z.ZodNullable<z.ZodString>;
|
|
36
|
+
bannerImageKey: z.ZodNullable<z.ZodString>;
|
|
37
|
+
publishedAt: z.ZodISODateTime;
|
|
38
|
+
sessionTitles: z.ZodArray<z.ZodString>;
|
|
39
|
+
sessionDescriptions: z.ZodArray<z.ZodString>;
|
|
40
|
+
}, z.core.$strict>;
|
|
30
41
|
export declare const SkillsEventSchemas: {
|
|
31
42
|
readonly "skill.created": z.ZodObject<{
|
|
32
43
|
id: z.ZodUUID;
|
|
@@ -56,4 +67,15 @@ export declare const SkillsEventSchemas: {
|
|
|
56
67
|
readonly "skill.deleted": z.ZodObject<{
|
|
57
68
|
id: z.ZodUUID;
|
|
58
69
|
}, z.core.$strip>;
|
|
70
|
+
readonly "workshop.published": z.ZodObject<{
|
|
71
|
+
id: z.ZodUUID;
|
|
72
|
+
expertId: z.ZodString;
|
|
73
|
+
title: z.ZodString;
|
|
74
|
+
description: z.ZodNullable<z.ZodString>;
|
|
75
|
+
targetAudience: z.ZodNullable<z.ZodString>;
|
|
76
|
+
bannerImageKey: z.ZodNullable<z.ZodString>;
|
|
77
|
+
publishedAt: z.ZodISODateTime;
|
|
78
|
+
sessionTitles: z.ZodArray<z.ZodString>;
|
|
79
|
+
sessionDescriptions: z.ZodArray<z.ZodString>;
|
|
80
|
+
}, z.core.$strict>;
|
|
59
81
|
};
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SkillsEventSchemas = exports.skillProfileUpdatedSchema = exports.skillDeletedSchema = exports.skillUpdatedSchema = exports.skillCreatedSchema = void 0;
|
|
6
|
+
exports.SkillsEventSchemas = exports.workshopPublishedSchema = exports.skillProfileUpdatedSchema = exports.skillDeletedSchema = exports.skillUpdatedSchema = exports.skillCreatedSchema = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
8
|
exports.skillCreatedSchema = zod_1.default.object({
|
|
9
9
|
id: zod_1.default.uuid(),
|
|
@@ -21,9 +21,23 @@ exports.skillProfileUpdatedSchema = zod_1.default
|
|
|
21
21
|
wanted: zod_1.default.array(zod_1.default.object({ id: zod_1.default.string(), name: zod_1.default.string() })),
|
|
22
22
|
})
|
|
23
23
|
.strict();
|
|
24
|
+
exports.workshopPublishedSchema = zod_1.default
|
|
25
|
+
.object({
|
|
26
|
+
id: zod_1.default.uuid(),
|
|
27
|
+
expertId: zod_1.default.string(),
|
|
28
|
+
title: zod_1.default.string(),
|
|
29
|
+
description: zod_1.default.string().nullable(),
|
|
30
|
+
targetAudience: zod_1.default.string().nullable(),
|
|
31
|
+
bannerImageKey: zod_1.default.string().nullable(),
|
|
32
|
+
publishedAt: zod_1.default.iso.datetime(),
|
|
33
|
+
sessionTitles: zod_1.default.array(zod_1.default.string()),
|
|
34
|
+
sessionDescriptions: zod_1.default.array(zod_1.default.string()),
|
|
35
|
+
})
|
|
36
|
+
.strict();
|
|
24
37
|
exports.SkillsEventSchemas = {
|
|
25
38
|
"skill.created": exports.skillCreatedSchema,
|
|
26
39
|
"skill.profileUpdated": exports.skillProfileUpdatedSchema,
|
|
27
40
|
"skill.updated": exports.skillUpdatedSchema,
|
|
28
41
|
"skill.deleted": exports.skillDeletedSchema,
|
|
42
|
+
"workshop.published": exports.workshopPublishedSchema,
|
|
29
43
|
};
|
package/package.json
CHANGED
|
@@ -20,9 +20,24 @@ export const skillProfileUpdatedSchema = z
|
|
|
20
20
|
})
|
|
21
21
|
.strict();
|
|
22
22
|
|
|
23
|
+
export const workshopPublishedSchema = z
|
|
24
|
+
.object({
|
|
25
|
+
id: z.uuid(),
|
|
26
|
+
expertId: z.string(),
|
|
27
|
+
title: z.string(),
|
|
28
|
+
description: z.string().nullable(),
|
|
29
|
+
targetAudience: z.string().nullable(),
|
|
30
|
+
bannerImageKey: z.string().nullable(),
|
|
31
|
+
publishedAt: z.iso.datetime(),
|
|
32
|
+
sessionTitles: z.array(z.string()),
|
|
33
|
+
sessionDescriptions: z.array(z.string()),
|
|
34
|
+
})
|
|
35
|
+
.strict();
|
|
36
|
+
|
|
23
37
|
export const SkillsEventSchemas = {
|
|
24
38
|
"skill.created": skillCreatedSchema,
|
|
25
39
|
"skill.profileUpdated": skillProfileUpdatedSchema,
|
|
26
40
|
"skill.updated": skillUpdatedSchema,
|
|
27
41
|
"skill.deleted": skillDeletedSchema,
|
|
42
|
+
"workshop.published": workshopPublishedSchema,
|
|
28
43
|
} as const;
|