2022-12-20 15:18:43 +01:00
|
|
|
import { Account, AccountSummary, Video, VideoChannel, VideoChannelSummary, VideoDetails } from '@peertube/peertube-types'
|
2021-06-24 15:18:54 +02:00
|
|
|
import { AdditionalActorAttributes } from './actor.model'
|
|
|
|
import { IndexableDoc } from './indexable-doc.model'
|
2020-02-14 16:14:45 +01:00
|
|
|
|
|
|
|
export interface IndexableVideo extends Video, IndexableDoc {
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IndexableVideoDetails extends VideoDetails, IndexableDoc {
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface DBVideoDetails extends Omit<VideoDetails, 'isLocal'> {
|
|
|
|
indexedAt: Date
|
|
|
|
host: string
|
2021-06-24 15:18:54 +02:00
|
|
|
url: string
|
2020-05-28 16:32:49 +02:00
|
|
|
|
2021-06-24 15:18:54 +02:00
|
|
|
account: Account & AdditionalActorAttributes
|
|
|
|
channel: VideoChannel & AdditionalActorAttributes
|
2020-08-27 14:44:21 +02:00
|
|
|
|
|
|
|
score?: number
|
2020-02-14 16:14:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface DBVideo extends Omit<Video, 'isLocal'> {
|
|
|
|
indexedAt: Date
|
|
|
|
host: string
|
2020-06-05 14:37:39 +02:00
|
|
|
url: string
|
2020-05-28 16:32:49 +02:00
|
|
|
|
2021-06-24 15:18:54 +02:00
|
|
|
account: AccountSummary & AdditionalActorAttributes
|
|
|
|
channel: VideoChannelSummary & AdditionalActorAttributes
|
2020-02-14 16:14:45 +01:00
|
|
|
}
|
2020-08-27 14:44:21 +02:00
|
|
|
|
|
|
|
// Results from the search API
|
|
|
|
export interface EnhancedVideo extends Video {
|
|
|
|
tags: VideoDetails['tags']
|
|
|
|
|
|
|
|
score: number
|
|
|
|
}
|