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

24 lines
675 B
TypeScript
Raw Normal View History

2020-02-19 15:39:35 +01:00
import { IndexableDoc } from './elastic-search.model'
2020-06-09 14:29:20 +02:00
import { VideoChannel, VideoChannelSummary, Avatar } 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
2020-06-05 14:37:39 +02:00
url: string
2020-06-09 14:29:20 +02:00
ownerAccount?: Account & { handle: string, avatar: Avatar & { url: string } }
avatar?: Avatar & { url: string }
2020-02-19 15:39:35 +01:00
}
export interface DBChannelSummary extends VideoChannelSummary {
indexedAt: Date
}