aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/moderation/abuse/abuse-create.model.ts
blob: c0d04e46d5d8da9b73d15bbc193cd280bcd11dcb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { AbusePredefinedReasonsString } from './abuse-reason.model'

export interface AbuseCreate {
  accountId: number

  reason: string
  predefinedReasons?: AbusePredefinedReasonsString[]

  video?: {
    id: number
    startAt?: number
    endAt?: number
  }

  comment?: {
    id: number
  }
}

// FIXME: deprecated in 2.3. Remove it
export interface VideoAbuseCreate {
  reason: string
  predefinedReasons?: AbusePredefinedReasonsString[]
  startAt?: number
  endAt?: number
}