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 @@ -56,6 +56,12 @@ return useKeyserverCall(createOrUpdateFarcasterChannelTag); } +const deleteFarcasterChannelTagActionTypes = Object.freeze({ + started: 'DELETE_FARCASTER_CHANNEL_TAG_STARTED', + success: 'DELETE_FARCASTER_CHANNEL_TAG_SUCCESS', + failed: 'DELETE_FARCASTER_CHANNEL_TAG_FAILED', +}); + export { updateCalendarCommunityFilter, clearCalendarCommunityFilter, @@ -64,4 +70,5 @@ addCommunityActionType, createOrUpdateFarcasterChannelTagActionTypes, useCreateOrUpdateFarcasterChannelTag, + deleteFarcasterChannelTagActionTypes, }; diff --git a/lib/types/community-types.js b/lib/types/community-types.js --- a/lib/types/community-types.js +++ b/lib/types/community-types.js @@ -32,3 +32,7 @@ +farcasterChannelID: string, +blobHolder: string, }; + +export type DeleteFarcasterChannelTagPayload = { + +commCommunityID: string, +}; 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 @@ -28,6 +28,7 @@ CommunityStore, AddCommunityPayload, CreateOrUpdateFarcasterChannelTagResponse, + DeleteFarcasterChannelTagPayload, } from './community-types.js'; import type { MessageSourceMetadata, DBOpsStore } from './db-ops-types.js'; import type { @@ -1411,6 +1412,22 @@ +error: true, +payload: Error, +loadingInfo: LoadingInfo, + } + | { + +type: 'DELETE_FARCASTER_CHANNEL_TAG_STARTED', + +loadingInfo?: LoadingInfo, + +payload?: void, + } + | { + +type: 'DELETE_FARCASTER_CHANNEL_TAG_SUCCESS', + +payload: DeleteFarcasterChannelTagPayload, + +loadingInfo: LoadingInfo, + } + | { + +type: 'DELETE_FARCASTER_CHANNEL_TAG_FAILED', + +error: true, + +payload: Error, + +loadingInfo: LoadingInfo, }, }>;