PeerTube/shared/models/moderation/abuse/abuse-create.model.ts

30 lines
497 B
TypeScript
Raw Normal View History

2020-07-01 16:05:30 +02:00
import { AbusePredefinedReasonsString } from './abuse-reason.model'
export interface AbuseCreate {
reason: string
2020-07-07 10:57:04 +02:00
2020-07-01 16:05:30 +02:00
predefinedReasons?: AbusePredefinedReasonsString[]
2020-07-07 10:57:04 +02:00
account?: {
id: number
}
2020-07-01 16:05:30 +02:00
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
}