react-native-plaid-link-sdk 12.5.3 → 12.6.1

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 (294) hide show
  1. package/README.md +2 -0
  2. package/android/.gradle/8.1.1/checksums/checksums.lock +0 -0
  3. package/android/.gradle/8.1.1/checksums/md5-checksums.bin +0 -0
  4. package/android/.gradle/8.1.1/checksums/sha1-checksums.bin +0 -0
  5. package/android/.gradle/8.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  6. package/android/.gradle/8.1.1/dependencies-accessors/gc.properties +0 -0
  7. package/android/.gradle/8.1.1/executionHistory/executionHistory.bin +0 -0
  8. package/android/.gradle/8.1.1/executionHistory/executionHistory.lock +0 -0
  9. package/android/.gradle/8.1.1/fileHashes/fileHashes.bin +0 -0
  10. package/android/.gradle/8.1.1/fileHashes/fileHashes.lock +0 -0
  11. package/android/.gradle/8.1.1/fileHashes/resourceHashesCache.bin +0 -0
  12. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  13. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  14. package/android/.gradle/file-system.probe +0 -0
  15. package/android/build/.transforms/102278d013f9769e7703ddf5e4f97b8e/results.bin +1 -0
  16. package/android/build/.transforms/102278d013f9769e7703ddf5e4f97b8e/transformed/classes/classes_dex/classes.dex +0 -0
  17. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/results.bin +1 -0
  18. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerDelegate.dex +0 -0
  19. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerInterface.dex +0 -0
  20. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/ActivityResultHandler.dex +0 -0
  21. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/ActivityResultManager.dex +0 -0
  22. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/BuildConfig.dex +0 -0
  23. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/GlobalFunctionsKt.dex +0 -0
  24. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/NativePlaidLinkModuleAndroidSpec.dex +0 -0
  25. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/NativePlaidLinkModuleiOSSpec.dex +0 -0
  26. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PLKEmbeddedView.dex +0 -0
  27. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PLKEmbeddedViewManager$Companion.dex +0 -0
  28. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PLKEmbeddedViewManager.dex +0 -0
  29. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PlaidModule$Companion.dex +0 -0
  30. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PlaidModule.dex +0 -0
  31. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PlaidPackage$1.dex +0 -0
  32. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PlaidPackage$2.dex +0 -0
  33. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PlaidPackage.dex +0 -0
  34. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/gson/PlaidJsonConverter.dex +0 -0
  35. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/gson/RNAccountAdapter.dex +0 -0
  36. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/gson/RNEventMetadataAdapter.dex +0 -0
  37. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/gson/RNLinkInstitutionAdapter.dex +0 -0
  38. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  39. package/android/build/generated/source/buildConfig/debug/com/plaid/BuildConfig.java +12 -0
  40. package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerDelegate.java +35 -0
  41. package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerInterface.java +19 -0
  42. package/android/build/generated/source/codegen/java/com/plaid/NativePlaidLinkModuleAndroidSpec.java +64 -0
  43. package/android/build/generated/source/codegen/java/com/plaid/NativePlaidLinkModuleiOSSpec.java +63 -0
  44. package/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
  45. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/ComponentDescriptors.cpp +22 -0
  46. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/ComponentDescriptors.h +24 -0
  47. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/EventEmitters.cpp +28 -0
  48. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/EventEmitters.h +29 -0
  49. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/Props.cpp +52 -0
  50. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/Props.h +34 -0
  51. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/ShadowNodes.cpp +17 -0
  52. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/ShadowNodes.h +32 -0
  53. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/States.cpp +16 -0
  54. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/States.h +20 -0
  55. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/rnplaidlinkJSI-generated.cpp +149 -0
  56. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/rnplaidlinkJSI.h +233 -0
  57. package/android/build/generated/source/codegen/jni/rnplaidlink-generated.cpp +116 -0
  58. package/android/build/generated/source/codegen/jni/rnplaidlink.h +39 -0
  59. package/android/build/generated/source/codegen/schema.json +1 -0
  60. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +13 -0
  61. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  62. package/android/build/intermediates/aar_main_jar/debug/syncDebugLibJars/classes.jar +0 -0
  63. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  64. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  65. package/android/build/intermediates/annotations_typedef_file/debug/extractDebugAnnotations/typedefs.txt +0 -0
  66. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  67. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  68. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +2 -0
  69. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/layout_plk_embedded_view.xml.flat +0 -0
  70. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +2 -0
  71. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  72. package/android/build/intermediates/incremental/debug-mergeJavaRes/merge-state +0 -0
  73. package/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
  74. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  75. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  76. package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/react-native-plaid-link-sdk_debug.kotlin_module +0 -0
  77. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerDelegate.class +0 -0
  78. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerInterface.class +0 -0
  79. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/ActivityResultHandler.class +0 -0
  80. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/ActivityResultManager.class +0 -0
  81. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/BuildConfig.class +0 -0
  82. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/NativePlaidLinkModuleAndroidSpec.class +0 -0
  83. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/NativePlaidLinkModuleiOSSpec.class +0 -0
  84. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/PlaidPackage$1.class +0 -0
  85. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/PlaidPackage$2.class +0 -0
  86. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/PlaidPackage.class +0 -0
  87. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +4 -0
  88. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +17 -0
  89. package/android/build/intermediates/merged_java_res/debug/mergeDebugJavaResource/feature-react-native-plaid-link-sdk.jar +0 -0
  90. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +13 -0
  91. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  92. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  93. package/android/build/intermediates/packaged_res/debug/packageDebugResources/layout/plk_embedded_view.xml +5 -0
  94. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/react-native-plaid-link-sdk_debug.kotlin_module +0 -0
  95. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerDelegate.class +0 -0
  96. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerInterface.class +0 -0
  97. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/ActivityResultHandler.class +0 -0
  98. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/ActivityResultManager.class +0 -0
  99. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/BuildConfig.class +0 -0
  100. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/GlobalFunctionsKt.class +0 -0
  101. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/NativePlaidLinkModuleAndroidSpec.class +0 -0
  102. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/NativePlaidLinkModuleiOSSpec.class +0 -0
  103. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PLKEmbeddedView.class +0 -0
  104. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PLKEmbeddedViewManager$Companion.class +0 -0
  105. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PLKEmbeddedViewManager.class +0 -0
  106. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PlaidModule$Companion.class +0 -0
  107. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PlaidModule.class +0 -0
  108. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PlaidPackage$1.class +0 -0
  109. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PlaidPackage$2.class +0 -0
  110. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PlaidPackage.class +0 -0
  111. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/gson/PlaidJsonConverter.class +0 -0
  112. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/gson/RNAccountAdapter.class +0 -0
  113. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/gson/RNEventMetadataAdapter.class +0 -0
  114. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/gson/RNLinkInstitutionAdapter.class +0 -0
  115. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  116. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +3 -0
  117. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  118. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  119. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  120. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  121. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  122. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  123. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  124. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  125. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  126. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  127. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  128. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  129. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  130. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  131. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  132. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  133. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  134. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  135. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  136. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  137. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  138. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
  139. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
  140. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
  141. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
  142. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  143. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
  144. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
  145. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  146. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  147. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  148. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  149. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  150. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  151. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  152. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab +0 -0
  153. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream +0 -0
  154. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream.len +0 -0
  155. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.len +0 -0
  156. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.values.at +0 -0
  157. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i +0 -0
  158. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i.len +0 -0
  159. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  160. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  161. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  162. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  163. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  164. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  165. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  166. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  167. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  168. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  169. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  170. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  171. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  172. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  173. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  174. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  175. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  176. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  177. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  178. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  179. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  180. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  181. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  182. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  183. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  184. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  185. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  186. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  187. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
  188. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  189. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  190. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  191. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  192. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  193. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  194. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  195. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  196. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  197. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  198. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  199. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  200. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  201. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  202. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  203. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  204. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  205. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  206. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  207. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  208. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  209. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  210. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  211. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  212. package/android/build/outputs/aar/react-native-plaid-link-sdk-debug.aar +0 -0
  213. package/android/build/outputs/logs/manifest-merger-debug-report.txt +25 -0
  214. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  215. package/android/build/tmp/kotlin-classes/debug/META-INF/react-native-plaid-link-sdk_debug.kotlin_module +0 -0
  216. package/android/build/tmp/kotlin-classes/debug/com/plaid/GlobalFunctionsKt.class +0 -0
  217. package/android/build/tmp/kotlin-classes/debug/com/plaid/PLKEmbeddedView.class +0 -0
  218. package/android/build/tmp/kotlin-classes/debug/com/plaid/PLKEmbeddedViewManager$Companion.class +0 -0
  219. package/android/build/tmp/kotlin-classes/debug/com/plaid/PLKEmbeddedViewManager.class +0 -0
  220. package/android/build/tmp/kotlin-classes/debug/com/plaid/PlaidModule$Companion.class +0 -0
  221. package/android/build/tmp/kotlin-classes/debug/com/plaid/PlaidModule.class +0 -0
  222. package/android/build/tmp/kotlin-classes/debug/com/plaid/gson/PlaidJsonConverter.class +0 -0
  223. package/android/build/tmp/kotlin-classes/debug/com/plaid/gson/RNAccountAdapter.class +0 -0
  224. package/android/build/tmp/kotlin-classes/debug/com/plaid/gson/RNEventMetadataAdapter.class +0 -0
  225. package/android/build/tmp/kotlin-classes/debug/com/plaid/gson/RNLinkInstitutionAdapter.class +0 -0
  226. package/android/build.gradle +1 -1
  227. package/android/src/main/AndroidManifest.xml +1 -1
  228. package/android/src/main/java/com/plaid/PlaidModule.kt +2 -2
  229. package/android/src/main/java/com/plaid/gson/RNEventMetadataAdapter.kt +2 -0
  230. package/dist/Types.d.ts +0 -1
  231. package/dist/Types.js +4 -8
  232. package/dist/exampleRN76/App.d.ts +3 -0
  233. package/dist/exampleRN76/App.js +129 -0
  234. package/dist/exampleRN76/Styles.d.ts +63 -0
  235. package/dist/exampleRN76/Styles.js +47 -0
  236. package/dist/exampleRN76/__tests__/App.test.d.ts +4 -0
  237. package/dist/exampleRN76/__tests__/App.test.js +13 -0
  238. package/dist/exampleRN76/babel.config.d.ts +1 -0
  239. package/dist/exampleRN76/babel.config.js +4 -0
  240. package/dist/exampleRN76/index.d.ts +1 -0
  241. package/dist/exampleRN76/index.js +7 -0
  242. package/dist/exampleRN76/jest.config.d.ts +1 -0
  243. package/dist/exampleRN76/jest.config.js +4 -0
  244. package/dist/exampleRN76/metro.config.d.ts +2 -0
  245. package/dist/exampleRN76/metro.config.js +10 -0
  246. package/dist/exampleReactNative76/App.d.ts +2 -0
  247. package/dist/exampleReactNative76/App.js +134 -0
  248. package/dist/exampleReactNative76/Styles.d.ts +69 -0
  249. package/dist/exampleReactNative76/Styles.js +51 -0
  250. package/dist/exampleReactNative76/__tests__/App.test.d.ts +4 -0
  251. package/dist/exampleReactNative76/__tests__/App.test.js +13 -0
  252. package/dist/exampleReactNative76/babel.config.d.ts +1 -0
  253. package/dist/exampleReactNative76/babel.config.js +4 -0
  254. package/dist/exampleReactNative76/index.d.ts +1 -0
  255. package/dist/exampleReactNative76/index.js +7 -0
  256. package/dist/exampleReactNative76/jest.config.d.ts +1 -0
  257. package/dist/exampleReactNative76/jest.config.js +4 -0
  258. package/dist/exampleReactNative76/metro.config.d.ts +2 -0
  259. package/dist/exampleReactNative76/metro.config.js +10 -0
  260. package/dist/fabric/EmbeddedLinkViewNativeComponent.d.ts +0 -2
  261. package/dist/src/EmbeddedLink/EmbeddedLinkView.d.ts +13 -0
  262. package/dist/src/EmbeddedLink/EmbeddedLinkView.js +55 -0
  263. package/dist/src/EmbeddedLink/EmbeddedLinkView.web.d.ts +1 -0
  264. package/dist/src/EmbeddedLink/EmbeddedLinkView.web.js +1 -0
  265. package/dist/src/EmbeddedLink/NativeEmbeddedLinkView.d.ts +2 -0
  266. package/dist/src/EmbeddedLink/NativeEmbeddedLinkView.js +2 -0
  267. package/dist/src/PlaidLink.d.ts +27 -0
  268. package/dist/src/PlaidLink.js +124 -0
  269. package/dist/src/Types.d.ts +539 -0
  270. package/dist/src/Types.js +454 -0
  271. package/dist/src/__tests__/Types.tests.d.ts +1 -0
  272. package/dist/src/__tests__/Types.tests.js +14 -0
  273. package/dist/src/fabric/EmbeddedLinkViewNativeComponent.d.ts +17 -0
  274. package/dist/src/fabric/EmbeddedLinkViewNativeComponent.js +2 -0
  275. package/dist/src/fabric/NativePlaidLinkModuleAndroid.d.ts +14 -0
  276. package/dist/src/fabric/NativePlaidLinkModuleAndroid.js +4 -0
  277. package/dist/src/fabric/NativePlaidLinkModuleiOS.d.ts +15 -0
  278. package/dist/src/fabric/NativePlaidLinkModuleiOS.js +4 -0
  279. package/dist/src/fabric/fabricUtils.d.ts +1 -0
  280. package/dist/src/fabric/fabricUtils.js +1 -0
  281. package/dist/src/index.d.ts +4 -0
  282. package/dist/src/index.js +6 -0
  283. package/ios/RNLinksdk.mm +3 -1
  284. package/package.json +1 -1
  285. package/react-native-plaid-link-sdk.podspec +1 -1
  286. package/android/.gradle/config.properties +0 -2
  287. package/android/.idea/AndroidProjectSystem.xml +0 -6
  288. package/android/.idea/caches/deviceStreaming.xml +0 -835
  289. package/android/.idea/gradle.xml +0 -13
  290. package/android/.idea/migrations.xml +0 -10
  291. package/android/.idea/misc.xml +0 -10
  292. package/android/.idea/runConfigurations.xml +0 -17
  293. package/android/.idea/vcs.xml +0 -6
  294. package/android/local.properties +0 -8
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
3
+ /**
4
+ * Metro configuration
5
+ * https://reactnative.dev/docs/metro
6
+ *
7
+ * @type {import('metro-config').MetroConfig}
8
+ */
9
+ const config = {};
10
+ module.exports = mergeConfig(getDefaultConfig(__dirname), config);
@@ -1,5 +1,3 @@
1
- /// <reference types="react-native/types/modules/codegen" />
2
- /// <reference types="react-native/modules/codegen" />
3
1
  import type { ViewProps } from 'react-native';
