2021-11-12 14:19:56 +01:00
|
|
|
import { VideoPrivacy } from '@shared/models'
|
2021-10-27 14:37:04 +02:00
|
|
|
import { VideoInclude } from '../videos/video-include.enum'
|
2021-05-03 11:06:19 +02:00
|
|
|
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
|
|
|
|
|
2021-10-27 14:37:04 +02:00
|
|
|
isLocal?: boolean
|
|
|
|
include?: VideoInclude
|
|
|
|
|
2021-05-03 11:06:19 +02:00
|
|
|
categoryOneOf?: number[]
|
|
|
|
|
|
|
|
licenceOneOf?: number[]
|
|
|
|
|
|
|
|
languageOneOf?: string[]
|
|
|
|
|
2021-11-12 14:19:56 +01:00
|
|
|
privacyOneOf?: VideoPrivacy[]
|
|
|
|
|
2021-05-03 11:06:19 +02:00
|
|
|
tagsOneOf?: string[]
|
|
|
|
tagsAllOf?: string[]
|
|
|
|
|
2021-11-03 11:32:41 +01:00
|
|
|
hasHLSFiles?: boolean
|
2023-07-11 09:21:13 +02:00
|
|
|
|
|
|
|
hasWebtorrentFiles?: boolean // TODO: remove in v7
|
|
|
|
hasWebVideoFiles?: boolean
|
2021-11-03 11:32:41 +01:00
|
|
|
|
2021-07-15 10:02:54 +02:00
|
|
|
skipCount?: boolean
|
2021-10-27 14:37:04 +02:00
|
|
|
|
|
|
|
search?: string
|
2023-04-12 09:32:20 +02:00
|
|
|
|
|
|
|
excludeAlreadyWatched?: 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
|
|
|
}
|