Changeset View
Changeset View
Standalone View
Standalone View
lib/types/account-types.js
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
type DeviceTokenUpdateRequest = { | type DeviceTokenUpdateRequest = { | ||||
+deviceToken: string, | +deviceToken: string, | ||||
}; | }; | ||||
export type RegisterRequest = { | export type RegisterRequest = { | ||||
+username: string, | +username: string, | ||||
+email?: empty, | |||||
+password: string, | +password: string, | ||||
+calendarQuery?: ?CalendarQuery, | +calendarQuery?: ?CalendarQuery, | ||||
+deviceTokenUpdateRequest?: ?DeviceTokenUpdateRequest, | +deviceTokenUpdateRequest?: ?DeviceTokenUpdateRequest, | ||||
+platformDetails: PlatformDetails, | +platformDetails: PlatformDetails, | ||||
+primaryIdentityPublicKey?: empty, | |||||
+signedIdentityKeysBlob?: SignedIdentityKeysBlob, | +signedIdentityKeysBlob?: SignedIdentityKeysBlob, | ||||
}; | }; | ||||
export type RegisterResponse = { | export type RegisterResponse = { | ||||
id: string, | id: string, | ||||
rawMessageInfos: $ReadOnlyArray<RawMessageInfo>, | rawMessageInfos: $ReadOnlyArray<RawMessageInfo>, | ||||
currentUserInfo: OldLoggedInUserInfo | LoggedInUserInfo, | currentUserInfo: OldLoggedInUserInfo | LoggedInUserInfo, | ||||
cookieChange: { | cookieChange: { | ||||
▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | export type LogInRequest = { | ||||
+usernameOrEmail?: ?string, | +usernameOrEmail?: ?string, | ||||
+username?: ?string, | +username?: ?string, | ||||
+password: string, | +password: string, | ||||
+calendarQuery?: ?CalendarQuery, | +calendarQuery?: ?CalendarQuery, | ||||
+deviceTokenUpdateRequest?: ?DeviceTokenUpdateRequest, | +deviceTokenUpdateRequest?: ?DeviceTokenUpdateRequest, | ||||
+platformDetails: PlatformDetails, | +platformDetails: PlatformDetails, | ||||
+watchedIDs: $ReadOnlyArray<string>, | +watchedIDs: $ReadOnlyArray<string>, | ||||
+source?: LogInActionSource, | +source?: LogInActionSource, | ||||
+primaryIdentityPublicKey?: empty, | |||||
+signedIdentityKeysBlob?: SignedIdentityKeysBlob, | +signedIdentityKeysBlob?: SignedIdentityKeysBlob, | ||||
}; | }; | ||||
export type LogInResponse = { | export type LogInResponse = { | ||||
+currentUserInfo: LoggedInUserInfo | OldLoggedInUserInfo, | +currentUserInfo: LoggedInUserInfo | OldLoggedInUserInfo, | ||||
+rawMessageInfos: $ReadOnlyArray<RawMessageInfo>, | +rawMessageInfos: $ReadOnlyArray<RawMessageInfo>, | ||||
+truncationStatuses: MessageTruncationStatuses, | +truncationStatuses: MessageTruncationStatuses, | ||||
+userInfos: $ReadOnlyArray<UserInfo>, | +userInfos: $ReadOnlyArray<UserInfo>, | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |