2021-06-24 15:18:54 +02:00
|
|
|
import { Account, VideoChannel, VideoChannelSummary } from '../../PeerTube/shared/models'
|
|
|
|
import { ActorImageExtended, AdditionalActorAttributes } from './actor.model'
|
|
|
|
import { IndexableDoc } from './indexable-doc.model'
|
2020-02-19 15:39:35 +01:00
|
|
|
|
|
|
|
export interface IndexableChannel extends VideoChannel, IndexableDoc {
|
2020-06-10 14:33:20 +02:00
|
|
|
url: string
|
2020-02-19 15:39:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface DBChannel extends Omit<VideoChannel, 'isLocal'> {
|
|
|
|
indexedAt: Date
|
2020-05-28 16:32:49 +02:00
|
|
|
handle: 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
|
|
|
ownerAccount?: Account & AdditionalActorAttributes
|
2020-06-09 14:29:20 +02:00
|
|
|
|
2021-06-24 15:18:54 +02:00
|
|
|
avatar?: ActorImageExtended
|
2020-08-27 14:44:21 +02:00
|
|
|
|
|
|
|
score?: number
|
2020-02-19 15:39:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface DBChannelSummary extends VideoChannelSummary {
|
|
|
|
indexedAt: Date
|
|
|
|
}
|
2020-08-27 14:44:21 +02:00
|
|
|
|
|
|
|
// Results from the search API
|
|
|
|
export interface EnhancedVideoChannel extends VideoChannel {
|
|
|
|
score: number
|
|
|
|
}
|