aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-15 14:46:26 +0100
committerChocobozzz <me@florianbigard.com>2018-02-15 15:29:07 +0100
commit2422c46b27790d94fd29a7092170cee5a1b56008 (patch)
treed5c1942ce20cadb27a551d87c789edfe92f5b105 /shared/models/videos
parent34cbef8c6cc912143a421413bdd832c4adcc556a (diff)
downloadPeerTube-2422c46b27790d94fd29a7092170cee5a1b56008.tar.gz
PeerTube-2422c46b27790d94fd29a7092170cee5a1b56008.tar.zst
PeerTube-2422c46b27790d94fd29a7092170cee5a1b56008.zip
Implement support field in video and video channel
Diffstat (limited to 'shared/models/videos')
-rw-r--r--shared/models/videos/video-channel-create.model.ts1
-rw-r--r--shared/models/videos/video-channel-update.model.ts3
-rw-r--r--shared/models/videos/video-channel.model.ts1
-rw-r--r--shared/models/videos/video-create.model.ts1
-rw-r--r--shared/models/videos/video-update.model.ts1
-rw-r--r--shared/models/videos/video.model.ts1
6 files changed, 7 insertions, 1 deletions
diff --git a/shared/models/videos/video-channel-create.model.ts b/shared/models/videos/video-channel-create.model.ts
index f309c8f45..cd6bae965 100644
--- a/shared/models/videos/video-channel-create.model.ts
+++ b/shared/models/videos/video-channel-create.model.ts
@@ -1,4 +1,5 @@
1export interface VideoChannelCreate { 1export interface VideoChannelCreate {
2 name: string 2 name: string
3 description?: string 3 description?: string
4 support?: string
4} 5}
diff --git a/shared/models/videos/video-channel-update.model.ts b/shared/models/videos/video-channel-update.model.ts
index 4e98e39a8..73a0a6709 100644
--- a/shared/models/videos/video-channel-update.model.ts
+++ b/shared/models/videos/video-channel-update.model.ts
@@ -1,4 +1,5 @@
1export interface VideoChannelUpdate { 1export interface VideoChannelUpdate {
2 name: string 2 name: string
3 description: string 3 description?: string
4 support?: string
4} 5}
diff --git a/shared/models/videos/video-channel.model.ts b/shared/models/videos/video-channel.model.ts
index b164fb555..470295a81 100644
--- a/shared/models/videos/video-channel.model.ts
+++ b/shared/models/videos/video-channel.model.ts
@@ -4,6 +4,7 @@ import { Video } from './video.model'
4export interface VideoChannel extends Actor { 4export interface VideoChannel extends Actor {
5 displayName: string 5 displayName: string
6 description: string 6 description: string
7 support: string
7 isLocal: boolean 8 isLocal: boolean
8 owner?: { 9 owner?: {
9 name: string 10 name: string
diff --git a/shared/models/videos/video-create.model.ts b/shared/models/videos/video-create.model.ts
index 139c2579e..567a4c79a 100644
--- a/shared/models/videos/video-create.model.ts
+++ b/shared/models/videos/video-create.model.ts
@@ -5,6 +5,7 @@ export interface VideoCreate {
5 licence?: number 5 licence?: number
6 language?: number 6 language?: number
7 description?: string 7 description?: string
8 support?: string
8 channelId: number 9 channelId: number
9 nsfw: boolean 10 nsfw: boolean
10 name: string 11 name: string
diff --git a/shared/models/videos/video-update.model.ts b/shared/models/videos/video-update.model.ts
index fc772f77b..0b26484d7 100644
--- a/shared/models/videos/video-update.model.ts
+++ b/shared/models/videos/video-update.model.ts
@@ -6,6 +6,7 @@ export interface VideoUpdate {
6 licence?: number 6 licence?: number
7 language?: number 7 language?: number
8 description?: string 8 description?: string
9 support?: string
9 privacy?: VideoPrivacy 10 privacy?: VideoPrivacy
10 tags?: string[] 11 tags?: string[]
11 commentsEnabled?: boolean 12 commentsEnabled?: boolean
diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts
index 39d1edc06..deb81da44 100644
--- a/shared/models/videos/video.model.ts
+++ b/shared/models/videos/video.model.ts
@@ -41,6 +41,7 @@ export interface VideoDetails extends Video {
41 privacy: VideoPrivacy 41 privacy: VideoPrivacy
42 privacyLabel: string 42 privacyLabel: string
43 descriptionPath: string 43 descriptionPath: string
44 support: string
44 channel: VideoChannel 45 channel: VideoChannel
45 tags: string[] 46 tags: string[]
46 files: VideoFile[] 47 files: VideoFile[]