]>
Commit | Line | Data |
---|---|---|
d95d1559 C |
1 | import { Account } from '../../actors/account.model' |
2 | import { AbuseState } from './abuse-state.model' | |
3 | import { AbusePredefinedReasonsString } from './abuse-reason.model' | |
4 | import { VideoConstant } from '../../videos/video-constant.model' | |
5 | import { VideoChannel } from '../../videos/channel/video-channel.model' | |
6 | ||
7 | export interface VideoAbuse { | |
8 | id: number | |
9 | name: string | |
10 | uuid: string | |
11 | nsfw: boolean | |
57f6896f | 12 | |
d95d1559 C |
13 | deleted: boolean |
14 | blacklisted: boolean | |
15 | ||
16 | startAt: number | null | |
17 | endAt: number | null | |
18 | ||
19 | thumbnailPath?: string | |
20 | channel?: VideoChannel | |
21 | } | |
22 | ||
23 | export interface VideoCommentAbuse { | |
24 | id: number | |
57f6896f C |
25 | |
26 | video: { | |
27 | id: number | |
28 | name: string | |
29 | uuid: string | |
30 | } | |
31 | ||
d95d1559 | 32 | text: string |
57f6896f | 33 | |
d95d1559 C |
34 | deleted: boolean |
35 | } | |
36 | ||
37 | export interface Abuse { | |
38 | id: number | |
39 | reason: string | |
40 | predefinedReasons?: AbusePredefinedReasonsString[] | |
41 | reporterAccount: Account | |
42 | ||
43 | state: VideoConstant<AbuseState> | |
44 | moderationComment?: string | |
45 | ||
46 | video?: VideoAbuse | |
47 | comment?: VideoCommentAbuse | |
48 | ||
49 | createdAt: Date | |
50 | updatedAt: Date | |
51 | ||
52 | // FIXME: deprecated in 2.3, remove this | |
53 | startAt: null | |
54 | endAt: null | |
55 | ||
56 | count?: number | |
57 | nth?: number | |
58 | ||
59 | countReportsForReporter?: number | |
60 | countReportsForReportee?: number | |
61 | } |