@skillstew/common 1.0.47 → 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.
@@ -111,18 +111,9 @@ export declare const EventSchemas: {
111
111
  description: z.ZodNullable<z.ZodString>;
112
112
  targetAudience: z.ZodNullable<z.ZodString>;
113
113
  bannerImageKey: z.ZodNullable<z.ZodString>;
114
- maxCohortSize: z.ZodNumber;
115
- timezone: z.ZodString;
116
114
  publishedAt: z.ZodISODateTime;
117
- sessions: z.ZodArray<z.ZodObject<{
118
- id: z.ZodUUID;
119
- weekNumber: z.ZodNumber;
120
- dayOfWeek: z.ZodNumber;
121
- sessionOrder: z.ZodNumber;
122
- title: z.ZodNullable<z.ZodString>;
123
- description: z.ZodNullable<z.ZodString>;
124
- startTime: z.ZodString;
125
- }, z.core.$strip>>;
115
+ sessionTitles: z.ZodArray<z.ZodString>;
116
+ sessionDescriptions: z.ZodArray<z.ZodString>;
126
117
  }, z.core.$strict>;
127
118
  readonly "user.registered": z.ZodObject<{
128
119
  id: z.ZodUUID;
@@ -34,18 +34,9 @@ export declare const workshopPublishedSchema: z.ZodObject<{
34
34
  description: z.ZodNullable<z.ZodString>;
35
35
  targetAudience: z.ZodNullable<z.ZodString>;
36
36
  bannerImageKey: z.ZodNullable<z.ZodString>;
37
- maxCohortSize: z.ZodNumber;
38
- timezone: z.ZodString;
39
37
  publishedAt: z.ZodISODateTime;
40
- sessions: z.ZodArray<z.ZodObject<{
41
- id: z.ZodUUID;
42
- weekNumber: z.ZodNumber;
43
- dayOfWeek: z.ZodNumber;
44
- sessionOrder: z.ZodNumber;
45
- title: z.ZodNullable<z.ZodString>;
46
- description: z.ZodNullable<z.ZodString>;
47
- startTime: z.ZodString;
48
- }, z.core.$strip>>;
38
+ sessionTitles: z.ZodArray<z.ZodString>;
39
+ sessionDescriptions: z.ZodArray<z.ZodString>;
49
40
  }, z.core.$strict>;
50
41
  export declare const SkillsEventSchemas: {
51
42
  readonly "skill.created": z.ZodObject<{
@@ -83,17 +74,8 @@ export declare const SkillsEventSchemas: {
83
74
  description: z.ZodNullable<z.ZodString>;
84
75
  targetAudience: z.ZodNullable<z.ZodString>;
85
76
  bannerImageKey: z.ZodNullable<z.ZodString>;
86
- maxCohortSize: z.ZodNumber;
87
- timezone: z.ZodString;
88
77
  publishedAt: z.ZodISODateTime;
89
- sessions: z.ZodArray<z.ZodObject<{
90
- id: z.ZodUUID;
91
- weekNumber: z.ZodNumber;
92
- dayOfWeek: z.ZodNumber;
93
- sessionOrder: z.ZodNumber;
94
- title: z.ZodNullable<z.ZodString>;
95
- description: z.ZodNullable<z.ZodString>;
96
- startTime: z.ZodString;
97
- }, z.core.$strip>>;
78
+ sessionTitles: z.ZodArray<z.ZodString>;
79
+ sessionDescriptions: z.ZodArray<z.ZodString>;
98
80
  }, z.core.$strict>;
99
81
  };
@@ -29,18 +29,9 @@ exports.workshopPublishedSchema = zod_1.default
29
29
  description: zod_1.default.string().nullable(),
30
30
  targetAudience: zod_1.default.string().nullable(),
31
31
  bannerImageKey: zod_1.default.string().nullable(),
32
- maxCohortSize: zod_1.default.number(),
33
- timezone: zod_1.default.string(),
34
32
  publishedAt: zod_1.default.iso.datetime(),
35
- sessions: zod_1.default.array(zod_1.default.object({
36
- id: zod_1.default.uuid(),
37
- weekNumber: zod_1.default.number().int(),
38
- dayOfWeek: zod_1.default.number().int(),
39
- sessionOrder: zod_1.default.number().int(),
40
- title: zod_1.default.string().nullable(),
41
- description: zod_1.default.string().nullable(),
42
- startTime: zod_1.default.string(),
43
- })),
33
+ sessionTitles: zod_1.default.array(zod_1.default.string()),
34
+ sessionDescriptions: zod_1.default.array(zod_1.default.string()),
44
35
  })
45
36
  .strict();
46
37
  exports.SkillsEventSchemas = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skillstew/common",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "scripts": {
@@ -28,20 +28,9 @@ export const workshopPublishedSchema = z
28
28
  description: z.string().nullable(),
29
29
  targetAudience: z.string().nullable(),
30
30
  bannerImageKey: z.string().nullable(),
31
- maxCohortSize: z.number(),
32
- timezone: z.string(),
33
31
  publishedAt: z.iso.datetime(),
34
- sessions: z.array(
35
- z.object({
36
- id: z.uuid(),
37
- weekNumber: z.number().int(),
38
- dayOfWeek: z.number().int(),
39
- sessionOrder: z.number().int(),
40
- title: z.string().nullable(),
41
- description: z.string().nullable(),
42
- startTime: z.string(),
43
- }),
44
- ),
32
+ sessionTitles: z.array(z.string()),
33
+ sessionDescriptions: z.array(z.string()),
45
34
  })
46
35
  .strict();
47
36