1
0
Fork 0
peertube/shared/models/moderation/abuse/abuse-create.model.ts

30 lines
497 B
TypeScript
Raw Normal View History

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