import { VideoChangeOwnershipModel } from '@server/models/video/video-change-ownership' import { PickWith } from '@shared/core-utils' import { MAccountDefault, MAccountFormattable } from '../account/account' import { MVideoWithAllFiles, MVideoFormattable } from './video' type Use = PickWith // ############################################################################ export type MVideoChangeOwnership = Omit export type MVideoChangeOwnershipFull = MVideoChangeOwnership & Use<'Initiator', MAccountDefault> & Use<'NextOwner', MAccountDefault> & Use<'Video', MVideoWithAllFiles> // ############################################################################ // Format for API or AP object export type MVideoChangeOwnershipFormattable = Pick & Use<'Initiator', MAccountFormattable> & Use<'NextOwner', MAccountFormattable> & Use<'Video', MVideoFormattable>