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

27 lines
439 B
TypeScript
Raw Normal View History

2018-07-20 11:31:49 -05:00
import { NSFWQuery } from './nsfw-query.model'
2018-07-20 07:35:18 -05:00
export interface VideosSearchQuery {
search: string
start?: number
count?: number
sort?: string
startDate?: string // ISO 8601
endDate?: string // ISO 8601
2018-07-20 11:31:49 -05:00
nsfw?: NSFWQuery
2018-07-20 07:35:18 -05:00
categoryOneOf?: number[]
licenceOneOf?: number[]
languageOneOf?: string[]
tagsOneOf?: string[]
tagsAllOf?: string[]
durationMin?: number // seconds
durationMax?: number // seconds
}