]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - 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
CommitLineData
59c76ffa 1import { Actor } from '../../actors/actor.model'
f4796856 2import { Account, ActorImage } from '../../actors'
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
C
21
22 banner?: ActorImage
72c7248b 23}
418d092a
C
24
25export interface VideoChannelSummary {
26 id: number
418d092a
C
27 name: string
28 displayName: string
29 url: string
30 host: string
f4796856 31 avatar?: ActorImage
418d092a 32}