]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/videos/video.model.ts
Add lazy description on server
[github/Chocobozzz/PeerTube.git] / shared / models / videos / video.model.ts
index 82c8763d0ec8767aa052a3ac3f87e897c0ef3779..1490d345c8c9093be7ee3b537dd4e20b5f807094 100644 (file)
@@ -1,15 +1,20 @@
+import { VideoChannel } from './video-channel.model'
+
 export interface VideoFile {
   magnetUri: string
   resolution: number
   resolutionLabel: string
   size: number // Bytes
+  torrentUrl: string
+  fileUrl: string
 }
 
 export interface Video {
   id: number
   uuid: string
   author: string
-  createdAt: Date
+  createdAt: Date | string
+  updatedAt: Date | string
   categoryLabel: string
   category: number
   licenceLabel: string
@@ -24,9 +29,15 @@ export interface Video {
   tags: string[]
   thumbnailPath: string
   previewPath: string
+  embedPath: string
   views: number
   likes: number
   dislikes: number
   nsfw: boolean
+}
+
+export interface VideoDetails extends Video {
+  descriptionPath: string,
+  channel: VideoChannel
   files: VideoFile[]
 }