aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/typings/models/video/video-blacklist.ts
blob: 9242b357dd4729e7bbf8aa408b762326df26e11f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import { VideoBlacklistModel } from '../../../models/video/video-blacklist'
import { PickWith } from '@server/typings/utils'
import { MVideo } from '@server/typings/models'

export type MVideoBlacklist = Omit<VideoBlacklistModel, 'Video'>

export type MVideoBlacklistLight = Pick<MVideoBlacklist, 'id' | 'reason' | 'unfederated'>
export type MVideoBlacklistUnfederated = Pick<MVideoBlacklist, 'unfederated'>

export type MVideoBlacklistVideo = MVideoBlacklist &
  PickWith<VideoBlacklistModel, 'Video', MVideo>