]>
Commit | Line | Data |
---|---|---|
28be9d1d | 1 | import { ResultList } from '../../common' |
2b02c520 | 2 | import { Account } from '../../actors' |
cf117aaa | 3 | |
bf1f6508 C |
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 | |
69222afa JM |
13 | deletedAt: Date | string |
14 | isDeleted: boolean | |
5b0413dd | 15 | totalRepliesFromVideoAuthor: number |
4635f59d | 16 | totalReplies: number |
cf117aaa | 17 | account: Account |
bf1f6508 C |
18 | } |
19 | ||
0f8d00e3 C |
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 | ||
12edc149 C |
40 | export type VideoCommentThreads = ResultList<VideoComment> & { totalNotDeletedComments: number } |
41 | ||
d3ea8975 | 42 | export interface VideoCommentThreadTree { |
bf1f6508 | 43 | comment: VideoComment |
d3ea8975 | 44 | children: VideoCommentThreadTree[] |
bf1f6508 | 45 | } |