diff --git a/lib/actions/keyserver-actions.js b/lib/actions/keyserver-actions.js new file mode 100644 index 0000000000..32fce89bbc --- /dev/null +++ b/lib/actions/keyserver-actions.js @@ -0,0 +1,5 @@ +// @flow + +const addKeyserverActionType = 'ADD_KEYSERVER'; + +export { addKeyserverActionType }; diff --git a/lib/types/keyserver-types.js b/lib/types/keyserver-types.js index b1de12f20f..302a8d3987 100644 --- a/lib/types/keyserver-types.js +++ b/lib/types/keyserver-types.js @@ -27,6 +27,11 @@ export type SelectedKeyserverInfo = { +keyserverInfo: KeyserverInfo, }; +export type AddKeyserverPayload = { + +keyserverAdminUserID: string, + +newKeyserverInfo: KeyserverInfo, +}; + export const keyserverInfoValidator: TInterface = tShape({ cookie: t.maybe(t.String), diff --git a/lib/types/redux-types.js b/lib/types/redux-types.js index 0d39f3ec7c..3efe523cf5 100644 --- a/lib/types/redux-types.js +++ b/lib/types/redux-types.js @@ -39,7 +39,7 @@ import type { SetCalendarDeletedFilterPayload, } from './filter-types.js'; import type { IntegrityStore } from './integrity-types.js'; -import type { KeyserverStore } from './keyserver-types.js'; +import type { KeyserverStore, AddKeyserverPayload } from './keyserver-types.js'; import type { LifecycleState } from './lifecycle-state-types.js'; import type { FetchInviteLinksResponse, @@ -1229,6 +1229,10 @@ export type BaseAction = | { +type: 'UPDATE_THEME_INFO', +payload: Shape, + } + | { + +type: 'ADD_KEYSERVER', + +payload: AddKeyserverPayload, }; export type ActionPayload = ?(Object | Array<*> | $ReadOnlyArray<*> | string);