]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/typings/models/video/video-blacklist.ts
Add auto follow back support for instances
[github/Chocobozzz/PeerTube.git] / server / typings / models / video / video-blacklist.ts
CommitLineData
453e83ea
C
1import { VideoBlacklistModel } from '../../../models/video/video-blacklist'
2import { PickWith } from '@server/typings/utils'
1ca9f7c3 3import { MVideo, MVideoFormattable } from '@server/typings/models'
453e83ea 4
0283eaac
C
5type Use<K extends keyof VideoBlacklistModel, M> = PickWith<VideoBlacklistModel, K, M>
6
7// ############################################################################
8
453e83ea
C
9export type MVideoBlacklist = Omit<VideoBlacklistModel, 'Video'>
10
11export type MVideoBlacklistLight = Pick<MVideoBlacklist, 'id' | 'reason' | 'unfederated'>
12export type MVideoBlacklistUnfederated = Pick<MVideoBlacklist, 'unfederated'>
13
0283eaac
C
14// ############################################################################
15
8424c402
C
16export type MVideoBlacklistLightVideo = MVideoBlacklistLight &
17 Use<'Video', MVideo>
18
453e83ea 19export type MVideoBlacklistVideo = MVideoBlacklist &
0283eaac 20 Use<'Video', MVideo>
1ca9f7c3
C
21
22// ############################################################################
23
24// Format for API or AP object
25
26export type MVideoBlacklistFormattable = MVideoBlacklist &
27 Use<'Video', MVideoFormattable>