2019-08-15 04:53:26 -05:00
|
|
|
import { VideoShareModel } from '../../../models/video/video-share'
|
|
|
|
import { PickWith } from '../../utils'
|
|
|
|
import { MActorDefault } from '../account'
|
|
|
|
import { MVideo } from './video'
|
|
|
|
|
2019-08-20 06:52:49 -05:00
|
|
|
type Use<K extends keyof VideoShareModel, M> = PickWith<VideoShareModel, K, M>
|
|
|
|
|
|
|
|
// ############################################################################
|
|
|
|
|
2019-08-15 04:53:26 -05:00
|
|
|
export type MVideoShare = Omit<VideoShareModel, 'Actor' | 'Video'>
|
|
|
|
|
2020-01-31 09:56:52 -06:00
|
|
|
export type MVideoShareActor =
|
|
|
|
MVideoShare &
|
2019-08-20 06:52:49 -05:00
|
|
|
Use<'Actor', MActorDefault>
|
2019-08-15 04:53:26 -05:00
|
|
|
|
2020-01-31 09:56:52 -06:00
|
|
|
export type MVideoShareFull =
|
|
|
|
MVideoShare &
|
2019-08-20 06:52:49 -05:00
|
|
|
Use<'Actor', MActorDefault> &
|
|
|
|
Use<'Video', MVideo>
|