1 import { pick } from '@shared/core-utils'
3 VideoChannelsSearchQueryAfterSanitize,
4 VideoPlaylistsSearchQueryAfterSanitize,
5 VideosCommonQueryAfterSanitize,
6 VideosSearchQueryAfterSanitize
7 } from '@shared/models'
9 function pickCommonVideoQuery (query: VideosCommonQueryAfterSanitize) {
31 function pickSearchVideoQuery (query: VideosSearchQueryAfterSanitize) {
33 ...pickCommonVideoQuery(query),
40 'originallyPublishedStartDate',
41 'originallyPublishedEndDate',
49 function pickSearchChannelQuery (query: VideoChannelsSearchQueryAfterSanitize) {
61 function pickSearchPlaylistQuery (query: VideoPlaylistsSearchQueryAfterSanitize) {
76 pickSearchPlaylistQuery,
77 pickSearchChannelQuery