mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
Plaid: additional types added (#41156)
* additional types added * ViewName type added * ViewName type is used
This commit is contained in:
committed by
Daniel Rosenwasser
parent
0cb6d12fac
commit
cbe0768b90
16
types/plaid-link/index.d.ts
vendored
16
types/plaid-link/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user