1
0
Fork 0
peertube/shared/models/search/videos-common-query.model.ts
2021-05-03 16:42:15 +02:00

28 lines
560 B
TypeScript

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
}
export interface VideosWithSearchCommonQuery extends VideosCommonQuery {
search?: string
}