1 import { pick } from '@shared/core-utils'
3 VideoChannelsSearchQueryAfterSanitize,
4 VideoPlaylistsSearchQueryAfterSanitize,
5 VideosCommonQueryAfterSanitize,
6 VideosSearchQueryAfterSanitize
7 } from '@shared/models'
9 function pickCommonVideoQuery (query: VideosCommonQueryAfterSanitize) {
28 'excludeAlreadyWatched'
32 function pickSearchVideoQuery (query: VideosSearchQueryAfterSanitize) {
34 ...pickCommonVideoQuery(query),
41 'originallyPublishedStartDate',
42 'originallyPublishedEndDate',
46 'excludeAlreadyWatched'
51 function pickSearchChannelQuery (query: VideoChannelsSearchQueryAfterSanitize) {
63 function pickSearchPlaylistQuery (query: VideoPlaylistsSearchQueryAfterSanitize) {
78 pickSearchPlaylistQuery,
79 pickSearchChannelQuery