From df0b219d36bf6852cdf2a7ad09ed4a41c6bccefa Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 5 Mar 2019 10:58:44 +0100 Subject: Add playlist rest tests --- shared/models/activitypub/objects/playlist-object.ts | 3 +++ shared/models/videos/playlist/video-playlist-type.model.ts | 4 ++++ shared/models/videos/playlist/video-playlist.model.ts | 3 +++ 3 files changed, 10 insertions(+) create mode 100644 shared/models/videos/playlist/video-playlist-type.model.ts (limited to 'shared/models') diff --git a/shared/models/activitypub/objects/playlist-object.ts b/shared/models/activitypub/objects/playlist-object.ts index 5f6733f92..c11a23a69 100644 --- a/shared/models/activitypub/objects/playlist-object.ts +++ b/shared/models/activitypub/objects/playlist-object.ts @@ -13,6 +13,9 @@ export interface PlaylistObject { icon: ActivityIconObject + published: string + updated: string + orderedItems?: string[] partOf?: string diff --git a/shared/models/videos/playlist/video-playlist-type.model.ts b/shared/models/videos/playlist/video-playlist-type.model.ts new file mode 100644 index 000000000..49233b743 --- /dev/null +++ b/shared/models/videos/playlist/video-playlist-type.model.ts @@ -0,0 +1,4 @@ +export enum VideoPlaylistType { + REGULAR = 1, + WATCH_LATER = 2 +} diff --git a/shared/models/videos/playlist/video-playlist.model.ts b/shared/models/videos/playlist/video-playlist.model.ts index 6aa04048c..7fec0e42b 100644 --- a/shared/models/videos/playlist/video-playlist.model.ts +++ b/shared/models/videos/playlist/video-playlist.model.ts @@ -1,6 +1,7 @@ import { AccountSummary } from '../../actors/index' import { VideoChannelSummary, VideoConstant } from '..' import { VideoPlaylistPrivacy } from './video-playlist-privacy.model' +import { VideoPlaylistType } from './video-playlist-type.model' export interface VideoPlaylist { id: number @@ -15,6 +16,8 @@ export interface VideoPlaylist { videosLength: number + type: VideoConstant + createdAt: Date | string updatedAt: Date | string -- cgit v1.2.3