diff options
Diffstat (limited to 'server/types/models')
-rw-r--r-- | server/types/models/server/tracker.ts | 7 | ||||
-rw-r--r-- | server/types/models/video/video.ts | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/server/types/models/server/tracker.ts b/server/types/models/server/tracker.ts new file mode 100644 index 000000000..5fe03f8c0 --- /dev/null +++ b/server/types/models/server/tracker.ts | |||
@@ -0,0 +1,7 @@ | |||
1 | import { TrackerModel } from '../../../models/server/tracker' | ||
2 | |||
3 | export type MTracker = Omit<TrackerModel, 'Videos'> | ||
4 | |||
5 | // ############################################################################ | ||
6 | |||
7 | export type MTrackerUrl = Pick<MTracker, 'url'> | ||
diff --git a/server/types/models/video/video.ts b/server/types/models/video/video.ts index 92dcbaf59..692490230 100644 --- a/server/types/models/video/video.ts +++ b/server/types/models/video/video.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import { PickWith, PickWithOpt } from '@shared/core-utils' | 1 | import { PickWith, PickWithOpt } from '@shared/core-utils' |
2 | import { VideoModel } from '../../../models/video/video' | 2 | import { VideoModel } from '../../../models/video/video' |
3 | import { MTrackerUrl } from '../server/tracker' | ||
3 | import { MUserVideoHistoryTime } from '../user/user-video-history' | 4 | import { MUserVideoHistoryTime } from '../user/user-video-history' |
4 | import { MScheduleVideoUpdate } from './schedule-video-update' | 5 | import { MScheduleVideoUpdate } from './schedule-video-update' |
5 | import { MTag } from './tag' | 6 | import { MTag } from './tag' |
@@ -216,4 +217,5 @@ export type MVideoFormattableDetails = | |||
216 | Use<'VideoChannel', MChannelFormattable> & | 217 | Use<'VideoChannel', MChannelFormattable> & |
217 | Use<'Tags', MTag[]> & | 218 | Use<'Tags', MTag[]> & |
218 | Use<'VideoStreamingPlaylists', MStreamingPlaylistRedundanciesOpt[]> & | 219 | Use<'VideoStreamingPlaylists', MStreamingPlaylistRedundanciesOpt[]> & |
219 | Use<'VideoFiles', MVideoFileRedundanciesOpt[]> | 220 | Use<'VideoFiles', MVideoFileRedundanciesOpt[]> & |
221 | Use<'Trackers', MTrackerUrl[]> | ||