]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/videos/channel/video-channel.model.ts
Introduce channels command
[github/Chocobozzz/PeerTube.git] / shared / models / videos / channel / video-channel.model.ts
index de4c26b3dd5236cdcd9e116c2bfc30a53d316f95..5393f924da89b60748d3a482eddbf610bf74ebbb 100644 (file)
@@ -1,13 +1,25 @@
 import { Actor } from '../../actors/actor.model'
-import { Account } from '../../actors/index'
-import { Avatar } from '../../avatars'
+import { Account, ActorImage } from '../../actors'
+
+export type ViewsPerDate = {
+  date: Date
+  views: number
+}
 
 export interface VideoChannel extends Actor {
   displayName: string
   description: string
   support: string
   isLocal: boolean
+
+  updatedAt: Date | string
+
   ownerAccount?: Account
+
+  videosCount?: number
+  viewsPerDay?: ViewsPerDate[] // chronologically ordered
+
+  banner?: ActorImage
 }
 
 export interface VideoChannelSummary {
@@ -16,5 +28,5 @@ export interface VideoChannelSummary {
   displayName: string
   url: string
   host: string
-  avatar?: Avatar
+  avatar?: ActorImage
 }