2021-05-03 11:06:19 +02:00
|
|
|
import { VideoFilter } from '../videos'
|
|
|
|
import { BooleanBothQuery } from './boolean-both-query.model'
|
|
|
|
|
|
|
|
// These query parameters can be used with any endpoint that list videos
|
|
|
|
export interface VideosCommonQuery {
|
|
|
|
start?: number
|
|
|
|
count?: number
|
|
|
|
sort?: string
|
|
|
|
|
|
|
|
nsfw?: BooleanBothQuery
|
|
|
|
|
|
|
|
isLive?: boolean
|
|
|
|
|
|
|
|
categoryOneOf?: number[]
|
|
|
|
|
|
|
|
licenceOneOf?: number[]
|
|
|
|
|
|
|
|
languageOneOf?: string[]
|
|
|
|
|
|
|
|
tagsOneOf?: string[]
|
|
|
|
tagsAllOf?: string[]
|
|
|
|
|
|
|
|
filter?: VideoFilter
|
2021-07-15 10:02:54 +02:00
|
|
|
|
|
|
|
skipCount?: boolean
|
2021-05-03 11:06:19 +02:00
|
|
|
}
|
|
|
|
|
2021-07-29 11:54:38 +02:00
|
|
|
export interface VideosCommonQueryAfterSanitize extends VideosCommonQuery {
|
|
|
|
start: number
|
|
|
|
count: number
|
|
|
|
sort: string
|
|
|
|
}
|
|
|
|
|
2021-05-03 11:06:19 +02:00
|
|
|
export interface VideosWithSearchCommonQuery extends VideosCommonQuery {
|
|
|
|
search?: string
|
|
|
|
}
|