sepia-search-motore-di-rice.../server/types/channel.model.ts

28 lines
703 B
TypeScript

import { IndexableDoc } from './elastic-search.model'
import { VideoChannel, VideoChannelSummary, ActorImage, Account } from '../../PeerTube/shared/models'
export interface IndexableChannel extends VideoChannel, IndexableDoc {
url: string
}
export interface DBChannel extends Omit<VideoChannel, 'isLocal'> {
indexedAt: Date
handle: string
url: string
ownerAccount?: Account & { handle: string, avatar: ActorImage & { url: string } }
avatar?: ActorImage & { url: string }
score?: number
}
export interface DBChannelSummary extends VideoChannelSummary {
indexedAt: Date
}
// Results from the search API
export interface EnhancedVideoChannel extends VideoChannel {
score: number
}