aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/videos
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/videos')
-rw-r--r--shared/models/videos/abuse/index.ts5
-rw-r--r--shared/models/videos/blacklist/index.ts3
-rw-r--r--shared/models/videos/caption/index.ts2
-rw-r--r--shared/models/videos/channel/index.ts3
-rw-r--r--shared/models/videos/import/index.ts3
-rw-r--r--shared/models/videos/index.ts63
-rw-r--r--shared/models/videos/playlist/index.ts10
-rw-r--r--shared/models/videos/rate/index.ts5
-rw-r--r--shared/models/videos/video-file-metadata.ts4
-rw-r--r--shared/models/videos/video-sort-field.type.ts8
10 files changed, 71 insertions, 35 deletions
diff --git a/shared/models/videos/abuse/index.ts b/shared/models/videos/abuse/index.ts
new file mode 100644
index 000000000..bdeef1dad
--- /dev/null
+++ b/shared/models/videos/abuse/index.ts
@@ -0,0 +1,5 @@
1export * from './video-abuse-create.model'
2export * from './video-abuse-state.model'
3export * from './video-abuse-update.model'
4export * from './video-abuse-video-is.type'
5export * from './video-abuse.model'
diff --git a/shared/models/videos/blacklist/index.ts b/shared/models/videos/blacklist/index.ts
new file mode 100644
index 000000000..66082be34
--- /dev/null
+++ b/shared/models/videos/blacklist/index.ts
@@ -0,0 +1,3 @@
1export * from './video-blacklist.model'
2export * from './video-blacklist-create.model'
3export * from './video-blacklist-update.model'
diff --git a/shared/models/videos/caption/index.ts b/shared/models/videos/caption/index.ts
new file mode 100644
index 000000000..2a5ff512d
--- /dev/null
+++ b/shared/models/videos/caption/index.ts
@@ -0,0 +1,2 @@
1export * from './video-caption.model'
2export * from './video-caption-update.model'
diff --git a/shared/models/videos/channel/index.ts b/shared/models/videos/channel/index.ts
new file mode 100644
index 000000000..9dbaa42da
--- /dev/null
+++ b/shared/models/videos/channel/index.ts
@@ -0,0 +1,3 @@
1export * from './video-channel-create.model'
2export * from './video-channel-update.model'
3export * from './video-channel.model'
diff --git a/shared/models/videos/import/index.ts b/shared/models/videos/import/index.ts
new file mode 100644
index 000000000..8884ee8f2
--- /dev/null
+++ b/shared/models/videos/import/index.ts
@@ -0,0 +1,3 @@
1export * from './video-import-create.model'
2export * from './video-import-state.enum'
3export * from './video-import.model'
diff --git a/shared/models/videos/index.ts b/shared/models/videos/index.ts
index 58bd1ebd7..e1d96b40a 100644
--- a/shared/models/videos/index.ts
+++ b/shared/models/videos/index.ts
@@ -1,41 +1,38 @@
1export * from './rate/user-video-rate-update.model' 1export * from './abuse'
2export * from './rate/user-video-rate.model' 2export * from './blacklist'
3export * from './rate/account-video-rate.model' 3export * from './caption'
4export * from './rate/user-video-rate.type' 4export * from './channel'
5export * from './abuse/video-abuse-state.model' 5export * from './import'
6export * from './abuse/video-abuse-create.model' 6export * from './playlist'
7export * from './abuse/video-abuse-reason.model' 7export * from './rate'
8export * from './abuse/video-abuse.model' 8
9export * from './abuse/video-abuse-update.model' 9export * from './nsfw-policy.type'
10export * from './blacklist/video-blacklist.model' 10
11export * from './blacklist/video-blacklist-create.model' 11export * from './thumbnail.type'
12export * from './blacklist/video-blacklist-update.model' 12
13export * from './channel/video-channel-create.model' 13export * from './video-change-ownership-accept.model'
14export * from './channel/video-channel-update.model'
15export * from './channel/video-channel.model'
16export * from './playlist/video-playlist-create.model'
17export * from './playlist/video-playlist-element-create.model'
18export * from './playlist/video-playlist-element-update.model'
19export * from './playlist/video-playlist-privacy.model'
20export * from './playlist/video-playlist-type.model'
21export * from './playlist/video-playlist-update.model'
22export * from './playlist/video-playlist.model'
23export * from './playlist/video-playlist-element.model'
24export * from './video-change-ownership.model'
25export * from './video-change-ownership-create.model' 14export * from './video-change-ownership-create.model'
15export * from './video-change-ownership.model'
16
17export * from './video-comment.model'
18export * from './video-constant.model'
26export * from './video-create.model' 19export * from './video-create.model'
20export * from './video-file-metadata'
27export * from './video-file.model' 21export * from './video-file.model'
22
28export * from './video-privacy.enum' 23export * from './video-privacy.enum'
24export * from './video-query.type'
29export * from './video-rate.type' 25export * from './video-rate.type'
30export * from './video-resolution.enum' 26export * from './video-resolution.enum'
31export * from './video-update.model' 27
32export * from './video.model' 28export * from './video-schedule-update.model'
33export * from './video-query.type' 29export * from './video-sort-field.type'
34export * from './video-state.enum' 30export * from './video-state.enum'
31
32export * from './video-streaming-playlist.model'
33export * from './video-streaming-playlist.type'
34
35export * from './video-transcoding-fps.model' 35export * from './video-transcoding-fps.model'
36export * from './caption/video-caption.model' 36
37export * from './caption/video-caption-update.model' 37export * from './video-update.model'
38export * from './import/video-import-create.model' 38export * from './video.model'
39export * from './import/video-import-state.enum'
40export * from './import/video-import.model'
41export * from './video-constant.model'
diff --git a/shared/models/videos/playlist/index.ts b/shared/models/videos/playlist/index.ts
new file mode 100644
index 000000000..99f7e9bab
--- /dev/null
+++ b/shared/models/videos/playlist/index.ts
@@ -0,0 +1,10 @@
1export * from './video-exist-in-playlist.model'
2export * from './video-playlist-create.model'
3export * from './video-playlist-element-create.model'
4export * from './video-playlist-element-update.model'
5export * from './video-playlist-element.model'
6export * from './video-playlist-privacy.model'
7export * from './video-playlist-reorder.model'
8export * from './video-playlist-type.model'
9export * from './video-playlist-update.model'
10export * from './video-playlist.model'
diff --git a/shared/models/videos/rate/index.ts b/shared/models/videos/rate/index.ts
new file mode 100644
index 000000000..06aa691bd
--- /dev/null
+++ b/shared/models/videos/rate/index.ts
@@ -0,0 +1,5 @@
1
2export * from './user-video-rate-update.model'
3export * from './user-video-rate.model'
4export * from './account-video-rate.model'
5export * from './user-video-rate.type'
diff --git a/shared/models/videos/video-file-metadata.ts b/shared/models/videos/video-file-metadata.ts
index 15683cacf..010bf7cf5 100644
--- a/shared/models/videos/video-file-metadata.ts
+++ b/shared/models/videos/video-file-metadata.ts
@@ -1,5 +1,5 @@
1import { FfprobeData } from "fluent-ffmpeg" 1import { FfprobeData } from 'fluent-ffmpeg'
2import { DeepOmit } from "@server/models/utils" 2import { DeepOmit } from '../../core-utils'
3 3
4export type VideoFileMetadataModel = DeepOmit<FfprobeData, 'filename'> 4export type VideoFileMetadataModel = DeepOmit<FfprobeData, 'filename'>
5 5
diff --git a/shared/models/videos/video-sort-field.type.ts b/shared/models/videos/video-sort-field.type.ts
new file mode 100644
index 000000000..f2e70f5fa
--- /dev/null
+++ b/shared/models/videos/video-sort-field.type.ts
@@ -0,0 +1,8 @@
1export type VideoSortField =
2 'name' | '-name' |
3 'duration' | '-duration' |
4 'publishedAt' | '-publishedAt' |
5 'createdAt' | '-createdAt' |
6 'views' | '-views' |
7 'likes' | '-likes' |
8 'trending' | '-trending'