@mac777/project-pinecone-schema 1.1.2 → 1.1.3
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.
package/package.json
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
|
+
export const sessionSchema = z.object({
|
|
4
|
+
date: z.string().datetime(),
|
|
5
|
+
startTime: z.string().datetime(),
|
|
6
|
+
endTime: z.string().datetime(),
|
|
7
|
+
doorsOpen: z.string().datetime().optional()
|
|
8
|
+
});
|
|
9
|
+
|
|
3
10
|
export const scheduleSchema = z.object({
|
|
4
11
|
startDate: z.string({ required_error: 'Event start date is required' }).datetime('Start date must be a valid ISO datetime string'),
|
|
5
12
|
endDate: z.string({ required_error: 'Event end date is required' }).datetime('End date must be a valid ISO datetime string'),
|
|
6
13
|
timezone: z.string().optional(),
|
|
7
14
|
isMultiDay: z.boolean().optional(),
|
|
8
15
|
doors: z.string().optional(),
|
|
16
|
+
type: z.enum(['single', 'multiple']).default('single').optional(),
|
|
17
|
+
sessions: z.array(sessionSchema).optional()
|
|
9
18
|
});
|
|
10
19
|
|