mirror of https://github.com/Chocobozzz/PeerTube
27 lines
546 B
TypeScript
27 lines
546 B
TypeScript
import { Actor } from '../../actors/actor.model'
|
|
import { Account } from '../../actors/index'
|
|
import { Avatar } from '../../avatars'
|
|
|
|
export type ViewsPerDate = {
|
|
date: Date
|
|
views: number
|
|
}
|
|
|
|
export interface VideoChannel extends Actor {
|
|
displayName: string
|
|
description: string
|
|
support: string
|
|
isLocal: boolean
|
|
ownerAccount?: Account
|
|
viewsPerDay?: ViewsPerDate[] // chronologically ordered
|
|
}
|
|
|
|
export interface VideoChannelSummary {
|
|
id: number
|
|
name: string
|
|
displayName: string
|
|
url: string
|
|
host: string
|
|
avatar?: Avatar
|
|
}
|