From d525fc399a14a8b16eaad6d4c0bc0a9c4093c3c9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 20 Jul 2018 14:35:18 +0200 Subject: Add videos list filters --- shared/models/index.ts | 1 + shared/models/search/index.ts | 1 + shared/models/search/videos-search-query.model.ts | 24 +++++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 shared/models/search/index.ts create mode 100644 shared/models/search/videos-search-query.model.ts (limited to 'shared/models') diff --git a/shared/models/index.ts b/shared/models/index.ts index c8ce71f17..1db00c295 100644 --- a/shared/models/index.ts +++ b/shared/models/index.ts @@ -4,6 +4,7 @@ export * from './users' export * from './videos' export * from './feeds' export * from './i18n' +export * from './search' export * from './server/job.model' export * from './oauth-client-local.model' export * from './result-list.model' diff --git a/shared/models/search/index.ts b/shared/models/search/index.ts new file mode 100644 index 000000000..288ee41ef --- /dev/null +++ b/shared/models/search/index.ts @@ -0,0 +1 @@ +export * from './videos-search-query.model' diff --git a/shared/models/search/videos-search-query.model.ts b/shared/models/search/videos-search-query.model.ts new file mode 100644 index 000000000..bb23bd636 --- /dev/null +++ b/shared/models/search/videos-search-query.model.ts @@ -0,0 +1,24 @@ +export interface VideosSearchQuery { + search: string + + start?: number + count?: number + sort?: string + + startDate?: string // ISO 8601 + endDate?: string // ISO 8601 + + nsfw?: boolean + + categoryOneOf?: number[] + + licenceOneOf?: number[] + + languageOneOf?: string[] + + tagsOneOf?: string[] + tagsAllOf?: string[] + + durationMin?: number // seconds + durationMax?: number // seconds +} -- cgit v1.2.3