diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/server/custom-config.model.ts | 1 | ||||
-rw-r--r-- | shared/models/server/server-config.model.ts | 1 | ||||
-rw-r--r-- | shared/models/users/user-create.model.ts | 1 | ||||
-rw-r--r-- | shared/models/users/user-update.model.ts | 1 | ||||
-rw-r--r-- | shared/models/users/user-video-quota.model.ts | 1 | ||||
-rw-r--r-- | shared/models/users/user.model.ts | 1 |
6 files changed, 6 insertions, 0 deletions
diff --git a/shared/models/server/custom-config.model.ts b/shared/models/server/custom-config.model.ts index d70c757b6..2f5cebf7f 100644 --- a/shared/models/server/custom-config.model.ts +++ b/shared/models/server/custom-config.model.ts | |||
@@ -42,6 +42,7 @@ export interface CustomConfig { | |||
42 | 42 | ||
43 | user: { | 43 | user: { |
44 | videoQuota: number | 44 | videoQuota: number |
45 | videoQuotaDaily: number | ||
45 | } | 46 | } |
46 | 47 | ||
47 | transcoding: { | 48 | transcoding: { |
diff --git a/shared/models/server/server-config.model.ts b/shared/models/server/server-config.model.ts index 8cb087234..9bbeb14d2 100644 --- a/shared/models/server/server-config.model.ts +++ b/shared/models/server/server-config.model.ts | |||
@@ -66,5 +66,6 @@ export interface ServerConfig { | |||
66 | 66 | ||
67 | user: { | 67 | user: { |
68 | videoQuota: number | 68 | videoQuota: number |
69 | videoQuotaDaily: number | ||
69 | } | 70 | } |
70 | } | 71 | } |
diff --git a/shared/models/users/user-create.model.ts b/shared/models/users/user-create.model.ts index 65830f55e..08be4db05 100644 --- a/shared/models/users/user-create.model.ts +++ b/shared/models/users/user-create.model.ts | |||
@@ -5,5 +5,6 @@ export interface UserCreate { | |||
5 | password: string | 5 | password: string |
6 | email: string | 6 | email: string |
7 | videoQuota: number | 7 | videoQuota: number |
8 | videoQuotaDaily: number | ||
8 | role: UserRole | 9 | role: UserRole |
9 | } | 10 | } |
diff --git a/shared/models/users/user-update.model.ts b/shared/models/users/user-update.model.ts index 96b454b7c..ce866fb18 100644 --- a/shared/models/users/user-update.model.ts +++ b/shared/models/users/user-update.model.ts | |||
@@ -3,5 +3,6 @@ import { UserRole } from './user-role' | |||
3 | export interface UserUpdate { | 3 | export interface UserUpdate { |
4 | email?: string | 4 | email?: string |
5 | videoQuota?: number | 5 | videoQuota?: number |
6 | videoQuotaDaily?: number | ||
6 | role?: UserRole | 7 | role?: UserRole |
7 | } | 8 | } |
diff --git a/shared/models/users/user-video-quota.model.ts b/shared/models/users/user-video-quota.model.ts index b856fd9fc..a24871d71 100644 --- a/shared/models/users/user-video-quota.model.ts +++ b/shared/models/users/user-video-quota.model.ts | |||
@@ -1,3 +1,4 @@ | |||
1 | export interface UserVideoQuota { | 1 | export interface UserVideoQuota { |
2 | videoQuotaUsed: number | 2 | videoQuotaUsed: number |
3 | videoQuotaUsedDaily: number | ||
3 | } | 4 | } |
diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts index 455211aa3..8147dc48e 100644 --- a/shared/models/users/user.model.ts +++ b/shared/models/users/user.model.ts | |||
@@ -11,6 +11,7 @@ export interface User { | |||
11 | autoPlayVideo: boolean | 11 | autoPlayVideo: boolean |
12 | role: UserRole | 12 | role: UserRole |
13 | videoQuota: number | 13 | videoQuota: number |
14 | videoQuotaDaily: number | ||
14 | createdAt: Date | 15 | createdAt: Date |
15 | account: Account | 16 | account: Account |
16 | videoChannels?: VideoChannel[] | 17 | videoChannels?: VideoChannel[] |