Initial implementation for generating thread JSON files
This commit is contained in:
27
src/types.ts
27
src/types.ts
@@ -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[],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user