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
- // FIXME: deprecated in 2.3, remove the following properties
+ countMessages: number
+}
- // @deprecated
- startAt?: null
- // @deprecated
- endAt?: null
+export type UserVideoAbuse = Omit<AdminVideoAbuse, 'countReports' | 'nthReport'>
- // @deprecated
- count?: number
- // @deprecated
- nth?: number
-}
+export type UserVideoCommentAbuse = AdminVideoCommentAbuse
+
+export type UserAbuse = Omit<AdminAbuse, 'reporterAccount' | 'countReportsForReportee' | 'countReportsForReporter' | 'startAt' | 'endAt'
+| 'count' | 'nth' | 'moderationComment'>