2020-05-29 10:16:24 -04:00
|
|
|
import { SearchTargetQuery } from './search-target-query.model'
|
2021-05-03 05:06:19 -04:00
|
|
|
import { VideosCommonQuery } from './videos-common-query.model'
|
2020-05-29 10:16:24 -04:00
|
|
|
|
2021-05-03 05:06:19 -04:00
|
|
|
export interface VideosSearchQuery extends SearchTargetQuery, VideosCommonQuery {
|
2018-07-24 05:09:00 -04:00
|
|
|
search?: string
|
2018-07-20 08:35:18 -04:00
|
|
|
|
2021-07-27 03:07:38 -04:00
|
|
|
host?: string
|
|
|
|
|
2018-07-20 08:35:18 -04:00
|
|
|
startDate?: string // ISO 8601
|
|
|
|
endDate?: string // ISO 8601
|
|
|
|
|
2018-11-27 12:57:02 -05:00
|
|
|
originallyPublishedStartDate?: string // ISO 8601
|
|
|
|
originallyPublishedEndDate?: string // ISO 8601
|
|
|
|
|
2018-07-20 08:35:18 -04:00
|
|
|
durationMin?: number // seconds
|
|
|
|
durationMax?: number // seconds
|
2021-07-28 10:40:21 -04:00
|
|
|
|
2021-07-29 05:54:38 -04:00
|
|
|
// UUIDs or short UUIDs
|
2021-07-28 10:40:21 -04:00
|
|
|
uuids?: string[]
|
2018-07-20 08:35:18 -04:00
|
|
|
}
|
2021-07-29 05:54:38 -04:00
|
|
|
|
|
|
|
export interface VideosSearchQueryAfterSanitize extends VideosSearchQuery {
|
|
|
|
start: number
|
|
|
|
count: number
|
|
|
|
sort: string
|
2021-10-27 08:37:04 -04:00
|
|
|
|
|
|
|
// FIXME: deprecated in 4.0, to remove
|
|
|
|
filter?: never
|
2021-07-29 05:54:38 -04:00
|
|
|
}
|