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