Changeset View
Changeset View
Standalone View
Standalone View
lib/types/redux-types.js
Show All 35 Lines | import type { | ||||
SetCalendarDeletedFilterPayload, | SetCalendarDeletedFilterPayload, | ||||
} from './filter-types.js'; | } from './filter-types.js'; | ||||
import type { LifecycleState } from './lifecycle-state-types.js'; | import type { LifecycleState } from './lifecycle-state-types.js'; | ||||
import type { | import type { | ||||
FetchInviteLinksResponse, | FetchInviteLinksResponse, | ||||
InviteLink, | InviteLink, | ||||
InviteLinksStore, | InviteLinksStore, | ||||
InviteLinkVerificationResponse, | InviteLinkVerificationResponse, | ||||
DisableInviteLinkPayload, | |||||
} from './link-types.js'; | } from './link-types.js'; | ||||
import type { LoadingStatus, LoadingInfo } from './loading-types.js'; | import type { LoadingStatus, LoadingInfo } from './loading-types.js'; | ||||
import type { UpdateMultimediaMessageMediaPayload } from './media-types.js'; | import type { UpdateMultimediaMessageMediaPayload } from './media-types.js'; | ||||
import type { MessageReportCreationResult } from './message-report-types.js'; | import type { MessageReportCreationResult } from './message-report-types.js'; | ||||
import type { | import type { | ||||
MessageStore, | MessageStore, | ||||
RawMultimediaMessageInfo, | RawMultimediaMessageInfo, | ||||
FetchMessageInfosPayload, | FetchMessageInfosPayload, | ||||
▲ Show 20 Lines • Show All 1,041 Lines • ▼ Show 20 Lines | | { | ||||
+payload: InviteLink, | +payload: InviteLink, | ||||
+loadingInfo: LoadingInfo, | +loadingInfo: LoadingInfo, | ||||
} | } | ||||
| { | | { | ||||
+type: 'CREATE_OR_UPDATE_PUBLIC_LINK_FAILED', | +type: 'CREATE_OR_UPDATE_PUBLIC_LINK_FAILED', | ||||
+error: true, | +error: true, | ||||
+payload: Error, | +payload: Error, | ||||
+loadingInfo: LoadingInfo, | +loadingInfo: LoadingInfo, | ||||
} | |||||
| { | |||||
+type: 'DISABLE_INVITE_LINK_STARTED', | |||||
+loadingInfo?: LoadingInfo, | |||||
+payload?: void, | |||||
} | |||||
| { | |||||
+type: 'DISABLE_INVITE_LINK_SUCCESS', | |||||
+payload: DisableInviteLinkPayload, | |||||
+loadingInfo: LoadingInfo, | |||||
} | |||||
| { | |||||
+type: 'DISABLE_INVITE_LINK_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 |