Changeset View
Changeset View
Standalone View
Standalone View
lib/types/redux-types.js
// @flow | // @flow | ||||
import type { | import type { | ||||
LogOutResult, | LogOutResult, | ||||
LogInStartingPayload, | LogInStartingPayload, | ||||
LogInResult, | LogInResult, | ||||
RegisterResult, | RegisterResult, | ||||
DefaultNotificationPayload, | DefaultNotificationPayload, | ||||
} from './account-types.js'; | } from './account-types.js'; | ||||
import type { | import type { | ||||
ActivityUpdateSuccessPayload, | ActivityUpdateSuccessPayload, | ||||
QueueActivityUpdatesPayload, | QueueActivityUpdatesPayload, | ||||
SetThreadUnreadStatusPayload, | SetThreadUnreadStatusPayload, | ||||
} from './activity-types.js'; | } from './activity-types.js'; | ||||
import type { ClientAvatar, UpdateUserAvatarRequest } from './avatar-types.js'; | |||||
import type { CryptoStore } from './crypto-types.js'; | import type { CryptoStore } from './crypto-types.js'; | ||||
import type { ClientDBDraftInfo, DraftStore } from './draft-types.js'; | import type { ClientDBDraftInfo, DraftStore } from './draft-types.js'; | ||||
import type { EnabledApps, SupportedApps } from './enabled-apps.js'; | import type { EnabledApps, SupportedApps } from './enabled-apps.js'; | ||||
import type { | import type { | ||||
RawEntryInfo, | RawEntryInfo, | ||||
EntryStore, | EntryStore, | ||||
SaveEntryPayload, | SaveEntryPayload, | ||||
CreateEntryPayload, | CreateEntryPayload, | ||||
▲ Show 20 Lines • Show All 889 Lines • ▼ Show 20 Lines | | { | ||||
+type: 'SIWE_AUTH_FAILED', | +type: 'SIWE_AUTH_FAILED', | ||||
+error: true, | +error: true, | ||||
+payload: Error, | +payload: Error, | ||||
+loadingInfo: LoadingInfo, | +loadingInfo: LoadingInfo, | ||||
} | } | ||||
| { | | { | ||||
+type: 'RECORD_NOTIF_PERMISSION_ALERT', | +type: 'RECORD_NOTIF_PERMISSION_ALERT', | ||||
+payload: { +time: number }, | +payload: { +time: number }, | ||||
} | |||||
| { | |||||
+type: 'UPDATE_USER_AVATAR_STARTED', | |||||
+payload: UpdateUserAvatarRequest, | |||||
+loadingInfo: LoadingInfo, | |||||
} | |||||
| { | |||||
+type: 'UPDATE_USER_AVATAR_SUCCESS', | |||||
+payload: ?ClientAvatar, | |||||
+loadingInfo: LoadingInfo, | |||||
} | |||||
| { | |||||
+type: 'UPDATE_USER_AVATAR_FAILED', | |||||
+error: true, | |||||
+payload: Error, | |||||
+loadingInfo: LoadingInfo, | |||||
}; | }; | ||||
export type ActionPayload = ?(Object | Array<*> | $ReadOnlyArray<*> | string); | export type ActionPayload = ?(Object | Array<*> | $ReadOnlyArray<*> | string); | ||||
export type SuperAction = { | export type SuperAction = { | ||||
type: string, | type: string, | ||||
payload?: ActionPayload, | payload?: ActionPayload, | ||||
loadingInfo?: LoadingInfo, | loadingInfo?: LoadingInfo, | ||||
error?: boolean, | error?: boolean, | ||||
Show All 11 Lines |