Plaid: additional types added (#41156)

* additional types added

* ViewName type added

* ViewName type is used
This commit is contained in:
Natalia C
2019-12-19 23:14:57 -07:00
committed by Daniel Rosenwasser
parent 0cb6d12fac
commit cbe0768b90

View File

@@ -25,10 +25,14 @@ export namespace Plaid {
onLoad?: OnLoad;
language?: Language;
countryCodes?: Country[];
webhook?: string;
userLegalName?: string;
userEmailAddress?: string;
token?: string;
isWebView?: boolean;
oauthNonce?: string;
oauthRedirectUri?: string;
oauthStateId?: string;
}
type OnSuccess = (public_token: string, metadata: OnSuccessMetaData) => void;
@@ -48,6 +52,16 @@ export namespace Plaid {
type Country = 'US' | 'CA' | 'GB';
type VerificationStatus = 'pending_automatic_verification' | 'pending_manual_verification' | 'manually_verified';
type ViewName =
| 'CONNECTED'
| 'CREDENTIAL'
| 'ERROR'
| 'EXIT'
| 'LOADING'
| 'MFA'
| 'RECAPTCHA'
| 'SELECT_ACCOUNT'
| 'SELECT_INSTITUTION';
type EventName =
| 'ERROR'
| 'EXIT'
@@ -113,7 +127,7 @@ export namespace Plaid {
mfa_type: string;
request_id: string;
timestamp: string;
view_name: string;
view_name: ViewName;
}
interface ExitOptions {
force: boolean;