]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/search/videos-common-query.model.ts
Bumped to version v5.2.1
[github/Chocobozzz/PeerTube.git] / shared / models / search / videos-common-query.model.ts
index 2f2e9a9348f43a6c2f1e348ea41e5e527e40dc27..da479c928b2407b50e9ad5d06c86954d6360ea31 100644 (file)
@@ -1,4 +1,5 @@
-import { VideoFilter } from '../videos'
+import { VideoPrivacy } from '@shared/models'
+import { VideoInclude } from '../videos/video-include.enum'
 import { BooleanBothQuery } from './boolean-both-query.model'
 
 // These query parameters can be used with any endpoint that list videos
@@ -11,26 +12,38 @@ export interface VideosCommonQuery {
 
   isLive?: boolean
 
+  // FIXME: deprecated in 4.0 in favour of isLocal and include, to remove
+  filter?: never
+
+  isLocal?: boolean
+  include?: VideoInclude
+
   categoryOneOf?: number[]
 
   licenceOneOf?: number[]
 
   languageOneOf?: string[]
 
+  privacyOneOf?: VideoPrivacy[]
+
   tagsOneOf?: string[]
   tagsAllOf?: string[]
 
-  filter?: VideoFilter
+  hasHLSFiles?: boolean
+  hasWebtorrentFiles?: boolean
 
   skipCount?: boolean
+
+  search?: string
+
+  excludeAlreadyWatched?: boolean
 }
 
 export interface VideosCommonQueryAfterSanitize extends VideosCommonQuery {
   start: number
   count: number
   sort: string
-}
 
-export interface VideosWithSearchCommonQuery extends VideosCommonQuery {
-  search?: string
+  // FIXME: deprecated in 4.0, to remove
+  filter?: never
 }