]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/videos/channel/video-channel.model.ts
Update channel updatedAt when uploading a video
[github/Chocobozzz/PeerTube.git] / shared / models / videos / channel / video-channel.model.ts
1 import { Actor } from '../../actors/actor.model'
2 import { Account, ActorImage } from '../../actors'
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 banner?: ActorImage
23 }
24
25 export interface VideoChannelSummary {
26 id: number
27 name: string
28 displayName: string
29 url: string
30 host: string
31 avatar?: ActorImage
32 }