mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-26 00:46:23 +02:00
cal block initial commit
This commit is contained in:
parent
484231b224
commit
c03882f43f
9 changed files with 932 additions and 41 deletions
|
|
@ -34,3 +34,29 @@ export const TableBlockSchema = z.object({
|
|||
});
|
||||
|
||||
export type TableBlock = z.infer<typeof TableBlockSchema>;
|
||||
|
||||
export const CalendarEventSchema = z.object({
|
||||
summary: z.string().optional(),
|
||||
start: z.object({
|
||||
dateTime: z.string().optional(),
|
||||
date: z.string().optional(),
|
||||
}).optional(),
|
||||
end: z.object({
|
||||
dateTime: z.string().optional(),
|
||||
date: z.string().optional(),
|
||||
}).optional(),
|
||||
location: z.string().optional(),
|
||||
htmlLink: z.string().optional(),
|
||||
conferenceLink: z.string().optional(),
|
||||
source: z.string().optional(),
|
||||
});
|
||||
|
||||
export type CalendarEvent = z.infer<typeof CalendarEventSchema>;
|
||||
|
||||
export const CalendarBlockSchema = z.object({
|
||||
title: z.string().optional(),
|
||||
events: z.array(CalendarEventSchema),
|
||||
showJoinButton: z.boolean().optional(),
|
||||
});
|
||||
|
||||
export type CalendarBlock = z.infer<typeof CalendarBlockSchema>;
|
||||
|
|
|
|||
|
|
@ -502,6 +502,7 @@ const ipcSchemas = {
|
|||
req: z.object({
|
||||
transcript: z.string(),
|
||||
meetingStartTime: z.string().optional(),
|
||||
calendarEventJson: z.string().optional(),
|
||||
}),
|
||||
res: z.object({
|
||||
notes: z.string(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue