@transfergratis/react-native-sdk 0.1.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.
Files changed (566) hide show
  1. package/README.md +539 -0
  2. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  3. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  4. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  5. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  6. package/android/.gradle/8.9/gc.properties +0 -0
  7. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  8. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  9. package/android/.gradle/config.properties +2 -0
  10. package/android/.gradle/vcs-1/gc.properties +0 -0
  11. package/android/.idea/gradle.xml +14 -0
  12. package/android/.idea/migrations.xml +10 -0
  13. package/android/.idea/misc.xml +9 -0
  14. package/android/.idea/runConfigurations.xml +17 -0
  15. package/android/.idea/vcs.xml +6 -0
  16. package/android/build/.transforms/7ec900c0f64f5f1a7c88998dd44001b8/results.bin +1 -0
  17. package/android/build/.transforms/7ec900c0f64f5f1a7c88998dd44001b8/transformed/classes/classes_dex/classes.dex +0 -0
  18. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/results.bin +1 -0
  19. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/BuildConfig.dex +0 -0
  20. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.dex +0 -0
  21. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.dex +0 -0
  22. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.dex +0 -0
  23. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.dex +0 -0
  24. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.dex +0 -0
  25. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.dex +0 -0
  26. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.dex +0 -0
  27. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.dex +0 -0
  28. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.dex +0 -0
  29. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.dex +0 -0
  30. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.dex +0 -0
  31. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.dex +0 -0
  32. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.dex +0 -0
  33. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$1.dex +0 -0
  34. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$2.dex +0 -0
  35. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule.dex +0 -0
  36. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkView.dex +0 -0
  37. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  38. package/android/build/generated/source/buildConfig/debug/kyc/transfergratis/com/BuildConfig.java +10 -0
  39. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +35 -0
  40. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  41. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  42. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  43. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  44. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  45. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +1 -0
  46. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/xml_file_paths.xml.flat +0 -0
  47. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +2 -0
  48. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  49. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  50. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  51. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
  52. package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/transfergratis-sdk_debug.kotlin_module +0 -0
  53. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/kyc/transfergratis/com/BuildConfig.class +0 -0
  54. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +3 -0
  55. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +58 -0
  56. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +35 -0
  57. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  58. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  59. package/android/build/intermediates/packaged_res/debug/packageDebugResources/xml/file_paths.xml +15 -0
  60. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/transfergratis-sdk_debug.kotlin_module +0 -0
  61. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/BuildConfig.class +0 -0
  62. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.class +0 -0
  63. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.class +0 -0
  64. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.class +0 -0
  65. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.class +0 -0
  66. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.class +0 -0
  67. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.class +0 -0
  68. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.class +0 -0
  69. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.class +0 -0
  70. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.class +0 -0
  71. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.class +0 -0
  72. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.class +0 -0
  73. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.class +0 -0
  74. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.class +0 -0
  75. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$1.class +0 -0
  76. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$2.class +0 -0
  77. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule.class +0 -0
  78. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkView.class +0 -0
  79. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  80. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +2 -0
  81. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  82. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  83. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  84. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  85. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  86. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  87. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  88. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  89. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  90. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  91. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  92. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  93. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  94. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  95. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  96. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  97. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  98. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  99. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  100. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  101. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  102. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  103. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  104. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  105. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  106. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  107. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  108. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  109. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  110. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  111. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  112. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  113. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  114. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  115. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  116. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  117. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  118. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  119. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  120. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  121. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  122. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  123. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  124. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  125. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  126. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  127. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  128. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  129. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  130. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  131. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  132. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  133. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  134. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  135. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  136. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  137. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
  138. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  139. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  140. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  141. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  142. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  143. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  144. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  145. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  146. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  147. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  148. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  149. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  150. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  151. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  152. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  153. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  154. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  155. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  156. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  157. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  158. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  159. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  160. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  161. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  162. package/android/build/outputs/logs/manifest-merger-debug-report.txt +63 -0
  163. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  164. package/android/build/tmp/kotlin-classes/debug/META-INF/transfergratis-sdk_debug.kotlin_module +0 -0
  165. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.class +0 -0
  166. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.class +0 -0
  167. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.class +0 -0
  168. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.class +0 -0
  169. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.class +0 -0
  170. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.class +0 -0
  171. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.class +0 -0
  172. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.class +0 -0
  173. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.class +0 -0
  174. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.class +0 -0
  175. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.class +0 -0
  176. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.class +0 -0
  177. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.class +0 -0
  178. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$1.class +0 -0
  179. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$2.class +0 -0
  180. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule.class +0 -0
  181. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkView.class +0 -0
  182. package/android/build.gradle +47 -0
  183. package/android/local.properties +8 -0
  184. package/android/src/main/AndroidManifest.xml +28 -0
  185. package/android/src/main/java/kyc/transfergratis/com/TransfergratisSdkModule.kt +131 -0
  186. package/android/src/main/java/kyc/transfergratis/com/TransfergratisSdkView.kt +161 -0
  187. package/android/src/main/res/xml/file_paths.xml +15 -0
  188. package/build/App.d.ts +3 -0
  189. package/build/App.d.ts.map +1 -0
  190. package/build/App.js +9 -0
  191. package/build/App.js.map +1 -0
  192. package/build/TransfergratisSdk.types.d.ts +32 -0
  193. package/build/TransfergratisSdk.types.d.ts.map +1 -0
  194. package/build/TransfergratisSdk.types.js +2 -0
  195. package/build/TransfergratisSdk.types.js.map +1 -0
  196. package/build/TransfergratisSdkModule.d.ts +21 -0
  197. package/build/TransfergratisSdkModule.d.ts.map +1 -0
  198. package/build/TransfergratisSdkModule.js +4 -0
  199. package/build/TransfergratisSdkModule.js.map +1 -0
  200. package/build/TransfergratisSdkModule.web.d.ts +20 -0
  201. package/build/TransfergratisSdkModule.web.d.ts.map +1 -0
  202. package/build/TransfergratisSdkModule.web.js +25 -0
  203. package/build/TransfergratisSdkModule.web.js.map +1 -0
  204. package/build/TransfergratisSdkView.d.ts +4 -0
  205. package/build/TransfergratisSdkView.d.ts.map +1 -0
  206. package/build/TransfergratisSdkView.js +7 -0
  207. package/build/TransfergratisSdkView.js.map +1 -0
  208. package/build/TransfergratisSdkView.web.d.ts +4 -0
  209. package/build/TransfergratisSdkView.web.d.ts.map +1 -0
  210. package/build/TransfergratisSdkView.web.js +11 -0
  211. package/build/TransfergratisSdkView.web.js.map +1 -0
  212. package/build/components/Camera/index.d.ts +2 -0
  213. package/build/components/Camera/index.d.ts.map +1 -0
  214. package/build/components/Camera/index.js +2 -0
  215. package/build/components/Camera/index.js.map +1 -0
  216. package/build/components/Camera/index.web.d.ts +2 -0
  217. package/build/components/Camera/index.web.d.ts.map +1 -0
  218. package/build/components/Camera/index.web.js +2 -0
  219. package/build/components/Camera/index.web.js.map +1 -0
  220. package/build/components/Camera/types.d.ts +2 -0
  221. package/build/components/Camera/types.d.ts.map +1 -0
  222. package/build/components/Camera/types.js +2 -0
  223. package/build/components/Camera/types.js.map +1 -0
  224. package/build/components/ConfigurableKYCFlow.d.ts +11 -0
  225. package/build/components/ConfigurableKYCFlow.d.ts.map +1 -0
  226. package/build/components/ConfigurableKYCFlow.js +257 -0
  227. package/build/components/ConfigurableKYCFlow.js.map +1 -0
  228. package/build/components/CustomCameraExample.d.ts +10 -0
  229. package/build/components/CustomCameraExample.d.ts.map +1 -0
  230. package/build/components/CustomCameraExample.js +232 -0
  231. package/build/components/CustomCameraExample.js.map +1 -0
  232. package/build/components/EnhancedCameraView.d.ts +44 -0
  233. package/build/components/EnhancedCameraView.d.ts.map +1 -0
  234. package/build/components/EnhancedCameraView.js +316 -0
  235. package/build/components/EnhancedCameraView.js.map +1 -0
  236. package/build/components/EnhancedCameraView.web.d.ts +44 -0
  237. package/build/components/EnhancedCameraView.web.d.ts.map +1 -0
  238. package/build/components/EnhancedCameraView.web.js +399 -0
  239. package/build/components/EnhancedCameraView.web.js.map +1 -0
  240. package/build/components/FileUpload.d.ts +13 -0
  241. package/build/components/FileUpload.d.ts.map +1 -0
  242. package/build/components/FileUpload.js +216 -0
  243. package/build/components/FileUpload.js.map +1 -0
  244. package/build/components/KYCElementRenderer.d.ts +14 -0
  245. package/build/components/KYCElementRenderer.d.ts.map +1 -0
  246. package/build/components/KYCElementRenderer.js +31 -0
  247. package/build/components/KYCElementRenderer.js.map +1 -0
  248. package/build/components/KYCElements/CameraCapture.d.ts +11 -0
  249. package/build/components/KYCElements/CameraCapture.d.ts.map +1 -0
  250. package/build/components/KYCElements/CameraCapture.js +218 -0
  251. package/build/components/KYCElements/CameraCapture.js.map +1 -0
  252. package/build/components/KYCElements/CompletionStep.d.ts +10 -0
  253. package/build/components/KYCElements/CompletionStep.d.ts.map +1 -0
  254. package/build/components/KYCElements/CompletionStep.js +147 -0
  255. package/build/components/KYCElements/CompletionStep.js.map +1 -0
  256. package/build/components/KYCElements/CountrySelection.d.ts +11 -0
  257. package/build/components/KYCElements/CountrySelection.d.ts.map +1 -0
  258. package/build/components/KYCElements/CountrySelection.js +147 -0
  259. package/build/components/KYCElements/CountrySelection.js.map +1 -0
  260. package/build/components/KYCElements/CountrySelectionTemplate.d.ts +12 -0
  261. package/build/components/KYCElements/CountrySelectionTemplate.d.ts.map +1 -0
  262. package/build/components/KYCElements/CountrySelectionTemplate.js +245 -0
  263. package/build/components/KYCElements/CountrySelectionTemplate.js.map +1 -0
  264. package/build/components/KYCElements/DocumentTypeSelection.d.ts +11 -0
  265. package/build/components/KYCElements/DocumentTypeSelection.d.ts.map +1 -0
  266. package/build/components/KYCElements/DocumentTypeSelection.js +143 -0
  267. package/build/components/KYCElements/DocumentTypeSelection.js.map +1 -0
  268. package/build/components/KYCElements/FileUpload.d.ts +11 -0
  269. package/build/components/KYCElements/FileUpload.d.ts.map +1 -0
  270. package/build/components/KYCElements/FileUpload.js +267 -0
  271. package/build/components/KYCElements/FileUpload.js.map +1 -0
  272. package/build/components/KYCElements/FileUploadTemplate.d.ts +12 -0
  273. package/build/components/KYCElements/FileUploadTemplate.d.ts.map +1 -0
  274. package/build/components/KYCElements/FileUploadTemplate.js +326 -0
  275. package/build/components/KYCElements/FileUploadTemplate.js.map +1 -0
  276. package/build/components/KYCElements/IDCardCapture.d.ts +13 -0
  277. package/build/components/KYCElements/IDCardCapture.d.ts.map +1 -0
  278. package/build/components/KYCElements/IDCardCapture.js +421 -0
  279. package/build/components/KYCElements/IDCardCapture.js.map +1 -0
  280. package/build/components/KYCElements/LocationCaptureTemplate.d.ts +20 -0
  281. package/build/components/KYCElements/LocationCaptureTemplate.d.ts.map +1 -0
  282. package/build/components/KYCElements/LocationCaptureTemplate.js +275 -0
  283. package/build/components/KYCElements/LocationCaptureTemplate.js.map +1 -0
  284. package/build/components/KYCElements/OrientationVideoCapture.d.ts +12 -0
  285. package/build/components/KYCElements/OrientationVideoCapture.d.ts.map +1 -0
  286. package/build/components/KYCElements/OrientationVideoCapture.js +533 -0
  287. package/build/components/KYCElements/OrientationVideoCapture.js.map +1 -0
  288. package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts +12 -0
  289. package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts.map +1 -0
  290. package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js +503 -0
  291. package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js.map +1 -0
  292. package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts +12 -0
  293. package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts.map +1 -0
  294. package/build/components/KYCElements/OrientationVideoCaptureFinal.js +429 -0
  295. package/build/components/KYCElements/OrientationVideoCaptureFinal.js.map +1 -0
  296. package/build/components/KYCElements/SelfieCapture.d.ts +11 -0
  297. package/build/components/KYCElements/SelfieCapture.d.ts.map +1 -0
  298. package/build/components/KYCElements/SelfieCapture.js +235 -0
  299. package/build/components/KYCElements/SelfieCapture.js.map +1 -0
  300. package/build/components/KYCElements/SelfieCaptureTemplate.d.ts +12 -0
  301. package/build/components/KYCElements/SelfieCaptureTemplate.d.ts.map +1 -0
  302. package/build/components/KYCElements/SelfieCaptureTemplate.js +321 -0
  303. package/build/components/KYCElements/SelfieCaptureTemplate.js.map +1 -0
  304. package/build/components/KYCElements/VerificationStep.d.ts +10 -0
  305. package/build/components/KYCElements/VerificationStep.d.ts.map +1 -0
  306. package/build/components/KYCElements/VerificationStep.js +199 -0
  307. package/build/components/KYCElements/VerificationStep.js.map +1 -0
  308. package/build/components/KYCExample.d.ts +3 -0
  309. package/build/components/KYCExample.d.ts.map +1 -0
  310. package/build/components/KYCExample.js +247 -0
  311. package/build/components/KYCExample.js.map +1 -0
  312. package/build/components/KYCFlow.d.ts +3 -0
  313. package/build/components/KYCFlow.d.ts.map +1 -0
  314. package/build/components/KYCFlow.js +308 -0
  315. package/build/components/KYCFlow.js.map +1 -0
  316. package/build/components/NativeCameraView.d.ts +11 -0
  317. package/build/components/NativeCameraView.d.ts.map +1 -0
  318. package/build/components/NativeCameraView.js +27 -0
  319. package/build/components/NativeCameraView.js.map +1 -0
  320. package/build/components/OverLay/IdCard.d.ts +4 -0
  321. package/build/components/OverLay/IdCard.d.ts.map +1 -0
  322. package/build/components/OverLay/IdCard.js +181 -0
  323. package/build/components/OverLay/IdCard.js.map +1 -0
  324. package/build/components/OverLay/SelfieOverlay.d.ts +4 -0
  325. package/build/components/OverLay/SelfieOverlay.d.ts.map +1 -0
  326. package/build/components/OverLay/SelfieOverlay.js +168 -0
  327. package/build/components/OverLay/SelfieOverlay.js.map +1 -0
  328. package/build/components/OverLay/StepOverlay.d.ts +9 -0
  329. package/build/components/OverLay/StepOverlay.d.ts.map +1 -0
  330. package/build/components/OverLay/StepOverlay.js +51 -0
  331. package/build/components/OverLay/StepOverlay.js.map +1 -0
  332. package/build/components/OverLay/type.d.ts +21 -0
  333. package/build/components/OverLay/type.d.ts.map +1 -0
  334. package/build/components/OverLay/type.js +2 -0
  335. package/build/components/OverLay/type.js.map +1 -0
  336. package/build/components/ProgressIndicator.d.ts +8 -0
  337. package/build/components/ProgressIndicator.d.ts.map +1 -0
  338. package/build/components/ProgressIndicator.js +48 -0
  339. package/build/components/ProgressIndicator.js.map +1 -0
  340. package/build/components/SelfieCapture.d.ts +3 -0
  341. package/build/components/SelfieCapture.d.ts.map +1 -0
  342. package/build/components/SelfieCapture.js +197 -0
  343. package/build/components/SelfieCapture.js.map +1 -0
  344. package/build/components/SimpleExample.d.ts +3 -0
  345. package/build/components/SimpleExample.d.ts.map +1 -0
  346. package/build/components/SimpleExample.js +89 -0
  347. package/build/components/SimpleExample.js.map +1 -0
  348. package/build/components/Svgs/GpsIcon.d.ts +3 -0
  349. package/build/components/Svgs/GpsIcon.d.ts.map +1 -0
  350. package/build/components/Svgs/GpsIcon.js +9 -0
  351. package/build/components/Svgs/GpsIcon.js.map +1 -0
  352. package/build/components/Svgs/Schield.d.ts +3 -0
  353. package/build/components/Svgs/Schield.d.ts.map +1 -0
  354. package/build/components/Svgs/Schield.js +22 -0
  355. package/build/components/Svgs/Schield.js.map +1 -0
  356. package/build/components/Svgs/frontSelfieIcon.d.ts +3 -0
  357. package/build/components/Svgs/frontSelfieIcon.d.ts.map +1 -0
  358. package/build/components/Svgs/frontSelfieIcon.js +11 -0
  359. package/build/components/Svgs/frontSelfieIcon.js.map +1 -0
  360. package/build/components/Svgs/scanningLine.d.ts +9 -0
  361. package/build/components/Svgs/scanningLine.d.ts.map +1 -0
  362. package/build/components/Svgs/scanningLine.js +61 -0
  363. package/build/components/Svgs/scanningLine.js.map +1 -0
  364. package/build/components/Svgs/sideSelfieIcon.d.ts +3 -0
  365. package/build/components/Svgs/sideSelfieIcon.d.ts.map +1 -0
  366. package/build/components/Svgs/sideSelfieIcon.js +9 -0
  367. package/build/components/Svgs/sideSelfieIcon.js.map +1 -0
  368. package/build/components/TemplateKYCExample.d.ts +7 -0
  369. package/build/components/TemplateKYCExample.d.ts.map +1 -0
  370. package/build/components/TemplateKYCExample.js +433 -0
  371. package/build/components/TemplateKYCExample.js.map +1 -0
  372. package/build/components/TemplateKYCFlowRefactored.d.ts +12 -0
  373. package/build/components/TemplateKYCFlowRefactored.d.ts.map +1 -0
  374. package/build/components/TemplateKYCFlowRefactored.js +210 -0
  375. package/build/components/TemplateKYCFlowRefactored.js.map +1 -0
  376. package/build/components/VisionCameraView.d.ts +22 -0
  377. package/build/components/VisionCameraView.d.ts.map +1 -0
  378. package/build/components/VisionCameraView.js +142 -0
  379. package/build/components/VisionCameraView.js.map +1 -0
  380. package/build/components/example/CameraCaptureEx.d.ts +4 -0
  381. package/build/components/example/CameraCaptureEx.d.ts.map +1 -0
  382. package/build/components/example/CameraCaptureEx.js +219 -0
  383. package/build/components/example/CameraCaptureEx.js.map +1 -0
  384. package/build/components/example/CameraCaptureExAdvanced.d.ts +3 -0
  385. package/build/components/example/CameraCaptureExAdvanced.d.ts.map +1 -0
  386. package/build/components/example/CameraCaptureExAdvanced.js +229 -0
  387. package/build/components/example/CameraCaptureExAdvanced.js.map +1 -0
  388. package/build/components/example/CameraCaptureExScan.d.ts +3 -0
  389. package/build/components/example/CameraCaptureExScan.d.ts.map +1 -0
  390. package/build/components/example/CameraCaptureExScan.js +213 -0
  391. package/build/components/example/CameraCaptureExScan.js.map +1 -0
  392. package/build/components/example/CameraCaptureExSimple.d.ts +3 -0
  393. package/build/components/example/CameraCaptureExSimple.d.ts.map +1 -0
  394. package/build/components/example/CameraCaptureExSimple.js +138 -0
  395. package/build/components/example/CameraCaptureExSimple.js.map +1 -0
  396. package/build/components/example/OrientationVideoExample.d.ts +4 -0
  397. package/build/components/example/OrientationVideoExample.d.ts.map +1 -0
  398. package/build/components/example/OrientationVideoExample.js +329 -0
  399. package/build/components/example/OrientationVideoExample.js.map +1 -0
  400. package/build/components/example/SelfieCaptureEx.d.ts +4 -0
  401. package/build/components/example/SelfieCaptureEx.d.ts.map +1 -0
  402. package/build/components/example/SelfieCaptureEx.js +238 -0
  403. package/build/components/example/SelfieCaptureEx.js.map +1 -0
  404. package/build/components/ui/Button.d.ts +37 -0
  405. package/build/components/ui/Button.d.ts.map +1 -0
  406. package/build/components/ui/Button.js +194 -0
  407. package/build/components/ui/Button.js.map +1 -0
  408. package/build/components/ui/ButtonExample.d.ts +4 -0
  409. package/build/components/ui/ButtonExample.d.ts.map +1 -0
  410. package/build/components/ui/ButtonExample.js +209 -0
  411. package/build/components/ui/ButtonExample.js.map +1 -0
  412. package/build/components/ui/ButtonStyles.d.ts +521 -0
  413. package/build/components/ui/ButtonStyles.d.ts.map +1 -0
  414. package/build/components/ui/ButtonStyles.js +429 -0
  415. package/build/components/ui/ButtonStyles.js.map +1 -0
  416. package/build/config/KYCConfigs.d.ts +7 -0
  417. package/build/config/KYCConfigs.d.ts.map +1 -0
  418. package/build/config/KYCConfigs.js +516 -0
  419. package/build/config/KYCConfigs.js.map +1 -0
  420. package/build/hooks/useKYC.d.ts +15 -0
  421. package/build/hooks/useKYC.d.ts.map +1 -0
  422. package/build/hooks/useKYC.js +103 -0
  423. package/build/hooks/useKYC.js.map +1 -0
  424. package/build/hooks/useKYCFlow.d.ts +3 -0
  425. package/build/hooks/useKYCFlow.d.ts.map +1 -0
  426. package/build/hooks/useKYCFlow.js +221 -0
  427. package/build/hooks/useKYCFlow.js.map +1 -0
  428. package/build/hooks/useLocation.d.ts +32 -0
  429. package/build/hooks/useLocation.d.ts.map +1 -0
  430. package/build/hooks/useLocation.js +165 -0
  431. package/build/hooks/useLocation.js.map +1 -0
  432. package/build/hooks/useOrientationVideo.d.ts +10 -0
  433. package/build/hooks/useOrientationVideo.d.ts.map +1 -0
  434. package/build/hooks/useOrientationVideo.js +117 -0
  435. package/build/hooks/useOrientationVideo.js.map +1 -0
  436. package/build/hooks/useTemplateKYCFlow.d.ts +28 -0
  437. package/build/hooks/useTemplateKYCFlow.d.ts.map +1 -0
  438. package/build/hooks/useTemplateKYCFlow.js +221 -0
  439. package/build/hooks/useTemplateKYCFlow.js.map +1 -0
  440. package/build/index.d.ts +34 -0
  441. package/build/index.d.ts.map +1 -0
  442. package/build/index.js +45 -0
  443. package/build/index.js.map +1 -0
  444. package/build/modules/api/KYCService.d.ts +35 -0
  445. package/build/modules/api/KYCService.d.ts.map +1 -0
  446. package/build/modules/api/KYCService.js +119 -0
  447. package/build/modules/api/KYCService.js.map +1 -0
  448. package/build/modules/camera/NativeCameraModule.d.ts +52 -0
  449. package/build/modules/camera/NativeCameraModule.d.ts.map +1 -0
  450. package/build/modules/camera/NativeCameraModule.js +149 -0
  451. package/build/modules/camera/NativeCameraModule.js.map +1 -0
  452. package/build/modules/camera/UnifiedCameraModule.d.ts +70 -0
  453. package/build/modules/camera/UnifiedCameraModule.d.ts.map +1 -0
  454. package/build/modules/camera/UnifiedCameraModule.js +125 -0
  455. package/build/modules/camera/UnifiedCameraModule.js.map +1 -0
  456. package/build/modules/camera/VisionCameraModule.d.ts +62 -0
  457. package/build/modules/camera/VisionCameraModule.d.ts.map +1 -0
  458. package/build/modules/camera/VisionCameraModule.js +198 -0
  459. package/build/modules/camera/VisionCameraModule.js.map +1 -0
  460. package/build/modules/camera/VisionCameraModule.web.d.ts +145 -0
  461. package/build/modules/camera/VisionCameraModule.web.d.ts.map +1 -0
  462. package/build/modules/camera/VisionCameraModule.web.js +570 -0
  463. package/build/modules/camera/VisionCameraModule.web.js.map +1 -0
  464. package/build/modules/camera/index.d.ts +5 -0
  465. package/build/modules/camera/index.d.ts.map +1 -0
  466. package/build/modules/camera/index.js +4 -0
  467. package/build/modules/camera/index.js.map +1 -0
  468. package/build/stores/kycStore.d.ts +55 -0
  469. package/build/stores/kycStore.d.ts.map +1 -0
  470. package/build/stores/kycStore.js +98 -0
  471. package/build/stores/kycStore.js.map +1 -0
  472. package/build/types/KYC.types.d.ts +326 -0
  473. package/build/types/KYC.types.d.ts.map +1 -0
  474. package/build/types/KYC.types.js +2 -0
  475. package/build/types/KYC.types.js.map +1 -0
  476. package/expo-module.config.json +9 -0
  477. package/ios/TransfergratisSdk.podspec +31 -0
  478. package/ios/TransfergratisSdkModule.swift +409 -0
  479. package/package.json +67 -0
  480. package/plugin/build/index.d.ts +4 -0
  481. package/plugin/build/index.js +10 -0
  482. package/plugin/build/withLocation.d.ts +9 -0
  483. package/plugin/build/withLocation.js +77 -0
  484. package/plugin/build/withVisionCamera.d.ts +8 -0
  485. package/plugin/build/withVisionCamera.js +69 -0
  486. package/plugin/src/index.ts +4 -0
  487. package/plugin/src/withLocation.ts +109 -0
  488. package/plugin/src/withVisionCamera.js +89 -0
  489. package/plugin/src/withVisionCamera.ts +98 -0
  490. package/plugin/tsconfig.json +17 -0
  491. package/plugin/tsconfig.tsbuildinfo +1 -0
  492. package/plugin.js +14 -0
  493. package/src/App.tsx +9 -0
  494. package/src/TransfergratisSdk.types.ts +30 -0
  495. package/src/TransfergratisSdkModule.ts +16 -0
  496. package/src/TransfergratisSdkModule.web.ts +31 -0
  497. package/src/TransfergratisSdkView.tsx +11 -0
  498. package/src/TransfergratisSdkView.web.tsx +15 -0
  499. package/src/components/Camera/index.tsx +0 -0
  500. package/src/components/Camera/index.web.tsx +0 -0
  501. package/src/components/Camera/types.ts +0 -0
  502. package/src/components/ConfigurableKYCFlow.tsx +334 -0
  503. package/src/components/CustomCameraExample.tsx +274 -0
  504. package/src/components/EnhancedCameraView.tsx +421 -0
  505. package/src/components/EnhancedCameraView.web.tsx +517 -0
  506. package/src/components/FileUpload.tsx +249 -0
  507. package/src/components/KYCElementRenderer.tsx +106 -0
  508. package/src/components/KYCElements/CameraCapture.tsx +267 -0
  509. package/src/components/KYCElements/CompletionStep.tsx +161 -0
  510. package/src/components/KYCElements/CountrySelection.tsx +177 -0
  511. package/src/components/KYCElements/CountrySelectionTemplate.tsx +282 -0
  512. package/src/components/KYCElements/DocumentTypeSelection.tsx +173 -0
  513. package/src/components/KYCElements/FileUpload.tsx +317 -0
  514. package/src/components/KYCElements/FileUploadTemplate.tsx +388 -0
  515. package/src/components/KYCElements/IDCardCapture.tsx +519 -0
  516. package/src/components/KYCElements/LocationCaptureTemplate.tsx +325 -0
  517. package/src/components/KYCElements/OrientationVideoCapture.tsx +646 -0
  518. package/src/components/KYCElements/OrientationVideoCaptureEnhanced.tsx +613 -0
  519. package/src/components/KYCElements/OrientationVideoCaptureFinal.tsx +531 -0
  520. package/src/components/KYCElements/SelfieCapture.tsx +283 -0
  521. package/src/components/KYCElements/SelfieCaptureTemplate.tsx +388 -0
  522. package/src/components/KYCElements/VerificationStep.tsx +234 -0
  523. package/src/components/KYCExample.tsx +297 -0
  524. package/src/components/KYCFlow.tsx +377 -0
  525. package/src/components/NativeCameraView.tsx +47 -0
  526. package/src/components/OverLay/IdCard.tsx +269 -0
  527. package/src/components/OverLay/SelfieOverlay.tsx +210 -0
  528. package/src/components/OverLay/StepOverlay.tsx +62 -0
  529. package/src/components/OverLay/type.ts +21 -0
  530. package/src/components/ProgressIndicator.tsx +62 -0
  531. package/src/components/SelfieCapture.tsx +244 -0
  532. package/src/components/SimpleExample.tsx +92 -0
  533. package/src/components/Svgs/GpsIcon.tsx +12 -0
  534. package/src/components/Svgs/Schield.tsx +26 -0
  535. package/src/components/Svgs/directionArrow.gif +0 -0
  536. package/src/components/Svgs/frontSelfieIcon.tsx +13 -0
  537. package/src/components/Svgs/scanningLine.tsx +88 -0
  538. package/src/components/Svgs/sideSelfieIcon.tsx +10 -0
  539. package/src/components/TemplateKYCExample.tsx +447 -0
  540. package/src/components/TemplateKYCFlowRefactored.tsx +263 -0
  541. package/src/components/VisionCameraView.tsx +197 -0
  542. package/src/components/example/CameraCaptureEx.tsx +335 -0
  543. package/src/components/example/CameraCaptureExAdvanced.tsx +357 -0
  544. package/src/components/example/CameraCaptureExScan.tsx +336 -0
  545. package/src/components/example/CameraCaptureExSimple.tsx +215 -0
  546. package/src/components/example/OrientationVideoExample.tsx +384 -0
  547. package/src/components/example/SelfieCaptureEx.tsx +358 -0
  548. package/src/components/ui/Button.tsx +328 -0
  549. package/src/components/ui/ButtonExample.tsx +318 -0
  550. package/src/components/ui/ButtonStyles.ts +465 -0
  551. package/src/config/KYCConfigs.ts +528 -0
  552. package/src/hooks/useKYC.ts +131 -0
  553. package/src/hooks/useKYCFlow.ts +248 -0
  554. package/src/hooks/useLocation.ts +221 -0
  555. package/src/hooks/useOrientationVideo.ts +148 -0
  556. package/src/hooks/useTemplateKYCFlow.tsx +292 -0
  557. package/src/index.ts +72 -0
  558. package/src/modules/api/KYCService.ts +171 -0
  559. package/src/modules/camera/NativeCameraModule.ts +170 -0
  560. package/src/modules/camera/UnifiedCameraModule.ts +160 -0
  561. package/src/modules/camera/VisionCameraModule.ts +217 -0
  562. package/src/modules/camera/VisionCameraModule.web.ts +661 -0
  563. package/src/modules/camera/index.ts +6 -0
  564. package/src/stores/kycStore.ts +161 -0
  565. package/src/types/KYC.types.ts +434 -0
  566. package/src/types/nativewind.d.ts +2 -0
