@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.
- package/README.md +539 -0
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/config.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/gradle.xml +14 -0
- package/android/.idea/migrations.xml +10 -0
- package/android/.idea/misc.xml +9 -0
- package/android/.idea/runConfigurations.xml +17 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/build/.transforms/7ec900c0f64f5f1a7c88998dd44001b8/results.bin +1 -0
- package/android/build/.transforms/7ec900c0f64f5f1a7c88998dd44001b8/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/results.bin +1 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/BuildConfig.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$1.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$2.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkView.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/kyc/transfergratis/com/BuildConfig.java +10 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +35 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +1 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/xml_file_paths.xml.flat +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +2 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/transfergratis-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/kyc/transfergratis/com/BuildConfig.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +3 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +58 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +35 -0
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- package/android/build/intermediates/packaged_res/debug/packageDebugResources/xml/file_paths.xml +15 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/transfergratis-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.class +0 -0
- 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
- 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
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +2 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +63 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/transfergratis-sdk_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkView.class +0 -0
- package/android/build.gradle +47 -0
- package/android/local.properties +8 -0
- package/android/src/main/AndroidManifest.xml +28 -0
- package/android/src/main/java/kyc/transfergratis/com/TransfergratisSdkModule.kt +131 -0
- package/android/src/main/java/kyc/transfergratis/com/TransfergratisSdkView.kt +161 -0
- package/android/src/main/res/xml/file_paths.xml +15 -0
- package/build/App.d.ts +3 -0
- package/build/App.d.ts.map +1 -0
- package/build/App.js +9 -0
- package/build/App.js.map +1 -0
- package/build/TransfergratisSdk.types.d.ts +32 -0
- package/build/TransfergratisSdk.types.d.ts.map +1 -0
- package/build/TransfergratisSdk.types.js +2 -0
- package/build/TransfergratisSdk.types.js.map +1 -0
- package/build/TransfergratisSdkModule.d.ts +21 -0
- package/build/TransfergratisSdkModule.d.ts.map +1 -0
- package/build/TransfergratisSdkModule.js +4 -0
- package/build/TransfergratisSdkModule.js.map +1 -0
- package/build/TransfergratisSdkModule.web.d.ts +20 -0
- package/build/TransfergratisSdkModule.web.d.ts.map +1 -0
- package/build/TransfergratisSdkModule.web.js +25 -0
- package/build/TransfergratisSdkModule.web.js.map +1 -0
- package/build/TransfergratisSdkView.d.ts +4 -0
- package/build/TransfergratisSdkView.d.ts.map +1 -0
- package/build/TransfergratisSdkView.js +7 -0
- package/build/TransfergratisSdkView.js.map +1 -0
- package/build/TransfergratisSdkView.web.d.ts +4 -0
- package/build/TransfergratisSdkView.web.d.ts.map +1 -0
- package/build/TransfergratisSdkView.web.js +11 -0
- package/build/TransfergratisSdkView.web.js.map +1 -0
- package/build/components/Camera/index.d.ts +2 -0
- package/build/components/Camera/index.d.ts.map +1 -0
- package/build/components/Camera/index.js +2 -0
- package/build/components/Camera/index.js.map +1 -0
- package/build/components/Camera/index.web.d.ts +2 -0
- package/build/components/Camera/index.web.d.ts.map +1 -0
- package/build/components/Camera/index.web.js +2 -0
- package/build/components/Camera/index.web.js.map +1 -0
- package/build/components/Camera/types.d.ts +2 -0
- package/build/components/Camera/types.d.ts.map +1 -0
- package/build/components/Camera/types.js +2 -0
- package/build/components/Camera/types.js.map +1 -0
- package/build/components/ConfigurableKYCFlow.d.ts +11 -0
- package/build/components/ConfigurableKYCFlow.d.ts.map +1 -0
- package/build/components/ConfigurableKYCFlow.js +257 -0
- package/build/components/ConfigurableKYCFlow.js.map +1 -0
- package/build/components/CustomCameraExample.d.ts +10 -0
- package/build/components/CustomCameraExample.d.ts.map +1 -0
- package/build/components/CustomCameraExample.js +232 -0
- package/build/components/CustomCameraExample.js.map +1 -0
- package/build/components/EnhancedCameraView.d.ts +44 -0
- package/build/components/EnhancedCameraView.d.ts.map +1 -0
- package/build/components/EnhancedCameraView.js +316 -0
- package/build/components/EnhancedCameraView.js.map +1 -0
- package/build/components/EnhancedCameraView.web.d.ts +44 -0
- package/build/components/EnhancedCameraView.web.d.ts.map +1 -0
- package/build/components/EnhancedCameraView.web.js +399 -0
- package/build/components/EnhancedCameraView.web.js.map +1 -0
- package/build/components/FileUpload.d.ts +13 -0
- package/build/components/FileUpload.d.ts.map +1 -0
- package/build/components/FileUpload.js +216 -0
- package/build/components/FileUpload.js.map +1 -0
- package/build/components/KYCElementRenderer.d.ts +14 -0
- package/build/components/KYCElementRenderer.d.ts.map +1 -0
- package/build/components/KYCElementRenderer.js +31 -0
- package/build/components/KYCElementRenderer.js.map +1 -0
- package/build/components/KYCElements/CameraCapture.d.ts +11 -0
- package/build/components/KYCElements/CameraCapture.d.ts.map +1 -0
- package/build/components/KYCElements/CameraCapture.js +218 -0
- package/build/components/KYCElements/CameraCapture.js.map +1 -0
- package/build/components/KYCElements/CompletionStep.d.ts +10 -0
- package/build/components/KYCElements/CompletionStep.d.ts.map +1 -0
- package/build/components/KYCElements/CompletionStep.js +147 -0
- package/build/components/KYCElements/CompletionStep.js.map +1 -0
- package/build/components/KYCElements/CountrySelection.d.ts +11 -0
- package/build/components/KYCElements/CountrySelection.d.ts.map +1 -0
- package/build/components/KYCElements/CountrySelection.js +147 -0
- package/build/components/KYCElements/CountrySelection.js.map +1 -0
- package/build/components/KYCElements/CountrySelectionTemplate.d.ts +12 -0
- package/build/components/KYCElements/CountrySelectionTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/CountrySelectionTemplate.js +245 -0
- package/build/components/KYCElements/CountrySelectionTemplate.js.map +1 -0
- package/build/components/KYCElements/DocumentTypeSelection.d.ts +11 -0
- package/build/components/KYCElements/DocumentTypeSelection.d.ts.map +1 -0
- package/build/components/KYCElements/DocumentTypeSelection.js +143 -0
- package/build/components/KYCElements/DocumentTypeSelection.js.map +1 -0
- package/build/components/KYCElements/FileUpload.d.ts +11 -0
- package/build/components/KYCElements/FileUpload.d.ts.map +1 -0
- package/build/components/KYCElements/FileUpload.js +267 -0
- package/build/components/KYCElements/FileUpload.js.map +1 -0
- package/build/components/KYCElements/FileUploadTemplate.d.ts +12 -0
- package/build/components/KYCElements/FileUploadTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/FileUploadTemplate.js +326 -0
- package/build/components/KYCElements/FileUploadTemplate.js.map +1 -0
- package/build/components/KYCElements/IDCardCapture.d.ts +13 -0
- package/build/components/KYCElements/IDCardCapture.d.ts.map +1 -0
- package/build/components/KYCElements/IDCardCapture.js +421 -0
- package/build/components/KYCElements/IDCardCapture.js.map +1 -0
- package/build/components/KYCElements/LocationCaptureTemplate.d.ts +20 -0
- package/build/components/KYCElements/LocationCaptureTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/LocationCaptureTemplate.js +275 -0
- package/build/components/KYCElements/LocationCaptureTemplate.js.map +1 -0
- package/build/components/KYCElements/OrientationVideoCapture.d.ts +12 -0
- package/build/components/KYCElements/OrientationVideoCapture.d.ts.map +1 -0
- package/build/components/KYCElements/OrientationVideoCapture.js +533 -0
- package/build/components/KYCElements/OrientationVideoCapture.js.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts +12 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js +503 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts +12 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.js +429 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.js.map +1 -0
- package/build/components/KYCElements/SelfieCapture.d.ts +11 -0
- package/build/components/KYCElements/SelfieCapture.d.ts.map +1 -0
- package/build/components/KYCElements/SelfieCapture.js +235 -0
- package/build/components/KYCElements/SelfieCapture.js.map +1 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.d.ts +12 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.js +321 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.js.map +1 -0
- package/build/components/KYCElements/VerificationStep.d.ts +10 -0
- package/build/components/KYCElements/VerificationStep.d.ts.map +1 -0
- package/build/components/KYCElements/VerificationStep.js +199 -0
- package/build/components/KYCElements/VerificationStep.js.map +1 -0
- package/build/components/KYCExample.d.ts +3 -0
- package/build/components/KYCExample.d.ts.map +1 -0
- package/build/components/KYCExample.js +247 -0
- package/build/components/KYCExample.js.map +1 -0
- package/build/components/KYCFlow.d.ts +3 -0
- package/build/components/KYCFlow.d.ts.map +1 -0
- package/build/components/KYCFlow.js +308 -0
- package/build/components/KYCFlow.js.map +1 -0
- package/build/components/NativeCameraView.d.ts +11 -0
- package/build/components/NativeCameraView.d.ts.map +1 -0
- package/build/components/NativeCameraView.js +27 -0
- package/build/components/NativeCameraView.js.map +1 -0
- package/build/components/OverLay/IdCard.d.ts +4 -0
- package/build/components/OverLay/IdCard.d.ts.map +1 -0
- package/build/components/OverLay/IdCard.js +181 -0
- package/build/components/OverLay/IdCard.js.map +1 -0
- package/build/components/OverLay/SelfieOverlay.d.ts +4 -0
- package/build/components/OverLay/SelfieOverlay.d.ts.map +1 -0
- package/build/components/OverLay/SelfieOverlay.js +168 -0
- package/build/components/OverLay/SelfieOverlay.js.map +1 -0
- package/build/components/OverLay/StepOverlay.d.ts +9 -0
- package/build/components/OverLay/StepOverlay.d.ts.map +1 -0
- package/build/components/OverLay/StepOverlay.js +51 -0
- package/build/components/OverLay/StepOverlay.js.map +1 -0
- package/build/components/OverLay/type.d.ts +21 -0
- package/build/components/OverLay/type.d.ts.map +1 -0
- package/build/components/OverLay/type.js +2 -0
- package/build/components/OverLay/type.js.map +1 -0
- package/build/components/ProgressIndicator.d.ts +8 -0
- package/build/components/ProgressIndicator.d.ts.map +1 -0
- package/build/components/ProgressIndicator.js +48 -0
- package/build/components/ProgressIndicator.js.map +1 -0
- package/build/components/SelfieCapture.d.ts +3 -0
- package/build/components/SelfieCapture.d.ts.map +1 -0
- package/build/components/SelfieCapture.js +197 -0
- package/build/components/SelfieCapture.js.map +1 -0
- package/build/components/SimpleExample.d.ts +3 -0
- package/build/components/SimpleExample.d.ts.map +1 -0
- package/build/components/SimpleExample.js +89 -0
- package/build/components/SimpleExample.js.map +1 -0
- package/build/components/Svgs/GpsIcon.d.ts +3 -0
- package/build/components/Svgs/GpsIcon.d.ts.map +1 -0
- package/build/components/Svgs/GpsIcon.js +9 -0
- package/build/components/Svgs/GpsIcon.js.map +1 -0
- package/build/components/Svgs/Schield.d.ts +3 -0
- package/build/components/Svgs/Schield.d.ts.map +1 -0
- package/build/components/Svgs/Schield.js +22 -0
- package/build/components/Svgs/Schield.js.map +1 -0
- package/build/components/Svgs/frontSelfieIcon.d.ts +3 -0
- package/build/components/Svgs/frontSelfieIcon.d.ts.map +1 -0
- package/build/components/Svgs/frontSelfieIcon.js +11 -0
- package/build/components/Svgs/frontSelfieIcon.js.map +1 -0
- package/build/components/Svgs/scanningLine.d.ts +9 -0
- package/build/components/Svgs/scanningLine.d.ts.map +1 -0
- package/build/components/Svgs/scanningLine.js +61 -0
- package/build/components/Svgs/scanningLine.js.map +1 -0
- package/build/components/Svgs/sideSelfieIcon.d.ts +3 -0
- package/build/components/Svgs/sideSelfieIcon.d.ts.map +1 -0
- package/build/components/Svgs/sideSelfieIcon.js +9 -0
- package/build/components/Svgs/sideSelfieIcon.js.map +1 -0
- package/build/components/TemplateKYCExample.d.ts +7 -0
- package/build/components/TemplateKYCExample.d.ts.map +1 -0
- package/build/components/TemplateKYCExample.js +433 -0
- package/build/components/TemplateKYCExample.js.map +1 -0
- package/build/components/TemplateKYCFlowRefactored.d.ts +12 -0
- package/build/components/TemplateKYCFlowRefactored.d.ts.map +1 -0
- package/build/components/TemplateKYCFlowRefactored.js +210 -0
- package/build/components/TemplateKYCFlowRefactored.js.map +1 -0
- package/build/components/VisionCameraView.d.ts +22 -0
- package/build/components/VisionCameraView.d.ts.map +1 -0
- package/build/components/VisionCameraView.js +142 -0
- package/build/components/VisionCameraView.js.map +1 -0
- package/build/components/example/CameraCaptureEx.d.ts +4 -0
- package/build/components/example/CameraCaptureEx.d.ts.map +1 -0
- package/build/components/example/CameraCaptureEx.js +219 -0
- package/build/components/example/CameraCaptureEx.js.map +1 -0
- package/build/components/example/CameraCaptureExAdvanced.d.ts +3 -0
- package/build/components/example/CameraCaptureExAdvanced.d.ts.map +1 -0
- package/build/components/example/CameraCaptureExAdvanced.js +229 -0
- package/build/components/example/CameraCaptureExAdvanced.js.map +1 -0
- package/build/components/example/CameraCaptureExScan.d.ts +3 -0
- package/build/components/example/CameraCaptureExScan.d.ts.map +1 -0
- package/build/components/example/CameraCaptureExScan.js +213 -0
- package/build/components/example/CameraCaptureExScan.js.map +1 -0
- package/build/components/example/CameraCaptureExSimple.d.ts +3 -0
- package/build/components/example/CameraCaptureExSimple.d.ts.map +1 -0
- package/build/components/example/CameraCaptureExSimple.js +138 -0
- package/build/components/example/CameraCaptureExSimple.js.map +1 -0
- package/build/components/example/OrientationVideoExample.d.ts +4 -0
- package/build/components/example/OrientationVideoExample.d.ts.map +1 -0
- package/build/components/example/OrientationVideoExample.js +329 -0
- package/build/components/example/OrientationVideoExample.js.map +1 -0
- package/build/components/example/SelfieCaptureEx.d.ts +4 -0
- package/build/components/example/SelfieCaptureEx.d.ts.map +1 -0
- package/build/components/example/SelfieCaptureEx.js +238 -0
- package/build/components/example/SelfieCaptureEx.js.map +1 -0
- package/build/components/ui/Button.d.ts +37 -0
- package/build/components/ui/Button.d.ts.map +1 -0
- package/build/components/ui/Button.js +194 -0
- package/build/components/ui/Button.js.map +1 -0
- package/build/components/ui/ButtonExample.d.ts +4 -0
- package/build/components/ui/ButtonExample.d.ts.map +1 -0
- package/build/components/ui/ButtonExample.js +209 -0
- package/build/components/ui/ButtonExample.js.map +1 -0
- package/build/components/ui/ButtonStyles.d.ts +521 -0
- package/build/components/ui/ButtonStyles.d.ts.map +1 -0
- package/build/components/ui/ButtonStyles.js +429 -0
- package/build/components/ui/ButtonStyles.js.map +1 -0
- package/build/config/KYCConfigs.d.ts +7 -0
- package/build/config/KYCConfigs.d.ts.map +1 -0
- package/build/config/KYCConfigs.js +516 -0
- package/build/config/KYCConfigs.js.map +1 -0
- package/build/hooks/useKYC.d.ts +15 -0
- package/build/hooks/useKYC.d.ts.map +1 -0
- package/build/hooks/useKYC.js +103 -0
- package/build/hooks/useKYC.js.map +1 -0
- package/build/hooks/useKYCFlow.d.ts +3 -0
- package/build/hooks/useKYCFlow.d.ts.map +1 -0
- package/build/hooks/useKYCFlow.js +221 -0
- package/build/hooks/useKYCFlow.js.map +1 -0
- package/build/hooks/useLocation.d.ts +32 -0
- package/build/hooks/useLocation.d.ts.map +1 -0
- package/build/hooks/useLocation.js +165 -0
- package/build/hooks/useLocation.js.map +1 -0
- package/build/hooks/useOrientationVideo.d.ts +10 -0
- package/build/hooks/useOrientationVideo.d.ts.map +1 -0
- package/build/hooks/useOrientationVideo.js +117 -0
- package/build/hooks/useOrientationVideo.js.map +1 -0
- package/build/hooks/useTemplateKYCFlow.d.ts +28 -0
- package/build/hooks/useTemplateKYCFlow.d.ts.map +1 -0
- package/build/hooks/useTemplateKYCFlow.js +221 -0
- package/build/hooks/useTemplateKYCFlow.js.map +1 -0
- package/build/index.d.ts +34 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +45 -0
- package/build/index.js.map +1 -0
- package/build/modules/api/KYCService.d.ts +35 -0
- package/build/modules/api/KYCService.d.ts.map +1 -0
- package/build/modules/api/KYCService.js +119 -0
- package/build/modules/api/KYCService.js.map +1 -0
- package/build/modules/camera/NativeCameraModule.d.ts +52 -0
- package/build/modules/camera/NativeCameraModule.d.ts.map +1 -0
- package/build/modules/camera/NativeCameraModule.js +149 -0
- package/build/modules/camera/NativeCameraModule.js.map +1 -0
- package/build/modules/camera/UnifiedCameraModule.d.ts +70 -0
- package/build/modules/camera/UnifiedCameraModule.d.ts.map +1 -0
- package/build/modules/camera/UnifiedCameraModule.js +125 -0
- package/build/modules/camera/UnifiedCameraModule.js.map +1 -0
- package/build/modules/camera/VisionCameraModule.d.ts +62 -0
- package/build/modules/camera/VisionCameraModule.d.ts.map +1 -0
- package/build/modules/camera/VisionCameraModule.js +198 -0
- package/build/modules/camera/VisionCameraModule.js.map +1 -0
- package/build/modules/camera/VisionCameraModule.web.d.ts +145 -0
- package/build/modules/camera/VisionCameraModule.web.d.ts.map +1 -0
- package/build/modules/camera/VisionCameraModule.web.js +570 -0
- package/build/modules/camera/VisionCameraModule.web.js.map +1 -0
- package/build/modules/camera/index.d.ts +5 -0
- package/build/modules/camera/index.d.ts.map +1 -0
- package/build/modules/camera/index.js +4 -0
- package/build/modules/camera/index.js.map +1 -0
- package/build/stores/kycStore.d.ts +55 -0
- package/build/stores/kycStore.d.ts.map +1 -0
- package/build/stores/kycStore.js +98 -0
- package/build/stores/kycStore.js.map +1 -0
- package/build/types/KYC.types.d.ts +326 -0
- package/build/types/KYC.types.d.ts.map +1 -0
- package/build/types/KYC.types.js +2 -0
- package/build/types/KYC.types.js.map +1 -0
- package/expo-module.config.json +9 -0
- package/ios/TransfergratisSdk.podspec +31 -0
- package/ios/TransfergratisSdkModule.swift +409 -0
- package/package.json +67 -0
- package/plugin/build/index.d.ts +4 -0
- package/plugin/build/index.js +10 -0
- package/plugin/build/withLocation.d.ts +9 -0
- package/plugin/build/withLocation.js +77 -0
- package/plugin/build/withVisionCamera.d.ts +8 -0
- package/plugin/build/withVisionCamera.js +69 -0
- package/plugin/src/index.ts +4 -0
- package/plugin/src/withLocation.ts +109 -0
- package/plugin/src/withVisionCamera.js +89 -0
- package/plugin/src/withVisionCamera.ts +98 -0
- package/plugin/tsconfig.json +17 -0
- package/plugin/tsconfig.tsbuildinfo +1 -0
- package/plugin.js +14 -0
- package/src/App.tsx +9 -0
- package/src/TransfergratisSdk.types.ts +30 -0
- package/src/TransfergratisSdkModule.ts +16 -0
- package/src/TransfergratisSdkModule.web.ts +31 -0
- package/src/TransfergratisSdkView.tsx +11 -0
- package/src/TransfergratisSdkView.web.tsx +15 -0
- package/src/components/Camera/index.tsx +0 -0
- package/src/components/Camera/index.web.tsx +0 -0
- package/src/components/Camera/types.ts +0 -0
- package/src/components/ConfigurableKYCFlow.tsx +334 -0
- package/src/components/CustomCameraExample.tsx +274 -0
- package/src/components/EnhancedCameraView.tsx +421 -0
- package/src/components/EnhancedCameraView.web.tsx +517 -0
- package/src/components/FileUpload.tsx +249 -0
- package/src/components/KYCElementRenderer.tsx +106 -0
- package/src/components/KYCElements/CameraCapture.tsx +267 -0
- package/src/components/KYCElements/CompletionStep.tsx +161 -0
- package/src/components/KYCElements/CountrySelection.tsx +177 -0
- package/src/components/KYCElements/CountrySelectionTemplate.tsx +282 -0
- package/src/components/KYCElements/DocumentTypeSelection.tsx +173 -0
- package/src/components/KYCElements/FileUpload.tsx +317 -0
- package/src/components/KYCElements/FileUploadTemplate.tsx +388 -0
- package/src/components/KYCElements/IDCardCapture.tsx +519 -0
- package/src/components/KYCElements/LocationCaptureTemplate.tsx +325 -0
- package/src/components/KYCElements/OrientationVideoCapture.tsx +646 -0
- package/src/components/KYCElements/OrientationVideoCaptureEnhanced.tsx +613 -0
- package/src/components/KYCElements/OrientationVideoCaptureFinal.tsx +531 -0
- package/src/components/KYCElements/SelfieCapture.tsx +283 -0
- package/src/components/KYCElements/SelfieCaptureTemplate.tsx +388 -0
- package/src/components/KYCElements/VerificationStep.tsx +234 -0
- package/src/components/KYCExample.tsx +297 -0
- package/src/components/KYCFlow.tsx +377 -0
- package/src/components/NativeCameraView.tsx +47 -0
- package/src/components/OverLay/IdCard.tsx +269 -0
- package/src/components/OverLay/SelfieOverlay.tsx +210 -0
- package/src/components/OverLay/StepOverlay.tsx +62 -0
- package/src/components/OverLay/type.ts +21 -0
- package/src/components/ProgressIndicator.tsx +62 -0
- package/src/components/SelfieCapture.tsx +244 -0
- package/src/components/SimpleExample.tsx +92 -0
- package/src/components/Svgs/GpsIcon.tsx +12 -0
- package/src/components/Svgs/Schield.tsx +26 -0
- package/src/components/Svgs/directionArrow.gif +0 -0
- package/src/components/Svgs/frontSelfieIcon.tsx +13 -0
- package/src/components/Svgs/scanningLine.tsx +88 -0
- package/src/components/Svgs/sideSelfieIcon.tsx +10 -0
- package/src/components/TemplateKYCExample.tsx +447 -0
- package/src/components/TemplateKYCFlowRefactored.tsx +263 -0
- package/src/components/VisionCameraView.tsx +197 -0
- package/src/components/example/CameraCaptureEx.tsx +335 -0
- package/src/components/example/CameraCaptureExAdvanced.tsx +357 -0
- package/src/components/example/CameraCaptureExScan.tsx +336 -0
- package/src/components/example/CameraCaptureExSimple.tsx +215 -0
- package/src/components/example/OrientationVideoExample.tsx +384 -0
- package/src/components/example/SelfieCaptureEx.tsx +358 -0
- package/src/components/ui/Button.tsx +328 -0
- package/src/components/ui/ButtonExample.tsx +318 -0
- package/src/components/ui/ButtonStyles.ts +465 -0
- package/src/config/KYCConfigs.ts +528 -0
- package/src/hooks/useKYC.ts +131 -0
- package/src/hooks/useKYCFlow.ts +248 -0
- package/src/hooks/useLocation.ts +221 -0
- package/src/hooks/useOrientationVideo.ts +148 -0
- package/src/hooks/useTemplateKYCFlow.tsx +292 -0
- package/src/index.ts +72 -0
- package/src/modules/api/KYCService.ts +171 -0
- package/src/modules/camera/NativeCameraModule.ts +170 -0
- package/src/modules/camera/UnifiedCameraModule.ts +160 -0
- package/src/modules/camera/VisionCameraModule.ts +217 -0
- package/src/modules/camera/VisionCameraModule.web.ts +661 -0
- package/src/modules/camera/index.ts +6 -0
- package/src/stores/kycStore.ts +161 -0
- package/src/types/KYC.types.ts +434 -0
- 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();
|