-import { ContextType } from '@server/helpers/activitypub'
import { SendEmailOptions } from './emailer.model'
import { VideoResolution } from '@shared/models'
+import { ContextType } from '../activitypub/context'
export type JobState = 'active' | 'completed' | 'failed' | 'waiting' | 'delayed'
filePath: string
}
+export type VideoImportTorrentPayloadType = 'magnet-uri' | 'torrent-file'
+export type VideoImportYoutubeDLPayloadType = 'youtube-dl'
+
export type VideoImportYoutubeDLPayload = {
- type: 'youtube-dl'
+ type: VideoImportYoutubeDLPayloadType
videoImportId: number
generateThumbnail: boolean
fileExt?: string
}
export type VideoImportTorrentPayload = {
- type: 'magnet-uri' | 'torrent-file'
+ type: VideoImportTorrentPayloadType
videoImportId: number
}
export type VideoImportPayload = VideoImportYoutubeDLPayload | VideoImportTorrentPayload