mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-24 20:28:16 +02:00
match unread and read status
This commit is contained in:
parent
64976a9f5f
commit
ec4c7405e2
4 changed files with 30 additions and 3 deletions
|
|
@ -111,6 +111,7 @@ export const GmailThreadMessageSchema = z.object({
|
|||
subject: z.string().optional(),
|
||||
body: z.string().optional(),
|
||||
bodyHtml: z.string().optional(),
|
||||
unread: z.boolean().optional(),
|
||||
});
|
||||
|
||||
export type GmailThreadMessage = z.infer<typeof GmailThreadMessageSchema>;
|
||||
|
|
@ -118,6 +119,7 @@ export type GmailThreadMessage = z.infer<typeof GmailThreadMessageSchema>;
|
|||
export const GmailThreadSchema = EmailBlockSchema.extend({
|
||||
threadId: z.string(),
|
||||
threadUrl: z.string().url(),
|
||||
unread: z.boolean().optional(),
|
||||
messages: z.array(GmailThreadMessageSchema),
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue