aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/typings/models/video/video-abuse.ts
blob: 1667ae55a4128a16090e224b36a5d90a11557c86 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { VideoAbuseModel } from '../../../models/video/video-abuse'
import { PickWith } from '../../utils'
import { MVideo } from './video'
import { MAccountDefault } from '../account'

export type MVideoAbuse = Omit<VideoAbuseModel, 'Account' | 'Video' | 'toActivityPubObject'>

export type MVideoAbuseId = Pick<VideoAbuseModel, 'id'>

export type MVideoAbuseVideo = MVideoAbuse &
  Pick<VideoAbuseModel, 'toActivityPubObject'> &
  PickWith<VideoAbuseModel, 'Video', MVideo>

export type MVideoAbuseAccountVideo = MVideoAbuseVideo &
  PickWith<VideoAbuseModel, 'Account', MAccountDefault>