From 37a44fc915eef2140e22ceb96aba6b6eb2509007 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 17 Jun 2021 16:02:38 +0200 Subject: Add ability to search playlists --- shared/models/search/index.ts | 3 ++- shared/models/search/video-channels-search-query.model.ts | 2 +- shared/models/search/video-playlists-search-query.model.ts | 9 +++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 shared/models/search/video-playlists-search-query.model.ts (limited to 'shared/models/search') diff --git a/shared/models/search/index.ts b/shared/models/search/index.ts index 697ceccb1..50aeeddc8 100644 --- a/shared/models/search/index.ts +++ b/shared/models/search/index.ts @@ -1,5 +1,6 @@ export * from './boolean-both-query.model' export * from './search-target-query.model' export * from './videos-common-query.model' -export * from './videos-search-query.model' export * from './video-channels-search-query.model' +export * from './video-playlists-search-query.model' +export * from './videos-search-query.model' diff --git a/shared/models/search/video-channels-search-query.model.ts b/shared/models/search/video-channels-search-query.model.ts index c96aa8c1d..8f93c4bd5 100644 --- a/shared/models/search/video-channels-search-query.model.ts +++ b/shared/models/search/video-channels-search-query.model.ts @@ -1,4 +1,4 @@ -import { SearchTargetQuery } from "./search-target-query.model" +import { SearchTargetQuery } from './search-target-query.model' export interface VideoChannelsSearchQuery extends SearchTargetQuery { search: string diff --git a/shared/models/search/video-playlists-search-query.model.ts b/shared/models/search/video-playlists-search-query.model.ts new file mode 100644 index 000000000..31f05218e --- /dev/null +++ b/shared/models/search/video-playlists-search-query.model.ts @@ -0,0 +1,9 @@ +import { SearchTargetQuery } from './search-target-query.model' + +export interface VideoPlaylistsSearchQuery extends SearchTargetQuery { + search: string + + start?: number + count?: number + sort?: string +} -- cgit v1.2.3