27 lines
838 B
TypeScript
27 lines
838 B
TypeScript
import { VideoChannel, VideoChannelSummary } from '@shared/models/videos/channel/video-channel.model'
|
|
import { Account, AccountSummary } from '@shared/models/actors/account.model'
|
|
import { Video, VideoDetails } from '@shared/models/videos/video.model'
|
|
import { IndexableDoc } from './elastic-search.model'
|
|
|
|
export interface IndexableVideo extends Video, IndexableDoc {
|
|
}
|
|
|
|
export interface IndexableVideoDetails extends VideoDetails, IndexableDoc {
|
|
}
|
|
|
|
export interface DBVideoDetails extends Omit<VideoDetails, 'isLocal'> {
|
|
indexedAt: Date
|
|
host: string
|
|
|
|
account: Account & { handle: string }
|
|
channel: VideoChannel & { handle: string }
|
|
}
|
|
|
|
export interface DBVideo extends Omit<Video, 'isLocal'> {
|
|
indexedAt: Date
|
|
host: string
|
|
|
|
account: AccountSummary & { handle: string }
|
|
channel: VideoChannelSummary & { handle: string }
|
|
}
|