Changeset View
Changeset View
Standalone View
Standalone View
lib/types/user-types.js
// @flow | // @flow | ||||
import type { DefaultNotificationPayload } from './account-types.js'; | import type { DefaultNotificationPayload } from './account-types.js'; | ||||
import type { AvatarDBContent } from './avatar-types'; | |||||
import type { UserRelationshipStatus } from './relationship-types.js'; | import type { UserRelationshipStatus } from './relationship-types.js'; | ||||
import type { UserInconsistencyReportCreationRequest } from './report-types.js'; | import type { UserInconsistencyReportCreationRequest } from './report-types.js'; | ||||
export type GlobalUserInfo = { | export type GlobalUserInfo = { | ||||
+id: string, | +id: string, | ||||
+username: ?string, | +username: ?string, | ||||
}; | }; | ||||
Show All 31 Lines | export type OldLoggedInUserInfo = { | ||||
+username: string, | +username: string, | ||||
+email: string, | +email: string, | ||||
+emailVerified: boolean, | +emailVerified: boolean, | ||||
}; | }; | ||||
export type LoggedInUserInfo = { | export type LoggedInUserInfo = { | ||||
+id: string, | +id: string, | ||||
+username: string, | +username: string, | ||||
+avatar?: AvatarDBContent, | |||||
+settings?: DefaultNotificationPayload, | +settings?: DefaultNotificationPayload, | ||||
}; | }; | ||||
export type LoggedOutUserInfo = { | export type LoggedOutUserInfo = { | ||||
+id: string, | +id: string, | ||||
+anonymous: true, | +anonymous: true, | ||||
}; | }; | ||||
Show All 18 Lines |