2023-11-09 14:34:36 +01:00
|
|
|
import { VideoPlaylist } from '@peertube/peertube-types'
|
2021-06-24 15:18:54 +02:00
|
|
|
import { IndexableDoc } from './indexable-doc.model'
|
2023-11-09 14:34:36 +01:00
|
|
|
import { DBAccountSummary } from './account.model'
|
|
|
|
import { DBChannelSummary } from './channel.model'
|
2021-06-24 15:18:54 +02:00
|
|
|
|
|
|
|
export interface IndexablePlaylist extends VideoPlaylist, IndexableDoc {
|
|
|
|
}
|
|
|
|
|
2023-11-09 14:34:36 +01:00
|
|
|
export interface DBPlaylist extends Omit<VideoPlaylist, 'isLocal' | 'createdAt' | 'updatedAt' | 'ownerAccount' | 'videoChannel'> {
|
|
|
|
indexedAt: number
|
|
|
|
createdAt: number
|
|
|
|
updatedAt: number
|
2021-06-24 15:18:54 +02:00
|
|
|
|
|
|
|
host: string
|
|
|
|
|
|
|
|
// Added by the query
|
2023-11-09 14:34:36 +01:00
|
|
|
_rankingScore?: number
|
2021-06-24 15:18:54 +02:00
|
|
|
|
2023-11-09 14:34:36 +01:00
|
|
|
ownerAccount: DBAccountSummary
|
|
|
|
videoChannel: DBChannelSummary
|
2021-06-24 15:18:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Results from the search API
|
2023-11-09 14:34:36 +01:00
|
|
|
export interface APIPlaylist extends VideoPlaylist {
|
2021-06-24 15:18:54 +02:00
|
|
|
score: number
|
|
|
|
}
|