]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/videos/channel/video-channel.model.ts
Add videos count in channels list
[github/Chocobozzz/PeerTube.git] / shared / models / videos / channel / video-channel.model.ts
index 14a813f8f752eea00d660064c90c5261a4c8fa4a..32829e92a053194467b5a47462dc6573ab1603a2 100644 (file)
@@ -2,17 +2,24 @@ import { Actor } from '../../actors/actor.model'
 import { Account } from '../../actors/index'
 import { Avatar } from '../../avatars'
 
+export type ViewsPerDate = {
+  date: Date
+  views: number
+}
+
 export interface VideoChannel extends Actor {
   displayName: string
   description: string
   support: string
   isLocal: boolean
   ownerAccount?: Account
+
+  videosCount?: number
+  viewsPerDay?: ViewsPerDate[] // chronologically ordered
 }
 
 export interface VideoChannelSummary {
   id: number
-  uuid: string
   name: string
   displayName: string
   url: string