2020-06-23 14:10:17 +02:00
|
|
|
import { PickWith } from '@shared/core-utils'
|
2021-05-11 11:15:29 +02:00
|
|
|
import { VideoShareModel } from '../../../models/video/video-share'
|
|
|
|
import { MActorDefault } from '../actor'
|
2019-08-15 11:53:26 +02:00
|
|
|
import { MVideo } from './video'
|
|
|
|
|
2019-08-20 13:52:49 +02:00
|
|
|
type Use<K extends keyof VideoShareModel, M> = PickWith<VideoShareModel, K, M>
|
|
|
|
|
|
|
|
// ############################################################################
|
|
|
|
|
2019-08-15 11:53:26 +02:00
|
|
|
export type MVideoShare = Omit<VideoShareModel, 'Actor' | 'Video'>
|
|
|
|
|
2020-01-31 16:56:52 +01:00
|
|
|
export type MVideoShareActor =
|
|
|
|
MVideoShare &
|
2019-08-20 13:52:49 +02:00
|
|
|
Use<'Actor', MActorDefault>
|
2019-08-15 11:53:26 +02:00
|
|
|
|
2020-01-31 16:56:52 +01:00
|
|
|
export type MVideoShareFull =
|
|
|
|
MVideoShare &
|
2019-08-20 13:52:49 +02:00
|
|
|
Use<'Actor', MActorDefault> &
|
|
|
|
Use<'Video', MVideo>
|