2019-08-15 04:53:26 -05:00
|
|
|
import { VideoAbuseModel } from '../../../models/video/video-abuse'
|
|
|
|
import { PickWith } from '../../utils'
|
|
|
|
import { MVideo } from './video'
|
|
|
|
import { MAccountDefault } from '../account'
|
|
|
|
|
2019-08-20 06:52:49 -05:00
|
|
|
type Use<K extends keyof VideoAbuseModel, M> = PickWith<VideoAbuseModel, K, M>
|
|
|
|
|
|
|
|
// ############################################################################
|
|
|
|
|
2019-08-15 04:53:26 -05:00
|
|
|
export type MVideoAbuse = Omit<VideoAbuseModel, 'Account' | 'Video' | 'toActivityPubObject'>
|
|
|
|
|
2019-08-20 06:52:49 -05:00
|
|
|
// ############################################################################
|
|
|
|
|
2019-08-15 04:53:26 -05:00
|
|
|
export type MVideoAbuseId = Pick<VideoAbuseModel, 'id'>
|
|
|
|
|
|
|
|
export type MVideoAbuseVideo = MVideoAbuse &
|
|
|
|
Pick<VideoAbuseModel, 'toActivityPubObject'> &
|
2019-08-20 06:52:49 -05:00
|
|
|
Use<'Video', MVideo>
|
2019-08-15 04:53:26 -05:00
|
|
|
|
2019-08-20 06:52:49 -05:00
|
|
|
export type MVideoAbuseAccountVideo = MVideoAbuse &
|
|
|
|
Pick<VideoAbuseModel, 'toActivityPubObject'> &
|
|
|
|
Use<'Video', MVideo> &
|
|
|
|
Use<'Account', MAccountDefault>
|