aboutsummaryrefslogtreecommitdiffhomepage
path: root/packages/models/src/search/videos-search-query.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/models/src/search/videos-search-query.model.ts')
-rw-r--r--packages/models/src/search/videos-search-query.model.ts26
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/models/src/search/videos-search-query.model.ts b/packages/models/src/search/videos-search-query.model.ts
new file mode 100644
index 000000000..bbaa8d23f
--- /dev/null
+++ b/packages/models/src/search/videos-search-query.model.ts
@@ -0,0 +1,26 @@
1import { SearchTargetQuery } from './search-target-query.model.js'
2import { VideosCommonQuery } from './videos-common-query.model.js'
3
4export interface VideosSearchQuery extends SearchTargetQuery, VideosCommonQuery {
5 search?: string
6
7 host?: string
8
9 startDate?: string // ISO 8601
10 endDate?: string // ISO 8601
11
12 originallyPublishedStartDate?: string // ISO 8601
13 originallyPublishedEndDate?: string // ISO 8601
14
15 durationMin?: number // seconds
16 durationMax?: number // seconds
17
18 // UUIDs or short UUIDs
19 uuids?: string[]
20}
21
22export interface VideosSearchQueryAfterSanitize extends VideosSearchQuery {
23 start: number
24 count: number
25 sort: string
26}