1 import { pick } from '@shared/core-utils'
3 VideoChannelsSearchQueryAfterSanitize,
4 VideoPlaylistsSearchQueryAfterSanitize,
5 VideosCommonQueryAfterSanitize,
6 VideosSearchQueryAfterSanitize
7 } from '@shared/models'
9 function pickCommonVideoQuery (query: VideosCommonQueryAfterSanitize) {
30 function pickSearchVideoQuery (query: VideosSearchQueryAfterSanitize) {
32 ...pickCommonVideoQuery(query),
39 'originallyPublishedStartDate',
40 'originallyPublishedEndDate',
48 function pickSearchChannelQuery (query: VideoChannelsSearchQueryAfterSanitize) {
60 function pickSearchPlaylistQuery (query: VideoPlaylistsSearchQueryAfterSanitize) {
75 pickSearchPlaylistQuery,
76 pickSearchChannelQuery