import { Column , ColumnSubscription , EnhancedItem , GitHubAPIHeaders , GitHubAppTokenType , } from '@devhub/core' ; import { createAction , createErrorActionWithPayload } from '../helpers' ; export function fetchSubscriptionRequest ( payload ) { return createAction ( 'FETCH_SUBSCRIPTION_REQUEST' , payload ) ; } export function fetchSubscriptionSuccess ( payload ) { return createAction ( 'FETCH_SUBSCRIPTION_SUCCESS' , payload ) ; } export function fetchSubscriptionFailure < E extends Error > ( payload , error ) { return createErrorActionWithPayload ( 'FETCH_SUBSCRIPTION_FAILURE' , payload , error ) ; } export function fetchColumnSubscriptionRequest ( payload ) { return createAction ( 'FETCH_COLUMN_SUBSCRIPTIONS' , payload ) ; } export function deleteColumnSubscriptions ( subscriptionIds ) { return createAction ( 'DELETE_COLUMN_SUBSCRIPTIONS' , subscriptionIds ) ; } export function saveItemsForLater ( payload ) { return createAction ( 'SAVE_ITEMS_FOR_LATER' , payload ) ; } export function markItemsAsReadOrUnread ( payload ) { return createAction ( 'MARK_ITEMS_AS_READ_OR_UNREAD' , payload ) ; } export function markAllNotificationsAsReadOrUnread ( payload ) { return createAction ( 'MARK_ALL_NOTIFICATIONS_AS_READ_OR_UNREAD' , payload ) ; } export function markRepoNotificationsAsReadOrUnread ( payload ) { return createAction ( 'MARK_REPO_NOTIFICATIONS_AS_READ_OR_UNREAD' , payload ) ; } export function markEverythingAsReadWithConfirmation ( ) { return createAction ( 'MARK_EVERYTHING_AS_READ_WITH_CONFIRMATION' ) ; } export function markEverythingAsRead ( ) { return createAction ( 'MARK_EVERYTHING_AS_READ' ) ; } export function openItem ( payload ) { return createAction ( 'OPEN_ITEM' , payload ) ; }