react-native-plaid-link-sdk 12.0.0-beta.3 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -4
- package/android/.gradle/8.1.1/checksums/checksums.lock +0 -0
- package/android/.gradle/8.1.1/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.1.1/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/8.1.1/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/8.1.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.1.1/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/8.1.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.1.1/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.gradle/file-system.probe +0 -0
- package/android/build/generated/source/buildConfig/debug/com/plaid/BuildConfig.java +12 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +13 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +5 -0
- package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +1 -0
- package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/R.txt +2 -0
- package/android/build/intermediates/default_proguard_files/global/proguard-android-optimize.txt-8.1.1 +117 -0
- package/android/build/intermediates/default_proguard_files/global/proguard-android.txt-8.1.1 +116 -0
- package/android/build/intermediates/default_proguard_files/global/proguard-defaults.txt-8.1.1 +117 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +2 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- package/android/build/intermediates/lint_model_metadata/debug/lint-model-metadata.properties +2 -0
- package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +4 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +17 -0
- package/android/build/intermediates/merged_manifest/debug/AndroidManifest.xml +13 -0
- package/android/build/intermediates/packaged_res/debug/layout/plk_embedded_view.xml +5 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +3 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +25 -0
- package/android/build.gradle +5 -5
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/src/main/java/com/plaid/PlaidModule.kt +9 -0
- package/android/src/paper/java/com/plaid/NativePlaidLinkModuleAndroidSpec.java +4 -0
- package/android/src/paper/java/com/plaid/NativePlaidLinkModuleiOSSpec.java +4 -0
- package/dist/PlaidLink.d.ts +14 -8
- package/dist/PlaidLink.js +27 -57
- package/dist/Types.d.ts +60 -19
- package/dist/Types.js +40 -19
- package/dist/fabric/EmbeddedLinkViewNativeComponent.d.ts +2 -0
- package/dist/fabric/NativePlaidLinkModuleiOS.d.ts +2 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.js +3 -3
- package/ios/PLKEmbeddedViewComponentView.h +14 -1
- package/ios/PLKEmbeddedViewComponentView.mm +6 -0
- package/ios/PLKFabricHelpers.h +44 -0
- package/ios/RNLinksdk.mm +35 -0
- package/package.json +4 -4
- package/react-native-plaid-link-sdk.podspec +8 -1
- package/src/PlaidLink.tsx +11 -84
- package/src/Types.ts +39 -21
- package/src/fabric/NativePlaidLinkModuleAndroid.ts +1 -0
- package/src/fabric/NativePlaidLinkModuleiOS.ts +1 -0
- package/src/index.ts +4 -8
- package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
- package/ios/RNLinksdk.xcodeproj/project.pbxproj +0 -300
- package/ios/RNLinksdk.xcworkspace/contents.xcworkspacedata +0 -10
- package/ios/RNLinksdk.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- /package/android/.gradle/{7.4.2 → 8.1.1}/dependencies-accessors/gc.properties +0 -0
- /package/android/.gradle/{7.4.2 → 8.1.1}/fileChanges/last-build.bin +0 -0
- /package/android/.gradle/{7.4.2 → 8.1.1}/gc.properties +0 -0
package/ios/RNLinksdk.mm
CHANGED
|
@@ -202,6 +202,15 @@ RCT_EXPORT_METHOD(syncFinanceKit:(NSString *)token
|
|
|
202
202
|
}
|
|
203
203
|
];
|
|
204
204
|
}
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
RCT_EXPORT_METHOD(submit:(NSString * _Nullable)phoneNumber) {
|
|
208
|
+
if (self.linkHandler) {
|
|
209
|
+
PLKSubmissionData *submissionData = [[PLKSubmissionData alloc] init];
|
|
210
|
+
submissionData.phoneNumber = phoneNumber;
|
|
211
|
+
[self.linkHandler submit: submissionData];
|
|
212
|
+
}
|
|
213
|
+
}
|
|
205
214
|
|
|
206
215
|
#pragma mark - Bridging
|
|
207
216
|
|
|
@@ -495,6 +504,28 @@ RCT_EXPORT_METHOD(syncFinanceKit:(NSString *)token
|
|
|
495
504
|
return @"CONNECT_NEW_INSTITUTION";
|
|
496
505
|
case PLKEventNameValueSubmitOTP:
|
|
497
506
|
return @"SUBMIT_OTP";
|
|
507
|
+
case PLKEventNameValueLayerReady:
|
|
508
|
+
return @"LAYER_READY";
|
|
509
|
+
case PLKEventNameValueLayerNotAvailable:
|
|
510
|
+
return @"LAYER_NOT_AVAILABLE";
|
|
511
|
+
case PLKEventNameValueSubmitEmail:
|
|
512
|
+
return @"SUBMIT_EMAIL";
|
|
513
|
+
case PLKEventNameValueSkipSubmitEmail:
|
|
514
|
+
return @"SKIP_SUBMIT_EMAIL";
|
|
515
|
+
case PLKEventNameValueRememberMeEnabled:
|
|
516
|
+
return @"REMEMBER_ME_ENABLED";
|
|
517
|
+
case PLKEventNameValueRememberMeDisabled:
|
|
518
|
+
return @"REMEMBER_ME_DISABLED";
|
|
519
|
+
case PLKEventNameValueRememberMeHoldout:
|
|
520
|
+
return @"REMEMBER_ME_HOLDOUT";
|
|
521
|
+
case PLKEventNameValueSelectSavedInstitution:
|
|
522
|
+
return @"SELECT_SAVED_INSTITUTION";
|
|
523
|
+
case PLKEventNameValueSelectSavedAccount:
|
|
524
|
+
return @"SELECT_SAVED_ACCOUNT";
|
|
525
|
+
case PLKEventNameValueAutoSelectSavedInstitution:
|
|
526
|
+
return @"AUTO_SELECT_SAVED_INSTITUTION";
|
|
527
|
+
case PLKEventNameValuePlaidCheckPane:
|
|
528
|
+
return @"PLAID_CHECK_PANE";
|
|
498
529
|
}
|
|
499
530
|
return @"unknown";
|
|
500
531
|
}
|
|
@@ -642,6 +673,10 @@ RCT_EXPORT_METHOD(syncFinanceKit:(NSString *)token
|
|
|
642
673
|
return @"SELECT_SAVED_ACCOUNT";
|
|
643
674
|
case PLKViewNameValueProfileDataReview:
|
|
644
675
|
return @"PROFILE_DATA_REVIEW";
|
|
676
|
+
case PLKViewNameValueSubmitEmail:
|
|
677
|
+
return @"SUBMIT_EMAIL";
|
|
678
|
+
case PLKViewNameValueVerifyEmail:
|
|
679
|
+
return @"VERIFY_EMAIL";
|
|
645
680
|
}
|
|
646
681
|
|
|
647
682
|
return @"unknown";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-plaid-link-sdk",
|
|
3
|
-
"version": "12.0.0
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "React Native Plaid Link SDK",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@react-native-community/eslint-plugin": "^1.1.0",
|
|
50
50
|
"@types/jest": "^26.0.14",
|
|
51
|
-
"@types/react": "^
|
|
51
|
+
"@types/react": "^18.2.6",
|
|
52
52
|
"@types/react-native": "^0.71.3",
|
|
53
53
|
"@types/react-test-renderer": "^16.9.3",
|
|
54
54
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"jest": "^29.6.1",
|
|
62
62
|
"lint-staged": "^9.4.2",
|
|
63
63
|
"prettier": "^1.18.2",
|
|
64
|
-
"react": "18.
|
|
65
|
-
"react-native": "0.
|
|
64
|
+
"react": "18.2.0",
|
|
65
|
+
"react-native": "0.74.3",
|
|
66
66
|
"typescript": "^4.9.5"
|
|
67
67
|
},
|
|
68
68
|
"codegenConfig": {
|
|
@@ -21,6 +21,13 @@ Pod::Spec.new do |s|
|
|
|
21
21
|
# we don't want this to be seen by Swift
|
|
22
22
|
s.private_header_files = 'ios/PLKFabricHelpers.h'
|
|
23
23
|
|
|
24
|
+
if ENV['USE_FRAMEWORKS'] == '1'
|
|
25
|
+
s.pod_target_xcconfig = {
|
|
26
|
+
"OTHER_CFLAGS" => "$(inherited) -DUSE_FRAMEWORKS",
|
|
27
|
+
"OTHER_CPLUSPLUSFLAGS" => "$(inherited) -DUSE_FRAMEWORKS",
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
|
|
24
31
|
if fabric_enabled
|
|
25
32
|
install_modules_dependencies(s)
|
|
26
33
|
else
|
|
@@ -28,5 +35,5 @@ Pod::Spec.new do |s|
|
|
|
28
35
|
end
|
|
29
36
|
|
|
30
37
|
s.dependency 'React-Core'
|
|
31
|
-
s.dependency 'Plaid', '~> 6.0.0
|
|
38
|
+
s.dependency 'Plaid', '~> 6.0.0'
|
|
32
39
|
end
|
package/src/PlaidLink.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { NativeEventEmitter, Platform
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
import { NativeEventEmitter, Platform } from 'react-native';
|
|
3
3
|
import {
|
|
4
4
|
LinkError,
|
|
5
5
|
LinkEventListener,
|
|
@@ -9,10 +9,9 @@ import {
|
|
|
9
9
|
LinkOpenProps,
|
|
10
10
|
LinkSuccess,
|
|
11
11
|
LinkTokenConfiguration,
|
|
12
|
-
PlaidLinkComponentProps,
|
|
13
|
-
PlaidLinkProps,
|
|
14
12
|
FinanceKitErrorType,
|
|
15
13
|
FinanceKitError,
|
|
14
|
+
SubmissionData,
|
|
16
15
|
} from './Types';
|
|
17
16
|
import RNLinksdkAndroid from './fabric/NativePlaidLinkModuleAndroid';
|
|
18
17
|
import RNLinksdkiOS from './fabric/NativePlaidLinkModuleiOS';
|
|
@@ -102,6 +101,14 @@ export const dismissLink = () => {
|
|
|
102
101
|
}
|
|
103
102
|
};
|
|
104
103
|
|
|
104
|
+
export const submit = (data: SubmissionData): void => {
|
|
105
|
+
if (Platform.OS === 'android') {
|
|
106
|
+
RNLinksdkAndroid?.submit(data.phoneNumber);
|
|
107
|
+
} else {
|
|
108
|
+
RNLinksdkiOS?.submit(data.phoneNumber);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
|
|
105
112
|
/**
|
|
106
113
|
* Function to sync the user's transactions from their Apple card.
|
|
107
114
|
*
|
|
@@ -142,83 +149,3 @@ export const syncFinanceKit = (
|
|
|
142
149
|
)
|
|
143
150
|
}
|
|
144
151
|
};
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* @deprecated This component is deprecated. Create your own component and use the create & open methods.
|
|
148
|
-
*/
|
|
149
|
-
export const PlaidLink = (props: PlaidLinkComponentProps) => {
|
|
150
|
-
function onPress() {
|
|
151
|
-
// Create a handler.
|
|
152
|
-
create(props.tokenConfig);
|
|
153
|
-
|
|
154
|
-
props.onPress?.();
|
|
155
|
-
|
|
156
|
-
const openProps: LinkOpenProps = {
|
|
157
|
-
onSuccess: props.onSuccess,
|
|
158
|
-
onExit: props.onExit,
|
|
159
|
-
iOSPresentationStyle: props.iOSPresentationStyle,
|
|
160
|
-
logLevel: props.logLevel,
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
open(openProps);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
return (
|
|
167
|
-
<TouchableOpacity onPress={onPress}>{props.children}</TouchableOpacity>
|
|
168
|
-
);
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* @deprecated This method is deprecated. For faster loading use the create & open methods.
|
|
173
|
-
*/
|
|
174
|
-
export const openLink = async (props: PlaidLinkProps) => {
|
|
175
|
-
let config = props.tokenConfig;
|
|
176
|
-
let noLoadingState = config.noLoadingState ?? false;
|
|
177
|
-
|
|
178
|
-
if (Platform.OS === 'android') {
|
|
179
|
-
RNLinksdkAndroid?.startLinkActivityForResult(
|
|
180
|
-
config.token,
|
|
181
|
-
noLoadingState,
|
|
182
|
-
config.logLevel ?? LinkLogLevel.ERROR,
|
|
183
|
-
(result: LinkSuccess) => {
|
|
184
|
-
if (props.onSuccess != null) {
|
|
185
|
-
props.onSuccess(result);
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
(result: LinkExit) => {
|
|
189
|
-
if (props.onExit != null) {
|
|
190
|
-
if (result.error != null && result.error.displayMessage != null) {
|
|
191
|
-
//TODO(RNSDK-118): Remove errorDisplayMessage field in next major update.
|
|
192
|
-
result.error.errorDisplayMessage = result.error.displayMessage;
|
|
193
|
-
}
|
|
194
|
-
props.onExit(result);
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
);
|
|
198
|
-
} else {
|
|
199
|
-
RNLinksdkiOS?.create(config.token, noLoadingState);
|
|
200
|
-
|
|
201
|
-
let presentFullScreen =
|
|
202
|
-
props.iOSPresentationStyle == LinkIOSPresentationStyle.FULL_SCREEN;
|
|
203
|
-
|
|
204
|
-
RNLinksdkiOS?.open(
|
|
205
|
-
presentFullScreen,
|
|
206
|
-
(result: LinkSuccess) => {
|
|
207
|
-
if (props.onSuccess != null) {
|
|
208
|
-
props.onSuccess(result);
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
(error: LinkError, result: LinkExit) => {
|
|
212
|
-
if (props.onExit != null) {
|
|
213
|
-
if (error) {
|
|
214
|
-
var data = result || {};
|
|
215
|
-
data.error = error;
|
|
216
|
-
props.onExit(data);
|
|
217
|
-
} else {
|
|
218
|
-
props.onExit(result);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
);
|
|
223
|
-
}
|
|
224
|
-
};
|
package/src/Types.ts
CHANGED
|
@@ -438,52 +438,63 @@ export interface LinkEventMetadata {
|
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
export enum LinkEventName {
|
|
441
|
-
|
|
441
|
+
AUTO_SELECT_SAVED_INSTITUTION = 'AUTO_SELECT_SAVED_INSTITUTION',
|
|
442
|
+
BANK_INCOME_INSIGHTS_COMPLETED = 'BANK_INCOME_INSIGHTS_COMPLETED',
|
|
442
443
|
CLOSE_OAUTH = 'CLOSE_OAUTH',
|
|
444
|
+
CONNECT_NEW_INSTITUTION = 'CONNECT_NEW_INSTITUTION',
|
|
443
445
|
ERROR = 'ERROR',
|
|
444
446
|
EXIT = 'EXIT',
|
|
445
447
|
FAIL_OAUTH = 'FAIL_OAUTH',
|
|
446
448
|
HANDOFF = 'HANDOFF',
|
|
447
|
-
|
|
448
|
-
IDENTITY_VERIFICATION_PASS_STEP = 'IDENTITY_VERIFICATION_PASS_STEP',
|
|
449
|
-
IDENTITY_VERIFICATION_FAIL_STEP = 'IDENTITY_VERIFICATION_FAIL_STEP',
|
|
450
|
-
IDENTITY_VERIFICATION_PENDING_REVIEW_STEP = 'IDENTITY_VERIFICATION_PENDING_REVIEW_STEP',
|
|
451
|
-
IDENTITY_VERIFICATION_PENDING_REVIEW_SESSION = 'IDENTITY_VERIFICATION_PENDING_REVIEW_SESSION',
|
|
449
|
+
IDENTITY_VERIFICATION_CLOSE_UI = 'IDENTITY_VERIFICATION_CLOSE_UI',
|
|
452
450
|
IDENTITY_VERIFICATION_CREATE_SESSION = 'IDENTITY_VERIFICATION_CREATE_SESSION',
|
|
453
|
-
IDENTITY_VERIFICATION_RESUME_SESSION = 'IDENTITY_VERIFICATION_RESUME_SESSION',
|
|
454
|
-
IDENTITY_VERIFICATION_PASS_SESSION = 'IDENTITY_VERIFICATION_PASS_SESSION',
|
|
455
451
|
IDENTITY_VERIFICATION_FAIL_SESSION = 'IDENTITY_VERIFICATION_FAIL_SESSION',
|
|
452
|
+
IDENTITY_VERIFICATION_FAIL_STEP = 'IDENTITY_VERIFICATION_FAIL_STEP',
|
|
456
453
|
IDENTITY_VERIFICATION_OPEN_UI = 'IDENTITY_VERIFICATION_OPEN_UI',
|
|
454
|
+
IDENTITY_VERIFICATION_PASS_SESSION = 'IDENTITY_VERIFICATION_PASS_SESSION',
|
|
455
|
+
IDENTITY_VERIFICATION_PASS_STEP = 'IDENTITY_VERIFICATION_PASS_STEP',
|
|
456
|
+
IDENTITY_VERIFICATION_PENDING_REVIEW_SESSION = 'IDENTITY_VERIFICATION_PENDING_REVIEW_SESSION',
|
|
457
|
+
IDENTITY_VERIFICATION_PENDING_REVIEW_STEP = 'IDENTITY_VERIFICATION_PENDING_REVIEW_STEP',
|
|
458
|
+
IDENTITY_VERIFICATION_RESUME_SESSION = 'IDENTITY_VERIFICATION_RESUME_SESSION',
|
|
457
459
|
IDENTITY_VERIFICATION_RESUME_UI = 'IDENTITY_VERIFICATION_RESUME_UI',
|
|
458
|
-
|
|
460
|
+
IDENTITY_VERIFICATION_START_STEP = 'IDENTITY_VERIFICATION_START_STEP',
|
|
461
|
+
LAYER_NOT_AVAILABLE = 'LAYER_NOT_AVAILABLE',
|
|
462
|
+
LAYER_READY = 'LAYER_READY',
|
|
459
463
|
MATCHED_CONSENT = 'MATCHED_CONSENT',
|
|
460
464
|
MATCHED_SELECT_INSTITUTION = 'MATCHED_SELECT_INSTITUTION',
|
|
461
465
|
MATCHED_SELECT_VERIFY_METHOD = 'MATCHED_SELECT_VERIFY_METHOD',
|
|
462
466
|
OPEN = 'OPEN',
|
|
463
467
|
OPEN_MY_PLAID = 'OPEN_MY_PLAID',
|
|
464
468
|
OPEN_OAUTH = 'OPEN_OAUTH',
|
|
465
|
-
|
|
469
|
+
PLAID_CHECK_PANE = 'PLAID_CHECK_PANE',
|
|
466
470
|
PROFILE_ELIGIBILITY_CHECK_ERROR = 'PROFILE_ELIGIBILITY_CHECK_ERROR',
|
|
471
|
+
PROFILE_ELIGIBILITY_CHECK_READY = 'PROFILE_ELIGIBILITY_CHECK_READY',
|
|
472
|
+
REMEMBER_ME_DISABLED = 'REMEMBER_ME_DISABLED',
|
|
473
|
+
REMEMBER_ME_ENABLED = 'REMEMBER_ME_ENABLED',
|
|
474
|
+
REMEMBER_ME_HOLDOUT = 'REMEMBER_ME_HOLDOUT',
|
|
467
475
|
SEARCH_INSTITUTION = 'SEARCH_INSTITUTION',
|
|
476
|
+
SELECT_AUTH_TYPE = 'SELECT_AUTH_TYPE',
|
|
477
|
+
SELECT_BRAND = 'SELECT_BRAND',
|
|
468
478
|
SELECT_DEGRADED_INSTITUTION = 'SELECT_DEGRADED_INSTITUTION',
|
|
469
479
|
SELECT_DOWN_INSTITUTION = 'SELECT_DOWN_INSTITUTION',
|
|
470
480
|
SELECT_FILTERED_INSTITUTION = 'SELECT_FILTERED_INSTITUTION',
|
|
471
481
|
SELECT_INSTITUTION = 'SELECT_INSTITUTION',
|
|
472
|
-
|
|
473
|
-
|
|
482
|
+
SELECT_SAVED_ACCOUNT = 'SELECT_SAVED_ACCOUNT',
|
|
483
|
+
SELECT_SAVED_INSTITUTION = 'SELECT_SAVED_INSTITUTION',
|
|
484
|
+
SKIP_SUBMIT_EMAIL = 'SKIP_SUBMIT_EMAIL',
|
|
485
|
+
SKIP_SUBMIT_PHONE = 'SKIP_SUBMIT_PHONE',
|
|
474
486
|
SUBMIT_ACCOUNT_NUMBER = 'SUBMIT_ACCOUNT_NUMBER',
|
|
487
|
+
SUBMIT_CREDENTIALS = 'SUBMIT_CREDENTIALS',
|
|
475
488
|
SUBMIT_DOCUMENTS = 'SUBMIT_DOCUMENTS',
|
|
476
|
-
SUBMIT_DOCUMENTS_SUCCESS = 'SUBMIT_DOCUMENTS_SUCCESS',
|
|
477
489
|
SUBMIT_DOCUMENTS_ERROR = 'SUBMIT_DOCUMENTS_ERROR',
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
SUBMIT_PHONE = 'SUBMIT_PHONE',
|
|
481
|
-
SKIP_SUBMIT_PHONE = 'SKIP_SUBMIT_PHONE',
|
|
482
|
-
VERIFY_PHONE = 'VERIFY_PHONE',
|
|
483
|
-
SUBMIT_CREDENTIALS = 'SUBMIT_CREDENTIALS',
|
|
490
|
+
SUBMIT_DOCUMENTS_SUCCESS = 'SUBMIT_DOCUMENTS_SUCCESS',
|
|
491
|
+
SUBMIT_EMAIL = 'SUBMIT_EMAIL',
|
|
484
492
|
SUBMIT_MFA = 'SUBMIT_MFA',
|
|
493
|
+
SUBMIT_PHONE = 'SUBMIT_PHONE',
|
|
494
|
+
SUBMIT_ROUTING_NUMBER = 'SUBMIT_ROUTING_NUMBER',
|
|
485
495
|
TRANSITION_VIEW = 'TRANSITION_VIEW',
|
|
486
|
-
|
|
496
|
+
VERIFY_PHONE = 'VERIFY_PHONE',
|
|
497
|
+
VIEW_DATA_TYPES = 'VIEW_DATA_TYPES',
|
|
487
498
|
}
|
|
488
499
|
|
|
489
500
|
export enum LinkEventViewName {
|
|
@@ -511,6 +522,7 @@ export enum LinkEventViewName {
|
|
|
511
522
|
SCREENING = 'SCREENING',
|
|
512
523
|
SELECT_ACCOUNT = 'SELECT_ACCOUNT',
|
|
513
524
|
SELECT_AUTH_TYPE = 'SELECT_AUTH_TYPE',
|
|
525
|
+
SUBMIT_EMAIL = "SUBMIT_EMAIL",
|
|
514
526
|
SUBMIT_PHONE = 'SUBMIT_PHONE',
|
|
515
527
|
VERIFY_PHONE = 'VERIFY_PHONE',
|
|
516
528
|
SELECT_SAVED_INSTITUTION = 'SELECT_SAVED_INSTITUTION',
|
|
@@ -521,6 +533,7 @@ export enum LinkEventViewName {
|
|
|
521
533
|
SUBMIT_DOCUMENTS_SUCCESS = 'SUBMIT_DOCUMENTS_SUCCESS',
|
|
522
534
|
SUBMIT_DOCUMENTS_ERROR = 'SUBMIT_DOCUMENTS_ERROR',
|
|
523
535
|
UPLOAD_DOCUMENTS = 'UPLOAD_DOCUMENTS',
|
|
536
|
+
VERIFY_EMAIL = "VERIFY_EMAIL",
|
|
524
537
|
VERIFY_SMS = 'VERIFY_SMS',
|
|
525
538
|
}
|
|
526
539
|
|
|
@@ -596,4 +609,9 @@ export type FinanceKitError =
|
|
|
596
609
|
| PermissionError
|
|
597
610
|
| LinkApiError
|
|
598
611
|
| PermissionAccessError
|
|
599
|
-
| UnknownError;
|
|
612
|
+
| UnknownError;
|
|
613
|
+
|
|
614
|
+
export interface SubmissionData {
|
|
615
|
+
phoneNumber?: string;
|
|
616
|
+
};
|
|
617
|
+
|
|
@@ -18,6 +18,7 @@ export interface Spec extends TurboModule {
|
|
|
18
18
|
onSuccessCallback: (result: UnsafeObject<LinkSuccess>) => void,
|
|
19
19
|
onExitCallback: (result: UnsafeObject<LinkExit>) => void
|
|
20
20
|
): void;
|
|
21
|
+
submit(phoneNumber: string | undefined): void;
|
|
21
22
|
// those two are here for event emitter methods
|
|
22
23
|
addListener(eventName: string): void;
|
|
23
24
|
removeListeners(count: Double): void;
|
|
@@ -13,6 +13,7 @@ export interface Spec extends TurboModule {
|
|
|
13
13
|
onExit: (error: UnsafeObject<LinkError>, result: UnsafeObject<LinkExit>) => void,
|
|
14
14
|
): void;
|
|
15
15
|
dismiss(): void;
|
|
16
|
+
submit(phoneNumber: string | undefined): void;
|
|
16
17
|
// those two are here for event emitter methods
|
|
17
18
|
addListener(eventName: string): void;
|
|
18
19
|
removeListeners(count: Int32): void;
|
package/src/index.ts
CHANGED
|
@@ -1,25 +1,21 @@
|
|
|
1
|
+
// qwe clean this up...
|
|
1
2
|
import {
|
|
2
|
-
openLink,
|
|
3
|
-
PlaidLink,
|
|
4
3
|
create,
|
|
5
4
|
open,
|
|
6
5
|
dismissLink,
|
|
7
6
|
usePlaidEmitter,
|
|
8
7
|
syncFinanceKit,
|
|
8
|
+
submit,
|
|
9
9
|
} from './PlaidLink';
|
|
10
10
|
|
|
11
11
|
export * from './Types';
|
|
12
|
-
|
|
13
|
-
export default PlaidLink;
|
|
14
|
-
|
|
15
12
|
export {
|
|
16
|
-
PlaidLink,
|
|
17
|
-
openLink,
|
|
18
13
|
create,
|
|
19
14
|
open,
|
|
20
15
|
dismissLink,
|
|
21
16
|
usePlaidEmitter,
|
|
22
|
-
syncFinanceKit
|
|
17
|
+
syncFinanceKit,
|
|
18
|
+
submit,
|
|
23
19
|
};
|
|
24
20
|
|
|
25
21
|
// Components
|
|
Binary file
|
|
Binary file
|
|
Binary file
|