import { ColumnAndSubscriptions , ColumnFilters , ColumnOptions , ColumnsAndSubscriptions , ColumnSubscriptionCreation , EnhancedGitHubNotification , GitHubEventAction , GitHubEventSubjectType , GitHubIssueOrPullRequestSubjectType , GitHubNotificationSubjectType , GitHubStateType , NotificationColumnFilters , } from '@devhub/core' ; import { EmitterTypes } from '../../libs/emitter' ; import { createAction } from '../helpers' ; export function replaceColumnsAndSubscriptions ( payload ) { return createAction ( 'REPLACE_COLUMNS_AND_SUBSCRIPTIONS' , payload ) ; } export function addColumnAndSubscriptions ( payload ) { return createAction ( 'ADD_COLUMN_AND_SUBSCRIPTIONS' , payload ) ; } export function addColumnSubscription ( payload ) { return createAction ( 'ADD_COLUMN_SUBSCRIPTION' , payload ) ; } export function removeSubscriptionFromColumn ( payload ) { return createAction ( 'REMOVE_SUBSCRIPTION_FROM_COLUMN' , payload ) ; } export function deleteColumn ( payload ) { return createAction ( 'DELETE_COLUMN' , payload ) ; } export function moveColumn ( payload ) { return createAction ( 'MOVE_COLUMN' , payload ) ; } export function setColumnOption < O extends keyof ColumnOptions > ( payload ) { return createAction ( 'SET_COLUMN_OPTION' , payload ) ; } export function clearColumnFilters ( payload ) { return createAction ( 'CLEAR_COLUMN_FILTERS' , payload ) ; } export function replaceColumnFilters ( payload ) { return createAction ( 'REPLACE_COLUMN_FILTERS' , payload ) ; } export function setColumnSavedFilter ( payload ) { return createAction ( 'SET_COLUMN_SAVED_FILTER' , payload ) ; } export function setColumnParticipatingFilter ( payload ) { return createAction ( 'SET_COLUMN_PARTICIPATING_FILTER' , payload ) ; } export function setColumnActivityActionFilter < T extends GitHubEventAction > ( payload ) { return createAction ( 'SET_COLUMN_ACTIVITY_ACTION_FILTER' , payload ) ; } export function setColumnLabelFilter ( payload ) { return createAction ( 'SET_COLUMN_LABEL_FILTER' , payload ) ; } export function setColumnReasonFilter < T extends EnhancedGitHubNotification [ 'reason' ] > ( payload ) { return createAction ( 'SET_COLUMN_REASON_FILTER' , payload ) ; } export function setColummStateTypeFilter < T extends GitHubStateType > ( payload ) { return createAction ( 'SET_COLUMN_STATE_FILTER' , payload ) ; } export function setColummBotFilter ( payload ) { return createAction ( 'SET_COLUMN_BOT_FILTER' , payload ) ; } export function setColummDraftFilter ( payload ) { return createAction ( 'SET_COLUMN_DRAFT_FILTER' , payload ) ; } export function setColummSubjectTypeFilter < T extends GitHubEventSubjectType | GitHubNotificationSubjectType | GitHubIssueOrPullRequestSubjectType > ( payload ) { return createAction ( 'SET_COLUMN_SUBJECT_TYPE_FILTER' , payload ) ; } export function setColumnUnreadFilter ( payload ) { return createAction ( 'SET_COLUMN_UNREAD_FILTER' , payload ) ; } export function setColumnInvolvesFilter ( payload ) { return createAction ( 'SET_COLUMN_INVOLVES_FILTER' , payload ) ; } export function replaceColumnWatchingFilter ( payload ) { return createAction ( 'REPLACE_COLUMN_WATCHING_FILTER' , payload ) ; } export function setColumnWatchingFilter ( payload ) { return createAction ( 'SET_COLUMN_WATCHING_FILTER' , payload ) ; } export function replaceColumnOwnerFilter ( payload ) { return createAction ( 'REPLACE_COLUMN_OWNER_FILTER' , payload ) ; } export function setColumnOwnerFilter ( payload ) { return createAction ( 'SET_COLUMN_OWNER_FILTER' , payload ) ; } export function setColumnRepoFilter ( payload ) { return createAction ( 'SET_COLUMN_REPO_FILTER' , payload ) ; } export function setColumnPrivacyFilter ( payload ) { return createAction ( 'SET_COLUMN_PRIVACY_FILTER' , payload ) ; } export function setColumnClearedAtFilter ( payload ) { return createAction ( 'SET_COLUMN_CLEARED_AT_FILTER' , payload ) ; } export function clearAllColumnsWithConfirmation ( payload = { } ) { return createAction ( 'CLEAR_ALL_COLUMNS_WITH_CONFIRMATION' , payload ) ; } export function clearAllColumns ( payload = { } ) { return createAction ( 'CLEAR_ALL_COLUMNS' , payload ) ; } export function changeIssueNumberFilter ( payload ) { return createAction ( 'CHANGE_ISSUE_NUMBER_FILTER' , payload ) ; }