18 lines
735 B
TypeScript
18 lines
735 B
TypeScript
import { VideoBlacklistModel } from '../../../models/video/video-blacklist'
|
|
import { PickWith } from '@server/typings/utils'
|
|
import { MVideo } from '@server/typings/models'
|
|
|
|
type Use<K extends keyof VideoBlacklistModel, M> = PickWith<VideoBlacklistModel, K, M>
|
|
|
|
// ############################################################################
|
|
|
|
export type MVideoBlacklist = Omit<VideoBlacklistModel, 'Video'>
|
|
|
|
export type MVideoBlacklistLight = Pick<MVideoBlacklist, 'id' | 'reason' | 'unfederated'>
|
|
export type MVideoBlacklistUnfederated = Pick<MVideoBlacklist, 'unfederated'>
|
|
|
|
// ############################################################################
|
|
|
|
export type MVideoBlacklistVideo = MVideoBlacklist &
|
|
Use<'Video', MVideo>
|