]>
Commit | Line | Data |
---|---|---|
1 | import { ResultList } from '../../common' | |
2 | import { Account } from '../../actors' | |
3 | ||
4 | export interface VideoComment { | |
5 | id: number | |
6 | url: string | |
7 | text: string | |
8 | threadId: number | |
9 | inReplyToCommentId: number | |
10 | videoId: number | |
11 | createdAt: Date | string | |
12 | updatedAt: Date | string | |
13 | deletedAt: Date | string | |
14 | isDeleted: boolean | |
15 | totalRepliesFromVideoAuthor: number | |
16 | totalReplies: number | |
17 | account: Account | |
18 | } | |
19 | ||
20 | export interface VideoCommentAdmin { | |
21 | id: number | |
22 | url: string | |
23 | text: string | |
24 | ||
25 | threadId: number | |
26 | inReplyToCommentId: number | |
27 | ||
28 | createdAt: Date | string | |
29 | updatedAt: Date | string | |
30 | ||
31 | account: Account | |
32 | ||
33 | video: { | |
34 | id: number | |
35 | uuid: string | |
36 | name: string | |
37 | } | |
38 | } | |
39 | ||
40 | export type VideoCommentThreads = ResultList<VideoComment> & { totalNotDeletedComments: number } | |
41 | ||
42 | export interface VideoCommentThreadTree { | |
43 | comment: VideoComment | |
44 | children: VideoCommentThreadTree[] | |
45 | } |