diff options
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/common/index.ts | 1 | ||||
-rw-r--r-- | shared/models/common/result-list.model.ts (renamed from shared/models/result-list.model.ts) | 0 | ||||
-rw-r--r-- | shared/models/index.ts | 14 | ||||
-rw-r--r-- | shared/models/moderation/abuse/abuse-create.model.ts | 2 | ||||
-rw-r--r-- | shared/models/tokens/index.ts | 1 | ||||
-rw-r--r-- | shared/models/tokens/oauth-client-local.model.ts (renamed from shared/models/oauth-client-local.model.ts) | 0 | ||||
-rw-r--r-- | shared/models/videos/index.ts | 1 | ||||
-rw-r--r-- | shared/models/videos/playlist/index.ts | 1 | ||||
-rw-r--r-- | shared/models/videos/playlist/video-playlist-create-result.model.ts | 5 | ||||
-rw-r--r-- | shared/models/videos/playlist/video-playlist.model.ts | 2 | ||||
-rw-r--r-- | shared/models/videos/video-create-result.model.ts | 5 | ||||
-rw-r--r-- | shared/models/videos/video.model.ts | 2 |
12 files changed, 26 insertions, 8 deletions
diff --git a/shared/models/common/index.ts b/shared/models/common/index.ts new file mode 100644 index 000000000..4db85eff2 --- /dev/null +++ b/shared/models/common/index.ts | |||
@@ -0,0 +1 @@ | |||
export * from './result-list.model' | |||
diff --git a/shared/models/result-list.model.ts b/shared/models/common/result-list.model.ts index fcafcfb2f..fcafcfb2f 100644 --- a/shared/models/result-list.model.ts +++ b/shared/models/common/result-list.model.ts | |||
diff --git a/shared/models/index.ts b/shared/models/index.ts index 4db1f234e..5c2bc480e 100644 --- a/shared/models/index.ts +++ b/shared/models/index.ts | |||
@@ -1,16 +1,16 @@ | |||
1 | export * from './activitypub' | 1 | export * from './activitypub' |
2 | export * from './actors' | 2 | export * from './actors' |
3 | export * from './moderation' | ||
4 | export * from './custom-markup' | ||
5 | export * from './bulk' | 3 | export * from './bulk' |
6 | export * from './redundancy' | 4 | export * from './common' |
7 | export * from './users' | 5 | export * from './custom-markup' |
8 | export * from './videos' | ||
9 | export * from './feeds' | 6 | export * from './feeds' |
10 | export * from './joinpeertube' | 7 | export * from './joinpeertube' |
8 | export * from './moderation' | ||
11 | export * from './overviews' | 9 | export * from './overviews' |
12 | export * from './plugins' | 10 | export * from './plugins' |
11 | export * from './redundancy' | ||
13 | export * from './search' | 12 | export * from './search' |
14 | export * from './server' | 13 | export * from './server' |
15 | export * from './oauth-client-local.model' | 14 | export * from './tokens' |
16 | export * from './result-list.model' | 15 | export * from './users' |
16 | export * from './videos' | ||
diff --git a/shared/models/moderation/abuse/abuse-create.model.ts b/shared/models/moderation/abuse/abuse-create.model.ts index 0e7e9587f..7d35555c3 100644 --- a/shared/models/moderation/abuse/abuse-create.model.ts +++ b/shared/models/moderation/abuse/abuse-create.model.ts | |||
@@ -10,7 +10,7 @@ export interface AbuseCreate { | |||
10 | } | 10 | } |
11 | 11 | ||
12 | video?: { | 12 | video?: { |
13 | id: number | 13 | id: number | string |
14 | startAt?: number | 14 | startAt?: number |
15 | endAt?: number | 15 | endAt?: number |
16 | } | 16 | } |
diff --git a/shared/models/tokens/index.ts b/shared/models/tokens/index.ts new file mode 100644 index 000000000..fe130f153 --- /dev/null +++ b/shared/models/tokens/index.ts | |||
@@ -0,0 +1 @@ | |||
export * from './oauth-client-local.model' | |||
diff --git a/shared/models/oauth-client-local.model.ts b/shared/models/tokens/oauth-client-local.model.ts index 0c6ce6c5d..0c6ce6c5d 100644 --- a/shared/models/oauth-client-local.model.ts +++ b/shared/models/tokens/oauth-client-local.model.ts | |||
diff --git a/shared/models/videos/index.ts b/shared/models/videos/index.ts index 64f2c9df6..faa9b9868 100644 --- a/shared/models/videos/index.ts +++ b/shared/models/videos/index.ts | |||
@@ -35,3 +35,4 @@ export * from './video-transcoding-fps.model' | |||
35 | 35 | ||
36 | export * from './video-update.model' | 36 | export * from './video-update.model' |
37 | export * from './video.model' | 37 | export * from './video.model' |
38 | export * from './video-create-result.model' | ||
diff --git a/shared/models/videos/playlist/index.ts b/shared/models/videos/playlist/index.ts index 99f7e9bab..f11a4bd28 100644 --- a/shared/models/videos/playlist/index.ts +++ b/shared/models/videos/playlist/index.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | export * from './video-exist-in-playlist.model' | 1 | export * from './video-exist-in-playlist.model' |
2 | export * from './video-playlist-create-result.model' | ||
2 | export * from './video-playlist-create.model' | 3 | export * from './video-playlist-create.model' |
3 | export * from './video-playlist-element-create.model' | 4 | export * from './video-playlist-element-create.model' |
4 | export * from './video-playlist-element-update.model' | 5 | export * from './video-playlist-element-update.model' |
diff --git a/shared/models/videos/playlist/video-playlist-create-result.model.ts b/shared/models/videos/playlist/video-playlist-create-result.model.ts new file mode 100644 index 000000000..cd9b170ae --- /dev/null +++ b/shared/models/videos/playlist/video-playlist-create-result.model.ts | |||
@@ -0,0 +1,5 @@ | |||
1 | export interface VideoPlaylistCreateResult { | ||
2 | id: number | ||
3 | uuid: string | ||
4 | shortUUID: string | ||
5 | } | ||
diff --git a/shared/models/videos/playlist/video-playlist.model.ts b/shared/models/videos/playlist/video-playlist.model.ts index ab4171ad1..b8a9955d9 100644 --- a/shared/models/videos/playlist/video-playlist.model.ts +++ b/shared/models/videos/playlist/video-playlist.model.ts | |||
@@ -6,6 +6,8 @@ import { VideoPlaylistType } from './video-playlist-type.model' | |||
6 | export interface VideoPlaylist { | 6 | export interface VideoPlaylist { |
7 | id: number | 7 | id: number |
8 | uuid: string | 8 | uuid: string |
9 | shortUUID: string | ||
10 | |||
9 | isLocal: boolean | 11 | isLocal: boolean |
10 | 12 | ||
11 | url: string | 13 | url: string |
diff --git a/shared/models/videos/video-create-result.model.ts b/shared/models/videos/video-create-result.model.ts new file mode 100644 index 000000000..a9f8e25a0 --- /dev/null +++ b/shared/models/videos/video-create-result.model.ts | |||
@@ -0,0 +1,5 @@ | |||
1 | export interface VideoCreateResult { | ||
2 | id: number | ||
3 | uuid: string | ||
4 | shortUUID: string | ||
5 | } | ||
diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts index caefeff82..0e3e89f43 100644 --- a/shared/models/videos/video.model.ts +++ b/shared/models/videos/video.model.ts | |||
@@ -10,6 +10,8 @@ import { VideoStreamingPlaylist } from './video-streaming-playlist.model' | |||
10 | export interface Video { | 10 | export interface Video { |
11 | id: number | 11 | id: number |
12 | uuid: string | 12 | uuid: string |
13 | shortUUID: string | ||
14 | |||
13 | createdAt: Date | string | 15 | createdAt: Date | string |
14 | updatedAt: Date | string | 16 | updatedAt: Date | string |
15 | publishedAt: Date | string | 17 | publishedAt: Date | string |