]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/typings/models/video/schedule-video-update.ts
Add ability to disable webtorrent
[github/Chocobozzz/PeerTube.git] / server / typings / models / video / schedule-video-update.ts
CommitLineData
453e83ea 1import { ScheduleVideoUpdateModel } from '../../../models/video/schedule-video-update'
d7a25329
C
2import { PickWith } from '@server/typings/utils'
3import { MVideoAPWithoutCaption, MVideoWithBlacklistLight } from './video'
4
5type Use<K extends keyof ScheduleVideoUpdateModel, M> = PickWith<ScheduleVideoUpdateModel, K, M>
6
7// ############################################################################
453e83ea
C
8
9export type MScheduleVideoUpdate = Omit<ScheduleVideoUpdateModel, 'Video'>
1ca9f7c3
C
10
11// ############################################################################
12
d7a25329
C
13export type MScheduleVideoUpdateVideoAll = MScheduleVideoUpdate &
14 Use<'Video', MVideoAPWithoutCaption & MVideoWithBlacklistLight>
15
1ca9f7c3
C
16// Format for API or AP object
17
18export type MScheduleVideoUpdateFormattable = Pick<MScheduleVideoUpdate, 'updateAt' | 'privacy'>