mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-02 22:14:50 +00:00
feat(comments): allow marking comments as complete or incomplete
This commit is contained in:
@@ -204,6 +204,8 @@ export type CommentInfo = {
|
||||
createdAt: string
|
||||
updatedAt: string
|
||||
sessionId: string | null
|
||||
isCompleted: boolean
|
||||
completionLastChangedBy: AssetUserInfo | null
|
||||
}
|
||||
|
||||
export const commentInfoSchema: z.ZodType<CommentInfo> = z.object({
|
||||
@@ -220,8 +222,15 @@ export const commentInfoSchema: z.ZodType<CommentInfo> = z.object({
|
||||
createdAt: z.string(),
|
||||
updatedAt: z.string(),
|
||||
sessionId: z.string().nullable(),
|
||||
isCompleted: z.boolean(),
|
||||
completionLastChangedBy: assetUserInfoSchema.nullable(),
|
||||
})
|
||||
|
||||
export const completeCommentRequestSchema = z.object({
|
||||
isCompleted: z.boolean(),
|
||||
})
|
||||
export type CompleteCommentRequest = z.infer<typeof completeCommentRequestSchema>
|
||||
|
||||
export const reparentAssetsRequestSchema = z.object({
|
||||
newParentId: z.string(),
|
||||
assetIds: z.array(z.string()),
|
||||
|
||||
Reference in New Issue
Block a user