]>
Commit | Line | Data |
---|---|---|
453e83ea | 1 | import { ScheduleVideoUpdateModel } from '../../../models/video/schedule-video-update' |
d7a25329 C |
2 | import { PickWith } from '@server/typings/utils' |
3 | import { MVideoAPWithoutCaption, MVideoWithBlacklistLight } from './video' | |
4 | ||
5 | type Use<K extends keyof ScheduleVideoUpdateModel, M> = PickWith<ScheduleVideoUpdateModel, K, M> | |
6 | ||
7 | // ############################################################################ | |
453e83ea C |
8 | |
9 | export type MScheduleVideoUpdate = Omit<ScheduleVideoUpdateModel, 'Video'> | |
1ca9f7c3 C |
10 | |
11 | // ############################################################################ | |
12 | ||
a1587156 C |
13 | export type MScheduleVideoUpdateVideoAll = |
14 | MScheduleVideoUpdate & | |
d7a25329 C |
15 | Use<'Video', MVideoAPWithoutCaption & MVideoWithBlacklistLight> |
16 | ||
1ca9f7c3 C |
17 | // Format for API or AP object |
18 | ||
19 | export type MScheduleVideoUpdateFormattable = Pick<MScheduleVideoUpdate, 'updateAt' | 'privacy'> |