create event from gabinete

This commit is contained in:
Peter Maquiran
2024-07-04 16:33:45 +01:00
parent 0e12b5de5e
commit 06417ead0f
22 changed files with 881 additions and 311 deletions
+7 -2
View File
@@ -1,7 +1,7 @@
import { z } from 'zod';
// Define the schema for a single event
const eventListSchema = z.array(z.object({
const eventListItemSchema = z.object({
HasAttachments: z.boolean(),
IsAllDayEvent: z.boolean(),
EventId: z.any(),
@@ -18,6 +18,11 @@ const eventListSchema = z.array(z.object({
TimeZone: z.string(),
IsPrivate: z.boolean(),
createdAt: z.string()
}));
});
// Define the schema for a single event
const eventListSchema = z.array(eventListItemSchema);
export type EventListItem = z.infer<typeof eventListItemSchema>
export type EventList = z.infer<typeof eventListSchema>