PeerTube/shared/models/search/videos-search-query.model.ts

30 lines
716 B
TypeScript
Raw Normal View History

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