From d4a8e7a65f97bb3257facc13e1ae8ffdbad61ddb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 28 Jun 2021 17:30:59 +0200 Subject: Support short uuid for GET video/playlist --- shared/models/videos/index.ts | 1 + shared/models/videos/playlist/index.ts | 1 + shared/models/videos/playlist/video-playlist-create-result.model.ts | 5 +++++ shared/models/videos/playlist/video-playlist.model.ts | 2 ++ shared/models/videos/video-create-result.model.ts | 5 +++++ shared/models/videos/video.model.ts | 2 ++ 6 files changed, 16 insertions(+) create mode 100644 shared/models/videos/playlist/video-playlist-create-result.model.ts create mode 100644 shared/models/videos/video-create-result.model.ts (limited to 'shared/models/videos') 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' export * from './video-update.model' export * from './video.model' +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 @@ export * from './video-exist-in-playlist.model' +export * from './video-playlist-create-result.model' export * from './video-playlist-create.model' export * from './video-playlist-element-create.model' 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 @@ +export interface VideoPlaylistCreateResult { + id: number + uuid: string + shortUUID: string +} 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' export interface VideoPlaylist { id: number uuid: string + shortUUID: string + isLocal: boolean 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 @@ +export interface VideoCreateResult { + id: number + uuid: string + shortUUID: string +} 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' export interface Video { id: number uuid: string + shortUUID: string + createdAt: Date | string updatedAt: Date | string publishedAt: Date | string -- cgit v1.2.3