diff options
Diffstat (limited to 'shared/models/search')
-rw-r--r-- | shared/models/search/search-target-query.model.ts | 5 | ||||
-rw-r--r-- | shared/models/search/video-channels-search-query.model.ts | 4 | ||||
-rw-r--r-- | shared/models/search/videos-search-query.model.ts | 5 |
3 files changed, 12 insertions, 2 deletions
diff --git a/shared/models/search/search-target-query.model.ts b/shared/models/search/search-target-query.model.ts new file mode 100644 index 000000000..3bb2e0d31 --- /dev/null +++ b/shared/models/search/search-target-query.model.ts | |||
@@ -0,0 +1,5 @@ | |||
1 | export type SearchTargetType = 'local' | 'search-index' | ||
2 | |||
3 | export interface SearchTargetQuery { | ||
4 | searchTarget?: SearchTargetType | ||
5 | } | ||
diff --git a/shared/models/search/video-channels-search-query.model.ts b/shared/models/search/video-channels-search-query.model.ts index de2741e14..c96aa8c1d 100644 --- a/shared/models/search/video-channels-search-query.model.ts +++ b/shared/models/search/video-channels-search-query.model.ts | |||
@@ -1,4 +1,6 @@ | |||
1 | export interface VideoChannelsSearchQuery { | 1 | import { SearchTargetQuery } from "./search-target-query.model" |
2 | |||
3 | export interface VideoChannelsSearchQuery extends SearchTargetQuery { | ||
2 | search: string | 4 | search: string |
3 | 5 | ||
4 | start?: number | 6 | start?: number |
diff --git a/shared/models/search/videos-search-query.model.ts b/shared/models/search/videos-search-query.model.ts index 838063095..bd6bb5bc1 100644 --- a/shared/models/search/videos-search-query.model.ts +++ b/shared/models/search/videos-search-query.model.ts | |||
@@ -1,7 +1,10 @@ | |||
1 | import { NSFWQuery } from './nsfw-query.model' | 1 | import { NSFWQuery } from './nsfw-query.model' |
2 | import { VideoFilter } from '../videos' | 2 | import { VideoFilter } from '../videos' |
3 | import { SearchTargetQuery } from './search-target-query.model' | ||
4 | |||
5 | export interface VideosSearchQuery extends SearchTargetQuery { | ||
6 | forceLocalSearch?: boolean | ||
3 | 7 | ||
4 | export interface VideosSearchQuery { | ||
5 | search?: string | 8 | search?: string |
6 | 9 | ||
7 | start?: number | 10 | start?: number |