]>
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 | ||
edbc9325 | 7 | export interface AdminVideoAbuse { |
d95d1559 C |
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 | |
4f32032f C |
21 | |
22 | countReports: number | |
23 | nthReport: number | |
d95d1559 C |
24 | } |
25 | ||
edbc9325 | 26 | export interface AdminVideoCommentAbuse { |
d95d1559 | 27 | id: number |
8ca56654 | 28 | threadId: number |
57f6896f C |
29 | |
30 | video: { | |
31 | id: number | |
32 | name: string | |
33 | uuid: string | |
34 | } | |
35 | ||
d95d1559 | 36 | text: string |
57f6896f | 37 | |
d95d1559 C |
38 | deleted: boolean |
39 | } | |
40 | ||
edbc9325 | 41 | export interface AdminAbuse { |
d95d1559 | 42 | id: number |
4f32032f | 43 | |
d95d1559 C |
44 | reason: string |
45 | predefinedReasons?: AbusePredefinedReasonsString[] | |
4f32032f | 46 | |
d95d1559 | 47 | reporterAccount: Account |
4f32032f | 48 | flaggedAccount: Account |
d95d1559 C |
49 | |
50 | state: VideoConstant<AbuseState> | |
51 | moderationComment?: string | |
52 | ||
edbc9325 C |
53 | video?: AdminVideoAbuse |
54 | comment?: AdminVideoCommentAbuse | |
d95d1559 C |
55 | |
56 | createdAt: Date | |
57 | updatedAt: Date | |
58 | ||
d95d1559 C |
59 | countReportsForReporter?: number |
60 | countReportsForReportee?: number | |
4f32032f | 61 | |
edbc9325 | 62 | countMessages: number |
d95d1559 | 63 | } |
edbc9325 C |
64 | |
65 | export type UserVideoAbuse = Omit<AdminVideoAbuse, 'countReports' | 'nthReport'> | |
66 | ||
67 | export type UserVideoCommentAbuse = AdminVideoCommentAbuse | |
68 | ||
69 | export type UserAbuse = Omit<AdminAbuse, 'reporterAccount' | 'countReportsForReportee' | 'countReportsForReporter' | 'startAt' | 'endAt' | |
94148c90 | 70 | | 'count' | 'nth' | 'moderationComment'> |