]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/videos/channel/video-channel.model.ts
View stats for channels
[github/Chocobozzz/PeerTube.git] / shared / models / videos / channel / video-channel.model.ts
index de4c26b3dd5236cdcd9e116c2bfc30a53d316f95..5fe6609d907275543c09268d6ca8f66ed66120d7 100644 (file)
@@ -2,12 +2,18 @@ import { Actor } from '../../actors/actor.model'
 import { Account } from '../../actors/index'
 import { Avatar } from '../../avatars'
 
+export type viewsPerTime = {
+  date: Date
+  views: number
+}
+
 export interface VideoChannel extends Actor {
   displayName: string
   description: string
   support: string
   isLocal: boolean
   ownerAccount?: Account
+  viewsPerDay?: viewsPerTime[] // chronologically ordered
 }
 
 export interface VideoChannelSummary {