import { PickWith } from '@shared/core-utils'
import { AbuseModel } from '../../../models/abuse/abuse'
import { MAccountDefault, MAccountFormattable, MAccountLight, MAccountUrl } from '../account'
-import { MCommentOwner, MCommentUrl, MVideoUrl, MCommentOwnerVideo } from '../video'
+import { MCommentOwner, MCommentUrl, MVideoUrl, MCommentOwnerVideo, MComment, MCommentVideo } from '../video'
import { MVideo, MVideoAccountLightBlacklistAllFiles } from '../video/video'
type Use<K extends keyof AbuseModel, M> = PickWith<AbuseModel, K, M>
MCommentAbuse &
UseCommentAbuse<'VideoComment', MCommentUrl>
+export type MCommentAbuseFormattable =
+ MCommentAbuse &
+ UseCommentAbuse<'VideoComment', MComment & PickWith<MCommentVideo, 'Video', Pick<MVideo, 'id' | 'uuid' | 'name'>>>
+
// ############################################################################
export type MAbuseId = Pick<AbuseModel, 'id'>
export type MAbuseFormattable =
MAbuse &
Use<'ReporterAccount', MAccountFormattable> &
- Use<'VideoAbuse', MVideoAbuseFormattable>
+ Use<'VideoAbuse', MVideoAbuseFormattable> &
+ Use<'VideoCommentAbuse', MCommentAbuseFormattable>