From bd45d503e5d007e730f4e81dccd7e7864c9a85cc Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 6 Aug 2020 14:58:01 +0200 Subject: Reorganize shared models --- shared/models/videos/blacklist/video-blacklist.model.ts | 2 +- shared/models/videos/import/video-import-state.enum.ts | 2 +- shared/models/videos/playlist/video-playlist-element.model.ts | 2 +- shared/models/videos/playlist/video-playlist-privacy.model.ts | 2 +- shared/models/videos/playlist/video-playlist-type.model.ts | 2 +- shared/models/videos/thumbnail.type.ts | 2 +- shared/models/videos/video-change-ownership.model.ts | 2 +- shared/models/videos/video-privacy.enum.ts | 2 +- shared/models/videos/video-resolution.enum.ts | 2 +- shared/models/videos/video-state.enum.ts | 2 +- shared/models/videos/video-streaming-playlist.type.ts | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) (limited to 'shared/models/videos') diff --git a/shared/models/videos/blacklist/video-blacklist.model.ts b/shared/models/videos/blacklist/video-blacklist.model.ts index a6e0ef175..982a34592 100644 --- a/shared/models/videos/blacklist/video-blacklist.model.ts +++ b/shared/models/videos/blacklist/video-blacklist.model.ts @@ -1,6 +1,6 @@ import { Video } from '../video.model' -export enum VideoBlacklistType { +export const enum VideoBlacklistType { MANUAL = 1, AUTO_BEFORE_PUBLISHED = 2 } diff --git a/shared/models/videos/import/video-import-state.enum.ts b/shared/models/videos/import/video-import-state.enum.ts index 8421b8ca7..33dd83f88 100644 --- a/shared/models/videos/import/video-import-state.enum.ts +++ b/shared/models/videos/import/video-import-state.enum.ts @@ -1,4 +1,4 @@ -export enum VideoImportState { +export const enum VideoImportState { PENDING = 1, SUCCESS = 2, FAILED = 3, diff --git a/shared/models/videos/playlist/video-playlist-element.model.ts b/shared/models/videos/playlist/video-playlist-element.model.ts index 9a1203892..df9e3b5cf 100644 --- a/shared/models/videos/playlist/video-playlist-element.model.ts +++ b/shared/models/videos/playlist/video-playlist-element.model.ts @@ -1,6 +1,6 @@ import { Video } from '../video.model' -export enum VideoPlaylistElementType { +export const enum VideoPlaylistElementType { REGULAR = 0, DELETED = 1, PRIVATE = 2, diff --git a/shared/models/videos/playlist/video-playlist-privacy.model.ts b/shared/models/videos/playlist/video-playlist-privacy.model.ts index 96e5e2211..480e1f104 100644 --- a/shared/models/videos/playlist/video-playlist-privacy.model.ts +++ b/shared/models/videos/playlist/video-playlist-privacy.model.ts @@ -1,4 +1,4 @@ -export enum VideoPlaylistPrivacy { +export const enum VideoPlaylistPrivacy { PUBLIC = 1, UNLISTED = 2, PRIVATE = 3 diff --git a/shared/models/videos/playlist/video-playlist-type.model.ts b/shared/models/videos/playlist/video-playlist-type.model.ts index 49233b743..7f51a6354 100644 --- a/shared/models/videos/playlist/video-playlist-type.model.ts +++ b/shared/models/videos/playlist/video-playlist-type.model.ts @@ -1,4 +1,4 @@ -export enum VideoPlaylistType { +export const enum VideoPlaylistType { REGULAR = 1, WATCH_LATER = 2 } diff --git a/shared/models/videos/thumbnail.type.ts b/shared/models/videos/thumbnail.type.ts index d6c2bef7b..6907b2802 100644 --- a/shared/models/videos/thumbnail.type.ts +++ b/shared/models/videos/thumbnail.type.ts @@ -1,4 +1,4 @@ -export enum ThumbnailType { +export const enum ThumbnailType { MINIATURE = 1, PREVIEW = 2 } diff --git a/shared/models/videos/video-change-ownership.model.ts b/shared/models/videos/video-change-ownership.model.ts index a9b1a17f3..669c7f3e7 100644 --- a/shared/models/videos/video-change-ownership.model.ts +++ b/shared/models/videos/video-change-ownership.model.ts @@ -10,7 +10,7 @@ export interface VideoChangeOwnership { createdAt: Date } -export enum VideoChangeOwnershipStatus { +export const enum VideoChangeOwnershipStatus { WAITING = 'WAITING', ACCEPTED = 'ACCEPTED', REFUSED = 'REFUSED' diff --git a/shared/models/videos/video-privacy.enum.ts b/shared/models/videos/video-privacy.enum.ts index 17ed0c9bb..39fd0529f 100644 --- a/shared/models/videos/video-privacy.enum.ts +++ b/shared/models/videos/video-privacy.enum.ts @@ -1,4 +1,4 @@ -export enum VideoPrivacy { +export const enum VideoPrivacy { PUBLIC = 1, UNLISTED = 2, PRIVATE = 3, diff --git a/shared/models/videos/video-resolution.enum.ts b/shared/models/videos/video-resolution.enum.ts index 8b5a96cb6..571ab5d8f 100644 --- a/shared/models/videos/video-resolution.enum.ts +++ b/shared/models/videos/video-resolution.enum.ts @@ -1,6 +1,6 @@ import { VideoTranscodingFPS } from './video-transcoding-fps.model' -export enum VideoResolution { +export const enum VideoResolution { H_NOVIDEO = 0, H_240P = 240, H_360P = 360, diff --git a/shared/models/videos/video-state.enum.ts b/shared/models/videos/video-state.enum.ts index a50e14e4b..31c501932 100644 --- a/shared/models/videos/video-state.enum.ts +++ b/shared/models/videos/video-state.enum.ts @@ -1,4 +1,4 @@ -export enum VideoState { +export const enum VideoState { PUBLISHED = 1, TO_TRANSCODE = 2, TO_IMPORT = 3 diff --git a/shared/models/videos/video-streaming-playlist.type.ts b/shared/models/videos/video-streaming-playlist.type.ts index 3b403f295..e2e2b93ea 100644 --- a/shared/models/videos/video-streaming-playlist.type.ts +++ b/shared/models/videos/video-streaming-playlist.type.ts @@ -1,3 +1,3 @@ -export enum VideoStreamingPlaylistType { +export const enum VideoStreamingPlaylistType { HLS = 1 } -- cgit v1.2.3