2018-03-26 23:32:43 +02:00
|
|
|
export const FILE = 'file';
|
|
|
|
export const CHANNEL = 'channel';
|
|
|
|
export const SEARCH = 'search';
|
2019-10-19 15:46:23 +02:00
|
|
|
export const DEBOUNCE_WAIT_DURATION_MS = 250;
|
2020-07-27 22:04:12 +02:00
|
|
|
|
|
|
|
export const SEARCH_TYPES = {
|
|
|
|
FILE: 'file',
|
|
|
|
CHANNEL: 'channel',
|
|
|
|
SEARCH: 'search',
|
|
|
|
TAG: 'tag',
|
|
|
|
};
|
|
|
|
|
|
|
|
export const SEARCH_OPTIONS = {
|
|
|
|
RESULT_COUNT: 'size',
|
|
|
|
CLAIM_TYPE: 'claimType',
|
2021-09-16 22:00:44 +02:00
|
|
|
RELATED_TO: 'related_to',
|
2020-07-27 22:04:12 +02:00
|
|
|
INCLUDE_FILES: 'file',
|
|
|
|
INCLUDE_CHANNELS: 'channel',
|
|
|
|
INCLUDE_FILES_AND_CHANNELS: 'file,channel',
|
2021-09-16 22:00:44 +02:00
|
|
|
INCLUDE_MATURE: 'nsfw',
|
2020-07-27 22:04:12 +02:00
|
|
|
MEDIA_AUDIO: 'audio',
|
|
|
|
MEDIA_VIDEO: 'video',
|
|
|
|
MEDIA_TEXT: 'text',
|
|
|
|
MEDIA_IMAGE: 'image',
|
|
|
|
MEDIA_APPLICATION: 'application',
|
2021-03-23 06:52:32 +01:00
|
|
|
SORT: 'sort_by',
|
|
|
|
SORT_ACCENDING: '^release_time',
|
|
|
|
SORT_DESCENDING: 'release_time',
|
2021-03-23 09:55:37 +01:00
|
|
|
EXACT: 'exact',
|
2021-09-16 22:00:44 +02:00
|
|
|
PRICE_FILTER_FREE: 'free_only',
|
2021-03-30 07:57:37 +02:00
|
|
|
TIME_FILTER: 'time_filter',
|
|
|
|
TIME_FILTER_LAST_HOUR: 'lasthour',
|
|
|
|
TIME_FILTER_TODAY: 'today',
|
|
|
|
TIME_FILTER_THIS_WEEK: 'thisweek',
|
|
|
|
TIME_FILTER_THIS_MONTH: 'thismonth',
|
|
|
|
TIME_FILTER_THIS_YEAR: 'thisyear',
|
2022-02-16 16:01:20 +01:00
|
|
|
CHANNEL_ID: 'channel_id',
|
2020-07-27 22:04:12 +02:00
|
|
|
};
|
2021-03-26 09:33:30 +01:00
|
|
|
|
|
|
|
export const SEARCH_PAGE_SIZE = 20;
|