]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/moderation/abuse/abuse-create.model.ts
Use 3 tables to represent abuses
[github/Chocobozzz/PeerTube.git] / shared / models / moderation / abuse / abuse-create.model.ts
CommitLineData
d95d1559
C
1import { AbusePredefinedReasonsString } from './abuse-reason.model'
2
3export interface AbuseCreate {
4 accountId: number
5
6 reason: string
7 predefinedReasons?: AbusePredefinedReasonsString[]
8
9 video?: {
10 id: number
11 startAt?: number
12 endAt?: number
13 }
14
15 comment?: {
16 id: number
17 }
18}
19
20// FIXME: deprecated in 2.3. Remove it
21export interface VideoAbuseCreate {
22 reason: string
23 predefinedReasons?: AbusePredefinedReasonsString[]
24 startAt?: number
25 endAt?: number
26}