videos-search-query.model.ts 697 B

123456789101112131415161718192021222324252627282930313233
  1. import { VideoFilter } from '../videos'
  2. import { NSFWQuery } from './nsfw-query.model'
  3. import { SearchTargetQuery } from './search-target-query.model'
  4. export interface VideosSearchQuery extends SearchTargetQuery {
  5. search?: string
  6. start?: number
  7. count?: number
  8. sort?: string
  9. startDate?: string // ISO 8601
  10. endDate?: string // ISO 8601
  11. originallyPublishedStartDate?: string // ISO 8601
  12. originallyPublishedEndDate?: string // ISO 8601
  13. nsfw?: NSFWQuery
  14. categoryOneOf?: number[]
  15. licenceOneOf?: number[]
  16. languageOneOf?: string[]
  17. tagsOneOf?: string[]
  18. tagsAllOf?: string[]
  19. durationMin?: number // seconds
  20. durationMax?: number // seconds
  21. filter?: VideoFilter
  22. }