diff options
Diffstat (limited to 'server/typings/models/video/video-blacklist.ts')
-rw-r--r-- | server/typings/models/video/video-blacklist.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/typings/models/video/video-blacklist.ts b/server/typings/models/video/video-blacklist.ts new file mode 100644 index 000000000..9242b357d --- /dev/null +++ b/server/typings/models/video/video-blacklist.ts | |||
@@ -0,0 +1,11 @@ | |||
1 | import { VideoBlacklistModel } from '../../../models/video/video-blacklist' | ||
2 | import { PickWith } from '@server/typings/utils' | ||
3 | import { MVideo } from '@server/typings/models' | ||
4 | |||
5 | export type MVideoBlacklist = Omit<VideoBlacklistModel, 'Video'> | ||
6 | |||
7 | export type MVideoBlacklistLight = Pick<MVideoBlacklist, 'id' | 'reason' | 'unfederated'> | ||
8 | export type MVideoBlacklistUnfederated = Pick<MVideoBlacklist, 'unfederated'> | ||
9 | |||
10 | export type MVideoBlacklistVideo = MVideoBlacklist & | ||
11 | PickWith<VideoBlacklistModel, 'Video', MVideo> | ||