@@ -0,0 +1,292 @@
1
+ import React, { useState, useCallback, useMemo, createContext, useContext, ReactNode } from 'react';
2
+ import { KYCTemplate, TemplateState, TemplateActions, UseTemplateReturn } from '../types/KYC.types';
3
+
4
+ // Context pour le provider
5
+ interface TemplateKYCFlowContextType {
6
+ state: TemplateState;
7
+ actions: TemplateActions;
8
+ currentComponent: any;
9
+ progress: number;
10
+ canGoNext: boolean;
11
+ canGoPrevious: boolean;
12
+ isComplete: boolean;
13
+ getLocalizedText: (text: { en: string; fr: string; [key: string]: string }) => string;
14
+ }
15
+
16
+ const TemplateKYCFlowContext = createContext<TemplateKYCFlowContextType | undefined>(undefined);
17
+
18
+ // Provider component
19
+ interface TemplateKYCFlowProviderProps {
20
+ children: ReactNode;
21
+ template: KYCTemplate;
22
+ onComplete?: (data: Record<number, any>) => void;
23
+ onError?: (error: string) => void;
24
+ initialLanguage?: string;
25
+ }
26
+
27
+ export const TemplateKYCFlowProvider: React.FC<TemplateKYCFlowProviderProps> = ({
28
+ children,
29
+ template,
30
+ onComplete,
31
+ onError,
32
+ initialLanguage = 'en',
33
+ }) => {
34
+ const hookResult = useTemplateKYCFlow(template, onComplete, onError, initialLanguage);
35
+
36
+ return (
37
+ <TemplateKYCFlowContext.Provider value={hookResult}>
38
+ {children}
39
+ </TemplateKYCFlowContext.Provider>
40
+ );
41
+ };
42
+
43
+ // Hook pour utiliser le context
44
+ export const useTemplateKYCFlowContext = (): TemplateKYCFlowContextType => {
45
+ const context = useContext(TemplateKYCFlowContext);
46
+ if (!context) {
47
+ throw new Error('useTemplateKYCFlowContext must be used within a TemplateKYCFlowProvider');
48
+ }
49
+ return context;
50
+ };
51
+
52
+ export const useTemplateKYCFlow = (
53
+ template: KYCTemplate,
54
+ onComplete?: (data: Record<number, any>) => void,
55
+ onError?: (error: string) => void,
56
+ initialLanguage: string = 'en'
57
+ ): UseTemplateReturn => {
58
+ // État du flux
59
+ const [state, setState] = useState<TemplateState>({
60
+ template,
61
+ currentComponentIndex: 0,
62
+ completedComponents: [],
63
+ componentData: {},
64
+ errors: {},
65
+ isProcessing: false,
66
+ currentLanguage: initialLanguage,
67
+ showCustomStepper: true,
68
+ });
69
+
70
+ // Composant actuel
71
+ const currentComponent = useMemo(() => {
72
+ return template.components[state.currentComponentIndex] || null;
73
+ }, [template.components, state.currentComponentIndex]);
74
+
75
+ // Progression du flux
76
+ const progress = useMemo(() => {
77
+ return template.components.length > 0
78
+ ? ((state.currentComponentIndex + 1) / template.components.length) * 100
79
+ : 0;
80
+ }, [state.currentComponentIndex, template.components.length]);
81
+
82
+ // Vérifications de navigation
83
+ const canGoNext = useMemo(() => {
84
+ return state.currentComponentIndex < template.components.length - 1;
85
+ }, [state.currentComponentIndex, template.components.length]);
86
+
87
+ const canGoPrevious = useMemo(() => {
88
+ return state.currentComponentIndex > 0;
89
+ }, [state.currentComponentIndex]);
90
+
91
+ const isComplete = useMemo(() => {
92
+ return state.currentComponentIndex === template.components.length - 1 &&
93
+ state.completedComponents.length === template.components.length;
94
+ }, [state.currentComponentIndex, state.completedComponents.length, template.components.length]);
95
+
96
+ // Fonction pour obtenir le texte localisé
97
+ const getLocalizedText = useCallback((text: { en: string; fr: string; [key: string]: string }): string => {
98
+ return text[state.currentLanguage] || text.en || '';
99
+ }, [state.currentLanguage]);
100
+
101
+ // Validation d'un composant
102
+ const validateComponent = useCallback((componentId: number): boolean => {
103
+ const component = template.components.find(c => c.id === componentId);
104
+ if (!component) return false;
105
+
106
+ const componentData = state.componentData[componentId];
107
+
108
+ switch (component.type) {
109
+ case 'id_card':
110
+ // Vérifier si au moins un côté a été capturé
111
+ return componentData && Object.keys(componentData).length > 0;
112
+
113
+ case 'selfie':
114
+ // Vérifier si toutes les orientations ont été capturées
115
+ const config = component.config as any;
116
+ const orientations = config.orientations || ['front'];
117
+ return componentData && orientations.every((orientation: string) => componentData[orientation]);
118
+
119
+ case 'file_upload':
120
+ // Vérifier si un fichier a été uploadé
121
+ return componentData && componentData.file;
122
+
123
+ case 'location':
124
+ // Vérifier si la localisation a été obtenue
125
+ return componentData && componentData.latitude && componentData.longitude;
126
+
127
+ case 'country_selection':
128
+ // Vérifier si un pays a été sélectionné
129
+ return componentData && componentData.country;
130
+
131
+ default:
132
+ return false;
133
+ }
134
+ }, [template.components, state.componentData]);
135
+
136
+ // Actions du flux
137
+ const actions: TemplateActions = {
138
+ // Initialiser le template
139
+ initializeTemplate: useCallback((newTemplate: KYCTemplate) => {
140
+ setState(prev => ({
141
+ ...prev,
142
+ template: newTemplate,
143
+ currentComponentIndex: 0,
144
+ completedComponents: [],
145
+ componentData: {},
146
+ errors: {},
147
+ isProcessing: false,
148
+ }));
149
+ }, []),
150
+
151
+ // Passer au composant suivant
152
+ nextComponent: useCallback(() => {
153
+ if (!canGoNext) return;
154
+
155
+ const currentComp = template.components[state.currentComponentIndex];
156
+ if (!currentComp) return;
157
+
158
+ // Valider le composant actuel
159
+ if (!validateComponent(currentComp.id)) {
160
+ setState(prev => ({
161
+ ...prev,
162
+ errors: {
163
+ ...prev.errors,
164
+ [currentComp.id]: 'Veuillez compléter cette étape avant de continuer'
165
+ }
166
+ }));
167
+ return;
168
+ }
169
+
170
+ // Marquer comme complété et passer au suivant
171
+ setState(prev => ({
172
+ ...prev,
173
+ currentComponentIndex: prev.currentComponentIndex + 1,
174
+ completedComponents: [...prev.completedComponents, currentComp.id],
175
+ errors: {
176
+ ...prev.errors,
177
+ [currentComp.id]: ''
178
+ }
179
+ }));
180
+
181
+
182
+ }, [canGoNext, state.currentComponentIndex, template.components, validateComponent]),
183
+
184
+ // Retourner au composant précédent
185
+ previousComponent: useCallback(() => {
186
+ if (!canGoPrevious) return;
187
+
188
+ setState(prev => ({
189
+ ...prev,
190
+ currentComponentIndex: prev.currentComponentIndex - 1,
191
+ }));
192
+ }, [canGoPrevious]),
193
+
194
+ // Aller à un composant spécifique
195
+ goToComponent: useCallback((componentId: number) => {
196
+ const componentIndex = template.components.findIndex(c => c.id === componentId);
197
+ if (componentIndex !== -1) {
198
+ setState(prev => ({
199
+ ...prev,
200
+ currentComponentIndex: componentIndex,
201
+ }));
202
+ }
203
+ }, [template.components]),
204
+
205
+ // Mettre à jour les données d'un composant
206
+ updateComponentData: useCallback((componentId: number, data: any) => {
207
+ setState(prev => ({
208
+ ...prev,
209
+ componentData: {
210
+ ...prev.componentData,
211
+ [componentId]: data
212
+ },
213
+ errors: {
214
+ ...prev.errors,
215
+ [componentId]: ''
216
+ }
217
+ }));
218
+
219
+ }, []),
220
+
221
+ // Valider un composant
222
+ validateComponent: useCallback((componentId: number) => {
223
+ return validateComponent(componentId);
224
+ }, [validateComponent]),
225
+
226
+ // Soumettre le template complet
227
+ submitTemplate: useCallback(async () => {
228
+ if (!isComplete) {
229
+ onError?.('Le flux KYC n\'est pas encore terminé');
230
+ return;
231
+ }
232
+
233
+ setState(prev => ({ ...prev, isProcessing: true }));
234
+
235
+ try {
236
+ // Vérifier que tous les composants sont validés
237
+ const allValid = template.components.every(comp => validateComponent(comp.id));
238
+
239
+ if (!allValid) {
240
+ throw new Error('Certaines étapes ne sont pas complètes');
241
+ }
242
+
243
+ // Appeler le callback de completion
244
+ onComplete?.(state.componentData);
245
+
246
+ setState(prev => ({ ...prev, isProcessing: false }));
247
+ } catch (error) {
248
+ setState(prev => ({ ...prev, isProcessing: false }));
249
+ onError?.(error instanceof Error ? error.message : 'Erreur lors de la soumission');
250
+ }
251
+ }, [isComplete, template.components, validateComponent, state.componentData, onComplete, onError]),
252
+
253
+ // Réinitialiser le template
254
+ resetTemplate: useCallback(() => {
255
+ setState(prev => ({
256
+ ...prev,
257
+ currentComponentIndex: 0,
258
+ completedComponents: [],
259
+ componentData: {},
260
+ errors: {},
261
+ isProcessing: false,
262
+ }));
263
+ }, []),
264
+
265
+ // Changer la langue
266
+ setLanguage: useCallback((language: string) => {
267
+ setState(prev => ({
268
+ ...prev,
269
+ currentLanguage: language,
270
+ }));
271
+ }, []),
272
+
273
+ // Afficher le stepper personnalisé
274
+ showCustomStepper: useCallback((show: boolean) => {
275
+ setState(prev => ({
276
+ ...prev,
277
+ showCustomStepper: show,
278
+ }));
279
+ }, []),
280
+ };
281
+
282
+ return {
283
+ state,
284
+ actions,
285
+ currentComponent,
286
+ progress,
287
+ canGoNext,
288
+ canGoPrevious,
289
+ isComplete,
290
+ getLocalizedText,
291
+ };
292
+ };
package/src/index.ts ADDED
@@ -0,0 +1,72 @@
1
+
2
+ // Reexport the native module. On web, it will be resolved to TransfergratisSdkModule.web.ts
3
+ // and on native platforms to TransfergratisSdkModule.ts
4
+ export { default } from './TransfergratisSdkModule';
5
+ export { default as TransfergratisSdkView } from './TransfergratisSdkView';
6
+ export * from './TransfergratisSdk.types';
7
+
8
+ // Export KYC Flow - Main component
9
+ export { default as LauchTransferGratisKYC } from './App';
10
+
11
+ // Export KYC types
12
+ export * from './types/KYC.types';
13
+
14
+ // Export Camera Modules (Legacy + Vision Camera + Web)
15
+ export { default as NativeCameraModule } from './modules/camera/NativeCameraModule';
16
+ export { default as VisionCameraModule } from './modules/camera/VisionCameraModule';
17
+ export { default as UnifiedCameraModule } from './modules/camera/UnifiedCameraModule';
18
+
19
+ // Export Camera Components
20
+ export { NativeCameraView } from './components/NativeCameraView'; // Legacy
21
+ export { VisionCameraView } from './components/VisionCameraView';
22
+ export { EnhancedCameraView } from './components/EnhancedCameraView';
23
+
24
+ // Export KYC Components
25
+ export { SelfieCapture } from './components/SelfieCapture';
26
+ export { FileUpload } from './components/FileUpload';
27
+ export { CustomCameraExample } from './components/CustomCameraExample';
28
+
29
+ // Export Orientation Video Processing Components
30
+ export { default as OrientationVideoCapture } from './components/KYCElements/OrientationVideoCapture';
31
+ export { default as OrientationVideoCaptureEnhanced } from './components/KYCElements/OrientationVideoCaptureEnhanced';
32
+ export { default as OrientationVideoCaptureFinal } from './components/KYCElements/OrientationVideoCaptureFinal';
33
+ export { default as OrientationVideoExample } from './components/example/OrientationVideoExample';
34
+
35
+ // Export Template-based KYC Components
36
+ export { TemplateKYCFlow } from './components/TemplateKYCFlowRefactored';
37
+ export { TemplateKYCExample } from './components/TemplateKYCExample';
38
+ export { useTemplateKYCFlow, TemplateKYCFlowProvider, useTemplateKYCFlowContext } from './hooks/useTemplateKYCFlow';
39
+ export { IDCardCapture } from './components/KYCElements/IDCardCapture';
40
+ export { SelfieCaptureTemplate } from './components/KYCElements/SelfieCaptureTemplate';
41
+ export { FileUploadTemplate } from './components/KYCElements/FileUploadTemplate';
42
+ export { LocationCaptureTemplate } from './components/KYCElements/LocationCaptureTemplate';
43
+ export { CountrySelectionTemplate } from './components/KYCElements/CountrySelectionTemplate';
44
+
45
+ // Export KYC Service
46
+ export { default as KYCService } from './modules/api/KYCService';
47
+
48
+ // Export Hooks
49
+ export { default as useOrientationVideo } from './hooks/useOrientationVideo';
50
+ export { default as useLocation } from './hooks/useLocation';
51
+ export type { LocationData, LocationError, UseLocationOptions, UseLocationReturn } from './hooks/useLocation';
52
+
53
+ // UI Components
54
+ export {
55
+ Button,
56
+ PrimaryButton,
57
+ SecondaryButton,
58
+ OutlineButton,
59
+ GhostButton,
60
+ DangerButton,
61
+ SuccessButton,
62
+ WarningButton,
63
+ SmallButton,
64
+ LargeButton,
65
+ BackButton,
66
+ NextButton,
67
+ SubmitButton,
68
+ CancelButton,
69
+ buttonIcons
70
+ } from './components/ui/Button';
71
+ export { buttonStyles, colors, shadows, buttonTextColors, iconSizes, buttonSpacing } from './components/ui/ButtonStyles';
72
+ export { default as ButtonExample } from './components/ui/ButtonExample';
@@ -0,0 +1,171 @@
1
+ import axios from 'axios';
2
+ import { OrientationVideoResponse } from '../../types/KYC.types';
3
+
4
+ export interface KYCRequest {
5
+ userId: string;
6
+ documentImage: string;
7
+ selfieImage: string;
8
+ documentType: 'passport' | 'id_card' | 'drivers_license';
9
+ }
10
+
11
+ export interface KYCResponse {
12
+ success: boolean;
13
+ verificationId: string;
14
+ status: 'pending' | 'approved' | 'rejected';
15
+ message?: string;
16
+ }
17
+
18
+ export interface FaceDetectionRequest {
19
+ selfieImage: string;
20
+ documentImage: string;
21
+ }
22
+
23
+ export interface FaceDetectionResponse {
24
+ match: boolean;
25
+ confidence: number;
26
+ message: string;
27
+ }
28
+
29
+ export class KYCService {
30
+ private baseURL: string;
31
+ private apiKey: string;
32
+
33
+ constructor(baseURL: string, apiKey: string) {
34
+ this.baseURL = baseURL;
35
+ this.apiKey = apiKey;
36
+ }
37
+
38
+ private getHeaders() {
39
+ return {
40
+ 'Authorization': `Bearer ${this.apiKey}`,
41
+ 'Content-Type': 'application/json',
42
+ };
43
+ }
44
+
45
+ async submitKYC(data: KYCRequest): Promise<KYCResponse> {
46
+ try {
47
+ const response = await axios.post(
48
+ `${this.baseURL}/kyc/submit`,
49
+ data,
50
+ { headers: this.getHeaders() }
51
+ );
52
+ return response.data;
53
+ } catch (error) {
54
+ console.error('Error submitting KYC:', error);
55
+ throw error;
56
+ }
57
+ }
58
+
59
+ async detectFace(data: FaceDetectionRequest): Promise<FaceDetectionResponse> {
60
+ try {
61
+ const response = await axios.post(
62
+ `${this.baseURL}/ai/face-detection`,
63
+ data,
64
+ { headers: this.getHeaders() }
65
+ );
66
+ return response.data;
67
+ } catch (error) {
68
+ console.error('Error detecting face:', error);
69
+ throw error;
70
+ }
71
+ }
72
+
73
+ async validateDocument(documentImage: string, documentType: string): Promise<any> {
74
+ try {
75
+ const response = await axios.post(
76
+ `${this.baseURL}/ai/document-validation`,
77
+ { documentImage, documentType },
78
+ { headers: this.getHeaders() }
79
+ );
80
+ return response.data;
81
+ } catch (error) {
82
+ console.error('Error validating document:', error);
83
+ throw error;
84
+ }
85
+ }
86
+
87
+ async getKYCStatus(verificationId: string): Promise<KYCResponse> {
88
+ try {
89
+ const response = await axios.get(
90
+ `${this.baseURL}/kyc/status/${verificationId}`,
91
+ { headers: this.getHeaders() }
92
+ );
93
+ return response.data;
94
+ } catch (error) {
95
+ console.error('Error getting KYC status:', error);
96
+ throw error;
97
+ }
98
+ }
99
+
100
+ async processOrientationVideo(videoFile: string): Promise<OrientationVideoResponse> {
101
+ try {
102
+ // Create FormData for multipart/form-data request
103
+ const formData = new FormData();
104
+
105
+ // Convert base64 to blob if needed, or use file path
106
+ let fileData;
107
+ if (videoFile.startsWith('data:') || videoFile.startsWith('file://')) {
108
+ // Handle base64 or file URI
109
+ if (videoFile.startsWith('data:')) {
110
+ const response = await fetch(videoFile);
111
+ fileData = await response.blob();
112
+ } else {
113
+ // For file:// URIs, we need to handle this differently
114
+ // This is a simplified approach - in a real implementation,
115
+ // you might need platform-specific handling
116
+ const response = await fetch(videoFile);
117
+ fileData = await response.blob();
118
+ }
119
+ } else {
120
+ // Assume it's already a blob or file object
121
+ fileData = videoFile as any;
122
+ }
123
+
124
+ formData.append('file', fileData, 'orientation_video.mp4');
125
+
126
+ const response = await axios.post(
127
+ `${this.baseURL}/process_orientation_video_stream/`,
128
+ formData,
129
+ {
130
+ headers: {
131
+ // 'Authorization': `Bearer ${this.apiKey}`,
132
+ 'Content-Type': 'multipart/form-data',
133
+ }
134
+ }
135
+ );
136
+
137
+ return {
138
+ success: true,
139
+ data: response.data,
140
+ message: 'Orientation video processed successfully'
141
+ };
142
+ } catch (error: any) {
143
+ console.error('Error processing orientation video:', JSON.stringify(error, null, 2));
144
+
145
+ // Handle specific error cases
146
+ if (error.response?.status === 503) {
147
+ return {
148
+ success: false,
149
+ error: {
150
+ code: 'SERVICE_UNAVAILABLE',
151
+ message: 'Service not ready, model not initialized.',
152
+ details: error.response.data
153
+ },
154
+ message: 'Service temporarily unavailable'
155
+ };
156
+ }
157
+
158
+ return {
159
+ success: false,
160
+ error: {
161
+ code: 'PROCESSING_ERROR',
162
+ message: error.response?.data?.detail || error.message || 'Unknown error occurred',
163
+ details: error.response?.data
164
+ },
165
+ message: 'Failed to process orientation video'
166
+ };
167
+ }
168
+ }
169
+ }
170
+
171
+ export default KYCService;
@@ -0,0 +1,170 @@
1
+ import { NativeEventEmitter, Platform } from "react-native";
2
+ import TransfergratisSdkModule from "../../TransfergratisSdkModule";
3
+
4
+
5
+ export interface CameraCaptureResult {
6
+ success: boolean;
7
+ path?: string;
8
+ error?: string;
9
+ }
10
+
11
+ export interface FilePickerResult {
12
+ success: boolean;
13
+ uri?: string;
14
+ path?: string;
15
+ error?: string;
16
+ }
17
+
18
+ export class NativeCameraModule {
19
+ private eventEmitter: NativeEventEmitter | null = null;
20
+
21
+ /**
22
+ * Test simple du module natif
23
+ */
24
+ async testModule(): Promise<string> {
25
+ try {
26
+ if (!TransfergratisSdkModule) {
27
+ console.warn('TransfergratisSdk native module not available');
28
+ return 'Module not available';
29
+ }
30
+ return await TransfergratisSdkModule.testModule();
31
+ } catch (error) {
32
+ console.error('Error testing module:', error);
33
+ return 'Test failed';
34
+ }
35
+ }
36
+
37
+ constructor() {
38
+ console.log('NativeCameraModule constructor called');
39
+ console.log('Platform:', Platform.OS);
40
+
41
+ // Vérifier que le module natif est disponible
42
+ if (TransfergratisSdkModule) {
43
+ console.log('TransfergratisSdk module found, creating event emitter');
44
+ try {
45
+ // this.eventEmitter = new NativeEventEmitter(TransfergratisSdkModule as unknown as NativeModule);
46
+ console.log('Event emitter created successfully');
47
+ } catch (error) {
48
+ console.error('Error creating event emitter:', error);
49
+ this.eventEmitter = null;
50
+ }
51
+ } else {
52
+ console.warn('TransfergratisSdk native module not available');
53
+ }
54
+ }
55
+
56
+ /**
57
+ * Demande les permissions de caméra
58
+ */
59
+ async requestCameraPermission(): Promise<boolean> {
60
+ console.log('requestCameraPermission');
61
+
62
+ try {
63
+ if (!TransfergratisSdkModule) {
64
+ console.warn('TransfergratisSdk native module not available');
65
+ return false;
66
+ }
67
+ return await TransfergratisSdkModule.requestCameraPermission();
68
+ } catch (error) {
69
+ console.error('Error requesting camera permission:', error);
70
+ return false;
71
+ }
72
+ }
73
+
74
+ /**
75
+ * Ouvre la caméra avec des instructions personnalisées
76
+ */
77
+ async openCameraWithInstructions(instructions: string): Promise<CameraCaptureResult> {
78
+ try {
79
+ if (!TransfergratisSdkModule) {
80
+ console.warn('TransfergratisSdk native module not available');
81
+ return {
82
+ success: false,
83
+ error: 'Native module not available'
84
+ };
85
+ }
86
+
87
+ const hasPermission = await this.requestCameraPermission();
88
+ if (!hasPermission) {
89
+ return {
90
+ success: false,
91
+ error: 'Camera permission not granted'
92
+ };
93
+ }
94
+
95
+ const result = await TransfergratisSdkModule.openCameraWithInstructions(instructions);
96
+ return {
97
+ success: result.success,
98
+ path: result.path
99
+ };
100
+ } catch (error) {
101
+ console.error('Error opening camera:', error);
102
+ return {
103
+ success: false,
104
+ error: error instanceof Error ? error.message : 'Unknown error'
105
+ };
106
+ }
107
+ }
108
+
109
+ /**
110
+ * Ouvre le sélecteur de fichiers
111
+ */
112
+ async openFilePicker(allowedTypes: string[] = ['*/*']): Promise<FilePickerResult> {
113
+ try {
114
+ if (!TransfergratisSdkModule) {
115
+ console.warn('TransfergratisSdk native module not available');
116
+ return {
117
+ success: false,
118
+ error: 'Native module not available'
119
+ };
120
+ }
121
+ const result = await TransfergratisSdkModule.openFilePicker(allowedTypes);
122
+ return {
123
+ success: result.success,
124
+ uri: result.uri,
125
+ path: result.path
126
+ };
127
+ } catch (error) {
128
+ console.error('Error opening file picker:', error);
129
+ return {
130
+ success: false,
131
+ error: error instanceof Error ? error.message : 'Unknown error'
132
+ };
133
+ }
134
+ }
135
+
136
+ /**
137
+ * Écoute les événements de la caméra
138
+ */
139
+ onCameraCapture(callback: (event: any) => void) {
140
+ if (!this.eventEmitter) {
141
+ console.warn('EventEmitter not available');
142
+ return { remove: () => {} };
143
+ }
144
+ return this.eventEmitter.addListener('onCameraCapture', callback);
145
+ }
146
+
147
+ /**
148
+ * Écoute les événements de sélection de fichiers
149
+ */
150
+ onFileSelected(callback: (event: any) => void) {
151
+ if (!this.eventEmitter) {
152
+ console.warn('EventEmitter not available');
153
+ return { remove: () => {} };
154
+ }
155
+ return this.eventEmitter.addListener('onFileSelected', callback);
156
+ }
157
+
158
+ /**
159
+ * Écoute les erreurs
160
+ */
161
+ onError(callback: (event: any) => void) {
162
+ if (!this.eventEmitter) {
163
+ console.warn('EventEmitter not available');
164
+ return { remove: () => {} };
165
+ }
166
+ return this.eventEmitter.addListener('onError', callback);
167
+ }
168
+ }
169
+
170
+ export default new NativeCameraModule();