diff options
Diffstat (limited to 'shared')
10 files changed, 11 insertions, 10 deletions
diff --git a/shared/models/pods/remote-video/remote-qadu-video-request.model.ts b/shared/models/pods/remote-video/remote-qadu-video-request.model.ts index 0f84e3f13..6128c5801 100644 --- a/shared/models/pods/remote-video/remote-qadu-video-request.model.ts +++ b/shared/models/pods/remote-video/remote-qadu-video-request.model.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | export interface RemoteQaduVideoData { | 1 | export interface RemoteQaduVideoData { |
2 | remoteId: string | 2 | uuid: string |
3 | views?: number | 3 | views?: number |
4 | likes?: number | 4 | likes?: number |
5 | dislikes?: number | 5 | dislikes?: number |
diff --git a/shared/models/pods/remote-video/remote-video-create-request.model.ts b/shared/models/pods/remote-video/remote-video-create-request.model.ts index 6babb0083..b6a570e42 100644 --- a/shared/models/pods/remote-video/remote-video-create-request.model.ts +++ b/shared/models/pods/remote-video/remote-video-create-request.model.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { RemoteVideoRequest } from './remote-video-request.model' | 1 | import { RemoteVideoRequest } from './remote-video-request.model' |
2 | 2 | ||
3 | export interface RemoteVideoCreateData { | 3 | export interface RemoteVideoCreateData { |
4 | remoteId: string | 4 | uuid: string |
5 | author: string | 5 | author: string |
6 | tags: string[] | 6 | tags: string[] |
7 | name: string | 7 | name: string |
diff --git a/shared/models/pods/remote-video/remote-video-event-request.model.ts b/shared/models/pods/remote-video/remote-video-event-request.model.ts index 84df1ca2f..ecc374750 100644 --- a/shared/models/pods/remote-video/remote-video-event-request.model.ts +++ b/shared/models/pods/remote-video/remote-video-event-request.model.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | export type RemoteVideoEventType = 'views' | 'likes' | 'dislikes' | 1 | export type RemoteVideoEventType = 'views' | 'likes' | 'dislikes' |
2 | 2 | ||
3 | export interface RemoteVideoEventData { | 3 | export interface RemoteVideoEventData { |
4 | remoteId: string | 4 | uuid: string |
5 | eventType: RemoteVideoEventType | 5 | eventType: RemoteVideoEventType |
6 | count: number | 6 | count: number |
7 | } | 7 | } |
diff --git a/shared/models/pods/remote-video/remote-video-remove-request.model.ts b/shared/models/pods/remote-video/remote-video-remove-request.model.ts index 95ee38661..0686dc8ab 100644 --- a/shared/models/pods/remote-video/remote-video-remove-request.model.ts +++ b/shared/models/pods/remote-video/remote-video-remove-request.model.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { RemoteVideoRequest } from './remote-video-request.model' | 1 | import { RemoteVideoRequest } from './remote-video-request.model' |
2 | 2 | ||
3 | export interface RemoteVideoRemoveData { | 3 | export interface RemoteVideoRemoveData { |
4 | remoteId: string | 4 | uuid: string |
5 | } | 5 | } |
6 | 6 | ||
7 | export interface RemoteVideoRemoveRequest extends RemoteVideoRequest { | 7 | export interface RemoteVideoRemoveRequest extends RemoteVideoRequest { |
diff --git a/shared/models/pods/remote-video/remote-video-report-abuse-request.model.ts b/shared/models/pods/remote-video/remote-video-report-abuse-request.model.ts index 9059c92e0..05ad132cf 100644 --- a/shared/models/pods/remote-video/remote-video-report-abuse-request.model.ts +++ b/shared/models/pods/remote-video/remote-video-report-abuse-request.model.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { RemoteVideoRequest } from './remote-video-request.model' | 1 | import { RemoteVideoRequest } from './remote-video-request.model' |
2 | 2 | ||
3 | export interface RemoteVideoReportAbuseData { | 3 | export interface RemoteVideoReportAbuseData { |
4 | videoRemoteId: string | 4 | videoUUID: string |
5 | reporterUsername: string | 5 | reporterUsername: string |
6 | reportReason: string | 6 | reportReason: string |
7 | } | 7 | } |
diff --git a/shared/models/pods/remote-video/remote-video-update-request.model.ts b/shared/models/pods/remote-video/remote-video-update-request.model.ts index 67ddbc1e4..805548563 100644 --- a/shared/models/pods/remote-video/remote-video-update-request.model.ts +++ b/shared/models/pods/remote-video/remote-video-update-request.model.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | export interface RemoteVideoUpdateData { | 1 | export interface RemoteVideoUpdateData { |
2 | remoteId: string | 2 | uuid: string |
3 | tags: string[] | 3 | tags: string[] |
4 | name: string | 4 | name: string |
5 | extname: string | 5 | extname: string |
diff --git a/shared/models/videos/user-video-rate.model.ts b/shared/models/videos/user-video-rate.model.ts index 4b9c574d8..d39a1c3d5 100644 --- a/shared/models/videos/user-video-rate.model.ts +++ b/shared/models/videos/user-video-rate.model.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { UserVideoRateType } from './user-video-rate.type' | 1 | import { UserVideoRateType } from './user-video-rate.type' |
2 | 2 | ||
3 | export interface UserVideoRate { | 3 | export interface UserVideoRate { |
4 | videoId: string | 4 | videoId: number |
5 | rating: UserVideoRateType | 5 | rating: UserVideoRateType |
6 | } | 6 | } |
diff --git a/shared/models/videos/video-abuse.model.ts b/shared/models/videos/video-abuse.model.ts index 72e32cbc7..e005a1fd5 100644 --- a/shared/models/videos/video-abuse.model.ts +++ b/shared/models/videos/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: string | 6 | videoId: number |
7 | createdAt: Date | 7 | createdAt: Date |
8 | } | 8 | } |
diff --git a/shared/models/videos/video-blacklist.model.ts b/shared/models/videos/video-blacklist.model.ts index f894bb065..6086250ac 100644 --- a/shared/models/videos/video-blacklist.model.ts +++ b/shared/models/videos/video-blacklist.model.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | export interface BlacklistedVideo { | 1 | export interface BlacklistedVideo { |
2 | id: number | 2 | id: number |
3 | videoId: string | 3 | videoId: number |
4 | createdAt: Date | 4 | createdAt: Date |
5 | } | 5 | } |
diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts index 2e35f005c..d472cc8fb 100644 --- a/shared/models/videos/video.model.ts +++ b/shared/models/videos/video.model.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | export interface Video { | 1 | export interface Video { |
2 | id: string | 2 | id: number |
3 | uuid: string | ||
3 | author: string | 4 | author: string |
4 | createdAt: Date | 5 | createdAt: Date |
5 | categoryLabel: string | 6 | categoryLabel: string |