]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/videos/abuse/video-abuse.model.ts
Fix video import tests
[github/Chocobozzz/PeerTube.git] / shared / models / videos / abuse / video-abuse.model.ts
index 953193e5ea8954f4222c04e967f6a25e7371aee5..38605dcac051b7c99d1915a2575fa1ecfc4c7085 100644 (file)
@@ -1,11 +1,13 @@
 import { Account } from '../../actors/index'
 import { VideoConstant } from '../video-constant.model'
 import { VideoAbuseState } from './video-abuse-state.model'
-import { VideoChannelSummary } from '../channel/video-channel.model'
+import { VideoChannel } from '../channel/video-channel.model'
+import { VideoAbusePredefinedReasonsString } from './video-abuse-reason.model'
 
 export interface VideoAbuse {
   id: number
   reason: string
+  predefinedReasons?: VideoAbusePredefinedReasonsString[]
   reporterAccount: Account
 
   state: VideoConstant<VideoAbuseState>
@@ -19,8 +21,18 @@ export interface VideoAbuse {
     deleted: boolean
     blacklisted: boolean
     thumbnailPath?: string
-    channel?: VideoChannelSummary
+    channel?: VideoChannel
   }
 
   createdAt: Date
+  updatedAt: Date
+
+  startAt: number
+  endAt: number
+
+  count?: number
+  nth?: number
+
+  countReportsForReporter?: number
+  countReportsForReportee?: number
 }