Initial implementation for generating thread JSON files

This commit is contained in:
2025-01-04 01:20:47 -05:00
parent 0f596ab5f5
commit bfe94aa2fe
8 changed files with 136 additions and 12 deletions

View File

@@ -16,6 +16,9 @@ const commentsConfigSchema = z.object({
idPrefix: z.string(),
}),
}),
dirs: z.object({
data: z.string(),
}),
})
export type CommentsConfig = z.infer<typeof commentsConfigSchema>
@@ -35,5 +38,29 @@ export type Message = {
},
subject: string,
content: string,
mailbox: string,
modseq: BigInt,
thread?: string,
}
export type ThreadUser = {
name: string,
mailId: string,
domainId: string,
}
export type ThreadComment = {
user: ThreadUser,
date: Date,
subject: string,
text: string,
}
export type ThreadData = {
thread: string,
refresh: {
date: Date,
markers: {[key: string]: BigInt},
},
comments: ThreadComment[],
}