videos-search-query.model.ts 607 B

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