]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - 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
CommitLineData
f4796856 1import { Account, ActorImage } from '../../actors'
d0800f76 2import { Actor } from '../../actors/actor.model'
72c7248b 3
3d527ba1 4export type ViewsPerDate = {
8165d00a
RK
5 date: Date
6 views: number
7}
8
60650c77
C
9export interface VideoChannel extends Actor {
10 displayName: string
72c7248b 11 description: string
2422c46b 12 support: string
72c7248b 13 isLocal: boolean
e024fd6a
C
14
15 updatedAt: Date | string
16
a4f99a76 17 ownerAccount?: Account
1ba471c5
C
18
19 videosCount?: number
3d527ba1 20 viewsPerDay?: ViewsPerDate[] // chronologically ordered
2cb03dc1 21
d0800f76 22 banners: ActorImage[]
23
24 // TODO: remove, deprecated in 4.2
25 banner: ActorImage
72c7248b 26}
418d092a
C
27
28export interface VideoChannelSummary {
29 id: number
418d092a
C
30 name: string
31 displayName: string
32 url: string
33 host: string
d0800f76 34
35 avatars: ActorImage[]
36
37 // TODO: remove, deprecated in 4.2
38 avatar: ActorImage
418d092a 39}