2020-02-19 15:39:35 +01:00
|
|
|
import { IndexableDoc } from './elastic-search.model'
|
|
|
|
import { VideoChannel, VideoChannelSummary } from '@shared/models'
|
2020-05-28 16:32:49 +02:00
|
|
|
import { Account } from '@shared/models/actors/account.model'
|
2020-02-19 15:39:35 +01:00
|
|
|
|
|
|
|
export interface IndexableChannelSummary extends VideoChannelSummary, IndexableDoc {
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IndexableChannel extends VideoChannel, IndexableDoc {
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface DBChannel extends Omit<VideoChannel, 'isLocal'> {
|
|
|
|
indexedAt: Date
|
2020-05-28 16:32:49 +02:00
|
|
|
handle: string
|
|
|
|
|
|
|
|
ownerAccount?: Account & { handle: string }
|
2020-02-19 15:39:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface DBChannelSummary extends VideoChannelSummary {
|
|
|
|
indexedAt: Date
|
|
|
|
}
|