aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/pods/remote-video/remote-video-create-request.model.ts
blob: cb20dfa03d644b4240176b3e98e5964d0bc00693 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { RemoteVideoRequest } from './remote-video-request.model'

export interface RemoteVideoCreateData {
  uuid: string
  channelUUID: string
  tags: string[]
  name: string
  category: number
  licence: number
  language: number
  nsfw: boolean
  truncatedDescription: string
  duration: number
  createdAt: Date
  updatedAt: Date
  views: number
  likes: number
  dislikes: number
  thumbnailData: string
  files: {
    infoHash: string
    extname: string
    resolution: number
    size: number
  }[]
}

export interface RemoteVideoCreateRequest extends RemoteVideoRequest {
  type: 'add-video'
  data: RemoteVideoCreateData
}