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

21 lines
582 B
TypeScript
Raw Normal View History

2020-02-19 15:39:35 +01:00
import { IndexableDoc } from './elastic-search.model'
import { VideoChannel, VideoChannelSummary } from '@shared/models'
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
handle: string
ownerAccount?: Account & { handle: string }
2020-02-19 15:39:35 +01:00
}
export interface DBChannelSummary extends VideoChannelSummary {
indexedAt: Date
}