Changeset View
Changeset View
Standalone View
Standalone View
lib/types/store-ops-types.js
// @flow | // @flow | ||||
import type { CommunityInfos } from './community-types.js'; | import type { CommunityInfos } from './community-types.js'; | ||||
import type { | import type { | ||||
DraftStoreOperation, | DraftStoreOperation, | ||||
ClientDBDraftStoreOperation, | ClientDBDraftStoreOperation, | ||||
ClientDBDraftInfo, | ClientDBDraftInfo, | ||||
} from './draft-types.js'; | } from './draft-types.js'; | ||||
import type { ThreadHashes } from './integrity-types.js'; | import type { ThreadHashes } from './integrity-types.js'; | ||||
import type { KeyserverInfos } from './keyserver-types.js'; | import type { KeyserverInfos } from './keyserver-types.js'; | ||||
import type { | import type { | ||||
ClientDBMessageInfo, | ClientDBMessageInfo, | ||||
ClientDBThreadMessageInfo, | ClientDBThreadMessageInfo, | ||||
} from './message-types.js'; | } from './message-types.js'; | ||||
import type { ClientReportCreationRequest } from './report-types.js'; | import type { ClientReportCreationRequest } from './report-types.js'; | ||||
import type { SyncedMetadata } from './synced-metadata-types.js'; | |||||
import type { ClientDBThreadInfo, ThreadStore } from './thread-types.js'; | import type { ClientDBThreadInfo, ThreadStore } from './thread-types.js'; | ||||
import type { UserInfos } from './user-types.js'; | import type { UserInfos } from './user-types.js'; | ||||
import type { | import type { | ||||
ClientDBCommunityInfo, | ClientDBCommunityInfo, | ||||
ClientDBCommunityStoreOperation, | ClientDBCommunityStoreOperation, | ||||
CommunityStoreOperation, | CommunityStoreOperation, | ||||
} from '../ops/community-store-ops.js'; | } from '../ops/community-store-ops.js'; | ||||
import type { | import type { | ||||
Show All 32 Lines | export type StoreOperations = { | ||||
+draftStoreOperations: $ReadOnlyArray<DraftStoreOperation>, | +draftStoreOperations: $ReadOnlyArray<DraftStoreOperation>, | ||||
+threadStoreOperations: $ReadOnlyArray<ThreadStoreOperation>, | +threadStoreOperations: $ReadOnlyArray<ThreadStoreOperation>, | ||||
+messageStoreOperations: $ReadOnlyArray<MessageStoreOperation>, | +messageStoreOperations: $ReadOnlyArray<MessageStoreOperation>, | ||||
+reportStoreOperations: $ReadOnlyArray<ReportStoreOperation>, | +reportStoreOperations: $ReadOnlyArray<ReportStoreOperation>, | ||||
+userStoreOperations: $ReadOnlyArray<UserStoreOperation>, | +userStoreOperations: $ReadOnlyArray<UserStoreOperation>, | ||||
+keyserverStoreOperations: $ReadOnlyArray<KeyserverStoreOperation>, | +keyserverStoreOperations: $ReadOnlyArray<KeyserverStoreOperation>, | ||||
+communityStoreOperations: $ReadOnlyArray<CommunityStoreOperation>, | +communityStoreOperations: $ReadOnlyArray<CommunityStoreOperation>, | ||||
+integrityStoreOperations: $ReadOnlyArray<IntegrityStoreOperation>, | +integrityStoreOperations: $ReadOnlyArray<IntegrityStoreOperation>, | ||||
+syncedMetadataStoreOperations: $ReadOnlyArray<ClientDBSyncedMetadataStoreOperation>, | |||||
}; | }; | ||||
export type ClientDBStoreOperations = { | export type ClientDBStoreOperations = { | ||||
+draftStoreOperations?: $ReadOnlyArray<ClientDBDraftStoreOperation>, | +draftStoreOperations?: $ReadOnlyArray<ClientDBDraftStoreOperation>, | ||||
+threadStoreOperations?: $ReadOnlyArray<ClientDBThreadStoreOperation>, | +threadStoreOperations?: $ReadOnlyArray<ClientDBThreadStoreOperation>, | ||||
+messageStoreOperations?: $ReadOnlyArray<ClientDBMessageStoreOperation>, | +messageStoreOperations?: $ReadOnlyArray<ClientDBMessageStoreOperation>, | ||||
+reportStoreOperations?: $ReadOnlyArray<ClientDBReportStoreOperation>, | +reportStoreOperations?: $ReadOnlyArray<ClientDBReportStoreOperation>, | ||||
+keyserverStoreOperations?: $ReadOnlyArray<ClientDBKeyserverStoreOperation>, | +keyserverStoreOperations?: $ReadOnlyArray<ClientDBKeyserverStoreOperation>, | ||||
Show All 21 Lines | export type ClientStore = { | ||||
+messages: ?$ReadOnlyArray<ClientDBMessageInfo>, | +messages: ?$ReadOnlyArray<ClientDBMessageInfo>, | ||||
+threadStore: ?ThreadStore, | +threadStore: ?ThreadStore, | ||||
+messageStoreThreads: ?$ReadOnlyArray<ClientDBThreadMessageInfo>, | +messageStoreThreads: ?$ReadOnlyArray<ClientDBThreadMessageInfo>, | ||||
+reports: ?$ReadOnlyArray<ClientReportCreationRequest>, | +reports: ?$ReadOnlyArray<ClientReportCreationRequest>, | ||||
+users: ?UserInfos, | +users: ?UserInfos, | ||||
+keyserverInfos: ?KeyserverInfos, | +keyserverInfos: ?KeyserverInfos, | ||||
+communityInfos: ?CommunityInfos, | +communityInfos: ?CommunityInfos, | ||||
+threadHashes: ?ThreadHashes, | +threadHashes: ?ThreadHashes, | ||||
+syncedMetadata: ?SyncedMetadata, | |||||
}; | }; |