-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
Copy pathAccount.ts
75 lines (53 loc) · 2.26 KB
/
Account.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import type {ValueOf} from 'type-fest';
import type CONST from '@src/CONST';
import type DismissedReferralBanners from './DismissedReferralBanners';
import type * as OnyxCommon from './OnyxCommon';
import type {TravelSettings} from './TravelSettings';
type TwoFactorAuthStep = ValueOf<typeof CONST.TWO_FACTOR_AUTH_STEPS> | '';
type Account = {
/** Whether SAML is enabled for the current account */
isSAMLEnabled?: boolean;
/** Whether SAML is required for the current account */
isSAMLRequired?: boolean;
/** Is this account having trouble receiving emails? */
hasEmailDeliveryFailure?: boolean;
/** URL to the assigned guide's appointment booking calendar */
guideCalendarLink?: string;
/** User recovery codes for setting up 2-FA */
recoveryCodes?: string;
/** Secret key to enable 2FA within the authenticator app */
twoFactorAuthSecretKey?: string;
/** Whether this account has 2FA enabled or not */
requiresTwoFactorAuth?: boolean;
/** Whether the account is validated */
validated?: boolean;
/** The primaryLogin associated with the account */
primaryLogin?: string;
/** The message to be displayed when code requested */
message?: string;
/** Form that is being loaded */
loadingForm?: ValueOf<typeof CONST.FORMS>;
/** Whether the user forgot their password */
forgotPassword?: boolean;
/** Whether the account exists */
accountExists?: boolean;
/** Is the account / domain under domain control? */
domainControlled?: boolean;
/** Whether the validation code has expired */
validateCodeExpired?: boolean;
/** Whether a sign is loading */
isLoading?: boolean;
errors?: OnyxCommon.Errors | null;
success?: string;
codesAreCopied?: boolean;
twoFactorAuthStep?: TwoFactorAuthStep;
dismissedReferralBanners?: DismissedReferralBanners;
/** Object containing all account information necessary to connect with Spontana */
travelSettings?: TravelSettings;
/** Indicates whether the user is an approved accountant */
isApprovedAccountant?: boolean;
/** Indicates whether the user is a client of an approved accountant */
isApprovedAccountantClient?: boolean;
};
export default Account;
export type {TwoFactorAuthStep};