diff options
Diffstat (limited to 'shared/models/server')
-rw-r--r-- | shared/models/server/custom-config.model.ts | 4 | ||||
-rw-r--r-- | shared/models/server/job.model.ts | 26 | ||||
-rw-r--r-- | shared/models/server/server-config.model.ts | 13 | ||||
-rw-r--r-- | shared/models/server/server-stats.model.ts | 18 |
4 files changed, 36 insertions, 25 deletions
diff --git a/shared/models/server/custom-config.model.ts b/shared/models/server/custom-config.model.ts index 032b91a29..07e17bda2 100644 --- a/shared/models/server/custom-config.model.ts +++ b/shared/models/server/custom-config.model.ts | |||
@@ -97,7 +97,7 @@ export interface CustomConfig { | |||
97 | videos: { | 97 | videos: { |
98 | http: { | 98 | http: { |
99 | enabled: boolean | 99 | enabled: boolean |
100 | }, | 100 | } |
101 | torrent: { | 101 | torrent: { |
102 | enabled: boolean | 102 | enabled: boolean |
103 | } | 103 | } |
@@ -114,7 +114,7 @@ export interface CustomConfig { | |||
114 | 114 | ||
115 | followers: { | 115 | followers: { |
116 | instance: { | 116 | instance: { |
117 | enabled: boolean, | 117 | enabled: boolean |
118 | manualApproval: boolean | 118 | manualApproval: boolean |
119 | } | 119 | } |
120 | } | 120 | } |
diff --git a/shared/models/server/job.model.ts b/shared/models/server/job.model.ts index b82a633b2..cf29d20d4 100644 --- a/shared/models/server/job.model.ts +++ b/shared/models/server/job.model.ts | |||
@@ -1,22 +1,24 @@ | |||
1 | export type JobState = 'active' | 'completed' | 'failed' | 'waiting' | 'delayed' | 1 | export type JobState = 'active' | 'completed' | 'failed' | 'waiting' | 'delayed' |
2 | 2 | ||
3 | export type JobType = 'activitypub-http-unicast' | | 3 | export type JobType = |
4 | 'activitypub-http-broadcast' | | 4 | | 'activitypub-http-unicast' |
5 | 'activitypub-http-fetcher' | | 5 | | 'activitypub-http-broadcast' |
6 | 'activitypub-follow' | | 6 | | 'activitypub-http-fetcher' |
7 | 'video-file-import' | | 7 | | 'activitypub-follow' |
8 | 'video-transcoding' | | 8 | | 'video-file-import' |
9 | 'email' | | 9 | | 'video-transcoding' |
10 | 'video-import' | | 10 | | 'email' |
11 | 'videos-views' | | 11 | | 'video-import' |
12 | 'activitypub-refresher' | 12 | | 'videos-views' |
13 | | 'activitypub-refresher' | ||
14 | | 'video-redundancy' | ||
13 | 15 | ||
14 | export interface Job { | 16 | export interface Job { |
15 | id: number | 17 | id: number |
16 | state: JobState | 18 | state: JobState |
17 | type: JobType | 19 | type: JobType |
18 | data: any, | 20 | data: any |
19 | error: any, | 21 | error: any |
20 | createdAt: Date | string | 22 | createdAt: Date | string |
21 | finishedOn: Date | string | 23 | finishedOn: Date | string |
22 | processedOn: Date | string | 24 | processedOn: Date | string |
diff --git a/shared/models/server/server-config.model.ts b/shared/models/server/server-config.model.ts index f1bb2153c..c3976a346 100644 --- a/shared/models/server/server-config.model.ts +++ b/shared/models/server/server-config.model.ts | |||
@@ -28,6 +28,13 @@ export interface ServerConfig { | |||
28 | } | 28 | } |
29 | } | 29 | } |
30 | 30 | ||
31 | search: { | ||
32 | remoteUri: { | ||
33 | users: boolean | ||
34 | anonymous: boolean | ||
35 | } | ||
36 | } | ||
37 | |||
31 | plugin: { | 38 | plugin: { |
32 | registered: ServerConfigPlugin[] | 39 | registered: ServerConfigPlugin[] |
33 | } | 40 | } |
@@ -46,7 +53,7 @@ export interface ServerConfig { | |||
46 | } | 53 | } |
47 | 54 | ||
48 | signup: { | 55 | signup: { |
49 | allowed: boolean, | 56 | allowed: boolean |
50 | allowedForCurrentIP: boolean | 57 | allowedForCurrentIP: boolean |
51 | requiresEmailVerification: boolean | 58 | requiresEmailVerification: boolean |
52 | } | 59 | } |
@@ -97,7 +104,7 @@ export interface ServerConfig { | |||
97 | max: number | 104 | max: number |
98 | } | 105 | } |
99 | extensions: string[] | 106 | extensions: string[] |
100 | }, | 107 | } |
101 | file: { | 108 | file: { |
102 | extensions: string[] | 109 | extensions: string[] |
103 | } | 110 | } |
@@ -107,7 +114,7 @@ export interface ServerConfig { | |||
107 | file: { | 114 | file: { |
108 | size: { | 115 | size: { |
109 | max: number | 116 | max: number |
110 | }, | 117 | } |
111 | extensions: string[] | 118 | extensions: string[] |
112 | } | 119 | } |
113 | } | 120 | } |
diff --git a/shared/models/server/server-stats.model.ts b/shared/models/server/server-stats.model.ts index 74f3de5d3..11778e6ed 100644 --- a/shared/models/server/server-stats.model.ts +++ b/shared/models/server/server-stats.model.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { VideoRedundancyStrategy } from '../redundancy' | 1 | import { VideoRedundancyStrategyWithManual } from '../redundancy' |
2 | 2 | ||
3 | export interface ServerStats { | 3 | export interface ServerStats { |
4 | totalUsers: number | 4 | totalUsers: number |
@@ -13,11 +13,13 @@ export interface ServerStats { | |||
13 | totalInstanceFollowers: number | 13 | totalInstanceFollowers: number |
14 | totalInstanceFollowing: number | 14 | totalInstanceFollowing: number |
15 | 15 | ||
16 | videosRedundancy: { | 16 | videosRedundancy: VideosRedundancyStats[] |
17 | strategy: VideoRedundancyStrategy | 17 | } |
18 | totalSize: number | 18 | |
19 | totalUsed: number | 19 | export interface VideosRedundancyStats { |
20 | totalVideoFiles: number | 20 | strategy: VideoRedundancyStrategyWithManual |
21 | totalVideos: number | 21 | totalSize: number |
22 | }[] | 22 | totalUsed: number |
23 | totalVideoFiles: number | ||
24 | totalVideos: number | ||
23 | } | 25 | } |