mirror of https://github.com/Chocobozzz/PeerTube
36 lines
727 B
TypeScript
36 lines
727 B
TypeScript
import { NSFWQuery } from './nsfw-query.model'
|
|
import { VideoFilter } from '../videos'
|
|
import { SearchTargetQuery } from './search-target-query.model'
|
|
|
|
export interface VideosSearchQuery extends SearchTargetQuery {
|
|
forceLocalSearch?: boolean
|
|
|
|
search?: string
|
|
|
|
start?: number
|
|
count?: number
|
|
sort?: string
|
|
|
|
startDate?: string // ISO 8601
|
|
endDate?: string // ISO 8601
|
|
|
|
originallyPublishedStartDate?: string // ISO 8601
|
|
originallyPublishedEndDate?: string // ISO 8601
|
|
|
|
nsfw?: NSFWQuery
|
|
|
|
categoryOneOf?: number[]
|
|
|
|
licenceOneOf?: number[]
|
|
|
|
languageOneOf?: string[]
|
|
|
|
tagsOneOf?: string[]
|
|
tagsAllOf?: string[]
|
|
|
|
durationMin?: number // seconds
|
|
durationMax?: number // seconds
|
|
|
|
filter?: VideoFilter
|
|
}
|