4
2
  import { DirectEventHandler, UnsafeMixed } from 'react-native/Libraries/Types/CodegenTypes';
5
3
  export interface NativeProps extends ViewProps {
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { StyleProp, ViewStyle } from 'react-native';
3
+ import { LinkSuccessListener, LinkExitListener, LinkIOSPresentationStyle, LinkOnEventListener } from '../Types';
4
+ type EmbeddedLinkProps = {
5
+ token: string;
6
+ iOSPresentationStyle: LinkIOSPresentationStyle;
7
+ onEvent: LinkOnEventListener | undefined;
8
+ onSuccess: LinkSuccessListener;
9
+ onExit: LinkExitListener | undefined;
10
+ style: StyleProp<ViewStyle> | undefined;
11
+ };
12
+ export declare const EmbeddedLinkView: React.FC<EmbeddedLinkProps>;
13
+ export {};
@@ -0,0 +1,55 @@
1
+ import React from 'react';
2
+ import NativeEmbeddedLinkView from './NativeEmbeddedLinkView';
3
+ class EmbeddedEvent {
4
+ constructor(event) {
5
+ this.eventName = event.eventName;
6
+ this.metadata = event.metadata;
7
+ }
8
+ }
9
+ class EmbeddedExit {
10
+ constructor(event) {
11
+ this.error = event.error;
12
+ this.metadata = event.metadata;
13
+ }
14
+ }
15
+ class EmbeddedSuccess {
16
+ constructor(event) {
17
+ this.publicToken = event.publicToken;
18
+ this.metadata = event.metadata;
19
+ }
20
+ }
21
+ export const EmbeddedLinkView = (props) => {
22
+ const { token, iOSPresentationStyle, onEvent, onSuccess, onExit, style } = props;
23
+ const onEmbeddedEvent = (event) => {
24
+ switch (event.nativeEvent.embeddedEventName) {
25
+ case 'onSuccess': {
26
+ if (!onSuccess) {
27
+ return;
28
+ }
29
+ const embeddedSuccess = new EmbeddedSuccess(event.nativeEvent);
30
+ onSuccess(embeddedSuccess);
31
+ break;
32
+ }
33
+ case 'onExit': {
34
+ if (!onExit) {
35
+ return;
36
+ }
37
+ const embeddedExit = new EmbeddedExit(event.nativeEvent);
38
+ onExit(embeddedExit);
39
+ break;
40
+ }
41
+ case 'onEvent': {
42
+ if (!onEvent) {
43
+ return;
44
+ }
45
+ const embeddedEvent = new EmbeddedEvent(event.nativeEvent);
46
+ onEvent(embeddedEvent);
47
+ break;
48
+ }
49
+ default: {
50
+ return;
51
+ }
52
+ }
53
+ };
54
+ return <NativeEmbeddedLinkView token={token} iOSPresentationStyle={iOSPresentationStyle.toString()} onEmbeddedEvent={onEmbeddedEvent} style={style}/>;
55
+ };
@@ -0,0 +1 @@
1
+ export declare const EmbeddedLinkView: () => null;
@@ -0,0 +1 @@
1
+ export const EmbeddedLinkView = () => null;
@@ -0,0 +1,2 @@
1
+ import NativeEmbeddedLinkView from '../fabric/EmbeddedLinkViewNativeComponent';
2
+ export default NativeEmbeddedLinkView;
@@ -0,0 +1,2 @@
1
+ import NativeEmbeddedLinkView from '../fabric/EmbeddedLinkViewNativeComponent';
2
+ export default NativeEmbeddedLinkView;
@@ -0,0 +1,27 @@
1
+ import { LinkEventListener, LinkOpenProps, LinkTokenConfiguration, FinanceKitError, SubmissionData } from './Types';
2
+ /**
3
+ * A hook that registers a listener on the Plaid emitter for the 'onEvent' type.
4
+ * The listener is cleaned up when this view is unmounted
5
+ *
6
+ * @param LinkEventListener the listener to call
7
+ */
8
+ export declare const usePlaidEmitter: (linkEventListener: LinkEventListener) => void;
9
+ export declare const create: (props: LinkTokenConfiguration) => void;
10
+ export declare const open: (props: LinkOpenProps) => Promise<void>;
11
+ export declare const dismissLink: () => void;
12
+ export declare const submit: (data: SubmissionData) => void;
13
+ /**
14
+ * Function to sync the user's transactions from their Apple card.
15
+ *
16
+ * @param {string} token - The `LinkToken` your server retrieved from the /link/token/create endpoint from the Plaid API.
17
+ * This token must be associated with an accessToken.
18
+ * @param {boolean} requestAuthorizationIfNeeded - Indicates if the user should be prompted to authorize the sync if
19
+ * they have not already done so.
20
+ * @param {function} completion - A callback function that is called when the sync has completed.
21
+ *
22
+ * @warning This method only works on iOS >= 17.4.
23
+ * @warning This method is not supported on Android or MacCatalyst.
24
+ * @warning This method can only be used once the user has granted access to their Apple card via a standard Link Session.
25
+ * @warning This method requires that your app has been granted FinanceKit access from Apple.
26
+ */
27
+ export declare const syncFinanceKit: (token: string, requestAuthorizationIfNeeded: boolean, completion: (error?: FinanceKitError) => void) => void;
@@ -0,0 +1,124 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var _a;
11
+ import { useEffect } from 'react';
12
+ import { NativeEventEmitter, Platform } from 'react-native';
13
+ import { LinkIOSPresentationStyle, LinkLogLevel, FinanceKitErrorType, } from './Types';
14
+ import RNLinksdkAndroid from './fabric/NativePlaidLinkModuleAndroid';
15
+ import RNLinksdkiOS from './fabric/NativePlaidLinkModuleiOS';
16
+ const RNLinksdk = (_a = (Platform.OS === 'android' ? RNLinksdkAndroid : RNLinksdkiOS)) !== null && _a !== void 0 ? _a : undefined;
17
+ /**
18
+ * A hook that registers a listener on the Plaid emitter for the 'onEvent' type.
19
+ * The listener is cleaned up when this view is unmounted
20
+ *
21
+ * @param LinkEventListener the listener to call
22
+ */
23
+ export const usePlaidEmitter = (linkEventListener) => {
24
+ useEffect(() => {
25
+ const emitter = new NativeEventEmitter(RNLinksdk);
26
+ const listener = emitter.addListener('onEvent', linkEventListener);
27
+ // Clean up after this effect:
28
+ return function cleanup() {
29
+ listener.remove();
30
+ };
31
+ }, []);
32
+ };
33
+ export const create = (props) => {
34
+ var _a, _b;
35
+ let token = props.token;
36
+ let noLoadingState = (_a = props.noLoadingState) !== null && _a !== void 0 ? _a : false;
37
+ if (Platform.OS === 'android') {
38
+ RNLinksdkAndroid === null || RNLinksdkAndroid === void 0 ? void 0 : RNLinksdkAndroid.create(token, noLoadingState, (_b = props.logLevel) !== null && _b !== void 0 ? _b : LinkLogLevel.ERROR);
39
+ }
40
+ else {
41
+ RNLinksdkiOS === null || RNLinksdkiOS === void 0 ? void 0 : RNLinksdkiOS.create(token, noLoadingState);
42
+ }
43
+ };
44
+ export const open = (props) => __awaiter(void 0, void 0, void 0, function* () {
45
+ if (Platform.OS === 'android') {
46
+ RNLinksdkAndroid === null || RNLinksdkAndroid === void 0 ? void 0 : RNLinksdkAndroid.open((result) => {
47
+ if (props.onSuccess != null) {
48
+ props.onSuccess(result);
49
+ }
50
+ }, (result) => {
51
+ if (props.onExit != null) {
52
+ if (result.error != null && result.error.displayMessage != null) {
53
+ //TODO(RNSDK-118): Remove errorDisplayMessage field in next major update.
54
+ result.error.errorDisplayMessage = result.error.displayMessage;
55
+ }
56
+ props.onExit(result);
57
+ }
58
+ });
59
+ }
60
+ else {
61
+ let presentFullScreen = props.iOSPresentationStyle == LinkIOSPresentationStyle.FULL_SCREEN;
62
+ RNLinksdkiOS === null || RNLinksdkiOS === void 0 ? void 0 : RNLinksdkiOS.open(presentFullScreen, (result) => {
63
+ if (props.onSuccess != null) {
64
+ props.onSuccess(result);
65
+ }
66
+ }, (error, result) => {
67
+ if (props.onExit != null) {
68
+ if (error) {
69
+ var data = result || {};
70
+ data.error = error;
71
+ props.onExit(data);
72
+ }
73
+ else {
74
+ props.onExit(result);
75
+ }
76
+ }
77
+ });
78
+ }
79
+ });
80
+ export const dismissLink = () => {
81
+ if (Platform.OS === 'ios') {
82
+ RNLinksdkiOS === null || RNLinksdkiOS === void 0 ? void 0 : RNLinksdkiOS.dismiss();
83
+ }
84
+ };
85
+ export const submit = (data) => {
86
+ if (Platform.OS === 'android') {
87
+ RNLinksdkAndroid === null || RNLinksdkAndroid === void 0 ? void 0 : RNLinksdkAndroid.submit(data.phoneNumber);
88
+ }
89
+ else {
90
+ RNLinksdkiOS === null || RNLinksdkiOS === void 0 ? void 0 : RNLinksdkiOS.submit(data.phoneNumber);
91
+ }
92
+ };
93
+ /**
94
+ * Function to sync the user's transactions from their Apple card.
95
+ *
96
+ * @param {string} token - The `LinkToken` your server retrieved from the /link/token/create endpoint from the Plaid API.
97
+ * This token must be associated with an accessToken.
98
+ * @param {boolean} requestAuthorizationIfNeeded - Indicates if the user should be prompted to authorize the sync if
99
+ * they have not already done so.
100
+ * @param {function} completion - A callback function that is called when the sync has completed.
101
+ *
102
+ * @warning This method only works on iOS >= 17.4.
103
+ * @warning This method is not supported on Android or MacCatalyst.
104
+ * @warning This method can only be used once the user has granted access to their Apple card via a standard Link Session.
105
+ * @warning This method requires that your app has been granted FinanceKit access from Apple.
106
+ */
107
+ export const syncFinanceKit = (token, requestAuthorizationIfNeeded, completion) => {
108
+ if (Platform.OS === 'android') {
109
+ completion({
110
+ type: FinanceKitErrorType.Unknown,
111
+ message: "FinanceKit is unavailable on Android!",
112
+ });
113
+ }
114
+ else {
115
+ RNLinksdkiOS === null || RNLinksdkiOS === void 0 ? void 0 : RNLinksdkiOS.syncFinanceKit(token, requestAuthorizationIfNeeded, () => {
116
+ completion();
117
+ }, (error) => {
118
+ completion({
119
+ type: error.type,
120
+ message: error.message,
121
+ });
122
+ });
123
+ }
124
+ };