import { VideoConstant } from '../../videos/video-constant.model'
import { VideoChannel } from '../../videos/channel/video-channel.model'
-export interface VideoAbuse {
+export interface AdminVideoAbuse {
id: number
name: string
uuid: string
nthReport: number
}
-export interface VideoCommentAbuse {
+export interface AdminVideoCommentAbuse {
id: number
threadId: number
deleted: boolean
}
-export interface Abuse {
+export interface AdminAbuse {
id: number
reason: string
state: VideoConstant<AbuseState>
moderationComment?: string
- video?: VideoAbuse
- comment?: VideoCommentAbuse
+ video?: AdminVideoAbuse
+ comment?: AdminVideoCommentAbuse
createdAt: Date
updatedAt: Date
countReportsForReporter?: number
countReportsForReportee?: number
+ countMessages: number
+
// FIXME: deprecated in 2.3, remove the following properties
// @deprecated
// @deprecated
nth?: number
}
+
+export type UserVideoAbuse = Omit<AdminVideoAbuse, 'countReports' | 'nthReport'>
+
+export type UserVideoCommentAbuse = AdminVideoCommentAbuse
+
+export type UserAbuse = Omit<AdminAbuse, 'reporterAccount' | 'countReportsForReportee' | 'countReportsForReporter' | 'startAt' | 'endAt'
+| 'count' | 'nth'>