2021-07-28 04:46:32 -04:00
|
|
|
import { ResultList } from '../../common'
|
2021-05-11 05:27:40 -04:00
|
|
|
import { Account } from '../../actors'
|
2018-01-03 11:25:47 -05:00
|
|
|
|
2017-12-22 04:50:07 -05:00
|
|
|
export interface VideoComment {
|
|
|
|
id: number
|
|
|
|
url: string
|
|
|
|
text: string
|
|
|
|
threadId: number
|
|
|
|
inReplyToCommentId: number
|
|
|
|
videoId: number
|
|
|
|
createdAt: Date | string
|
|
|
|
updatedAt: Date | string
|
2019-11-15 13:05:08 -05:00
|
|
|
deletedAt: Date | string
|
|
|
|
isDeleted: boolean
|
2019-12-28 05:27:31 -05:00
|
|
|
totalRepliesFromVideoAuthor: number
|
2017-12-27 10:11:53 -05:00
|
|
|
totalReplies: number
|
2018-01-03 11:25:47 -05:00
|
|
|
account: Account
|
2017-12-22 04:50:07 -05:00
|
|
|
}
|
|
|
|
|
2020-11-13 10:38:23 -05:00
|
|
|
export interface VideoCommentAdmin {
|
|
|
|
id: number
|
|
|
|
url: string
|
|
|
|
text: string
|
|
|
|
|
|
|
|
threadId: number
|
|
|
|
inReplyToCommentId: number
|
|
|
|
|
|
|
|
createdAt: Date | string
|
|
|
|
updatedAt: Date | string
|
|
|
|
|
|
|
|
account: Account
|
|
|
|
|
|
|
|
video: {
|
|
|
|
id: number
|
|
|
|
uuid: string
|
|
|
|
name: string
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-09 08:15:11 -04:00
|
|
|
export type VideoCommentThreads = ResultList<VideoComment> & { totalNotDeletedComments: number }
|
|
|
|
|
2017-12-22 06:10:40 -05:00
|
|
|
export interface VideoCommentThreadTree {
|
2017-12-22 04:50:07 -05:00
|
|
|
comment: VideoComment
|
2017-12-22 06:10:40 -05:00
|
|
|
children: VideoCommentThreadTree[]
|
2017-12-22 04:50:07 -05:00
|
|
|
}
|