2019-09-16 22:12:43 +02:00
|
|
|
// @flow
|
|
|
|
|
2019-12-05 17:01:25 +01:00
|
|
|
type DeviceType = 'mobile' | 'web' | 'desktop';
|
|
|
|
|
2019-09-16 22:12:43 +02:00
|
|
|
declare type User = {
|
2020-06-01 18:27:07 +02:00
|
|
|
country: ?string,
|
2019-09-16 22:12:43 +02:00
|
|
|
created_at: string,
|
|
|
|
family_name: ?string,
|
|
|
|
given_name: ?string,
|
|
|
|
groups: Array<string>,
|
|
|
|
has_verified_email: boolean,
|
|
|
|
id: number,
|
|
|
|
invite_reward_claimed: boolean,
|
|
|
|
invited_at: ?number,
|
|
|
|
invited_by_id: number,
|
|
|
|
invites_remaining: number,
|
|
|
|
is_email_enabled: boolean,
|
|
|
|
is_identity_verified: boolean,
|
|
|
|
is_reward_approved: boolean,
|
2020-04-13 15:40:25 +02:00
|
|
|
password_set: boolean,
|
2019-09-16 22:12:43 +02:00
|
|
|
language: string,
|
|
|
|
manual_approval_user_id: ?number,
|
2020-04-20 22:45:21 +02:00
|
|
|
primary_email: ?string,
|
|
|
|
latest_claimed_email: ?string,
|
2019-09-16 22:12:43 +02:00
|
|
|
reward_status_change_trigger: string,
|
|
|
|
updated_at: string,
|
|
|
|
youtube_channels: ?Array<string>,
|
2019-12-05 17:01:25 +01:00
|
|
|
device_types: Array<DeviceType>,
|
2019-09-16 22:12:43 +02:00
|
|
|
};
|