idwise-react-native-sdk 4.5.5

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.
Files changed (196) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +48 -0
  3. package/android/build.gradle +107 -0
  4. package/android/gradle.properties +5 -0
  5. package/android/src/main/AndroidManifest.xml +3 -0
  6. package/android/src/main/AndroidManifestNew.xml +2 -0
  7. package/android/src/main/java/com/idwisemobilesdk/IdwiseMobileSdkModule.kt +205 -0
  8. package/android/src/main/java/com/idwisemobilesdk/IdwiseMobileSdkPackage.kt +17 -0
  9. package/idwise-react-native-sdk.podspec +62 -0
  10. package/ios/IDWiseSDK.xcframework/Info.plist +43 -0
  11. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Assets.car +0 -0
  12. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BulletCell.nib +0 -0
  13. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BulletCellRTL.nib +0 -0
  14. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/DocumentCategorySelectionViewController.nib/objects-13.0+.nib +0 -0
  15. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/DocumentCategorySelectionViewController.nib/runtime.nib +0 -0
  16. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Info.plist +0 -0
  17. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/objects-13.0+.nib +0 -0
  18. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/runtime.nib +0 -0
  19. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentTypeTableViewCell.nib +0 -0
  20. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib/objects-13.0+.nib +0 -0
  21. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib/runtime.nib +0 -0
  22. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/Info.plist +0 -0
  23. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/UIViewController-HuT-DA-csJ.nib/objects-13.0+.nib +0 -0
  24. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/UIViewController-HuT-DA-csJ.nib/runtime.nib +0 -0
  25. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/ErrorFeedbackViewController.nib/objects-13.0+.nib +0 -0
  26. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/ErrorFeedbackViewController.nib/runtime.nib +0 -0
  27. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/Info.plist +0 -0
  28. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/objects-13.0+.nib +0 -0
  29. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/runtime.nib +0 -0
  30. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Info.plist +0 -0
  31. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/UIViewController-Y6W-OH-hqX.nib/objects-13.0+.nib +0 -0
  32. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/UIViewController-Y6W-OH-hqX.nib/runtime.nib +0 -0
  33. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/objects-13.0+.nib +0 -0
  34. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/runtime.nib +0 -0
  35. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Headers/IDWise.h +18 -0
  36. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/IDWiseSDK +0 -0
  37. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Info.plist +0 -0
  38. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib/objects-13.0+.nib +0 -0
  39. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib/runtime.nib +0 -0
  40. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/Info.plist +0 -0
  41. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/UIViewController-A5G-4b-J84.nib/objects-13.0+.nib +0 -0
  42. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/UIViewController-A5G-4b-J84.nib/runtime.nib +0 -0
  43. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/MenuCell.nib +0 -0
  44. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/MenuWidgetView.nib +0 -0
  45. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.abi.json +41050 -0
  46. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +465 -0
  47. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  48. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.swiftinterface +465 -0
  49. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Mulish-Bold.ttf +0 -0
  50. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Mulish-Light.ttf +0 -0
  51. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Mulish-Regular.ttf +0 -0
  52. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/Info.plist +0 -0
  53. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/ProcessJourneyViewController.nib/objects-13.0+.nib +0 -0
  54. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/ProcessJourneyViewController.nib/runtime.nib +0 -0
  55. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib/objects-13.0+.nib +0 -0
  56. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib/runtime.nib +0 -0
  57. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProgressBarMenuScreen.nib/objects-13.0+.nib +0 -0
  58. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProgressBarMenuScreen.nib/runtime.nib +0 -0
  59. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProgressBarView.nib/objects-13.0+.nib +0 -0
  60. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProgressBarView.nib/runtime.nib +0 -0
  61. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/SelfieViewController.storyboardc/Info.plist +0 -0
  62. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
  63. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/SelfieViewController.storyboardc/UIViewController-Od6-6k-VCn.nib +0 -0
  64. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StartJourneyViewController.storyboardc/Info.plist +0 -0
  65. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StartJourneyViewController.storyboardc/StartJourneyViewController.nib/objects-13.0+.nib +0 -0
  66. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StartJourneyViewController.storyboardc/StartJourneyViewController.nib/runtime.nib +0 -0
  67. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StartJourneyViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/objects-13.0+.nib +0 -0
  68. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StartJourneyViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/runtime.nib +0 -0
  69. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StepCell.nib +0 -0
  70. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/_CodeSignature/CodeResources +978 -0
  71. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/analytics/coremldata.bin +0 -0
  72. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/coremldata.bin +0 -0
  73. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/metadata.json +115 -0
  74. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/analytics/coremldata.bin +0 -0
  75. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/coremldata.bin +0 -0
  76. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/model/coremldata.bin +0 -0
  77. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.net +4737 -0
  78. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.shape +1789 -0
  79. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.weights +0 -0
  80. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/neural_network_optionals/coremldata.bin +0 -0
  81. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model1/coremldata.bin +0 -0
  82. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/analytics/coremldata.bin +0 -0
  83. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/coremldata.bin +0 -0
  84. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/metadata.json +79 -0
  85. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/model/coremldata.bin +0 -0
  86. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.net +2250 -0
  87. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.shape +718 -0
  88. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.weights +0 -0
  89. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/neural_network_optionals/coremldata.bin +0 -0
  90. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/en.lproj/Localizable.strings +0 -0
  91. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/journey_image_config.json +95 -0
  92. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Assets.car +0 -0
  93. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/BulletCell.nib +0 -0
  94. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/BulletCellRTL.nib +0 -0
  95. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/DocumentCategorySelectionViewController.nib/objects-13.0+.nib +0 -0
  96. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/DocumentCategorySelectionViewController.nib/runtime.nib +0 -0
  97. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Info.plist +0 -0
  98. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/objects-13.0+.nib +0 -0
  99. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/runtime.nib +0 -0
  100. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentTypeTableViewCell.nib +0 -0
  101. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib/objects-13.0+.nib +0 -0
  102. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib/runtime.nib +0 -0
  103. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/Info.plist +0 -0
  104. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/UIViewController-HuT-DA-csJ.nib/objects-13.0+.nib +0 -0
  105. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/UIViewController-HuT-DA-csJ.nib/runtime.nib +0 -0
  106. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/ErrorFeedbackViewController.nib/objects-13.0+.nib +0 -0
  107. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/ErrorFeedbackViewController.nib/runtime.nib +0 -0
  108. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/Info.plist +0 -0
  109. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/objects-13.0+.nib +0 -0
  110. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/runtime.nib +0 -0
  111. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Info.plist +0 -0
  112. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/UIViewController-Y6W-OH-hqX.nib/objects-13.0+.nib +0 -0
  113. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/UIViewController-Y6W-OH-hqX.nib/runtime.nib +0 -0
  114. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/objects-13.0+.nib +0 -0
  115. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/runtime.nib +0 -0
  116. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Headers/IDWise.h +18 -0
  117. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/IDWiseSDK +0 -0
  118. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Info.plist +0 -0
  119. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib/objects-13.0+.nib +0 -0
  120. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib/runtime.nib +0 -0
  121. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/Info.plist +0 -0
  122. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/UIViewController-A5G-4b-J84.nib/objects-13.0+.nib +0 -0
  123. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/UIViewController-A5G-4b-J84.nib/runtime.nib +0 -0
  124. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/MenuCell.nib +0 -0
  125. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/MenuWidgetView.nib +0 -0
  126. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +41043 -0
  127. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +465 -0
  128. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  129. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +465 -0
  130. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Mulish-Bold.ttf +0 -0
  131. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Mulish-Light.ttf +0 -0
  132. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Mulish-Regular.ttf +0 -0
  133. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/Info.plist +0 -0
  134. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/ProcessJourneyViewController.nib/objects-13.0+.nib +0 -0
  135. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/ProcessJourneyViewController.nib/runtime.nib +0 -0
  136. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib/objects-13.0+.nib +0 -0
  137. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib/runtime.nib +0 -0
  138. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProgressBarMenuScreen.nib/objects-13.0+.nib +0 -0
  139. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProgressBarMenuScreen.nib/runtime.nib +0 -0
  140. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProgressBarView.nib/objects-13.0+.nib +0 -0
  141. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProgressBarView.nib/runtime.nib +0 -0
  142. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/SelfieViewController.storyboardc/Info.plist +0 -0
  143. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
  144. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/SelfieViewController.storyboardc/UIViewController-Od6-6k-VCn.nib +0 -0
  145. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/StartJourneyViewController.storyboardc/Info.plist +0 -0
  146. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/StartJourneyViewController.storyboardc/StartJourneyViewController.nib/objects-13.0+.nib +0 -0
  147. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/StartJourneyViewController.storyboardc/StartJourneyViewController.nib/runtime.nib +0 -0
  148. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/StartJourneyViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/objects-13.0+.nib +0 -0
  149. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/StartJourneyViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/runtime.nib +0 -0
  150. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/StepCell.nib +0 -0
  151. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/_CodeSignature/CodeResources +978 -0
  152. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/analytics/coremldata.bin +0 -0
  153. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/coremldata.bin +0 -0
  154. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/metadata.json +115 -0
  155. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/analytics/coremldata.bin +0 -0
  156. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/coremldata.bin +0 -0
  157. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/model/coremldata.bin +0 -0
  158. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.net +4737 -0
  159. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.shape +1789 -0
  160. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.weights +0 -0
  161. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/neural_network_optionals/coremldata.bin +0 -0
  162. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model1/coremldata.bin +0 -0
  163. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/analytics/coremldata.bin +0 -0
  164. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/coremldata.bin +0 -0
  165. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/metadata.json +79 -0
  166. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/model/coremldata.bin +0 -0
  167. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.net +2250 -0
  168. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.shape +718 -0
  169. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.weights +0 -0
  170. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/neural_network_optionals/coremldata.bin +0 -0
  171. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/en.lproj/Localizable.strings +0 -0
  172. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/journey_image_config.json +95 -0
  173. package/ios/IdwiseMobileSdk-Bridging-Header.h +2 -0
  174. package/ios/IdwiseMobileSdk.mm +34 -0
  175. package/ios/IdwiseMobileSdk.swift +237 -0
  176. package/lib/commonjs/IDWise.js +60 -0
  177. package/lib/commonjs/IDWise.js.map +1 -0
  178. package/lib/commonjs/IDWiseConstants.js +25 -0
  179. package/lib/commonjs/IDWiseConstants.js.map +1 -0
  180. package/lib/commonjs/IDWiseEventListeners.js +75 -0
  181. package/lib/commonjs/IDWiseEventListeners.js.map +1 -0
  182. package/lib/commonjs/index.js +15 -0
  183. package/lib/commonjs/index.js.map +1 -0
  184. package/lib/module/IDWise.js +54 -0
  185. package/lib/module/IDWise.js.map +1 -0
  186. package/lib/module/IDWiseConstants.js +19 -0
  187. package/lib/module/IDWiseConstants.js.map +1 -0
  188. package/lib/module/IDWiseEventListeners.js +66 -0
  189. package/lib/module/IDWiseEventListeners.js.map +1 -0
  190. package/lib/module/index.js +7 -0
  191. package/lib/module/index.js.map +1 -0
  192. package/package.json +159 -0
  193. package/src/IDWise.js +96 -0
  194. package/src/IDWiseConstants.js +22 -0
  195. package/src/IDWiseEventListeners.js +100 -0
  196. package/src/index.js +4 -0
