2018-08-14 14:59:53 +02:00
|
|
|
import { Actor } from '../../actors/actor.model'
|
2021-04-06 11:35:56 +02:00
|
|
|
import { Account, ActorImage } from '../../actors'
|
2017-10-24 19:41:09 +02:00
|
|
|
|
2020-03-30 12:06:46 +02:00
|
|
|
export type ViewsPerDate = {
|
2020-03-23 10:14:05 +01:00
|
|
|
date: Date
|
|
|
|
views: number
|
|
|
|
}
|
|
|
|
|
2018-01-11 09:35:50 +01:00
|
|
|
export interface VideoChannel extends Actor {
|
|
|
|
displayName: string
|
2017-10-24 19:41:09 +02:00
|
|
|
description: string
|
2018-02-15 14:46:26 +01:00
|
|
|
support: string
|
2017-10-24 19:41:09 +02:00
|
|
|
isLocal: boolean
|
2021-05-07 17:14:39 +02:00
|
|
|
|
|
|
|
updatedAt: Date | string
|
|
|
|
|
2018-05-23 11:38:00 +02:00
|
|
|
ownerAccount?: Account
|
2020-06-16 14:13:01 +02:00
|
|
|
|
|
|
|
videosCount?: number
|
2020-03-30 12:06:46 +02:00
|
|
|
viewsPerDay?: ViewsPerDate[] // chronologically ordered
|
2021-04-06 17:01:35 +02:00
|
|
|
|
|
|
|
banner?: ActorImage
|
2017-10-24 19:41:09 +02:00
|
|
|
}
|
2019-02-26 10:55:40 +01:00
|
|
|
|
|
|
|
export interface VideoChannelSummary {
|
|
|
|
id: number
|
|
|
|
name: string
|
|
|
|
displayName: string
|
|
|
|
url: string
|
|
|
|
host: string
|
2021-04-06 11:35:56 +02:00
|
|
|
avatar?: ActorImage
|
2019-02-26 10:55:40 +01:00
|
|
|
}
|