idwise-react-native-sdk 5.5.5 → 5.6.2
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/IdwiseReactNativeSdk.podspec +33 -0
- package/LICENSE +1 -1
- package/android/build.gradle +34 -54
- package/android/gradle.properties +6 -6
- package/android/src/main/AndroidManifest.xml +1 -2
- package/android/src/main/java/com/{idwisemobilesdk/IdwiseMobileSdkModule.kt → idwisereactnativesdk/IdwiseReactNativeSdkModule.kt} +47 -36
- package/android/src/main/java/com/idwisereactnativesdk/IdwiseReactNativeSdkPackage.kt +33 -0
- package/ios/IdwiseReactNativeSdk.h +5 -0
- package/ios/{IdwiseMobileSdk.mm → IdwiseReactNativeSdk.mm} +22 -1
- package/ios/{IdwiseMobileSdk.swift → IdwiseReactNativeSdk.swift} +17 -17
- package/lib/module/ApplicantDetailsKeys.js +2 -0
- package/lib/module/ApplicantDetailsKeys.js.map +1 -1
- package/lib/module/IDWise.js +5 -2
- package/lib/module/IDWise.js.map +1 -1
- package/lib/module/IDWiseConstants.js +8 -0
- package/lib/module/IDWiseConstants.js.map +1 -1
- package/lib/module/IDWiseDynamic.js +4 -2
- package/lib/module/IDWiseDynamic.js.map +1 -1
- package/lib/module/IDWiseEventListeners.js +22 -16
- package/lib/module/IDWiseEventListeners.js.map +1 -1
- package/lib/module/NativeIdwiseReactNativeSdk.js +5 -0
- package/lib/module/NativeIdwiseReactNativeSdk.js.map +1 -0
- package/lib/module/index.d.js +10 -0
- package/lib/module/index.d.js.map +1 -0
- package/lib/module/index.js +6 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/package.json +63 -35
- package/src/IDWise.js +3 -2
- package/src/IDWiseDynamic.js +2 -2
- package/src/IDWiseEventListeners.js +8 -2
- package/src/NativeIdwiseReactNativeSdk.ts +20 -0
- package/src/index.d.ts +125 -0
- package/tsconfig.json +7 -8
- package/android/src/main/AndroidManifestNew.xml +0 -2
- package/android/src/main/java/com/idwisemobilesdk/IdwiseMobileSdkPackage.kt +0 -17
- package/idwise-react-native-sdk.podspec +0 -63
- package/ios/IDWiseSDK.xcframework/Info.plist +0 -48
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Assets.car +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BulletCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BulletCellRTL.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/DocumentCategorySelectionViewController.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentTypeTableViewCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/UIViewController-HuT-DA-csJ.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/ErrorFeedbackViewController.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Headers/IDWise.h +0 -18
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/IDWiseSDK +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/UIViewController-A5G-4b-J84.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/MenuCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/MenuWidgetView.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.abi.json +0 -31242
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -660
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.swiftinterface +0 -660
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Mulish-Bold.ttf +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Mulish-Light.ttf +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Mulish-Regular.ttf +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/ProcessJourneyViewController.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProgressBarMenuScreen.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProgressBarView.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/SelfieViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/SelfieViewController.storyboardc/UIViewController-Od6-6k-VCn.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StartJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StartJourneyViewController.storyboardc/StartJourneyViewController.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StartJourneyViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StepCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/TokenExpiredVC.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/TokenExpiredVC.storyboardc/TokenExpiredVC.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/TokenExpiredVC.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/_CodeSignature/CodeResources +0 -868
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/analytics/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/metadata.json +0 -118
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/analytics/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/model/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.net +0 -4737
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.shape +0 -1789
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.weights +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/neural_network_optionals/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model1/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/analytics/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/metadata.json +0 -82
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/model/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.net +0 -2250
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.shape +0 -718
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.weights +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/neural_network_optionals/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/en.lproj/Localizable.strings +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/journey_image_config.json +0 -96
- package/ios/IDWiseSDK.xcframework/ios-arm64/dSYMs/IDWiseSDK.framework.dSYM/Contents/Info.plist +0 -20
- package/ios/IDWiseSDK.xcframework/ios-arm64/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/DWARF/IDWiseSDK +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/IDWiseSDK.yml +0 -5220
- package/ios/IDWiseSDK.xcframework/ios-arm64/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/Swift/aarch64/FingerprintPro.swiftinterface +0 -237
- package/ios/IDWiseSDK.xcframework/ios-arm64/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/Swift/aarch64/ShieldFraud.swiftinterface +0 -170
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Assets.car +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/BulletCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/BulletCellRTL.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/DocumentCategorySelectionViewController.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/DocumentTypeTableViewCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/UIViewController-HuT-DA-csJ.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/ErrorFeedbackViewController.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Headers/IDWise.h +0 -18
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/IDWiseSDK +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/UIViewController-A5G-4b-J84.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/MenuCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/MenuWidgetView.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -31242
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -660
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -660
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -31242
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -660
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -660
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Mulish-Bold.ttf +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Mulish-Light.ttf +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Mulish-Regular.ttf +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/ProcessJourneyViewController.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/ProgressBarMenuScreen.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/ProgressBarView.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/SelfieViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/SelfieViewController.storyboardc/UIViewController-Od6-6k-VCn.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/StartJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/StartJourneyViewController.storyboardc/StartJourneyViewController.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/StartJourneyViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/StepCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/TokenExpiredVC.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/TokenExpiredVC.storyboardc/TokenExpiredVC.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/TokenExpiredVC.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/_CodeSignature/CodeResources +0 -923
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/analytics/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/metadata.json +0 -118
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/analytics/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/model/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.net +0 -4737
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.shape +0 -1789
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.weights +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/neural_network_optionals/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model1/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/analytics/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/metadata.json +0 -82
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/model/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.net +0 -2250
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.shape +0 -718
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.weights +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/neural_network_optionals/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/en.lproj/Localizable.strings +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/journey_image_config.json +0 -96
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseSDK.framework.dSYM/Contents/Info.plist +0 -20
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/DWARF/IDWiseSDK +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/IDWiseSDK.yml +0 -5204
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/IDWiseSDK.yml +0 -5112
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/Swift/aarch64/FingerprintPro.swiftinterface +0 -237
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/Swift/aarch64/ShieldFraud.swiftinterface +0 -170
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/Swift/x86_64/FingerprintPro.swiftinterface +0 -237
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/Swift/x86_64/ShieldFraud.swiftinterface +0 -170
- package/lib/commonjs/ApplicantDetailsKeys.js +0 -12
- package/lib/commonjs/ApplicantDetailsKeys.js.map +0 -1
- package/lib/commonjs/IDWise.js +0 -44
- package/lib/commonjs/IDWise.js.map +0 -1
- package/lib/commonjs/IDWiseConstants.js +0 -27
- package/lib/commonjs/IDWiseConstants.js.map +0 -1
- package/lib/commonjs/IDWiseDynamic.js +0 -65
- package/lib/commonjs/IDWiseDynamic.js.map +0 -1
- package/lib/commonjs/IDWiseEventListeners.js +0 -88
- package/lib/commonjs/IDWiseEventListeners.js.map +0 -1
- package/lib/commonjs/index.js +0 -17
- package/lib/commonjs/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FULL_NAME","BIRTH_DATE","SEX"],"sourceRoot":"../../src","sources":["ApplicantDetailsKeys.js"],"mappings":"AAAA,eAAe;EACbA,SAAS,EAAE,WAAW;EACtBC,UAAU,EAAE,YAAY;EACxBC,GAAG,EAAE;AACP,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["FULL_NAME","BIRTH_DATE","SEX"],"sourceRoot":"../../src","sources":["ApplicantDetailsKeys.js"],"mappings":";;AAAA,eAAe;EACbA,SAAS,EAAE,WAAW;EACtBC,UAAU,EAAE,YAAY;EACxBC,GAAG,EAAE;AACP,CAAC","ignoreList":[]}
|
package/lib/module/IDWise.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import { NativeModules, Platform } from 'react-native';
|
|
2
|
-
import
|
|
4
|
+
import IdwiseReactNativeSdk from "./NativeIdwiseReactNativeSdk.js";
|
|
5
|
+
import { setInitializeEventListeners, setJourneyEventListeners, setStepEventListeners } from "./IDWiseEventListeners.js";
|
|
3
6
|
const LINKING_ERROR = `The package 'idwise-mobile-sdk' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
|
|
4
7
|
ios: "- You have run 'pod install'\n",
|
|
5
8
|
default: ''
|
|
6
9
|
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
|
|
7
|
-
const RNIDWise =
|
|
10
|
+
const RNIDWise = IdwiseReactNativeSdk ? IdwiseReactNativeSdk : new Proxy({}, {
|
|
8
11
|
get() {
|
|
9
12
|
throw new Error(LINKING_ERROR);
|
|
10
13
|
}
|
package/lib/module/IDWise.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","Platform","setInitializeEventListeners","setJourneyEventListeners","setStepEventListeners","LINKING_ERROR","select","ios","default","RNIDWise","
|
|
1
|
+
{"version":3,"names":["NativeModules","Platform","IdwiseReactNativeSdk","setInitializeEventListeners","setJourneyEventListeners","setStepEventListeners","LINKING_ERROR","select","ios","default","RNIDWise","Proxy","get","Error","initialize","clientKey","theme","callback","console","log","isDeviceBlocked","startJourney","journeyDefinitionId","referenceNo","locale","applicantDetails","journeyCallback","resumeJourney","journeyId","IDWise"],"sourceRoot":"../../src","sources":["IDWise.js"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AACtD,OAAOC,oBAAoB,MAAM,iCAA8B;AAC/D,SACEC,2BAA2B,EAC3BC,wBAAwB,EACxBC,qBAAqB,QAChB,2BAAwB;AAE/B,MAAMC,aAAa,GACjB,4EAA4E,GAC5EL,QAAQ,CAACM,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,QAAQ,GAAGR,oBAAoB,GACjCA,oBAAoB,GACpB,IAAIS,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACP,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEL,MAAMQ,UAAU,GAAGA,CAACC,SAAS,EAAEC,KAAK,EAAEC,QAAQ,KAAK;EACjDC,OAAO,CAACC,GAAG,CAAC,qBAAqB,CAAC;EAClChB,2BAA2B,CAACc,QAAQ,CAAC;EAErCP,QAAQ,CAACI,UAAU,CAACC,SAAS,EAAEC,KAAK,CAAC;AACvC,CAAC;AAED,MAAMI,eAAe,GAAGA,CAAA,KAAM;EAC5BF,OAAO,CAACC,GAAG,CAAC,0BAA0B,CAAC;EAEvC,OAAOT,QAAQ,CAACU,eAAe,CAAC,CAAC;AACnC,CAAC;AAED,MAAMC,YAAY,GAAGA,CACnBC,mBAAmB,EACnBC,WAAW,EACXC,MAAM,EACNC,gBAAgB,EAChBC,eAAe,KACZ;EACHR,OAAO,CAACC,GAAG,CAAC,uBAAuB,CAAC;EACpCf,wBAAwB,CAACsB,eAAe,CAAC;EACzCrB,qBAAqB,CAAC,IAAI,CAAC;EAE3BK,QAAQ,CAACW,YAAY,CACnBC,mBAAmB,EACnBC,WAAW,EACXC,MAAM,EACNC,gBACF,CAAC;AACH,CAAC;AAED,MAAME,aAAa,GAAGA,CACpBL,mBAAmB,EACnBM,SAAS,EACTJ,MAAM,EACNE,eAAe,KACZ;EACHR,OAAO,CAACC,GAAG,CAAC,wBAAwB,CAAC;EACrCf,wBAAwB,CAACsB,eAAe,CAAC;EAEzChB,QAAQ,CAACiB,aAAa,CAACL,mBAAmB,EAAEM,SAAS,EAAEJ,MAAM,CAAC;AAChE,CAAC;AAED,OAAO,MAAMK,MAAM,GAAG;EACpBf,UAAU;EACVO,YAAY;EACZM,aAAa;EACbP;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
export const IDWiseEvents = {
|
|
2
4
|
EVENT_INITIALIZE_ERRROR: 'onInitializeError',
|
|
3
5
|
EVENT_JOURNEY_STARTED: 'onJourneyStarted',
|
|
@@ -18,4 +20,10 @@ export const IDWiseTheme = {
|
|
|
18
20
|
DARK: 'DARK',
|
|
19
21
|
SYSTEM_DEFAULT: 'SYSTEM_DEFAULT'
|
|
20
22
|
};
|
|
23
|
+
export const ApplicantDetailsKeys = {
|
|
24
|
+
FULL_NAME: 'full_name',
|
|
25
|
+
BIRTH_DATE: 'birth_date',
|
|
26
|
+
SEX: 'sex',
|
|
27
|
+
ADDRESS: 'address'
|
|
28
|
+
};
|
|
21
29
|
//# sourceMappingURL=IDWiseConstants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["IDWiseEvents","EVENT_INITIALIZE_ERRROR","EVENT_JOURNEY_STARTED","EVENT_JOURNEY_RESUMED","EVENT_JOURNEY_FINISHED","EVENT_JOURNEY_CANCELLED","EVENT_JOURNEY_BLOCKED","EVENT_JOURNEY_ERROR","EVENT_JOURNEY_SUMMARY","EVENT_JOURNEY_SUMMARY_ERROR","EVENT_STEP_CAPTURED","EVENT_STEP_RESULT","EVENT_STEP_CANCELLED","EVENT_STEP_SKIPPED","IDWiseTheme","LIGHT","DARK","SYSTEM_DEFAULT"],"sourceRoot":"../../src","sources":["IDWiseConstants.js"],"mappings":"AAAA,OAAO,MAAMA,YAAY,GAAG;EAC1BC,uBAAuB,EAAE,mBAAmB;EAE5CC,qBAAqB,EAAE,kBAAkB;EACzCC,qBAAqB,EAAE,kBAAkB;EACzCC,sBAAsB,EAAE,oBAAoB;EAC5CC,uBAAuB,EAAE,oBAAoB;EAC7CC,qBAAqB,EAAE,kBAAkB;EACzCC,mBAAmB,EAAE,gBAAgB;EAErCC,qBAAqB,EAAE,kBAAkB;EACzCC,2BAA2B,EAAE,uBAAuB;EAEpDC,mBAAmB,EAAE,gBAAgB;EACrCC,iBAAiB,EAAE,cAAc;EACjCC,oBAAoB,EAAE,iBAAiB;EACvCC,kBAAkB,EAAE;AACtB,CAAC;AAED,OAAO,MAAMC,WAAW,GAAG;EACzBC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE,MAAM;EACZC,cAAc,EAAE;AAClB,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["IDWiseEvents","EVENT_INITIALIZE_ERRROR","EVENT_JOURNEY_STARTED","EVENT_JOURNEY_RESUMED","EVENT_JOURNEY_FINISHED","EVENT_JOURNEY_CANCELLED","EVENT_JOURNEY_BLOCKED","EVENT_JOURNEY_ERROR","EVENT_JOURNEY_SUMMARY","EVENT_JOURNEY_SUMMARY_ERROR","EVENT_STEP_CAPTURED","EVENT_STEP_RESULT","EVENT_STEP_CANCELLED","EVENT_STEP_SKIPPED","IDWiseTheme","LIGHT","DARK","SYSTEM_DEFAULT","ApplicantDetailsKeys","FULL_NAME","BIRTH_DATE","SEX","ADDRESS"],"sourceRoot":"../../src","sources":["IDWiseConstants.js"],"mappings":";;AAAA,OAAO,MAAMA,YAAY,GAAG;EAC1BC,uBAAuB,EAAE,mBAAmB;EAE5CC,qBAAqB,EAAE,kBAAkB;EACzCC,qBAAqB,EAAE,kBAAkB;EACzCC,sBAAsB,EAAE,oBAAoB;EAC5CC,uBAAuB,EAAE,oBAAoB;EAC7CC,qBAAqB,EAAE,kBAAkB;EACzCC,mBAAmB,EAAE,gBAAgB;EAErCC,qBAAqB,EAAE,kBAAkB;EACzCC,2BAA2B,EAAE,uBAAuB;EAEpDC,mBAAmB,EAAE,gBAAgB;EACrCC,iBAAiB,EAAE,cAAc;EACjCC,oBAAoB,EAAE,iBAAiB;EACvCC,kBAAkB,EAAE;AACtB,CAAC;AAED,OAAO,MAAMC,WAAW,GAAG;EACzBC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE,MAAM;EACZC,cAAc,EAAE;AAClB,CAAC;AAED,OAAO,MAAMC,oBAAoB,GAAG;EAClCC,SAAS,EAAE,WAAW;EACtBC,UAAU,EAAE,YAAY;EACxBC,GAAG,EAAE,KAAK;EACVC,OAAO,EAAE;AACX,CAAC","ignoreList":[]}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import { NativeModules, Platform } from 'react-native';
|
|
2
|
-
import { setInitializeEventListeners, setJourneyEventListeners, setJourneySummaryEventListener, setStepEventListeners } from
|
|
4
|
+
import { setInitializeEventListeners, setJourneyEventListeners, setJourneySummaryEventListener, setStepEventListeners } from "./IDWiseEventListeners.js";
|
|
3
5
|
const LINKING_ERROR = `The package 'idwise-mobile-sdk' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
|
|
4
6
|
ios: "- You have run 'pod install'\n",
|
|
5
7
|
default: ''
|
|
6
8
|
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
|
|
7
|
-
const RNIDWise = NativeModules.
|
|
9
|
+
const RNIDWise = NativeModules.IdwiseReactNativeSdk ? NativeModules.IdwiseReactNativeSdk : new Proxy({}, {
|
|
8
10
|
get() {
|
|
9
11
|
throw new Error(LINKING_ERROR);
|
|
10
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","Platform","setInitializeEventListeners","setJourneyEventListeners","setJourneySummaryEventListener","setStepEventListeners","LINKING_ERROR","select","ios","default","RNIDWise","
|
|
1
|
+
{"version":3,"names":["NativeModules","Platform","setInitializeEventListeners","setJourneyEventListeners","setJourneySummaryEventListener","setStepEventListeners","LINKING_ERROR","select","ios","default","RNIDWise","IdwiseReactNativeSdk","Proxy","get","Error","initialize","clientKey","theme","callback","console","log","isDeviceBlocked","startJourney","journeyDefinitionId","referenceNo","locale","applicantDetails","journeyCallback","stepCallback","startDynamicJourney","resumeJourney","journeyId","resumeDynamicJourney","startStep","stepId","skipStep","getJourneySummary","finishJourney","finishDynamicJourney","unloadSDK","IDWiseDynamic"],"sourceRoot":"../../src","sources":["IDWiseDynamic.js"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AACtD,SACEC,2BAA2B,EAC3BC,wBAAwB,EACxBC,8BAA8B,EAC9BC,qBAAqB,QAChB,2BAAwB;AAE/B,MAAMC,aAAa,GACjB,4EAA4E,GAC5EL,QAAQ,CAACM,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,QAAQ,GAAGV,aAAa,CAACW,oBAAoB,GAC/CX,aAAa,CAACW,oBA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AAQ,GAAID,MAAM,IAAKxB,QAAQ,CAACyB,QAAQ,CAACD,MAAM,CAAC;AAEtD,MAAME,iBAAiB,GAAIlB,QAAQ,IAAK;EACtCC,OAAO,CAACC,GAAG,CAAC,4BAA4B,CAAC;EACzChB,8BAA8B,CAACc,QAAQ,CAAC;EAExCR,QAAQ,CAAC0B,iBAAiB,CAAC,CAAC;AAC9B,CAAC;AAED,MAAMC,aAAa,GAAGA,CAAA,KAAM;EAC1BlB,OAAO,CAACC,GAAG,CAAC,+BAA+B,CAAC;EAE5CV,QAAQ,CAAC4B,oBAAoB,CAAC,CAAC;AACjC,CAAC;AAED,MAAMC,SAAS,GAAGA,CAAA,KAAM;EACtBpB,OAAO,CAACC,GAAG,CAAC,oBAAoB,CAAC;EACjCV,QAAQ,CAAC6B,SAAS,CAAC,CAAC;AACtB,CAAC;AAED,OAAO,MAAMC,aAAa,GAAG;EAC3BzB,UAAU;EACVO,YAAY;EACZW,SAAS;EACTG,iBAAiB;EACjBC,aAAa;EACbF,QAAQ;EACRL,aAAa;EACbT,eAAe;EACfkB;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import { NativeEventEmitter, NativeModules } from 'react-native';
|
|
2
|
-
import { IDWiseEvents } from
|
|
3
|
-
const
|
|
4
|
+
import { IDWiseEvents } from "./IDWiseConstants.js";
|
|
5
|
+
const LINKING_ERROR = `The package 'idwise-mobile-sdk' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
|
|
6
|
+
ios: "- You have run 'pod install'\n",
|
|
7
|
+
default: ''
|
|
8
|
+
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
|
|
9
|
+
const RNIDWise = NativeModules.IdwiseReactNativeSdk ? NativeModules.IdwiseReactNativeSdk : new Proxy({}, {
|
|
4
10
|
get() {
|
|
5
11
|
throw new Error(LINKING_ERROR);
|
|
6
12
|
}
|
|
@@ -10,7 +16,7 @@ const setInitializeEventListeners = idwiseInitializeCallback => {
|
|
|
10
16
|
console.log('IDWise - setInitializeEventListeners');
|
|
11
17
|
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_INITIALIZE_ERRROR);
|
|
12
18
|
eventEmitter.addListener(IDWiseEvents.EVENT_INITIALIZE_ERRROR, event => {
|
|
13
|
-
idwiseInitializeCallback
|
|
19
|
+
idwiseInitializeCallback?.onError(JSON.parse(event.data));
|
|
14
20
|
});
|
|
15
21
|
};
|
|
16
22
|
const setJourneyEventListeners = idwiseJourneyCallback => {
|
|
@@ -22,22 +28,22 @@ const setJourneyEventListeners = idwiseJourneyCallback => {
|
|
|
22
28
|
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_JOURNEY_BLOCKED);
|
|
23
29
|
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_JOURNEY_ERROR);
|
|
24
30
|
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_STARTED, event => {
|
|
25
|
-
idwiseJourneyCallback
|
|
31
|
+
idwiseJourneyCallback?.onJourneyStarted(JSON.parse(event.data));
|
|
26
32
|
});
|
|
27
33
|
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_RESUMED, event => {
|
|
28
|
-
idwiseJourneyCallback
|
|
34
|
+
idwiseJourneyCallback?.onJourneyResumed(JSON.parse(event.data));
|
|
29
35
|
});
|
|
30
36
|
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_FINISHED, event => {
|
|
31
|
-
idwiseJourneyCallback
|
|
37
|
+
idwiseJourneyCallback?.onJourneyCompleted(JSON.parse(event.data));
|
|
32
38
|
});
|
|
33
39
|
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_CANCELLED, event => {
|
|
34
|
-
idwiseJourneyCallback
|
|
40
|
+
idwiseJourneyCallback?.onJourneyCancelled(JSON.parse(event.data));
|
|
35
41
|
});
|
|
36
42
|
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_BLOCKED, event => {
|
|
37
|
-
idwiseJourneyCallback
|
|
43
|
+
idwiseJourneyCallback?.onJourneyBlocked(JSON.parse(event.data));
|
|
38
44
|
});
|
|
39
45
|
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_ERROR, event => {
|
|
40
|
-
idwiseJourneyCallback
|
|
46
|
+
idwiseJourneyCallback?.onError(JSON.parse(event.data));
|
|
41
47
|
});
|
|
42
48
|
};
|
|
43
49
|
const setStepEventListeners = idwiseStepCallback => {
|
|
@@ -47,16 +53,16 @@ const setStepEventListeners = idwiseStepCallback => {
|
|
|
47
53
|
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_STEP_CANCELLED);
|
|
48
54
|
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_STEP_SKIPPED);
|
|
49
55
|
eventEmitter.addListener(IDWiseEvents.EVENT_STEP_CAPTURED, event => {
|
|
50
|
-
idwiseStepCallback
|
|
56
|
+
idwiseStepCallback?.onStepCaptured(JSON.parse(event.data));
|
|
51
57
|
});
|
|
52
58
|
eventEmitter.addListener(IDWiseEvents.EVENT_STEP_RESULT, event => {
|
|
53
|
-
idwiseStepCallback
|
|
59
|
+
idwiseStepCallback?.onStepResult(JSON.parse(event.data));
|
|
54
60
|
});
|
|
55
61
|
eventEmitter.addListener(IDWiseEvents.EVENT_STEP_CANCELLED, event => {
|
|
56
|
-
idwiseStepCallback
|
|
62
|
+
idwiseStepCallback?.onStepCancelled(JSON.parse(event.data));
|
|
57
63
|
});
|
|
58
64
|
eventEmitter.addListener(IDWiseEvents.EVENT_STEP_SKIPPED, event => {
|
|
59
|
-
idwiseStepCallback
|
|
65
|
+
idwiseStepCallback?.onStepSkipped(JSON.parse(event.data));
|
|
60
66
|
});
|
|
61
67
|
};
|
|
62
68
|
const setJourneySummaryEventListener = idwiseJourneySummaryCallback => {
|
|
@@ -66,13 +72,13 @@ const setJourneySummaryEventListener = idwiseJourneySummaryCallback => {
|
|
|
66
72
|
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_SUMMARY, event => {
|
|
67
73
|
let summary = JSON.parse(event.data);
|
|
68
74
|
if (summary.error == null) {
|
|
69
|
-
idwiseJourneySummaryCallback
|
|
75
|
+
idwiseJourneySummaryCallback?.onJourneySummary(summary.summary);
|
|
70
76
|
} else {
|
|
71
|
-
idwiseJourneySummaryCallback
|
|
77
|
+
idwiseJourneySummaryCallback?.onError(summary.error);
|
|
72
78
|
}
|
|
73
79
|
});
|
|
74
80
|
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_SUMMARY_ERROR, event => {
|
|
75
|
-
idwiseJourneySummaryCallback
|
|
81
|
+
idwiseJourneySummaryCallback?.onError(JSON.parse(event.error));
|
|
76
82
|
});
|
|
77
83
|
};
|
|
78
84
|
export { setInitializeEventListeners, setJourneyEventListeners, setJourneySummaryEventListener, setStepEventListeners };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeEventEmitter","NativeModules","IDWiseEvents","RNIDWise","
|
|
1
|
+
{"version":3,"names":["NativeEventEmitter","NativeModules","IDWiseEvents","LINKING_ERROR","Platform","select","ios","default","RNIDWise","IdwiseReactNativeSdk","Proxy","get","Error","eventEmitter","setInitializeEventListeners","idwiseInitializeCallback","console","log","removeAllListeners","EVENT_INITIALIZE_ERRROR","addListener","event","onError","JSON","parse","data","setJourneyEventListeners","idwiseJourneyCallback","EVENT_JOURNEY_STARTED","EVENT_JOURNEY_RESUMED","EVENT_JOURNEY_FINISHED","EVENT_JOURNEY_CANCELLED","EVENT_JOURNEY_BLOCKED","EVENT_JOURNEY_ERROR","onJourneyStarted","onJourneyResumed","onJourneyCompleted","onJourneyCancelled","onJourneyBlocked","setStepEventListeners","idwiseStepCallback","EVENT_STEP_CAPTURED","EVENT_STEP_RESULT","EVENT_STEP_CANCELLED","EVENT_STEP_SKIPPED","onStepCaptured","onStepResult","onStepCancelled","onStepSkipped","setJourneySummaryEventListener","idwiseJourneySummaryCallback","EVENT_JOURNEY_SUMMARY","EVENT_JOURNEY_SU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C,OAAO,CAACC,GAAG,CAAC,yCAAyC,CAAC;EACtDJ,YAAY,CAACK,kBAAkB,CAAChB,YAAY,CAACiD,qBAAqB,CAAC;EACnEtC,YAAY,CAACK,kBAAkB,CAAChB,YAAY,CAACkD,2BAA2B,CAAC;EAEzEvC,YAAY,CAACO,WAAW,CAAClB,YAAY,CAACiD,qBAAqB,EAAG9B,KAAK,IAAK;IACtE,IAAIgC,OAAO,GAAG9B,IAAI,CAACC,KAAK,CAACH,KAAK,CAACI,IAAI,CAAC;IACpC,IAAI4B,OAAO,CAACC,KAAK,IAAI,IAAI,EAAE;MACzBJ,4BAA4B,EAAEK,gBAAgB,CAACF,OAAO,CAACA,OAAO,CAAC;IACjE,CAAC,MAAM;MACLH,4BAA4B,EAAE5B,OAAO,CAAC+B,OAAO,CAACC,KAAK,CAAC;IACtD;EACF,CAAC,CAAC;EAEFzC,YAAY,CAACO,WAAW,CACtBlB,YAAY,CAACkD,2BAA2B,EACvC/B,KAAK,IAAK;IACT6B,4BAA4B,EAAE5B,OAAO,CAACC,IAAI,CAACC,KAAK,CAACH,KAAK,CAACiC,KAAK,CAAC,CAAC;EAChE,CACF,CAAC;AACH,CAAC;AAED,SACExC,2BAA2B,EAC3BY,wBAAwB,EACxBuB,8BAA8B,EAC9BV,qBAAqB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeIdwiseReactNativeSdk.ts"],"mappings":";;AACA,SAASA,mBAAmB,QAAQ,cAAc;AAkBlD,eAAeA,mBAAmB,CAACC,YAAY,CAAO,sBAAsB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// index.d.ts
|
|
4
|
+
// ===== Common Types =====
|
|
5
|
+
// ===== IDWise Module =====
|
|
6
|
+
export let IDWise;
|
|
7
|
+
// ===== IDWiseDynamic Module =====
|
|
8
|
+
export let IDWiseDynamic; // ===== IDWiseTheme =====
|
|
9
|
+
// ===== Default Export =====
|
|
10
|
+
//# sourceMappingURL=index.d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["IDWise","IDWiseDynamic"],"sourceRoot":"../../src","sources":["index.d.ts"],"mappings":";;AAAA;AAEA;AAkCA;AAAA,WACiBA,MAAM;AAyBvB;AAAA,WACiBC,aAAa,EAqC9B;AAgBA","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { IDWise } from "./IDWise.js";
|
|
4
|
+
import { IDWiseTheme, ApplicantDetailsKeys } from "./IDWiseConstants.js";
|
|
5
|
+
import { IDWiseDynamic } from "./IDWiseDynamic.js";
|
|
6
|
+
export { IDWise, IDWiseTheme, IDWiseDynamic, ApplicantDetailsKeys };
|
|
4
7
|
export default {
|
|
5
8
|
IDWise,
|
|
6
9
|
IDWiseTheme,
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["IDWise","IDWiseTheme","IDWiseDynamic"],"sourceRoot":"../../src","sources":["index.js"],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"names":["IDWise","IDWiseTheme","ApplicantDetailsKeys","IDWiseDynamic"],"sourceRoot":"../../src","sources":["index.js"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,aAAU;AACjC,SAASC,WAAW,EAAEC,oBAAoB,QAAQ,sBAAmB;AACrE,SAASC,aAAa,QAAQ,oBAAiB;AAE/C,SAASH,MAAM,EAAEC,WAAW,EAAEE,aAAa,EAAED,oBAAoB;AAEjE,eAAe;EAAEF,MAAM;EAAEC,WAAW;EAAEE;AAAc,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "idwise-react-native-sdk",
|
|
3
|
-
"version": "5.
|
|
4
|
-
"description": "
|
|
5
|
-
"main": "lib/
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
"version": "5.6.2",
|
|
4
|
+
"description": "React-Native Wrapper for IDWise SDK",
|
|
5
|
+
"main": "./lib/module/index.js",
|
|
6
|
+
"types": "./index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"source": "./src/index.js",
|
|
10
|
+
"types": "./index.d.ts",
|
|
11
|
+
"default": "./lib/module/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./package.json": "./lib/module/package.json"
|
|
14
|
+
},
|
|
10
15
|
"files": [
|
|
11
16
|
"src",
|
|
12
17
|
"lib",
|
|
@@ -16,6 +21,7 @@
|
|
|
16
21
|
"ios",
|
|
17
22
|
"cpp",
|
|
18
23
|
"*.podspec",
|
|
24
|
+
"react-native.config.js",
|
|
19
25
|
"!ios/build",
|
|
20
26
|
"!android/build",
|
|
21
27
|
"!android/gradle",
|
|
@@ -61,30 +67,30 @@
|
|
|
61
67
|
"registry": "https://registry.npmjs.org/"
|
|
62
68
|
},
|
|
63
69
|
"devDependencies": {
|
|
64
|
-
"@commitlint/config-conventional": "^
|
|
70
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
71
|
+
"@eslint/compat": "^1.2.7",
|
|
72
|
+
"@eslint/eslintrc": "^3.3.0",
|
|
73
|
+
"@eslint/js": "^9.22.0",
|
|
65
74
|
"@evilmartians/lefthook": "^1.5.0",
|
|
66
|
-
"@react-native/
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"@types/
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"eslint
|
|
75
|
-
"eslint-
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"prettier": "^
|
|
79
|
-
"react": "
|
|
80
|
-
"react-native": "0.
|
|
81
|
-
"react-native-builder-bob": "^0.
|
|
82
|
-
"release-it": "^
|
|
75
|
+
"@react-native-community/cli": "15.0.0-alpha.2",
|
|
76
|
+
"@react-native/babel-preset": "0.79.2",
|
|
77
|
+
"@react-native/eslint-config": "^0.78.0",
|
|
78
|
+
"@release-it/conventional-changelog": "^9.0.2",
|
|
79
|
+
"@types/jest": "^29.5.5",
|
|
80
|
+
"@types/react": "^19.0.0",
|
|
81
|
+
"commitlint": "^19.6.1",
|
|
82
|
+
"del-cli": "^5.1.0",
|
|
83
|
+
"eslint": "^9.22.0",
|
|
84
|
+
"eslint-config-prettier": "^10.1.1",
|
|
85
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
86
|
+
"jest": "^29.7.0",
|
|
87
|
+
"prettier": "^3.0.3",
|
|
88
|
+
"react": "19.0.0",
|
|
89
|
+
"react-native": "0.79.2",
|
|
90
|
+
"react-native-builder-bob": "^0.40.8",
|
|
91
|
+
"release-it": "^17.10.0",
|
|
83
92
|
"turbo": "^1.10.7",
|
|
84
|
-
"typescript": "^5.
|
|
85
|
-
},
|
|
86
|
-
"resolutions": {
|
|
87
|
-
"@types/react": "17.0.21"
|
|
93
|
+
"typescript": "^5.8.3"
|
|
88
94
|
},
|
|
89
95
|
"peerDependencies": {
|
|
90
96
|
"react": "*",
|
|
@@ -94,9 +100,6 @@
|
|
|
94
100
|
"example"
|
|
95
101
|
],
|
|
96
102
|
"packageManager": "yarn@3.6.1",
|
|
97
|
-
"engines": {
|
|
98
|
-
"node": ">= 18.0.0"
|
|
99
|
-
},
|
|
100
103
|
"jest": {
|
|
101
104
|
"preset": "react-native",
|
|
102
105
|
"modulePathIgnorePatterns": [
|
|
@@ -104,6 +107,11 @@
|
|
|
104
107
|
"<rootDir>/lib/"
|
|
105
108
|
]
|
|
106
109
|
},
|
|
110
|
+
"commitlint": {
|
|
111
|
+
"extends": [
|
|
112
|
+
"@commitlint/config-conventional"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
107
115
|
"release-it": {
|
|
108
116
|
"git": {
|
|
109
117
|
"commitMessage": "chore: release ${version}",
|
|
@@ -117,7 +125,9 @@
|
|
|
117
125
|
},
|
|
118
126
|
"plugins": {
|
|
119
127
|
"@release-it/conventional-changelog": {
|
|
120
|
-
"preset":
|
|
128
|
+
"preset": {
|
|
129
|
+
"name": "angular"
|
|
130
|
+
}
|
|
121
131
|
}
|
|
122
132
|
}
|
|
123
133
|
},
|
|
@@ -155,8 +165,12 @@
|
|
|
155
165
|
"source": "src",
|
|
156
166
|
"output": "lib",
|
|
157
167
|
"targets": [
|
|
158
|
-
|
|
159
|
-
|
|
168
|
+
[
|
|
169
|
+
"module",
|
|
170
|
+
{
|
|
171
|
+
"esm": true
|
|
172
|
+
}
|
|
173
|
+
],
|
|
160
174
|
[
|
|
161
175
|
"typescript",
|
|
162
176
|
{
|
|
@@ -164,5 +178,19 @@
|
|
|
164
178
|
}
|
|
165
179
|
]
|
|
166
180
|
]
|
|
181
|
+
},
|
|
182
|
+
"codegenConfig": {
|
|
183
|
+
"name": "IdwiseReactNativeSdkSpec",
|
|
184
|
+
"type": "modules",
|
|
185
|
+
"jsSrcsDir": "src",
|
|
186
|
+
"android": {
|
|
187
|
+
"javaPackageName": "com.idwisereactnativesdk"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"create-react-native-library": {
|
|
191
|
+
"native": true,
|
|
192
|
+
"languages": "kotlin-objc",
|
|
193
|
+
"type": "turbo-module",
|
|
194
|
+
"version": "0.52.0"
|
|
167
195
|
}
|
|
168
196
|
}
|
package/src/IDWise.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { NativeModules, Platform } from 'react-native';
|
|
2
|
+
import IdwiseReactNativeSdk from './NativeIdwiseReactNativeSdk';
|
|
2
3
|
import {
|
|
3
4
|
setInitializeEventListeners,
|
|
4
5
|
setJourneyEventListeners,
|
|
@@ -11,8 +12,8 @@ const LINKING_ERROR =
|
|
|
11
12
|
'- You rebuilt the app after installing the package\n' +
|
|
12
13
|
'- You are not using Expo Go\n';
|
|
13
14
|
|
|
14
|
-
const RNIDWise =
|
|
15
|
-
?
|
|
15
|
+
const RNIDWise = IdwiseReactNativeSdk
|
|
16
|
+
? IdwiseReactNativeSdk
|
|
16
17
|
: new Proxy(
|
|
17
18
|
{},
|
|
18
19
|
{
|
package/src/IDWiseDynamic.js
CHANGED
|
@@ -12,8 +12,8 @@ const LINKING_ERROR =
|
|
|
12
12
|
'- You rebuilt the app after installing the package\n' +
|
|
13
13
|
'- You are not using Expo Go\n';
|
|
14
14
|
|
|
15
|
-
const RNIDWise = NativeModules.
|
|
16
|
-
? NativeModules.
|
|
15
|
+
const RNIDWise = NativeModules.IdwiseReactNativeSdk
|
|
16
|
+
? NativeModules.IdwiseReactNativeSdk
|
|
17
17
|
: new Proxy(
|
|
18
18
|
{},
|
|
19
19
|
{
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { NativeEventEmitter, NativeModules } from 'react-native';
|
|
2
2
|
import { IDWiseEvents } from './IDWiseConstants';
|
|
3
3
|
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const LINKING_ERROR =
|
|
5
|
+
`The package 'idwise-mobile-sdk' doesn't seem to be linked. Make sure: \n\n` +
|
|
6
|
+
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
|
|
7
|
+
'- You rebuilt the app after installing the package\n' +
|
|
8
|
+
'- You are not using Expo Go\n';
|
|
9
|
+
|
|
10
|
+
const RNIDWise = NativeModules.IdwiseReactNativeSdk
|
|
11
|
+
? NativeModules.IdwiseReactNativeSdk
|
|
6
12
|
: new Proxy(
|
|
7
13
|
{},
|
|
8
14
|
{
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TurboModule } from 'react-native';
|
|
2
|
+
import { TurboModuleRegistry } from 'react-native';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export interface Spec extends TurboModule {
|
|
6
|
+
multiply(a: number, b: number): number;
|
|
7
|
+
initialize(clientKey: string, theme: string):void;
|
|
8
|
+
isDeviceBlocked():boolean;
|
|
9
|
+
startJourney(flowId: string,referenceNo: string|undefined,locale: string|undefined,applicantDetails: { [key: string]: string }|undefined):void
|
|
10
|
+
resumeJourney(flowId: string,journeyId: string,locale: string|undefined):void
|
|
11
|
+
startDynamicJourney(flowId: string,referenceNo: string|undefined,locale: string|undefined,applicantDetails: { [key: string]: string }|undefined):void
|
|
12
|
+
resumeDynamicJourney(flowId: string,journeyId: string,locale: string|undefined):void
|
|
13
|
+
startStep(stepId: string):void
|
|
14
|
+
finishDynamicJourney():void
|
|
15
|
+
skipStep(stepId:string):void
|
|
16
|
+
getJourneySummary():void
|
|
17
|
+
unloadSDK():void
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default TurboModuleRegistry.getEnforcing<Spec>('IdwiseReactNativeSdk');
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// index.d.ts
|
|
2
|
+
|
|
3
|
+
// ===== Common Types =====
|
|
4
|
+
|
|
5
|
+
export interface IDWiseError {
|
|
6
|
+
code: string;
|
|
7
|
+
message: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface InitializeCallback {
|
|
11
|
+
onError?: (error: IDWiseError) => void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface IDWiseJourneyCallbacks {
|
|
15
|
+
onJourneyStarted:(journeyStartedInfo:JSON) => void;
|
|
16
|
+
onJourneyResumed:(journeyResumedInfo:JSON) => void;
|
|
17
|
+
onJourneyCompleted:(journeyCompletedInfo:JSON) => void;
|
|
18
|
+
onJourneyCancelled:(journeyCancelledInfo:JSON) => void;
|
|
19
|
+
onJourneyBlocked:(journeyBlockedInfo:JSON) => void;
|
|
20
|
+
onError:(idwiseError:IDWiseError) => void;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface IDWiseStepCallbacks {
|
|
24
|
+
onStepCaptured:(stepCapturedInfo:JSON) => void;
|
|
25
|
+
onStepResult:(stepResultInfo:JSON) => void;
|
|
26
|
+
onStepCancelled:(stepCancelledInfo:JSON) => void;
|
|
27
|
+
onStepSkipped:(stepSkippedInfo:JSON) => void;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export interface JourneySummaryCallback {
|
|
32
|
+
onJourneySummary:(journeySummary:JSON) => void;
|
|
33
|
+
onError:(error:JSON) => void;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
// ===== IDWise Module =====
|
|
38
|
+
export namespace IDWise {
|
|
39
|
+
function initialize(
|
|
40
|
+
clientKey: string,
|
|
41
|
+
theme:string,
|
|
42
|
+
callback: InitializeCallback
|
|
43
|
+
): void;
|
|
44
|
+
|
|
45
|
+
function isDeviceBlocked(): Promise<boolean>;
|
|
46
|
+
|
|
47
|
+
function startJourney(
|
|
48
|
+
journeyDefinitionId: string,
|
|
49
|
+
referenceNo: string,
|
|
50
|
+
locale: string,
|
|
51
|
+
applicantDetails: { [key: string]: string }|undefined,
|
|
52
|
+
journeyCallback: IDWiseJourneyCallbacks
|
|
53
|
+
): void;
|
|
54
|
+
|
|
55
|
+
function resumeJourney(
|
|
56
|
+
journeyDefinitionId: string,
|
|
57
|
+
journeyId: string,
|
|
58
|
+
locale: string,
|
|
59
|
+
journeyCallback: IDWiseJourneyCallbacks
|
|
60
|
+
): void;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// ===== IDWiseDynamic Module =====
|
|
64
|
+
export namespace IDWiseDynamic {
|
|
65
|
+
function initialize(
|
|
66
|
+
clientKey: string,
|
|
67
|
+
theme: string,
|
|
68
|
+
callback: InitializeCallback
|
|
69
|
+
): void;
|
|
70
|
+
|
|
71
|
+
function isDeviceBlocked(): Promise<boolean>;
|
|
72
|
+
|
|
73
|
+
function startJourney(
|
|
74
|
+
journeyDefinitionId: string,
|
|
75
|
+
referenceNo: string,
|
|
76
|
+
locale: string,
|
|
77
|
+
applicantDetails: { [key: string]: string }|undefined,
|
|
78
|
+
journeyCallback: IDWiseJourneyCallbacks,
|
|
79
|
+
stepCallback: IDWiseStepCallbacks
|
|
80
|
+
): void;
|
|
81
|
+
|
|
82
|
+
function resumeJourney(
|
|
83
|
+
journeyDefinitionId: string,
|
|
84
|
+
journeyId: string,
|
|
85
|
+
locale: string,
|
|
86
|
+
journeyCallback: IDWiseJourneyCallbacks,
|
|
87
|
+
stepCallback: IDWiseStepCallbacks
|
|
88
|
+
): void;
|
|
89
|
+
|
|
90
|
+
function startStep(stepId: string): void;
|
|
91
|
+
|
|
92
|
+
function skipStep(stepId: string): void;
|
|
93
|
+
|
|
94
|
+
function getJourneySummary(callback: JourneySummaryCallback): void;
|
|
95
|
+
|
|
96
|
+
function finishJourney(): void;
|
|
97
|
+
|
|
98
|
+
function unloadSDK(): void;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// ===== IDWiseTheme =====
|
|
102
|
+
declare const IDWiseTheme: {
|
|
103
|
+
LIGHT: 'LIGHT';
|
|
104
|
+
DARK: 'DARK';
|
|
105
|
+
SYSTEM_DEFAULT: 'SYSTEM_DEFAULT';
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
declare const ApplicantDetailsKeys: {
|
|
109
|
+
FULL_NAME: 'full_name',
|
|
110
|
+
BIRTH_DATE: 'birth_date',
|
|
111
|
+
SEX: 'sex',
|
|
112
|
+
ADDRESS: 'address'
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
export {IDWiseTheme}
|
|
116
|
+
export {ApplicantDetailsKeys}
|
|
117
|
+
// ===== Default Export =====
|
|
118
|
+
declare const IDWiseSDK: {
|
|
119
|
+
IDWise: typeof IDWise;
|
|
120
|
+
IDWiseTheme: typeof IDWiseTheme;
|
|
121
|
+
ApplicantDetailsKeys: typeof ApplicantDetailsKeys;
|
|
122
|
+
IDWiseDynamic: typeof IDWiseDynamic;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export default IDWiseSDK;
|