aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/typings/models/video/video-abuse.ts
blob: 0474cac5b46d6bb69d75d88659b244630a27180c (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                                   



                                                                               

                                                                                            

                                                                               



                                                       
                      
 



                                                   
import { VideoAbuseModel } from '../../../models/video/video-abuse'
import { PickWith } from '../../utils'
import { MVideo } from './video'
import { MAccountDefault } from '../account'

type Use<K extends keyof VideoAbuseModel, M> = PickWith<VideoAbuseModel, K, M>

// ############################################################################

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

// ############################################################################

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

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

export type MVideoAbuseAccountVideo = MVideoAbuse &
  Pick<VideoAbuseModel, 'toActivityPubObject'> &
  Use<'Video', MVideo> &
  Use<'Account', MAccountDefault>