@@ -0,0 +1,95 @@
1
+ {
2
+ "journey_document": "document",
3
+ "journey_selfie": "selfie",
4
+ "journey_document_opt_selfie": "one_documents_one_selfie",
5
+ "journey_document_prompt_opt_selfie": "one_documents_one_selfie",
6
+ "journey_two_documents_selfie": "two_documents_one_selfie",
7
+ "journey_two_documents_opts_selfie": "two_documents_one_selfie",
8
+ "journey_document_selfie_mcs": "one_documents_one_selfie",
9
+ "journey_document_selfie_mcs_try_again": "one_documents_one_selfie",
10
+ "journey_document_selfie_mcs_resume_sequential": "one_documents_one_selfie",
11
+ "journey_document_selfie_mcs_invalid": "one_documents_one_selfie_invalid",
12
+ "journey_two_documents_selfie_mcs": "two_documents_one_selfie",
13
+ "journey_two_documents_opt_selfie_mcs": "two_documents_one_selfie",
14
+ "journey_document_mcs": "document",
15
+ "journey_document_selfie": "one_documents_one_selfie",
16
+ "journey_document_selfie_invalid": "one_documents_one_selfie_invalid",
17
+ "journey_two_documents_opt_selfie": "two_documents_one_selfie",
18
+ "journey_selfie_opt_two_documents_opt": "one_selfie_two_documents",
19
+ "journey_document_opt_selfie_mcs": "one_documents_one_selfie",
20
+ "journey_document_prompt_opt_selfie_mcs": "one_documents_one_selfie",
21
+ "journey_two_documents_opts_selfie_mcs": "two_documents_one_selfie",
22
+ "journey_selfie_opt_two_documents_opt_mcs": "one_selfie_two_documents",
23
+ "selfie": {
24
+ "0": [
25
+ "SELFIE"
26
+ ]
27
+ },
28
+ "document": {
29
+ "0": [
30
+ "ID_FRONT"
31
+ ],
32
+ "1": [
33
+ "ID_BACK"
34
+ ]
35
+ },
36
+ "one_documents_one_selfie": {
37
+ "0": [
38
+ "ID_FRONT"
39
+ ],
40
+ "1": [
41
+ "ID_BACK"
42
+ ],
43
+ "2": [
44
+ "SELFIE"
45
+ ]
46
+ },
47
+ "one_documents_one_selfie_invalid": {
48
+ "0": [
49
+ "Invalid_Doc",
50
+ "ID_FRONT"
51
+ ],
52
+ "1": [
53
+ "Invalid_Doc",
54
+ "ID_BACK"
55
+ ],
56
+ "2": [
57
+ "Invalid_Selfie",
58
+ "SELFIE"
59
+ ]
60
+ },
61
+ "two_documents_one_selfie": {
62
+ "0": [
63
+ "ID_FRONT"
64
+ ],
65
+ "1": [
66
+ "ID_BACK"
67
+ ],
68
+ "2": [
69
+ "ID_FRONT"
70
+ ],
71
+ "3": [
72
+ "ID_BACK"
73
+ ],
74
+ "4": [
75
+ "SELFIE"
76
+ ]
77
+ },
78
+ "one_selfie_two_documents": {
79
+ "0": [
80
+ "SELFIE"
81
+ ],
82
+ "1": [
83
+ "ID_FRONT"
84
+ ],
85
+ "2": [
86
+ "ID_BACK"
87
+ ],
88
+ "3": [
89
+ "ID_FRONT"
90
+ ],
91
+ "4": [
92
+ "ID_BACK"
93
+ ]
94
+ }
95
+ }
@@ -0,0 +1,2 @@
1
+ #import <React/RCTBridgeModule.h>
2
+ #import <React/RCTViewManager.h>
@@ -0,0 +1,34 @@
1
+ #import <React/RCTBridgeModule.h>
2
+ #import <Foundation/Foundation.h>
3
+ #import <React/RCTEventEmitter.h>
4
+
5
+
6
+ @interface RCT_EXTERN_MODULE(IdwiseMobileSdk,RCTEventEmitter)
7
+
8
+ RCT_EXTERN_METHOD(initialize:(NSString *)clientKey
9
+ :(NSString *)theme)
10
+
11
+ RCT_EXTERN_METHOD(startJourney:(NSString *)journeyDefinitionId
12
+ :(NSString *)referenceNo
13
+ :(NSString *)locale)
14
+ RCT_EXTERN_METHOD(startDynamicJourney:(NSString *)journeyDefinitionId
15
+ :(NSString *)referenceNo
16
+ :(NSString *)locale)
17
+ RCT_EXTERN_METHOD(resumeDynamicJourney:(NSString *)journeyDefinitionId
18
+ :(NSString *)journeyId
19
+ :(NSString *)locale)
20
+ RCT_EXTERN_METHOD(getJourneySummary:(NSString *)journeyId
21
+ )
22
+ RCT_EXTERN_METHOD(startStep:(NSString *)stepId
23
+ )
24
+ RCT_EXTERN_METHOD(startStepFromFileUpload:(NSString *)stepId
25
+ :(NSData *)data
26
+ )
27
+ RCT_EXTERN_METHOD(supportedEvents)
28
+
29
+ + (BOOL)requiresMainQueueSetup
30
+ {
31
+ return NO;
32
+ }
33
+
34
+ @end
@@ -0,0 +1,237 @@
1
+ import Foundation
2
+ import IDWiseSDK
3
+ import React
4
+
5
+ @objc(IdwiseMobileSdk)
6
+ class IdwiseMobileSdk: RCTEventEmitter {
7
+
8
+ var journeyID = ""
9
+
10
+ public static var emitter: RCTEventEmitter!
11
+
12
+ open override func supportedEvents() -> [String] {
13
+ [
14
+ "onJourneyStarted", "onJourneyResumed", "onJourneyCancelled", "onError", "onJourneyError",
15
+ "onJourneyFinished",
16
+ "onJourneySummary", "onStepCaptured", "onStepResult", "onStepCancelled", "onInitializeError",
17
+ "onJourneySummaryError",
18
+ ]
19
+ }
20
+
21
+ override init() {
22
+ super.init()
23
+ IdwiseMobileSdk.emitter = self
24
+ }
25
+
26
+ @objc func initialize(_ clientKey: String, _ theme: String) {
27
+ var sdkTheme: IDWiseSDKTheme = .systemDefault
28
+ if theme == "LIGHT" {
29
+ sdkTheme = .light
30
+ } else if theme == "DARK" {
31
+ sdkTheme = .dark
32
+ }
33
+ IDWise.initialize(clientKey: clientKey, theme: sdkTheme) { err in
34
+ if let error = err {
35
+ IdwiseMobileSdk.emitter.sendEvent(
36
+ withName: "onInitializeError",
37
+ body: ["errorCode": error.code, "errorMessage": error.message] as [String: Any])
38
+ }
39
+ }
40
+
41
+ }
42
+
43
+ @objc func startJourney(
44
+ _ journeyDefinitionID: String,
45
+ _ referenceNo: String,
46
+ _ locale: String
47
+ ) {
48
+ if referenceNo.isEmpty {
49
+ DispatchQueue.main.async {
50
+ IDWise.startJourney(
51
+ journeyDefinitionId: journeyDefinitionID, locale: locale, journeyDelegate: self)
52
+ }
53
+ } else {
54
+ DispatchQueue.main.async {
55
+ IDWise.startJourney(
56
+ journeyDefinitionId: journeyDefinitionID, referenceNumber: referenceNo, locale: locale,
57
+ journeyDelegate: self)
58
+ }
59
+ }
60
+ }
61
+
62
+ @objc func startDynamicJourney(
63
+ _ journeyDefinitionId: String,
64
+ _ referenceNo: String,
65
+ _ locale: String
66
+ ) {
67
+ if referenceNo.isEmpty {
68
+ DispatchQueue.main.async {
69
+ IDWise.startDynamicJourney(
70
+ journeyDefinitionId: journeyDefinitionId,
71
+ locale: locale,
72
+ journeyDelegate: self,
73
+ stepDelegate: self)
74
+ }
75
+ } else {
76
+ DispatchQueue.main.async {
77
+ IDWise.startDynamicJourney(
78
+ journeyDefinitionId: journeyDefinitionId,
79
+ referenceNumber: referenceNo,
80
+ locale: locale,
81
+ journeyDelegate: self,
82
+ stepDelegate: self)
83
+ }
84
+ }
85
+ }
86
+
87
+ @objc func resumeDynamicJourney(
88
+ _ journeyDefinitionId: String,
89
+ _ journeyId: String,
90
+ _ locale: String
91
+ ) {
92
+ DispatchQueue.main.async {
93
+ IDWise.resumeDynamicJourney(
94
+ journeyDefinitionId: journeyDefinitionId, journeyId: journeyId, locale: locale,
95
+ journeyDelegate: self, stepDelegate: self)
96
+ }
97
+ }
98
+
99
+ @objc func startStep(_ stepId: String) {
100
+ DispatchQueue.main.async {
101
+ IDWise.startStep(stepId: stepId)
102
+ }
103
+ }
104
+
105
+ @objc func startStepFromFileUpload(
106
+ _ stepId: String,
107
+ _ data: Data
108
+ ) {
109
+ DispatchQueue.main.async {
110
+ IDWise.startStepFromFileUpload(stepId: stepId, data: data)
111
+ }
112
+ }
113
+
114
+ @objc func getJourneySummary(_ journeyId: String) {
115
+ IDWise.getJourneySummary(
116
+ journeyId: journeyId,
117
+ callback: { journeySummary, error in
118
+ if let summary = journeySummary {
119
+
120
+ // encoding JSON response so react-native can consume it correctly
121
+ var journeyStepSummaries = ""
122
+
123
+ do {
124
+ let encodedStepSummaries = try JSONEncoder().encode(summary)
125
+ if let jsonString = String(
126
+ data: encodedStepSummaries,
127
+ encoding: .utf8)
128
+ {
129
+ journeyStepSummaries = jsonString
130
+ }
131
+
132
+ } catch {}
133
+
134
+ IdwiseMobileSdk.emitter.sendEvent(
135
+ withName: "onJourneySummary",
136
+ body: ["summary": journeyStepSummaries] as [String: Any])
137
+ } else {
138
+ if let err = error {
139
+ IdwiseMobileSdk.emitter.sendEvent(
140
+ withName: "onJourneySummaryError",
141
+ body: ["errorCode": err.code, "errorMessage": err.message] as [String: Any])
142
+ }
143
+ }
144
+
145
+ })
146
+ }
147
+
148
+ @objc func unloadSDK() {
149
+ IDWise.unloadSDK()
150
+ }
151
+
152
+ // Delegate Methods bridging
153
+ @objc func journeyStarted(_ callback: RCTResponseSenderBlock) {
154
+
155
+ }
156
+
157
+ }
158
+
159
+ extension IdwiseMobileSdk: IDWiseSDKJourneyDelegate {
160
+
161
+ @objc func JourneyStarted(journeyID: String) {
162
+ print("Journey started with journey Id : \(journeyID)")
163
+ self.journeyID = journeyID
164
+ IdwiseMobileSdk.emitter.sendEvent(withName: "onJourneyStarted", body: ["journeyId": journeyID])
165
+ }
166
+
167
+ func onJourneyResumed(journeyID: String) {
168
+ self.journeyID = journeyID
169
+ IdwiseMobileSdk.emitter.sendEvent(withName: "onJourneyResumed", body: ["journeyId": journeyID])
170
+ print("Journey resumed with journey Id : \(journeyID)")
171
+
172
+ }
173
+
174
+ func JourneyFinished() {
175
+ IdwiseMobileSdk.emitter.sendEvent(
176
+ withName: "onJourneyFinished", body: ["journeyId": self.journeyID])
177
+ print("Journey Finished")
178
+ }
179
+
180
+ func JourneyCancelled() {
181
+ print("Journey Cancelled")
182
+ IdwiseMobileSdk.emitter.sendEvent(
183
+ withName: "onJourneyCancelled", body: ["journeyId": self.journeyID])
184
+
185
+ }
186
+
187
+ func onError(error: IDWiseSDKError) {
188
+ IdwiseMobileSdk.emitter.sendEvent(
189
+ withName: "onJourneyError",
190
+ body: ["errorCode": error.code, "errorMessage": error.message] as [String: Any])
191
+ }
192
+ }
193
+
194
+ extension IdwiseMobileSdk: IDWiseSDKStepDelegate {
195
+ func onStepCaptured(stepId: Int, capturedImage: UIImage?) {
196
+ let base64EncodedString = convertImageToBase64String(img: capturedImage)
197
+ let response =
198
+ ["stepId": "\(stepId)", "capturedImage": base64EncodedString] as [String: String]
199
+
200
+ IdwiseMobileSdk.emitter.sendEvent(withName: "onStepCaptured", body: response)
201
+ }
202
+
203
+ func onStepResult(stepId: Int, stepResult: StepResult?) {
204
+
205
+ // encoding JSON response so react-native can consume it correctly
206
+
207
+ var stepResultObj = ""
208
+ do {
209
+ let encodedStepResult = try JSONEncoder().encode(stepResult)
210
+ if let jsonString = String(
211
+ data: encodedStepResult,
212
+ encoding: .utf8)
213
+ {
214
+ stepResultObj = jsonString
215
+ }
216
+ } catch {}
217
+
218
+ IdwiseMobileSdk.emitter.sendEvent(
219
+ withName: "onStepResult",
220
+ body: ["stepId": stepId, "stepResult": stepResultObj] as [String: Any])
221
+ }
222
+
223
+ func onStepConfirmed(stepId: String) {
224
+
225
+ }
226
+
227
+ func onStepCancelled(stepId: String) {
228
+
229
+ IdwiseMobileSdk.emitter.sendEvent(
230
+ withName: "onStepCancelled", body: ["stepId": stepId])
231
+ }
232
+
233
+ func convertImageToBase64String(img: UIImage?) -> String {
234
+ return img?.jpegData(compressionQuality: 1)?.base64EncodedString() ?? ""
235
+ }
236
+
237
+ }
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.IDWise = void 0;
7
+ var _reactNative = require("react-native");
8
+ var _IDWiseEventListeners = require("./IDWiseEventListeners");
9
+ const LINKING_ERROR = `The package 'idwise-mobile-sdk' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
10
+ ios: "- You have run 'pod install'\n",
11
+ default: ''
12
+ }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
13
+ const RNIDWise = _reactNative.NativeModules.IdwiseMobileSdk ? _reactNative.NativeModules.IdwiseMobileSdk : new Proxy({}, {
14
+ get() {
15
+ throw new Error(LINKING_ERROR);
16
+ }
17
+ });
18
+ const initialize = (clientKey, theme, callback) => {
19
+ console.log('IDWise - initialize');
20
+ (0, _IDWiseEventListeners.setInitializeEventListeners)(callback);
21
+ RNIDWise.initialize(clientKey, theme);
22
+ };
23
+ const startJourney = (journeyDefinitionId, referenceNo, locale, journeyCallback) => {
24
+ console.log('IDWise - startJourney');
25
+ (0, _IDWiseEventListeners.setJourneyEventListeners)(journeyCallback);
26
+ (0, _IDWiseEventListeners.setStepEventListeners)(null);
27
+ RNIDWise.startJourney(journeyDefinitionId, referenceNo, locale);
28
+ };
29
+ const startDynamicJourney = (journeyDefinitionId, referenceNo, locale, journeyCallback, stepCallback) => {
30
+ console.log('IDWise - startDynamicJourney');
31
+ (0, _IDWiseEventListeners.setJourneyEventListeners)(journeyCallback);
32
+ (0, _IDWiseEventListeners.setStepEventListeners)(stepCallback);
33
+ RNIDWise.startDynamicJourney(journeyDefinitionId, referenceNo, locale);
34
+ };
35
+ const resumeDynamicJourney = (journeyDefinitionId, journeyId, locale, journeyCallback, stepCallback) => {
36
+ console.log('IDWise - resumeDynamicJourney');
37
+ (0, _IDWiseEventListeners.setJourneyEventListeners)(journeyCallback);
38
+ (0, _IDWiseEventListeners.setStepEventListeners)(stepCallback);
39
+ RNIDWise.resumeDynamicJourney(journeyDefinitionId, journeyId, locale);
40
+ };
41
+ const startStep = stepId => RNIDWise.startStep(stepId);
42
+ const getJourneySummary = (journeyId, callback) => {
43
+ console.log('IDWise - getJourneySummary');
44
+ (0, _IDWiseEventListeners.setJourneySummaryEventListener)(callback);
45
+ RNIDWise.getJourneySummary(journeyId);
46
+ };
47
+ const unloadSDK = () => {
48
+ console.log('IDWise - unloadSDK');
49
+ RNIDWise.unloadSDK();
50
+ };
51
+ const IDWise = exports.IDWise = {
52
+ initialize,
53
+ startJourney,
54
+ startDynamicJourney,
55
+ resumeDynamicJourney,
56
+ startStep,
57
+ getJourneySummary,
58
+ unloadSDK
59
+ };
60
+ //# sourceMappingURL=IDWise.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_IDWiseEventListeners","LINKING_ERROR","Platform","select","ios","default","RNIDWise","NativeModules","IdwiseMobileSdk","Proxy","get","Error","initialize","clientKey","theme","callback","console","log","setInitializeEventListeners","startJourney","journeyDefinitionId","referenceNo","locale","journeyCallback","setJourneyEventListeners","setStepEventListeners","startDynamicJourney","stepCallback","resumeDynamicJourney","journeyId","startStep","stepId","getJourneySummary","setJourneySummaryEventListener","unloadSDK","IDWise","exports"],"sourceRoot":"../../src","sources":["IDWise.js"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AAOA,MAAME,aAAa,GAChB,4EAA2E,GAC5EC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+B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CAAC;EACzC,IAAAE,2CAAqB,EAACE,YAAY,CAAC;EAEnCrB,QAAQ,CAACsB,oBAAoB,CAACR,mBAAmB,EAAES,SAAS,EAAEP,MAAM,CAAC;AACvE,CAAC;AAED,MAAMQ,SAAS,GAAIC,MAAM,IAAKzB,QAAQ,CAACwB,SAAS,CAACC,MAAM,CAAC;AAExD,MAAMC,iBAAiB,GAAGA,CAACH,SAAS,EAAEd,QAAQ,KAAK;EACjDC,OAAO,CAACC,GAAG,CAAC,4BAA4B,CAAC;EACzC,IAAAgB,oDAA8B,EAAClB,QAAQ,CAAC;EAExCT,QAAQ,CAAC0B,iBAAiB,CAACH,SAAS,CAAC;AACvC,CAAC;AAED,MAAMK,SAAS,GAAGA,CAAA,KAAM;EACtBlB,OAAO,CAACC,GAAG,CAAC,oBAAoB,CAAC;EACjCX,QAAQ,CAAC4B,SAAS,CAAC,CAAC;AACtB,CAAC;AAEM,MAAMC,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG;EACpBvB,UAAU;EACVO,YAAY;EACZO,mBAAmB;EACnBE,oBAAoB;EACpBE,SAAS;EACTE,iBAAiB;EACjBE;AACF,CAAC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.IDWiseSDKTheme = exports.IDWiseEvents = void 0;
7
+ const IDWiseEvents = exports.IDWiseEvents = {
8
+ EVENT_INITIALIZE_ERRROR: 'onInitializeError',
9
+ EVENT_JOURNEY_STARTED: 'onJourneyStarted',
10
+ EVENT_JOURNEY_RESUMED: 'onJourneyResumed',
11
+ EVENT_JOURNEY_FINISHED: 'onJourneyFinished',
12
+ EVENT_JOURNEY_CANCELLED: 'onJourneyCancelled',
13
+ EVENT_JOURNEY_ERROR: 'onJourneyError',
14
+ EVENT_JOURNEY_SUMMARY: 'onJourneySummary',
15
+ EVENT_JOURNEY_SUMMARY_ERROR: 'onJourneySummaryError',
16
+ EVENT_STEP_CAPTURED: 'onStepCaptured',
17
+ EVENT_STEP_RESULT: 'onStepResult',
18
+ EVENT_STEP_CANCELLED: 'onStepCancelled'
19
+ };
20
+ const IDWiseSDKTheme = exports.IDWiseSDKTheme = {
21
+ LIGHT: 'LIGHT',
22
+ DARK: 'DARK',
23
+ SYSTEM_DEFAULT: 'SYSTEM_DEFAULT'
24
+ };
25
+ //# sourceMappingURL=IDWiseConstants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["IDWiseEvents","exports","EVENT_INITIALIZE_ERRROR","EVENT_JOURNEY_STARTED","EVENT_JOURNEY_RESUMED","EVENT_JOURNEY_FINISHED","EVENT_JOURNEY_CANCELLED","EVENT_JOURNEY_ERROR","EVENT_JOURNEY_SUMMARY","EVENT_JOURNEY_SUMMARY_ERROR","EVENT_STEP_CAPTURED","EVENT_STEP_RESULT","EVENT_STEP_CANCELLED","IDWiseSDKTheme","LIGHT","DARK","SYSTEM_DEFAULT"],"sourceRoot":"../../src","sources":["IDWiseConstants.js"],"mappings":";;;;;;AAAO,MAAMA,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG;EAC1BE,uBAAuB,EAAE,mBAAmB;EAE5CC,qBAAqB,EAAE,kBAAkB;EACzCC,qBAAqB,EAAE,kBAAkB;EACzCC,sBAAsB,EAAE,mBAAmB;EAC3CC,uBAAuB,EAAE,oBAAoB;EAC7CC,mBAAmB,EAAE,gBAAgB;EAErCC,qBAAqB,EAAE,kBAAkB;EACzCC,2BAA2B,EAAE,uBAAuB;EAEpDC,mBAAmB,EAAE,gBAAgB;EACrCC,iBAAiB,EAAE,cAAc;EACjCC,oBAAoB,EAAE;AACxB,CAAC;AAEM,MAAMC,cAAc,GAAAZ,OAAA,CAAAY,cAAA,GAAG;EAC5BC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE,MAAM;EACZC,cAAc,EAAE;AAClB,CAAC"}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.setStepEventListeners = exports.setJourneySummaryEventListener = exports.setJourneyEventListeners = exports.setInitializeEventListeners = void 0;
7
+ var _reactNative = require("react-native");
8
+ var _IDWiseConstants = require("./IDWiseConstants");
9
+ const RNIDWise = _reactNative.NativeModules.IdwiseMobileSdk ? _reactNative.NativeModules.IdwiseMobileSdk : new Proxy({}, {
10
+ get() {
11
+ throw new Error(LINKING_ERROR);
12
+ }
13
+ });
14
+ const eventEmitter = new _reactNative.NativeEventEmitter(RNIDWise);
15
+ const setInitializeEventListeners = idwiseInitializeCallback => {
16
+ console.log('IDWise - setInitializeEventListeners');
17
+ eventEmitter.removeAllListeners(_IDWiseConstants.IDWiseEvents.EVENT_INITIALIZE_ERRROR);
18
+ eventEmitter.addListener(_IDWiseConstants.IDWiseEvents.EVENT_INITIALIZE_ERRROR, event => {
19
+ idwiseInitializeCallback === null || idwiseInitializeCallback === void 0 || idwiseInitializeCallback.onError(event);
20
+ });
21
+ };
22
+ exports.setInitializeEventListeners = setInitializeEventListeners;
23
+ const setJourneyEventListeners = idwiseJourneyCallback => {
24
+ console.log('IDWise - setJourneyEventListeners');
25
+ eventEmitter.removeAllListeners(_IDWiseConstants.IDWiseEvents.EVENT_JOURNEY_STARTED);
26
+ eventEmitter.removeAllListeners(_IDWiseConstants.IDWiseEvents.EVENT_JOURNEY_RESUMED);
27
+ eventEmitter.removeAllListeners(_IDWiseConstants.IDWiseEvents.EVENT_JOURNEY_FINISHED);
28
+ eventEmitter.removeAllListeners(_IDWiseConstants.IDWiseEvents.EVENT_JOURNEY_CANCELLED);
29
+ eventEmitter.removeAllListeners(_IDWiseConstants.IDWiseEvents.EVENT_JOURNEY_ERROR);
30
+ eventEmitter.addListener(_IDWiseConstants.IDWiseEvents.EVENT_JOURNEY_STARTED, event => {
31
+ idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 || idwiseJourneyCallback.onJourneyStarted(event);
32
+ });
33
+ eventEmitter.addListener(_IDWiseConstants.IDWiseEvents.EVENT_JOURNEY_RESUMED, event => {
34
+ idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 || idwiseJourneyCallback.onJourneyResumed(event);
35
+ });
36
+ eventEmitter.addListener(_IDWiseConstants.IDWiseEvents.EVENT_JOURNEY_FINISHED, event => {
37
+ idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 || idwiseJourneyCallback.onJourneyFinished(event);
38
+ });
39
+ eventEmitter.addListener(_IDWiseConstants.IDWiseEvents.EVENT_JOURNEY_CANCELLED, event => {
40
+ idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 || idwiseJourneyCallback.onJourneyCancelled(event);
41
+ });
42
+ eventEmitter.addListener(_IDWiseConstants.IDWiseEvents.EVENT_JOURNEY_ERROR, event => {
43
+ idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 || idwiseJourneyCallback.onError(event);
44
+ });
45
+ };
46
+ exports.setJourneyEventListeners = setJourneyEventListeners;
47
+ const setStepEventListeners = idwiseStepCallback => {
48
+ console.log('IDWise - setStepEventListener');
49
+ eventEmitter.removeAllListeners(_IDWiseConstants.IDWiseEvents.EVENT_STEP_CAPTURED);
50
+ eventEmitter.removeAllListeners(_IDWiseConstants.IDWiseEvents.EVENT_STEP_RESULT);
51
+ eventEmitter.removeAllListeners(_IDWiseConstants.IDWiseEvents.EVENT_STEP_CANCELLED);
52
+ eventEmitter.addListener(_IDWiseConstants.IDWiseEvents.EVENT_STEP_CAPTURED, event => {
53
+ idwiseStepCallback === null || idwiseStepCallback === void 0 || idwiseStepCallback.onStepCaptured(event.stepId, event.capturedImage);
54
+ });
55
+ eventEmitter.addListener(_IDWiseConstants.IDWiseEvents.EVENT_STEP_RESULT, event => {
56
+ idwiseStepCallback === null || idwiseStepCallback === void 0 || idwiseStepCallback.onStepResult(event.stepId, JSON.parse(event.stepResult));
57
+ });
58
+ eventEmitter.addListener(_IDWiseConstants.IDWiseEvents.EVENT_STEP_CANCELLED, event => {
59
+ idwiseStepCallback === null || idwiseStepCallback === void 0 || idwiseStepCallback.onStepCancelled(event);
60
+ });
61
+ };
62
+ exports.setStepEventListeners = setStepEventListeners;
63
+ const setJourneySummaryEventListener = idwiseJourneySummaryCallback => {
64
+ console.log('IDWise - setJourneySummaryEventListener');
65
+ eventEmitter.removeAllListeners(_IDWiseConstants.IDWiseEvents.EVENT_JOURNEY_SUMMARY);
66
+ eventEmitter.removeAllListeners(_IDWiseConstants.IDWiseEvents.EVENT_JOURNEY_SUMMARY_ERROR);
67
+ eventEmitter.addListener(_IDWiseConstants.IDWiseEvents.EVENT_JOURNEY_SUMMARY, event => {
68
+ idwiseJourneySummaryCallback === null || idwiseJourneySummaryCallback === void 0 || idwiseJourneySummaryCallback.onJourneySummary(JSON.parse(event.summary));
69
+ });
70
+ eventEmitter.addListener(_IDWiseConstants.IDWiseEvents.EVENT_JOURNEY_SUMMARY_ERROR, event => {
71
+ idwiseJourneySummaryCallback === null || idwiseJourneySummaryCallback === void 0 || idwiseJourneySummaryCallback.onError(JSON.parse(event.error));
72
+ });
73
+ };
74
+ exports.setJourneySummaryEventListener = setJourneySummaryEventListener;
75
+ //# sourceMappingURL=IDWiseEventListeners.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_IDWiseConstants","RNIDWise","NativeModules","IdwiseMobileSdk","Proxy","get","Error","LINKING_ERROR","eventEmitter","NativeEventEmitter","setInitializeEventListeners","idwiseInitializeCallback","console","log","removeAllListeners","IDWiseEvents","EVENT_INITIALIZE_ERRROR","addListener","event","onError","exports","setJourneyEventListeners","idwiseJourneyCallback","EVENT_JOURNEY_STARTED","EVENT_JOURNEY_RESUMED","EVENT_JOURNEY_FINISHED","EVENT_JOURNEY_CANCELLED","EVENT_JOURNEY_ERROR","onJourneyStarted","onJourneyResumed","onJourneyFinished","onJourneyCancelled","setStepEventListeners","idwiseStepCallback","EVENT_STEP_CAPTURED","EVENT_STEP_RESULT","EVENT_STEP_CANCELLED","onStepCaptured","stepId","capturedImage","onStepResult","JSON","parse","stepResult","onStepCancelled","setJourneySummaryEventListener","idwiseJourneySummaryCallback","EVENT_JOURNEY_SUMMARY","EVENT_JOURNEY_SUMMARY_ERROR","onJourneySummary","summary","error"],"sourceRoot":"../../src","sources":["IDWiseEventListeners.js"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AAEA,MAAME,QAAQ,GAAGC,0BAAa,CAACC,eAAe,GAC1CD,0BAAa,CAACC,eAAe,GAC7B,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACC,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEL,MAAMC,YAAY,GAAG,IAAIC,+BAAkB,CAACR,QAAQ,CAAC;AAErD,MAAMS,2BAA2B,GAAIC,wBAAwB,IAAK;EAChEC,OAAO,CAACC,GAAG,CAAC,sCAAsC,CAAC;EACnDL,YAAY,CAACM,kBAAkB,CAACC,6BAAY,CAACC,uBAAuB,CAAC;EAErER,YAAY,CAACS,WAAW,CAACF,6BAAY,CAACC,uBAAuB,EAAGE,KAAK,IAAK;IACxEP,wBAAwB,aAAxBA,wBAAwB,eAAxBA,wBAAwB,CAAEQ,OAAO,CAACD,KAAK,CAAC;EAC1C,CAAC,CAAC;AACJ,CAAC;AAACE,OAAA,CAAAV,2BAAA,GAAAA,2BAAA;AAEF,MAAMW,wBAAwB,GAAIC,qBAAqB,IAAK;EAC1DV,OAAO,CAACC,GAAG,CAAC,mCAAmC,CAAC;EAChDL,YAAY,CAACM,kBAAkB,CAACC,6BAAY,CAACQ,qBAAqB,CAAC;EACnEf,YAAY,CAACM,kBAAkB,CAACC,6BAAY,CAACS,qBAAqB,CAAC;EACnEhB,YAAY,CAACM,kBAAkB,CAACC,6BAAY,CAACU,sBAAsB,CAAC;EACpEjB,YAAY,CAACM,kBAAkB,CAACC,6BAAY,CAACW,uBAAuB,CAAC;EACrElB,YAAY,CA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,aAA5BA,4BAA4B,eAA5BA,4BAA4B,CAAE3B,OAAO,CAACsB,IAAI,CAACC,KAAK,CAACxB,KAAK,CAACiC,KAAK,CAAC,CAAC;EAChE,CACF,CAAC;AACH,CAAC;AAAC/B,OAAA,CAAAyB,8BAAA,GAAAA,8BAAA"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var IDWise = _interopRequireWildcard(require("./IDWise"));
8
+ var _IDWiseConstants = require("./IDWiseConstants");
9
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
10
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
+ var _default = exports.default = {
12
+ IDWise,
13
+ IDWiseSDKTheme: _IDWiseConstants.IDWiseSDKTheme
14
+ };
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["IDWise","_interopRequireWildcard","require","_IDWiseConstants","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_default","exports","IDWiseSDKTheme"],"sourceRoot":"../../src","sources":["index.js"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AAAmD,SA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Platform } from 'react-native';
2
+ import { setInitializeEventListeners, setJourneyEventListeners, setJourneySummaryEventListener, setStepEventListeners } from './IDWiseEventListeners';
3
+ const LINKING_ERROR = `The package 'idwise-mobile-sdk' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
4
+ ios: "- You have run 'pod install'\n",
5
+ default: ''
6
+ }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
7
+ const RNIDWise = NativeModules.IdwiseMobileSdk ? NativeModules.IdwiseMobileSdk : new Proxy({}, {
8
+ get() {
9
+ throw new Error(LINKING_ERROR);
10
+ }
11
+ });
12
+ const initialize = (clientKey, theme, callback) => {
13
+ console.log('IDWise - initialize');
14
+ setInitializeEventListeners(callback);
15
+ RNIDWise.initialize(clientKey, theme);
16
+ };
17
+ const startJourney = (journeyDefinitionId, referenceNo, locale, journeyCallback) => {
18
+ console.log('IDWise - startJourney');
19
+ setJourneyEventListeners(journeyCallback);
20
+ setStepEventListeners(null);
21
+ RNIDWise.startJourney(journeyDefinitionId, referenceNo, locale);
22
+ };
23
+ const startDynamicJourney = (journeyDefinitionId, referenceNo, locale, journeyCallback, stepCallback) => {
24
+ console.log('IDWise - startDynamicJourney');
25
+ setJourneyEventListeners(journeyCallback);
26
+ setStepEventListeners(stepCallback);
27
+ RNIDWise.startDynamicJourney(journeyDefinitionId, referenceNo, locale);
28
+ };
29
+ const resumeDynamicJourney = (journeyDefinitionId, journeyId, locale, journeyCallback, stepCallback) => {
30
+ console.log('IDWise - resumeDynamicJourney');
31
+ setJourneyEventListeners(journeyCallback);
32
+ setStepEventListeners(stepCallback);
33
+ RNIDWise.resumeDynamicJourney(journeyDefinitionId, journeyId, locale);
34
+ };
35
+ const startStep = stepId => RNIDWise.startStep(stepId);
36
+ const getJourneySummary = (journeyId, callback) => {
37
+ console.log('IDWise - getJourneySummary');
38
+ setJourneySummaryEventListener(callback);
39
+ RNIDWise.getJourneySummary(journeyId);
40
+ };
41
+ const unloadSDK = () => {
42
+ console.log('IDWise - unloadSDK');
43
+ RNIDWise.unloadSDK();
44
+ };
45
+ export const IDWise = {
46
+ initialize,
47
+ startJourney,
48
+ startDynamicJourney,
49
+ resumeDynamicJourney,
50
+ startStep,
51
+ getJourneySummary,
52
+ unloadSDK
53
+ };
54
+ //# sourceMappingURL=IDWise.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NativeModules","Platform","setInitializeEventListeners","setJourneyEventListeners","setJourneySummaryEventListener","setStepEventListeners","LINKING_ERROR","select","ios","default","RNIDWise","IdwiseMobileSdk","Proxy","get","Error","initialize","clientKey","theme","callback","console","log","startJourney","journeyDefinitionId","referenceNo","locale","journeyCallback","startDynamicJourney","stepCallback","resumeDynamicJourney","journeyId","startStep","stepId","getJourneySummary","unloadSDK","IDWise"],"sourceRoot":"../../src","sources":["IDWise.js"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AACtD,SACEC,2BAA2B,EAC3BC,wBAAwB,EACxBC,8BAA8B,EAC9BC,qBAAqB,QAChB,wBAAwB;AAE/B,MAAMC,aAAa,GAChB,4EAA2E,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,eAAe,GAC1CX,aAAa,CAACW,eAAe,GAC7B,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACR,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEL,MAAMS,UAAU,GAAGA,CAACC,SAAS,EAAEC,KAAK,EAAEC,QAAQ,KAAK;EACjDC,OAAO,CAACC,GAAG,CAAC,qBAAqB,CAAC;EAClClB,2BAA2B,CAACgB,QAAQ,CAAC;EAErCR,QAAQ,CAACK,UAAU,CAACC,SAAS,EAAEC,KAAK,CAAC;AACvC,C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,OAAO,CAACC,GAAG,CAAC,oBAAoB,CAAC;EACjCV,QAAQ,CAACuB,SAAS,CAAC,CAAC;AACtB,CAAC;AAED,OAAO,MAAMC,MAAM,GAAG;EACpBnB,UAAU;EACVM,YAAY;EACZK,mBAAmB;EACnBE,oBAAoB;EACpBE,SAAS;EACTE,iBAAiB;EACjBC;AACF,CAAC"}
@@ -0,0 +1,19 @@
1
+ export const IDWiseEvents = {
2
+ EVENT_INITIALIZE_ERRROR: 'onInitializeError',
3
+ EVENT_JOURNEY_STARTED: 'onJourneyStarted',
4
+ EVENT_JOURNEY_RESUMED: 'onJourneyResumed',
5
+ EVENT_JOURNEY_FINISHED: 'onJourneyFinished',
6
+ EVENT_JOURNEY_CANCELLED: 'onJourneyCancelled',
7
+ EVENT_JOURNEY_ERROR: 'onJourneyError',
8
+ EVENT_JOURNEY_SUMMARY: 'onJourneySummary',
9
+ EVENT_JOURNEY_SUMMARY_ERROR: 'onJourneySummaryError',
10
+ EVENT_STEP_CAPTURED: 'onStepCaptured',
11
+ EVENT_STEP_RESULT: 'onStepResult',
12
+ EVENT_STEP_CANCELLED: 'onStepCancelled'
13
+ };
14
+ export const IDWiseSDKTheme = {
15
+ LIGHT: 'LIGHT',
16
+ DARK: 'DARK',
17
+ SYSTEM_DEFAULT: 'SYSTEM_DEFAULT'
18
+ };
19
+ //# sourceMappingURL=IDWiseConstants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["IDWiseEvents","EVENT_INITIALIZE_ERRROR","EVENT_JOURNEY_STARTED","EVENT_JOURNEY_RESUMED","EVENT_JOURNEY_FINISHED","EVENT_JOURNEY_CANCELLED","EVENT_JOURNEY_ERROR","EVENT_JOURNEY_SUMMARY","EVENT_JOURNEY_SUMMARY_ERROR","EVENT_STEP_CAPTURED","EVENT_STEP_RESULT","EVENT_STEP_CANCELLED","IDWiseSDKTheme","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,mBAAmB;EAC3CC,uBAAuB,EAAE,oBAAoB;EAC7CC,mBAAmB,EAAE,gBAAgB;EAErCC,qBAAqB,EAAE,kBAAkB;EACzCC,2BAA2B,EAAE,uBAAuB;EAEpDC,mBAAmB,EAAE,gBAAgB;EACrCC,iBAAiB,EAAE,cAAc;EACjCC,oBAAoB,EAAE;AACxB,CAAC;AAED,OAAO,MAAMC,cAAc,GAAG;EAC5BC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE,MAAM;EACZC,cAAc,EAAE;AAClB,CAAC"}