]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/moderation/abuse/abuse.model.ts
Implement abuses check params
[github/Chocobozzz/PeerTube.git] / shared / models / moderation / abuse / abuse.model.ts
CommitLineData
d95d1559
C
1import { Account } from '../../actors/account.model'
2import { AbuseState } from './abuse-state.model'
3import { AbusePredefinedReasonsString } from './abuse-reason.model'
4import { VideoConstant } from '../../videos/video-constant.model'
5import { VideoChannel } from '../../videos/channel/video-channel.model'
6
7export 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
23export 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
37export 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}