]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/videos/channel/video-channel.model.ts
Add new player string to custom translations
[github/Chocobozzz/PeerTube.git] / shared / models / videos / channel / video-channel.model.ts
1 import { Account, ActorImage } from '../../actors'
2 import { Actor } from '../../actors/actor.model'
3
4 export type ViewsPerDate = {
5 date: Date
6 views: number
7 }
8
9 export interface VideoChannel extends Actor {
10 displayName: string
11 description: string
12 support: string
13 isLocal: boolean
14
15 updatedAt: Date | string
16
17 ownerAccount?: Account
18
19 videosCount?: number
20 viewsPerDay?: ViewsPerDate[] // chronologically ordered
21
22 banners: ActorImage[]
23
24 // TODO: remove, deprecated in 4.2
25 banner: ActorImage
26 }
27
28 export interface VideoChannelSummary {
29 id: number
30 name: string
31 displayName: string
32 url: string
33 host: string
34
35 avatars: ActorImage[]
36
37 // TODO: remove, deprecated in 4.2
38 avatar: ActorImage
39 }