1 import { pick } from '@shared/core-utils'
3 VideoChannelsSearchQueryAfterSanitize,
4 VideoPlaylistsSearchQueryAfterSanitize,
5 VideosCommonQueryAfterSanitize,
6 VideosSearchQueryAfterSanitize
7 } from '@shared/models'
9 function pickCommonVideoQuery (query: VideosCommonQueryAfterSanitize) {
26 function pickSearchVideoQuery (query: VideosSearchQueryAfterSanitize) {
28 ...pickCommonVideoQuery(query),
36 'originallyPublishedStartDate',
37 'originallyPublishedEndDate',
45 function pickSearchChannelQuery (query: VideoChannelsSearchQueryAfterSanitize) {
57 function pickSearchPlaylistQuery (query: VideoPlaylistsSearchQueryAfterSanitize) {
72 pickSearchPlaylistQuery,
73 pickSearchChannelQuery