aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/client-local.model.ts4
-rw-r--r--shared/models/index.ts2
-rw-r--r--shared/models/server-config.model.ts5
-rw-r--r--shared/models/user-video-rate.model.ts6
-rw-r--r--shared/models/video-abuse.model.ts2
5 files changed, 18 insertions, 1 deletions
diff --git a/shared/models/client-local.model.ts b/shared/models/client-local.model.ts
new file mode 100644
index 000000000..c27963e88
--- /dev/null
+++ b/shared/models/client-local.model.ts
@@ -0,0 +1,4 @@
1export interface ClientLocal {
2 client_id: string
3 client_secret: string
4}
diff --git a/shared/models/index.ts b/shared/models/index.ts
index 1ddc8545f..fffac795e 100644
--- a/shared/models/index.ts
+++ b/shared/models/index.ts
@@ -1,3 +1,4 @@
1export * from './client-local.model'
1export * from './job.model' 2export * from './job.model'
2export * from './pod.model' 3export * from './pod.model'
3export * from './request-scheduler.model' 4export * from './request-scheduler.model'
@@ -6,3 +7,4 @@ export * from './user.model'
6export * from './video-abuse.model' 7export * from './video-abuse.model'
7export * from './video-blacklist.model' 8export * from './video-blacklist.model'
8export * from './video.model' 9export * from './video.model'
10export * from './server-config.model'
diff --git a/shared/models/server-config.model.ts b/shared/models/server-config.model.ts
new file mode 100644
index 000000000..a39156963
--- /dev/null
+++ b/shared/models/server-config.model.ts
@@ -0,0 +1,5 @@
1export interface ServerConfig {
2 signup: {
3 enabled: boolean
4 }
5}
diff --git a/shared/models/user-video-rate.model.ts b/shared/models/user-video-rate.model.ts
index d48774a4b..b770f4073 100644
--- a/shared/models/user-video-rate.model.ts
+++ b/shared/models/user-video-rate.model.ts
@@ -1 +1,7 @@
1export type VideoRateType = 'like' | 'dislike' 1export type VideoRateType = 'like' | 'dislike'
2export type UserVideoRateType = 'like' | 'dislike' | 'none'
3
4export interface UserVideoRate {
5 videoId: string
6 rating: UserVideoRateType
7}
diff --git a/shared/models/video-abuse.model.ts b/shared/models/video-abuse.model.ts
index e005a1fd5..72e32cbc7 100644
--- a/shared/models/video-abuse.model.ts
+++ b/shared/models/video-abuse.model.ts
@@ -3,6 +3,6 @@ export interface VideoAbuse {
3 reporterPodHost: string 3 reporterPodHost: string
4 reason: string 4 reason: string
5 reporterUsername: string 5 reporterUsername: string
6 videoId: number 6 videoId: string
7 createdAt: Date 7 createdAt: Date
8} 8}