diff --git a/lib/actions/community-actions.js b/lib/actions/community-actions.js --- a/lib/actions/community-actions.js +++ b/lib/actions/community-actions.js @@ -7,10 +7,17 @@ const addCommunityActionType = 'ADD_COMMUNITY'; +const createOrUpdateFarcasterChannelTagActionTypes = Object.freeze({ + started: 'CREATE_OR_UPDATE_FARCASTER_CHANNEL_TAG_STARTED', + success: 'CREATE_OR_UPDATE_FARCASTER_CHANNEL_TAG_SUCCESS', + failed: 'CREATE_OR_UPDATE_FARCASTER_CHANNEL_TAG_FAILED', +}); + export { updateCalendarCommunityFilter, clearCalendarCommunityFilter, updateChatCommunityFilter, clearChatCommunityFilter, addCommunityActionType, + createOrUpdateFarcasterChannelTagActionTypes, }; diff --git a/lib/types/redux-types.js b/lib/types/redux-types.js --- a/lib/types/redux-types.js +++ b/lib/types/redux-types.js @@ -24,7 +24,11 @@ UpdateUserAvatarRequest, UpdateUserAvatarResponse, } from './avatar-types.js'; -import type { CommunityStore, AddCommunityPayload } from './community-types.js'; +import type { + CommunityStore, + AddCommunityPayload, + CreateOrUpdateFarcasterChannelTagResponse, +} from './community-types.js'; import type { MessageSourceMetadata, DBOpsStore } from './db-ops-types.js'; import type { GetVersionActionPayload, @@ -1391,6 +1395,22 @@ | { +type: 'OPS_PROCESSING_FINISHED_ACTION_TYPE', +payload?: void, + } + | { + +type: 'CREATE_OR_UPDATE_FARCASTER_CHANNEL_TAG_STARTED', + +loadingInfo?: LoadingInfo, + +payload?: void, + } + | { + +type: 'CREATE_OR_UPDATE_FARCASTER_CHANNEL_TAG_SUCCESS', + +payload: CreateOrUpdateFarcasterChannelTagResponse, + +loadingInfo: LoadingInfo, + } + | { + +type: 'CREATE_OR_UPDATE_FARCASTER_CHANNEL_TAG_FAILED', + +error: true, + +payload: Error, + +loadingInfo: LoadingInfo, }, }>;