aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/moderation/abuse/abuse-create.model.ts
blob: b0358dbb9af1bc867770bcd891596b0c97d57332 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                                   
                
 

                                                    



              

















                                                    
import { AbusePredefinedReasonsString } from './abuse-reason.model'

export interface AbuseCreate {
  reason: string

  predefinedReasons?: AbusePredefinedReasonsString[]

  account?: {
    id: number
  }

  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
}